From a8ec219b68f5df6be9edf2330d8f33e7817d5e62 Mon Sep 17 00:00:00 2001 From: Maxim Rytych Date: Thu, 25 Aug 2022 12:54:04 +0200 Subject: [PATCH 01/17] Update service client and client and add new api version --- .../communication/identity/_api_versions.py | 3 +- .../_communication_identity_client.py | 64 +- .../identity/_generated/__init__.py | 18 +- .../identity/_generated/_client.py | 89 + .../identity/_generated/_configuration.py | 20 +- .../identity/_generated/_serialization.py | 1970 +++++++++++++++++ .../identity/_generated/_vendor.py | 12 +- .../identity/_generated/aio/__init__.py | 18 +- .../identity/_generated/aio/_client.py | 86 + .../identity/_generated/aio/_configuration.py | 10 +- .../_generated/aio/operations/__init__.py | 10 +- .../_generated/aio/operations/_operations.py | 609 +++++ .../_generated/aio/operations/_patch.py | 20 + .../_generated/operations/__init__.py | 10 +- .../_generated/operations/_operations.py | 718 ++++++ .../identity/_generated/operations/_patch.py | 20 + .../_communication_identity_client_async.py | 62 +- .../swagger/SWAGGER.md | 4 +- 18 files changed, 3673 insertions(+), 70 deletions(-) create mode 100644 sdk/communication/azure-communication-identity/azure/communication/identity/_generated/_client.py create mode 100644 sdk/communication/azure-communication-identity/azure/communication/identity/_generated/_serialization.py create mode 100644 sdk/communication/azure-communication-identity/azure/communication/identity/_generated/aio/_client.py create mode 100644 sdk/communication/azure-communication-identity/azure/communication/identity/_generated/aio/operations/_operations.py create mode 100644 sdk/communication/azure-communication-identity/azure/communication/identity/_generated/aio/operations/_patch.py create mode 100644 sdk/communication/azure-communication-identity/azure/communication/identity/_generated/operations/_operations.py create mode 100644 sdk/communication/azure-communication-identity/azure/communication/identity/_generated/operations/_patch.py diff --git a/sdk/communication/azure-communication-identity/azure/communication/identity/_api_versions.py b/sdk/communication/azure-communication-identity/azure/communication/identity/_api_versions.py index 5322934198a1..8958bc000e6e 100644 --- a/sdk/communication/azure-communication-identity/azure/communication/identity/_api_versions.py +++ b/sdk/communication/azure-communication-identity/azure/communication/identity/_api_versions.py @@ -10,6 +10,7 @@ class ApiVersion(str, Enum, metaclass=CaseInsensitiveEnumMeta): V2021_03_07 = "2021-03-07" V2022_06_01 = "2022-06-01" + V2022_10_01 = "2022-10-01" -DEFAULT_VERSION = ApiVersion.V2022_06_01 +DEFAULT_VERSION = ApiVersion.V2022_10_01 diff --git a/sdk/communication/azure-communication-identity/azure/communication/identity/_communication_identity_client.py b/sdk/communication/azure-communication-identity/azure/communication/identity/_communication_identity_client.py index ce2fd3244576..22f27116ad3b 100644 --- a/sdk/communication/azure-communication-identity/azure/communication/identity/_communication_identity_client.py +++ b/sdk/communication/azure-communication-identity/azure/communication/identity/_communication_identity_client.py @@ -5,6 +5,7 @@ # ------------------------------------ from typing import TYPE_CHECKING, Any, List, Union, Tuple +from datetime import timedelta from azure.core.tracing.decorator import distributed_trace from azure.core.credentials import AccessToken @@ -94,13 +95,14 @@ def create_user(self, **kwargs): api_version = kwargs.pop("api_version", self._api_version) return self._identity_service_client.communication_identity.create( api_version=api_version, - cls=lambda pr, u, e: CommunicationUserIdentifier(u.identity.id, raw_id=u.identity.id), + cls=lambda pr, u, e: CommunicationUserIdentifier(u['identity']['id'], raw_id=u['identity']['id']), **kwargs) @distributed_trace def create_user_and_token( self, scopes, # type: List[Union[str, CommunicationTokenScope]] + token_expires_after = None, #type: timedelta **kwargs # type: Any ): # type: (...) -> Tuple[CommunicationUserIdentifier, AccessToken] @@ -108,15 +110,32 @@ def create_user_and_token( :param scopes: List of scopes to be added to the token. :type scopes: list[str or ~azure.communication.identity.CommunicationTokenScope] + :param token_expires_after: Custom validity period of the Communication Identity access token within <60,1440> minutes range. If not provided, the default value of 1440 minutes (24 hours) will be used. + :type token_expires_after: timedelta :return: A tuple of a CommunicationUserIdentifier and a AccessToken. :rtype: tuple of (~azure.communication.identity.CommunicationUserIdentifier, ~azure.core.credentials.AccessToken) """ api_version = kwargs.pop("api_version", self._api_version) + + expires_after = 0 + + if (token_expires_after is not None): + expires_after = int(token_expires_after.seconds / 60) + + body = { + 'createTokenWithScopes': scopes, + 'expiresInMinutes': expires_after + } + else: + body = { + 'createTokenWithScopes': scopes + } + return self._identity_service_client.communication_identity.create( - cls=lambda pr, u, e: (CommunicationUserIdentifier(u.identity.id, raw_id=u.identity.id), - AccessToken(u.access_token.token, u.access_token.expires_on)), - create_token_with_scopes=scopes, + cls=lambda pr, u, e: (CommunicationUserIdentifier(u['identity']['id'], raw_id=u['identity']['id']), + AccessToken(u['accessToken']['token'], u['accessToken']['expiresOn'])), + body=body, api_version=api_version, **kwargs) @@ -144,7 +163,8 @@ def delete_user( def get_token( self, user, # type: CommunicationUserIdentifier - scopes, # List[Union[str, CommunicationTokenScope]] + scopes, # type: List[Union[str, CommunicationTokenScope]] + token_expires_after = None, #type: timedelta **kwargs # type: Any ): # type: (...) -> AccessToken @@ -154,15 +174,32 @@ def get_token( :type user: ~azure.communication.identity.CommunicationUserIdentifier :param scopes: List of scopes to be added to the token. :type scopes: list[str or ~azure.communication.identity.CommunicationTokenScope] + :param token_expires_after: Custom validity period of the Communication Identity access token within <60,1440> minutes range. If not provided, the default value of 1440 minutes (24 hours) will be used. + :type token_expires_after: timedelta :return: AccessToken :rtype: ~azure.core.credentials.AccessToken """ api_version = kwargs.pop("api_version", self._api_version) + + expires_after = 0 + + if (token_expires_after is not None): + expires_after = int(token_expires_after.seconds / 60) + + body = { + 'scopes': scopes, + 'expiresInMinutes': expires_after + } + else: + body = { + 'scopes': scopes + } + return self._identity_service_client.communication_identity.issue_access_token( user.properties['id'], - scopes, + body=body, api_version=api_version, - cls=lambda pr, u, e: AccessToken(u.token, u.expires_on), + cls=lambda pr, u, e: AccessToken(u['token'], u['expiresOn']), **kwargs) @distributed_trace @@ -208,11 +245,16 @@ def get_token_for_teams_user( :rtype: ~azure.core.credentials.AccessToken """ api_version = kwargs.pop("api_version", self._api_version) + + body = { + "token": aad_token, + "appId": client_id, + "userId": user_object_id + } + return self._identity_service_client.communication_identity.exchange_teams_user_access_token( - token=aad_token, - app_id=client_id, - user_id=user_object_id, + body=body, api_version=api_version, - cls=lambda pr, u, e: AccessToken(u.token, u.expires_on), + cls=lambda pr, u, e: AccessToken(u['token'], u['expiresOn']), **kwargs) \ No newline at end of file diff --git a/sdk/communication/azure-communication-identity/azure/communication/identity/_generated/__init__.py b/sdk/communication/azure-communication-identity/azure/communication/identity/_generated/__init__.py index 84a8463cefb6..615062210c70 100644 --- a/sdk/communication/azure-communication-identity/azure/communication/identity/_generated/__init__.py +++ b/sdk/communication/azure-communication-identity/azure/communication/identity/_generated/__init__.py @@ -6,10 +6,16 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -from ._communication_identity_client import CommunicationIdentityClient -__all__ = ['CommunicationIdentityClient'] +from ._client import CommunicationIdentityClient -# `._patch.py` is used for handwritten extensions to the generated code -# Example: https://github.com/Azure/azure-sdk-for-python/blob/main/doc/dev/customize_code/how-to-patch-sdk-code.md -from ._patch import patch_sdk -patch_sdk() +try: + from ._patch import __all__ as _patch_all + from ._patch import * # type: ignore # pylint: disable=unused-wildcard-import +except ImportError: + _patch_all = [] +from ._patch import patch_sdk as _patch_sdk + +__all__ = ["CommunicationIdentityClient"] +__all__.extend([p for p in _patch_all if p not in __all__]) + +_patch_sdk() diff --git a/sdk/communication/azure-communication-identity/azure/communication/identity/_generated/_client.py b/sdk/communication/azure-communication-identity/azure/communication/identity/_generated/_client.py new file mode 100644 index 000000000000..451e0a5c8c9d --- /dev/null +++ b/sdk/communication/azure-communication-identity/azure/communication/identity/_generated/_client.py @@ -0,0 +1,89 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from copy import deepcopy +from typing import Any, TYPE_CHECKING + +from azure.core import PipelineClient +from azure.core.rest import HttpRequest, HttpResponse + +from ._configuration import CommunicationIdentityClientConfiguration +from ._serialization import Deserializer, Serializer +from .operations import CommunicationIdentityOperations + +if TYPE_CHECKING: + # pylint: disable=unused-import,ungrouped-imports + from typing import Dict + + +class CommunicationIdentityClient: # pylint: disable=client-accepts-api-version-keyword + """Azure Communication Identity Service. + + :ivar communication_identity: CommunicationIdentityOperations operations + :vartype communication_identity: + azure.communication.identity.operations.CommunicationIdentityOperations + :param endpoint: The communication resource, for example + https://my-resource.communication.azure.com. Required. + :type endpoint: str + :keyword api_version: Api Version. Default value is "2022-10-01". Note that overriding this + default value may result in unsupported behavior. + :paramtype api_version: str + """ + + def __init__( # pylint: disable=missing-client-constructor-parameter-credential + self, endpoint: str, **kwargs: Any + ) -> None: + _endpoint = "{endpoint}" + self._config = CommunicationIdentityClientConfiguration(endpoint=endpoint, **kwargs) + self._client = PipelineClient(base_url=_endpoint, config=self._config, **kwargs) + + self._serialize = Serializer() + self._deserialize = Deserializer() + self._serialize.client_side_validation = False + self.communication_identity = CommunicationIdentityOperations( + self._client, self._config, self._serialize, self._deserialize + ) + + def send_request(self, request: HttpRequest, **kwargs: Any) -> HttpResponse: + """Runs the network request through the client's chained policies. + + >>> from azure.core.rest import HttpRequest + >>> request = HttpRequest("GET", "https://www.example.org/") + + >>> response = client.send_request(request) + + + For more information on this code flow, see https://aka.ms/azsdk/dpcodegen/python/send_request + + :param request: The network request you want to make. Required. + :type request: ~azure.core.rest.HttpRequest + :keyword bool stream: Whether the response payload will be streamed. Defaults to False. + :return: The response of your network call. Does not do error handling on your response. + :rtype: ~azure.core.rest.HttpResponse + """ + + request_copy = deepcopy(request) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.endpoint", self._config.endpoint, "str", skip_quote=True), + } + + request_copy.url = self._client.format_url(request_copy.url, **path_format_arguments) + return self._client.send_request(request_copy, **kwargs) + + def close(self): + # type: () -> None + self._client.close() + + def __enter__(self): + # type: () -> CommunicationIdentityClient + self._client.__enter__() + return self + + def __exit__(self, *exc_details): + # type: (Any) -> None + self._client.__exit__(*exc_details) diff --git a/sdk/communication/azure-communication-identity/azure/communication/identity/_generated/_configuration.py b/sdk/communication/azure-communication-identity/azure/communication/identity/_generated/_configuration.py index 5c443e3d572e..b79a3fb52a9a 100644 --- a/sdk/communication/azure-communication-identity/azure/communication/identity/_generated/_configuration.py +++ b/sdk/communication/azure-communication-identity/azure/communication/identity/_generated/_configuration.py @@ -6,17 +6,14 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -from typing import TYPE_CHECKING +from typing import Any from azure.core.configuration import Configuration from azure.core.pipeline import policies -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from typing import Any - VERSION = "unknown" + class CommunicationIdentityClientConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for CommunicationIdentityClient. @@ -24,21 +21,16 @@ class CommunicationIdentityClientConfiguration(Configuration): # pylint: disabl attributes. :param endpoint: The communication resource, for example - https://my-resource.communication.azure.com. + https://my-resource.communication.azure.com. Required. :type endpoint: str - :keyword api_version: Api Version. Default value is "2022-06-01". Note that overriding this + :keyword api_version: Api Version. Default value is "2022-10-01". Note that overriding this default value may result in unsupported behavior. :paramtype api_version: str """ - def __init__( - self, - endpoint, # type: str - **kwargs # type: Any - ): - # type: (...) -> None + def __init__(self, endpoint: str, **kwargs: Any) -> None: super(CommunicationIdentityClientConfiguration, self).__init__(**kwargs) - api_version = kwargs.pop('api_version', "2022-06-01") # type: str + api_version = kwargs.pop("api_version", "2022-10-01") # type: str if endpoint is None: raise ValueError("Parameter 'endpoint' must not be None.") diff --git a/sdk/communication/azure-communication-identity/azure/communication/identity/_generated/_serialization.py b/sdk/communication/azure-communication-identity/azure/communication/identity/_generated/_serialization.py new file mode 100644 index 000000000000..648f84cc4e65 --- /dev/null +++ b/sdk/communication/azure-communication-identity/azure/communication/identity/_generated/_serialization.py @@ -0,0 +1,1970 @@ +# -------------------------------------------------------------------------- +# +# Copyright (c) Microsoft Corporation. All rights reserved. +# +# The MIT License (MIT) +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the ""Software""), to +# deal in the Software without restriction, including without limitation the +# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or +# sell copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in +# all copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS +# IN THE SOFTWARE. +# +# -------------------------------------------------------------------------- + +# pylint: skip-file + +from base64 import b64decode, b64encode +import calendar +import datetime +import decimal +import email +from enum import Enum +import json +import logging +import re +import sys +import codecs + +try: + from urllib import quote # type: ignore +except ImportError: + from urllib.parse import quote # type: ignore +import xml.etree.ElementTree as ET + +import isodate + +from typing import Dict, Any, cast, TYPE_CHECKING + +from azure.core.exceptions import DeserializationError, SerializationError, raise_with_traceback + +_BOM = codecs.BOM_UTF8.decode(encoding="utf-8") + +if TYPE_CHECKING: + from typing import Optional, Union, AnyStr, IO, Mapping + + +class RawDeserializer: + + # Accept "text" because we're open minded people... + JSON_REGEXP = re.compile(r"^(application|text)/([a-z+.]+\+)?json$") + + # Name used in context + CONTEXT_NAME = "deserialized_data" + + @classmethod + def deserialize_from_text(cls, data, content_type=None): + # type: (Optional[Union[AnyStr, IO]], Optional[str]) -> Any + """Decode data according to content-type. + + Accept a stream of data as well, but will be load at once in memory for now. + + If no content-type, will return the string version (not bytes, not stream) + + :param data: Input, could be bytes or stream (will be decoded with UTF8) or text + :type data: str or bytes or IO + :param str content_type: The content type. + """ + if hasattr(data, "read"): + # Assume a stream + data = cast(IO, data).read() + + if isinstance(data, bytes): + data_as_str = data.decode(encoding="utf-8-sig") + else: + # Explain to mypy the correct type. + data_as_str = cast(str, data) + + # Remove Byte Order Mark if present in string + data_as_str = data_as_str.lstrip(_BOM) + + if content_type is None: + return data + + if cls.JSON_REGEXP.match(content_type): + try: + return json.loads(data_as_str) + except ValueError as err: + raise DeserializationError("JSON is invalid: {}".format(err), err) + elif "xml" in (content_type or []): + try: + + try: + if isinstance(data, unicode): # type: ignore + # If I'm Python 2.7 and unicode XML will scream if I try a "fromstring" on unicode string + data_as_str = data_as_str.encode(encoding="utf-8") # type: ignore + except NameError: + pass + + return ET.fromstring(data_as_str) # nosec + except ET.ParseError: + # It might be because the server has an issue, and returned JSON with + # content-type XML.... + # So let's try a JSON load, and if it's still broken + # let's flow the initial exception + def _json_attemp(data): + try: + return True, json.loads(data) + except ValueError: + return False, None # Don't care about this one + + success, json_result = _json_attemp(data) + if success: + return json_result + # If i'm here, it's not JSON, it's not XML, let's scream + # and raise the last context in this block (the XML exception) + # The function hack is because Py2.7 messes up with exception + # context otherwise. + _LOGGER.critical("Wasn't XML not JSON, failing") + raise_with_traceback(DeserializationError, "XML is invalid") + raise DeserializationError("Cannot deserialize content-type: {}".format(content_type)) + + @classmethod + def deserialize_from_http_generics(cls, body_bytes, headers): + # type: (Optional[Union[AnyStr, IO]], Mapping) -> Any + """Deserialize from HTTP response. + + Use bytes and headers to NOT use any requests/aiohttp or whatever + specific implementation. + Headers will tested for "content-type" + """ + # Try to use content-type from headers if available + content_type = None + if "content-type" in headers: + content_type = headers["content-type"].split(";")[0].strip().lower() + # Ouch, this server did not declare what it sent... + # Let's guess it's JSON... + # Also, since Autorest was considering that an empty body was a valid JSON, + # need that test as well.... + else: + content_type = "application/json" + + if body_bytes: + return cls.deserialize_from_text(body_bytes, content_type) + return None + + +try: + basestring # type: ignore + unicode_str = unicode # type: ignore +except NameError: + basestring = str # type: ignore + unicode_str = str # type: ignore + +_LOGGER = logging.getLogger(__name__) + +try: + _long_type = long # type: ignore +except NameError: + _long_type = int + + +class UTC(datetime.tzinfo): + """Time Zone info for handling UTC""" + + def utcoffset(self, dt): + """UTF offset for UTC is 0.""" + return datetime.timedelta(0) + + def tzname(self, dt): + """Timestamp representation.""" + return "Z" + + def dst(self, dt): + """No daylight saving for UTC.""" + return datetime.timedelta(hours=1) + + +try: + from datetime import timezone as _FixedOffset +except ImportError: # Python 2.7 + + class _FixedOffset(datetime.tzinfo): # type: ignore + """Fixed offset in minutes east from UTC. + Copy/pasted from Python doc + :param datetime.timedelta offset: offset in timedelta format + """ + + def __init__(self, offset): + self.__offset = offset + + def utcoffset(self, dt): + return self.__offset + + def tzname(self, dt): + return str(self.__offset.total_seconds() / 3600) + + def __repr__(self): + return "".format(self.tzname(None)) + + def dst(self, dt): + return datetime.timedelta(0) + + def __getinitargs__(self): + return (self.__offset,) + + +try: + from datetime import timezone + + TZ_UTC = timezone.utc # type: ignore +except ImportError: + TZ_UTC = UTC() # type: ignore + +_FLATTEN = re.compile(r"(? y, + "minimum": lambda x, y: x < y, + "maximum": lambda x, y: x > y, + "minimum_ex": lambda x, y: x <= y, + "maximum_ex": lambda x, y: x >= y, + "min_items": lambda x, y: len(x) < y, + "max_items": lambda x, y: len(x) > y, + "pattern": lambda x, y: not re.match(y, x, re.UNICODE), + "unique": lambda x, y: len(x) != len(set(x)), + "multiple": lambda x, y: x % y != 0, + } + + def __init__(self, classes=None): + self.serialize_type = { + "iso-8601": Serializer.serialize_iso, + "rfc-1123": Serializer.serialize_rfc, + "unix-time": Serializer.serialize_unix, + "duration": Serializer.serialize_duration, + "date": Serializer.serialize_date, + "time": Serializer.serialize_time, + "decimal": Serializer.serialize_decimal, + "long": Serializer.serialize_long, + "bytearray": Serializer.serialize_bytearray, + "base64": Serializer.serialize_base64, + "object": self.serialize_object, + "[]": self.serialize_iter, + "{}": self.serialize_dict, + } + self.dependencies = dict(classes) if classes else {} + self.key_transformer = full_restapi_key_transformer + self.client_side_validation = True + + def _serialize(self, target_obj, data_type=None, **kwargs): + """Serialize data into a string according to type. + + :param target_obj: The data to be serialized. + :param str data_type: The type to be serialized from. + :rtype: str, dict + :raises: SerializationError if serialization fails. + """ + key_transformer = kwargs.get("key_transformer", self.key_transformer) + keep_readonly = kwargs.get("keep_readonly", False) + if target_obj is None: + return None + + attr_name = None + class_name = target_obj.__class__.__name__ + + if data_type: + return self.serialize_data(target_obj, data_type, **kwargs) + + if not hasattr(target_obj, "_attribute_map"): + data_type = type(target_obj).__name__ + if data_type in self.basic_types.values(): + return self.serialize_data(target_obj, data_type, **kwargs) + + # Force "is_xml" kwargs if we detect a XML model + try: + is_xml_model_serialization = kwargs["is_xml"] + except KeyError: + is_xml_model_serialization = kwargs.setdefault("is_xml", target_obj.is_xml_model()) + + serialized = {} + if is_xml_model_serialization: + serialized = target_obj._create_xml_node() + try: + attributes = target_obj._attribute_map + for attr, attr_desc in attributes.items(): + attr_name = attr + if not keep_readonly and target_obj._validation.get(attr_name, {}).get("readonly", False): + continue + + if attr_name == "additional_properties" and attr_desc["key"] == "": + if target_obj.additional_properties is not None: + serialized.update(target_obj.additional_properties) + continue + try: + + orig_attr = getattr(target_obj, attr) + if is_xml_model_serialization: + pass # Don't provide "transformer" for XML for now. Keep "orig_attr" + else: # JSON + keys, orig_attr = key_transformer(attr, attr_desc.copy(), orig_attr) + keys = keys if isinstance(keys, list) else [keys] + + kwargs["serialization_ctxt"] = attr_desc + new_attr = self.serialize_data(orig_attr, attr_desc["type"], **kwargs) + + if is_xml_model_serialization: + xml_desc = attr_desc.get("xml", {}) + xml_name = xml_desc.get("name", attr_desc["key"]) + xml_prefix = xml_desc.get("prefix", None) + xml_ns = xml_desc.get("ns", None) + if xml_desc.get("attr", False): + if xml_ns: + ET.register_namespace(xml_prefix, xml_ns) + xml_name = "{}{}".format(xml_ns, xml_name) + serialized.set(xml_name, new_attr) + continue + if xml_desc.get("text", False): + serialized.text = new_attr + continue + if isinstance(new_attr, list): + serialized.extend(new_attr) + elif isinstance(new_attr, ET.Element): + # If the down XML has no XML/Name, we MUST replace the tag with the local tag. But keeping the namespaces. + if "name" not in getattr(orig_attr, "_xml_map", {}): + splitted_tag = new_attr.tag.split("}") + if len(splitted_tag) == 2: # Namespace + new_attr.tag = "}".join([splitted_tag[0], xml_name]) + else: + new_attr.tag = xml_name + serialized.append(new_attr) + else: # That's a basic type + # Integrate namespace if necessary + local_node = _create_xml_node(xml_name, xml_prefix, xml_ns) + local_node.text = unicode_str(new_attr) + serialized.append(local_node) + else: # JSON + for k in reversed(keys): + unflattened = {k: new_attr} + new_attr = unflattened + + _new_attr = new_attr + _serialized = serialized + for k in keys: + if k not in _serialized: + _serialized.update(_new_attr) + _new_attr = _new_attr[k] + _serialized = _serialized[k] + except ValueError: + continue + + except (AttributeError, KeyError, TypeError) as err: + msg = "Attribute {} in object {} cannot be serialized.\n{}".format(attr_name, class_name, str(target_obj)) + raise_with_traceback(SerializationError, msg, err) + else: + return serialized + + def body(self, data, data_type, **kwargs): + """Serialize data intended for a request body. + + :param data: The data to be serialized. + :param str data_type: The type to be serialized from. + :rtype: dict + :raises: SerializationError if serialization fails. + :raises: ValueError if data is None + """ + + # Just in case this is a dict + internal_data_type = data_type.strip("[]{}") + internal_data_type = self.dependencies.get(internal_data_type, None) + try: + is_xml_model_serialization = kwargs["is_xml"] + except KeyError: + if internal_data_type and issubclass(internal_data_type, Model): + is_xml_model_serialization = kwargs.setdefault("is_xml", internal_data_type.is_xml_model()) + else: + is_xml_model_serialization = False + if internal_data_type and not isinstance(internal_data_type, Enum): + try: + deserializer = Deserializer(self.dependencies) + # Since it's on serialization, it's almost sure that format is not JSON REST + # We're not able to deal with additional properties for now. + deserializer.additional_properties_detection = False + if is_xml_model_serialization: + deserializer.key_extractors = [ + attribute_key_case_insensitive_extractor, + ] + else: + deserializer.key_extractors = [ + rest_key_case_insensitive_extractor, + attribute_key_case_insensitive_extractor, + last_rest_key_case_insensitive_extractor, + ] + data = deserializer._deserialize(data_type, data) + except DeserializationError as err: + raise_with_traceback(SerializationError, "Unable to build a model: " + str(err), err) + + return self._serialize(data, data_type, **kwargs) + + def url(self, name, data, data_type, **kwargs): + """Serialize data intended for a URL path. + + :param data: The data to be serialized. + :param str data_type: The type to be serialized from. + :rtype: str + :raises: TypeError if serialization fails. + :raises: ValueError if data is None + """ + try: + output = self.serialize_data(data, data_type, **kwargs) + if data_type == "bool": + output = json.dumps(output) + + if kwargs.get("skip_quote") is True: + output = str(output) + else: + output = quote(str(output), safe="") + except SerializationError: + raise TypeError("{} must be type {}.".format(name, data_type)) + else: + return output + + def query(self, name, data, data_type, **kwargs): + """Serialize data intended for a URL query. + + :param data: The data to be serialized. + :param str data_type: The type to be serialized from. + :rtype: str + :raises: TypeError if serialization fails. + :raises: ValueError if data is None + """ + try: + # Treat the list aside, since we don't want to encode the div separator + if data_type.startswith("["): + internal_data_type = data_type[1:-1] + data = [self.serialize_data(d, internal_data_type, **kwargs) if d is not None else "" for d in data] + if not kwargs.get("skip_quote", False): + data = [quote(str(d), safe="") for d in data] + return str(self.serialize_iter(data, internal_data_type, **kwargs)) + + # Not a list, regular serialization + output = self.serialize_data(data, data_type, **kwargs) + if data_type == "bool": + output = json.dumps(output) + if kwargs.get("skip_quote") is True: + output = str(output) + else: + output = quote(str(output), safe="") + except SerializationError: + raise TypeError("{} must be type {}.".format(name, data_type)) + else: + return str(output) + + def header(self, name, data, data_type, **kwargs): + """Serialize data intended for a request header. + + :param data: The data to be serialized. + :param str data_type: The type to be serialized from. + :rtype: str + :raises: TypeError if serialization fails. + :raises: ValueError if data is None + """ + try: + if data_type in ["[str]"]: + data = ["" if d is None else d for d in data] + + output = self.serialize_data(data, data_type, **kwargs) + if data_type == "bool": + output = json.dumps(output) + except SerializationError: + raise TypeError("{} must be type {}.".format(name, data_type)) + else: + return str(output) + + def serialize_data(self, data, data_type, **kwargs): + """Serialize generic data according to supplied data type. + + :param data: The data to be serialized. + :param str data_type: The type to be serialized from. + :param bool required: Whether it's essential that the data not be + empty or None + :raises: AttributeError if required data is None. + :raises: ValueError if data is None + :raises: SerializationError if serialization fails. + """ + if data is None: + raise ValueError("No value for given attribute") + + try: + if data_type in self.basic_types.values(): + return self.serialize_basic(data, data_type, **kwargs) + + elif data_type in self.serialize_type: + return self.serialize_type[data_type](data, **kwargs) + + # If dependencies is empty, try with current data class + # It has to be a subclass of Enum anyway + enum_type = self.dependencies.get(data_type, data.__class__) + if issubclass(enum_type, Enum): + return Serializer.serialize_enum(data, enum_obj=enum_type) + + iter_type = data_type[0] + data_type[-1] + if iter_type in self.serialize_type: + return self.serialize_type[iter_type](data, data_type[1:-1], **kwargs) + + except (ValueError, TypeError) as err: + msg = "Unable to serialize value: {!r} as type: {!r}." + raise_with_traceback(SerializationError, msg.format(data, data_type), err) + else: + return self._serialize(data, **kwargs) + + @classmethod + def _get_custom_serializers(cls, data_type, **kwargs): + custom_serializer = kwargs.get("basic_types_serializers", {}).get(data_type) + if custom_serializer: + return custom_serializer + if kwargs.get("is_xml", False): + return cls._xml_basic_types_serializers.get(data_type) + + @classmethod + def serialize_basic(cls, data, data_type, **kwargs): + """Serialize basic builting data type. + Serializes objects to str, int, float or bool. + + Possible kwargs: + - basic_types_serializers dict[str, callable] : If set, use the callable as serializer + - is_xml bool : If set, use xml_basic_types_serializers + + :param data: Object to be serialized. + :param str data_type: Type of object in the iterable. + """ + custom_serializer = cls._get_custom_serializers(data_type, **kwargs) + if custom_serializer: + return custom_serializer(data) + if data_type == "str": + return cls.serialize_unicode(data) + return eval(data_type)(data) # nosec + + @classmethod + def serialize_unicode(cls, data): + """Special handling for serializing unicode strings in Py2. + Encode to UTF-8 if unicode, otherwise handle as a str. + + :param data: Object to be serialized. + :rtype: str + """ + try: # If I received an enum, return its value + return data.value + except AttributeError: + pass + + try: + if isinstance(data, unicode): + # Don't change it, JSON and XML ElementTree are totally able + # to serialize correctly u'' strings + return data + except NameError: + return str(data) + else: + return str(data) + + def serialize_iter(self, data, iter_type, div=None, **kwargs): + """Serialize iterable. + + Supported kwargs: + - serialization_ctxt dict : The current entry of _attribute_map, or same format. + serialization_ctxt['type'] should be same as data_type. + - is_xml bool : If set, serialize as XML + + :param list attr: Object to be serialized. + :param str iter_type: Type of object in the iterable. + :param bool required: Whether the objects in the iterable must + not be None or empty. + :param str div: If set, this str will be used to combine the elements + in the iterable into a combined string. Default is 'None'. + :rtype: list, str + """ + if isinstance(data, str): + raise SerializationError("Refuse str type as a valid iter type.") + + serialization_ctxt = kwargs.get("serialization_ctxt", {}) + is_xml = kwargs.get("is_xml", False) + + serialized = [] + for d in data: + try: + serialized.append(self.serialize_data(d, iter_type, **kwargs)) + except ValueError: + serialized.append(None) + + if div: + serialized = ["" if s is None else str(s) for s in serialized] + serialized = div.join(serialized) + + if "xml" in serialization_ctxt or is_xml: + # XML serialization is more complicated + xml_desc = serialization_ctxt.get("xml", {}) + xml_name = xml_desc.get("name") + if not xml_name: + xml_name = serialization_ctxt["key"] + + # Create a wrap node if necessary (use the fact that Element and list have "append") + is_wrapped = xml_desc.get("wrapped", False) + node_name = xml_desc.get("itemsName", xml_name) + if is_wrapped: + final_result = _create_xml_node(xml_name, xml_desc.get("prefix", None), xml_desc.get("ns", None)) + else: + final_result = [] + # All list elements to "local_node" + for el in serialized: + if isinstance(el, ET.Element): + el_node = el + else: + el_node = _create_xml_node(node_name, xml_desc.get("prefix", None), xml_desc.get("ns", None)) + if el is not None: # Otherwise it writes "None" :-p + el_node.text = str(el) + final_result.append(el_node) + return final_result + return serialized + + def serialize_dict(self, attr, dict_type, **kwargs): + """Serialize a dictionary of objects. + + :param dict attr: Object to be serialized. + :param str dict_type: Type of object in the dictionary. + :param bool required: Whether the objects in the dictionary must + not be None or empty. + :rtype: dict + """ + serialization_ctxt = kwargs.get("serialization_ctxt", {}) + serialized = {} + for key, value in attr.items(): + try: + serialized[self.serialize_unicode(key)] = self.serialize_data(value, dict_type, **kwargs) + except ValueError: + serialized[self.serialize_unicode(key)] = None + + if "xml" in serialization_ctxt: + # XML serialization is more complicated + xml_desc = serialization_ctxt["xml"] + xml_name = xml_desc["name"] + + final_result = _create_xml_node(xml_name, xml_desc.get("prefix", None), xml_desc.get("ns", None)) + for key, value in serialized.items(): + ET.SubElement(final_result, key).text = value + return final_result + + return serialized + + def serialize_object(self, attr, **kwargs): + """Serialize a generic object. + This will be handled as a dictionary. If object passed in is not + a basic type (str, int, float, dict, list) it will simply be + cast to str. + + :param dict attr: Object to be serialized. + :rtype: dict or str + """ + if attr is None: + return None + if isinstance(attr, ET.Element): + return attr + obj_type = type(attr) + if obj_type in self.basic_types: + return self.serialize_basic(attr, self.basic_types[obj_type], **kwargs) + if obj_type is _long_type: + return self.serialize_long(attr) + if obj_type is unicode_str: + return self.serialize_unicode(attr) + if obj_type is datetime.datetime: + return self.serialize_iso(attr) + if obj_type is datetime.date: + return self.serialize_date(attr) + if obj_type is datetime.time: + return self.serialize_time(attr) + if obj_type is datetime.timedelta: + return self.serialize_duration(attr) + if obj_type is decimal.Decimal: + return self.serialize_decimal(attr) + + # If it's a model or I know this dependency, serialize as a Model + elif obj_type in self.dependencies.values() or isinstance(attr, Model): + return self._serialize(attr) + + if obj_type == dict: + serialized = {} + for key, value in attr.items(): + try: + serialized[self.serialize_unicode(key)] = self.serialize_object(value, **kwargs) + except ValueError: + serialized[self.serialize_unicode(key)] = None + return serialized + + if obj_type == list: + serialized = [] + for obj in attr: + try: + serialized.append(self.serialize_object(obj, **kwargs)) + except ValueError: + pass + return serialized + return str(attr) + + @staticmethod + def serialize_enum(attr, enum_obj=None): + try: + result = attr.value + except AttributeError: + result = attr + try: + enum_obj(result) + return result + except ValueError: + for enum_value in enum_obj: + if enum_value.value.lower() == str(attr).lower(): + return enum_value.value + error = "{!r} is not valid value for enum {!r}" + raise SerializationError(error.format(attr, enum_obj)) + + @staticmethod + def serialize_bytearray(attr, **kwargs): + """Serialize bytearray into base-64 string. + + :param attr: Object to be serialized. + :rtype: str + """ + return b64encode(attr).decode() + + @staticmethod + def serialize_base64(attr, **kwargs): + """Serialize str into base-64 string. + + :param attr: Object to be serialized. + :rtype: str + """ + encoded = b64encode(attr).decode("ascii") + return encoded.strip("=").replace("+", "-").replace("/", "_") + + @staticmethod + def serialize_decimal(attr, **kwargs): + """Serialize Decimal object to float. + + :param attr: Object to be serialized. + :rtype: float + """ + return float(attr) + + @staticmethod + def serialize_long(attr, **kwargs): + """Serialize long (Py2) or int (Py3). + + :param attr: Object to be serialized. + :rtype: int/long + """ + return _long_type(attr) + + @staticmethod + def serialize_date(attr, **kwargs): + """Serialize Date object into ISO-8601 formatted string. + + :param Date attr: Object to be serialized. + :rtype: str + """ + if isinstance(attr, str): + attr = isodate.parse_date(attr) + t = "{:04}-{:02}-{:02}".format(attr.year, attr.month, attr.day) + return t + + @staticmethod + def serialize_time(attr, **kwargs): + """Serialize Time object into ISO-8601 formatted string. + + :param datetime.time attr: Object to be serialized. + :rtype: str + """ + if isinstance(attr, str): + attr = isodate.parse_time(attr) + t = "{:02}:{:02}:{:02}".format(attr.hour, attr.minute, attr.second) + if attr.microsecond: + t += ".{:02}".format(attr.microsecond) + return t + + @staticmethod + def serialize_duration(attr, **kwargs): + """Serialize TimeDelta object into ISO-8601 formatted string. + + :param TimeDelta attr: Object to be serialized. + :rtype: str + """ + if isinstance(attr, str): + attr = isodate.parse_duration(attr) + return isodate.duration_isoformat(attr) + + @staticmethod + def serialize_rfc(attr, **kwargs): + """Serialize Datetime object into RFC-1123 formatted string. + + :param Datetime attr: Object to be serialized. + :rtype: str + :raises: TypeError if format invalid. + """ + try: + if not attr.tzinfo: + _LOGGER.warning("Datetime with no tzinfo will be considered UTC.") + utc = attr.utctimetuple() + except AttributeError: + raise TypeError("RFC1123 object must be valid Datetime object.") + + return "{}, {:02} {} {:04} {:02}:{:02}:{:02} GMT".format( + Serializer.days[utc.tm_wday], + utc.tm_mday, + Serializer.months[utc.tm_mon], + utc.tm_year, + utc.tm_hour, + utc.tm_min, + utc.tm_sec, + ) + + @staticmethod + def serialize_iso(attr, **kwargs): + """Serialize Datetime object into ISO-8601 formatted string. + + :param Datetime attr: Object to be serialized. + :rtype: str + :raises: SerializationError if format invalid. + """ + if isinstance(attr, str): + attr = isodate.parse_datetime(attr) + try: + if not attr.tzinfo: + _LOGGER.warning("Datetime with no tzinfo will be considered UTC.") + utc = attr.utctimetuple() + if utc.tm_year > 9999 or utc.tm_year < 1: + raise OverflowError("Hit max or min date") + + microseconds = str(attr.microsecond).rjust(6, "0").rstrip("0").ljust(3, "0") + if microseconds: + microseconds = "." + microseconds + date = "{:04}-{:02}-{:02}T{:02}:{:02}:{:02}".format( + utc.tm_year, utc.tm_mon, utc.tm_mday, utc.tm_hour, utc.tm_min, utc.tm_sec + ) + return date + microseconds + "Z" + except (ValueError, OverflowError) as err: + msg = "Unable to serialize datetime object." + raise_with_traceback(SerializationError, msg, err) + except AttributeError as err: + msg = "ISO-8601 object must be valid Datetime object." + raise_with_traceback(TypeError, msg, err) + + @staticmethod + def serialize_unix(attr, **kwargs): + """Serialize Datetime object into IntTime format. + This is represented as seconds. + + :param Datetime attr: Object to be serialized. + :rtype: int + :raises: SerializationError if format invalid + """ + if isinstance(attr, int): + return attr + try: + if not attr.tzinfo: + _LOGGER.warning("Datetime with no tzinfo will be considered UTC.") + return int(calendar.timegm(attr.utctimetuple())) + except AttributeError: + raise TypeError("Unix time object must be valid Datetime object.") + + +def rest_key_extractor(attr, attr_desc, data): + key = attr_desc["key"] + working_data = data + + while "." in key: + dict_keys = _FLATTEN.split(key) + if len(dict_keys) == 1: + key = _decode_attribute_map_key(dict_keys[0]) + break + working_key = _decode_attribute_map_key(dict_keys[0]) + working_data = working_data.get(working_key, data) + if working_data is None: + # If at any point while following flatten JSON path see None, it means + # that all properties under are None as well + # https://github.com/Azure/msrest-for-python/issues/197 + return None + key = ".".join(dict_keys[1:]) + + return working_data.get(key) + + +def rest_key_case_insensitive_extractor(attr, attr_desc, data): + key = attr_desc["key"] + working_data = data + + while "." in key: + dict_keys = _FLATTEN.split(key) + if len(dict_keys) == 1: + key = _decode_attribute_map_key(dict_keys[0]) + break + working_key = _decode_attribute_map_key(dict_keys[0]) + working_data = attribute_key_case_insensitive_extractor(working_key, None, working_data) + if working_data is None: + # If at any point while following flatten JSON path see None, it means + # that all properties under are None as well + # https://github.com/Azure/msrest-for-python/issues/197 + return None + key = ".".join(dict_keys[1:]) + + if working_data: + return attribute_key_case_insensitive_extractor(key, None, working_data) + + +def last_rest_key_extractor(attr, attr_desc, data): + """Extract the attribute in "data" based on the last part of the JSON path key.""" + key = attr_desc["key"] + dict_keys = _FLATTEN.split(key) + return attribute_key_extractor(dict_keys[-1], None, data) + + +def last_rest_key_case_insensitive_extractor(attr, attr_desc, data): + """Extract the attribute in "data" based on the last part of the JSON path key. + + This is the case insensitive version of "last_rest_key_extractor" + """ + key = attr_desc["key"] + dict_keys = _FLATTEN.split(key) + return attribute_key_case_insensitive_extractor(dict_keys[-1], None, data) + + +def attribute_key_extractor(attr, _, data): + return data.get(attr) + + +def attribute_key_case_insensitive_extractor(attr, _, data): + found_key = None + lower_attr = attr.lower() + for key in data: + if lower_attr == key.lower(): + found_key = key + break + + return data.get(found_key) + + +def _extract_name_from_internal_type(internal_type): + """Given an internal type XML description, extract correct XML name with namespace. + + :param dict internal_type: An model type + :rtype: tuple + :returns: A tuple XML name + namespace dict + """ + internal_type_xml_map = getattr(internal_type, "_xml_map", {}) + xml_name = internal_type_xml_map.get("name", internal_type.__name__) + xml_ns = internal_type_xml_map.get("ns", None) + if xml_ns: + xml_name = "{}{}".format(xml_ns, xml_name) + return xml_name + + +def xml_key_extractor(attr, attr_desc, data): + if isinstance(data, dict): + return None + + # Test if this model is XML ready first + if not isinstance(data, ET.Element): + return None + + xml_desc = attr_desc.get("xml", {}) + xml_name = xml_desc.get("name", attr_desc["key"]) + + # Look for a children + is_iter_type = attr_desc["type"].startswith("[") + is_wrapped = xml_desc.get("wrapped", False) + internal_type = attr_desc.get("internalType", None) + internal_type_xml_map = getattr(internal_type, "_xml_map", {}) + + # Integrate namespace if necessary + xml_ns = xml_desc.get("ns", internal_type_xml_map.get("ns", None)) + if xml_ns: + xml_name = "{}{}".format(xml_ns, xml_name) + + # If it's an attribute, that's simple + if xml_desc.get("attr", False): + return data.get(xml_name) + + # If it's x-ms-text, that's simple too + if xml_desc.get("text", False): + return data.text + + # Scenario where I take the local name: + # - Wrapped node + # - Internal type is an enum (considered basic types) + # - Internal type has no XML/Name node + if is_wrapped or (internal_type and (issubclass(internal_type, Enum) or "name" not in internal_type_xml_map)): + children = data.findall(xml_name) + # If internal type has a local name and it's not a list, I use that name + elif not is_iter_type and internal_type and "name" in internal_type_xml_map: + xml_name = _extract_name_from_internal_type(internal_type) + children = data.findall(xml_name) + # That's an array + else: + if internal_type: # Complex type, ignore itemsName and use the complex type name + items_name = _extract_name_from_internal_type(internal_type) + else: + items_name = xml_desc.get("itemsName", xml_name) + children = data.findall(items_name) + + if len(children) == 0: + if is_iter_type: + if is_wrapped: + return None # is_wrapped no node, we want None + else: + return [] # not wrapped, assume empty list + return None # Assume it's not there, maybe an optional node. + + # If is_iter_type and not wrapped, return all found children + if is_iter_type: + if not is_wrapped: + return children + else: # Iter and wrapped, should have found one node only (the wrap one) + if len(children) != 1: + raise DeserializationError( + "Tried to deserialize an array not wrapped, and found several nodes '{}'. Maybe you should declare this array as wrapped?".format( + xml_name + ) + ) + return list(children[0]) # Might be empty list and that's ok. + + # Here it's not a itertype, we should have found one element only or empty + if len(children) > 1: + raise DeserializationError("Find several XML '{}' where it was not expected".format(xml_name)) + return children[0] + + +class Deserializer(object): + """Response object model deserializer. + + :param dict classes: Class type dictionary for deserializing complex types. + :ivar list key_extractors: Ordered list of extractors to be used by this deserializer. + """ + + basic_types = {str: "str", int: "int", bool: "bool", float: "float"} + + valid_date = re.compile(r"\d{4}[-]\d{2}[-]\d{2}T\d{2}:\d{2}:\d{2}" r"\.?\d*Z?[-+]?[\d{2}]?:?[\d{2}]?") + + def __init__(self, classes=None): + self.deserialize_type = { + "iso-8601": Deserializer.deserialize_iso, + "rfc-1123": Deserializer.deserialize_rfc, + "unix-time": Deserializer.deserialize_unix, + "duration": Deserializer.deserialize_duration, + "date": Deserializer.deserialize_date, + "time": Deserializer.deserialize_time, + "decimal": Deserializer.deserialize_decimal, + "long": Deserializer.deserialize_long, + "bytearray": Deserializer.deserialize_bytearray, + "base64": Deserializer.deserialize_base64, + "object": self.deserialize_object, + "[]": self.deserialize_iter, + "{}": self.deserialize_dict, + } + self.deserialize_expected_types = { + "duration": (isodate.Duration, datetime.timedelta), + "iso-8601": (datetime.datetime), + } + self.dependencies = dict(classes) if classes else {} + self.key_extractors = [rest_key_extractor, xml_key_extractor] + # Additional properties only works if the "rest_key_extractor" is used to + # extract the keys. Making it to work whatever the key extractor is too much + # complicated, with no real scenario for now. + # So adding a flag to disable additional properties detection. This flag should be + # used if your expect the deserialization to NOT come from a JSON REST syntax. + # Otherwise, result are unexpected + self.additional_properties_detection = True + + def __call__(self, target_obj, response_data, content_type=None): + """Call the deserializer to process a REST response. + + :param str target_obj: Target data type to deserialize to. + :param requests.Response response_data: REST response object. + :param str content_type: Swagger "produces" if available. + :raises: DeserializationError if deserialization fails. + :return: Deserialized object. + """ + data = self._unpack_content(response_data, content_type) + return self._deserialize(target_obj, data) + + def _deserialize(self, target_obj, data): + """Call the deserializer on a model. + + Data needs to be already deserialized as JSON or XML ElementTree + + :param str target_obj: Target data type to deserialize to. + :param object data: Object to deserialize. + :raises: DeserializationError if deserialization fails. + :return: Deserialized object. + """ + # This is already a model, go recursive just in case + if hasattr(data, "_attribute_map"): + constants = [name for name, config in getattr(data, "_validation", {}).items() if config.get("constant")] + try: + for attr, mapconfig in data._attribute_map.items(): + if attr in constants: + continue + value = getattr(data, attr) + if value is None: + continue + local_type = mapconfig["type"] + internal_data_type = local_type.strip("[]{}") + if internal_data_type not in self.dependencies or isinstance(internal_data_type, Enum): + continue + setattr(data, attr, self._deserialize(local_type, value)) + return data + except AttributeError: + return + + response, class_name = self._classify_target(target_obj, data) + + if isinstance(response, basestring): + return self.deserialize_data(data, response) + elif isinstance(response, type) and issubclass(response, Enum): + return self.deserialize_enum(data, response) + + if data is None: + return data + try: + attributes = response._attribute_map + d_attrs = {} + for attr, attr_desc in attributes.items(): + # Check empty string. If it's not empty, someone has a real "additionalProperties"... + if attr == "additional_properties" and attr_desc["key"] == "": + continue + raw_value = None + # Enhance attr_desc with some dynamic data + attr_desc = attr_desc.copy() # Do a copy, do not change the real one + internal_data_type = attr_desc["type"].strip("[]{}") + if internal_data_type in self.dependencies: + attr_desc["internalType"] = self.dependencies[internal_data_type] + + for key_extractor in self.key_extractors: + found_value = key_extractor(attr, attr_desc, data) + if found_value is not None: + if raw_value is not None and raw_value != found_value: + msg = ( + "Ignoring extracted value '%s' from %s for key '%s'" + " (duplicate extraction, follow extractors order)" + ) + _LOGGER.warning(msg, found_value, key_extractor, attr) + continue + raw_value = found_value + + value = self.deserialize_data(raw_value, attr_desc["type"]) + d_attrs[attr] = value + except (AttributeError, TypeError, KeyError) as err: + msg = "Unable to deserialize to object: " + class_name + raise_with_traceback(DeserializationError, msg, err) + else: + additional_properties = self._build_additional_properties(attributes, data) + return self._instantiate_model(response, d_attrs, additional_properties) + + def _build_additional_properties(self, attribute_map, data): + if not self.additional_properties_detection: + return None + if "additional_properties" in attribute_map and attribute_map.get("additional_properties", {}).get("key") != "": + # Check empty string. If it's not empty, someone has a real "additionalProperties" + return None + if isinstance(data, ET.Element): + data = {el.tag: el.text for el in data} + + known_keys = { + _decode_attribute_map_key(_FLATTEN.split(desc["key"])[0]) + for desc in attribute_map.values() + if desc["key"] != "" + } + present_keys = set(data.keys()) + missing_keys = present_keys - known_keys + return {key: data[key] for key in missing_keys} + + def _classify_target(self, target, data): + """Check to see whether the deserialization target object can + be classified into a subclass. + Once classification has been determined, initialize object. + + :param str target: The target object type to deserialize to. + :param str/dict data: The response data to deseralize. + """ + if target is None: + return None, None + + if isinstance(target, basestring): + try: + target = self.dependencies[target] + except KeyError: + return target, target + + try: + target = target._classify(data, self.dependencies) + except AttributeError: + pass # Target is not a Model, no classify + return target, target.__class__.__name__ + + def failsafe_deserialize(self, target_obj, data, content_type=None): + """Ignores any errors encountered in deserialization, + and falls back to not deserializing the object. Recommended + for use in error deserialization, as we want to return the + HttpResponseError to users, and not have them deal with + a deserialization error. + + :param str target_obj: The target object type to deserialize to. + :param str/dict data: The response data to deseralize. + :param str content_type: Swagger "produces" if available. + """ + try: + return self(target_obj, data, content_type=content_type) + except: + _LOGGER.warning( + "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True + ) + return None + + @staticmethod + def _unpack_content(raw_data, content_type=None): + """Extract the correct structure for deserialization. + + If raw_data is a PipelineResponse, try to extract the result of RawDeserializer. + if we can't, raise. Your Pipeline should have a RawDeserializer. + + If not a pipeline response and raw_data is bytes or string, use content-type + to decode it. If no content-type, try JSON. + + If raw_data is something else, bypass all logic and return it directly. + + :param raw_data: Data to be processed. + :param content_type: How to parse if raw_data is a string/bytes. + :raises JSONDecodeError: If JSON is requested and parsing is impossible. + :raises UnicodeDecodeError: If bytes is not UTF8 + """ + # Assume this is enough to detect a Pipeline Response without importing it + context = getattr(raw_data, "context", {}) + if context: + if RawDeserializer.CONTEXT_NAME in context: + return context[RawDeserializer.CONTEXT_NAME] + raise ValueError("This pipeline didn't have the RawDeserializer policy; can't deserialize") + + # Assume this is enough to recognize universal_http.ClientResponse without importing it + if hasattr(raw_data, "body"): + return RawDeserializer.deserialize_from_http_generics(raw_data.text(), raw_data.headers) + + # Assume this enough to recognize requests.Response without importing it. + if hasattr(raw_data, "_content_consumed"): + return RawDeserializer.deserialize_from_http_generics(raw_data.text, raw_data.headers) + + if isinstance(raw_data, (basestring, bytes)) or hasattr(raw_data, "read"): + return RawDeserializer.deserialize_from_text(raw_data, content_type) + return raw_data + + def _instantiate_model(self, response, attrs, additional_properties=None): + """Instantiate a response model passing in deserialized args. + + :param response: The response model class. + :param d_attrs: The deserialized response attributes. + """ + if callable(response): + subtype = getattr(response, "_subtype_map", {}) + try: + readonly = [k for k, v in response._validation.items() if v.get("readonly")] + const = [k for k, v in response._validation.items() if v.get("constant")] + kwargs = {k: v for k, v in attrs.items() if k not in subtype and k not in readonly + const} + response_obj = response(**kwargs) + for attr in readonly: + setattr(response_obj, attr, attrs.get(attr)) + if additional_properties: + response_obj.additional_properties = additional_properties + return response_obj + except TypeError as err: + msg = "Unable to deserialize {} into model {}. ".format(kwargs, response) + raise DeserializationError(msg + str(err)) + else: + try: + for attr, value in attrs.items(): + setattr(response, attr, value) + return response + except Exception as exp: + msg = "Unable to populate response model. " + msg += "Type: {}, Error: {}".format(type(response), exp) + raise DeserializationError(msg) + + def deserialize_data(self, data, data_type): + """Process data for deserialization according to data type. + + :param str data: The response string to be deserialized. + :param str data_type: The type to deserialize to. + :raises: DeserializationError if deserialization fails. + :return: Deserialized object. + """ + if data is None: + return data + + try: + if not data_type: + return data + if data_type in self.basic_types.values(): + return self.deserialize_basic(data, data_type) + if data_type in self.deserialize_type: + if isinstance(data, self.deserialize_expected_types.get(data_type, tuple())): + return data + + is_a_text_parsing_type = lambda x: x not in ["object", "[]", r"{}"] + if isinstance(data, ET.Element) and is_a_text_parsing_type(data_type) and not data.text: + return None + data_val = self.deserialize_type[data_type](data) + return data_val + + iter_type = data_type[0] + data_type[-1] + if iter_type in self.deserialize_type: + return self.deserialize_type[iter_type](data, data_type[1:-1]) + + obj_type = self.dependencies[data_type] + if issubclass(obj_type, Enum): + if isinstance(data, ET.Element): + data = data.text + return self.deserialize_enum(data, obj_type) + + except (ValueError, TypeError, AttributeError) as err: + msg = "Unable to deserialize response data." + msg += " Data: {}, {}".format(data, data_type) + raise_with_traceback(DeserializationError, msg, err) + else: + return self._deserialize(obj_type, data) + + def deserialize_iter(self, attr, iter_type): + """Deserialize an iterable. + + :param list attr: Iterable to be deserialized. + :param str iter_type: The type of object in the iterable. + :rtype: list + """ + if attr is None: + return None + if isinstance(attr, ET.Element): # If I receive an element here, get the children + attr = list(attr) + if not isinstance(attr, (list, set)): + raise DeserializationError("Cannot deserialize as [{}] an object of type {}".format(iter_type, type(attr))) + return [self.deserialize_data(a, iter_type) for a in attr] + + def deserialize_dict(self, attr, dict_type): + """Deserialize a dictionary. + + :param dict/list attr: Dictionary to be deserialized. Also accepts + a list of key, value pairs. + :param str dict_type: The object type of the items in the dictionary. + :rtype: dict + """ + if isinstance(attr, list): + return {x["key"]: self.deserialize_data(x["value"], dict_type) for x in attr} + + if isinstance(attr, ET.Element): + # Transform value into {"Key": "value"} + attr = {el.tag: el.text for el in attr} + return {k: self.deserialize_data(v, dict_type) for k, v in attr.items()} + + def deserialize_object(self, attr, **kwargs): + """Deserialize a generic object. + This will be handled as a dictionary. + + :param dict attr: Dictionary to be deserialized. + :rtype: dict + :raises: TypeError if non-builtin datatype encountered. + """ + if attr is None: + return None + if isinstance(attr, ET.Element): + # Do no recurse on XML, just return the tree as-is + return attr + if isinstance(attr, basestring): + return self.deserialize_basic(attr, "str") + obj_type = type(attr) + if obj_type in self.basic_types: + return self.deserialize_basic(attr, self.basic_types[obj_type]) + if obj_type is _long_type: + return self.deserialize_long(attr) + + if obj_type == dict: + deserialized = {} + for key, value in attr.items(): + try: + deserialized[key] = self.deserialize_object(value, **kwargs) + except ValueError: + deserialized[key] = None + return deserialized + + if obj_type == list: + deserialized = [] + for obj in attr: + try: + deserialized.append(self.deserialize_object(obj, **kwargs)) + except ValueError: + pass + return deserialized + + else: + error = "Cannot deserialize generic object with type: " + raise TypeError(error + str(obj_type)) + + def deserialize_basic(self, attr, data_type): + """Deserialize basic builtin data type from string. + Will attempt to convert to str, int, float and bool. + This function will also accept '1', '0', 'true' and 'false' as + valid bool values. + + :param str attr: response string to be deserialized. + :param str data_type: deserialization data type. + :rtype: str, int, float or bool + :raises: TypeError if string format is not valid. + """ + # If we're here, data is supposed to be a basic type. + # If it's still an XML node, take the text + if isinstance(attr, ET.Element): + attr = attr.text + if not attr: + if data_type == "str": + # None or '', node is empty string. + return "" + else: + # None or '', node with a strong type is None. + # Don't try to model "empty bool" or "empty int" + return None + + if data_type == "bool": + if attr in [True, False, 1, 0]: + return bool(attr) + elif isinstance(attr, basestring): + if attr.lower() in ["true", "1"]: + return True + elif attr.lower() in ["false", "0"]: + return False + raise TypeError("Invalid boolean value: {}".format(attr)) + + if data_type == "str": + return self.deserialize_unicode(attr) + return eval(data_type)(attr) # nosec + + @staticmethod + def deserialize_unicode(data): + """Preserve unicode objects in Python 2, otherwise return data + as a string. + + :param str data: response string to be deserialized. + :rtype: str or unicode + """ + # We might be here because we have an enum modeled as string, + # and we try to deserialize a partial dict with enum inside + if isinstance(data, Enum): + return data + + # Consider this is real string + try: + if isinstance(data, unicode): + return data + except NameError: + return str(data) + else: + return str(data) + + @staticmethod + def deserialize_enum(data, enum_obj): + """Deserialize string into enum object. + + If the string is not a valid enum value it will be returned as-is + and a warning will be logged. + + :param str data: Response string to be deserialized. If this value is + None or invalid it will be returned as-is. + :param Enum enum_obj: Enum object to deserialize to. + :rtype: Enum + """ + if isinstance(data, enum_obj) or data is None: + return data + if isinstance(data, Enum): + data = data.value + if isinstance(data, int): + # Workaround. We might consider remove it in the future. + # https://github.com/Azure/azure-rest-api-specs/issues/141 + try: + return list(enum_obj.__members__.values())[data] + except IndexError: + error = "{!r} is not a valid index for enum {!r}" + raise DeserializationError(error.format(data, enum_obj)) + try: + return enum_obj(str(data)) + except ValueError: + for enum_value in enum_obj: + if enum_value.value.lower() == str(data).lower(): + return enum_value + # We don't fail anymore for unknown value, we deserialize as a string + _LOGGER.warning("Deserializer is not able to find %s as valid enum in %s", data, enum_obj) + return Deserializer.deserialize_unicode(data) + + @staticmethod + def deserialize_bytearray(attr): + """Deserialize string into bytearray. + + :param str attr: response string to be deserialized. + :rtype: bytearray + :raises: TypeError if string format invalid. + """ + if isinstance(attr, ET.Element): + attr = attr.text + return bytearray(b64decode(attr)) + + @staticmethod + def deserialize_base64(attr): + """Deserialize base64 encoded string into string. + + :param str attr: response string to be deserialized. + :rtype: bytearray + :raises: TypeError if string format invalid. + """ + if isinstance(attr, ET.Element): + attr = attr.text + padding = "=" * (3 - (len(attr) + 3) % 4) + attr = attr + padding + encoded = attr.replace("-", "+").replace("_", "/") + return b64decode(encoded) + + @staticmethod + def deserialize_decimal(attr): + """Deserialize string into Decimal object. + + :param str attr: response string to be deserialized. + :rtype: Decimal + :raises: DeserializationError if string format invalid. + """ + if isinstance(attr, ET.Element): + attr = attr.text + try: + return decimal.Decimal(attr) + except decimal.DecimalException as err: + msg = "Invalid decimal {}".format(attr) + raise_with_traceback(DeserializationError, msg, err) + + @staticmethod + def deserialize_long(attr): + """Deserialize string into long (Py2) or int (Py3). + + :param str attr: response string to be deserialized. + :rtype: long or int + :raises: ValueError if string format invalid. + """ + if isinstance(attr, ET.Element): + attr = attr.text + return _long_type(attr) + + @staticmethod + def deserialize_duration(attr): + """Deserialize ISO-8601 formatted string into TimeDelta object. + + :param str attr: response string to be deserialized. + :rtype: TimeDelta + :raises: DeserializationError if string format invalid. + """ + if isinstance(attr, ET.Element): + attr = attr.text + try: + duration = isodate.parse_duration(attr) + except (ValueError, OverflowError, AttributeError) as err: + msg = "Cannot deserialize duration object." + raise_with_traceback(DeserializationError, msg, err) + else: + return duration + + @staticmethod + def deserialize_date(attr): + """Deserialize ISO-8601 formatted string into Date object. + + :param str attr: response string to be deserialized. + :rtype: Date + :raises: DeserializationError if string format invalid. + """ + if isinstance(attr, ET.Element): + attr = attr.text + if re.search(r"[^\W\d_]", attr, re.I + re.U): + raise DeserializationError("Date must have only digits and -. Received: %s" % attr) + # This must NOT use defaultmonth/defaultday. Using None ensure this raises an exception. + return isodate.parse_date(attr, defaultmonth=None, defaultday=None) + + @staticmethod + def deserialize_time(attr): + """Deserialize ISO-8601 formatted string into time object. + + :param str attr: response string to be deserialized. + :rtype: datetime.time + :raises: DeserializationError if string format invalid. + """ + if isinstance(attr, ET.Element): + attr = attr.text + if re.search(r"[^\W\d_]", attr, re.I + re.U): + raise DeserializationError("Date must have only digits and -. Received: %s" % attr) + return isodate.parse_time(attr) + + @staticmethod + def deserialize_rfc(attr): + """Deserialize RFC-1123 formatted string into Datetime object. + + :param str attr: response string to be deserialized. + :rtype: Datetime + :raises: DeserializationError if string format invalid. + """ + if isinstance(attr, ET.Element): + attr = attr.text + try: + parsed_date = email.utils.parsedate_tz(attr) + date_obj = datetime.datetime( + *parsed_date[:6], tzinfo=_FixedOffset(datetime.timedelta(minutes=(parsed_date[9] or 0) / 60)) + ) + if not date_obj.tzinfo: + date_obj = date_obj.astimezone(tz=TZ_UTC) + except ValueError as err: + msg = "Cannot deserialize to rfc datetime object." + raise_with_traceback(DeserializationError, msg, err) + else: + return date_obj + + @staticmethod + def deserialize_iso(attr): + """Deserialize ISO-8601 formatted string into Datetime object. + + :param str attr: response string to be deserialized. + :rtype: Datetime + :raises: DeserializationError if string format invalid. + """ + if isinstance(attr, ET.Element): + attr = attr.text + try: + attr = attr.upper() + match = Deserializer.valid_date.match(attr) + if not match: + raise ValueError("Invalid datetime string: " + attr) + + check_decimal = attr.split(".") + if len(check_decimal) > 1: + decimal_str = "" + for digit in check_decimal[1]: + if digit.isdigit(): + decimal_str += digit + else: + break + if len(decimal_str) > 6: + attr = attr.replace(decimal_str, decimal_str[0:6]) + + date_obj = isodate.parse_datetime(attr) + test_utc = date_obj.utctimetuple() + if test_utc.tm_year > 9999 or test_utc.tm_year < 1: + raise OverflowError("Hit max or min date") + except (ValueError, OverflowError, AttributeError) as err: + msg = "Cannot deserialize datetime object." + raise_with_traceback(DeserializationError, msg, err) + else: + return date_obj + + @staticmethod + def deserialize_unix(attr): + """Serialize Datetime object into IntTime format. + This is represented as seconds. + + :param int attr: Object to be serialized. + :rtype: Datetime + :raises: DeserializationError if format invalid + """ + if isinstance(attr, ET.Element): + attr = int(attr.text) + try: + date_obj = datetime.datetime.fromtimestamp(attr, TZ_UTC) + except ValueError as err: + msg = "Cannot deserialize to unix datetime object." + raise_with_traceback(DeserializationError, msg, err) + else: + return date_obj diff --git a/sdk/communication/azure-communication-identity/azure/communication/identity/_generated/_vendor.py b/sdk/communication/azure-communication-identity/azure/communication/identity/_generated/_vendor.py index 138f663c53a4..54f238858ed8 100644 --- a/sdk/communication/azure-communication-identity/azure/communication/identity/_generated/_vendor.py +++ b/sdk/communication/azure-communication-identity/azure/communication/identity/_generated/_vendor.py @@ -5,14 +5,6 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -from azure.core.pipeline.transport import HttpRequest - -def _convert_request(request, files=None): - data = request.content if not files else None - request = HttpRequest(method=request.method, url=request.url, headers=request.headers, data=data) - if files: - request.set_formdata_body(files) - return request def _format_url_section(template, **kwargs): components = template.split("/") @@ -21,7 +13,5 @@ def _format_url_section(template, **kwargs): return template.format(**kwargs) except KeyError as key: formatted_components = template.split("/") - components = [ - c for c in formatted_components if "{}".format(key.args[0]) not in c - ] + components = [c for c in formatted_components if "{}".format(key.args[0]) not in c] template = "/".join(components) diff --git a/sdk/communication/azure-communication-identity/azure/communication/identity/_generated/aio/__init__.py b/sdk/communication/azure-communication-identity/azure/communication/identity/_generated/aio/__init__.py index 84a8463cefb6..615062210c70 100644 --- a/sdk/communication/azure-communication-identity/azure/communication/identity/_generated/aio/__init__.py +++ b/sdk/communication/azure-communication-identity/azure/communication/identity/_generated/aio/__init__.py @@ -6,10 +6,16 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -from ._communication_identity_client import CommunicationIdentityClient -__all__ = ['CommunicationIdentityClient'] +from ._client import CommunicationIdentityClient -# `._patch.py` is used for handwritten extensions to the generated code -# Example: https://github.com/Azure/azure-sdk-for-python/blob/main/doc/dev/customize_code/how-to-patch-sdk-code.md -from ._patch import patch_sdk -patch_sdk() +try: + from ._patch import __all__ as _patch_all + from ._patch import * # type: ignore # pylint: disable=unused-wildcard-import +except ImportError: + _patch_all = [] +from ._patch import patch_sdk as _patch_sdk + +__all__ = ["CommunicationIdentityClient"] +__all__.extend([p for p in _patch_all if p not in __all__]) + +_patch_sdk() diff --git a/sdk/communication/azure-communication-identity/azure/communication/identity/_generated/aio/_client.py b/sdk/communication/azure-communication-identity/azure/communication/identity/_generated/aio/_client.py new file mode 100644 index 000000000000..12ece32b1ef1 --- /dev/null +++ b/sdk/communication/azure-communication-identity/azure/communication/identity/_generated/aio/_client.py @@ -0,0 +1,86 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from copy import deepcopy +from typing import Any, Awaitable, TYPE_CHECKING + +from azure.core import AsyncPipelineClient +from azure.core.rest import AsyncHttpResponse, HttpRequest + +from .._serialization import Deserializer, Serializer +from ._configuration import CommunicationIdentityClientConfiguration +from .operations import CommunicationIdentityOperations + +if TYPE_CHECKING: + # pylint: disable=unused-import,ungrouped-imports + from typing import Dict + + +class CommunicationIdentityClient: # pylint: disable=client-accepts-api-version-keyword + """Azure Communication Identity Service. + + :ivar communication_identity: CommunicationIdentityOperations operations + :vartype communication_identity: + azure.communication.identity.aio.operations.CommunicationIdentityOperations + :param endpoint: The communication resource, for example + https://my-resource.communication.azure.com. Required. + :type endpoint: str + :keyword api_version: Api Version. Default value is "2022-10-01". Note that overriding this + default value may result in unsupported behavior. + :paramtype api_version: str + """ + + def __init__( # pylint: disable=missing-client-constructor-parameter-credential + self, endpoint: str, **kwargs: Any + ) -> None: + _endpoint = "{endpoint}" + self._config = CommunicationIdentityClientConfiguration(endpoint=endpoint, **kwargs) + self._client = AsyncPipelineClient(base_url=_endpoint, config=self._config, **kwargs) + + self._serialize = Serializer() + self._deserialize = Deserializer() + self._serialize.client_side_validation = False + self.communication_identity = CommunicationIdentityOperations( + self._client, self._config, self._serialize, self._deserialize + ) + + def send_request(self, request: HttpRequest, **kwargs: Any) -> Awaitable[AsyncHttpResponse]: + """Runs the network request through the client's chained policies. + + >>> from azure.core.rest import HttpRequest + >>> request = HttpRequest("GET", "https://www.example.org/") + + >>> response = await client.send_request(request) + + + For more information on this code flow, see https://aka.ms/azsdk/dpcodegen/python/send_request + + :param request: The network request you want to make. Required. + :type request: ~azure.core.rest.HttpRequest + :keyword bool stream: Whether the response payload will be streamed. Defaults to False. + :return: The response of your network call. Does not do error handling on your response. + :rtype: ~azure.core.rest.AsyncHttpResponse + """ + + request_copy = deepcopy(request) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.endpoint", self._config.endpoint, "str", skip_quote=True), + } + + request_copy.url = self._client.format_url(request_copy.url, **path_format_arguments) + return self._client.send_request(request_copy, **kwargs) + + async def close(self) -> None: + await self._client.close() + + async def __aenter__(self) -> "CommunicationIdentityClient": + await self._client.__aenter__() + return self + + async def __aexit__(self, *exc_details) -> None: + await self._client.__aexit__(*exc_details) diff --git a/sdk/communication/azure-communication-identity/azure/communication/identity/_generated/aio/_configuration.py b/sdk/communication/azure-communication-identity/azure/communication/identity/_generated/aio/_configuration.py index 690a6e05a8f3..d7cbff396f1f 100644 --- a/sdk/communication/azure-communication-identity/azure/communication/identity/_generated/aio/_configuration.py +++ b/sdk/communication/azure-communication-identity/azure/communication/identity/_generated/aio/_configuration.py @@ -20,9 +20,9 @@ class CommunicationIdentityClientConfiguration(Configuration): # pylint: disabl attributes. :param endpoint: The communication resource, for example - https://my-resource.communication.azure.com. + https://my-resource.communication.azure.com. Required. :type endpoint: str - :keyword api_version: Api Version. Default value is "2022-06-01". Note that overriding this + :keyword api_version: Api Version. Default value is "2022-10-01". Note that overriding this default value may result in unsupported behavior. :paramtype api_version: str """ @@ -31,9 +31,9 @@ def __init__( self, endpoint: str, **kwargs: Any - ) -> None: + ) -> None: super(CommunicationIdentityClientConfiguration, self).__init__(**kwargs) - api_version = kwargs.pop('api_version', "2022-06-01") # type: str + api_version = kwargs.pop("api_version", "2022-10-01") # type: str if endpoint is None: raise ValueError("Parameter 'endpoint' must not be None.") @@ -46,7 +46,7 @@ def __init__( def _configure( self, **kwargs: Any - ) -> None: + ) -> None: self.user_agent_policy = kwargs.get('user_agent_policy') or policies.UserAgentPolicy(**kwargs) self.headers_policy = kwargs.get('headers_policy') or policies.HeadersPolicy(**kwargs) self.proxy_policy = kwargs.get('proxy_policy') or policies.ProxyPolicy(**kwargs) diff --git a/sdk/communication/azure-communication-identity/azure/communication/identity/_generated/aio/operations/__init__.py b/sdk/communication/azure-communication-identity/azure/communication/identity/_generated/aio/operations/__init__.py index 09dd0f2d0661..7120e3fb0cca 100644 --- a/sdk/communication/azure-communication-identity/azure/communication/identity/_generated/aio/operations/__init__.py +++ b/sdk/communication/azure-communication-identity/azure/communication/identity/_generated/aio/operations/__init__.py @@ -6,8 +6,14 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -from ._communication_identity_operations import CommunicationIdentityOperations +from ._operations import CommunicationIdentityOperations + +from ._patch import __all__ as _patch_all +from ._patch import * # type: ignore # pylint: disable=unused-wildcard-import +from ._patch import patch_sdk as _patch_sdk __all__ = [ - 'CommunicationIdentityOperations', + "CommunicationIdentityOperations", ] +__all__.extend([p for p in _patch_all if p not in __all__]) +_patch_sdk() diff --git a/sdk/communication/azure-communication-identity/azure/communication/identity/_generated/aio/operations/_operations.py b/sdk/communication/azure-communication-identity/azure/communication/identity/_generated/aio/operations/_operations.py new file mode 100644 index 000000000000..e4226d5f826b --- /dev/null +++ b/sdk/communication/azure-communication-identity/azure/communication/identity/_generated/aio/operations/_operations.py @@ -0,0 +1,609 @@ +# pylint: disable=too-many-lines +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- +import sys +from typing import Any, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload + +from azure.core.exceptions import ( + ClientAuthenticationError, + HttpResponseError, + ResourceExistsError, + ResourceNotFoundError, + map_error, +) +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import AsyncHttpResponse +from azure.core.rest import HttpRequest +from azure.core.tracing.decorator_async import distributed_trace_async +from azure.core.utils import case_insensitive_dict + +from ...operations._operations import ( + build_communication_identity_create_request, + build_communication_identity_delete_request, + build_communication_identity_exchange_teams_user_access_token_request, + build_communication_identity_issue_access_token_request, + build_communication_identity_revoke_access_tokens_request, +) + +if sys.version_info >= (3, 9): + from collections.abc import MutableMapping +else: + from typing import MutableMapping # type: ignore # pylint: disable=ungrouped-imports +JSON = MutableMapping[str, Any] # pylint: disable=unsubscriptable-object +T = TypeVar("T") +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] + + +class CommunicationIdentityOperations: + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.communication.identity.aio.CommunicationIdentityClient`'s + :attr:`communication_identity` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client = input_args.pop(0) if input_args else kwargs.pop("client") + self._config = input_args.pop(0) if input_args else kwargs.pop("config") + self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @overload + async def create( + self, body: Optional[JSON] = None, *, content_type: str = "application/json", **kwargs: Any + ) -> JSON: + """Create a new identity, and optionally, an access token. + + Create a new identity, and optionally, an access token. + + :param body: If specified, creates also a Communication Identity access token associated with + the identity and containing the requested scopes. Default value is None. + :type body: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: JSON object + :rtype: JSON + :raises ~azure.core.exceptions.HttpResponseError: + + Example: + .. code-block:: python + + # JSON input template you can fill out and use as your body input. + body = { + "createTokenWithScopes": [ + "str" # Optional. Also create access token for the created identity. + ], + "expiresInMinutes": 1440 # Optional. Default value is 1440. Optional custom + validity period of the token within [60,1440] minutes range. If not provided, the + default value of 1440 minutes (24 hours) will be used. + } + + # response body for status code(s): 201 + response == { + "identity": { + "id": "str" # Identifier of the identity. Required. + }, + "accessToken": { + "expiresOn": "2020-02-20 00:00:00", # The expiry time of the token. + Required. + "token": "str" # The access token issued for the identity. Required. + } + } + """ + + @overload + async def create(self, body: Optional[IO] = None, *, content_type: str = "application/json", **kwargs: Any) -> JSON: + """Create a new identity, and optionally, an access token. + + Create a new identity, and optionally, an access token. + + :param body: If specified, creates also a Communication Identity access token associated with + the identity and containing the requested scopes. Default value is None. + :type body: IO + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: JSON object + :rtype: JSON + :raises ~azure.core.exceptions.HttpResponseError: + + Example: + .. code-block:: python + + # response body for status code(s): 201 + response == { + "identity": { + "id": "str" # Identifier of the identity. Required. + }, + "accessToken": { + "expiresOn": "2020-02-20 00:00:00", # The expiry time of the token. + Required. + "token": "str" # The access token issued for the identity. Required. + } + } + """ + + @distributed_trace_async + async def create(self, body: Optional[Union[JSON, IO]] = None, **kwargs: Any) -> JSON: + """Create a new identity, and optionally, an access token. + + Create a new identity, and optionally, an access token. + + :param body: If specified, creates also a Communication Identity access token associated with + the identity and containing the requested scopes. Is either a model type or a IO type. Default + value is None. + :type body: JSON or IO + :keyword content_type: Body Parameter content-type. Known values are: 'application/json'. + Default value is None. + :paramtype content_type: str + :return: JSON object + :rtype: JSON + :raises ~azure.core.exceptions.HttpResponseError: + + Example: + .. code-block:: python + + # response body for status code(s): 201 + response == { + "identity": { + "id": "str" # Identifier of the identity. Required. + }, + "accessToken": { + "expiresOn": "2020-02-20 00:00:00", # The expiry time of the token. + Required. + "token": "str" # The access token issued for the identity. Required. + } + } + """ + error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} + error_map.update(kwargs.pop("error_map", {}) or {}) + + kwargs.pop("api_version", "2022-10-01") + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type = kwargs.pop("content_type", _headers.pop("Content-Type", None)) # type: Optional[str] + cls = kwargs.pop("cls", None) # type: ClsType[JSON] + + content_type = content_type or "application/json" + _json = None + _content = None + if isinstance(body, (IO, bytes)): + _content = body + else: + if body is not None: + _json = body + else: + _json = None + + request = build_communication_identity_create_request( + content_type=content_type, + api_version=self._config.api_version, + json=_json, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.endpoint", self._config.endpoint, "str", skip_quote=True), + } + request.url = self._client.format_url(request.url, **path_format_arguments) # type: ignore + + pipeline_response = await self._client._pipeline.run( # type: ignore # pylint: disable=protected-access + request, stream=False, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [201]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response) + + if response.content: + deserialized = response.json() + else: + deserialized = None + + if cls: + return cls(pipeline_response, cast(JSON, deserialized), {}) + + return cast(JSON, deserialized) + + @distributed_trace_async + async def delete(self, id: str, **kwargs: Any) -> None: # pylint: disable=inconsistent-return-statements + """Delete the identity, revoke all tokens for the identity and delete all associated data. + + Delete the identity, revoke all tokens for the identity and delete all associated data. + + :param id: Identifier of the identity to be deleted. Required. + :type id: str + :return: None + :rtype: None + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} + error_map.update(kwargs.pop("error_map", {}) or {}) + + kwargs.pop("api_version", "2022-10-01") + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls = kwargs.pop("cls", None) # type: ClsType[None] + + request = build_communication_identity_delete_request( + id=id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.endpoint", self._config.endpoint, "str", skip_quote=True), + } + request.url = self._client.format_url(request.url, **path_format_arguments) # type: ignore + + pipeline_response = await self._client._pipeline.run( # type: ignore # pylint: disable=protected-access + request, stream=False, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [204]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response) + + if cls: + return cls(pipeline_response, None, {}) + + @distributed_trace_async + async def revoke_access_tokens( # pylint: disable=inconsistent-return-statements + self, id: str, **kwargs: Any + ) -> None: + """Revoke all access tokens for the specific identity. + + Revoke all access tokens for the specific identity. + + :param id: Identifier of the identity. Required. + :type id: str + :return: None + :rtype: None + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} + error_map.update(kwargs.pop("error_map", {}) or {}) + + kwargs.pop("api_version", "2022-10-01") + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls = kwargs.pop("cls", None) # type: ClsType[None] + + request = build_communication_identity_revoke_access_tokens_request( + id=id, + api_version=self._config.api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.endpoint", self._config.endpoint, "str", skip_quote=True), + } + request.url = self._client.format_url(request.url, **path_format_arguments) # type: ignore + + pipeline_response = await self._client._pipeline.run( # type: ignore # pylint: disable=protected-access + request, stream=False, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [204]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response) + + if cls: + return cls(pipeline_response, None, {}) + + @overload + async def exchange_teams_user_access_token( + self, body: JSON, *, content_type: str = "application/json", **kwargs: Any + ) -> JSON: + """Exchange an Azure Active Directory (Azure AD) access token of a Teams user for a new + Communication Identity access token with a matching expiration time. + + Exchange an Azure Active Directory (Azure AD) access token of a Teams user for a new + Communication Identity access token with a matching expiration time. + + :param body: Request payload for the token exchange. Required. + :type body: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: JSON object + :rtype: JSON + :raises ~azure.core.exceptions.HttpResponseError: + + Example: + .. code-block:: python + + # JSON input template you can fill out and use as your body input. + body = { + "appId": "str", # Client ID of an Azure AD application to be verified + against the appid claim in the Azure AD access token. Required. + "token": "str", # Azure AD access token of a Teams User to acquire a new + Communication Identity access token. Required. + "userId": "str" # Object ID of an Azure AD user (Teams User) to be verified + against the oid claim in the Azure AD access token. Required. + } + + # response body for status code(s): 200 + response == { + "expiresOn": "2020-02-20 00:00:00", # The expiry time of the token. + Required. + "token": "str" # The access token issued for the identity. Required. + } + """ + + @overload + async def exchange_teams_user_access_token( + self, body: IO, *, content_type: str = "application/json", **kwargs: Any + ) -> JSON: + """Exchange an Azure Active Directory (Azure AD) access token of a Teams user for a new + Communication Identity access token with a matching expiration time. + + Exchange an Azure Active Directory (Azure AD) access token of a Teams user for a new + Communication Identity access token with a matching expiration time. + + :param body: Request payload for the token exchange. Required. + :type body: IO + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: JSON object + :rtype: JSON + :raises ~azure.core.exceptions.HttpResponseError: + + Example: + .. code-block:: python + + # response body for status code(s): 200 + response == { + "expiresOn": "2020-02-20 00:00:00", # The expiry time of the token. + Required. + "token": "str" # The access token issued for the identity. Required. + } + """ + + @distributed_trace_async + async def exchange_teams_user_access_token(self, body: Union[JSON, IO], **kwargs: Any) -> JSON: + """Exchange an Azure Active Directory (Azure AD) access token of a Teams user for a new + Communication Identity access token with a matching expiration time. + + Exchange an Azure Active Directory (Azure AD) access token of a Teams user for a new + Communication Identity access token with a matching expiration time. + + :param body: Request payload for the token exchange. Is either a model type or a IO type. + Required. + :type body: JSON or IO + :keyword content_type: Body Parameter content-type. Known values are: 'application/json'. + Default value is None. + :paramtype content_type: str + :return: JSON object + :rtype: JSON + :raises ~azure.core.exceptions.HttpResponseError: + + Example: + .. code-block:: python + + # response body for status code(s): 200 + response == { + "expiresOn": "2020-02-20 00:00:00", # The expiry time of the token. + Required. + "token": "str" # The access token issued for the identity. Required. + } + """ + error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} + error_map.update(kwargs.pop("error_map", {}) or {}) + + kwargs.pop("api_version", "2022-10-01") + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type = kwargs.pop("content_type", _headers.pop("Content-Type", None)) # type: Optional[str] + cls = kwargs.pop("cls", None) # type: ClsType[JSON] + + content_type = content_type or "application/json" + _json = None + _content = None + if isinstance(body, (IO, bytes)): + _content = body + else: + _json = body + + request = build_communication_identity_exchange_teams_user_access_token_request( + content_type=content_type, + api_version=self._config.api_version, + json=_json, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.endpoint", self._config.endpoint, "str", skip_quote=True), + } + request.url = self._client.format_url(request.url, **path_format_arguments) # type: ignore + + pipeline_response = await self._client._pipeline.run( # type: ignore # pylint: disable=protected-access + request, stream=False, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response) + + if response.content: + deserialized = response.json() + else: + deserialized = None + + if cls: + return cls(pipeline_response, cast(JSON, deserialized), {}) + + return cast(JSON, deserialized) + + @overload + async def issue_access_token( + self, id: str, body: JSON, *, content_type: str = "application/json", **kwargs: Any + ) -> JSON: + """Issue a new token for an identity. + + Issue a new token for an identity. + + :param id: Identifier of the identity to issue token for. Required. + :type id: str + :param body: Requested scopes for the new token. Required. + :type body: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: JSON object + :rtype: JSON + :raises ~azure.core.exceptions.HttpResponseError: + + Example: + .. code-block:: python + + # JSON input template you can fill out and use as your body input. + body = { + "scopes": [ + "str" # List of scopes attached to the token. Required. + ], + "expiresInMinutes": 1440 # Optional. Default value is 1440. Optional custom + validity period of the token within [60,1440] minutes range. If not provided, the + default value of 1440 minutes (24 hours) will be used. + } + + # response body for status code(s): 200 + response == { + "expiresOn": "2020-02-20 00:00:00", # The expiry time of the token. + Required. + "token": "str" # The access token issued for the identity. Required. + } + """ + + @overload + async def issue_access_token( + self, id: str, body: IO, *, content_type: str = "application/json", **kwargs: Any + ) -> JSON: + """Issue a new token for an identity. + + Issue a new token for an identity. + + :param id: Identifier of the identity to issue token for. Required. + :type id: str + :param body: Requested scopes for the new token. Required. + :type body: IO + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: JSON object + :rtype: JSON + :raises ~azure.core.exceptions.HttpResponseError: + + Example: + .. code-block:: python + + # response body for status code(s): 200 + response == { + "expiresOn": "2020-02-20 00:00:00", # The expiry time of the token. + Required. + "token": "str" # The access token issued for the identity. Required. + } + """ + + @distributed_trace_async + async def issue_access_token(self, id: str, body: Union[JSON, IO], **kwargs: Any) -> JSON: + """Issue a new token for an identity. + + Issue a new token for an identity. + + :param id: Identifier of the identity to issue token for. Required. + :type id: str + :param body: Requested scopes for the new token. Is either a model type or a IO type. Required. + :type body: JSON or IO + :keyword content_type: Body Parameter content-type. Known values are: 'application/json'. + Default value is None. + :paramtype content_type: str + :return: JSON object + :rtype: JSON + :raises ~azure.core.exceptions.HttpResponseError: + + Example: + .. code-block:: python + + # response body for status code(s): 200 + response == { + "expiresOn": "2020-02-20 00:00:00", # The expiry time of the token. + Required. + "token": "str" # The access token issued for the identity. Required. + } + """ + error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} + error_map.update(kwargs.pop("error_map", {}) or {}) + + kwargs.pop("api_version", "2022-10-01") + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type = kwargs.pop("content_type", _headers.pop("Content-Type", None)) # type: Optional[str] + cls = kwargs.pop("cls", None) # type: ClsType[JSON] + + content_type = content_type or "application/json" + _json = None + _content = None + if isinstance(body, (IO, bytes)): + _content = body + else: + _json = body + + request = build_communication_identity_issue_access_token_request( + id=id, + content_type=content_type, + api_version=self._config.api_version, + json=_json, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.endpoint", self._config.endpoint, "str", skip_quote=True), + } + request.url = self._client.format_url(request.url, **path_format_arguments) # type: ignore + + pipeline_response = await self._client._pipeline.run( # type: ignore # pylint: disable=protected-access + request, stream=False, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response) + + if response.content: + deserialized = response.json() + else: + deserialized = None + + if cls: + return cls(pipeline_response, cast(JSON, deserialized), {}) + + return cast(JSON, deserialized) diff --git a/sdk/communication/azure-communication-identity/azure/communication/identity/_generated/aio/operations/_patch.py b/sdk/communication/azure-communication-identity/azure/communication/identity/_generated/aio/operations/_patch.py new file mode 100644 index 000000000000..f7dd32510333 --- /dev/null +++ b/sdk/communication/azure-communication-identity/azure/communication/identity/_generated/aio/operations/_patch.py @@ -0,0 +1,20 @@ +# ------------------------------------ +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT License. +# ------------------------------------ +"""Customize generated code here. + +Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize +""" +from typing import List + +__all__: List[str] = [] # Add all objects you want publicly available to users at this package level + + +def patch_sdk(): + """Do not remove from this file. + + `patch_sdk` is a last resort escape hatch that allows you to do customizations + you can't accomplish using the techniques described in + https://aka.ms/azsdk/python/dpcodegen/python/customize + """ diff --git a/sdk/communication/azure-communication-identity/azure/communication/identity/_generated/operations/__init__.py b/sdk/communication/azure-communication-identity/azure/communication/identity/_generated/operations/__init__.py index 09dd0f2d0661..7120e3fb0cca 100644 --- a/sdk/communication/azure-communication-identity/azure/communication/identity/_generated/operations/__init__.py +++ b/sdk/communication/azure-communication-identity/azure/communication/identity/_generated/operations/__init__.py @@ -6,8 +6,14 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -from ._communication_identity_operations import CommunicationIdentityOperations +from ._operations import CommunicationIdentityOperations + +from ._patch import __all__ as _patch_all +from ._patch import * # type: ignore # pylint: disable=unused-wildcard-import +from ._patch import patch_sdk as _patch_sdk __all__ = [ - 'CommunicationIdentityOperations', + "CommunicationIdentityOperations", ] +__all__.extend([p for p in _patch_all if p not in __all__]) +_patch_sdk() diff --git a/sdk/communication/azure-communication-identity/azure/communication/identity/_generated/operations/_operations.py b/sdk/communication/azure-communication-identity/azure/communication/identity/_generated/operations/_operations.py new file mode 100644 index 000000000000..48b4a889a326 --- /dev/null +++ b/sdk/communication/azure-communication-identity/azure/communication/identity/_generated/operations/_operations.py @@ -0,0 +1,718 @@ +# pylint: disable=too-many-lines +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- +import sys +from typing import Any, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload + +from azure.core.exceptions import ( + ClientAuthenticationError, + HttpResponseError, + ResourceExistsError, + ResourceNotFoundError, + map_error, +) +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import HttpResponse +from azure.core.rest import HttpRequest +from azure.core.tracing.decorator import distributed_trace +from azure.core.utils import case_insensitive_dict + +from .._serialization import Serializer +from .._vendor import _format_url_section + +if sys.version_info >= (3, 9): + from collections.abc import MutableMapping +else: + from typing import MutableMapping # type: ignore # pylint: disable=ungrouped-imports +JSON = MutableMapping[str, Any] # pylint: disable=unsubscriptable-object +T = TypeVar("T") +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] + +_SERIALIZER = Serializer() +_SERIALIZER.client_side_validation = False + + +def build_communication_identity_create_request(**kwargs: Any) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + content_type = kwargs.pop("content_type", _headers.pop("Content-Type", None)) # type: Optional[str] + api_version = kwargs.pop("api_version", _params.pop("api-version", "2022-10-01")) # type: str + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/identities" + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + if content_type is not None: + _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_communication_identity_delete_request(id: str, **kwargs: Any) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version = kwargs.pop("api_version", _params.pop("api-version", "2022-10-01")) # type: str + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/identities/{id}" + path_format_arguments = { + "id": _SERIALIZER.url("id", id, "str"), + } + + _url = _format_url_section(_url, **path_format_arguments) + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_communication_identity_revoke_access_tokens_request(id: str, **kwargs: Any) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version = kwargs.pop("api_version", _params.pop("api-version", "2022-10-01")) # type: str + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/identities/{id}/:revokeAccessTokens" + path_format_arguments = { + "id": _SERIALIZER.url("id", id, "str"), + } + + _url = _format_url_section(_url, **path_format_arguments) + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_communication_identity_exchange_teams_user_access_token_request(**kwargs: Any) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + content_type = kwargs.pop("content_type", _headers.pop("Content-Type", None)) # type: Optional[str] + api_version = kwargs.pop("api_version", _params.pop("api-version", "2022-10-01")) # type: str + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/teamsUser/:exchangeAccessToken" + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + if content_type is not None: + _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_communication_identity_issue_access_token_request(id: str, **kwargs: Any) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + content_type = kwargs.pop("content_type", _headers.pop("Content-Type", None)) # type: Optional[str] + api_version = kwargs.pop("api_version", _params.pop("api-version", "2022-10-01")) # type: str + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/identities/{id}/:issueAccessToken" + path_format_arguments = { + "id": _SERIALIZER.url("id", id, "str"), + } + + _url = _format_url_section(_url, **path_format_arguments) + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + if content_type is not None: + _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) + + +class CommunicationIdentityOperations: + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.communication.identity.CommunicationIdentityClient`'s + :attr:`communication_identity` attribute. + """ + + def __init__(self, *args, **kwargs): + input_args = list(args) + self._client = input_args.pop(0) if input_args else kwargs.pop("client") + self._config = input_args.pop(0) if input_args else kwargs.pop("config") + self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @overload + def create(self, body: Optional[JSON] = None, *, content_type: str = "application/json", **kwargs: Any) -> JSON: + """Create a new identity, and optionally, an access token. + + Create a new identity, and optionally, an access token. + + :param body: If specified, creates also a Communication Identity access token associated with + the identity and containing the requested scopes. Default value is None. + :type body: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: JSON object + :rtype: JSON + :raises ~azure.core.exceptions.HttpResponseError: + + Example: + .. code-block:: python + + # JSON input template you can fill out and use as your body input. + body = { + "createTokenWithScopes": [ + "str" # Optional. Also create access token for the created identity. + ], + "expiresInMinutes": 1440 # Optional. Default value is 1440. Optional custom + validity period of the token within [60,1440] minutes range. If not provided, the + default value of 1440 minutes (24 hours) will be used. + } + + # response body for status code(s): 201 + response == { + "identity": { + "id": "str" # Identifier of the identity. Required. + }, + "accessToken": { + "expiresOn": "2020-02-20 00:00:00", # The expiry time of the token. + Required. + "token": "str" # The access token issued for the identity. Required. + } + } + """ + + @overload + def create(self, body: Optional[IO] = None, *, content_type: str = "application/json", **kwargs: Any) -> JSON: + """Create a new identity, and optionally, an access token. + + Create a new identity, and optionally, an access token. + + :param body: If specified, creates also a Communication Identity access token associated with + the identity and containing the requested scopes. Default value is None. + :type body: IO + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: JSON object + :rtype: JSON + :raises ~azure.core.exceptions.HttpResponseError: + + Example: + .. code-block:: python + + # response body for status code(s): 201 + response == { + "identity": { + "id": "str" # Identifier of the identity. Required. + }, + "accessToken": { + "expiresOn": "2020-02-20 00:00:00", # The expiry time of the token. + Required. + "token": "str" # The access token issued for the identity. Required. + } + } + """ + + @distributed_trace + def create(self, body: Optional[Union[JSON, IO]] = None, **kwargs: Any) -> JSON: + """Create a new identity, and optionally, an access token. + + Create a new identity, and optionally, an access token. + + :param body: If specified, creates also a Communication Identity access token associated with + the identity and containing the requested scopes. Is either a model type or a IO type. Default + value is None. + :type body: JSON or IO + :keyword content_type: Body Parameter content-type. Known values are: 'application/json'. + Default value is None. + :paramtype content_type: str + :return: JSON object + :rtype: JSON + :raises ~azure.core.exceptions.HttpResponseError: + + Example: + .. code-block:: python + + # response body for status code(s): 201 + response == { + "identity": { + "id": "str" # Identifier of the identity. Required. + }, + "accessToken": { + "expiresOn": "2020-02-20 00:00:00", # The expiry time of the token. + Required. + "token": "str" # The access token issued for the identity. Required. + } + } + """ + error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} + error_map.update(kwargs.pop("error_map", {}) or {}) + + api_version = kwargs.pop("api_version", self._config.api_version) + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type = kwargs.pop("content_type", _headers.pop("Content-Type", None)) # type: Optional[str] + cls = kwargs.pop("cls", None) # type: ClsType[JSON] + + content_type = content_type or "application/json" + _json = None + _content = None + if isinstance(body, (IO, bytes)): + _content = body + else: + if body is not None: + _json = body + else: + _json = None + + request = build_communication_identity_create_request( + content_type=content_type, + api_version=api_version, + json=_json, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.endpoint", self._config.endpoint, "str", skip_quote=True), + } + request.url = self._client.format_url(request.url, **path_format_arguments) # type: ignore + + pipeline_response = self._client._pipeline.run( # type: ignore # pylint: disable=protected-access + request, stream=False, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [201]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response) + + if response.content: + deserialized = response.json() + else: + deserialized = None + + if cls: + return cls(pipeline_response, cast(JSON, deserialized), {}) + + return cast(JSON, deserialized) + + @distributed_trace + def delete(self, id: str, **kwargs: Any) -> None: # pylint: disable=inconsistent-return-statements + """Delete the identity, revoke all tokens for the identity and delete all associated data. + + Delete the identity, revoke all tokens for the identity and delete all associated data. + + :param id: Identifier of the identity to be deleted. Required. + :type id: str + :return: None + :rtype: None + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} + error_map.update(kwargs.pop("error_map", {}) or {}) + + api_version = kwargs.pop("api_version", self._config.api_version) + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls = kwargs.pop("cls", None) # type: ClsType[None] + + request = build_communication_identity_delete_request( + id=id, + api_version=api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.endpoint", self._config.endpoint, "str", skip_quote=True), + } + request.url = self._client.format_url(request.url, **path_format_arguments) # type: ignore + + pipeline_response = self._client._pipeline.run( # type: ignore # pylint: disable=protected-access + request, stream=False, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [204]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response) + + if cls: + return cls(pipeline_response, None, {}) + + @distributed_trace + def revoke_access_tokens(self, id: str, **kwargs: Any) -> None: # pylint: disable=inconsistent-return-statements + """Revoke all access tokens for the specific identity. + + Revoke all access tokens for the specific identity. + + :param id: Identifier of the identity. Required. + :type id: str + :return: None + :rtype: None + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} + error_map.update(kwargs.pop("error_map", {}) or {}) + + api_version = kwargs.pop("api_version", self._config.api_version) + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls = kwargs.pop("cls", None) # type: ClsType[None] + + request = build_communication_identity_revoke_access_tokens_request( + id=id, + api_version=api_version, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.endpoint", self._config.endpoint, "str", skip_quote=True), + } + request.url = self._client.format_url(request.url, **path_format_arguments) # type: ignore + + pipeline_response = self._client._pipeline.run( # type: ignore # pylint: disable=protected-access + request, stream=False, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [204]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response) + + if cls: + return cls(pipeline_response, None, {}) + + @overload + def exchange_teams_user_access_token( + self, body: JSON, *, content_type: str = "application/json", **kwargs: Any + ) -> JSON: + """Exchange an Azure Active Directory (Azure AD) access token of a Teams user for a new + Communication Identity access token with a matching expiration time. + + Exchange an Azure Active Directory (Azure AD) access token of a Teams user for a new + Communication Identity access token with a matching expiration time. + + :param body: Request payload for the token exchange. Required. + :type body: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: JSON object + :rtype: JSON + :raises ~azure.core.exceptions.HttpResponseError: + + Example: + .. code-block:: python + + # JSON input template you can fill out and use as your body input. + body = { + "appId": "str", # Client ID of an Azure AD application to be verified + against the appid claim in the Azure AD access token. Required. + "token": "str", # Azure AD access token of a Teams User to acquire a new + Communication Identity access token. Required. + "userId": "str" # Object ID of an Azure AD user (Teams User) to be verified + against the oid claim in the Azure AD access token. Required. + } + + # response body for status code(s): 200 + response == { + "expiresOn": "2020-02-20 00:00:00", # The expiry time of the token. + Required. + "token": "str" # The access token issued for the identity. Required. + } + """ + + @overload + def exchange_teams_user_access_token( + self, body: IO, *, content_type: str = "application/json", **kwargs: Any + ) -> JSON: + """Exchange an Azure Active Directory (Azure AD) access token of a Teams user for a new + Communication Identity access token with a matching expiration time. + + Exchange an Azure Active Directory (Azure AD) access token of a Teams user for a new + Communication Identity access token with a matching expiration time. + + :param body: Request payload for the token exchange. Required. + :type body: IO + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: JSON object + :rtype: JSON + :raises ~azure.core.exceptions.HttpResponseError: + + Example: + .. code-block:: python + + # response body for status code(s): 200 + response == { + "expiresOn": "2020-02-20 00:00:00", # The expiry time of the token. + Required. + "token": "str" # The access token issued for the identity. Required. + } + """ + + @distributed_trace + def exchange_teams_user_access_token(self, body: Union[JSON, IO], **kwargs: Any) -> JSON: + """Exchange an Azure Active Directory (Azure AD) access token of a Teams user for a new + Communication Identity access token with a matching expiration time. + + Exchange an Azure Active Directory (Azure AD) access token of a Teams user for a new + Communication Identity access token with a matching expiration time. + + :param body: Request payload for the token exchange. Is either a model type or a IO type. + Required. + :type body: JSON or IO + :keyword content_type: Body Parameter content-type. Known values are: 'application/json'. + Default value is None. + :paramtype content_type: str + :return: JSON object + :rtype: JSON + :raises ~azure.core.exceptions.HttpResponseError: + + Example: + .. code-block:: python + + # response body for status code(s): 200 + response == { + "expiresOn": "2020-02-20 00:00:00", # The expiry time of the token. + Required. + "token": "str" # The access token issued for the identity. Required. + } + """ + error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} + error_map.update(kwargs.pop("error_map", {}) or {}) + + api_version = kwargs.pop("api_version", self._config.api_version) + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type = kwargs.pop("content_type", _headers.pop("Content-Type", None)) # type: Optional[str] + cls = kwargs.pop("cls", None) # type: ClsType[JSON] + + content_type = content_type or "application/json" + _json = None + _content = None + if isinstance(body, (IO, bytes)): + _content = body + else: + _json = body + + request = build_communication_identity_exchange_teams_user_access_token_request( + content_type=content_type, + api_version=api_version, + json=_json, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.endpoint", self._config.endpoint, "str", skip_quote=True), + } + request.url = self._client.format_url(request.url, **path_format_arguments) # type: ignore + + pipeline_response = self._client._pipeline.run( # type: ignore # pylint: disable=protected-access + request, stream=False, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response) + + if response.content: + deserialized = response.json() + else: + deserialized = None + + if cls: + return cls(pipeline_response, cast(JSON, deserialized), {}) + + return cast(JSON, deserialized) + + @overload + def issue_access_token(self, id: str, body: JSON, *, content_type: str = "application/json", **kwargs: Any) -> JSON: + """Issue a new token for an identity. + + Issue a new token for an identity. + + :param id: Identifier of the identity to issue token for. Required. + :type id: str + :param body: Requested scopes for the new token. Required. + :type body: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: JSON object + :rtype: JSON + :raises ~azure.core.exceptions.HttpResponseError: + + Example: + .. code-block:: python + + # JSON input template you can fill out and use as your body input. + body = { + "scopes": [ + "str" # List of scopes attached to the token. Required. + ], + "expiresInMinutes": 1440 # Optional. Default value is 1440. Optional custom + validity period of the token within [60,1440] minutes range. If not provided, the + default value of 1440 minutes (24 hours) will be used. + } + + # response body for status code(s): 200 + response == { + "expiresOn": "2020-02-20 00:00:00", # The expiry time of the token. + Required. + "token": "str" # The access token issued for the identity. Required. + } + """ + + @overload + def issue_access_token(self, id: str, body: IO, *, content_type: str = "application/json", **kwargs: Any) -> JSON: + """Issue a new token for an identity. + + Issue a new token for an identity. + + :param id: Identifier of the identity to issue token for. Required. + :type id: str + :param body: Requested scopes for the new token. Required. + :type body: IO + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: JSON object + :rtype: JSON + :raises ~azure.core.exceptions.HttpResponseError: + + Example: + .. code-block:: python + + # response body for status code(s): 200 + response == { + "expiresOn": "2020-02-20 00:00:00", # The expiry time of the token. + Required. + "token": "str" # The access token issued for the identity. Required. + } + """ + + @distributed_trace + def issue_access_token(self, id: str, body: Union[JSON, IO], **kwargs: Any) -> JSON: + """Issue a new token for an identity. + + Issue a new token for an identity. + + :param id: Identifier of the identity to issue token for. Required. + :type id: str + :param body: Requested scopes for the new token. Is either a model type or a IO type. Required. + :type body: JSON or IO + :keyword content_type: Body Parameter content-type. Known values are: 'application/json'. + Default value is None. + :paramtype content_type: str + :return: JSON object + :rtype: JSON + :raises ~azure.core.exceptions.HttpResponseError: + + Example: + .. code-block:: python + + # response body for status code(s): 200 + response == { + "expiresOn": "2020-02-20 00:00:00", # The expiry time of the token. + Required. + "token": "str" # The access token issued for the identity. Required. + } + """ + error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} + error_map.update(kwargs.pop("error_map", {}) or {}) + + api_version = kwargs.pop("api_version", self._config.api_version) + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type = kwargs.pop("content_type", _headers.pop("Content-Type", None)) # type: Optional[str] + cls = kwargs.pop("cls", None) # type: ClsType[JSON] + + content_type = content_type or "application/json" + _json = None + _content = None + if isinstance(body, (IO, bytes)): + _content = body + else: + _json = body + + request = build_communication_identity_issue_access_token_request( + id=id, + content_type=content_type, + api_version=api_version, + json=_json, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.endpoint", self._config.endpoint, "str", skip_quote=True), + } + request.url = self._client.format_url(request.url, **path_format_arguments) # type: ignore + + pipeline_response = self._client._pipeline.run( # type: ignore # pylint: disable=protected-access + request, stream=False, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response) + + if response.content: + deserialized = response.json() + else: + deserialized = None + + if cls: + return cls(pipeline_response, cast(JSON, deserialized), {}) + + return cast(JSON, deserialized) diff --git a/sdk/communication/azure-communication-identity/azure/communication/identity/_generated/operations/_patch.py b/sdk/communication/azure-communication-identity/azure/communication/identity/_generated/operations/_patch.py new file mode 100644 index 000000000000..f7dd32510333 --- /dev/null +++ b/sdk/communication/azure-communication-identity/azure/communication/identity/_generated/operations/_patch.py @@ -0,0 +1,20 @@ +# ------------------------------------ +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT License. +# ------------------------------------ +"""Customize generated code here. + +Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize +""" +from typing import List + +__all__: List[str] = [] # Add all objects you want publicly available to users at this package level + + +def patch_sdk(): + """Do not remove from this file. + + `patch_sdk` is a last resort escape hatch that allows you to do customizations + you can't accomplish using the techniques described in + https://aka.ms/azsdk/python/dpcodegen/python/customize + """ diff --git a/sdk/communication/azure-communication-identity/azure/communication/identity/aio/_communication_identity_client_async.py b/sdk/communication/azure-communication-identity/azure/communication/identity/aio/_communication_identity_client_async.py index 5bb83d184ec3..36eef106d08a 100644 --- a/sdk/communication/azure-communication-identity/azure/communication/identity/aio/_communication_identity_client_async.py +++ b/sdk/communication/azure-communication-identity/azure/communication/identity/aio/_communication_identity_client_async.py @@ -4,6 +4,7 @@ # Licensed under the MIT License. # ------------------------------------ from typing import TYPE_CHECKING, Any, List, Union, Tuple +from datetime import timedelta from azure.core.tracing.decorator_async import distributed_trace_async from azure.core.credentials import AccessToken @@ -91,29 +92,47 @@ async def create_user(self, **kwargs) -> 'CommunicationUserIdentifier': api_version = kwargs.pop("api_version", self._api_version) return await self._identity_service_client.communication_identity.create( api_version=api_version, - cls=lambda pr, u, e: CommunicationUserIdentifier(u.identity.id, raw_id=u.identity.id), + cls=lambda pr, u, e: CommunicationUserIdentifier(u['identity']['id'], raw_id=u['identity']['id']), **kwargs) @distributed_trace_async async def create_user_and_token( self, scopes: List[Union[str, 'CommunicationTokenScope']], + token_expires_after = None, #type: timedelta **kwargs ) -> Tuple['CommunicationUserIdentifier', AccessToken]: """create a single Communication user with an identity token. :param scopes: List of scopes to be added to the token. :type scopes: list[str or ~azure.communication.identity.CommunicationTokenScope] + :param token_expires_after: Custom validity period of the Communication Identity access token within <60,1440> minutes range. If not provided, the default value of 1440 minutes (24 hours) will be used. + :type token_expires_after: timedelta :return: A tuple of a CommunicationUserIdentifier and a AccessToken. :rtype: tuple of (~azure.communication.identity.CommunicationUserIdentifier, ~azure.core.credentials.AccessToken) """ api_version = kwargs.pop("api_version", self._api_version) + + expires_after = 0 + + if (token_expires_after is not None): + expires_after = int(token_expires_after.seconds / 60) + + body = { + 'createTokenWithScopes': scopes, + 'expiresInMinutes': expires_after + } + else: + body = { + 'createTokenWithScopes': scopes + } + return await self._identity_service_client.communication_identity.create( - create_token_with_scopes=scopes, + body=body, api_version=api_version, - cls=lambda pr, u, e: (CommunicationUserIdentifier(u.identity.id, raw_id=u.identity.id), - AccessToken(u.access_token.token, u.access_token.expires_on)), + cls=lambda pr, u, e: (CommunicationUserIdentifier(u['identity']['id'], raw_id=u['identity']['id']), + AccessToken(u['accessToken']['token'], u['accessToken']['expiresOn'])), **kwargs) @distributed_trace_async @@ -141,6 +160,7 @@ async def get_token( self, user: CommunicationUserIdentifier, scopes: List[Union[str, 'CommunicationTokenScope']], + token_expires_after = None, #type: timedelta **kwargs ) -> AccessToken: """Generates a new token for an identity. @@ -150,15 +170,32 @@ async def get_token( :param scopes: List of scopes to be added to the token. :type scopes: list[str or ~azure.communication.identity.CommunicationTokenScope] + :param token_expires_after: Custom validity period of the Communication Identity access token within <60,1440> minutes range. If not provided, the default value of 1440 minutes (24 hours) will be used. + :type token_expires_after: timedelta :return: AccessToken :rtype: ~azure.core.credentials.AccessToken """ api_version = kwargs.pop("api_version", self._api_version) + + expires_after = 0 + + if (token_expires_after is not None): + expires_after = int(token_expires_after.seconds / 60) + + body = { + 'scopes': scopes, + 'expiresInMinutes': expires_after + } + else: + body = { + 'scopes': scopes + } + return await self._identity_service_client.communication_identity.issue_access_token( user.properties['id'], - scopes, + body=body, api_version=api_version, - cls=lambda pr, u, e: AccessToken(u.token, u.expires_on), + cls=lambda pr, u, e: AccessToken(u['token'], u['expiresOn']), **kwargs) @distributed_trace_async @@ -203,12 +240,17 @@ async def get_token_for_teams_user( :rtype: ~azure.core.credentials.AccessToken """ api_version = kwargs.pop("api_version", self._api_version) + + body = { + "token": aad_token, + "appId": client_id, + "userId": user_object_id + } + return await self._identity_service_client.communication_identity.exchange_teams_user_access_token( - token=aad_token, - app_id=client_id, - user_id=user_object_id, + body=body, api_version=api_version, - cls=lambda pr, u, e: AccessToken(u.token, u.expires_on), + cls=lambda pr, u, e: AccessToken(u['token'], u['expiresOn']), **kwargs) async def __aenter__(self) -> "CommunicationIdentityClient": diff --git a/sdk/communication/azure-communication-identity/swagger/SWAGGER.md b/sdk/communication/azure-communication-identity/swagger/SWAGGER.md index 3a2ccfeb0731..54b5c58cd2a6 100644 --- a/sdk/communication/azure-communication-identity/swagger/SWAGGER.md +++ b/sdk/communication/azure-communication-identity/swagger/SWAGGER.md @@ -15,9 +15,9 @@ autorest ./SWAGGER.md ### Settings ``` yaml -tag: package-2022-06 +tag: package-2022-10 require: - - https://raw.githubusercontent.com/Azure/azure-rest-api-specs/5b0818f55339dbff370a967e3f068e180c6ad5a1/specification/communication/data-plane/Identity/readme.md + - https://raw.githubusercontent.com/Azure/azure-rest-api-specs/a8c4340400f1ab1ae6a43b10e8d635ecb9c49a2a/specification/communication/data-plane/Identity/readme.md output-folder: ../azure/communication/identity/_generated/ namespace: azure.communication.identity license-header: MICROSOFT_MIT_NO_VERSION From e9b04772ca2a512d494caff542e3be89b36fc728 Mon Sep 17 00:00:00 2001 From: Maxim Rytych Date: Thu, 25 Aug 2022 15:53:55 +0200 Subject: [PATCH 02/17] Update parameter type --- .../identity/_communication_identity_client.py | 8 ++++---- .../identity/aio/_communication_identity_client_async.py | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/sdk/communication/azure-communication-identity/azure/communication/identity/_communication_identity_client.py b/sdk/communication/azure-communication-identity/azure/communication/identity/_communication_identity_client.py index 22f27116ad3b..232770e85a98 100644 --- a/sdk/communication/azure-communication-identity/azure/communication/identity/_communication_identity_client.py +++ b/sdk/communication/azure-communication-identity/azure/communication/identity/_communication_identity_client.py @@ -4,8 +4,8 @@ # Licensed under the MIT License. # ------------------------------------ -from typing import TYPE_CHECKING, Any, List, Union, Tuple -from datetime import timedelta +import datetime +from typing import TYPE_CHECKING, Any, List, Optional, Union, Tuple from azure.core.tracing.decorator import distributed_trace from azure.core.credentials import AccessToken @@ -102,7 +102,7 @@ def create_user(self, **kwargs): def create_user_and_token( self, scopes, # type: List[Union[str, CommunicationTokenScope]] - token_expires_after = None, #type: timedelta + token_expires_after: Optional[datetime.timedelta] = None, #type: datetime.timedelta **kwargs # type: Any ): # type: (...) -> Tuple[CommunicationUserIdentifier, AccessToken] @@ -164,7 +164,7 @@ def get_token( self, user, # type: CommunicationUserIdentifier scopes, # type: List[Union[str, CommunicationTokenScope]] - token_expires_after = None, #type: timedelta + token_expires_after: Optional[datetime.timedelta] = None, #type: datetime.timedelta **kwargs # type: Any ): # type: (...) -> AccessToken diff --git a/sdk/communication/azure-communication-identity/azure/communication/identity/aio/_communication_identity_client_async.py b/sdk/communication/azure-communication-identity/azure/communication/identity/aio/_communication_identity_client_async.py index 36eef106d08a..0c44ec3124c0 100644 --- a/sdk/communication/azure-communication-identity/azure/communication/identity/aio/_communication_identity_client_async.py +++ b/sdk/communication/azure-communication-identity/azure/communication/identity/aio/_communication_identity_client_async.py @@ -3,8 +3,8 @@ # Copyright (c) Microsoft Corporation. # Licensed under the MIT License. # ------------------------------------ -from typing import TYPE_CHECKING, Any, List, Union, Tuple -from datetime import timedelta +import datetime +from typing import TYPE_CHECKING, Any, List, Optional, Union, Tuple from azure.core.tracing.decorator_async import distributed_trace_async from azure.core.credentials import AccessToken @@ -99,7 +99,7 @@ async def create_user(self, **kwargs) -> 'CommunicationUserIdentifier': async def create_user_and_token( self, scopes: List[Union[str, 'CommunicationTokenScope']], - token_expires_after = None, #type: timedelta + token_expires_after: Optional[datetime.timedelta] = None, #type: datetime.timedelta **kwargs ) -> Tuple['CommunicationUserIdentifier', AccessToken]: """create a single Communication user with an identity token. @@ -160,7 +160,7 @@ async def get_token( self, user: CommunicationUserIdentifier, scopes: List[Union[str, 'CommunicationTokenScope']], - token_expires_after = None, #type: timedelta + token_expires_after: Optional[datetime.timedelta] = None, #type: datetime.timedelta **kwargs ) -> AccessToken: """Generates a new token for an identity. From 1122600eafa81cba315cfa78ad33d40647c6b2fe Mon Sep 17 00:00:00 2001 From: Maxim Rytych Date: Thu, 25 Aug 2022 22:05:16 +0200 Subject: [PATCH 03/17] Add tests, update test recordings, samples, readme and changelog --- .../azure-communication-identity/CHANGELOG.md | 8 ++ .../azure-communication-identity/README.md | 21 +++ .../_communication_identity_client.py | 21 ++- .../_communication_identity_client_async.py | 21 ++- .../samples/identity_samples.py | 36 +++++ .../samples/identity_samples_async.py | 35 +++++ ...tion_identity_client.test_create_user.yaml | 18 +-- ...ity_client.test_create_user_and_token.yaml | 18 +-- ...nd_token_with_custom_maximum_validity.yaml | 50 +++++++ ...nd_token_with_custom_minimum_validity.yaml | 50 +++++++ ..._custom_validity_over_maximum_allowed.yaml | 50 +++++++ ...custom_validity_under_minimum_allowed.yaml | 50 +++++++ ..._create_user_and_token_with_no_scopes.yaml | 31 +++-- ...est_create_user_from_managed_identity.yaml | 16 +-- ...tion_identity_client.test_delete_user.yaml | 32 ++--- ...est_delete_user_from_managed_identity.yaml | 28 ++-- ...cation_identity_client.test_get_token.yaml | 34 ++--- ..._for_teams_user_from_managed_identity.yaml | 24 ++-- ...ken_for_teams_user_with_expired_token.yaml | 22 +-- ...h_invalid_client_id_0_empty_client_id.yaml | 22 +-- ...invalid_client_id_1_invalid_client_id.yaml | 24 ++-- ...user_with_invalid_token_0_empty_token.yaml | 12 +- ...er_with_invalid_token_1_invalid_token.yaml | 12 +- ...user_object_id_0_empty_user_object_id.yaml | 22 +-- ...er_object_id_1_invalid_user_object_id.yaml | 22 +-- ...oken_for_teams_user_with_valid_params.yaml | 26 ++-- ...n_for_teams_user_with_wrong_client_id.yaml | 24 ++-- ..._teams_user_with_wrong_user_object_id.yaml | 24 ++-- ....test_get_token_from_managed_identity.yaml | 30 ++-- ...et_token_with_custom_maximum_validity.yaml | 96 +++++++++++++ ...et_token_with_custom_minimum_validity.yaml | 96 +++++++++++++ ..._custom_validity_over_maximum_allowed.yaml | 97 +++++++++++++ ...custom_validity_under_minimum_allowed.yaml | 97 +++++++++++++ ..._client.test_get_token_with_no_scopes.yaml | 34 ++--- ...on_identity_client.test_revoke_tokens.yaml | 48 +++---- ...t_revoke_tokens_from_managed_identity.yaml | 42 +++--- ...dentity_client_async.test_create_user.yaml | 20 ++- ...ient_async.test_create_user_and_token.yaml | 18 +-- ...nd_token_with_custom_maximum_validity.yaml | 38 +++++ ...nd_token_with_custom_minimum_validity.yaml | 38 +++++ ..._custom_validity_over_maximum_allowed.yaml | 38 +++++ ...custom_validity_under_minimum_allowed.yaml | 38 +++++ ..._create_user_and_token_with_no_scopes.yaml | 31 +++-- ...est_create_user_from_managed_identity.yaml | 18 ++- ...dentity_client_async.test_delete_user.yaml | 36 +++-- ...est_delete_user_from_managed_identity.yaml | 32 ++--- ..._identity_client_async.test_get_token.yaml | 38 +++-- ..._for_teams_user_from_managed_identity.yaml | 28 ++-- ...n_for_teams_user_with_empty_client_id.yaml | 24 ++-- ...token_for_teams_user_with_empty_token.yaml | 14 +- ..._teams_user_with_empty_user_object_id.yaml | 22 +-- ...ken_for_teams_user_with_expired_token.yaml | 24 ++-- ...for_teams_user_with_invalid_client_id.yaml | 26 ++-- ...ken_for_teams_user_with_invalid_token.yaml | 14 +- ...eams_user_with_invalid_user_object_id.yaml | 26 ++-- ...oken_for_teams_user_with_valid_params.yaml | 28 ++-- ...n_for_teams_user_with_wrong_client_id.yaml | 26 ++-- ..._teams_user_with_wrong_user_object_id.yaml | 26 ++-- ....test_get_token_from_managed_identity.yaml | 34 +++-- ...et_token_with_custom_maximum_validity.yaml | 70 ++++++++++ ...et_token_with_custom_minimum_validity.yaml | 70 ++++++++++ ..._custom_validity_over_maximum_allowed.yaml | 71 ++++++++++ ...custom_validity_under_minimum_allowed.yaml | 71 ++++++++++ ...t_async.test_get_token_with_no_scopes.yaml | 38 +++-- ...ntity_client_async.test_revoke_tokens.yaml | 56 ++++---- ...t_revoke_tokens_from_managed_identity.yaml | 48 ++++--- .../test_communication_identity_client.py | 118 +++++++++++++++- ...est_communication_identity_client_async.py | 130 +++++++++++++++++- 68 files changed, 1984 insertions(+), 618 deletions(-) create mode 100644 sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user_and_token_with_custom_maximum_validity.yaml create mode 100644 sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user_and_token_with_custom_minimum_validity.yaml create mode 100644 sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user_and_token_with_custom_validity_over_maximum_allowed.yaml create mode 100644 sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user_and_token_with_custom_validity_under_minimum_allowed.yaml create mode 100644 sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_with_custom_maximum_validity.yaml create mode 100644 sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_with_custom_minimum_validity.yaml create mode 100644 sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_with_custom_validity_over_maximum_allowed.yaml create mode 100644 sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_with_custom_validity_under_minimum_allowed.yaml create mode 100644 sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_create_user_and_token_with_custom_maximum_validity.yaml create mode 100644 sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_create_user_and_token_with_custom_minimum_validity.yaml create mode 100644 sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_create_user_and_token_with_custom_validity_over_maximum_allowed.yaml create mode 100644 sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_create_user_and_token_with_custom_validity_under_minimum_allowed.yaml create mode 100644 sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_with_custom_maximum_validity.yaml create mode 100644 sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_with_custom_minimum_validity.yaml create mode 100644 sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_with_custom_validity_over_maximum_allowed.yaml create mode 100644 sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_with_custom_validity_under_minimum_allowed.yaml diff --git a/sdk/communication/azure-communication-identity/CHANGELOG.md b/sdk/communication/azure-communication-identity/CHANGELOG.md index 761eadd6ed46..9305c8907aac 100644 --- a/sdk/communication/azure-communication-identity/CHANGELOG.md +++ b/sdk/communication/azure-communication-identity/CHANGELOG.md @@ -1,5 +1,13 @@ # Release History +## 1.3.0 + +### Features Added + +- Added support to customize the Communication Identity access token’s validity period: + - `create_user_and_token` and `get_token` methods in both sync and async client updated with `token_expires_after` parameter that provides the ability to create a Communication Identity access token with custom expiration. +- Added a new API version `ApiVersion.V2022_10_01` that is now the default API version. + ## 1.2.1 (Unreleased) ### Features Added diff --git a/sdk/communication/azure-communication-identity/README.md b/sdk/communication/azure-communication-identity/README.md index e24255603b95..a69c544e36c2 100644 --- a/sdk/communication/azure-communication-identity/README.md +++ b/sdk/communication/azure-communication-identity/README.md @@ -76,6 +76,17 @@ Pass in the user object as a parameter, and a list of `CommunicationTokenScope`. tokenresponse = identity_client.get_token(user, scopes=[CommunicationTokenScope.CHAT]) print("Token issued with value: " + tokenresponse.token) ``` + +### Issuing or Refreshing an access token with custom expiration for a user + +You can specify expiration time for the token. The token can be configured to expire in as little as one hour or as long as 24 hours. The default expiration time is 24 hours. + +```python +token_expires_after = timedelta(minutes=60) +tokenresponse = identity_client.get_token(user, scopes=[CommunicationTokenScope.CHAT], token_expires_after=token_expires_after) +print("Token issued with value: " + tokenresponse.token) +``` + ### Creating a user and a token in a single request For convenience, use `create_user_and_token` to create a new user and issue a token with one function call. This translates into a single web request as opposed to creating a user first and then issuing a token. @@ -85,6 +96,16 @@ print("User id:" + user.properties['id']) print("Token issued with value: " + tokenresponse.token) ``` +### Creating a user and a token with custom expiration in a single request + +You can specify expiration time for the token. The token can be configured to expire in as little as one hour or as long as 24 hours. The default expiration time is 24 hours. +```python +token_expires_after = timedelta(minutes=60) +user, tokenresponse = identity_client.create_user_and_token(scopes=[CommunicationTokenScope.CHAT], token_expires_after=token_expires_after) +print("User id:" + user.properties['id']) +print("Token issued with value: " + tokenresponse.token) +``` + ### Revoking a user's access tokens Use `revoke_tokens` to revoke all access tokens for a user. Pass in the user object as a parameter diff --git a/sdk/communication/azure-communication-identity/azure/communication/identity/_communication_identity_client.py b/sdk/communication/azure-communication-identity/azure/communication/identity/_communication_identity_client.py index 232770e85a98..655c71448d0c 100644 --- a/sdk/communication/azure-communication-identity/azure/communication/identity/_communication_identity_client.py +++ b/sdk/communication/azure-communication-identity/azure/communication/identity/_communication_identity_client.py @@ -36,6 +36,9 @@ class CommunicationIdentityClient(object): # pylint: disable=client-accepts-api- :language: python :dedent: 8 """ + + MAX_TOKEN_VALIDITY_IN_SECONDS = 86400 + def __init__( self, endpoint, # type: str @@ -118,14 +121,17 @@ def create_user_and_token( """ api_version = kwargs.pop("api_version", self._api_version) - expires_after = 0 + expires_after_in_minutes = 0 if (token_expires_after is not None): - expires_after = int(token_expires_after.seconds / 60) + + # timedelta counts seconds that sum up to one day and assigns them to days property, remainder is assigned to seconds property + # i.e. when reaching 86400 seconds, value for days property will be 1, value for seconds property will be 0 + expires_after_in_minutes = int((token_expires_after.days * self.MAX_TOKEN_VALIDITY_IN_SECONDS + token_expires_after.seconds) / 60) body = { 'createTokenWithScopes': scopes, - 'expiresInMinutes': expires_after + 'expiresInMinutes': expires_after_in_minutes } else: body = { @@ -181,14 +187,17 @@ def get_token( """ api_version = kwargs.pop("api_version", self._api_version) - expires_after = 0 + expires_after_in_minutes = 0 if (token_expires_after is not None): - expires_after = int(token_expires_after.seconds / 60) + + # timedelta counts seconds that sum up to one day and assigns them to days property, remainder is assigned to seconds property + # i.e. when reaching 86400 seconds, value for days property will be 1, value for seconds property will be 0 + expires_after_in_minutes = int((token_expires_after.days * self.MAX_TOKEN_VALIDITY_IN_SECONDS + token_expires_after.seconds) / 60) body = { 'scopes': scopes, - 'expiresInMinutes': expires_after + 'expiresInMinutes': expires_after_in_minutes } else: body = { diff --git a/sdk/communication/azure-communication-identity/azure/communication/identity/aio/_communication_identity_client_async.py b/sdk/communication/azure-communication-identity/azure/communication/identity/aio/_communication_identity_client_async.py index 0c44ec3124c0..7e5d9c369a72 100644 --- a/sdk/communication/azure-communication-identity/azure/communication/identity/aio/_communication_identity_client_async.py +++ b/sdk/communication/azure-communication-identity/azure/communication/identity/aio/_communication_identity_client_async.py @@ -35,6 +35,9 @@ class CommunicationIdentityClient: # pylint: disable=client-accepts-api-version- :language: python :dedent: 8 """ + + MAX_TOKEN_VALIDITY_IN_SECONDS = 86400 + def __init__( self, endpoint: str, @@ -114,14 +117,17 @@ async def create_user_and_token( """ api_version = kwargs.pop("api_version", self._api_version) - expires_after = 0 + expires_after_in_minutes = 0 if (token_expires_after is not None): - expires_after = int(token_expires_after.seconds / 60) + + # timedelta counts seconds that sum up to one day and assigns them to days property, remainder is assigned to seconds property + # i.e. when reaching 86400 seconds, value for days property will be 1, value for seconds property will be 0 + expires_after_in_minutes = int((token_expires_after.days * self.MAX_TOKEN_VALIDITY_IN_SECONDS + token_expires_after.seconds) / 60) body = { 'createTokenWithScopes': scopes, - 'expiresInMinutes': expires_after + 'expiresInMinutes': expires_after_in_minutes } else: body = { @@ -177,14 +183,17 @@ async def get_token( """ api_version = kwargs.pop("api_version", self._api_version) - expires_after = 0 + expires_after_in_minutes = 0 if (token_expires_after is not None): - expires_after = int(token_expires_after.seconds / 60) + + # timedelta counts seconds that sum up to one day and assigns them to days property, remainder is assigned to seconds property + # i.e. when reaching 86400 seconds, value for days property will be 1, value for seconds property will be 0 + expires_after_in_minutes = int((token_expires_after.days * self.MAX_TOKEN_VALIDITY_IN_SECONDS + token_expires_after.seconds) / 60) body = { 'scopes': scopes, - 'expiresInMinutes': expires_after + 'expiresInMinutes': expires_after_in_minutes } else: body = { diff --git a/sdk/communication/azure-communication-identity/samples/identity_samples.py b/sdk/communication/azure-communication-identity/samples/identity_samples.py index 8e791163be61..f1cfeaa08f9f 100644 --- a/sdk/communication/azure-communication-identity/samples/identity_samples.py +++ b/sdk/communication/azure-communication-identity/samples/identity_samples.py @@ -24,6 +24,7 @@ 8) COMMUNICATION_MSAL_USERNAME - the username for authenticating via MSAL library 9) COMMUNICATION_MSAL_PASSWORD - the password for authenticating via MSAL library """ +from datetime import timedelta import os from azure.communication.identity._shared.utils import parse_connection_str from msal import PublicClientApplication @@ -56,6 +57,24 @@ def get_token(self): print("Getting token for: " + user.properties.get('id')) tokenresponse = identity_client.get_token(user, scopes=[CommunicationTokenScope.CHAT]) print("Token issued with value: " + tokenresponse.token) + + def get_token_with_custom_expiration(self): + from azure.communication.identity import ( + CommunicationIdentityClient, + CommunicationTokenScope + ) + + if self.client_id is not None and self.client_secret is not None and self.tenant_id is not None: + from azure.identity import DefaultAzureCredential + endpoint, _ = parse_connection_str(self.connection_string) + identity_client = CommunicationIdentityClient(endpoint, DefaultAzureCredential()) + else: + identity_client = CommunicationIdentityClient.from_connection_string(self.connection_string) + user = identity_client.create_user() + print("Getting token for: " + user.properties.get('id')) + token_expires_after = timedelta(minutes=60) + tokenresponse = identity_client.get_token(user, scopes=[CommunicationTokenScope.CHAT], token_expires_after=token_expires_after) + print("Token issued with value: " + tokenresponse.token) def revoke_tokens(self): from azure.communication.identity import ( @@ -103,6 +122,23 @@ def create_user_and_token(self): user, tokenresponse = identity_client.create_user_and_token(scopes=[CommunicationTokenScope.CHAT]) print("User created with id:" + user.properties.get('id')) print("Token issued with value: " + tokenresponse.token) + + def create_user_and_token_with_custom_expiration(self): + from azure.communication.identity import ( + CommunicationIdentityClient, + CommunicationTokenScope + ) + if self.client_id is not None and self.client_secret is not None and self.tenant_id is not None: + from azure.identity import DefaultAzureCredential + endpoint, _ = parse_connection_str(self.connection_string) + identity_client = CommunicationIdentityClient(endpoint, DefaultAzureCredential()) + else: + identity_client = CommunicationIdentityClient.from_connection_string(self.connection_string) + print("Creating new user with token") + token_expires_after = timedelta(minutes=60) + user, tokenresponse = identity_client.create_user_and_token(scopes=[CommunicationTokenScope.CHAT], token_expires_after=token_expires_after) + print("User created with id:" + user.properties.get('id')) + print("Token issued with value: " + tokenresponse.token) def delete_user(self): from azure.communication.identity import CommunicationIdentityClient diff --git a/sdk/communication/azure-communication-identity/samples/identity_samples_async.py b/sdk/communication/azure-communication-identity/samples/identity_samples_async.py index 36e21e1f5689..c78a6af77532 100644 --- a/sdk/communication/azure-communication-identity/samples/identity_samples_async.py +++ b/sdk/communication/azure-communication-identity/samples/identity_samples_async.py @@ -25,6 +25,7 @@ 9) COMMUNICATION_MSAL_USERNAME - the username for authenticating via the MSAL library 10) COMMUNICATION_MSAL_PASSWORD - the password for authenticating via the MSAL library """ +from datetime import timedelta from azure.communication.identity._shared.utils import parse_connection_str from msal import PublicClientApplication import asyncio @@ -60,6 +61,23 @@ async def get_token(self): print("Issuing token for: " + user.properties.get('id')) tokenresponse = await identity_client.get_token(user, scopes=[CommunicationTokenScope.CHAT]) print("Token issued with value: " + tokenresponse.token) + + async def get_token_with_custom_expiration(self): + from azure.communication.identity.aio import CommunicationIdentityClient + from azure.communication.identity import CommunicationTokenScope + if self.client_id is not None and self.client_secret is not None and self.tenant_id is not None: + from azure.identity.aio import DefaultAzureCredential + endpoint, _ = parse_connection_str(self.connection_string) + identity_client = CommunicationIdentityClient(endpoint, DefaultAzureCredential()) + else: + identity_client = CommunicationIdentityClient.from_connection_string(self.connection_string) + + async with identity_client: + user = await identity_client.create_user() + print("Issuing token for: " + user.properties.get('id')) + token_expires_after = timedelta(minutes=60) + tokenresponse = await identity_client.get_token(user, scopes=[CommunicationTokenScope.CHAT], token_expires_after=token_expires_after) + print("Token issued with value: " + tokenresponse.token) async def revoke_tokens(self): from azure.communication.identity.aio import CommunicationIdentityClient @@ -107,6 +125,23 @@ async def create_user_and_token(self): user, tokenresponse = await identity_client.create_user_and_token(scopes=[CommunicationTokenScope.CHAT]) print("User created with id:" + user.properties.get('id')) print("Token issued with value: " + tokenresponse.token) + + async def create_user_and_token_with_custom_expiration(self): + from azure.communication.identity.aio import CommunicationIdentityClient + from azure.communication.identity import CommunicationTokenScope + if self.client_id is not None and self.client_secret is not None and self.tenant_id is not None: + from azure.identity.aio import DefaultAzureCredential + endpoint, _ = parse_connection_str(self.connection_string) + identity_client = CommunicationIdentityClient(endpoint, DefaultAzureCredential()) + else: + identity_client = CommunicationIdentityClient.from_connection_string(self.connection_string) + + async with identity_client: + print("Creating new user with token") + token_expires_after = timedelta(minutes=60) + user, tokenresponse = await identity_client.create_user_and_token(scopes=[CommunicationTokenScope.CHAT], token_expires_after=token_expires_after) + print("User created with id:" + user.properties.get('id')) + print("Token issued with value: " + tokenresponse.token) async def delete_user(self): from azure.communication.identity.aio import CommunicationIdentityClient diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user.yaml index 9366c01f971f..21d68d3c3181 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user.yaml @@ -1,6 +1,6 @@ interactions: - request: - body: '{}' + body: null headers: Accept: - application/json @@ -9,32 +9,32 @@ interactions: Connection: - keep-alive Content-Length: - - '2' + - '0' Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.7.12 (Darwin-21.5.0-x86_64-i386-64bit) + - azsdk-python-communication-identity/1.2.1 Python/3.7.9 (Windows-10-10.0.22621-SP0) x-ms-date: - - Wed, 03 Aug 2022 09:14:49 GMT + - Thu, 25 Aug 2022 20:03:33 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 response: body: string: '{"identity": {"id": "sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: - application/json; charset=utf-8 date: - - Wed, 03 Aug 2022 09:14:49 GMT + - Thu, 25 Aug 2022 20:03:34 GMT ms-cv: - - +r9f3QqO60+Ku/EbwZK38A.0 + - 98o+DGCkZEu8vr74kAQWAg.0 request-context: - appId= strict-transport-security: @@ -42,7 +42,7 @@ interactions: x-cache: - CONFIG_NOCACHE x-processing-time: - - 68ms + - 82ms status: code: 201 message: Created diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user_and_token.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user_and_token.yaml index c7bba7025daf..a19710a8773b 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user_and_token.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user_and_token.yaml @@ -13,29 +13,29 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.7.12 (Darwin-21.5.0-x86_64-i386-64bit) + - azsdk-python-communication-identity/1.2.1 Python/3.7.9 (Windows-10-10.0.22621-SP0) x-ms-date: - - Wed, 03 Aug 2022 09:14:50 GMT + - Thu, 25 Aug 2022 20:03:34 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 response: body: string: '{"identity": {"id": "sanitized"}, "accessToken": {"token": "sanitized", - "expiresOn": "2022-08-04T09:14:50.630433+00:00"}}' + "expiresOn": "2022-08-26T20:03:35.4402106+00:00"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - - '919' + - '920' content-type: - application/json; charset=utf-8 date: - - Wed, 03 Aug 2022 09:14:50 GMT + - Thu, 25 Aug 2022 20:03:35 GMT ms-cv: - - tBfz2wmnTky+M94+t0LCCQ.0 + - AcL7LEOynEqv5cgY/tlPRQ.0 request-context: - appId= strict-transport-security: @@ -43,7 +43,7 @@ interactions: x-cache: - CONFIG_NOCACHE x-processing-time: - - 42ms + - 44ms status: code: 201 message: Created diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user_and_token_with_custom_maximum_validity.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user_and_token_with_custom_maximum_validity.yaml new file mode 100644 index 000000000000..f8a3f42e8e56 --- /dev/null +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user_and_token_with_custom_maximum_validity.yaml @@ -0,0 +1,50 @@ +interactions: +- request: + body: '{"createTokenWithScopes": ["chat"], "expiresInMinutes": 1440}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '61' + Content-Type: + - application/json + User-Agent: + - azsdk-python-communication-identity/1.2.1 Python/3.7.9 (Windows-10-10.0.22621-SP0) + x-ms-date: + - Thu, 25 Aug 2022 20:03:35 GMT + x-ms-return-client-request-id: + - 'true' + method: POST + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 + response: + body: + string: '{"identity": {"id": "sanitized"}, "accessToken": {"token": "sanitized", + "expiresOn": "2022-08-26T20:03:36.2645529+00:00"}}' + headers: + api-supported-versions: + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, + 2021-11-01, 2022-06-01, 2022-10-01 + content-length: + - '920' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 25 Aug 2022 20:03:36 GMT + ms-cv: + - ULgneEOc2kmodWZkLcfkRg.0 + request-context: + - appId= + strict-transport-security: + - max-age=2592000 + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 47ms + status: + code: 201 + message: Created +version: 1 diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user_and_token_with_custom_minimum_validity.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user_and_token_with_custom_minimum_validity.yaml new file mode 100644 index 000000000000..c24d76110b92 --- /dev/null +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user_and_token_with_custom_minimum_validity.yaml @@ -0,0 +1,50 @@ +interactions: +- request: + body: '{"createTokenWithScopes": ["chat"], "expiresInMinutes": 60}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '59' + Content-Type: + - application/json + User-Agent: + - azsdk-python-communication-identity/1.2.1 Python/3.7.9 (Windows-10-10.0.22621-SP0) + x-ms-date: + - Thu, 25 Aug 2022 20:03:36 GMT + x-ms-return-client-request-id: + - 'true' + method: POST + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 + response: + body: + string: '{"identity": {"id": "sanitized"}, "accessToken": {"token": "sanitized", + "expiresOn": "2022-08-25T21:03:37.1070684+00:00"}}' + headers: + api-supported-versions: + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, + 2021-11-01, 2022-06-01, 2022-10-01 + content-length: + - '920' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 25 Aug 2022 20:03:36 GMT + ms-cv: + - 7dt3f5j5Y0G43icNVPcjYA.0 + request-context: + - appId= + strict-transport-security: + - max-age=2592000 + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 51ms + status: + code: 201 + message: Created +version: 1 diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user_and_token_with_custom_validity_over_maximum_allowed.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user_and_token_with_custom_validity_over_maximum_allowed.yaml new file mode 100644 index 000000000000..5749d1e01204 --- /dev/null +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user_and_token_with_custom_validity_over_maximum_allowed.yaml @@ -0,0 +1,50 @@ +interactions: +- request: + body: '{"createTokenWithScopes": ["chat"], "expiresInMinutes": 1441}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '61' + Content-Type: + - application/json + User-Agent: + - azsdk-python-communication-identity/1.2.1 Python/3.7.9 (Windows-10-10.0.22621-SP0) + x-ms-date: + - Thu, 25 Aug 2022 20:03:37 GMT + x-ms-return-client-request-id: + - 'true' + method: POST + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 + response: + body: + string: '{"error": {"code": "ValidationError", "message": "ExpiresInMinutes + value 1441 is invalid.", "target": "ExpiresInMinutes"}}' + headers: + api-supported-versions: + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, + 2021-11-01, 2022-06-01, 2022-10-01 + content-type: + - application/json + date: + - Thu, 25 Aug 2022 20:03:37 GMT + ms-cv: + - xT8p+vjMoEaK5RCEFEwL9A.0 + request-context: + - appId= + strict-transport-security: + - max-age=2592000 + transfer-encoding: + - chunked + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 74ms + status: + code: 400 + message: Bad Request +version: 1 diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user_and_token_with_custom_validity_under_minimum_allowed.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user_and_token_with_custom_validity_under_minimum_allowed.yaml new file mode 100644 index 000000000000..a875392e7ff8 --- /dev/null +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user_and_token_with_custom_validity_under_minimum_allowed.yaml @@ -0,0 +1,50 @@ +interactions: +- request: + body: '{"createTokenWithScopes": ["chat"], "expiresInMinutes": 59}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '59' + Content-Type: + - application/json + User-Agent: + - azsdk-python-communication-identity/1.2.1 Python/3.7.9 (Windows-10-10.0.22621-SP0) + x-ms-date: + - Thu, 25 Aug 2022 20:03:38 GMT + x-ms-return-client-request-id: + - 'true' + method: POST + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 + response: + body: + string: '{"error": {"code": "ValidationError", "message": "ExpiresInMinutes + value 59 is invalid.", "target": "ExpiresInMinutes"}}' + headers: + api-supported-versions: + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, + 2021-11-01, 2022-06-01, 2022-10-01 + content-type: + - application/json + date: + - Thu, 25 Aug 2022 20:03:38 GMT + ms-cv: + - dII7qWJpAka/bhKuZXrb+g.0 + request-context: + - appId= + strict-transport-security: + - max-age=2592000 + transfer-encoding: + - chunked + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 27ms + status: + code: 400 + message: Bad Request +version: 1 diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user_and_token_with_no_scopes.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user_and_token_with_no_scopes.yaml index 03bf2f11ddd7..33ae134fd415 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user_and_token_with_no_scopes.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user_and_token_with_no_scopes.yaml @@ -1,6 +1,6 @@ interactions: - request: - body: '{}' + body: '{"createTokenWithScopes": null}' headers: Accept: - application/json @@ -9,41 +9,42 @@ interactions: Connection: - keep-alive Content-Length: - - '2' + - '31' Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.7.12 (Darwin-21.5.0-x86_64-i386-64bit) + - azsdk-python-communication-identity/1.2.1 Python/3.7.9 (Windows-10-10.0.22621-SP0) x-ms-date: - - Wed, 03 Aug 2022 09:14:50 GMT + - Thu, 25 Aug 2022 20:03:38 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 response: body: - string: '{"identity": {"id": "sanitized"}}' + string: '{"error": {"code": "ValidationError", "message": "CreateTokenWithScopes + value is missing.", "target": "CreateTokenWithScopes"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 - content-length: - - '101' + 2021-11-01, 2022-06-01, 2022-10-01 content-type: - - application/json; charset=utf-8 + - application/json date: - - Wed, 03 Aug 2022 09:14:51 GMT + - Thu, 25 Aug 2022 20:03:38 GMT ms-cv: - - 0ah7qLw2bUSgBR7puPqEfw.0 + - W9wQxhY0rU+YUdQAAIH0Ag.0 request-context: - appId= strict-transport-security: - max-age=2592000 + transfer-encoding: + - chunked x-cache: - CONFIG_NOCACHE x-processing-time: - - 37ms + - 60ms status: - code: 201 - message: Created + code: 400 + message: Bad Request version: 1 diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user_from_managed_identity.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user_from_managed_identity.yaml index 1a986fa8f381..4ec7a8580de1 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user_from_managed_identity.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user_from_managed_identity.yaml @@ -1,6 +1,6 @@ interactions: - request: - body: '{}' + body: null headers: Accept: - application/json @@ -9,28 +9,28 @@ interactions: Connection: - keep-alive Content-Length: - - '2' + - '0' Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.7.12 (Darwin-21.5.0-x86_64-i386-64bit) + - azsdk-python-communication-identity/1.2.1 Python/3.7.9 (Windows-10-10.0.22621-SP0) method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 response: body: string: '{"identity": {"id": "sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: - application/json; charset=utf-8 date: - - Wed, 03 Aug 2022 09:14:52 GMT + - Thu, 25 Aug 2022 20:03:40 GMT ms-cv: - - BMxGIFuPyk69RodcGvUanw.0 + - OZltyLkse06l+Z2Q+XDG1A.0 request-context: - appId= strict-transport-security: @@ -38,7 +38,7 @@ interactions: x-cache: - CONFIG_NOCACHE x-processing-time: - - 209ms + - 234ms status: code: 201 message: Created diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_delete_user.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_delete_user.yaml index c89a081f63be..8453e9eeee80 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_delete_user.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_delete_user.yaml @@ -1,6 +1,6 @@ interactions: - request: - body: '{}' + body: null headers: Accept: - application/json @@ -9,32 +9,32 @@ interactions: Connection: - keep-alive Content-Length: - - '2' + - '0' Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.7.12 (Darwin-21.5.0-x86_64-i386-64bit) + - azsdk-python-communication-identity/1.2.1 Python/3.7.9 (Windows-10-10.0.22621-SP0) x-ms-date: - - Wed, 03 Aug 2022 09:14:52 GMT + - Thu, 25 Aug 2022 20:03:40 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 response: body: string: '{"identity": {"id": "sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: - application/json; charset=utf-8 date: - - Wed, 03 Aug 2022 09:14:53 GMT + - Thu, 25 Aug 2022 20:03:40 GMT ms-cv: - - kRXKfQHpVk6oGQmGkNRLrQ.0 + - bbvUzSvEWUqCK1ARsDZlAw.0 request-context: - appId= strict-transport-security: @@ -42,7 +42,7 @@ interactions: x-cache: - CONFIG_NOCACHE x-processing-time: - - 29ms + - 52ms status: code: 201 message: Created @@ -58,24 +58,24 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.7.12 (Darwin-21.5.0-x86_64-i386-64bit) + - azsdk-python-communication-identity/1.2.1 Python/3.7.9 (Windows-10-10.0.22621-SP0) x-ms-date: - - Wed, 03 Aug 2022 09:14:53 GMT + - Thu, 25 Aug 2022 20:03:41 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - - Wed, 03 Aug 2022 09:14:53 GMT + - Thu, 25 Aug 2022 20:03:41 GMT ms-cv: - - 1B3zLSNNTEKe5O0UdQe3BA.0 + - Z5YG5DJSOE2XpYQr3r18jA.0 request-context: - appId= strict-transport-security: @@ -83,7 +83,7 @@ interactions: x-cache: - CONFIG_NOCACHE x-processing-time: - - 188ms + - 253ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_delete_user_from_managed_identity.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_delete_user_from_managed_identity.yaml index ac5a270a9bd3..3f190070d819 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_delete_user_from_managed_identity.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_delete_user_from_managed_identity.yaml @@ -1,6 +1,6 @@ interactions: - request: - body: '{}' + body: null headers: Accept: - application/json @@ -9,28 +9,28 @@ interactions: Connection: - keep-alive Content-Length: - - '2' + - '0' Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.7.12 (Darwin-21.5.0-x86_64-i386-64bit) + - azsdk-python-communication-identity/1.2.1 Python/3.7.9 (Windows-10-10.0.22621-SP0) method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 response: body: string: '{"identity": {"id": "sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: - application/json; charset=utf-8 date: - - Wed, 03 Aug 2022 09:14:54 GMT + - Thu, 25 Aug 2022 20:03:43 GMT ms-cv: - - DUsCjgIRHk6OyYqsOmtVRg.0 + - /7IxkKkSfUyhSTF2njNJuA.0 request-context: - appId= strict-transport-security: @@ -38,7 +38,7 @@ interactions: x-cache: - CONFIG_NOCACHE x-processing-time: - - 30ms + - 215ms status: code: 201 message: Created @@ -54,20 +54,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.7.12 (Darwin-21.5.0-x86_64-i386-64bit) + - azsdk-python-communication-identity/1.2.1 Python/3.7.9 (Windows-10-10.0.22621-SP0) method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - - Wed, 03 Aug 2022 09:14:54 GMT + - Thu, 25 Aug 2022 20:03:43 GMT ms-cv: - - Ff/JSRw5q0iX3uPhqGh31Q.0 + - BDy6I0o9+k2T4JLl0JmzzQ.0 request-context: - appId= strict-transport-security: @@ -75,7 +75,7 @@ interactions: x-cache: - CONFIG_NOCACHE x-processing-time: - - 171ms + - 278ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token.yaml index 34d977e3e713..3c58dd346bb9 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token.yaml @@ -1,6 +1,6 @@ interactions: - request: - body: '{}' + body: null headers: Accept: - application/json @@ -9,32 +9,32 @@ interactions: Connection: - keep-alive Content-Length: - - '2' + - '0' Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.7.12 (Darwin-21.5.0-x86_64-i386-64bit) + - azsdk-python-communication-identity/1.2.1 Python/3.7.9 (Windows-10-10.0.22621-SP0) x-ms-date: - - Wed, 03 Aug 2022 09:14:54 GMT + - Thu, 25 Aug 2022 20:03:43 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 response: body: string: '{"identity": {"id": "sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: - application/json; charset=utf-8 date: - - Wed, 03 Aug 2022 09:14:55 GMT + - Thu, 25 Aug 2022 20:03:44 GMT ms-cv: - - 19KHqdoQnUaM6le0wqpj3w.0 + - DF6+962+sU6CbW8RJq3F/Q.0 request-context: - appId= strict-transport-security: @@ -42,7 +42,7 @@ interactions: x-cache: - CONFIG_NOCACHE x-processing-time: - - 28ms + - 54ms status: code: 201 message: Created @@ -60,28 +60,28 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.7.12 (Darwin-21.5.0-x86_64-i386-64bit) + - azsdk-python-communication-identity/1.2.1 Python/3.7.9 (Windows-10-10.0.22621-SP0) x-ms-date: - - Wed, 03 Aug 2022 09:14:55 GMT + - Thu, 25 Aug 2022 20:03:44 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2022-10-01 response: body: - string: '{"token": "sanitized", "expiresOn": "2022-08-04T09:14:55.5623417+00:00"}' + string: '{"token": "sanitized", "expiresOn": "2022-08-26T20:03:44.7157482+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '804' content-type: - application/json; charset=utf-8 date: - - Wed, 03 Aug 2022 09:14:55 GMT + - Thu, 25 Aug 2022 20:03:44 GMT ms-cv: - - fUfVJX3W0kCXZvJbmNOMiQ.0 + - +3FNlH/eFE2Ojgfxnubaeg.0 request-context: - appId= strict-transport-security: @@ -89,7 +89,7 @@ interactions: x-cache: - CONFIG_NOCACHE x-processing-time: - - 35ms + - 61ms status: code: 200 message: OK diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_for_teams_user_from_managed_identity.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_for_teams_user_from_managed_identity.yaml index 5b9d14d77a8f..b5dd019285cc 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_for_teams_user_from_managed_identity.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_for_teams_user_from_managed_identity.yaml @@ -9,8 +9,8 @@ interactions: Connection: - keep-alive Cookie: - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrlL4wzBFl1mIU86DCuw6sHWl74q6BmuK0b7PRATQXKCMzLwbU4U9C9ahKy6cNj3-yFZs3oKpDeGP4nW0IT5YzZJfg59Jkd9RaPRxJIsZE6cTlBHhJDDNicKgADXNIoXG_ndyG0tCp9FLCQYEJSLIOIQsqqAEUkTN6g7zAHe3rBr4gAA; - fpc=AnvPZLVeEJFLj2Xc5Vk-flE; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd + - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr4XBMT2H7IsUGqovSoplG84t8EmtWoGSrd-rNIAcVLWqzrZ_TnTpjyhPXu0ZkaHb2dZGKGDujXHPokk6tIzmJ8twtWz2jofMeeaKRKtMnchh4TI0mrtLFnQIVk3MSQNSBRV3V-biBZlIBaLZdGfc7HOJ0_gmvbjI9RI-s0wxbp-sgAA; + fpc=An1bUbFp6DBFhCVAojZILM0; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd User-Agent: - python-requests/2.28.1 method: GET @@ -29,7 +29,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 03 Aug 2022 09:14:55 GMT + - Thu, 25 Aug 2022 20:03:44 GMT expires: - '-1' p3p: @@ -37,7 +37,7 @@ interactions: pragma: - no-cache set-cookie: - - fpc=AnvPZLVeEJFLj2Xc5Vk-flE; expires=Fri, 02-Sep-2022 09:14:55 GMT; path=/; + - fpc=An1bUbFp6DBFhCVAojZILM0; expires=Sat, 24-Sep-2022 20:03:45 GMT; path=/; secure; HttpOnly; SameSite=None - x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly - stsservicecookie=estsfd; path=/; secure; samesite=none; httponly @@ -46,7 +46,7 @@ interactions: x-content-type-options: - nosniff x-ms-ests-server: - - 2.1.13355.6 - WEULR1 ProdSlices + - 2.1.13481.11 - NEULR2 ProdSlices x-xss-protection: - '0' status: @@ -66,23 +66,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.7.12 (Darwin-21.5.0-x86_64-i386-64bit) + - azsdk-python-communication-identity/1.2.1 Python/3.7.9 (Windows-10-10.0.22621-SP0) method: POST - uri: https://sanitized.communication.azure.com/teamsUser/:exchangeAccessToken?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/teamsUser/:exchangeAccessToken?api-version=2022-10-01 response: body: - string: '{"token": "sanitized", "expiresOn": "2022-08-03T10:36:05.2921076+00:00"}' + string: '{"token": "sanitized", "expiresOn": "2022-08-25T21:13:13.6721087+00:00"}' headers: api-supported-versions: - - 2021-10-31-preview, 2022-06-01 + - 2021-10-31-preview, 2022-06-01, 2022-10-01 content-length: - '824' content-type: - application/json; charset=utf-8 date: - - Wed, 03 Aug 2022 09:14:56 GMT + - Thu, 25 Aug 2022 20:03:47 GMT ms-cv: - - VBpYR0e31EGsVRkldEbw5w.0 + - kAJackYNoUC4NwdpMwykVA.0 request-context: - appId= strict-transport-security: @@ -90,7 +90,7 @@ interactions: x-cache: - CONFIG_NOCACHE x-processing-time: - - 479ms + - 625ms status: code: 200 message: OK diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_for_teams_user_with_expired_token.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_for_teams_user_with_expired_token.yaml index 4d86e82d4c73..f922e73a68d9 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_for_teams_user_with_expired_token.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_for_teams_user_with_expired_token.yaml @@ -9,8 +9,8 @@ interactions: Connection: - keep-alive Cookie: - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrrFfvqRSn8Ztqr3H7wl9Ae7dOhS4Ibc0uF1-jyfvDWbwo9D2i8nAoX_mv0H-NEf024wpDGkN8UVciwf7hTuw2Iry4bwChTmUhuFHPKipLjVO19ROS3JKxEI1wr7KKcdPZGwF1r5JOgR1mAOLmXAg-Khx00bYieE2bU5QpOLLvHPsgAA; - fpc=AlxzUyxRPCJLjfmx_ymdFZo; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd + - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrYEBBK5TgIXiTT-yDpXPceGxW2wbdXqHpdmIcAZhLkhNpC_wt-_78HJvFGAO7fONEDMzBDP5_1tgdoC1s5KMi6MCDjfWCQMLrndfZyx-RQ4Pz1X0UhsvnmdA74R63jZg8neQYxv9D20WuySODEYuaGaLMNW1HRzuDcWYdSAyK-rcgAA; + fpc=AoB2MHM75gVHnQbyecmDrmo; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd User-Agent: - python-requests/2.28.1 method: GET @@ -29,7 +29,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 03 Aug 2022 09:14:56 GMT + - Thu, 25 Aug 2022 20:03:47 GMT expires: - '-1' p3p: @@ -37,7 +37,7 @@ interactions: pragma: - no-cache set-cookie: - - fpc=AlxzUyxRPCJLjfmx_ymdFZo; expires=Fri, 02-Sep-2022 09:14:57 GMT; path=/; + - fpc=AoB2MHM75gVHnQbyecmDrmo; expires=Sat, 24-Sep-2022 20:03:48 GMT; path=/; secure; HttpOnly; SameSite=None - x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly - stsservicecookie=estsfd; path=/; secure; samesite=none; httponly @@ -46,7 +46,7 @@ interactions: x-content-type-options: - nosniff x-ms-ests-server: - - 2.1.13355.6 - NEULR2 ProdSlices + - 2.1.13481.11 - WEULR1 ProdSlices x-xss-protection: - '0' status: @@ -66,13 +66,13 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.7.12 (Darwin-21.5.0-x86_64-i386-64bit) + - azsdk-python-communication-identity/1.2.1 Python/3.7.9 (Windows-10-10.0.22621-SP0) x-ms-date: - - Wed, 03 Aug 2022 09:14:57 GMT + - Thu, 25 Aug 2022 20:03:48 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/teamsUser/:exchangeAccessToken?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/teamsUser/:exchangeAccessToken?api-version=2022-10-01 response: body: string: '{"error": {"code": "InvalidAccessToken", "message": "Provided access @@ -81,9 +81,9 @@ interactions: content-type: - application/json date: - - Wed, 03 Aug 2022 09:14:57 GMT + - Thu, 25 Aug 2022 20:03:48 GMT ms-cv: - - 2I2vcs8F40eU0Tfefy+Qxw.0 + - nI+m6hBmAEGnQa3QzrTvuw.0 request-context: - appId= strict-transport-security: @@ -93,7 +93,7 @@ interactions: x-cache: - CONFIG_NOCACHE x-processing-time: - - 56ms + - 50ms status: code: 401 message: Unauthorized diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_for_teams_user_with_invalid_client_id_0_empty_client_id.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_for_teams_user_with_invalid_client_id_0_empty_client_id.yaml index 79780b096372..df0770be6d77 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_for_teams_user_with_invalid_client_id_0_empty_client_id.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_for_teams_user_with_invalid_client_id_0_empty_client_id.yaml @@ -9,8 +9,8 @@ interactions: Connection: - keep-alive Cookie: - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrgyrsEbWALhzmY9u_ORzAuQGXhGE17CqQS0kimZNZYhj9oVkUDHUANgElpoeE9lhKGo_2lmzE6H6zC5nq9K-0mZUNlV4ezbTJsq4TrwOzuOgqxJhdinDg16Bs5d27Q9gjuG-qVERBjRdzBGZPxyb0Wh0-iHmMhNzWnQRVVqKO18AgAA; - fpc=AtgsxCtHBrFNjDb7XOy1SBg; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd + - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrD_5dFQzp0c4OJrPcd4xuZCk5AOuwM4vyxVWWmJyrGBetb3Xh5yorYhjEKEhemkg0OA83arSmMIjwa8ahSpxcDvxI7wgU0GkA0-K718lAZIO74YVH-lEXn4jZ1GhmjluKWApiVB7eIL2lvTqwdjA4j-8YMwSd5rOLW1ZTHDDSLAMgAA; + fpc=AoRgY7T_UrBMoZLTURzgnXM; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd User-Agent: - python-requests/2.28.1 method: GET @@ -29,7 +29,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 03 Aug 2022 09:14:58 GMT + - Thu, 25 Aug 2022 20:03:48 GMT expires: - '-1' p3p: @@ -37,7 +37,7 @@ interactions: pragma: - no-cache set-cookie: - - fpc=AtgsxCtHBrFNjDb7XOy1SBg; expires=Fri, 02-Sep-2022 09:14:58 GMT; path=/; + - fpc=AoRgY7T_UrBMoZLTURzgnXM; expires=Sat, 24-Sep-2022 20:03:48 GMT; path=/; secure; HttpOnly; SameSite=None - x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly - stsservicecookie=estsfd; path=/; secure; samesite=none; httponly @@ -46,7 +46,7 @@ interactions: x-content-type-options: - nosniff x-ms-ests-server: - - 2.1.13355.6 - WEULR1 ProdSlices + - 2.1.13481.11 - WEULR1 ProdSlices x-xss-protection: - '0' status: @@ -66,13 +66,13 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.7.12 (Darwin-21.5.0-x86_64-i386-64bit) + - azsdk-python-communication-identity/1.2.1 Python/3.7.9 (Windows-10-10.0.22621-SP0) x-ms-date: - - Wed, 03 Aug 2022 09:14:59 GMT + - Thu, 25 Aug 2022 20:03:49 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/teamsUser/:exchangeAccessToken?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/teamsUser/:exchangeAccessToken?api-version=2022-10-01 response: body: string: '{"error": {"code": "ValidationError", "message": "AppId: The AppId @@ -81,9 +81,9 @@ interactions: content-type: - application/json date: - - Wed, 03 Aug 2022 09:14:59 GMT + - Thu, 25 Aug 2022 20:03:48 GMT ms-cv: - - zsTPfWF1nkSKJDA7MGleGQ.0 + - 9RclyF3UcEOdz1zlBNBTxw.0 request-context: - appId= strict-transport-security: @@ -93,7 +93,7 @@ interactions: x-cache: - CONFIG_NOCACHE x-processing-time: - - 49ms + - 40ms status: code: 400 message: Bad Request diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_for_teams_user_with_invalid_client_id_1_invalid_client_id.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_for_teams_user_with_invalid_client_id_1_invalid_client_id.yaml index 68cbdfeb4667..6a9699189dd5 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_for_teams_user_with_invalid_client_id_1_invalid_client_id.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_for_teams_user_with_invalid_client_id_1_invalid_client_id.yaml @@ -9,8 +9,8 @@ interactions: Connection: - keep-alive Cookie: - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrNnn55iYfXCIN1F0FH8gqIEgb-aT1znsPiSXFVdH1n286mx8qSoy8YvkpuYDAVX6c1OrEFEgGI-kPYqhaUdWuGfEQlhXRm4F-Bn6dhwiyut-DQxVTrqO6SI_21Mb6zhNQnP7p79iRYGDHoJBV-RLBDUdchtnDQ63WTN7SAXr1NTIgAA; - fpc=AlCIKPOnS6tPvHDcmrgE_oQ; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd + - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevrs0mIZ3-TgVxh1Ldc6m2jE5KSPadQeki8jIpGfVIePTz1VJ6s4dIn8yQIjeCAlSaHrg4VT10hY-csbEawhaRccJiq3mRxfX3f8XeJu4VVBKtnsgRRTybDP2rKY_YEM3WVmSmfcsNXYVhPV07SE2ZSDrPP4hYhLC-wMDpQuR8CsVAgAA; + fpc=AnyHt_htnVRNgLP791qfzPM; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd User-Agent: - python-requests/2.28.1 method: GET @@ -29,7 +29,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 03 Aug 2022 09:14:59 GMT + - Thu, 25 Aug 2022 20:03:49 GMT expires: - '-1' p3p: @@ -37,7 +37,7 @@ interactions: pragma: - no-cache set-cookie: - - fpc=AlCIKPOnS6tPvHDcmrgE_oQ; expires=Fri, 02-Sep-2022 09:15:00 GMT; path=/; + - fpc=AnyHt_htnVRNgLP791qfzPM; expires=Sat, 24-Sep-2022 20:03:49 GMT; path=/; secure; HttpOnly; SameSite=None - x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly - stsservicecookie=estsfd; path=/; secure; samesite=none; httponly @@ -46,7 +46,7 @@ interactions: x-content-type-options: - nosniff x-ms-ests-server: - - 2.1.13355.6 - NEULR2 ProdSlices + - 2.1.13481.11 - WEULR1 ProdSlices x-xss-protection: - '0' status: @@ -66,26 +66,26 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.7.12 (Darwin-21.5.0-x86_64-i386-64bit) + - azsdk-python-communication-identity/1.2.1 Python/3.7.9 (Windows-10-10.0.22621-SP0) x-ms-date: - - Wed, 03 Aug 2022 09:15:00 GMT + - Thu, 25 Aug 2022 20:03:50 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/teamsUser/:exchangeAccessToken?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/teamsUser/:exchangeAccessToken?api-version=2022-10-01 response: body: string: '{"error": {"code": "ValidationError", "message": "Provided AppId has invalid format.", "target": "appId"}}' headers: api-supported-versions: - - 2021-10-31-preview, 2022-06-01 + - 2021-10-31-preview, 2022-06-01, 2022-10-01 content-type: - application/json date: - - Wed, 03 Aug 2022 09:15:00 GMT + - Thu, 25 Aug 2022 20:03:50 GMT ms-cv: - - T+WPQVJeRU6rv+SIGv0/Eg.0 + - RBiL96FPE0i56oNPuyl9Qg.0 request-context: - appId= strict-transport-security: @@ -95,7 +95,7 @@ interactions: x-cache: - CONFIG_NOCACHE x-processing-time: - - 36ms + - 43ms status: code: 400 message: Bad Request diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_for_teams_user_with_invalid_token_0_empty_token.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_for_teams_user_with_invalid_token_0_empty_token.yaml index 8aacb5784d33..e921b564865f 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_for_teams_user_with_invalid_token_0_empty_token.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_for_teams_user_with_invalid_token_0_empty_token.yaml @@ -13,13 +13,13 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.7.12 (Darwin-21.5.0-x86_64-i386-64bit) + - azsdk-python-communication-identity/1.2.1 Python/3.7.9 (Windows-10-10.0.22621-SP0) x-ms-date: - - Wed, 03 Aug 2022 09:15:00 GMT + - Thu, 25 Aug 2022 20:03:50 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/teamsUser/:exchangeAccessToken?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/teamsUser/:exchangeAccessToken?api-version=2022-10-01 response: body: string: '{"error": {"code": "InvalidAccessToken", "message": "Provided access @@ -28,9 +28,9 @@ interactions: content-type: - application/json date: - - Wed, 03 Aug 2022 09:15:01 GMT + - Thu, 25 Aug 2022 20:03:50 GMT ms-cv: - - 7KrUNc1QhEaSLSPw85d33g.0 + - DHKYJwi/P0CW+DSTQfWa9w.0 request-context: - appId= strict-transport-security: @@ -40,7 +40,7 @@ interactions: x-cache: - CONFIG_NOCACHE x-processing-time: - - 25ms + - 33ms status: code: 401 message: Unauthorized diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_for_teams_user_with_invalid_token_1_invalid_token.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_for_teams_user_with_invalid_token_1_invalid_token.yaml index 85a1f9f5b452..0097fa6cd0a3 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_for_teams_user_with_invalid_token_1_invalid_token.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_for_teams_user_with_invalid_token_1_invalid_token.yaml @@ -13,13 +13,13 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.7.12 (Darwin-21.5.0-x86_64-i386-64bit) + - azsdk-python-communication-identity/1.2.1 Python/3.7.9 (Windows-10-10.0.22621-SP0) x-ms-date: - - Wed, 03 Aug 2022 09:15:01 GMT + - Thu, 25 Aug 2022 20:03:50 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/teamsUser/:exchangeAccessToken?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/teamsUser/:exchangeAccessToken?api-version=2022-10-01 response: body: string: '{"error": {"code": "InvalidAccessToken", "message": "Provided access @@ -28,9 +28,9 @@ interactions: content-type: - application/json date: - - Wed, 03 Aug 2022 09:15:01 GMT + - Thu, 25 Aug 2022 20:03:51 GMT ms-cv: - - du4aSDNQk0O97B/77s1Arw.0 + - ApN59EeVDUKsMJP1ArXyGg.0 request-context: - appId= strict-transport-security: @@ -40,7 +40,7 @@ interactions: x-cache: - CONFIG_NOCACHE x-processing-time: - - 39ms + - 27ms status: code: 401 message: Unauthorized diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_for_teams_user_with_invalid_user_object_id_0_empty_user_object_id.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_for_teams_user_with_invalid_user_object_id_0_empty_user_object_id.yaml index 02f066d57a98..f2bd5617766f 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_for_teams_user_with_invalid_user_object_id_0_empty_user_object_id.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_for_teams_user_with_invalid_user_object_id_0_empty_user_object_id.yaml @@ -9,8 +9,8 @@ interactions: Connection: - keep-alive Cookie: - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevrm6ZzoMXixgQ-xMBXNRaksnzwfym0xpKk45biBnpmraTPhslDgEiXi0Zaq7M6vNCp-rVoh_FwzL6qfsT-QvCEbZwHXCOKvP3UpBZHld2YAd2FBpXKXRx_NfA8t4x5lNtIK9u5vVwKxXsnmUqaPCm6TD9HhQqal3EyURcu43rcJDQgAA; - fpc=AkLsAEYtkR9Pg_jSAGIg1lQ; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd + - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrsiQlqKMUnr_ltXTdhv4sHgMAhGU1LiHoPJSiAw-ZjbaSRWG9z-BOwIBsQFI3bt0JGQzWHq8Kr5QnQ52P-zXFwPgFKrkuGc0zZOZ2txaYZ4A5pR9ilc_j_p1-G03UDMYvIqkUl4l6PLg9gdcd1CusjDRNyg9FG_QxitqWdnilvDQgAA; + fpc=AnWxvt09nBhKhfK9lh6GD5Q; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd User-Agent: - python-requests/2.28.1 method: GET @@ -29,7 +29,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 03 Aug 2022 09:15:01 GMT + - Thu, 25 Aug 2022 20:03:51 GMT expires: - '-1' p3p: @@ -37,7 +37,7 @@ interactions: pragma: - no-cache set-cookie: - - fpc=AkLsAEYtkR9Pg_jSAGIg1lQ; expires=Fri, 02-Sep-2022 09:15:02 GMT; path=/; + - fpc=AnWxvt09nBhKhfK9lh6GD5Q; expires=Sat, 24-Sep-2022 20:03:51 GMT; path=/; secure; HttpOnly; SameSite=None - x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly - stsservicecookie=estsfd; path=/; secure; samesite=none; httponly @@ -46,7 +46,7 @@ interactions: x-content-type-options: - nosniff x-ms-ests-server: - - 2.1.13355.6 - WEULR1 ProdSlices + - 2.1.13481.11 - NEULR1 ProdSlices x-xss-protection: - '0' status: @@ -66,13 +66,13 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.7.12 (Darwin-21.5.0-x86_64-i386-64bit) + - azsdk-python-communication-identity/1.2.1 Python/3.7.9 (Windows-10-10.0.22621-SP0) x-ms-date: - - Wed, 03 Aug 2022 09:15:02 GMT + - Thu, 25 Aug 2022 20:03:52 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/teamsUser/:exchangeAccessToken?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/teamsUser/:exchangeAccessToken?api-version=2022-10-01 response: body: string: '{"error": {"code": "ValidationError", "message": "UserId: The UserId @@ -81,9 +81,9 @@ interactions: content-type: - application/json date: - - Wed, 03 Aug 2022 09:15:03 GMT + - Thu, 25 Aug 2022 20:03:51 GMT ms-cv: - - 50M21RomZEy2aanUIvxjhw.0 + - wdffrzUyiEahoRjHN7UV5g.0 request-context: - appId= strict-transport-security: @@ -93,7 +93,7 @@ interactions: x-cache: - CONFIG_NOCACHE x-processing-time: - - 32ms + - 51ms status: code: 400 message: Bad Request diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_for_teams_user_with_invalid_user_object_id_1_invalid_user_object_id.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_for_teams_user_with_invalid_user_object_id_1_invalid_user_object_id.yaml index 669eca29db59..ee8a1b43f56d 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_for_teams_user_with_invalid_user_object_id_1_invalid_user_object_id.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_for_teams_user_with_invalid_user_object_id_1_invalid_user_object_id.yaml @@ -9,8 +9,8 @@ interactions: Connection: - keep-alive Cookie: - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrT87IPBE6eqhnRqLF7pSXEMkJ8X8YhG93A3N2aVPCZBcycBgzR0oiCsFU5yIo757B70rY8MKnZKqcWHqQ415hCD9iGZNanCO0L-SEGewHBF-aSLtf0er5Ex-FMNYU3WD9f5nUCcg0K7SgYBj2BJ_Urbp42Hhn_VzlemodhKcLZYUgAA; - fpc=AjNhWcHw8uBHouYgToIAdMs; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd + - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrXuyU7VKeCFPwYDPqrN1CMdPwgrz24-7LQnrt8A-Lc6C6DAqJk1gQpGyExc14jN6b3-btYBFOcowNRvNBVIldlSyPu6NaXB9JK0iKv5PVonA4a2fVQ3RDCnRUU_aCX0kV9X47-z_3lTKA7rEMuYsEMafR8Xj1IeufAtJsG3sumP8gAA; + fpc=Aov-pPRNp6RNts6RmdOx-Kk; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd User-Agent: - python-requests/2.28.1 method: GET @@ -29,7 +29,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 03 Aug 2022 09:15:03 GMT + - Thu, 25 Aug 2022 20:03:51 GMT expires: - '-1' p3p: @@ -37,7 +37,7 @@ interactions: pragma: - no-cache set-cookie: - - fpc=AjNhWcHw8uBHouYgToIAdMs; expires=Fri, 02-Sep-2022 09:15:03 GMT; path=/; + - fpc=Aov-pPRNp6RNts6RmdOx-Kk; expires=Sat, 24-Sep-2022 20:03:52 GMT; path=/; secure; HttpOnly; SameSite=None - x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly - stsservicecookie=estsfd; path=/; secure; samesite=none; httponly @@ -46,7 +46,7 @@ interactions: x-content-type-options: - nosniff x-ms-ests-server: - - 2.1.13355.6 - NEULR2 ProdSlices + - 2.1.13481.11 - WEULR2 ProdSlices x-xss-protection: - '0' status: @@ -66,26 +66,26 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.7.12 (Darwin-21.5.0-x86_64-i386-64bit) + - azsdk-python-communication-identity/1.2.1 Python/3.7.9 (Windows-10-10.0.22621-SP0) x-ms-date: - - Wed, 03 Aug 2022 09:15:03 GMT + - Thu, 25 Aug 2022 20:03:52 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/teamsUser/:exchangeAccessToken?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/teamsUser/:exchangeAccessToken?api-version=2022-10-01 response: body: string: '{"error": {"code": "ValidationError", "message": "Provided UserId has invalid format.", "target": "userId"}}' headers: api-supported-versions: - - 2021-10-31-preview, 2022-06-01 + - 2021-10-31-preview, 2022-06-01, 2022-10-01 content-type: - application/json date: - - Wed, 03 Aug 2022 09:15:04 GMT + - Thu, 25 Aug 2022 20:03:52 GMT ms-cv: - - DQV3ehjiQEqd7mKL/N/YMw.0 + - u62EB86CnEOYF6dTbb9Exw.0 request-context: - appId= strict-transport-security: diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_for_teams_user_with_valid_params.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_for_teams_user_with_valid_params.yaml index aa3e2fbdd907..712963b69e83 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_for_teams_user_with_valid_params.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_for_teams_user_with_valid_params.yaml @@ -9,8 +9,8 @@ interactions: Connection: - keep-alive Cookie: - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrYw3Jl2kDb2PBjluKFBmTw_1D-rSE8rzley-6YAFl4tAkBvrliIqiLEkzTfdEajuCjlmmipePbi2DJCRk6jNDFo-Fv4Lrigt3FkXUjnuVJiFEKsQZJWhsVqyw32x0VC_ss85PoGALkPkfjeDXJYKRUAPYHjFTsF062InIVvAuG74gAA; - fpc=AmL9cvMNLMZMuwP7N10Ye5w; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd + - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr1Uqhpu7wYUjAvZ9y58uTSyAeoA8xST98asK_CjXU8eIEKYaWpBBXuAXQOnwSjZgzZGnT3aYWBW6C7qMj64Pbb3KVusNWOL1xOMbP9r6vNdpXfr1pyy2Q3-9z-rI8-1pSXXs9psMlwVZF2po1jCHGZEImhQJmSghHDOtw8O7WvtkgAA; + fpc=Ams7s0NcqBREr9LVzYt8wcw; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd User-Agent: - python-requests/2.28.1 method: GET @@ -29,7 +29,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 03 Aug 2022 09:15:04 GMT + - Thu, 25 Aug 2022 20:03:52 GMT expires: - '-1' p3p: @@ -37,7 +37,7 @@ interactions: pragma: - no-cache set-cookie: - - fpc=AmL9cvMNLMZMuwP7N10Ye5w; expires=Fri, 02-Sep-2022 09:15:05 GMT; path=/; + - fpc=Ams7s0NcqBREr9LVzYt8wcw; expires=Sat, 24-Sep-2022 20:03:53 GMT; path=/; secure; HttpOnly; SameSite=None - x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly - stsservicecookie=estsfd; path=/; secure; samesite=none; httponly @@ -46,7 +46,7 @@ interactions: x-content-type-options: - nosniff x-ms-ests-server: - - 2.1.13355.6 - NEULR1 ProdSlices + - 2.1.13481.11 - NEULR2 ProdSlices x-xss-protection: - '0' status: @@ -66,27 +66,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.7.12 (Darwin-21.5.0-x86_64-i386-64bit) + - azsdk-python-communication-identity/1.2.1 Python/3.7.9 (Windows-10-10.0.22621-SP0) x-ms-date: - - Wed, 03 Aug 2022 09:15:05 GMT + - Thu, 25 Aug 2022 20:03:53 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/teamsUser/:exchangeAccessToken?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/teamsUser/:exchangeAccessToken?api-version=2022-10-01 response: body: - string: '{"token": "sanitized", "expiresOn": "2022-08-03T10:44:10.8639733+00:00"}' + string: '{"token": "sanitized", "expiresOn": "2022-08-25T21:19:40.3381494+00:00"}' headers: api-supported-versions: - - 2021-10-31-preview, 2022-06-01 + - 2021-10-31-preview, 2022-06-01, 2022-10-01 content-length: - '824' content-type: - application/json; charset=utf-8 date: - - Wed, 03 Aug 2022 09:15:24 GMT + - Thu, 25 Aug 2022 20:03:53 GMT ms-cv: - - xcn3nUyJZ0WiRsOtqHvCDg.0 + - g5S2h8pQ8E64oI3pQWP0XA.0 request-context: - appId= strict-transport-security: @@ -94,7 +94,7 @@ interactions: x-cache: - CONFIG_NOCACHE x-processing-time: - - 19701ms + - 450ms status: code: 200 message: OK diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_for_teams_user_with_wrong_client_id.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_for_teams_user_with_wrong_client_id.yaml index b398d34e319c..7ca7f40a3051 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_for_teams_user_with_wrong_client_id.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_for_teams_user_with_wrong_client_id.yaml @@ -9,8 +9,8 @@ interactions: Connection: - keep-alive Cookie: - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevrfy1R_EdtIH7tUQmIKDCXzVEf6-gRl_BHUnAnXHWifFxIbTAr1a0MlmcQZEPbex1m1yFWYhdG0qb6vcxpL42MlSEk7lSG0wHp69Ue8q3GI82isqwHRe0JPUO166OsQqyXzLT9xflSnyp6opgANftH0oLhQvKkvhtcR62F2sP7DB0gAA; - fpc=AlQE6VbK5EdJjUOrnF3mqxU; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd + - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrPKA_IIcR9PEqQTYJnTTpCGnW1aqHj_62UUG-9VLkeEQmkO5MDUL4a3Fm6xmI2gYrMku8SKH_RJNtgXaqRmVWmiIL5WweR4kg1IBjk_hGLwE7llBikIz1h1vGajhjtOB9CbsA8Dwf_JXLpSD-vpQjEmCiUP23FzzvrL4tPkn6XnUgAA; + fpc=Al_HIqxZw3lIoEhzOqgucYw; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd User-Agent: - python-requests/2.28.1 method: GET @@ -29,7 +29,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 03 Aug 2022 09:15:26 GMT + - Thu, 25 Aug 2022 20:03:54 GMT expires: - '-1' p3p: @@ -37,7 +37,7 @@ interactions: pragma: - no-cache set-cookie: - - fpc=AlQE6VbK5EdJjUOrnF3mqxU; expires=Fri, 02-Sep-2022 09:15:26 GMT; path=/; + - fpc=Al_HIqxZw3lIoEhzOqgucYw; expires=Sat, 24-Sep-2022 20:03:54 GMT; path=/; secure; HttpOnly; SameSite=None - x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly - stsservicecookie=estsfd; path=/; secure; samesite=none; httponly @@ -46,7 +46,7 @@ interactions: x-content-type-options: - nosniff x-ms-ests-server: - - 2.1.13355.6 - NEULR1 ProdSlices + - 2.1.13481.11 - NEULR1 ProdSlices x-xss-protection: - '0' status: @@ -66,26 +66,26 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.7.12 (Darwin-21.5.0-x86_64-i386-64bit) + - azsdk-python-communication-identity/1.2.1 Python/3.7.9 (Windows-10-10.0.22621-SP0) x-ms-date: - - Wed, 03 Aug 2022 09:15:26 GMT + - Thu, 25 Aug 2022 20:03:54 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/teamsUser/:exchangeAccessToken?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/teamsUser/:exchangeAccessToken?api-version=2022-10-01 response: body: string: '{"error": {"code": "ValidationError", "message": "AAD application is not the expected one.", "target": "appId"}}' headers: api-supported-versions: - - 2021-10-31-preview, 2022-06-01 + - 2021-10-31-preview, 2022-06-01, 2022-10-01 content-type: - application/json date: - - Wed, 03 Aug 2022 09:15:27 GMT + - Thu, 25 Aug 2022 20:03:54 GMT ms-cv: - - mYnXYtD5r0G2A0SY15d5oQ.0 + - +T31Z+Ka5UufkIVkPFvD6w.0 request-context: - appId= strict-transport-security: @@ -95,7 +95,7 @@ interactions: x-cache: - CONFIG_NOCACHE x-processing-time: - - 39ms + - 50ms status: code: 400 message: Bad Request diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_for_teams_user_with_wrong_user_object_id.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_for_teams_user_with_wrong_user_object_id.yaml index 5ecec1751ddb..b250868f3cc4 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_for_teams_user_with_wrong_user_object_id.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_for_teams_user_with_wrong_user_object_id.yaml @@ -9,8 +9,8 @@ interactions: Connection: - keep-alive Cookie: - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrDHlERnfiUREfUW10Fr8nYZO_ZI2zzMGGj8N-3-fzkU0WsIE-q-GX53lMgBDgiJbp9VcKyeGtCUZ270IOjq_paV_xNJg2CaPH-p-84slJ5VlUcYdg4pdIxwjFhLEDRmWPd00khdzM7bgGlPaDh-TFz-0hUrBgiu-_DTqdrK-F_lggAA; - fpc=AooeKFT7DhJBqnces-VVj0U; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd + - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevriuBet0z5ILdsLBR-IAhloLEFVWesh2sbBT0cpketeqHPoe968evxPq4nbd-PV13Nivl3R8LpwoZPMZKzKdjoV7Qa4C-LZu4ZULl9zZ5hCgcHyXNWDRhonCpZYP_mog0I_9ac0TElG-3SH_bcb99jqVMpq69yredCIgIZPnXwLb4gAA; + fpc=AuY-gY5Wx0dJkua_leX537g; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd User-Agent: - python-requests/2.28.1 method: GET @@ -29,7 +29,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 03 Aug 2022 09:15:27 GMT + - Thu, 25 Aug 2022 20:03:55 GMT expires: - '-1' p3p: @@ -37,7 +37,7 @@ interactions: pragma: - no-cache set-cookie: - - fpc=AooeKFT7DhJBqnces-VVj0U; expires=Fri, 02-Sep-2022 09:15:27 GMT; path=/; + - fpc=AuY-gY5Wx0dJkua_leX537g; expires=Sat, 24-Sep-2022 20:03:56 GMT; path=/; secure; HttpOnly; SameSite=None - x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly - stsservicecookie=estsfd; path=/; secure; samesite=none; httponly @@ -46,7 +46,7 @@ interactions: x-content-type-options: - nosniff x-ms-ests-server: - - 2.1.13355.6 - WEULR1 ProdSlices + - 2.1.13481.11 - NEULR1 ProdSlices x-xss-protection: - '0' status: @@ -66,26 +66,26 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.7.12 (Darwin-21.5.0-x86_64-i386-64bit) + - azsdk-python-communication-identity/1.2.1 Python/3.7.9 (Windows-10-10.0.22621-SP0) x-ms-date: - - Wed, 03 Aug 2022 09:15:27 GMT + - Thu, 25 Aug 2022 20:03:56 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/teamsUser/:exchangeAccessToken?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/teamsUser/:exchangeAccessToken?api-version=2022-10-01 response: body: string: '{"error": {"code": "ValidationError", "message": "Provided AAD token issued for unexpected user.", "target": "userId"}}' headers: api-supported-versions: - - 2021-10-31-preview, 2022-06-01 + - 2021-10-31-preview, 2022-06-01, 2022-10-01 content-type: - application/json date: - - Wed, 03 Aug 2022 09:15:27 GMT + - Thu, 25 Aug 2022 20:03:56 GMT ms-cv: - - flf5XchF0EiAj7+rCktIkA.0 + - IPRGhlTb1EukjYwBL5iWpQ.0 request-context: - appId= strict-transport-security: @@ -95,7 +95,7 @@ interactions: x-cache: - CONFIG_NOCACHE x-processing-time: - - 51ms + - 46ms status: code: 400 message: Bad Request diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_from_managed_identity.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_from_managed_identity.yaml index 3a3ce589850e..f5dba79f66ec 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_from_managed_identity.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_from_managed_identity.yaml @@ -1,6 +1,6 @@ interactions: - request: - body: '{}' + body: null headers: Accept: - application/json @@ -9,28 +9,28 @@ interactions: Connection: - keep-alive Content-Length: - - '2' + - '0' Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.7.12 (Darwin-21.5.0-x86_64-i386-64bit) + - azsdk-python-communication-identity/1.2.1 Python/3.7.9 (Windows-10-10.0.22621-SP0) method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 response: body: string: '{"identity": {"id": "sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: - application/json; charset=utf-8 date: - - Wed, 03 Aug 2022 09:15:29 GMT + - Thu, 25 Aug 2022 20:03:56 GMT ms-cv: - - KThQYBgxhESETNDl3bjBMQ.0 + - HOV1PDvozE+tPy5+QRRTpg.0 request-context: - appId= strict-transport-security: @@ -38,7 +38,7 @@ interactions: x-cache: - CONFIG_NOCACHE x-processing-time: - - 29ms + - 76ms status: code: 201 message: Created @@ -56,24 +56,24 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.7.12 (Darwin-21.5.0-x86_64-i386-64bit) + - azsdk-python-communication-identity/1.2.1 Python/3.7.9 (Windows-10-10.0.22621-SP0) method: POST - uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2022-10-01 response: body: - string: '{"token": "sanitized", "expiresOn": "2022-08-04T09:15:30.0386735+00:00"}' + string: '{"token": "sanitized", "expiresOn": "2022-08-26T20:03:57.7361416+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '804' content-type: - application/json; charset=utf-8 date: - - Wed, 03 Aug 2022 09:15:29 GMT + - Thu, 25 Aug 2022 20:03:57 GMT ms-cv: - - n2wKOuKKuU2IwHgyhub1sg.0 + - eb5TUnx0e0666rbBi6TLQg.0 request-context: - appId= strict-transport-security: @@ -81,7 +81,7 @@ interactions: x-cache: - CONFIG_NOCACHE x-processing-time: - - 38ms + - 54ms status: code: 200 message: OK diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_with_custom_maximum_validity.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_with_custom_maximum_validity.yaml new file mode 100644 index 000000000000..f26353600dfe --- /dev/null +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_with_custom_maximum_validity.yaml @@ -0,0 +1,96 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + Content-Type: + - application/json + User-Agent: + - azsdk-python-communication-identity/1.2.1 Python/3.7.9 (Windows-10-10.0.22621-SP0) + x-ms-date: + - Thu, 25 Aug 2022 20:03:57 GMT + x-ms-return-client-request-id: + - 'true' + method: POST + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 + response: + body: + string: '{"identity": {"id": "sanitized"}}' + headers: + api-supported-versions: + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, + 2021-11-01, 2022-06-01, 2022-10-01 + content-length: + - '101' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 25 Aug 2022 20:03:57 GMT + ms-cv: + - uC4LaNX1wkO/YPn0fDP03Q.0 + request-context: + - appId= + strict-transport-security: + - max-age=2592000 + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 35ms + status: + code: 201 + message: Created +- request: + body: '{"scopes": ["chat"], "expiresInMinutes": 1440}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '46' + Content-Type: + - application/json + User-Agent: + - azsdk-python-communication-identity/1.2.1 Python/3.7.9 (Windows-10-10.0.22621-SP0) + x-ms-date: + - Thu, 25 Aug 2022 20:03:58 GMT + x-ms-return-client-request-id: + - 'true' + method: POST + uri: https://sanitized.ppe.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2022-10-01 + response: + body: + string: '{"token": "sanitized", "expiresOn": "2022-08-26T20:03:58.3190244+00:00"}' + headers: + api-supported-versions: + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, + 2021-11-01, 2022-06-01, 2022-10-01 + content-length: + - '804' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 25 Aug 2022 20:03:57 GMT + ms-cv: + - qYVj2duLg0GdYQecPc9hSw.0 + request-context: + - appId= + strict-transport-security: + - max-age=2592000 + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 45ms + status: + code: 200 + message: OK +version: 1 diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_with_custom_minimum_validity.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_with_custom_minimum_validity.yaml new file mode 100644 index 000000000000..28bc08bd2be5 --- /dev/null +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_with_custom_minimum_validity.yaml @@ -0,0 +1,96 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + Content-Type: + - application/json + User-Agent: + - azsdk-python-communication-identity/1.2.1 Python/3.7.9 (Windows-10-10.0.22621-SP0) + x-ms-date: + - Thu, 25 Aug 2022 20:03:58 GMT + x-ms-return-client-request-id: + - 'true' + method: POST + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 + response: + body: + string: '{"identity": {"id": "sanitized"}}' + headers: + api-supported-versions: + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, + 2021-11-01, 2022-06-01, 2022-10-01 + content-length: + - '101' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 25 Aug 2022 20:03:58 GMT + ms-cv: + - uoiZ2/UpzEevnb9LBh+fNw.0 + request-context: + - appId= + strict-transport-security: + - max-age=2592000 + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 37ms + status: + code: 201 + message: Created +- request: + body: '{"scopes": ["chat"], "expiresInMinutes": 60}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '44' + Content-Type: + - application/json + User-Agent: + - azsdk-python-communication-identity/1.2.1 Python/3.7.9 (Windows-10-10.0.22621-SP0) + x-ms-date: + - Thu, 25 Aug 2022 20:03:58 GMT + x-ms-return-client-request-id: + - 'true' + method: POST + uri: https://sanitized.ppe.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2022-10-01 + response: + body: + string: '{"token": "sanitized", "expiresOn": "2022-08-25T21:03:58.9989782+00:00"}' + headers: + api-supported-versions: + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, + 2021-11-01, 2022-06-01, 2022-10-01 + content-length: + - '804' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 25 Aug 2022 20:03:58 GMT + ms-cv: + - 4kDYOGQIb0CDVXlR5jWKxA.0 + request-context: + - appId= + strict-transport-security: + - max-age=2592000 + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 40ms + status: + code: 200 + message: OK +version: 1 diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_with_custom_validity_over_maximum_allowed.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_with_custom_validity_over_maximum_allowed.yaml new file mode 100644 index 000000000000..eb94ac38fbba --- /dev/null +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_with_custom_validity_over_maximum_allowed.yaml @@ -0,0 +1,97 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + Content-Type: + - application/json + User-Agent: + - azsdk-python-communication-identity/1.2.1 Python/3.7.9 (Windows-10-10.0.22621-SP0) + x-ms-date: + - Thu, 25 Aug 2022 20:03:59 GMT + x-ms-return-client-request-id: + - 'true' + method: POST + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 + response: + body: + string: '{"identity": {"id": "sanitized"}}' + headers: + api-supported-versions: + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, + 2021-11-01, 2022-06-01, 2022-10-01 + content-length: + - '101' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 25 Aug 2022 20:03:59 GMT + ms-cv: + - X3ZOh9OY/02nOI90WW1Tmw.0 + request-context: + - appId= + strict-transport-security: + - max-age=2592000 + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 46ms + status: + code: 201 + message: Created +- request: + body: '{"scopes": ["chat"], "expiresInMinutes": 1441}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '46' + Content-Type: + - application/json + User-Agent: + - azsdk-python-communication-identity/1.2.1 Python/3.7.9 (Windows-10-10.0.22621-SP0) + x-ms-date: + - Thu, 25 Aug 2022 20:03:59 GMT + x-ms-return-client-request-id: + - 'true' + method: POST + uri: https://sanitized.ppe.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2022-10-01 + response: + body: + string: '{"error": {"code": "ValidationError", "message": "ExpiresInMinutes + value 1441 is invalid.", "target": "ExpiresInMinutes"}}' + headers: + api-supported-versions: + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, + 2021-11-01, 2022-06-01, 2022-10-01 + content-type: + - application/json + date: + - Thu, 25 Aug 2022 20:03:59 GMT + ms-cv: + - NH2VByLXRUCs1/4Lo+7JoA.0 + request-context: + - appId= + strict-transport-security: + - max-age=2592000 + transfer-encoding: + - chunked + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 26ms + status: + code: 400 + message: Bad Request +version: 1 diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_with_custom_validity_under_minimum_allowed.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_with_custom_validity_under_minimum_allowed.yaml new file mode 100644 index 000000000000..14c5631fb2c4 --- /dev/null +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_with_custom_validity_under_minimum_allowed.yaml @@ -0,0 +1,97 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + Content-Type: + - application/json + User-Agent: + - azsdk-python-communication-identity/1.2.1 Python/3.7.9 (Windows-10-10.0.22621-SP0) + x-ms-date: + - Thu, 25 Aug 2022 20:04:00 GMT + x-ms-return-client-request-id: + - 'true' + method: POST + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 + response: + body: + string: '{"identity": {"id": "sanitized"}}' + headers: + api-supported-versions: + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, + 2021-11-01, 2022-06-01, 2022-10-01 + content-length: + - '101' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 25 Aug 2022 20:04:00 GMT + ms-cv: + - fFv5v5lPbUy0KyswPnGROA.0 + request-context: + - appId= + strict-transport-security: + - max-age=2592000 + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 34ms + status: + code: 201 + message: Created +- request: + body: '{"scopes": ["chat"], "expiresInMinutes": 59}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '44' + Content-Type: + - application/json + User-Agent: + - azsdk-python-communication-identity/1.2.1 Python/3.7.9 (Windows-10-10.0.22621-SP0) + x-ms-date: + - Thu, 25 Aug 2022 20:04:00 GMT + x-ms-return-client-request-id: + - 'true' + method: POST + uri: https://sanitized.ppe.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2022-10-01 + response: + body: + string: '{"error": {"code": "ValidationError", "message": "ExpiresInMinutes + value 59 is invalid.", "target": "ExpiresInMinutes"}}' + headers: + api-supported-versions: + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, + 2021-11-01, 2022-06-01, 2022-10-01 + content-type: + - application/json + date: + - Thu, 25 Aug 2022 20:04:00 GMT + ms-cv: + - 7GaoXxKKY0+5nipZuiHjNw.0 + request-context: + - appId= + strict-transport-security: + - max-age=2592000 + transfer-encoding: + - chunked + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 31ms + status: + code: 400 + message: Bad Request +version: 1 diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_with_no_scopes.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_with_no_scopes.yaml index 09b46d43e207..6c441e4effcb 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_with_no_scopes.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_with_no_scopes.yaml @@ -1,6 +1,6 @@ interactions: - request: - body: '{}' + body: null headers: Accept: - application/json @@ -9,32 +9,32 @@ interactions: Connection: - keep-alive Content-Length: - - '2' + - '0' Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.7.12 (Darwin-21.5.0-x86_64-i386-64bit) + - azsdk-python-communication-identity/1.2.1 Python/3.7.9 (Windows-10-10.0.22621-SP0) x-ms-date: - - Wed, 03 Aug 2022 09:15:29 GMT + - Thu, 25 Aug 2022 20:04:00 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 response: body: string: '{"identity": {"id": "sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: - application/json; charset=utf-8 date: - - Wed, 03 Aug 2022 09:15:29 GMT + - Thu, 25 Aug 2022 20:04:00 GMT ms-cv: - - f04iN4jIIU2kY5pVDEvfuA.0 + - hfXSZEp9lEyNxgTRm1HBhA.0 request-context: - appId= strict-transport-security: @@ -42,12 +42,12 @@ interactions: x-cache: - CONFIG_NOCACHE x-processing-time: - - 26ms + - 40ms status: code: 201 message: Created - request: - body: '{}' + body: '{"scopes": null}' headers: Accept: - application/json @@ -56,17 +56,17 @@ interactions: Connection: - keep-alive Content-Length: - - '2' + - '16' Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.7.12 (Darwin-21.5.0-x86_64-i386-64bit) + - azsdk-python-communication-identity/1.2.1 Python/3.7.9 (Windows-10-10.0.22621-SP0) x-ms-date: - - Wed, 03 Aug 2022 09:15:30 GMT + - Thu, 25 Aug 2022 20:04:00 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2022-10-01 response: body: string: '{"error": {"code": "ValidationError", "message": "Scopes: The Scopes @@ -75,9 +75,9 @@ interactions: content-type: - application/json date: - - Wed, 03 Aug 2022 09:15:30 GMT + - Thu, 25 Aug 2022 20:04:00 GMT ms-cv: - - JOSJnqiSc0ywaKPYHuO35w.0 + - 6Jk/8ME1cEGQkzzOiEh+5g.0 request-context: - appId= strict-transport-security: @@ -87,7 +87,7 @@ interactions: x-cache: - CONFIG_NOCACHE x-processing-time: - - 62ms + - 37ms status: code: 400 message: Bad Request diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_revoke_tokens.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_revoke_tokens.yaml index bed45ffa1d39..11584cb91b56 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_revoke_tokens.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_revoke_tokens.yaml @@ -1,6 +1,6 @@ interactions: - request: - body: '{}' + body: null headers: Accept: - application/json @@ -9,32 +9,32 @@ interactions: Connection: - keep-alive Content-Length: - - '2' + - '0' Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.7.12 (Darwin-21.5.0-x86_64-i386-64bit) + - azsdk-python-communication-identity/1.2.1 Python/3.7.9 (Windows-10-10.0.22621-SP0) x-ms-date: - - Wed, 03 Aug 2022 09:15:30 GMT + - Thu, 25 Aug 2022 20:04:01 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 response: body: string: '{"identity": {"id": "sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: - application/json; charset=utf-8 date: - - Wed, 03 Aug 2022 09:15:30 GMT + - Thu, 25 Aug 2022 20:04:01 GMT ms-cv: - - Lr6vAbpD20a4Ph8ww7SFWA.0 + - PT8imR+IXkK97MJis2j61w.0 request-context: - appId= strict-transport-security: @@ -42,7 +42,7 @@ interactions: x-cache: - CONFIG_NOCACHE x-processing-time: - - 37ms + - 33ms status: code: 201 message: Created @@ -60,28 +60,28 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.7.12 (Darwin-21.5.0-x86_64-i386-64bit) + - azsdk-python-communication-identity/1.2.1 Python/3.7.9 (Windows-10-10.0.22621-SP0) x-ms-date: - - Wed, 03 Aug 2022 09:15:31 GMT + - Thu, 25 Aug 2022 20:04:01 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2022-10-01 response: body: - string: '{"token": "sanitized", "expiresOn": "2022-08-04T09:15:31.3345831+00:00"}' + string: '{"token": "sanitized", "expiresOn": "2022-08-26T20:04:01.6141005+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '804' content-type: - application/json; charset=utf-8 date: - - Wed, 03 Aug 2022 09:15:30 GMT + - Thu, 25 Aug 2022 20:04:01 GMT ms-cv: - - md+8+sRIhEe9sjYpGqeEyg.0 + - RVAcB/ek50mU3+Itjf6CZw.0 request-context: - appId= strict-transport-security: @@ -89,7 +89,7 @@ interactions: x-cache: - CONFIG_NOCACHE x-processing-time: - - 38ms + - 44ms status: code: 200 message: OK @@ -105,24 +105,24 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.7.12 (Darwin-21.5.0-x86_64-i386-64bit) + - azsdk-python-communication-identity/1.2.1 Python/3.7.9 (Windows-10-10.0.22621-SP0) x-ms-date: - - Wed, 03 Aug 2022 09:15:31 GMT + - Thu, 25 Aug 2022 20:04:01 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities/sanitized/:revokeAccessTokens?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities/sanitized/:revokeAccessTokens?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - - Wed, 03 Aug 2022 09:15:31 GMT + - Thu, 25 Aug 2022 20:04:01 GMT ms-cv: - - Fx7hSPEV2kCUKxehpl1eYg.0 + - CKD/rny9wUioVCjaElf5VQ.0 request-context: - appId= strict-transport-security: @@ -130,7 +130,7 @@ interactions: x-cache: - CONFIG_NOCACHE x-processing-time: - - 137ms + - 170ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_revoke_tokens_from_managed_identity.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_revoke_tokens_from_managed_identity.yaml index 70b1a6596987..bf0bd26f8e24 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_revoke_tokens_from_managed_identity.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_revoke_tokens_from_managed_identity.yaml @@ -1,6 +1,6 @@ interactions: - request: - body: '{}' + body: null headers: Accept: - application/json @@ -9,28 +9,28 @@ interactions: Connection: - keep-alive Content-Length: - - '2' + - '0' Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.7.12 (Darwin-21.5.0-x86_64-i386-64bit) + - azsdk-python-communication-identity/1.2.1 Python/3.7.9 (Windows-10-10.0.22621-SP0) method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 response: body: string: '{"identity": {"id": "sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: - application/json; charset=utf-8 date: - - Wed, 03 Aug 2022 09:15:32 GMT + - Thu, 25 Aug 2022 20:04:02 GMT ms-cv: - - dsuiLuhAb0W+kPoYwE/jyg.0 + - grmsZh2rg0OhnqR+Hkulqw.0 request-context: - appId= strict-transport-security: @@ -38,7 +38,7 @@ interactions: x-cache: - CONFIG_NOCACHE x-processing-time: - - 29ms + - 41ms status: code: 201 message: Created @@ -56,24 +56,24 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.7.12 (Darwin-21.5.0-x86_64-i386-64bit) + - azsdk-python-communication-identity/1.2.1 Python/3.7.9 (Windows-10-10.0.22621-SP0) method: POST - uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2022-10-01 response: body: - string: '{"token": "sanitized", "expiresOn": "2022-08-04T09:15:32.8886868+00:00"}' + string: '{"token": "sanitized", "expiresOn": "2022-08-26T20:04:03.1297055+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '804' content-type: - application/json; charset=utf-8 date: - - Wed, 03 Aug 2022 09:15:32 GMT + - Thu, 25 Aug 2022 20:04:02 GMT ms-cv: - - XCfSm3PRSkaTLSxam8ebOA.0 + - TxZzW4k9x0SWy9cTaP038A.0 request-context: - appId= strict-transport-security: @@ -81,7 +81,7 @@ interactions: x-cache: - CONFIG_NOCACHE x-processing-time: - - 45ms + - 39ms status: code: 200 message: OK @@ -97,20 +97,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.7.12 (Darwin-21.5.0-x86_64-i386-64bit) + - azsdk-python-communication-identity/1.2.1 Python/3.7.9 (Windows-10-10.0.22621-SP0) method: POST - uri: https://sanitized.communication.azure.com/identities/sanitized/:revokeAccessTokens?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities/sanitized/:revokeAccessTokens?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - - Wed, 03 Aug 2022 09:15:32 GMT + - Thu, 25 Aug 2022 20:04:03 GMT ms-cv: - - 1KJ49rJlc06bKOevEnTNgA.0 + - qUYlMaCY/ESgGs5s2gdMtg.0 request-context: - appId= strict-transport-security: @@ -118,7 +118,7 @@ interactions: x-cache: - CONFIG_NOCACHE x-processing-time: - - 248ms + - 249ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_create_user.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_create_user.yaml index 0f6cb7b32064..6c8a206540a7 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_create_user.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_create_user.yaml @@ -1,37 +1,35 @@ interactions: - request: - body: '{}' + body: '' headers: Accept: - application/json - Content-Length: - - '2' Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.7.12 (Darwin-21.5.0-x86_64-i386-64bit) + - azsdk-python-communication-identity/1.2.1 Python/3.7.9 (Windows-10-10.0.22621-SP0) x-ms-date: - - Wed, 03 Aug 2022 09:15:33 GMT + - Thu, 25 Aug 2022 20:04:03 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 response: body: string: '{"identity": {"id": "sanitized"}}' headers: api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, - 2021-10-31-preview, 2021-11-01, 2022-06-01 + 2021-10-31-preview, 2021-11-01, 2022-06-01, 2022-10-01 content-length: '101' content-type: application/json; charset=utf-8 - date: Wed, 03 Aug 2022 09:15:33 GMT - ms-cv: wDW7q0tPKUGlLD5i803vSg.0 + date: Thu, 25 Aug 2022 20:04:03 GMT + ms-cv: oXpHbjby7E61JL0DqFGfXA.0 request-context: appId= strict-transport-security: max-age=2592000 x-cache: CONFIG_NOCACHE - x-processing-time: 36ms + x-processing-time: 34ms status: code: 201 message: Created - url: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + url: https://test-petrsvihlik.ppe.communication.azure.net/identities?api-version=2022-10-01 version: 1 diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_create_user_and_token.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_create_user_and_token.yaml index 550e6233bd16..50313404bf95 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_create_user_and_token.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_create_user_and_token.yaml @@ -9,30 +9,30 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.7.12 (Darwin-21.5.0-x86_64-i386-64bit) + - azsdk-python-communication-identity/1.2.1 Python/3.7.9 (Windows-10-10.0.22621-SP0) x-ms-date: - - Wed, 03 Aug 2022 09:15:34 GMT + - Thu, 25 Aug 2022 20:04:04 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 response: body: string: '{"identity": {"id": "sanitized"}, "accessToken": {"token": "sanitized", - "expiresOn": "2022-08-04T09:15:34.8172235+00:00"}}' + "expiresOn": "2022-08-26T20:04:04.2146678+00:00"}}' headers: api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, - 2021-10-31-preview, 2021-11-01, 2022-06-01 + 2021-10-31-preview, 2021-11-01, 2022-06-01, 2022-10-01 content-length: '920' content-type: application/json; charset=utf-8 - date: Wed, 03 Aug 2022 09:15:34 GMT - ms-cv: 6wbADubd/UevVoGdSOjtuQ.0 + date: Thu, 25 Aug 2022 20:04:03 GMT + ms-cv: knpoVtY9ukyCg+gvt5/OTg.0 request-context: appId= strict-transport-security: max-age=2592000 x-cache: CONFIG_NOCACHE - x-processing-time: 35ms + x-processing-time: 70ms status: code: 201 message: Created - url: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + url: https://test-petrsvihlik.ppe.communication.azure.net/identities?api-version=2022-10-01 version: 1 diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_create_user_and_token_with_custom_maximum_validity.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_create_user_and_token_with_custom_maximum_validity.yaml new file mode 100644 index 000000000000..bc80961952d8 --- /dev/null +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_create_user_and_token_with_custom_maximum_validity.yaml @@ -0,0 +1,38 @@ +interactions: +- request: + body: '{"createTokenWithScopes": ["chat"], "expiresInMinutes": 1440}' + headers: + Accept: + - application/json + Content-Length: + - '61' + Content-Type: + - application/json + User-Agent: + - azsdk-python-communication-identity/1.2.1 Python/3.7.9 (Windows-10-10.0.22621-SP0) + x-ms-date: + - Thu, 25 Aug 2022 20:04:04 GMT + x-ms-return-client-request-id: + - 'true' + method: POST + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 + response: + body: + string: '{"identity": {"id": "sanitized"}, "accessToken": {"token": "sanitized", + "expiresOn": "2022-08-26T20:04:04.497103+00:00"}}' + headers: + api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, + 2021-10-31-preview, 2021-11-01, 2022-06-01, 2022-10-01 + content-length: '919' + content-type: application/json; charset=utf-8 + date: Thu, 25 Aug 2022 20:04:04 GMT + ms-cv: Y24KRX8u1UGlH4Auv2DBug.0 + request-context: appId= + strict-transport-security: max-age=2592000 + x-cache: CONFIG_NOCACHE + x-processing-time: 43ms + status: + code: 201 + message: Created + url: https://test-petrsvihlik.ppe.communication.azure.net/identities?api-version=2022-10-01 +version: 1 diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_create_user_and_token_with_custom_minimum_validity.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_create_user_and_token_with_custom_minimum_validity.yaml new file mode 100644 index 000000000000..86b060ca5a48 --- /dev/null +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_create_user_and_token_with_custom_minimum_validity.yaml @@ -0,0 +1,38 @@ +interactions: +- request: + body: '{"createTokenWithScopes": ["chat"], "expiresInMinutes": 60}' + headers: + Accept: + - application/json + Content-Length: + - '59' + Content-Type: + - application/json + User-Agent: + - azsdk-python-communication-identity/1.2.1 Python/3.7.9 (Windows-10-10.0.22621-SP0) + x-ms-date: + - Thu, 25 Aug 2022 20:04:04 GMT + x-ms-return-client-request-id: + - 'true' + method: POST + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 + response: + body: + string: '{"identity": {"id": "sanitized"}, "accessToken": {"token": "sanitized", + "expiresOn": "2022-08-25T21:04:04.7806553+00:00"}}' + headers: + api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, + 2021-10-31-preview, 2021-11-01, 2022-06-01, 2022-10-01 + content-length: '920' + content-type: application/json; charset=utf-8 + date: Thu, 25 Aug 2022 20:04:04 GMT + ms-cv: mWmB0MXDqUmcosbxE/6+wQ.0 + request-context: appId= + strict-transport-security: max-age=2592000 + x-cache: CONFIG_NOCACHE + x-processing-time: 52ms + status: + code: 201 + message: Created + url: https://test-petrsvihlik.ppe.communication.azure.net/identities?api-version=2022-10-01 +version: 1 diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_create_user_and_token_with_custom_validity_over_maximum_allowed.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_create_user_and_token_with_custom_validity_over_maximum_allowed.yaml new file mode 100644 index 000000000000..b1da39f1c335 --- /dev/null +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_create_user_and_token_with_custom_validity_over_maximum_allowed.yaml @@ -0,0 +1,38 @@ +interactions: +- request: + body: '{"createTokenWithScopes": ["chat"], "expiresInMinutes": 1441}' + headers: + Accept: + - application/json + Content-Length: + - '61' + Content-Type: + - application/json + User-Agent: + - azsdk-python-communication-identity/1.2.1 Python/3.7.9 (Windows-10-10.0.22621-SP0) + x-ms-date: + - Thu, 25 Aug 2022 20:04:04 GMT + x-ms-return-client-request-id: + - 'true' + method: POST + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 + response: + body: + string: '{"error": {"code": "ValidationError", "message": "ExpiresInMinutes + value 1441 is invalid.", "target": "ExpiresInMinutes"}}' + headers: + api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, + 2021-10-31-preview, 2021-11-01, 2022-06-01, 2022-10-01 + content-type: application/json + date: Thu, 25 Aug 2022 20:04:04 GMT + ms-cv: TV7/pM0NwEuqDH2dxRh4NQ.0 + request-context: appId= + strict-transport-security: max-age=2592000 + transfer-encoding: chunked + x-cache: CONFIG_NOCACHE + x-processing-time: 34ms + status: + code: 400 + message: Bad Request + url: https://test-petrsvihlik.ppe.communication.azure.net/identities?api-version=2022-10-01 +version: 1 diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_create_user_and_token_with_custom_validity_under_minimum_allowed.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_create_user_and_token_with_custom_validity_under_minimum_allowed.yaml new file mode 100644 index 000000000000..034cdd57625d --- /dev/null +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_create_user_and_token_with_custom_validity_under_minimum_allowed.yaml @@ -0,0 +1,38 @@ +interactions: +- request: + body: '{"createTokenWithScopes": ["chat"], "expiresInMinutes": 59}' + headers: + Accept: + - application/json + Content-Length: + - '59' + Content-Type: + - application/json + User-Agent: + - azsdk-python-communication-identity/1.2.1 Python/3.7.9 (Windows-10-10.0.22621-SP0) + x-ms-date: + - Thu, 25 Aug 2022 20:04:05 GMT + x-ms-return-client-request-id: + - 'true' + method: POST + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 + response: + body: + string: '{"error": {"code": "ValidationError", "message": "ExpiresInMinutes + value 59 is invalid.", "target": "ExpiresInMinutes"}}' + headers: + api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, + 2021-10-31-preview, 2021-11-01, 2022-06-01, 2022-10-01 + content-type: application/json + date: Thu, 25 Aug 2022 20:04:04 GMT + ms-cv: VeMtaBNDK0ulDz9K4lb/1w.0 + request-context: appId= + strict-transport-security: max-age=2592000 + transfer-encoding: chunked + x-cache: CONFIG_NOCACHE + x-processing-time: 26ms + status: + code: 400 + message: Bad Request + url: https://test-petrsvihlik.ppe.communication.azure.net/identities?api-version=2022-10-01 +version: 1 diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_create_user_and_token_with_no_scopes.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_create_user_and_token_with_no_scopes.yaml index e7694090a22f..0f3484e78d3f 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_create_user_and_token_with_no_scopes.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_create_user_and_token_with_no_scopes.yaml @@ -1,37 +1,38 @@ interactions: - request: - body: '{}' + body: '{"createTokenWithScopes": null}' headers: Accept: - application/json Content-Length: - - '2' + - '31' Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.7.12 (Darwin-21.5.0-x86_64-i386-64bit) + - azsdk-python-communication-identity/1.2.1 Python/3.7.9 (Windows-10-10.0.22621-SP0) x-ms-date: - - Wed, 03 Aug 2022 09:15:34 GMT + - Thu, 25 Aug 2022 20:04:05 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 response: body: - string: '{"identity": {"id": "sanitized"}}' + string: '{"error": {"code": "ValidationError", "message": "CreateTokenWithScopes + value is missing.", "target": "CreateTokenWithScopes"}}' headers: api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, - 2021-10-31-preview, 2021-11-01, 2022-06-01 - content-length: '101' - content-type: application/json; charset=utf-8 - date: Wed, 03 Aug 2022 09:15:34 GMT - ms-cv: Vn+NQJ3i4E+fwL7J5Us9JA.0 + 2021-10-31-preview, 2021-11-01, 2022-06-01, 2022-10-01 + content-type: application/json + date: Thu, 25 Aug 2022 20:04:05 GMT + ms-cv: DXD+Hgj3R0uYy4Xfu82xqA.0 request-context: appId= strict-transport-security: max-age=2592000 + transfer-encoding: chunked x-cache: CONFIG_NOCACHE - x-processing-time: 35ms + x-processing-time: 30ms status: - code: 201 - message: Created - url: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + code: 400 + message: Bad Request + url: https://test-petrsvihlik.ppe.communication.azure.net/identities?api-version=2022-10-01 version: 1 diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_create_user_from_managed_identity.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_create_user_from_managed_identity.yaml index 36504345e8f5..3b487d70da56 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_create_user_from_managed_identity.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_create_user_from_managed_identity.yaml @@ -1,33 +1,31 @@ interactions: - request: - body: '{}' + body: null headers: Accept: - application/json - Content-Length: - - '2' Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.7.12 (Darwin-21.5.0-x86_64-i386-64bit) + - azsdk-python-communication-identity/1.2.1 Python/3.7.9 (Windows-10-10.0.22621-SP0) method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 response: body: string: '{"identity": {"id": "sanitized"}}' headers: api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, - 2021-10-31-preview, 2021-11-01, 2022-06-01 + 2021-10-31-preview, 2021-11-01, 2022-06-01, 2022-10-01 content-length: '101' content-type: application/json; charset=utf-8 - date: Wed, 03 Aug 2022 09:15:35 GMT - ms-cv: n9M2Zx9i80qixK0RGwMsmg.0 + date: Thu, 25 Aug 2022 20:04:06 GMT + ms-cv: x3M+5mCS9kCR3QMKevicOw.0 request-context: appId= strict-transport-security: max-age=2592000 x-cache: CONFIG_NOCACHE - x-processing-time: 24ms + x-processing-time: 193ms status: code: 201 message: Created - url: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + url: https://test-petrsvihlik.ppe.communication.azure.net/identities?api-version=2022-10-01 version: 1 diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_delete_user.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_delete_user.yaml index 772364526841..096efde0f116 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_delete_user.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_delete_user.yaml @@ -1,66 +1,64 @@ interactions: - request: - body: '{}' + body: '' headers: Accept: - application/json - Content-Length: - - '2' Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.7.12 (Darwin-21.5.0-x86_64-i386-64bit) + - azsdk-python-communication-identity/1.2.1 Python/3.7.9 (Windows-10-10.0.22621-SP0) x-ms-date: - - Wed, 03 Aug 2022 09:15:35 GMT + - Thu, 25 Aug 2022 20:04:06 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 response: body: string: '{"identity": {"id": "sanitized"}}' headers: api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, - 2021-10-31-preview, 2021-11-01, 2022-06-01 + 2021-10-31-preview, 2021-11-01, 2022-06-01, 2022-10-01 content-length: '101' content-type: application/json; charset=utf-8 - date: Wed, 03 Aug 2022 09:15:35 GMT - ms-cv: ZkXjZvHBrUqaZwSIrs3eWA.0 + date: Thu, 25 Aug 2022 20:04:05 GMT + ms-cv: 9dpFfOjkQU2sfi05B2uwNg.0 request-context: appId= strict-transport-security: max-age=2592000 x-cache: CONFIG_NOCACHE - x-processing-time: 36ms + x-processing-time: 44ms status: code: 201 message: Created - url: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + url: https://test-petrsvihlik.ppe.communication.azure.net/identities?api-version=2022-10-01 - request: body: '' headers: Accept: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.7.12 (Darwin-21.5.0-x86_64-i386-64bit) + - azsdk-python-communication-identity/1.2.1 Python/3.7.9 (Windows-10-10.0.22621-SP0) x-ms-date: - - Wed, 03 Aug 2022 09:15:36 GMT + - Thu, 25 Aug 2022 20:04:06 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, - 2021-10-31-preview, 2021-11-01, 2022-06-01 - date: Wed, 03 Aug 2022 09:15:36 GMT - ms-cv: KFh9ctTUpk2L8RP/RBF/7w.0 + 2021-10-31-preview, 2021-11-01, 2022-06-01, 2022-10-01 + date: Thu, 25 Aug 2022 20:04:06 GMT + ms-cv: S9OvRcNALk2jU3tbih623g.0 request-context: appId= strict-transport-security: max-age=2592000 x-cache: CONFIG_NOCACHE - x-processing-time: 536ms + x-processing-time: 463ms status: code: 204 message: No Content - url: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + url: https://test-petrsvihlik.ppe.communication.azure.net/identities/sanitized?api-version=2022-10-01 version: 1 diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_delete_user_from_managed_identity.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_delete_user_from_managed_identity.yaml index 08ce8d4873e0..889e92376953 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_delete_user_from_managed_identity.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_delete_user_from_managed_identity.yaml @@ -1,58 +1,56 @@ interactions: - request: - body: '{}' + body: null headers: Accept: - application/json - Content-Length: - - '2' Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.7.12 (Darwin-21.5.0-x86_64-i386-64bit) + - azsdk-python-communication-identity/1.2.1 Python/3.7.9 (Windows-10-10.0.22621-SP0) method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 response: body: string: '{"identity": {"id": "sanitized"}}' headers: api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, - 2021-10-31-preview, 2021-11-01, 2022-06-01 + 2021-10-31-preview, 2021-11-01, 2022-06-01, 2022-10-01 content-length: '101' content-type: application/json; charset=utf-8 - date: Wed, 03 Aug 2022 09:15:37 GMT - ms-cv: +W4u95/uZEmoL0zaoh9kwg.0 + date: Thu, 25 Aug 2022 20:04:07 GMT + ms-cv: EauQ0z2eIUCi4Aqbo5yGsA.0 request-context: appId= strict-transport-security: max-age=2592000 x-cache: CONFIG_NOCACHE - x-processing-time: 29ms + x-processing-time: 43ms status: code: 201 message: Created - url: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + url: https://test-petrsvihlik.ppe.communication.azure.net/identities?api-version=2022-10-01 - request: body: null headers: Accept: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.7.12 (Darwin-21.5.0-x86_64-i386-64bit) + - azsdk-python-communication-identity/1.2.1 Python/3.7.9 (Windows-10-10.0.22621-SP0) method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, - 2021-10-31-preview, 2021-11-01, 2022-06-01 - date: Wed, 03 Aug 2022 09:15:37 GMT - ms-cv: I/nGcFW+1EWzjCTNhVSR+A.0 + 2021-10-31-preview, 2021-11-01, 2022-06-01, 2022-10-01 + date: Thu, 25 Aug 2022 20:04:07 GMT + ms-cv: z/kweuQUbkaIY+yzK6LtOg.0 request-context: appId= strict-transport-security: max-age=2592000 x-cache: CONFIG_NOCACHE - x-processing-time: 207ms + x-processing-time: 157ms status: code: 204 message: No Content - url: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + url: https://test-petrsvihlik.ppe.communication.azure.net/identities/sanitized?api-version=2022-10-01 version: 1 diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token.yaml index fb0ed94a41b2..6f2e188fbbf0 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token.yaml @@ -1,39 +1,37 @@ interactions: - request: - body: '{}' + body: '' headers: Accept: - application/json - Content-Length: - - '2' Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.7.12 (Darwin-21.5.0-x86_64-i386-64bit) + - azsdk-python-communication-identity/1.2.1 Python/3.7.9 (Windows-10-10.0.22621-SP0) x-ms-date: - - Wed, 03 Aug 2022 09:15:38 GMT + - Thu, 25 Aug 2022 20:04:08 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 response: body: string: '{"identity": {"id": "sanitized"}}' headers: api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, - 2021-10-31-preview, 2021-11-01, 2022-06-01 + 2021-10-31-preview, 2021-11-01, 2022-06-01, 2022-10-01 content-length: '101' content-type: application/json; charset=utf-8 - date: Wed, 03 Aug 2022 09:15:39 GMT - ms-cv: m1th7TnXNkmERV0ZkYsbnw.0 + date: Thu, 25 Aug 2022 20:04:07 GMT + ms-cv: x8msplLrS0a88tRh7i0CXg.0 request-context: appId= strict-transport-security: max-age=2592000 x-cache: CONFIG_NOCACHE - x-processing-time: 102ms + x-processing-time: 36ms status: code: 201 message: Created - url: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + url: https://test-petrsvihlik.ppe.communication.azure.net/identities?api-version=2022-10-01 - request: body: '{"scopes": ["chat"]}' headers: @@ -44,29 +42,29 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.7.12 (Darwin-21.5.0-x86_64-i386-64bit) + - azsdk-python-communication-identity/1.2.1 Python/3.7.9 (Windows-10-10.0.22621-SP0) x-ms-date: - - Wed, 03 Aug 2022 09:15:39 GMT + - Thu, 25 Aug 2022 20:04:08 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2022-10-01 response: body: - string: '{"token": "sanitized", "expiresOn": "2022-08-04T09:15:39.6977724+00:00"}' + string: '{"token": "sanitized", "expiresOn": "2022-08-26T20:04:08.7365911+00:00"}' headers: api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, - 2021-10-31-preview, 2021-11-01, 2022-06-01 + 2021-10-31-preview, 2021-11-01, 2022-06-01, 2022-10-01 content-length: '804' content-type: application/json; charset=utf-8 - date: Wed, 03 Aug 2022 09:15:39 GMT - ms-cv: 4leV+QBfREuCXXYNn4W1mg.0 + date: Thu, 25 Aug 2022 20:04:08 GMT + ms-cv: whuW/D+5WUWw+UERP3B1Vw.0 request-context: appId= strict-transport-security: max-age=2592000 x-cache: CONFIG_NOCACHE - x-processing-time: 43ms + x-processing-time: 44ms status: code: 200 message: OK - url: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2022-06-01 + url: https://test-petrsvihlik.ppe.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2022-10-01 version: 1 diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_for_teams_user_from_managed_identity.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_for_teams_user_from_managed_identity.yaml index a2fdb0d46447..c90e38a50bd6 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_for_teams_user_from_managed_identity.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_for_teams_user_from_managed_identity.yaml @@ -9,8 +9,8 @@ interactions: Connection: - keep-alive Cookie: - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr8IfEKA--ndpyNWQs292opm4upHGMD6_P0MsYAt_yc22vLM_dwM6xsaCWDg7ff0OvV_ipBphCnhsSe39-0Cw81Q_Gt8i9zZC8RwGSk4X2XUa5nzyKnQLhsh5Hlp1Inx04lhOPYlwO5LSZt25Zu2mmya5E-i6KDs2Ncze7xpmRLkkgAA; - fpc=Ak8FLve5pGlIhluKqg2E9RE; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd + - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrEFan2pjZXWG1yNkKXAsuh8dI8VkdNYZ3SIUf3qNRlfMTvf6LbXAQ-KtXntpYwSgzlovloQzr3a8cZxo0MihcR1_B8zNyxbgfDoWbHV_LMkrfI0mZ_8toMlske-9XmHphyZ9yZUTvzW_REuawe4GWHFLkpyuePPoirsx15XIXOCMgAA; + fpc=Am69xJ1ctddEhupaW0qau58; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd User-Agent: - python-requests/2.28.1 method: GET @@ -29,7 +29,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 03 Aug 2022 09:15:39 GMT + - Thu, 25 Aug 2022 20:04:08 GMT expires: - '-1' p3p: @@ -37,7 +37,7 @@ interactions: pragma: - no-cache set-cookie: - - fpc=Ak8FLve5pGlIhluKqg2E9RE; expires=Fri, 02-Sep-2022 09:15:40 GMT; path=/; + - fpc=Am69xJ1ctddEhupaW0qau58; expires=Sat, 24-Sep-2022 20:04:09 GMT; path=/; secure; HttpOnly; SameSite=None - x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly - stsservicecookie=estsfd; path=/; secure; samesite=none; httponly @@ -46,7 +46,7 @@ interactions: x-content-type-options: - nosniff x-ms-ests-server: - - 2.1.13355.6 - NEULR1 ProdSlices + - 2.1.13481.11 - WEULR1 ProdSlices x-xss-protection: - '0' status: @@ -62,24 +62,24 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.7.12 (Darwin-21.5.0-x86_64-i386-64bit) + - azsdk-python-communication-identity/1.2.1 Python/3.7.9 (Windows-10-10.0.22621-SP0) method: POST - uri: https://sanitized.communication.azure.com/teamsUser/:exchangeAccessToken?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/teamsUser/:exchangeAccessToken?api-version=2022-10-01 response: body: - string: '{"token": "sanitized", "expiresOn": "2022-08-03T10:23:02.932059+00:00"}' + string: '{"token": "sanitized", "expiresOn": "2022-08-25T21:18:05.5434897+00:00"}' headers: - api-supported-versions: 2021-10-31-preview, 2022-06-01 - content-length: '823' + api-supported-versions: 2021-10-31-preview, 2022-06-01, 2022-10-01 + content-length: '824' content-type: application/json; charset=utf-8 - date: Wed, 03 Aug 2022 09:15:41 GMT - ms-cv: gfuHF3DW5UWS8S3W7S7JDA.0 + date: Thu, 25 Aug 2022 20:04:09 GMT + ms-cv: pUxJQp/PzUGOTujFsQNiVw.0 request-context: appId= strict-transport-security: max-age=2592000 x-cache: CONFIG_NOCACHE - x-processing-time: 630ms + x-processing-time: 548ms status: code: 200 message: OK - url: https://sanitized.communication.azure.com/teamsUser/:exchangeAccessToken?api-version=2022-06-01 + url: https://test-petrsvihlik.ppe.communication.azure.net/teamsUser/:exchangeAccessToken?api-version=2022-10-01 version: 1 diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_for_teams_user_with_empty_client_id.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_for_teams_user_with_empty_client_id.yaml index 2ee95753d146..78366bd688bb 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_for_teams_user_with_empty_client_id.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_for_teams_user_with_empty_client_id.yaml @@ -9,8 +9,8 @@ interactions: Connection: - keep-alive Cookie: - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevroJw0xYRpoQatN6Ouj0jl-zUJKrTZCV98Dm06kZyeAUUfmIBoCT2qcEmB1M97FCfrngXWnVmaqp8Aes2fyvu385D8HEkjqqnw0qcexjahXbK0RGjcx33TCsBIrnzWnCDXnwIaxoAty5OA5OeiBjuJyZ3moxMoFj-F3XtHjz0DhN8gAA; - fpc=AtItf3WArFZDr4Zoeh_HiqY; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd + - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrH2EP_G7QWudzpvgt3NkszGUxET0ULbfC_Fi0kVAdasyL2IzNCRSSH736cgO3JVUEQC2By2n-mHCMsxa3CPfkht_N0KWBUnUp2twKA9UrJX43v1zhI-j2Nku8_tAT-cZw7eOo1Mv9qpKvPHhcLPF6p1jHlWNvnwHY-9kvsLcB9SUgAA; + fpc=AmYDLNioUsZHmlhG53z7q6o; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd User-Agent: - python-requests/2.28.1 method: GET @@ -29,7 +29,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 03 Aug 2022 09:15:42 GMT + - Thu, 25 Aug 2022 20:04:10 GMT expires: - '-1' p3p: @@ -37,7 +37,7 @@ interactions: pragma: - no-cache set-cookie: - - fpc=AtItf3WArFZDr4Zoeh_HiqY; expires=Fri, 02-Sep-2022 09:15:42 GMT; path=/; + - fpc=AmYDLNioUsZHmlhG53z7q6o; expires=Sat, 24-Sep-2022 20:04:10 GMT; path=/; secure; HttpOnly; SameSite=None - x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly - stsservicecookie=estsfd; path=/; secure; samesite=none; httponly @@ -46,7 +46,7 @@ interactions: x-content-type-options: - nosniff x-ms-ests-server: - - 2.1.13355.6 - NEULR2 ProdSlices + - 2.1.13481.11 - NEULR1 ProdSlices x-xss-protection: - '0' status: @@ -62,28 +62,28 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.7.12 (Darwin-21.5.0-x86_64-i386-64bit) + - azsdk-python-communication-identity/1.2.1 Python/3.7.9 (Windows-10-10.0.22621-SP0) x-ms-date: - - Wed, 03 Aug 2022 09:15:42 GMT + - Thu, 25 Aug 2022 20:04:11 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/teamsUser/:exchangeAccessToken?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/teamsUser/:exchangeAccessToken?api-version=2022-10-01 response: body: string: '{"error": {"code": "ValidationError", "message": "AppId: The AppId field is required.", "target": "AppId"}}' headers: content-type: application/json - date: Wed, 03 Aug 2022 09:15:42 GMT - ms-cv: RmiyiYxrUU6XMKHlGGBYyg.0 + date: Thu, 25 Aug 2022 20:04:10 GMT + ms-cv: 45T2jkDVGUq3RhAbC2t8eg.0 request-context: appId= strict-transport-security: max-age=2592000 transfer-encoding: chunked x-cache: CONFIG_NOCACHE - x-processing-time: 47ms + x-processing-time: 42ms status: code: 400 message: Bad Request - url: https://sanitized.communication.azure.com/teamsUser/:exchangeAccessToken?api-version=2022-06-01 + url: https://test-petrsvihlik.ppe.communication.azure.net/teamsUser/:exchangeAccessToken?api-version=2022-10-01 version: 1 diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_for_teams_user_with_empty_token.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_for_teams_user_with_empty_token.yaml index 509582750a10..925c08282ca5 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_for_teams_user_with_empty_token.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_for_teams_user_with_empty_token.yaml @@ -9,28 +9,28 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.7.12 (Darwin-21.5.0-x86_64-i386-64bit) + - azsdk-python-communication-identity/1.2.1 Python/3.7.9 (Windows-10-10.0.22621-SP0) x-ms-date: - - Wed, 03 Aug 2022 09:15:42 GMT + - Thu, 25 Aug 2022 20:04:11 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/teamsUser/:exchangeAccessToken?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/teamsUser/:exchangeAccessToken?api-version=2022-10-01 response: body: string: '{"error": {"code": "InvalidAccessToken", "message": "Provided access token is not valid."}}' headers: content-type: application/json - date: Wed, 03 Aug 2022 09:15:43 GMT - ms-cv: UCUwiLAcqE6lE4/oKUuqxw.0 + date: Thu, 25 Aug 2022 20:04:11 GMT + ms-cv: RQzGjaldg0OOVHpb54MJ9Q.0 request-context: appId= strict-transport-security: max-age=2592000 transfer-encoding: chunked x-cache: CONFIG_NOCACHE - x-processing-time: 34ms + x-processing-time: 25ms status: code: 401 message: Unauthorized - url: https://sanitized.communication.azure.com/teamsUser/:exchangeAccessToken?api-version=2022-06-01 + url: https://test-petrsvihlik.ppe.communication.azure.net/teamsUser/:exchangeAccessToken?api-version=2022-10-01 version: 1 diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_for_teams_user_with_empty_user_object_id.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_for_teams_user_with_empty_user_object_id.yaml index c7975b9bb349..cc9af61c565e 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_for_teams_user_with_empty_user_object_id.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_for_teams_user_with_empty_user_object_id.yaml @@ -9,8 +9,8 @@ interactions: Connection: - keep-alive Cookie: - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrSVGwb360CqCjQQTDrEr6Tf1QFeTVUItc82gO9mMhb58xDI9L6_uJBT9Eb6KBjYvlyoh3crZ0KLw1F00QlXpC9Dvo3M1x5ih7KbDJuF340ecR7CyRX7rvuumVOUvgxkgJfo65We8RVJsvXYX1MXcBHa3vtVlIMLwtoKCrazZT4zwgAA; - fpc=AkBk-JiWluNHhvKzCfi6n_k; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd + - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrRI-7JU7PcDNaiOFi75vlWH_YL2JCJqoF6l5hRV-POibSw5UIphwIKt9VTRNuEWQe9kQZEKRJ344emFBnKTYOnKjaC5kB2OPdlaqNynj8ocvc-aI73W613e4JH4ZtkvBqpPg3Y2fxK2ZYoDw0MhrUYH5PLWOPCMxOXVYUTs6JvdEgAA; + fpc=AkK3Q7HxhUJDrNRAuNVsz_4; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd User-Agent: - python-requests/2.28.1 method: GET @@ -29,7 +29,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 03 Aug 2022 09:15:43 GMT + - Thu, 25 Aug 2022 20:04:11 GMT expires: - '-1' p3p: @@ -37,7 +37,7 @@ interactions: pragma: - no-cache set-cookie: - - fpc=AkBk-JiWluNHhvKzCfi6n_k; expires=Fri, 02-Sep-2022 09:15:43 GMT; path=/; + - fpc=AkK3Q7HxhUJDrNRAuNVsz_4; expires=Sat, 24-Sep-2022 20:04:11 GMT; path=/; secure; HttpOnly; SameSite=None - x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly - stsservicecookie=estsfd; path=/; secure; samesite=none; httponly @@ -46,7 +46,7 @@ interactions: x-content-type-options: - nosniff x-ms-ests-server: - - 2.1.13355.6 - WEULR1 ProdSlices + - 2.1.13481.11 - NEULR2 ProdSlices x-xss-protection: - '0' status: @@ -62,21 +62,21 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.7.12 (Darwin-21.5.0-x86_64-i386-64bit) + - azsdk-python-communication-identity/1.2.1 Python/3.7.9 (Windows-10-10.0.22621-SP0) x-ms-date: - - Wed, 03 Aug 2022 09:15:43 GMT + - Thu, 25 Aug 2022 20:04:12 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/teamsUser/:exchangeAccessToken?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/teamsUser/:exchangeAccessToken?api-version=2022-10-01 response: body: string: '{"error": {"code": "ValidationError", "message": "UserId: The UserId field is required.", "target": "UserId"}}' headers: content-type: application/json - date: Wed, 03 Aug 2022 09:15:44 GMT - ms-cv: Mr56qsTA20mmfLeW/b14SQ.0 + date: Thu, 25 Aug 2022 20:04:11 GMT + ms-cv: xpe91dURkEKaFFdi/k8QMA.0 request-context: appId= strict-transport-security: max-age=2592000 transfer-encoding: chunked @@ -85,5 +85,5 @@ interactions: status: code: 400 message: Bad Request - url: https://sanitized.communication.azure.com/teamsUser/:exchangeAccessToken?api-version=2022-06-01 + url: https://test-petrsvihlik.ppe.communication.azure.net/teamsUser/:exchangeAccessToken?api-version=2022-10-01 version: 1 diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_for_teams_user_with_expired_token.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_for_teams_user_with_expired_token.yaml index 83263858ab51..3920a4531bcc 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_for_teams_user_with_expired_token.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_for_teams_user_with_expired_token.yaml @@ -9,8 +9,8 @@ interactions: Connection: - keep-alive Cookie: - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrOQtOzCcJIcUUAubL7bRLUn-MlTxWYM-SE_VgSKQwpvxwXlh-5NjvmJj8icmmUQcMbd8YKwIV_h8iTQbZyAQOlAj20Aa7WtH7vaEy22SDpT9bd4ke3BhMIWuaD_I0mUU0448fpXyb4rEfDLCZ7hEder6eeOcWjbZYUXdoy_LAoEMgAA; - fpc=Al0KkPiKVNJLpvzX13rvl5o; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd + - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrrlrdroiYE6U1BcKokwomrzdL3U-HxP9WkcrfqeWHSiRdgqJTNO0a_C56ptFf_q4oQqpP09I9Hxs0mx__aq0VzY6WFhthpco-L0xltcKdXze7v9sSgfqUHplLLUd5N9zQuGlWCn32ldg1ebeFoeBpD3ZCOCsPKUP5WgmIImAujZEgAA; + fpc=AlQFluSERTNPgYx66JP05zc; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd User-Agent: - python-requests/2.28.1 method: GET @@ -29,7 +29,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 03 Aug 2022 09:15:44 GMT + - Thu, 25 Aug 2022 20:04:12 GMT expires: - '-1' p3p: @@ -37,7 +37,7 @@ interactions: pragma: - no-cache set-cookie: - - fpc=Al0KkPiKVNJLpvzX13rvl5o; expires=Fri, 02-Sep-2022 09:15:44 GMT; path=/; + - fpc=AlQFluSERTNPgYx66JP05zc; expires=Sat, 24-Sep-2022 20:04:12 GMT; path=/; secure; HttpOnly; SameSite=None - x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly - stsservicecookie=estsfd; path=/; secure; samesite=none; httponly @@ -46,7 +46,7 @@ interactions: x-content-type-options: - nosniff x-ms-ests-server: - - 2.1.13355.6 - WEULR2 ProdSlices + - 2.1.13481.11 - WEULR2 ProdSlices x-xss-protection: - '0' status: @@ -62,28 +62,28 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.7.12 (Darwin-21.5.0-x86_64-i386-64bit) + - azsdk-python-communication-identity/1.2.1 Python/3.7.9 (Windows-10-10.0.22621-SP0) x-ms-date: - - Wed, 03 Aug 2022 09:15:44 GMT + - Thu, 25 Aug 2022 20:04:12 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/teamsUser/:exchangeAccessToken?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/teamsUser/:exchangeAccessToken?api-version=2022-10-01 response: body: string: '{"error": {"code": "InvalidAccessToken", "message": "Provided access token is not valid."}}' headers: content-type: application/json - date: Wed, 03 Aug 2022 09:15:45 GMT - ms-cv: fCIAPyyxS06gwZ+zKtpdyQ.0 + date: Thu, 25 Aug 2022 20:04:12 GMT + ms-cv: oYCstAVOs0aBgx834Glnjg.0 request-context: appId= strict-transport-security: max-age=2592000 transfer-encoding: chunked x-cache: CONFIG_NOCACHE - x-processing-time: 54ms + x-processing-time: 104ms status: code: 401 message: Unauthorized - url: https://sanitized.communication.azure.com/teamsUser/:exchangeAccessToken?api-version=2022-06-01 + url: https://test-petrsvihlik.ppe.communication.azure.net/teamsUser/:exchangeAccessToken?api-version=2022-10-01 version: 1 diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_for_teams_user_with_invalid_client_id.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_for_teams_user_with_invalid_client_id.yaml index a9e9c7b663ce..7a414fe95991 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_for_teams_user_with_invalid_client_id.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_for_teams_user_with_invalid_client_id.yaml @@ -9,8 +9,8 @@ interactions: Connection: - keep-alive Cookie: - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrDp7nilf_V4Do5-8QIdFXdzZaFsT5lKplStiQZ0GmfGcRzt3i15xsVZJoj9HhvJU2zGAtk6IPU_KHsRD6u8f8qVDf9oz11VRuvinRQqcB8zizJ9a3tls1GGDhMTb__lbmuhRQAVRAM2KEQvtKXIPOxeQnwjHVPQbNaCztakyvj2MgAA; - fpc=Ale24oKy06VBuSpnQQLvdKU; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd + - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevrai_uk0huEvLcQ6YXW02i_Hpt_gtbc1jLwCfHO1CzRQy4luUA7cn9O04omLjjceM-P_zT1PaQ4idZkzDFFsK6NKAtfSDm57XaeT-HoPxdfYz52SQZZcg3KZhGw9-DR7xUH8_w_8vLc1vMJWkm5G44aOoeh9Uq8pnhFpTN0Gt-vuIgAA; + fpc=AjhVmIvcfl5Hv4oAZN6LAuw; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd User-Agent: - python-requests/2.28.1 method: GET @@ -29,7 +29,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 03 Aug 2022 09:15:45 GMT + - Thu, 25 Aug 2022 20:04:12 GMT expires: - '-1' p3p: @@ -37,7 +37,7 @@ interactions: pragma: - no-cache set-cookie: - - fpc=Ale24oKy06VBuSpnQQLvdKU; expires=Fri, 02-Sep-2022 09:15:46 GMT; path=/; + - fpc=AjhVmIvcfl5Hv4oAZN6LAuw; expires=Sat, 24-Sep-2022 20:04:13 GMT; path=/; secure; HttpOnly; SameSite=None - x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly - stsservicecookie=estsfd; path=/; secure; samesite=none; httponly @@ -46,7 +46,7 @@ interactions: x-content-type-options: - nosniff x-ms-ests-server: - - 2.1.13355.6 - WEULR1 ProdSlices + - 2.1.13481.11 - NEULR1 ProdSlices x-xss-protection: - '0' status: @@ -62,29 +62,29 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.7.12 (Darwin-21.5.0-x86_64-i386-64bit) + - azsdk-python-communication-identity/1.2.1 Python/3.7.9 (Windows-10-10.0.22621-SP0) x-ms-date: - - Wed, 03 Aug 2022 09:15:46 GMT + - Thu, 25 Aug 2022 20:04:13 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/teamsUser/:exchangeAccessToken?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/teamsUser/:exchangeAccessToken?api-version=2022-10-01 response: body: string: '{"error": {"code": "ValidationError", "message": "Provided AppId has invalid format.", "target": "appId"}}' headers: - api-supported-versions: 2021-10-31-preview, 2022-06-01 + api-supported-versions: 2021-10-31-preview, 2022-06-01, 2022-10-01 content-type: application/json - date: Wed, 03 Aug 2022 09:15:46 GMT - ms-cv: Cvg7/oJuLUmdHDN5UYUNgg.0 + date: Thu, 25 Aug 2022 20:04:13 GMT + ms-cv: vZuN4Ic3iUG8dL9D8oad/g.0 request-context: appId= strict-transport-security: max-age=2592000 transfer-encoding: chunked x-cache: CONFIG_NOCACHE - x-processing-time: 49ms + x-processing-time: 44ms status: code: 400 message: Bad Request - url: https://sanitized.communication.azure.com/teamsUser/:exchangeAccessToken?api-version=2022-06-01 + url: https://test-petrsvihlik.ppe.communication.azure.net/teamsUser/:exchangeAccessToken?api-version=2022-10-01 version: 1 diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_for_teams_user_with_invalid_token.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_for_teams_user_with_invalid_token.yaml index 4e188b5342d9..eadaf2f9742c 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_for_teams_user_with_invalid_token.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_for_teams_user_with_invalid_token.yaml @@ -9,28 +9,28 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.7.12 (Darwin-21.5.0-x86_64-i386-64bit) + - azsdk-python-communication-identity/1.2.1 Python/3.7.9 (Windows-10-10.0.22621-SP0) x-ms-date: - - Wed, 03 Aug 2022 09:15:46 GMT + - Thu, 25 Aug 2022 20:04:13 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/teamsUser/:exchangeAccessToken?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/teamsUser/:exchangeAccessToken?api-version=2022-10-01 response: body: string: '{"error": {"code": "InvalidAccessToken", "message": "Provided access token is not valid."}}' headers: content-type: application/json - date: Wed, 03 Aug 2022 09:15:47 GMT - ms-cv: DQiqRE4+00WMhTLNN7Xbsw.0 + date: Thu, 25 Aug 2022 20:04:13 GMT + ms-cv: A/R5Zt/dA0y+5M3Xdz8zMQ.0 request-context: appId= strict-transport-security: max-age=2592000 transfer-encoding: chunked x-cache: CONFIG_NOCACHE - x-processing-time: 27ms + x-processing-time: 26ms status: code: 401 message: Unauthorized - url: https://sanitized.communication.azure.com/teamsUser/:exchangeAccessToken?api-version=2022-06-01 + url: https://test-petrsvihlik.ppe.communication.azure.net/teamsUser/:exchangeAccessToken?api-version=2022-10-01 version: 1 diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_for_teams_user_with_invalid_user_object_id.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_for_teams_user_with_invalid_user_object_id.yaml index 5e09e4aa517c..72c5e3956a48 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_for_teams_user_with_invalid_user_object_id.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_for_teams_user_with_invalid_user_object_id.yaml @@ -9,8 +9,8 @@ interactions: Connection: - keep-alive Cookie: - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr24e2-tKrr8IcZLq_hv14l7XcA8YePEgxh3QKJImymfNvVthCjZHHydhrjima9HwiuSbYAt9mFYAgtkf95fS_cILScPQwMJshRh-RvsWVo7IkF5YUopLu8sYREQjRFoXKBT9rWsETqweFb5QmH0XeQDvf_OfdEsVg1l5QxTow-iUgAA; - fpc=Ag2TPXK4A79CjQjWLvsvJUQ; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd + - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevraUahFT-YxqfCGrVVNstCzWrLRViNLz4c3fdQeCRzIjK5ODOrSHJyg5eT_a-_oyOTGqf6e_w2z4VaMCT-FsCgHV9Ni3ManPFSezOiVyzh8GVsgbtKBg9WkRRbQtrIVaPcoKQOe1RRTctZbQK77tAQ83CiyBBeKpfRhMK7sQNLBvggAA; + fpc=AhcRyHfOBUZHnupLQunlZaI; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd User-Agent: - python-requests/2.28.1 method: GET @@ -29,7 +29,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 03 Aug 2022 09:15:47 GMT + - Thu, 25 Aug 2022 20:04:13 GMT expires: - '-1' p3p: @@ -37,7 +37,7 @@ interactions: pragma: - no-cache set-cookie: - - fpc=Ag2TPXK4A79CjQjWLvsvJUQ; expires=Fri, 02-Sep-2022 09:15:47 GMT; path=/; + - fpc=AhcRyHfOBUZHnupLQunlZaI; expires=Sat, 24-Sep-2022 20:04:14 GMT; path=/; secure; HttpOnly; SameSite=None - x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly - stsservicecookie=estsfd; path=/; secure; samesite=none; httponly @@ -46,7 +46,7 @@ interactions: x-content-type-options: - nosniff x-ms-ests-server: - - 2.1.13355.6 - WEULR1 ProdSlices + - 2.1.13481.11 - WEULR2 ProdSlices x-xss-protection: - '0' status: @@ -62,29 +62,29 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.7.12 (Darwin-21.5.0-x86_64-i386-64bit) + - azsdk-python-communication-identity/1.2.1 Python/3.7.9 (Windows-10-10.0.22621-SP0) x-ms-date: - - Wed, 03 Aug 2022 09:15:47 GMT + - Thu, 25 Aug 2022 20:04:14 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/teamsUser/:exchangeAccessToken?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/teamsUser/:exchangeAccessToken?api-version=2022-10-01 response: body: string: '{"error": {"code": "ValidationError", "message": "Provided UserId has invalid format.", "target": "userId"}}' headers: - api-supported-versions: 2021-10-31-preview, 2022-06-01 + api-supported-versions: 2021-10-31-preview, 2022-06-01, 2022-10-01 content-type: application/json - date: Wed, 03 Aug 2022 09:15:47 GMT - ms-cv: h4P3uQKOrU6l0YkliXY0BA.0 + date: Thu, 25 Aug 2022 20:04:14 GMT + ms-cv: vQPNA97MZk659Y2t2Ls4fQ.0 request-context: appId= strict-transport-security: max-age=2592000 transfer-encoding: chunked x-cache: CONFIG_NOCACHE - x-processing-time: 44ms + x-processing-time: 33ms status: code: 400 message: Bad Request - url: https://sanitized.communication.azure.com/teamsUser/:exchangeAccessToken?api-version=2022-06-01 + url: https://test-petrsvihlik.ppe.communication.azure.net/teamsUser/:exchangeAccessToken?api-version=2022-10-01 version: 1 diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_for_teams_user_with_valid_params.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_for_teams_user_with_valid_params.yaml index e5f40c13d44f..816f1c9e73c3 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_for_teams_user_with_valid_params.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_for_teams_user_with_valid_params.yaml @@ -9,8 +9,8 @@ interactions: Connection: - keep-alive Cookie: - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr28ekq9F6egf8mcID_0C2QHvKHyRhgkpGZaenJ5iNB_FIAEAssvttMorghxN4T8qZGvV-AwTCtZ4rnHYCvkEYpiEZio1udWq78WGQFgx2m7VDR8BS5GkhUE0ZTLc9WVXonrIZeRrlrQHhbAK8vlTkisF47V8P7EBF9kea8xNk948gAA; - fpc=AqNZ9pvSJVNPgLnl0el8K7A; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd + - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrG4nRewN8Abb0U5OzpgVdop01bd-byb8Z-IIcG_t1DhEOTeFise_pj1KYOo_UZbFvHKcDUX5NqZqHN1CInyu6iEYenHywoGtISNpffVBY1pYalSADMOYxU_WSou5Ieruba4tJuptqKOlK6IVPyu947zQV9Gz1b8LsUzbA_A9l6nkgAA; + fpc=AhcPlrRDP41NppSq_Gk36FE; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd User-Agent: - python-requests/2.28.1 method: GET @@ -29,7 +29,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 03 Aug 2022 09:15:48 GMT + - Thu, 25 Aug 2022 20:04:14 GMT expires: - '-1' p3p: @@ -37,7 +37,7 @@ interactions: pragma: - no-cache set-cookie: - - fpc=AqNZ9pvSJVNPgLnl0el8K7A; expires=Fri, 02-Sep-2022 09:15:48 GMT; path=/; + - fpc=AhcPlrRDP41NppSq_Gk36FE; expires=Sat, 24-Sep-2022 20:04:15 GMT; path=/; secure; HttpOnly; SameSite=None - x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly - stsservicecookie=estsfd; path=/; secure; samesite=none; httponly @@ -46,7 +46,7 @@ interactions: x-content-type-options: - nosniff x-ms-ests-server: - - 2.1.13355.6 - NEULR1 ProdSlices + - 2.1.13481.11 - WEULR1 ProdSlices x-xss-protection: - '0' status: @@ -62,28 +62,28 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.7.12 (Darwin-21.5.0-x86_64-i386-64bit) + - azsdk-python-communication-identity/1.2.1 Python/3.7.9 (Windows-10-10.0.22621-SP0) x-ms-date: - - Wed, 03 Aug 2022 09:15:48 GMT + - Thu, 25 Aug 2022 20:04:15 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/teamsUser/:exchangeAccessToken?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/teamsUser/:exchangeAccessToken?api-version=2022-10-01 response: body: - string: '{"token": "sanitized", "expiresOn": "2022-08-03T10:17:26.1807155+00:00"}' + string: '{"token": "sanitized", "expiresOn": "2022-08-25T21:10:37.9813617+00:00"}' headers: - api-supported-versions: 2021-10-31-preview, 2022-06-01 + api-supported-versions: 2021-10-31-preview, 2022-06-01, 2022-10-01 content-length: '824' content-type: application/json; charset=utf-8 - date: Wed, 03 Aug 2022 09:15:48 GMT - ms-cv: /MWurZcOIE2RN5Dx66PpEA.0 + date: Thu, 25 Aug 2022 20:04:15 GMT + ms-cv: /9LuU4x4/E6r0rJEDAYSkw.0 request-context: appId= strict-transport-security: max-age=2592000 x-cache: CONFIG_NOCACHE - x-processing-time: 326ms + x-processing-time: 498ms status: code: 200 message: OK - url: https://sanitized.communication.azure.com/teamsUser/:exchangeAccessToken?api-version=2022-06-01 + url: https://test-petrsvihlik.ppe.communication.azure.net/teamsUser/:exchangeAccessToken?api-version=2022-10-01 version: 1 diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_for_teams_user_with_wrong_client_id.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_for_teams_user_with_wrong_client_id.yaml index 6441643ff84c..43c894008063 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_for_teams_user_with_wrong_client_id.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_for_teams_user_with_wrong_client_id.yaml @@ -9,8 +9,8 @@ interactions: Connection: - keep-alive Cookie: - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr0qiMEgnV1XQoPLHpQ-GxAsOz1HoyUsap11FEXQ7KZuWaCrTYMMOGlNxCAf1L5CSUcGA-WmQEt0mYIyqF7Sw4Yaoc6_GfYsy0whnSew--CAB7iEE_IjN-AMEgs5S8Kpm_8ghQoJS8jio8YXp2zej7JmIMYHq-J22X3UMw0wlO5mEgAA; - fpc=AlGde4uDPjhHtYuyVr6-h0w; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd + - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr2ySDxMdxg9j2S5BjMZOGf0iuyu5nPbzc3mqje1VNJYNVJYhdK3iIEbsOqfXnvSSZlGztugD6dTsTufJ0Eq24zdsmimV41pFoFwtsUKxR58ZMuAE72mW-aVt9LsaRWJog3VTR6rjLv91KtVBoAMtpSMUBH-Kkk_QwQ76NnX8EW9ggAA; + fpc=Ap-lsL6U2BlGns0SA6vRZcw; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd User-Agent: - python-requests/2.28.1 method: GET @@ -29,7 +29,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 03 Aug 2022 09:15:49 GMT + - Thu, 25 Aug 2022 20:04:15 GMT expires: - '-1' p3p: @@ -37,7 +37,7 @@ interactions: pragma: - no-cache set-cookie: - - fpc=AlGde4uDPjhHtYuyVr6-h0w; expires=Fri, 02-Sep-2022 09:15:49 GMT; path=/; + - fpc=Ap-lsL6U2BlGns0SA6vRZcw; expires=Sat, 24-Sep-2022 20:04:16 GMT; path=/; secure; HttpOnly; SameSite=None - x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly - stsservicecookie=estsfd; path=/; secure; samesite=none; httponly @@ -46,7 +46,7 @@ interactions: x-content-type-options: - nosniff x-ms-ests-server: - - 2.1.13355.6 - NEULR2 ProdSlices + - 2.1.13481.11 - WEULR2 ProdSlices x-xss-protection: - '0' status: @@ -62,29 +62,29 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.7.12 (Darwin-21.5.0-x86_64-i386-64bit) + - azsdk-python-communication-identity/1.2.1 Python/3.7.9 (Windows-10-10.0.22621-SP0) x-ms-date: - - Wed, 03 Aug 2022 09:15:49 GMT + - Thu, 25 Aug 2022 20:04:16 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/teamsUser/:exchangeAccessToken?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/teamsUser/:exchangeAccessToken?api-version=2022-10-01 response: body: string: '{"error": {"code": "ValidationError", "message": "AAD application is not the expected one.", "target": "appId"}}' headers: - api-supported-versions: 2021-10-31-preview, 2022-06-01 + api-supported-versions: 2021-10-31-preview, 2022-06-01, 2022-10-01 content-type: application/json - date: Wed, 03 Aug 2022 09:15:49 GMT - ms-cv: 7hUyRJLl20+gIMkNgFZkfg.0 + date: Thu, 25 Aug 2022 20:04:15 GMT + ms-cv: SPwRnA7/dEOf3uDvVvtGTQ.0 request-context: appId= strict-transport-security: max-age=2592000 transfer-encoding: chunked x-cache: CONFIG_NOCACHE - x-processing-time: 37ms + x-processing-time: 55ms status: code: 400 message: Bad Request - url: https://sanitized.communication.azure.com/teamsUser/:exchangeAccessToken?api-version=2022-06-01 + url: https://test-petrsvihlik.ppe.communication.azure.net/teamsUser/:exchangeAccessToken?api-version=2022-10-01 version: 1 diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_for_teams_user_with_wrong_user_object_id.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_for_teams_user_with_wrong_user_object_id.yaml index 7fec65cd3bf7..fa7eaa0561e3 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_for_teams_user_with_wrong_user_object_id.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_for_teams_user_with_wrong_user_object_id.yaml @@ -9,8 +9,8 @@ interactions: Connection: - keep-alive Cookie: - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrwSqwXfDPdrhYygWt_2y-YvgEE2d7a68z6a3wuGqOSoLzbGa35FL8BvYwnq9OiMqTJoQxuj0I-jN_6AcE9hH3i8mMZxe2G--2Dcja0X16oTCtNC0cK9J_aoHJXfqL8O1YfGT2_mNb6EoInPVmiXBVkS_GcE8ceQ_qsKt6FhYNvXkgAA; - fpc=AuXa_cOszJNCoXvb_he45fQ; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd + - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrtR5tv34B3Rjf5Po0vOgPv_4ng5IDPXVO67Ews3ZtSHjUx0vQLH2RONpVyB0Quq8C9uVM5uY4wKFbYhjMU3u2SPp9rqCE9ZtFd_ElIK2eGUnbdW2DB4R_1kEWofGvSkulq4R5hQDj_3tWwQIrqLzDANVW6rlSfwbQM26eM96mFy8gAA; + fpc=Al7DCFcHBmZPp6-xpYlGmx8; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd User-Agent: - python-requests/2.28.1 method: GET @@ -29,7 +29,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 03 Aug 2022 09:15:50 GMT + - Thu, 25 Aug 2022 20:04:16 GMT expires: - '-1' p3p: @@ -37,7 +37,7 @@ interactions: pragma: - no-cache set-cookie: - - fpc=AuXa_cOszJNCoXvb_he45fQ; expires=Fri, 02-Sep-2022 09:15:50 GMT; path=/; + - fpc=Al7DCFcHBmZPp6-xpYlGmx8; expires=Sat, 24-Sep-2022 20:04:17 GMT; path=/; secure; HttpOnly; SameSite=None - x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly - stsservicecookie=estsfd; path=/; secure; samesite=none; httponly @@ -46,7 +46,7 @@ interactions: x-content-type-options: - nosniff x-ms-ests-server: - - 2.1.13355.6 - WEULR1 ProdSlices + - 2.1.13481.11 - NEULR1 ProdSlices x-xss-protection: - '0' status: @@ -62,29 +62,29 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.7.12 (Darwin-21.5.0-x86_64-i386-64bit) + - azsdk-python-communication-identity/1.2.1 Python/3.7.9 (Windows-10-10.0.22621-SP0) x-ms-date: - - Wed, 03 Aug 2022 09:15:50 GMT + - Thu, 25 Aug 2022 20:04:17 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/teamsUser/:exchangeAccessToken?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/teamsUser/:exchangeAccessToken?api-version=2022-10-01 response: body: string: '{"error": {"code": "ValidationError", "message": "Provided AAD token issued for unexpected user.", "target": "userId"}}' headers: - api-supported-versions: 2021-10-31-preview, 2022-06-01 + api-supported-versions: 2021-10-31-preview, 2022-06-01, 2022-10-01 content-type: application/json - date: Wed, 03 Aug 2022 09:15:50 GMT - ms-cv: QHokVKK7BEylHQU3EAbk0A.0 + date: Thu, 25 Aug 2022 20:04:17 GMT + ms-cv: WVgaCA6HkEK7A57uupNjBg.0 request-context: appId= strict-transport-security: max-age=2592000 transfer-encoding: chunked x-cache: CONFIG_NOCACHE - x-processing-time: 35ms + x-processing-time: 33ms status: code: 400 message: Bad Request - url: https://sanitized.communication.azure.com/teamsUser/:exchangeAccessToken?api-version=2022-06-01 + url: https://test-petrsvihlik.ppe.communication.azure.net/teamsUser/:exchangeAccessToken?api-version=2022-10-01 version: 1 diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_from_managed_identity.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_from_managed_identity.yaml index 10f520ce8a12..1ca34c326b71 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_from_managed_identity.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_from_managed_identity.yaml @@ -1,35 +1,33 @@ interactions: - request: - body: '{}' + body: null headers: Accept: - application/json - Content-Length: - - '2' Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.7.12 (Darwin-21.5.0-x86_64-i386-64bit) + - azsdk-python-communication-identity/1.2.1 Python/3.7.9 (Windows-10-10.0.22621-SP0) method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 response: body: string: '{"identity": {"id": "sanitized"}}' headers: api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, - 2021-10-31-preview, 2021-11-01, 2022-06-01 + 2021-10-31-preview, 2021-11-01, 2022-06-01, 2022-10-01 content-length: '101' content-type: application/json; charset=utf-8 - date: Wed, 03 Aug 2022 09:15:51 GMT - ms-cv: Go3g6Mn3M0KAdN73l3Mg4w.0 + date: Thu, 25 Aug 2022 20:04:17 GMT + ms-cv: pejZGY42tEWWEB5fp/7twg.0 request-context: appId= strict-transport-security: max-age=2592000 x-cache: CONFIG_NOCACHE - x-processing-time: 27ms + x-processing-time: 256ms status: code: 201 message: Created - url: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + url: https://test-petrsvihlik.ppe.communication.azure.net/identities?api-version=2022-10-01 - request: body: '{"scopes": ["chat"]}' headers: @@ -40,25 +38,25 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.7.12 (Darwin-21.5.0-x86_64-i386-64bit) + - azsdk-python-communication-identity/1.2.1 Python/3.7.9 (Windows-10-10.0.22621-SP0) method: POST - uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2022-10-01 response: body: - string: '{"token": "sanitized", "expiresOn": "2022-08-04T09:15:52.5650255+00:00"}' + string: '{"token": "sanitized", "expiresOn": "2022-08-26T20:04:18.4723124+00:00"}' headers: api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, - 2021-10-31-preview, 2021-11-01, 2022-06-01 + 2021-10-31-preview, 2021-11-01, 2022-06-01, 2022-10-01 content-length: '804' content-type: application/json; charset=utf-8 - date: Wed, 03 Aug 2022 09:15:51 GMT - ms-cv: oHk9nnqkN0msTQJ33f3PAQ.0 + date: Thu, 25 Aug 2022 20:04:17 GMT + ms-cv: SY2UYVHoKUqA8sLZsszsKg.0 request-context: appId= strict-transport-security: max-age=2592000 x-cache: CONFIG_NOCACHE - x-processing-time: 43ms + x-processing-time: 46ms status: code: 200 message: OK - url: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2022-06-01 + url: https://test-petrsvihlik.ppe.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2022-10-01 version: 1 diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_with_custom_maximum_validity.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_with_custom_maximum_validity.yaml new file mode 100644 index 000000000000..bba3ed1097a0 --- /dev/null +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_with_custom_maximum_validity.yaml @@ -0,0 +1,70 @@ +interactions: +- request: + body: '' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - azsdk-python-communication-identity/1.2.1 Python/3.7.9 (Windows-10-10.0.22621-SP0) + x-ms-date: + - Thu, 25 Aug 2022 20:04:18 GMT + x-ms-return-client-request-id: + - 'true' + method: POST + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 + response: + body: + string: '{"identity": {"id": "sanitized"}}' + headers: + api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, + 2021-10-31-preview, 2021-11-01, 2022-06-01, 2022-10-01 + content-length: '101' + content-type: application/json; charset=utf-8 + date: Thu, 25 Aug 2022 20:04:18 GMT + ms-cv: SI0NfKboBUeOF6d8FDbMUw.0 + request-context: appId= + strict-transport-security: max-age=2592000 + x-cache: CONFIG_NOCACHE + x-processing-time: 35ms + status: + code: 201 + message: Created + url: https://test-petrsvihlik.ppe.communication.azure.net/identities?api-version=2022-10-01 +- request: + body: '{"scopes": ["chat"], "expiresInMinutes": 1440}' + headers: + Accept: + - application/json + Content-Length: + - '46' + Content-Type: + - application/json + User-Agent: + - azsdk-python-communication-identity/1.2.1 Python/3.7.9 (Windows-10-10.0.22621-SP0) + x-ms-date: + - Thu, 25 Aug 2022 20:04:18 GMT + x-ms-return-client-request-id: + - 'true' + method: POST + uri: https://sanitized.ppe.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2022-10-01 + response: + body: + string: '{"token": "sanitized", "expiresOn": "2022-08-26T20:04:18.9851758+00:00"}' + headers: + api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, + 2021-10-31-preview, 2021-11-01, 2022-06-01, 2022-10-01 + content-length: '804' + content-type: application/json; charset=utf-8 + date: Thu, 25 Aug 2022 20:04:18 GMT + ms-cv: XyNNxmw1mEaH2LEAV6pdbg.0 + request-context: appId= + strict-transport-security: max-age=2592000 + x-cache: CONFIG_NOCACHE + x-processing-time: 46ms + status: + code: 200 + message: OK + url: https://test-petrsvihlik.ppe.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2022-10-01 +version: 1 diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_with_custom_minimum_validity.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_with_custom_minimum_validity.yaml new file mode 100644 index 000000000000..95e6250cc2ed --- /dev/null +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_with_custom_minimum_validity.yaml @@ -0,0 +1,70 @@ +interactions: +- request: + body: '' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - azsdk-python-communication-identity/1.2.1 Python/3.7.9 (Windows-10-10.0.22621-SP0) + x-ms-date: + - Thu, 25 Aug 2022 20:04:19 GMT + x-ms-return-client-request-id: + - 'true' + method: POST + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 + response: + body: + string: '{"identity": {"id": "sanitized"}}' + headers: + api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, + 2021-10-31-preview, 2021-11-01, 2022-06-01, 2022-10-01 + content-length: '101' + content-type: application/json; charset=utf-8 + date: Thu, 25 Aug 2022 20:04:18 GMT + ms-cv: b3UBitTSUkWO/GFx9xkvng.0 + request-context: appId= + strict-transport-security: max-age=2592000 + x-cache: CONFIG_NOCACHE + x-processing-time: 35ms + status: + code: 201 + message: Created + url: https://test-petrsvihlik.ppe.communication.azure.net/identities?api-version=2022-10-01 +- request: + body: '{"scopes": ["chat"], "expiresInMinutes": 60}' + headers: + Accept: + - application/json + Content-Length: + - '44' + Content-Type: + - application/json + User-Agent: + - azsdk-python-communication-identity/1.2.1 Python/3.7.9 (Windows-10-10.0.22621-SP0) + x-ms-date: + - Thu, 25 Aug 2022 20:04:19 GMT + x-ms-return-client-request-id: + - 'true' + method: POST + uri: https://sanitized.ppe.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2022-10-01 + response: + body: + string: '{"token": "sanitized", "expiresOn": "2022-08-25T21:04:19.4654205+00:00"}' + headers: + api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, + 2021-10-31-preview, 2021-11-01, 2022-06-01, 2022-10-01 + content-length: '804' + content-type: application/json; charset=utf-8 + date: Thu, 25 Aug 2022 20:04:18 GMT + ms-cv: 11HC9kPGA0eNHaMGLLuYyA.0 + request-context: appId= + strict-transport-security: max-age=2592000 + x-cache: CONFIG_NOCACHE + x-processing-time: 41ms + status: + code: 200 + message: OK + url: https://test-petrsvihlik.ppe.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2022-10-01 +version: 1 diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_with_custom_validity_over_maximum_allowed.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_with_custom_validity_over_maximum_allowed.yaml new file mode 100644 index 000000000000..cc4592cdf8be --- /dev/null +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_with_custom_validity_over_maximum_allowed.yaml @@ -0,0 +1,71 @@ +interactions: +- request: + body: '' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - azsdk-python-communication-identity/1.2.1 Python/3.7.9 (Windows-10-10.0.22621-SP0) + x-ms-date: + - Thu, 25 Aug 2022 20:04:19 GMT + x-ms-return-client-request-id: + - 'true' + method: POST + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 + response: + body: + string: '{"identity": {"id": "sanitized"}}' + headers: + api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, + 2021-10-31-preview, 2021-11-01, 2022-06-01, 2022-10-01 + content-length: '101' + content-type: application/json; charset=utf-8 + date: Thu, 25 Aug 2022 20:04:18 GMT + ms-cv: +TxVun4oUEmzLb+2HM8Zgw.0 + request-context: appId= + strict-transport-security: max-age=2592000 + x-cache: CONFIG_NOCACHE + x-processing-time: 33ms + status: + code: 201 + message: Created + url: https://test-petrsvihlik.ppe.communication.azure.net/identities?api-version=2022-10-01 +- request: + body: '{"scopes": ["chat"], "expiresInMinutes": 1441}' + headers: + Accept: + - application/json + Content-Length: + - '46' + Content-Type: + - application/json + User-Agent: + - azsdk-python-communication-identity/1.2.1 Python/3.7.9 (Windows-10-10.0.22621-SP0) + x-ms-date: + - Thu, 25 Aug 2022 20:04:19 GMT + x-ms-return-client-request-id: + - 'true' + method: POST + uri: https://sanitized.ppe.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2022-10-01 + response: + body: + string: '{"error": {"code": "ValidationError", "message": "ExpiresInMinutes + value 1441 is invalid.", "target": "ExpiresInMinutes"}}' + headers: + api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, + 2021-10-31-preview, 2021-11-01, 2022-06-01, 2022-10-01 + content-type: application/json + date: Thu, 25 Aug 2022 20:04:19 GMT + ms-cv: bXh8kk0cbEOCgqgaxK+i9Q.0 + request-context: appId= + strict-transport-security: max-age=2592000 + transfer-encoding: chunked + x-cache: CONFIG_NOCACHE + x-processing-time: 32ms + status: + code: 400 + message: Bad Request + url: https://test-petrsvihlik.ppe.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2022-10-01 +version: 1 diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_with_custom_validity_under_minimum_allowed.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_with_custom_validity_under_minimum_allowed.yaml new file mode 100644 index 000000000000..89b7d3349ff6 --- /dev/null +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_with_custom_validity_under_minimum_allowed.yaml @@ -0,0 +1,71 @@ +interactions: +- request: + body: '' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - azsdk-python-communication-identity/1.2.1 Python/3.7.9 (Windows-10-10.0.22621-SP0) + x-ms-date: + - Thu, 25 Aug 2022 20:04:20 GMT + x-ms-return-client-request-id: + - 'true' + method: POST + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 + response: + body: + string: '{"identity": {"id": "sanitized"}}' + headers: + api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, + 2021-10-31-preview, 2021-11-01, 2022-06-01, 2022-10-01 + content-length: '101' + content-type: application/json; charset=utf-8 + date: Thu, 25 Aug 2022 20:04:19 GMT + ms-cv: TehNIM6WuUCsV/zCjmVw3w.0 + request-context: appId= + strict-transport-security: max-age=2592000 + x-cache: CONFIG_NOCACHE + x-processing-time: 33ms + status: + code: 201 + message: Created + url: https://test-petrsvihlik.ppe.communication.azure.net/identities?api-version=2022-10-01 +- request: + body: '{"scopes": ["chat"], "expiresInMinutes": 59}' + headers: + Accept: + - application/json + Content-Length: + - '44' + Content-Type: + - application/json + User-Agent: + - azsdk-python-communication-identity/1.2.1 Python/3.7.9 (Windows-10-10.0.22621-SP0) + x-ms-date: + - Thu, 25 Aug 2022 20:04:20 GMT + x-ms-return-client-request-id: + - 'true' + method: POST + uri: https://sanitized.ppe.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2022-10-01 + response: + body: + string: '{"error": {"code": "ValidationError", "message": "ExpiresInMinutes + value 59 is invalid.", "target": "ExpiresInMinutes"}}' + headers: + api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, + 2021-10-31-preview, 2021-11-01, 2022-06-01, 2022-10-01 + content-type: application/json + date: Thu, 25 Aug 2022 20:04:19 GMT + ms-cv: 5cwPCsg8MESHXb0PElw9Mw.0 + request-context: appId= + strict-transport-security: max-age=2592000 + transfer-encoding: chunked + x-cache: CONFIG_NOCACHE + x-processing-time: 35ms + status: + code: 400 + message: Bad Request + url: https://test-petrsvihlik.ppe.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2022-10-01 +version: 1 diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_with_no_scopes.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_with_no_scopes.yaml index 5eb6c59bc980..74bd99d4a165 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_with_no_scopes.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_with_no_scopes.yaml @@ -1,71 +1,69 @@ interactions: - request: - body: '{}' + body: '' headers: Accept: - application/json - Content-Length: - - '2' Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.7.12 (Darwin-21.5.0-x86_64-i386-64bit) + - azsdk-python-communication-identity/1.2.1 Python/3.7.9 (Windows-10-10.0.22621-SP0) x-ms-date: - - Wed, 03 Aug 2022 09:15:52 GMT + - Thu, 25 Aug 2022 20:04:20 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 response: body: string: '{"identity": {"id": "sanitized"}}' headers: api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, - 2021-10-31-preview, 2021-11-01, 2022-06-01 + 2021-10-31-preview, 2021-11-01, 2022-06-01, 2022-10-01 content-length: '101' content-type: application/json; charset=utf-8 - date: Wed, 03 Aug 2022 09:15:52 GMT - ms-cv: DosOraXNEEuCUXhRpIzYmA.0 + date: Thu, 25 Aug 2022 20:04:20 GMT + ms-cv: OwwzJc4dLki7lDHedgn6xQ.0 request-context: appId= strict-transport-security: max-age=2592000 x-cache: CONFIG_NOCACHE - x-processing-time: 30ms + x-processing-time: 39ms status: code: 201 message: Created - url: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + url: https://test-petrsvihlik.ppe.communication.azure.net/identities?api-version=2022-10-01 - request: - body: '{}' + body: '{"scopes": null}' headers: Accept: - application/json Content-Length: - - '2' + - '16' Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.7.12 (Darwin-21.5.0-x86_64-i386-64bit) + - azsdk-python-communication-identity/1.2.1 Python/3.7.9 (Windows-10-10.0.22621-SP0) x-ms-date: - - Wed, 03 Aug 2022 09:15:52 GMT + - Thu, 25 Aug 2022 20:04:20 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2022-10-01 response: body: string: '{"error": {"code": "ValidationError", "message": "Scopes: The Scopes field is required.", "target": "Scopes"}}' headers: content-type: application/json - date: Wed, 03 Aug 2022 09:15:52 GMT - ms-cv: +dOtgKrPLku4/qWErMTSnw.0 + date: Thu, 25 Aug 2022 20:04:20 GMT + ms-cv: wP+579EY70m6ZHdvf6a9Ag.0 request-context: appId= strict-transport-security: max-age=2592000 transfer-encoding: chunked x-cache: CONFIG_NOCACHE - x-processing-time: 25ms + x-processing-time: 29ms status: code: 400 message: Bad Request - url: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2022-06-01 + url: https://test-petrsvihlik.ppe.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2022-10-01 version: 1 diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_revoke_tokens.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_revoke_tokens.yaml index ad31faa5449a..29c26344eddf 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_revoke_tokens.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_revoke_tokens.yaml @@ -1,39 +1,37 @@ interactions: - request: - body: '{}' + body: '' headers: Accept: - application/json - Content-Length: - - '2' Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.7.12 (Darwin-21.5.0-x86_64-i386-64bit) + - azsdk-python-communication-identity/1.2.1 Python/3.7.9 (Windows-10-10.0.22621-SP0) x-ms-date: - - Wed, 03 Aug 2022 09:15:53 GMT + - Thu, 25 Aug 2022 20:04:21 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 response: body: string: '{"identity": {"id": "sanitized"}}' headers: api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, - 2021-10-31-preview, 2021-11-01, 2022-06-01 + 2021-10-31-preview, 2021-11-01, 2022-06-01, 2022-10-01 content-length: '101' content-type: application/json; charset=utf-8 - date: Wed, 03 Aug 2022 09:15:53 GMT - ms-cv: TS/qQ5c07EaZa5f7AD/RTg.0 + date: Thu, 25 Aug 2022 20:04:20 GMT + ms-cv: nT9E6WOgN0qNoUz5o69/Lg.0 request-context: appId= strict-transport-security: max-age=2592000 x-cache: CONFIG_NOCACHE - x-processing-time: 32ms + x-processing-time: 36ms status: code: 201 message: Created - url: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + url: https://test-petrsvihlik.ppe.communication.azure.net/identities?api-version=2022-10-01 - request: body: '{"scopes": ["chat"]}' headers: @@ -44,58 +42,58 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.7.12 (Darwin-21.5.0-x86_64-i386-64bit) + - azsdk-python-communication-identity/1.2.1 Python/3.7.9 (Windows-10-10.0.22621-SP0) x-ms-date: - - Wed, 03 Aug 2022 09:15:53 GMT + - Thu, 25 Aug 2022 20:04:21 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2022-10-01 response: body: - string: '{"token": "sanitized", "expiresOn": "2022-08-04T09:15:53.68165+00:00"}' + string: '{"token": "sanitized", "expiresOn": "2022-08-26T20:04:21.4589681+00:00"}' headers: api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, - 2021-10-31-preview, 2021-11-01, 2022-06-01 - content-length: '802' + 2021-10-31-preview, 2021-11-01, 2022-06-01, 2022-10-01 + content-length: '804' content-type: application/json; charset=utf-8 - date: Wed, 03 Aug 2022 09:15:53 GMT - ms-cv: 9TLES2/0wk2fRH11mL7rqw.0 + date: Thu, 25 Aug 2022 20:04:20 GMT + ms-cv: 3swj2+zpB0WT3wOibsttvw.0 request-context: appId= strict-transport-security: max-age=2592000 x-cache: CONFIG_NOCACHE - x-processing-time: 52ms + x-processing-time: 47ms status: code: 200 message: OK - url: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2022-06-01 + url: https://test-petrsvihlik.ppe.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2022-10-01 - request: body: '' headers: Accept: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.7.12 (Darwin-21.5.0-x86_64-i386-64bit) + - azsdk-python-communication-identity/1.2.1 Python/3.7.9 (Windows-10-10.0.22621-SP0) x-ms-date: - - Wed, 03 Aug 2022 09:15:53 GMT + - Thu, 25 Aug 2022 20:04:21 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities/sanitized/:revokeAccessTokens?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities/sanitized/:revokeAccessTokens?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, - 2021-10-31-preview, 2021-11-01, 2022-06-01 - date: Wed, 03 Aug 2022 09:15:54 GMT - ms-cv: Lr9a8UfnnEyPGoUH5IMb6g.0 + 2021-10-31-preview, 2021-11-01, 2022-06-01, 2022-10-01 + date: Thu, 25 Aug 2022 20:04:20 GMT + ms-cv: KgjXOlMAz0eqipnSELsTOw.0 request-context: appId= strict-transport-security: max-age=2592000 x-cache: CONFIG_NOCACHE - x-processing-time: 289ms + x-processing-time: 116ms status: code: 204 message: No Content - url: https://sanitized.communication.azure.com/identities/sanitized/:revokeAccessTokens?api-version=2022-06-01 + url: https://test-petrsvihlik.ppe.communication.azure.net/identities/sanitized/:revokeAccessTokens?api-version=2022-10-01 version: 1 diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_revoke_tokens_from_managed_identity.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_revoke_tokens_from_managed_identity.yaml index 90bc39bf463e..39619ba796ae 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_revoke_tokens_from_managed_identity.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_revoke_tokens_from_managed_identity.yaml @@ -1,35 +1,33 @@ interactions: - request: - body: '{}' + body: null headers: Accept: - application/json - Content-Length: - - '2' Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.7.12 (Darwin-21.5.0-x86_64-i386-64bit) + - azsdk-python-communication-identity/1.2.1 Python/3.7.9 (Windows-10-10.0.22621-SP0) method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 response: body: string: '{"identity": {"id": "sanitized"}}' headers: api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, - 2021-10-31-preview, 2021-11-01, 2022-06-01 + 2021-10-31-preview, 2021-11-01, 2022-06-01, 2022-10-01 content-length: '101' content-type: application/json; charset=utf-8 - date: Wed, 03 Aug 2022 09:15:54 GMT - ms-cv: 9GO6hmIs3EauLFf769p3bg.0 + date: Thu, 25 Aug 2022 20:04:21 GMT + ms-cv: xP2UYjWfz0a32JEOix5egw.0 request-context: appId= strict-transport-security: max-age=2592000 x-cache: CONFIG_NOCACHE - x-processing-time: 33ms + x-processing-time: 60ms status: code: 201 message: Created - url: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + url: https://test-petrsvihlik.ppe.communication.azure.net/identities?api-version=2022-10-01 - request: body: '{"scopes": ["chat"]}' headers: @@ -40,50 +38,50 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.7.12 (Darwin-21.5.0-x86_64-i386-64bit) + - azsdk-python-communication-identity/1.2.1 Python/3.7.9 (Windows-10-10.0.22621-SP0) method: POST - uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2022-10-01 response: body: - string: '{"token": "sanitized", "expiresOn": "2022-08-04T09:15:55.1583244+00:00"}' + string: '{"token": "sanitized", "expiresOn": "2022-08-26T20:04:22.5782665+00:00"}' headers: api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, - 2021-10-31-preview, 2021-11-01, 2022-06-01 + 2021-10-31-preview, 2021-11-01, 2022-06-01, 2022-10-01 content-length: '804' content-type: application/json; charset=utf-8 - date: Wed, 03 Aug 2022 09:15:55 GMT - ms-cv: 5LLuZ/T4sEqotWVVGqiBug.0 + date: Thu, 25 Aug 2022 20:04:21 GMT + ms-cv: WaxpgLMTZ0yoWMBY4Kk95g.0 request-context: appId= strict-transport-security: max-age=2592000 x-cache: CONFIG_NOCACHE - x-processing-time: 48ms + x-processing-time: 39ms status: code: 200 message: OK - url: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2022-06-01 + url: https://test-petrsvihlik.ppe.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2022-10-01 - request: body: null headers: Accept: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.7.12 (Darwin-21.5.0-x86_64-i386-64bit) + - azsdk-python-communication-identity/1.2.1 Python/3.7.9 (Windows-10-10.0.22621-SP0) method: POST - uri: https://sanitized.communication.azure.com/identities/sanitized/:revokeAccessTokens?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities/sanitized/:revokeAccessTokens?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, - 2021-10-31-preview, 2021-11-01, 2022-06-01 - date: Wed, 03 Aug 2022 09:15:55 GMT - ms-cv: 4pZbxyi+6EmmVJCbcWPV9g.0 + 2021-10-31-preview, 2021-11-01, 2022-06-01, 2022-10-01 + date: Thu, 25 Aug 2022 20:04:22 GMT + ms-cv: MXAWPwapEUmbVYiSt9ligg.0 request-context: appId= strict-transport-security: max-age=2592000 x-cache: CONFIG_NOCACHE - x-processing-time: 265ms + x-processing-time: 326ms status: code: 204 message: No Content - url: https://sanitized.communication.azure.com/identities/sanitized/:revokeAccessTokens?api-version=2022-06-01 + url: https://test-petrsvihlik.ppe.communication.azure.net/identities/sanitized/:revokeAccessTokens?api-version=2022-10-01 version: 1 diff --git a/sdk/communication/azure-communication-identity/tests/test_communication_identity_client.py b/sdk/communication/azure-communication-identity/tests/test_communication_identity_client.py index 0e48308b1c0f..2ff592366b6a 100644 --- a/sdk/communication/azure-communication-identity/tests/test_communication_identity_client.py +++ b/sdk/communication/azure-communication-identity/tests/test_communication_identity_client.py @@ -5,7 +5,7 @@ # license information. # -------------------------------------------------------------------------- import pytest -import datetime +from datetime import timedelta from azure.communication.identity import CommunicationIdentityClient from azure.communication.identity import CommunicationTokenScope from azure.core.credentials import AccessToken @@ -67,6 +67,62 @@ def test_create_user_and_token(self, communication_livetest_dynamic_connection_s assert user.properties.get('id') is not None assert token_response.token is not None + + @CommunicationPreparer() + def test_create_user_and_token_with_custom_minimum_validity(self, communication_livetest_dynamic_connection_string): + identity_client = CommunicationIdentityClient.from_connection_string( + communication_livetest_dynamic_connection_string, + http_logging_policy=get_http_logging_policy() + ) + + token_expires_after = timedelta(minutes=60) + user, token_response = identity_client.create_user_and_token(scopes=[CommunicationTokenScope.CHAT], token_expires_after=token_expires_after) + + assert user.properties.get('id') is not None + assert token_response.token is not None + + @CommunicationPreparer() + def test_create_user_and_token_with_custom_maximum_validity(self, communication_livetest_dynamic_connection_string): + identity_client = CommunicationIdentityClient.from_connection_string( + communication_livetest_dynamic_connection_string, + http_logging_policy=get_http_logging_policy() + ) + + token_expires_after = timedelta(minutes=1440) + user, token_response = identity_client.create_user_and_token(scopes=[CommunicationTokenScope.CHAT], token_expires_after=token_expires_after) + + assert user.properties.get('id') is not None + assert token_response.token is not None + + @CommunicationPreparer() + def test_create_user_and_token_with_custom_validity_under_minimum_allowed(self, communication_livetest_dynamic_connection_string): + identity_client = CommunicationIdentityClient.from_connection_string( + communication_livetest_dynamic_connection_string, + http_logging_policy=get_http_logging_policy() + ) + + token_expires_after = timedelta(minutes=59) + + with pytest.raises(Exception) as ex: + identity_client.create_user_and_token(scopes=[CommunicationTokenScope.CHAT], token_expires_after=token_expires_after) + + assert str(ex.value.status_code) == "400" + assert ex.value.message is not None + + @CommunicationPreparer() + def test_create_user_and_token_with_custom_validity_over_maximum_allowed(self, communication_livetest_dynamic_connection_string): + identity_client = CommunicationIdentityClient.from_connection_string( + communication_livetest_dynamic_connection_string, + http_logging_policy=get_http_logging_policy() + ) + + token_expires_after = timedelta(minutes=1441) + + with pytest.raises(Exception) as ex: + identity_client.create_user_and_token(scopes=[CommunicationTokenScope.CHAT], token_expires_after=token_expires_after) + + assert str(ex.value.status_code) == "400" + assert ex.value.message is not None @CommunicationPreparer() def test_get_token_from_managed_identity(self, communication_livetest_dynamic_connection_string): @@ -100,6 +156,66 @@ def test_get_token(self, communication_livetest_dynamic_connection_string): assert user.properties.get('id') is not None assert token_response.token is not None + + @CommunicationPreparer() + def test_get_token_with_custom_minimum_validity(self, communication_livetest_dynamic_connection_string): + identity_client = CommunicationIdentityClient.from_connection_string( + communication_livetest_dynamic_connection_string, + http_logging_policy=get_http_logging_policy() + ) + user = identity_client.create_user() + + token_expires_after = timedelta(minutes=60) + token_response = identity_client.get_token(user, scopes=[CommunicationTokenScope.CHAT], token_expires_after=token_expires_after) + + assert user.properties.get('id') is not None + assert token_response.token is not None + + @CommunicationPreparer() + def test_get_token_with_custom_maximum_validity(self, communication_livetest_dynamic_connection_string): + identity_client = CommunicationIdentityClient.from_connection_string( + communication_livetest_dynamic_connection_string, + http_logging_policy=get_http_logging_policy() + ) + user = identity_client.create_user() + + token_expires_after = timedelta(minutes=1440) + token_response = identity_client.get_token(user, scopes=[CommunicationTokenScope.CHAT], token_expires_after=token_expires_after) + + assert user.properties.get('id') is not None + assert token_response.token is not None + + @CommunicationPreparer() + def test_get_token_with_custom_validity_under_minimum_allowed(self, communication_livetest_dynamic_connection_string): + identity_client = CommunicationIdentityClient.from_connection_string( + communication_livetest_dynamic_connection_string, + http_logging_policy=get_http_logging_policy() + ) + user = identity_client.create_user() + + token_expires_after = timedelta(minutes=59) + + with pytest.raises(Exception) as ex: + identity_client.get_token(user, scopes=[CommunicationTokenScope.CHAT], token_expires_after=token_expires_after) + + assert str(ex.value.status_code) == "400" + assert ex.value.message is not None + + @CommunicationPreparer() + def test_get_token_with_custom_validity_over_maximum_allowed(self, communication_livetest_dynamic_connection_string): + identity_client = CommunicationIdentityClient.from_connection_string( + communication_livetest_dynamic_connection_string, + http_logging_policy=get_http_logging_policy() + ) + user = identity_client.create_user() + + token_expires_after = timedelta(minutes=1441) + + with pytest.raises(Exception) as ex: + identity_client.get_token(user, scopes=[CommunicationTokenScope.CHAT], token_expires_after=token_expires_after) + + assert str(ex.value.status_code) == "400" + assert ex.value.message is not None @CommunicationPreparer() def test_revoke_tokens_from_managed_identity(self, communication_livetest_dynamic_connection_string): diff --git a/sdk/communication/azure-communication-identity/tests/test_communication_identity_client_async.py b/sdk/communication/azure-communication-identity/tests/test_communication_identity_client_async.py index bb3451a968a4..843dab47bd9e 100644 --- a/sdk/communication/azure-communication-identity/tests/test_communication_identity_client_async.py +++ b/sdk/communication/azure-communication-identity/tests/test_communication_identity_client_async.py @@ -5,7 +5,7 @@ # license information. # -------------------------------------------------------------------------- import pytest -import datetime +from datetime import timedelta from azure.core.credentials import AccessToken from azure.communication.identity.aio import CommunicationIdentityClient from azure.communication.identity import CommunicationTokenScope @@ -74,6 +74,68 @@ async def test_create_user_and_token(self, communication_livetest_dynamic_connec assert user.properties.get('id') is not None assert token_response.token is not None + @CommunicationPreparer() + async def test_create_user_and_token_with_custom_minimum_validity(self, communication_livetest_dynamic_connection_string): + identity_client = CommunicationIdentityClient.from_connection_string( + communication_livetest_dynamic_connection_string, + http_logging_policy=get_http_logging_policy() + ) + + token_expires_after = timedelta(minutes=60) + + async with identity_client: + user, token_response = await identity_client.create_user_and_token(scopes=[CommunicationTokenScope.CHAT], token_expires_after=token_expires_after) + + assert user.properties.get('id') is not None + assert token_response.token is not None + + @CommunicationPreparer() + async def test_create_user_and_token_with_custom_maximum_validity(self, communication_livetest_dynamic_connection_string): + identity_client = CommunicationIdentityClient.from_connection_string( + communication_livetest_dynamic_connection_string, + http_logging_policy=get_http_logging_policy() + ) + + token_expires_after = timedelta(minutes=1440) + + async with identity_client: + user, token_response = await identity_client.create_user_and_token(scopes=[CommunicationTokenScope.CHAT], token_expires_after=token_expires_after) + + assert user.properties.get('id') is not None + assert token_response.token is not None + + @CommunicationPreparer() + async def test_create_user_and_token_with_custom_validity_under_minimum_allowed(self, communication_livetest_dynamic_connection_string): + identity_client = CommunicationIdentityClient.from_connection_string( + communication_livetest_dynamic_connection_string, + http_logging_policy=get_http_logging_policy() + ) + + token_expires_after = timedelta(minutes=59) + + async with identity_client: + with pytest.raises(Exception) as ex: + await identity_client.create_user_and_token(scopes=[CommunicationTokenScope.CHAT], token_expires_after=token_expires_after) + + assert str(ex.value.status_code) == "400" + assert ex.value.message is not None + + @CommunicationPreparer() + async def test_create_user_and_token_with_custom_validity_over_maximum_allowed(self, communication_livetest_dynamic_connection_string): + identity_client = CommunicationIdentityClient.from_connection_string( + communication_livetest_dynamic_connection_string, + http_logging_policy=get_http_logging_policy() + ) + + token_expires_after = timedelta(minutes=1441) + + async with identity_client: + with pytest.raises(Exception) as ex: + await identity_client.create_user_and_token(scopes=[CommunicationTokenScope.CHAT], token_expires_after=token_expires_after) + + assert str(ex.value.status_code) == "400" + assert ex.value.message is not None + @CommunicationPreparer() async def test_get_token_from_managed_identity(self, communication_livetest_dynamic_connection_string): endpoint, access_key = parse_connection_str(communication_livetest_dynamic_connection_string) @@ -106,6 +168,72 @@ async def test_get_token(self, communication_livetest_dynamic_connection_string) assert user.properties.get('id') is not None assert token_response.token is not None + + @CommunicationPreparer() + async def test_get_token_with_custom_minimum_validity(self, communication_livetest_dynamic_connection_string): + identity_client = CommunicationIdentityClient.from_connection_string( + communication_livetest_dynamic_connection_string, + http_logging_policy=get_http_logging_policy() + ) + + token_expires_after = timedelta(minutes=60) + + async with identity_client: + user = await identity_client.create_user() + token_response = await identity_client.get_token(user, scopes=[CommunicationTokenScope.CHAT], token_expires_after=token_expires_after) + + assert user.properties.get('id') is not None + assert token_response.token is not None + + @CommunicationPreparer() + async def test_get_token_with_custom_maximum_validity(self, communication_livetest_dynamic_connection_string): + identity_client = CommunicationIdentityClient.from_connection_string( + communication_livetest_dynamic_connection_string, + http_logging_policy=get_http_logging_policy() + ) + + token_expires_after = timedelta(minutes=1440) + + async with identity_client: + user = await identity_client.create_user() + token_response = await identity_client.get_token(user, scopes=[CommunicationTokenScope.CHAT], token_expires_after=token_expires_after) + + assert user.properties.get('id') is not None + assert token_response.token is not None + + @CommunicationPreparer() + async def test_get_token_with_custom_validity_under_minimum_allowed(self, communication_livetest_dynamic_connection_string): + identity_client = CommunicationIdentityClient.from_connection_string( + communication_livetest_dynamic_connection_string, + http_logging_policy=get_http_logging_policy() + ) + + token_expires_after = timedelta(minutes=59) + + async with identity_client: + with pytest.raises(Exception) as ex: + user = await identity_client.create_user() + await identity_client.get_token(user, scopes=[CommunicationTokenScope.CHAT], token_expires_after=token_expires_after) + + assert str(ex.value.status_code) == "400" + assert ex.value.message is not None + + @CommunicationPreparer() + async def test_get_token_with_custom_validity_over_maximum_allowed(self, communication_livetest_dynamic_connection_string): + identity_client = CommunicationIdentityClient.from_connection_string( + communication_livetest_dynamic_connection_string, + http_logging_policy=get_http_logging_policy() + ) + + token_expires_after = timedelta(minutes=1441) + + async with identity_client: + with pytest.raises(Exception) as ex: + user = await identity_client.create_user() + await identity_client.get_token(user, scopes=[CommunicationTokenScope.CHAT], token_expires_after=token_expires_after) + + assert str(ex.value.status_code) == "400" + assert ex.value.message is not None @CommunicationPreparer() async def test_revoke_tokens_from_managed_identity(self, communication_livetest_dynamic_connection_string): From 8c263da4c364d4a99b7bb34ab7841b972c276fe8 Mon Sep 17 00:00:00 2001 From: Maxim Rytych Date: Tue, 13 Sep 2022 13:09:21 +0200 Subject: [PATCH 04/17] Revert manual changes from generated code --- .../_generated/aio/operations/_operations.py | 41 +++++++++++---- .../_generated/operations/_operations.py | 51 +++++++++++++------ 2 files changed, 67 insertions(+), 25 deletions(-) diff --git a/sdk/communication/azure-communication-identity/azure/communication/identity/_generated/aio/operations/_operations.py b/sdk/communication/azure-communication-identity/azure/communication/identity/_generated/aio/operations/_operations.py index e4226d5f826b..9276f3afc266 100644 --- a/sdk/communication/azure-communication-identity/azure/communication/identity/_generated/aio/operations/_operations.py +++ b/sdk/communication/azure-communication-identity/azure/communication/identity/_generated/aio/operations/_operations.py @@ -14,6 +14,7 @@ HttpResponseError, ResourceExistsError, ResourceNotFoundError, + ResourceNotModifiedError, map_error, ) from azure.core.pipeline import PipelineResponse @@ -164,10 +165,14 @@ async def create(self, body: Optional[Union[JSON, IO]] = None, **kwargs: Any) -> } } """ - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} + error_map = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } error_map.update(kwargs.pop("error_map", {}) or {}) - kwargs.pop("api_version", "2022-10-01") _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = kwargs.pop("params", {}) or {} @@ -230,10 +235,14 @@ async def delete(self, id: str, **kwargs: Any) -> None: # pylint: disable=incon :rtype: None :raises ~azure.core.exceptions.HttpResponseError: """ - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} + error_map = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } error_map.update(kwargs.pop("error_map", {}) or {}) - kwargs.pop("api_version", "2022-10-01") _headers = kwargs.pop("headers", {}) or {} _params = kwargs.pop("params", {}) or {} @@ -277,10 +286,14 @@ async def revoke_access_tokens( # pylint: disable=inconsistent-return-statement :rtype: None :raises ~azure.core.exceptions.HttpResponseError: """ - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} + error_map = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } error_map.update(kwargs.pop("error_map", {}) or {}) - kwargs.pop("api_version", "2022-10-01") _headers = kwargs.pop("headers", {}) or {} _params = kwargs.pop("params", {}) or {} @@ -408,10 +421,14 @@ async def exchange_teams_user_access_token(self, body: Union[JSON, IO], **kwargs "token": "str" # The access token issued for the identity. Required. } """ - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} + error_map = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } error_map.update(kwargs.pop("error_map", {}) or {}) - kwargs.pop("api_version", "2022-10-01") _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = kwargs.pop("params", {}) or {} @@ -556,10 +573,14 @@ async def issue_access_token(self, id: str, body: Union[JSON, IO], **kwargs: Any "token": "str" # The access token issued for the identity. Required. } """ - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} + error_map = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } error_map.update(kwargs.pop("error_map", {}) or {}) - kwargs.pop("api_version", "2022-10-01") _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = kwargs.pop("params", {}) or {} diff --git a/sdk/communication/azure-communication-identity/azure/communication/identity/_generated/operations/_operations.py b/sdk/communication/azure-communication-identity/azure/communication/identity/_generated/operations/_operations.py index 48b4a889a326..58fb28bb9be5 100644 --- a/sdk/communication/azure-communication-identity/azure/communication/identity/_generated/operations/_operations.py +++ b/sdk/communication/azure-communication-identity/azure/communication/identity/_generated/operations/_operations.py @@ -14,6 +14,7 @@ HttpResponseError, ResourceExistsError, ResourceNotFoundError, + ResourceNotModifiedError, map_error, ) from azure.core.pipeline import PipelineResponse @@ -279,10 +280,14 @@ def create(self, body: Optional[Union[JSON, IO]] = None, **kwargs: Any) -> JSON: } } """ - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} + error_map = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } error_map.update(kwargs.pop("error_map", {}) or {}) - api_version = kwargs.pop("api_version", self._config.api_version) _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = kwargs.pop("params", {}) or {} @@ -302,7 +307,7 @@ def create(self, body: Optional[Union[JSON, IO]] = None, **kwargs: Any) -> JSON: request = build_communication_identity_create_request( content_type=content_type, - api_version=api_version, + api_version=self._config.api_version, json=_json, content=_content, headers=_headers, @@ -345,10 +350,14 @@ def delete(self, id: str, **kwargs: Any) -> None: # pylint: disable=inconsisten :rtype: None :raises ~azure.core.exceptions.HttpResponseError: """ - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} + error_map = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } error_map.update(kwargs.pop("error_map", {}) or {}) - api_version = kwargs.pop("api_version", self._config.api_version) _headers = kwargs.pop("headers", {}) or {} _params = kwargs.pop("params", {}) or {} @@ -356,7 +365,7 @@ def delete(self, id: str, **kwargs: Any) -> None: # pylint: disable=inconsisten request = build_communication_identity_delete_request( id=id, - api_version=api_version, + api_version=self._config.api_version, headers=_headers, params=_params, ) @@ -390,10 +399,14 @@ def revoke_access_tokens(self, id: str, **kwargs: Any) -> None: # pylint: disab :rtype: None :raises ~azure.core.exceptions.HttpResponseError: """ - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} + error_map = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } error_map.update(kwargs.pop("error_map", {}) or {}) - api_version = kwargs.pop("api_version", self._config.api_version) _headers = kwargs.pop("headers", {}) or {} _params = kwargs.pop("params", {}) or {} @@ -401,7 +414,7 @@ def revoke_access_tokens(self, id: str, **kwargs: Any) -> None: # pylint: disab request = build_communication_identity_revoke_access_tokens_request( id=id, - api_version=api_version, + api_version=self._config.api_version, headers=_headers, params=_params, ) @@ -521,10 +534,14 @@ def exchange_teams_user_access_token(self, body: Union[JSON, IO], **kwargs: Any) "token": "str" # The access token issued for the identity. Required. } """ - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} + error_map = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } error_map.update(kwargs.pop("error_map", {}) or {}) - api_version = kwargs.pop("api_version", self._config.api_version) _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = kwargs.pop("params", {}) or {} @@ -541,7 +558,7 @@ def exchange_teams_user_access_token(self, body: Union[JSON, IO], **kwargs: Any) request = build_communication_identity_exchange_teams_user_access_token_request( content_type=content_type, - api_version=api_version, + api_version=self._config.api_version, json=_json, content=_content, headers=_headers, @@ -665,10 +682,14 @@ def issue_access_token(self, id: str, body: Union[JSON, IO], **kwargs: Any) -> J "token": "str" # The access token issued for the identity. Required. } """ - error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError} + error_map = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } error_map.update(kwargs.pop("error_map", {}) or {}) - api_version = kwargs.pop("api_version", self._config.api_version) _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = kwargs.pop("params", {}) or {} @@ -686,7 +707,7 @@ def issue_access_token(self, id: str, body: Union[JSON, IO], **kwargs: Any) -> J request = build_communication_identity_issue_access_token_request( id=id, content_type=content_type, - api_version=api_version, + api_version=self._config.api_version, json=_json, content=_content, headers=_headers, From 93f980b533623360be1ea379e478c30b825f922a Mon Sep 17 00:00:00 2001 From: Aigerim Beishenbekova Date: Tue, 13 Sep 2022 19:18:57 +0200 Subject: [PATCH 05/17] fixed API view comments --- .../_communication_identity_client.py | 26 +++++++---------- .../_communication_identity_client_async.py | 28 +++++++------------ 2 files changed, 20 insertions(+), 34 deletions(-) diff --git a/sdk/communication/azure-communication-identity/azure/communication/identity/_communication_identity_client.py b/sdk/communication/azure-communication-identity/azure/communication/identity/_communication_identity_client.py index 655c71448d0c..ba48aad18e9c 100644 --- a/sdk/communication/azure-communication-identity/azure/communication/identity/_communication_identity_client.py +++ b/sdk/communication/azure-communication-identity/azure/communication/identity/_communication_identity_client.py @@ -37,8 +37,6 @@ class CommunicationIdentityClient(object): # pylint: disable=client-accepts-api- :dedent: 8 """ - MAX_TOKEN_VALIDITY_IN_SECONDS = 86400 - def __init__( self, endpoint, # type: str @@ -105,7 +103,6 @@ def create_user(self, **kwargs): def create_user_and_token( self, scopes, # type: List[Union[str, CommunicationTokenScope]] - token_expires_after: Optional[datetime.timedelta] = None, #type: datetime.timedelta **kwargs # type: Any ): # type: (...) -> Tuple[CommunicationUserIdentifier, AccessToken] @@ -113,21 +110,20 @@ def create_user_and_token( :param scopes: List of scopes to be added to the token. :type scopes: list[str or ~azure.communication.identity.CommunicationTokenScope] - :param token_expires_after: Custom validity period of the Communication Identity access token within <60,1440> minutes range. If not provided, the default value of 1440 minutes (24 hours) will be used. - :type token_expires_after: timedelta + :keyword token_expiry: Custom validity period of the Communication Identity access token within [1, 24] hours range. If not provided, the default value of 1440 minutes (24 hours) will be used. + :paramtype token_expiry: datetime.timedelta :return: A tuple of a CommunicationUserIdentifier and a AccessToken. :rtype: tuple of (~azure.communication.identity.CommunicationUserIdentifier, ~azure.core.credentials.AccessToken) """ api_version = kwargs.pop("api_version", self._api_version) + token_expiry = kwargs.pop('token_expiry', None) expires_after_in_minutes = 0 - if (token_expires_after is not None): + if (token_expiry is not None): - # timedelta counts seconds that sum up to one day and assigns them to days property, remainder is assigned to seconds property - # i.e. when reaching 86400 seconds, value for days property will be 1, value for seconds property will be 0 - expires_after_in_minutes = int((token_expires_after.days * self.MAX_TOKEN_VALIDITY_IN_SECONDS + token_expires_after.seconds) / 60) + expires_after_in_minutes = int(token_expiry.total_seconds() / 60) body = { 'createTokenWithScopes': scopes, @@ -170,7 +166,6 @@ def get_token( self, user, # type: CommunicationUserIdentifier scopes, # type: List[Union[str, CommunicationTokenScope]] - token_expires_after: Optional[datetime.timedelta] = None, #type: datetime.timedelta **kwargs # type: Any ): # type: (...) -> AccessToken @@ -180,20 +175,19 @@ def get_token( :type user: ~azure.communication.identity.CommunicationUserIdentifier :param scopes: List of scopes to be added to the token. :type scopes: list[str or ~azure.communication.identity.CommunicationTokenScope] - :param token_expires_after: Custom validity period of the Communication Identity access token within <60,1440> minutes range. If not provided, the default value of 1440 minutes (24 hours) will be used. - :type token_expires_after: timedelta + :keyword token_expiry: Custom validity period of the Communication Identity access token within [1, 24] hours range. If not provided, the default value of 1440 minutes (24 hours) will be used. + :paramtype token_expiry: datetime.timedelta :return: AccessToken :rtype: ~azure.core.credentials.AccessToken """ api_version = kwargs.pop("api_version", self._api_version) + token_expiry = kwargs.pop('token_expiry', None) expires_after_in_minutes = 0 - if (token_expires_after is not None): + if (token_expiry is not None): - # timedelta counts seconds that sum up to one day and assigns them to days property, remainder is assigned to seconds property - # i.e. when reaching 86400 seconds, value for days property will be 1, value for seconds property will be 0 - expires_after_in_minutes = int((token_expires_after.days * self.MAX_TOKEN_VALIDITY_IN_SECONDS + token_expires_after.seconds) / 60) + expires_after_in_minutes = int(token_expiry.total_seconds() / 60) body = { 'scopes': scopes, diff --git a/sdk/communication/azure-communication-identity/azure/communication/identity/aio/_communication_identity_client_async.py b/sdk/communication/azure-communication-identity/azure/communication/identity/aio/_communication_identity_client_async.py index 7e5d9c369a72..9de245654464 100644 --- a/sdk/communication/azure-communication-identity/azure/communication/identity/aio/_communication_identity_client_async.py +++ b/sdk/communication/azure-communication-identity/azure/communication/identity/aio/_communication_identity_client_async.py @@ -36,8 +36,6 @@ class CommunicationIdentityClient: # pylint: disable=client-accepts-api-version- :dedent: 8 """ - MAX_TOKEN_VALIDITY_IN_SECONDS = 86400 - def __init__( self, endpoint: str, @@ -102,15 +100,14 @@ async def create_user(self, **kwargs) -> 'CommunicationUserIdentifier': async def create_user_and_token( self, scopes: List[Union[str, 'CommunicationTokenScope']], - token_expires_after: Optional[datetime.timedelta] = None, #type: datetime.timedelta **kwargs ) -> Tuple['CommunicationUserIdentifier', AccessToken]: """create a single Communication user with an identity token. :param scopes: List of scopes to be added to the token. :type scopes: list[str or ~azure.communication.identity.CommunicationTokenScope] - :param token_expires_after: Custom validity period of the Communication Identity access token within <60,1440> minutes range. If not provided, the default value of 1440 minutes (24 hours) will be used. - :type token_expires_after: timedelta + :keyword token_expiry: Custom validity period of the Communication Identity access token within [1, 24] hours range. If not provided, the default value of 24 hours will be used. + :paramtype token_expiry: datetime.timedelta :return: A tuple of a CommunicationUserIdentifier and a AccessToken. :rtype: tuple of (~azure.communication.identity.CommunicationUserIdentifier, ~azure.core.credentials.AccessToken) @@ -118,12 +115,10 @@ async def create_user_and_token( api_version = kwargs.pop("api_version", self._api_version) expires_after_in_minutes = 0 - - if (token_expires_after is not None): + token_expiry = kwargs.pop('token_expiry', None) + if (token_expiry is not None): - # timedelta counts seconds that sum up to one day and assigns them to days property, remainder is assigned to seconds property - # i.e. when reaching 86400 seconds, value for days property will be 1, value for seconds property will be 0 - expires_after_in_minutes = int((token_expires_after.days * self.MAX_TOKEN_VALIDITY_IN_SECONDS + token_expires_after.seconds) / 60) + expires_after_in_minutes = int(token_expiry.total_seconds() / 60) body = { 'createTokenWithScopes': scopes, @@ -166,7 +161,6 @@ async def get_token( self, user: CommunicationUserIdentifier, scopes: List[Union[str, 'CommunicationTokenScope']], - token_expires_after: Optional[datetime.timedelta] = None, #type: datetime.timedelta **kwargs ) -> AccessToken: """Generates a new token for an identity. @@ -176,20 +170,18 @@ async def get_token( :param scopes: List of scopes to be added to the token. :type scopes: list[str or ~azure.communication.identity.CommunicationTokenScope] - :param token_expires_after: Custom validity period of the Communication Identity access token within <60,1440> minutes range. If not provided, the default value of 1440 minutes (24 hours) will be used. - :type token_expires_after: timedelta + :keyword token_expiry: Custom validity period of the Communication Identity access token within [1, 24] hours range. If not provided, the default value of 24 hours will be used. + :paramtype token_expiry: datetime.timedelta :return: AccessToken :rtype: ~azure.core.credentials.AccessToken """ api_version = kwargs.pop("api_version", self._api_version) expires_after_in_minutes = 0 - - if (token_expires_after is not None): + token_expiry = kwargs.pop('token_expiry', None) + if (token_expiry is not None): - # timedelta counts seconds that sum up to one day and assigns them to days property, remainder is assigned to seconds property - # i.e. when reaching 86400 seconds, value for days property will be 1, value for seconds property will be 0 - expires_after_in_minutes = int((token_expires_after.days * self.MAX_TOKEN_VALIDITY_IN_SECONDS + token_expires_after.seconds) / 60) + expires_after_in_minutes = int(token_expiry.total_seconds() / 60) body = { 'scopes': scopes, From fa5e73c17d14913fde6284c7918dd7f7210358d6 Mon Sep 17 00:00:00 2001 From: Aigerim Beishenbekova Date: Tue, 13 Sep 2022 20:26:48 +0200 Subject: [PATCH 06/17] fixed lint issues --- .../_communication_identity_client.py | 41 +++++++++---------- .../_communication_identity_client_async.py | 36 +++++++--------- 2 files changed, 35 insertions(+), 42 deletions(-) diff --git a/sdk/communication/azure-communication-identity/azure/communication/identity/_communication_identity_client.py b/sdk/communication/azure-communication-identity/azure/communication/identity/_communication_identity_client.py index ba48aad18e9c..7abae2f977f2 100644 --- a/sdk/communication/azure-communication-identity/azure/communication/identity/_communication_identity_client.py +++ b/sdk/communication/azure-communication-identity/azure/communication/identity/_communication_identity_client.py @@ -4,8 +4,7 @@ # Licensed under the MIT License. # ------------------------------------ -import datetime -from typing import TYPE_CHECKING, Any, List, Optional, Union, Tuple +from typing import TYPE_CHECKING, Any, List, Union, Tuple from azure.core.tracing.decorator import distributed_trace from azure.core.credentials import AccessToken @@ -36,7 +35,7 @@ class CommunicationIdentityClient(object): # pylint: disable=client-accepts-api- :language: python :dedent: 8 """ - + def __init__( self, endpoint, # type: str @@ -110,21 +109,22 @@ def create_user_and_token( :param scopes: List of scopes to be added to the token. :type scopes: list[str or ~azure.communication.identity.CommunicationTokenScope] - :keyword token_expiry: Custom validity period of the Communication Identity access token within [1, 24] hours range. If not provided, the default value of 1440 minutes (24 hours) will be used. - :paramtype token_expiry: datetime.timedelta + :keyword token_expiry: Custom validity period of the Communication Identity access token + within [1, 24] hours range. If not provided, the default value of 24 hours will be used. + :paramtype token_expiry: ~datetime.timedelta :return: A tuple of a CommunicationUserIdentifier and a AccessToken. :rtype: tuple of (~azure.communication.identity.CommunicationUserIdentifier, ~azure.core.credentials.AccessToken) """ api_version = kwargs.pop("api_version", self._api_version) token_expiry = kwargs.pop('token_expiry', None) - + expires_after_in_minutes = 0 - - if (token_expiry is not None): - + + if token_expiry is not None: + expires_after_in_minutes = int(token_expiry.total_seconds() / 60) - + body = { 'createTokenWithScopes': scopes, 'expiresInMinutes': expires_after_in_minutes @@ -133,7 +133,7 @@ def create_user_and_token( body = { 'createTokenWithScopes': scopes } - + return self._identity_service_client.communication_identity.create( cls=lambda pr, u, e: (CommunicationUserIdentifier(u['identity']['id'], raw_id=u['identity']['id']), AccessToken(u['accessToken']['token'], u['accessToken']['expiresOn'])), @@ -175,20 +175,19 @@ def get_token( :type user: ~azure.communication.identity.CommunicationUserIdentifier :param scopes: List of scopes to be added to the token. :type scopes: list[str or ~azure.communication.identity.CommunicationTokenScope] - :keyword token_expiry: Custom validity period of the Communication Identity access token within [1, 24] hours range. If not provided, the default value of 1440 minutes (24 hours) will be used. - :paramtype token_expiry: datetime.timedelta + :keyword token_expiry: Custom validity period of the Communication Identity access token + within [1, 24] hours range. If not provided, the default value of 24 hours will be used. + :paramtype token_expiry: ~datetime.timedelta :return: AccessToken :rtype: ~azure.core.credentials.AccessToken """ api_version = kwargs.pop("api_version", self._api_version) token_expiry = kwargs.pop('token_expiry', None) - + expires_after_in_minutes = 0 - - if (token_expiry is not None): - + + if token_expiry is not None: expires_after_in_minutes = int(token_expiry.total_seconds() / 60) - body = { 'scopes': scopes, 'expiresInMinutes': expires_after_in_minutes @@ -197,7 +196,7 @@ def get_token( body = { 'scopes': scopes } - + return self._identity_service_client.communication_identity.issue_access_token( user.properties['id'], body=body, @@ -248,13 +247,13 @@ def get_token_for_teams_user( :rtype: ~azure.core.credentials.AccessToken """ api_version = kwargs.pop("api_version", self._api_version) - + body = { "token": aad_token, "appId": client_id, "userId": user_object_id } - + return self._identity_service_client.communication_identity.exchange_teams_user_access_token( body=body, api_version=api_version, diff --git a/sdk/communication/azure-communication-identity/azure/communication/identity/aio/_communication_identity_client_async.py b/sdk/communication/azure-communication-identity/azure/communication/identity/aio/_communication_identity_client_async.py index 9de245654464..1f43c9ee14fe 100644 --- a/sdk/communication/azure-communication-identity/azure/communication/identity/aio/_communication_identity_client_async.py +++ b/sdk/communication/azure-communication-identity/azure/communication/identity/aio/_communication_identity_client_async.py @@ -3,8 +3,7 @@ # Copyright (c) Microsoft Corporation. # Licensed under the MIT License. # ------------------------------------ -import datetime -from typing import TYPE_CHECKING, Any, List, Optional, Union, Tuple +from typing import TYPE_CHECKING, Any, List, Union, Tuple from azure.core.tracing.decorator_async import distributed_trace_async from azure.core.credentials import AccessToken @@ -35,7 +34,7 @@ class CommunicationIdentityClient: # pylint: disable=client-accepts-api-version- :language: python :dedent: 8 """ - + def __init__( self, endpoint: str, @@ -106,20 +105,19 @@ async def create_user_and_token( :param scopes: List of scopes to be added to the token. :type scopes: list[str or ~azure.communication.identity.CommunicationTokenScope] - :keyword token_expiry: Custom validity period of the Communication Identity access token within [1, 24] hours range. If not provided, the default value of 24 hours will be used. - :paramtype token_expiry: datetime.timedelta + :keyword token_expiry: Custom validity period of the Communication Identity access token + within [1, 24] hours range. If not provided, the default value of 24 hours will be used. + :paramtype token_expiry: ~datetime.timedelta :return: A tuple of a CommunicationUserIdentifier and a AccessToken. :rtype: tuple of (~azure.communication.identity.CommunicationUserIdentifier, ~azure.core.credentials.AccessToken) """ api_version = kwargs.pop("api_version", self._api_version) - - expires_after_in_minutes = 0 token_expiry = kwargs.pop('token_expiry', None) - if (token_expiry is not None): - + + expires_after_in_minutes = 0 + if token_expiry is not None: expires_after_in_minutes = int(token_expiry.total_seconds() / 60) - body = { 'createTokenWithScopes': scopes, 'expiresInMinutes': expires_after_in_minutes @@ -128,7 +126,7 @@ async def create_user_and_token( body = { 'createTokenWithScopes': scopes } - + return await self._identity_service_client.communication_identity.create( body=body, api_version=api_version, @@ -170,19 +168,17 @@ async def get_token( :param scopes: List of scopes to be added to the token. :type scopes: list[str or ~azure.communication.identity.CommunicationTokenScope] - :keyword token_expiry: Custom validity period of the Communication Identity access token within [1, 24] hours range. If not provided, the default value of 24 hours will be used. - :paramtype token_expiry: datetime.timedelta + :keyword token_expiry: Custom validity period of the Communication Identity access token + within [1, 24] hours range. If not provided, the default value of 24 hours will be used. + :paramtype token_expiry: ~datetime.timedelta :return: AccessToken :rtype: ~azure.core.credentials.AccessToken """ api_version = kwargs.pop("api_version", self._api_version) - - expires_after_in_minutes = 0 token_expiry = kwargs.pop('token_expiry', None) - if (token_expiry is not None): - + expires_after_in_minutes = 0 + if token_expiry is not None: expires_after_in_minutes = int(token_expiry.total_seconds() / 60) - body = { 'scopes': scopes, 'expiresInMinutes': expires_after_in_minutes @@ -191,7 +187,7 @@ async def get_token( body = { 'scopes': scopes } - + return await self._identity_service_client.communication_identity.issue_access_token( user.properties['id'], body=body, @@ -241,13 +237,11 @@ async def get_token_for_teams_user( :rtype: ~azure.core.credentials.AccessToken """ api_version = kwargs.pop("api_version", self._api_version) - body = { "token": aad_token, "appId": client_id, "userId": user_object_id } - return await self._identity_service_client.communication_identity.exchange_teams_user_access_token( body=body, api_version=api_version, From 12b3e55145cc5bc86a2be9cd8df0c5b37cd8ce0f Mon Sep 17 00:00:00 2001 From: Aigerim Beishenbekova Date: Tue, 13 Sep 2022 22:10:59 +0200 Subject: [PATCH 07/17] fixed api-version issue --- .../identity/_communication_identity_client.py | 12 ------------ .../aio/_communication_identity_client_async.py | 12 ------------ 2 files changed, 24 deletions(-) diff --git a/sdk/communication/azure-communication-identity/azure/communication/identity/_communication_identity_client.py b/sdk/communication/azure-communication-identity/azure/communication/identity/_communication_identity_client.py index 7abae2f977f2..218084769cba 100644 --- a/sdk/communication/azure-communication-identity/azure/communication/identity/_communication_identity_client.py +++ b/sdk/communication/azure-communication-identity/azure/communication/identity/_communication_identity_client.py @@ -92,9 +92,7 @@ def create_user(self, **kwargs): :return: CommunicationUserIdentifier :rtype: ~azure.communication.identity.CommunicationUserIdentifier """ - api_version = kwargs.pop("api_version", self._api_version) return self._identity_service_client.communication_identity.create( - api_version=api_version, cls=lambda pr, u, e: CommunicationUserIdentifier(u['identity']['id'], raw_id=u['identity']['id']), **kwargs) @@ -116,7 +114,6 @@ def create_user_and_token( :rtype: tuple of (~azure.communication.identity.CommunicationUserIdentifier, ~azure.core.credentials.AccessToken) """ - api_version = kwargs.pop("api_version", self._api_version) token_expiry = kwargs.pop('token_expiry', None) expires_after_in_minutes = 0 @@ -138,7 +135,6 @@ def create_user_and_token( cls=lambda pr, u, e: (CommunicationUserIdentifier(u['identity']['id'], raw_id=u['identity']['id']), AccessToken(u['accessToken']['token'], u['accessToken']['expiresOn'])), body=body, - api_version=api_version, **kwargs) @distributed_trace @@ -155,10 +151,8 @@ def delete_user( :return: None :rtype: None """ - api_version = kwargs.pop("api_version", self._api_version) self._identity_service_client.communication_identity.delete( user.properties['id'], - api_version=api_version, **kwargs) @distributed_trace @@ -181,7 +175,6 @@ def get_token( :return: AccessToken :rtype: ~azure.core.credentials.AccessToken """ - api_version = kwargs.pop("api_version", self._api_version) token_expiry = kwargs.pop('token_expiry', None) expires_after_in_minutes = 0 @@ -200,7 +193,6 @@ def get_token( return self._identity_service_client.communication_identity.issue_access_token( user.properties['id'], body=body, - api_version=api_version, cls=lambda pr, u, e: AccessToken(u['token'], u['expiresOn']), **kwargs) @@ -218,10 +210,8 @@ def revoke_tokens( :return: None :rtype: None """ - api_version = kwargs.pop("api_version", self._api_version) return self._identity_service_client.communication_identity.revoke_access_tokens( user.properties['id'] if user else None, - api_version=api_version, **kwargs) @distributed_trace @@ -246,7 +236,6 @@ def get_token_for_teams_user( :return: AccessToken :rtype: ~azure.core.credentials.AccessToken """ - api_version = kwargs.pop("api_version", self._api_version) body = { "token": aad_token, @@ -256,7 +245,6 @@ def get_token_for_teams_user( return self._identity_service_client.communication_identity.exchange_teams_user_access_token( body=body, - api_version=api_version, cls=lambda pr, u, e: AccessToken(u['token'], u['expiresOn']), **kwargs) \ No newline at end of file diff --git a/sdk/communication/azure-communication-identity/azure/communication/identity/aio/_communication_identity_client_async.py b/sdk/communication/azure-communication-identity/azure/communication/identity/aio/_communication_identity_client_async.py index 1f43c9ee14fe..b6e1aee1c060 100644 --- a/sdk/communication/azure-communication-identity/azure/communication/identity/aio/_communication_identity_client_async.py +++ b/sdk/communication/azure-communication-identity/azure/communication/identity/aio/_communication_identity_client_async.py @@ -89,9 +89,7 @@ async def create_user(self, **kwargs) -> 'CommunicationUserIdentifier': :return: CommunicationUserIdentifier :rtype: ~azure.communication.identity.CommunicationUserIdentifier """ - api_version = kwargs.pop("api_version", self._api_version) return await self._identity_service_client.communication_identity.create( - api_version=api_version, cls=lambda pr, u, e: CommunicationUserIdentifier(u['identity']['id'], raw_id=u['identity']['id']), **kwargs) @@ -112,7 +110,6 @@ async def create_user_and_token( :rtype: tuple of (~azure.communication.identity.CommunicationUserIdentifier, ~azure.core.credentials.AccessToken) """ - api_version = kwargs.pop("api_version", self._api_version) token_expiry = kwargs.pop('token_expiry', None) expires_after_in_minutes = 0 @@ -129,7 +126,6 @@ async def create_user_and_token( return await self._identity_service_client.communication_identity.create( body=body, - api_version=api_version, cls=lambda pr, u, e: (CommunicationUserIdentifier(u['identity']['id'], raw_id=u['identity']['id']), AccessToken(u['accessToken']['token'], u['accessToken']['expiresOn'])), **kwargs) @@ -148,10 +144,8 @@ async def delete_user( :return: None :rtype: None """ - api_version = kwargs.pop("api_version", self._api_version) await self._identity_service_client.communication_identity.delete( user.properties['id'], - api_version=api_version, **kwargs) @distributed_trace_async @@ -174,7 +168,6 @@ async def get_token( :return: AccessToken :rtype: ~azure.core.credentials.AccessToken """ - api_version = kwargs.pop("api_version", self._api_version) token_expiry = kwargs.pop('token_expiry', None) expires_after_in_minutes = 0 if token_expiry is not None: @@ -191,7 +184,6 @@ async def get_token( return await self._identity_service_client.communication_identity.issue_access_token( user.properties['id'], body=body, - api_version=api_version, cls=lambda pr, u, e: AccessToken(u['token'], u['expiresOn']), **kwargs) @@ -208,10 +200,8 @@ async def revoke_tokens( :return: None :rtype: None """ - api_version = kwargs.pop("api_version", self._api_version) return await self._identity_service_client.communication_identity.revoke_access_tokens( user.properties['id'] if user else None, - api_version=api_version, **kwargs) @distributed_trace_async @@ -236,7 +226,6 @@ async def get_token_for_teams_user( :return: AccessToken :rtype: ~azure.core.credentials.AccessToken """ - api_version = kwargs.pop("api_version", self._api_version) body = { "token": aad_token, "appId": client_id, @@ -244,7 +233,6 @@ async def get_token_for_teams_user( } return await self._identity_service_client.communication_identity.exchange_teams_user_access_token( body=body, - api_version=api_version, cls=lambda pr, u, e: AccessToken(u['token'], u['expiresOn']), **kwargs) From 131d27e1c6a5e3ccf1472d194faadb86a5da00ee Mon Sep 17 00:00:00 2001 From: Maxim Rytych Date: Wed, 14 Sep 2022 15:56:53 +0200 Subject: [PATCH 08/17] Rename token expiration parameter based on review --- .../_communication_identity_client.py | 20 +++++++++---------- .../_communication_identity_client_async.py | 20 +++++++++---------- 2 files changed, 20 insertions(+), 20 deletions(-) diff --git a/sdk/communication/azure-communication-identity/azure/communication/identity/_communication_identity_client.py b/sdk/communication/azure-communication-identity/azure/communication/identity/_communication_identity_client.py index 218084769cba..7d8380de6526 100644 --- a/sdk/communication/azure-communication-identity/azure/communication/identity/_communication_identity_client.py +++ b/sdk/communication/azure-communication-identity/azure/communication/identity/_communication_identity_client.py @@ -107,20 +107,20 @@ def create_user_and_token( :param scopes: List of scopes to be added to the token. :type scopes: list[str or ~azure.communication.identity.CommunicationTokenScope] - :keyword token_expiry: Custom validity period of the Communication Identity access token + :keyword token_expires_in: Custom validity period of the Communication Identity access token within [1, 24] hours range. If not provided, the default value of 24 hours will be used. - :paramtype token_expiry: ~datetime.timedelta + :paramtype token_expires_in: ~datetime.timedelta :return: A tuple of a CommunicationUserIdentifier and a AccessToken. :rtype: tuple of (~azure.communication.identity.CommunicationUserIdentifier, ~azure.core.credentials.AccessToken) """ - token_expiry = kwargs.pop('token_expiry', None) + token_expires_in = kwargs.pop('token_expires_in', None) expires_after_in_minutes = 0 - if token_expiry is not None: + if token_expires_in is not None: - expires_after_in_minutes = int(token_expiry.total_seconds() / 60) + expires_after_in_minutes = int(token_expires_in.total_seconds() / 60) body = { 'createTokenWithScopes': scopes, @@ -169,18 +169,18 @@ def get_token( :type user: ~azure.communication.identity.CommunicationUserIdentifier :param scopes: List of scopes to be added to the token. :type scopes: list[str or ~azure.communication.identity.CommunicationTokenScope] - :keyword token_expiry: Custom validity period of the Communication Identity access token + :keyword token_expires_in: Custom validity period of the Communication Identity access token within [1, 24] hours range. If not provided, the default value of 24 hours will be used. - :paramtype token_expiry: ~datetime.timedelta + :paramtype token_expires_in: ~datetime.timedelta :return: AccessToken :rtype: ~azure.core.credentials.AccessToken """ - token_expiry = kwargs.pop('token_expiry', None) + token_expires_in = kwargs.pop('token_expires_in', None) expires_after_in_minutes = 0 - if token_expiry is not None: - expires_after_in_minutes = int(token_expiry.total_seconds() / 60) + if token_expires_in is not None: + expires_after_in_minutes = int(token_expires_in.total_seconds() / 60) body = { 'scopes': scopes, 'expiresInMinutes': expires_after_in_minutes diff --git a/sdk/communication/azure-communication-identity/azure/communication/identity/aio/_communication_identity_client_async.py b/sdk/communication/azure-communication-identity/azure/communication/identity/aio/_communication_identity_client_async.py index b6e1aee1c060..ac9036423979 100644 --- a/sdk/communication/azure-communication-identity/azure/communication/identity/aio/_communication_identity_client_async.py +++ b/sdk/communication/azure-communication-identity/azure/communication/identity/aio/_communication_identity_client_async.py @@ -103,18 +103,18 @@ async def create_user_and_token( :param scopes: List of scopes to be added to the token. :type scopes: list[str or ~azure.communication.identity.CommunicationTokenScope] - :keyword token_expiry: Custom validity period of the Communication Identity access token + :keyword token_expires_in: Custom validity period of the Communication Identity access token within [1, 24] hours range. If not provided, the default value of 24 hours will be used. - :paramtype token_expiry: ~datetime.timedelta + :paramtype token_expires_in: ~datetime.timedelta :return: A tuple of a CommunicationUserIdentifier and a AccessToken. :rtype: tuple of (~azure.communication.identity.CommunicationUserIdentifier, ~azure.core.credentials.AccessToken) """ - token_expiry = kwargs.pop('token_expiry', None) + token_expires_in = kwargs.pop('token_expires_in', None) expires_after_in_minutes = 0 - if token_expiry is not None: - expires_after_in_minutes = int(token_expiry.total_seconds() / 60) + if token_expires_in is not None: + expires_after_in_minutes = int(token_expires_in.total_seconds() / 60) body = { 'createTokenWithScopes': scopes, 'expiresInMinutes': expires_after_in_minutes @@ -162,16 +162,16 @@ async def get_token( :param scopes: List of scopes to be added to the token. :type scopes: list[str or ~azure.communication.identity.CommunicationTokenScope] - :keyword token_expiry: Custom validity period of the Communication Identity access token + :keyword token_expires_in: Custom validity period of the Communication Identity access token within [1, 24] hours range. If not provided, the default value of 24 hours will be used. - :paramtype token_expiry: ~datetime.timedelta + :paramtype token_expires_in: ~datetime.timedelta :return: AccessToken :rtype: ~azure.core.credentials.AccessToken """ - token_expiry = kwargs.pop('token_expiry', None) + token_expires_in = kwargs.pop('token_expires_in', None) expires_after_in_minutes = 0 - if token_expiry is not None: - expires_after_in_minutes = int(token_expiry.total_seconds() / 60) + if token_expires_in is not None: + expires_after_in_minutes = int(token_expires_in.total_seconds() / 60) body = { 'scopes': scopes, 'expiresInMinutes': expires_after_in_minutes From 462ecba6eaead8785d2c13bd182cdbfe9f4eaf13 Mon Sep 17 00:00:00 2001 From: Maxim Rytych Date: Fri, 16 Sep 2022 20:04:26 +0200 Subject: [PATCH 09/17] Refactor clients, tests, update samples, readme and changelog --- .../azure-communication-identity/CHANGELOG.md | 6 +-- .../azure-communication-identity/README.md | 8 ++-- .../_communication_identity_client.py | 32 ++----------- .../communication/identity/_shared/utils.py | 32 +++++++++++++ .../azure/communication/identity/_version.py | 2 +- .../_communication_identity_client_async.py | 27 ++--------- .../samples/identity_samples.py | 8 ++-- .../samples/identity_samples_async.py | 8 ++-- .../tests/_shared/utils.py | 20 +++++++- ...tion_identity_client.test_create_user.yaml | 12 ++--- ...ity_client.test_create_user_and_token.yaml | 14 +++--- ...nd_token_with_custom_maximum_validity.yaml | 16 +++---- ...nd_token_with_custom_minimum_validity.yaml | 14 +++--- ..._custom_validity_over_maximum_allowed.yaml | 12 ++--- ...custom_validity_under_minimum_allowed.yaml | 12 ++--- ..._create_user_and_token_with_no_scopes.yaml | 25 +++++----- ...est_create_user_from_managed_identity.yaml | 10 ++-- ...tion_identity_client.test_delete_user.yaml | 24 +++++----- ...est_delete_user_from_managed_identity.yaml | 20 ++++---- ...cation_identity_client.test_get_token.yaml | 26 +++++------ ..._for_teams_user_from_managed_identity.yaml | 22 ++++----- ...ken_for_teams_user_with_expired_token.yaml | 22 ++++----- ...h_invalid_client_id_0_empty_client_id.yaml | 22 ++++----- ...invalid_client_id_1_invalid_client_id.yaml | 22 ++++----- ...user_with_invalid_token_0_empty_token.yaml | 12 ++--- ...er_with_invalid_token_1_invalid_token.yaml | 12 ++--- ...user_object_id_0_empty_user_object_id.yaml | 22 ++++----- ...er_object_id_1_invalid_user_object_id.yaml | 22 ++++----- ...oken_for_teams_user_with_valid_params.yaml | 24 +++++----- ...n_for_teams_user_with_wrong_client_id.yaml | 22 ++++----- ..._teams_user_with_wrong_user_object_id.yaml | 22 ++++----- ....test_get_token_from_managed_identity.yaml | 24 +++++----- ...et_token_with_custom_maximum_validity.yaml | 24 +++++----- ...et_token_with_custom_minimum_validity.yaml | 26 +++++------ ..._custom_validity_over_maximum_allowed.yaml | 24 +++++----- ...custom_validity_under_minimum_allowed.yaml | 24 +++++----- ..._client.test_get_token_with_no_scopes.yaml | 24 +++++----- ...on_identity_client.test_revoke_tokens.yaml | 40 ++++++++-------- ...t_revoke_tokens_from_managed_identity.yaml | 32 ++++++------- ...dentity_client_async.test_create_user.yaml | 14 +++--- ...ient_async.test_create_user_and_token.yaml | 16 +++---- ...nd_token_with_custom_maximum_validity.yaml | 18 ++++---- ...nd_token_with_custom_minimum_validity.yaml | 16 +++---- ..._custom_validity_over_maximum_allowed.yaml | 14 +++--- ...custom_validity_under_minimum_allowed.yaml | 14 +++--- ..._create_user_and_token_with_no_scopes.yaml | 25 +++++----- ...est_create_user_from_managed_identity.yaml | 12 ++--- ...dentity_client_async.test_delete_user.yaml | 28 +++++------ ...est_delete_user_from_managed_identity.yaml | 24 +++++----- ..._identity_client_async.test_get_token.yaml | 28 +++++------ ..._for_teams_user_from_managed_identity.yaml | 24 +++++----- ...n_for_teams_user_with_empty_client_id.yaml | 24 +++++----- ...token_for_teams_user_with_empty_token.yaml | 14 +++--- ..._teams_user_with_empty_user_object_id.yaml | 24 +++++----- ...ken_for_teams_user_with_expired_token.yaml | 24 +++++----- ...for_teams_user_with_invalid_client_id.yaml | 24 +++++----- ...ken_for_teams_user_with_invalid_token.yaml | 14 +++--- ...eams_user_with_invalid_user_object_id.yaml | 24 +++++----- ...oken_for_teams_user_with_valid_params.yaml | 26 +++++------ ...n_for_teams_user_with_wrong_client_id.yaml | 24 +++++----- ..._teams_user_with_wrong_user_object_id.yaml | 22 ++++----- ....test_get_token_from_managed_identity.yaml | 26 +++++------ ...et_token_with_custom_maximum_validity.yaml | 30 ++++++------ ...et_token_with_custom_minimum_validity.yaml | 30 ++++++------ ..._custom_validity_over_maximum_allowed.yaml | 28 +++++------ ...custom_validity_under_minimum_allowed.yaml | 28 +++++------ ...t_async.test_get_token_with_no_scopes.yaml | 26 +++++------ ...ntity_client_async.test_revoke_tokens.yaml | 44 +++++++++--------- ...t_revoke_tokens_from_managed_identity.yaml | 38 +++++++-------- .../test_communication_identity_client.py | 46 +++++++++++-------- ...est_communication_identity_client_async.py | 46 +++++++++++-------- ...y_client.test_get_relay_configuration.yaml | 6 +-- ...lay_configuration_with_route_type_any.yaml | 6 +-- ...configuration_with_route_type_nearest.yaml | 6 +-- ...nt_async.test_get_relay_configuration.yaml | 8 ++-- ...lay_configuration_with_route_type_any.yaml | 8 ++-- ...configuration_with_route_type_nearest.yaml | 8 ++-- ..._async_e2e.test_add_participant_async.yaml | 36 +++++++-------- ...t_add_participants_incorrectMri_async.yaml | 36 +++++++-------- ..._add_participants_wrongRoleName_async.yaml | 36 +++++++-------- ...test_create_room_all_attributes_async.yaml | 36 +++++++-------- ...t_create_room_correct_timerange_async.yaml | 36 +++++++-------- ...e.test_create_room_incorrectMri_async.yaml | 36 +++++++-------- ....test_create_room_no_attributes_async.yaml | 36 +++++++-------- ...t_create_room_only_participants_async.yaml | 36 +++++++-------- ...test_create_room_only_validFrom_async.yaml | 36 +++++++-------- ...est_create_room_only_validUntil_async.yaml | 36 +++++++-------- ..._async_e2e.test_create_room_open_room.yaml | 36 +++++++-------- ...t_create_room_validFrom_7Months_async.yaml | 36 +++++++-------- ..._create_room_validUntil_7Months_async.yaml | 36 +++++++-------- ...nc_e2e.test_delete_invalid_room_async.yaml | 36 +++++++-------- ...async_e2e.test_get_invalid_room_async.yaml | 36 +++++++-------- ..._client_async_e2e.test_get_room_async.yaml | 36 +++++++-------- ...ync_e2e.test_remove_participant_async.yaml | 36 +++++++-------- ...ync_e2e.test_update_participant_async.yaml | 36 +++++++-------- ...t_update_room_ValidFrom_7Months_async.yaml | 36 +++++++-------- ..._update_room_ValidUntil_7Months_async.yaml | 36 +++++++-------- ...pdate_room_change_open_room_in_future.yaml | 36 +++++++-------- ..._update_room_change_open_room_in_past.yaml | 36 +++++++-------- ...t_update_room_correct_timerange_async.yaml | 36 +++++++-------- ...e.test_update_room_deleted_room_async.yaml | 36 +++++++-------- ...st_update_room_incorrect_roomId_async.yaml | 36 +++++++-------- ...update_room_incorrect_timerange_async.yaml | 36 +++++++-------- ...test_update_room_only_ValidFrom_async.yaml | 36 +++++++-------- ...est_update_room_only_ValidUntil_async.yaml | 36 +++++++-------- ...ooms_client_e2e.test_add_participants.yaml | 36 +++++++-------- ...2e.test_add_participants_incorrectMri.yaml | 36 +++++++-------- ...t_e2e.test_create_room_all_attributes.yaml | 36 +++++++-------- ...2e.test_create_room_correct_timerange.yaml | 36 +++++++-------- ...ent_e2e.test_create_room_incorrectMri.yaml | 36 +++++++-------- ...nt_e2e.test_create_room_no_attributes.yaml | 36 +++++++-------- ...2e.test_create_room_only_participants.yaml | 36 +++++++-------- ...t_e2e.test_create_room_only_validFrom.yaml | 36 +++++++-------- ..._e2e.test_create_room_only_validUntil.yaml | 36 +++++++-------- ...client_e2e.test_create_room_open_room.yaml | 36 +++++++-------- ...2e.test_create_room_validFrom_7Months.yaml | 36 +++++++-------- ...e.test_create_room_validUntil_7Months.yaml | 36 +++++++-------- ...s_client_e2e.test_delete_invalid_room.yaml | 36 +++++++-------- ...ooms_client_e2e.test_get_invalid_room.yaml | 36 +++++++-------- .../test_rooms_client_e2e.test_get_room.yaml | 36 +++++++-------- ...s_client_e2e.test_remove_participants.yaml | 36 +++++++-------- ...s_client_e2e.test_update_participants.yaml | 36 +++++++-------- ...2e.test_update_room_ValidFrom_7Months.yaml | 36 +++++++-------- ...e.test_update_room_ValidUntil_7Months.yaml | 36 +++++++-------- ...pdate_room_change_open_room_in_future.yaml | 36 +++++++-------- ..._update_room_change_open_room_in_past.yaml | 36 +++++++-------- ...2e.test_update_room_correct_timerange.yaml | 36 +++++++-------- ...ent_e2e.test_update_room_deleted_room.yaml | 36 +++++++-------- ...e2e.test_update_room_incorrect_roomId.yaml | 36 +++++++-------- ....test_update_room_incorrect_timerange.yaml | 36 +++++++-------- ...t_e2e.test_update_room_only_ValidFrom.yaml | 36 +++++++-------- ..._e2e.test_update_room_only_ValidUntil.yaml | 36 +++++++-------- ...nt_e2e.test_update_room_wrongRoleName.yaml | 36 +++++++-------- 133 files changed, 1821 insertions(+), 1802 deletions(-) diff --git a/sdk/communication/azure-communication-identity/CHANGELOG.md b/sdk/communication/azure-communication-identity/CHANGELOG.md index 9305c8907aac..fe2d0979382c 100644 --- a/sdk/communication/azure-communication-identity/CHANGELOG.md +++ b/sdk/communication/azure-communication-identity/CHANGELOG.md @@ -1,11 +1,11 @@ # Release History -## 1.3.0 +## 1.3.0 (Unreleased) ### Features Added -- Added support to customize the Communication Identity access token’s validity period: - - `create_user_and_token` and `get_token` methods in both sync and async client updated with `token_expires_after` parameter that provides the ability to create a Communication Identity access token with custom expiration. +- Added support to customize the Communication Identity access token's validity period: + - `create_user_and_token` and `get_token` methods in both sync and async clients can now accept keyword argument `token_expires_in` that provides the ability to create a Communication Identity access token with custom expiration. - Added a new API version `ApiVersion.V2022_10_01` that is now the default API version. ## 1.2.1 (Unreleased) diff --git a/sdk/communication/azure-communication-identity/README.md b/sdk/communication/azure-communication-identity/README.md index a69c544e36c2..c360c78bf647 100644 --- a/sdk/communication/azure-communication-identity/README.md +++ b/sdk/communication/azure-communication-identity/README.md @@ -82,8 +82,8 @@ print("Token issued with value: " + tokenresponse.token) You can specify expiration time for the token. The token can be configured to expire in as little as one hour or as long as 24 hours. The default expiration time is 24 hours. ```python -token_expires_after = timedelta(minutes=60) -tokenresponse = identity_client.get_token(user, scopes=[CommunicationTokenScope.CHAT], token_expires_after=token_expires_after) +token_expires_in = timedelta(minutes=60) +tokenresponse = identity_client.get_token(user, scopes=[CommunicationTokenScope.CHAT], token_expires_in=token_expires_in) print("Token issued with value: " + tokenresponse.token) ``` @@ -100,8 +100,8 @@ print("Token issued with value: " + tokenresponse.token) You can specify expiration time for the token. The token can be configured to expire in as little as one hour or as long as 24 hours. The default expiration time is 24 hours. ```python -token_expires_after = timedelta(minutes=60) -user, tokenresponse = identity_client.create_user_and_token(scopes=[CommunicationTokenScope.CHAT], token_expires_after=token_expires_after) +token_expires_in = timedelta(minutes=60) +user, tokenresponse = identity_client.create_user_and_token(scopes=[CommunicationTokenScope.CHAT], token_expires_in=token_expires_in) print("User id:" + user.properties['id']) print("Token issued with value: " + tokenresponse.token) ``` diff --git a/sdk/communication/azure-communication-identity/azure/communication/identity/_communication_identity_client.py b/sdk/communication/azure-communication-identity/azure/communication/identity/_communication_identity_client.py index 7d8380de6526..a383ab24916e 100644 --- a/sdk/communication/azure-communication-identity/azure/communication/identity/_communication_identity_client.py +++ b/sdk/communication/azure-communication-identity/azure/communication/identity/_communication_identity_client.py @@ -11,7 +11,7 @@ from ._generated._communication_identity_client\ import CommunicationIdentityClient as CommunicationIdentityClientGen -from ._shared.utils import parse_connection_str, get_authentication_policy +from ._shared.utils import parse_connection_str, get_authentication_policy, create_body from ._shared.models import CommunicationUserIdentifier from ._version import SDK_MONIKER from ._api_versions import DEFAULT_VERSION @@ -115,21 +115,7 @@ def create_user_and_token( tuple of (~azure.communication.identity.CommunicationUserIdentifier, ~azure.core.credentials.AccessToken) """ token_expires_in = kwargs.pop('token_expires_in', None) - - expires_after_in_minutes = 0 - - if token_expires_in is not None: - - expires_after_in_minutes = int(token_expires_in.total_seconds() / 60) - - body = { - 'createTokenWithScopes': scopes, - 'expiresInMinutes': expires_after_in_minutes - } - else: - body = { - 'createTokenWithScopes': scopes - } + body = create_body(scopes, token_expires_in, scopes_key_name='createTokenWithScopes') return self._identity_service_client.communication_identity.create( cls=lambda pr, u, e: (CommunicationUserIdentifier(u['identity']['id'], raw_id=u['identity']['id']), @@ -176,19 +162,7 @@ def get_token( :rtype: ~azure.core.credentials.AccessToken """ token_expires_in = kwargs.pop('token_expires_in', None) - - expires_after_in_minutes = 0 - - if token_expires_in is not None: - expires_after_in_minutes = int(token_expires_in.total_seconds() / 60) - body = { - 'scopes': scopes, - 'expiresInMinutes': expires_after_in_minutes - } - else: - body = { - 'scopes': scopes - } + body = create_body(scopes, token_expires_in, scopes_key_name='scopes') return self._identity_service_client.communication_identity.issue_access_token( user.properties['id'], diff --git a/sdk/communication/azure-communication-identity/azure/communication/identity/_shared/utils.py b/sdk/communication/azure-communication-identity/azure/communication/identity/_shared/utils.py index 0b3556bbaa44..6fa93a1da4bd 100644 --- a/sdk/communication/azure-communication-identity/azure/communication/identity/_shared/utils.py +++ b/sdk/communication/azure-communication-identity/azure/communication/identity/_shared/utils.py @@ -131,3 +131,35 @@ def get_authentication_policy( raise TypeError("Unsupported credential: {}. Use an access token string to use HMACCredentialsPolicy" "or a token credential from azure.identity".format(type(credential))) + +def create_body( + scopes, # type: List[Union[str, CommunicationTokenScope]] + token_expires_in, # type: datetime.timedelta + **kwargs, +): + # type: (...) -> dict[str, Any] + """ + Returns body to pass to request for user and token creation or token creation. + : param scopes: List of scopes to be added to the token. + : type scopes: list[str or ~azure.communication.identity.CommunicationTokenScope] + : param token_expires_in: Custom validity period of the Communication Identity access token + within [1, 24] hours range. If not provided, the default value of 24 hours will be used. + : type token_expires_in: ~datetime.timedelta + : keyword scopes_key_name: Name for the key for scopes to pass in the request body. + : paramtype keyword scopes_key_name: str + : return: Body to pass to request for user and token creation or token creation. + : rtype: dict[str, Any] + """ + scopes_key_name = kwargs.pop('scopes_key_name', None) + expires_after_in_minutes = 0 + if token_expires_in is not None: + expires_after_in_minutes = int(token_expires_in.total_seconds() / 60) + body = { + scopes_key_name: scopes, + 'expiresInMinutes': expires_after_in_minutes + } + else: + body = { + scopes_key_name: scopes + } + return body diff --git a/sdk/communication/azure-communication-identity/azure/communication/identity/_version.py b/sdk/communication/azure-communication-identity/azure/communication/identity/_version.py index 24eb48941558..094b7a8e8856 100644 --- a/sdk/communication/azure-communication-identity/azure/communication/identity/_version.py +++ b/sdk/communication/azure-communication-identity/azure/communication/identity/_version.py @@ -4,6 +4,6 @@ # license information. # -------------------------------------------------------------------------- -VERSION = "1.2.1" +VERSION = "1.3.0" SDK_MONIKER = "communication-identity/{}".format(VERSION) # type: str diff --git a/sdk/communication/azure-communication-identity/azure/communication/identity/aio/_communication_identity_client_async.py b/sdk/communication/azure-communication-identity/azure/communication/identity/aio/_communication_identity_client_async.py index ac9036423979..1724ad96fdf5 100644 --- a/sdk/communication/azure-communication-identity/azure/communication/identity/aio/_communication_identity_client_async.py +++ b/sdk/communication/azure-communication-identity/azure/communication/identity/aio/_communication_identity_client_async.py @@ -10,7 +10,7 @@ from .._generated.aio._communication_identity_client\ import CommunicationIdentityClient as CommunicationIdentityClientGen -from .._shared.utils import parse_connection_str, get_authentication_policy +from .._shared.utils import parse_connection_str, get_authentication_policy, create_body from .._shared.models import CommunicationUserIdentifier from .._version import SDK_MONIKER from .._api_versions import DEFAULT_VERSION @@ -111,18 +111,7 @@ async def create_user_and_token( tuple of (~azure.communication.identity.CommunicationUserIdentifier, ~azure.core.credentials.AccessToken) """ token_expires_in = kwargs.pop('token_expires_in', None) - - expires_after_in_minutes = 0 - if token_expires_in is not None: - expires_after_in_minutes = int(token_expires_in.total_seconds() / 60) - body = { - 'createTokenWithScopes': scopes, - 'expiresInMinutes': expires_after_in_minutes - } - else: - body = { - 'createTokenWithScopes': scopes - } + body = create_body(scopes, token_expires_in, scopes_key_name='createTokenWithScopes') return await self._identity_service_client.communication_identity.create( body=body, @@ -169,17 +158,7 @@ async def get_token( :rtype: ~azure.core.credentials.AccessToken """ token_expires_in = kwargs.pop('token_expires_in', None) - expires_after_in_minutes = 0 - if token_expires_in is not None: - expires_after_in_minutes = int(token_expires_in.total_seconds() / 60) - body = { - 'scopes': scopes, - 'expiresInMinutes': expires_after_in_minutes - } - else: - body = { - 'scopes': scopes - } + body = create_body(scopes, token_expires_in, scopes_key_name='scopes') return await self._identity_service_client.communication_identity.issue_access_token( user.properties['id'], diff --git a/sdk/communication/azure-communication-identity/samples/identity_samples.py b/sdk/communication/azure-communication-identity/samples/identity_samples.py index f1cfeaa08f9f..0488f903787d 100644 --- a/sdk/communication/azure-communication-identity/samples/identity_samples.py +++ b/sdk/communication/azure-communication-identity/samples/identity_samples.py @@ -72,8 +72,8 @@ def get_token_with_custom_expiration(self): identity_client = CommunicationIdentityClient.from_connection_string(self.connection_string) user = identity_client.create_user() print("Getting token for: " + user.properties.get('id')) - token_expires_after = timedelta(minutes=60) - tokenresponse = identity_client.get_token(user, scopes=[CommunicationTokenScope.CHAT], token_expires_after=token_expires_after) + token_expires_in = timedelta(minutes=60) + tokenresponse = identity_client.get_token(user, scopes=[CommunicationTokenScope.CHAT], token_expires_in=token_expires_in) print("Token issued with value: " + tokenresponse.token) def revoke_tokens(self): @@ -135,8 +135,8 @@ def create_user_and_token_with_custom_expiration(self): else: identity_client = CommunicationIdentityClient.from_connection_string(self.connection_string) print("Creating new user with token") - token_expires_after = timedelta(minutes=60) - user, tokenresponse = identity_client.create_user_and_token(scopes=[CommunicationTokenScope.CHAT], token_expires_after=token_expires_after) + token_expires_in = timedelta(minutes=60) + user, tokenresponse = identity_client.create_user_and_token(scopes=[CommunicationTokenScope.CHAT], token_expires_in=token_expires_in) print("User created with id:" + user.properties.get('id')) print("Token issued with value: " + tokenresponse.token) diff --git a/sdk/communication/azure-communication-identity/samples/identity_samples_async.py b/sdk/communication/azure-communication-identity/samples/identity_samples_async.py index c78a6af77532..74cf5b7946e9 100644 --- a/sdk/communication/azure-communication-identity/samples/identity_samples_async.py +++ b/sdk/communication/azure-communication-identity/samples/identity_samples_async.py @@ -75,8 +75,8 @@ async def get_token_with_custom_expiration(self): async with identity_client: user = await identity_client.create_user() print("Issuing token for: " + user.properties.get('id')) - token_expires_after = timedelta(minutes=60) - tokenresponse = await identity_client.get_token(user, scopes=[CommunicationTokenScope.CHAT], token_expires_after=token_expires_after) + token_expires_in = timedelta(minutes=60) + tokenresponse = await identity_client.get_token(user, scopes=[CommunicationTokenScope.CHAT], token_expires_in=token_expires_in) print("Token issued with value: " + tokenresponse.token) async def revoke_tokens(self): @@ -138,8 +138,8 @@ async def create_user_and_token_with_custom_expiration(self): async with identity_client: print("Creating new user with token") - token_expires_after = timedelta(minutes=60) - user, tokenresponse = await identity_client.create_user_and_token(scopes=[CommunicationTokenScope.CHAT], token_expires_after=token_expires_after) + token_expires_in = timedelta(minutes=60) + user, tokenresponse = await identity_client.create_user_and_token(scopes=[CommunicationTokenScope.CHAT], token_expires_in=token_expires_in) print("User created with id:" + user.properties.get('id')) print("Token issued with value: " + tokenresponse.token) diff --git a/sdk/communication/azure-communication-identity/tests/_shared/utils.py b/sdk/communication/azure-communication-identity/tests/_shared/utils.py index 33ef09fca4e1..ba706eaa385e 100644 --- a/sdk/communication/azure-communication-identity/tests/_shared/utils.py +++ b/sdk/communication/azure-communication-identity/tests/_shared/utils.py @@ -4,12 +4,16 @@ # license information. # ------------------------------------------------------------------------- import os +from datetime import datetime, timedelta, timezone +from dateutil import parser from typing import ( # pylint: disable=unused-import cast, Tuple, ) from azure.core.pipeline.policies import HttpLoggingPolicy, HeadersPolicy +TOKEN_EXPIRATION_ALLOWED_DEVIATION = 0.05 + def create_token_credential(): # type: () -> FakeTokenCredential or DefaultAzureCredential from devtools_testutils import is_live @@ -71,4 +75,18 @@ def parse_connection_str(conn_str): else: host = str(endpoint) - return host, str(shared_access_key) \ No newline at end of file + return host, str(shared_access_key) + +def token_expiration_within_allowed_deviation( + expected_token_expiration, + token_expires_in, + allowed_deviation +): + # type: (timedelta, datetime, float) -> bool + utc_now = datetime.now(timezone.utc) + token_expiration = parser.parse(token_expires_in) + token_expiration_in_seconds = (token_expiration - utc_now).total_seconds() + expected_seconds = expected_token_expiration.total_seconds(); + time_difference = abs(expected_seconds - token_expiration_in_seconds) + allowed_time_difference = expected_seconds * allowed_deviation + return time_difference < allowed_time_difference \ No newline at end of file diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user.yaml index 21d68d3c3181..5de2f135f93b 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user.yaml @@ -13,13 +13,13 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.2.1 Python/3.7.9 (Windows-10-10.0.22621-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.7.9 (Windows-10-10.0.22621-SP0) x-ms-date: - - Thu, 25 Aug 2022 20:03:33 GMT + - Fri, 16 Sep 2022 17:41:07 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity": {"id": "sanitized"}}' @@ -32,9 +32,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 25 Aug 2022 20:03:34 GMT + - Fri, 16 Sep 2022 17:41:07 GMT ms-cv: - - 98o+DGCkZEu8vr74kAQWAg.0 + - PqMXUZJZW0uAbex5kOxHvQ.0 request-context: - appId= strict-transport-security: @@ -42,7 +42,7 @@ interactions: x-cache: - CONFIG_NOCACHE x-processing-time: - - 82ms + - 37ms status: code: 201 message: Created diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user_and_token.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user_and_token.yaml index a19710a8773b..c4f48391a0a4 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user_and_token.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user_and_token.yaml @@ -13,17 +13,17 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.2.1 Python/3.7.9 (Windows-10-10.0.22621-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.7.9 (Windows-10-10.0.22621-SP0) x-ms-date: - - Thu, 25 Aug 2022 20:03:34 GMT + - Fri, 16 Sep 2022 17:41:08 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity": {"id": "sanitized"}, "accessToken": {"token": "sanitized", - "expiresOn": "2022-08-26T20:03:35.4402106+00:00"}}' + "expiresOn": "2022-09-17T17:41:08.9068132+00:00"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, @@ -33,9 +33,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 25 Aug 2022 20:03:35 GMT + - Fri, 16 Sep 2022 17:41:08 GMT ms-cv: - - AcL7LEOynEqv5cgY/tlPRQ.0 + - WlDODyh9DECa/8Twyuo27A.0 request-context: - appId= strict-transport-security: @@ -43,7 +43,7 @@ interactions: x-cache: - CONFIG_NOCACHE x-processing-time: - - 44ms + - 52ms status: code: 201 message: Created diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user_and_token_with_custom_maximum_validity.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user_and_token_with_custom_maximum_validity.yaml index f8a3f42e8e56..2a73483de43d 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user_and_token_with_custom_maximum_validity.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user_and_token_with_custom_maximum_validity.yaml @@ -13,29 +13,29 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.2.1 Python/3.7.9 (Windows-10-10.0.22621-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.7.9 (Windows-10-10.0.22621-SP0) x-ms-date: - - Thu, 25 Aug 2022 20:03:35 GMT + - Fri, 16 Sep 2022 17:41:09 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity": {"id": "sanitized"}, "accessToken": {"token": "sanitized", - "expiresOn": "2022-08-26T20:03:36.2645529+00:00"}}' + "expiresOn": "2022-09-17T17:41:09.951635+00:00"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, 2021-11-01, 2022-06-01, 2022-10-01 content-length: - - '920' + - '919' content-type: - application/json; charset=utf-8 date: - - Thu, 25 Aug 2022 20:03:36 GMT + - Fri, 16 Sep 2022 17:41:09 GMT ms-cv: - - ULgneEOc2kmodWZkLcfkRg.0 + - 1bkpll6QykG78DeRcTLqQA.0 request-context: - appId= strict-transport-security: @@ -43,7 +43,7 @@ interactions: x-cache: - CONFIG_NOCACHE x-processing-time: - - 47ms + - 44ms status: code: 201 message: Created diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user_and_token_with_custom_minimum_validity.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user_and_token_with_custom_minimum_validity.yaml index c24d76110b92..4358f186926d 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user_and_token_with_custom_minimum_validity.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user_and_token_with_custom_minimum_validity.yaml @@ -13,17 +13,17 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.2.1 Python/3.7.9 (Windows-10-10.0.22621-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.7.9 (Windows-10-10.0.22621-SP0) x-ms-date: - - Thu, 25 Aug 2022 20:03:36 GMT + - Fri, 16 Sep 2022 17:41:10 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity": {"id": "sanitized"}, "accessToken": {"token": "sanitized", - "expiresOn": "2022-08-25T21:03:37.1070684+00:00"}}' + "expiresOn": "2022-09-16T18:41:10.7804963+00:00"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, @@ -33,9 +33,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 25 Aug 2022 20:03:36 GMT + - Fri, 16 Sep 2022 17:41:10 GMT ms-cv: - - 7dt3f5j5Y0G43icNVPcjYA.0 + - hqkCXnnLFk2GY6ckYal+7w.0 request-context: - appId= strict-transport-security: @@ -43,7 +43,7 @@ interactions: x-cache: - CONFIG_NOCACHE x-processing-time: - - 51ms + - 39ms status: code: 201 message: Created diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user_and_token_with_custom_validity_over_maximum_allowed.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user_and_token_with_custom_validity_over_maximum_allowed.yaml index 5749d1e01204..ce353a7f59c5 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user_and_token_with_custom_validity_over_maximum_allowed.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user_and_token_with_custom_validity_over_maximum_allowed.yaml @@ -13,13 +13,13 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.2.1 Python/3.7.9 (Windows-10-10.0.22621-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.7.9 (Windows-10-10.0.22621-SP0) x-ms-date: - - Thu, 25 Aug 2022 20:03:37 GMT + - Fri, 16 Sep 2022 17:41:10 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"error": {"code": "ValidationError", "message": "ExpiresInMinutes @@ -31,9 +31,9 @@ interactions: content-type: - application/json date: - - Thu, 25 Aug 2022 20:03:37 GMT + - Fri, 16 Sep 2022 17:41:11 GMT ms-cv: - - xT8p+vjMoEaK5RCEFEwL9A.0 + - Xj7XsV+a0UGrByZyylxSGg.0 request-context: - appId= strict-transport-security: @@ -43,7 +43,7 @@ interactions: x-cache: - CONFIG_NOCACHE x-processing-time: - - 74ms + - 33ms status: code: 400 message: Bad Request diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user_and_token_with_custom_validity_under_minimum_allowed.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user_and_token_with_custom_validity_under_minimum_allowed.yaml index a875392e7ff8..07c3e64dfcb6 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user_and_token_with_custom_validity_under_minimum_allowed.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user_and_token_with_custom_validity_under_minimum_allowed.yaml @@ -13,13 +13,13 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.2.1 Python/3.7.9 (Windows-10-10.0.22621-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.7.9 (Windows-10-10.0.22621-SP0) x-ms-date: - - Thu, 25 Aug 2022 20:03:38 GMT + - Fri, 16 Sep 2022 17:41:11 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"error": {"code": "ValidationError", "message": "ExpiresInMinutes @@ -31,9 +31,9 @@ interactions: content-type: - application/json date: - - Thu, 25 Aug 2022 20:03:38 GMT + - Fri, 16 Sep 2022 17:41:11 GMT ms-cv: - - dII7qWJpAka/bhKuZXrb+g.0 + - C8iq/0ovlk2/EZo4bgLsuA.0 request-context: - appId= strict-transport-security: @@ -43,7 +43,7 @@ interactions: x-cache: - CONFIG_NOCACHE x-processing-time: - - 27ms + - 29ms status: code: 400 message: Bad Request diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user_and_token_with_no_scopes.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user_and_token_with_no_scopes.yaml index 33ae134fd415..5dfaf1835f8e 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user_and_token_with_no_scopes.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user_and_token_with_no_scopes.yaml @@ -13,38 +13,37 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.2.1 Python/3.7.9 (Windows-10-10.0.22621-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.7.9 (Windows-10-10.0.22621-SP0) x-ms-date: - - Thu, 25 Aug 2022 20:03:38 GMT + - Fri, 16 Sep 2022 17:41:12 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: - string: '{"error": {"code": "ValidationError", "message": "CreateTokenWithScopes - value is missing.", "target": "CreateTokenWithScopes"}}' + string: '{"identity": {"id": "sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, 2021-11-01, 2022-06-01, 2022-10-01 + content-length: + - '101' content-type: - - application/json + - application/json; charset=utf-8 date: - - Thu, 25 Aug 2022 20:03:38 GMT + - Fri, 16 Sep 2022 17:41:12 GMT ms-cv: - - W9wQxhY0rU+YUdQAAIH0Ag.0 + - sjI6SoEEikmVwh24rYjuVw.0 request-context: - appId= strict-transport-security: - max-age=2592000 - transfer-encoding: - - chunked x-cache: - CONFIG_NOCACHE x-processing-time: - - 60ms + - 48ms status: - code: 400 - message: Bad Request + code: 201 + message: Created version: 1 diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user_from_managed_identity.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user_from_managed_identity.yaml index 4ec7a8580de1..723f3bbfd47a 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user_from_managed_identity.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user_from_managed_identity.yaml @@ -13,9 +13,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.2.1 Python/3.7.9 (Windows-10-10.0.22621-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.7.9 (Windows-10-10.0.22621-SP0) method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity": {"id": "sanitized"}}' @@ -28,9 +28,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 25 Aug 2022 20:03:40 GMT + - Fri, 16 Sep 2022 17:41:15 GMT ms-cv: - - OZltyLkse06l+Z2Q+XDG1A.0 + - JYg3zre69Euxthx1SYXgjQ.0 request-context: - appId= strict-transport-security: @@ -38,7 +38,7 @@ interactions: x-cache: - CONFIG_NOCACHE x-processing-time: - - 234ms + - 329ms status: code: 201 message: Created diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_delete_user.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_delete_user.yaml index 8453e9eeee80..9fe529ead294 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_delete_user.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_delete_user.yaml @@ -13,13 +13,13 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.2.1 Python/3.7.9 (Windows-10-10.0.22621-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.7.9 (Windows-10-10.0.22621-SP0) x-ms-date: - - Thu, 25 Aug 2022 20:03:40 GMT + - Fri, 16 Sep 2022 17:41:15 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity": {"id": "sanitized"}}' @@ -32,9 +32,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 25 Aug 2022 20:03:40 GMT + - Fri, 16 Sep 2022 17:41:15 GMT ms-cv: - - bbvUzSvEWUqCK1ARsDZlAw.0 + - sACZWXWWSESUMxpjbLsKQg.0 request-context: - appId= strict-transport-security: @@ -42,7 +42,7 @@ interactions: x-cache: - CONFIG_NOCACHE x-processing-time: - - 52ms + - 35ms status: code: 201 message: Created @@ -58,13 +58,13 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.2.1 Python/3.7.9 (Windows-10-10.0.22621-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.7.9 (Windows-10-10.0.22621-SP0) x-ms-date: - - Thu, 25 Aug 2022 20:03:41 GMT + - Fri, 16 Sep 2022 17:41:16 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-10-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -73,9 +73,9 @@ interactions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, 2021-11-01, 2022-06-01, 2022-10-01 date: - - Thu, 25 Aug 2022 20:03:41 GMT + - Fri, 16 Sep 2022 17:41:15 GMT ms-cv: - - Z5YG5DJSOE2XpYQr3r18jA.0 + - RUCpgtYzZ0a4BATmw4aMog.0 request-context: - appId= strict-transport-security: @@ -83,7 +83,7 @@ interactions: x-cache: - CONFIG_NOCACHE x-processing-time: - - 253ms + - 153ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_delete_user_from_managed_identity.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_delete_user_from_managed_identity.yaml index 3f190070d819..85928d896840 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_delete_user_from_managed_identity.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_delete_user_from_managed_identity.yaml @@ -13,9 +13,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.2.1 Python/3.7.9 (Windows-10-10.0.22621-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.7.9 (Windows-10-10.0.22621-SP0) method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity": {"id": "sanitized"}}' @@ -28,9 +28,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 25 Aug 2022 20:03:43 GMT + - Fri, 16 Sep 2022 17:41:16 GMT ms-cv: - - /7IxkKkSfUyhSTF2njNJuA.0 + - jDc5XtHUF0S2FnvpmWzmAQ.0 request-context: - appId= strict-transport-security: @@ -38,7 +38,7 @@ interactions: x-cache: - CONFIG_NOCACHE x-processing-time: - - 215ms + - 239ms status: code: 201 message: Created @@ -54,9 +54,9 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.2.1 Python/3.7.9 (Windows-10-10.0.22621-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.7.9 (Windows-10-10.0.22621-SP0) method: DELETE - uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-10-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -65,9 +65,9 @@ interactions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, 2021-11-01, 2022-06-01, 2022-10-01 date: - - Thu, 25 Aug 2022 20:03:43 GMT + - Fri, 16 Sep 2022 17:41:17 GMT ms-cv: - - BDy6I0o9+k2T4JLl0JmzzQ.0 + - IAn1mNwwZUWP+OFffgqWWQ.0 request-context: - appId= strict-transport-security: @@ -75,7 +75,7 @@ interactions: x-cache: - CONFIG_NOCACHE x-processing-time: - - 278ms + - 183ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token.yaml index 3c58dd346bb9..4461a7ba3d3a 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token.yaml @@ -13,13 +13,13 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.2.1 Python/3.7.9 (Windows-10-10.0.22621-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.7.9 (Windows-10-10.0.22621-SP0) x-ms-date: - - Thu, 25 Aug 2022 20:03:43 GMT + - Fri, 16 Sep 2022 17:41:17 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity": {"id": "sanitized"}}' @@ -32,9 +32,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 25 Aug 2022 20:03:44 GMT + - Fri, 16 Sep 2022 17:41:18 GMT ms-cv: - - DF6+962+sU6CbW8RJq3F/Q.0 + - arE1mdBSlkiPMphfUy9s0w.0 request-context: - appId= strict-transport-security: @@ -42,7 +42,7 @@ interactions: x-cache: - CONFIG_NOCACHE x-processing-time: - - 54ms + - 37ms status: code: 201 message: Created @@ -60,16 +60,16 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.2.1 Python/3.7.9 (Windows-10-10.0.22621-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.7.9 (Windows-10-10.0.22621-SP0) x-ms-date: - - Thu, 25 Aug 2022 20:03:44 GMT + - Fri, 16 Sep 2022 17:41:18 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2022-10-01 + uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2022-10-01 response: body: - string: '{"token": "sanitized", "expiresOn": "2022-08-26T20:03:44.7157482+00:00"}' + string: '{"token": "sanitized", "expiresOn": "2022-09-17T17:41:19.0514132+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, @@ -79,9 +79,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 25 Aug 2022 20:03:44 GMT + - Fri, 16 Sep 2022 17:41:18 GMT ms-cv: - - +3FNlH/eFE2Ojgfxnubaeg.0 + - gY69OOm0H0CIjG1aEJpCWA.0 request-context: - appId= strict-transport-security: @@ -89,7 +89,7 @@ interactions: x-cache: - CONFIG_NOCACHE x-processing-time: - - 61ms + - 41ms status: code: 200 message: OK diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_for_teams_user_from_managed_identity.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_for_teams_user_from_managed_identity.yaml index b5dd019285cc..a4d8aeb4544c 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_for_teams_user_from_managed_identity.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_for_teams_user_from_managed_identity.yaml @@ -9,8 +9,8 @@ interactions: Connection: - keep-alive Cookie: - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr4XBMT2H7IsUGqovSoplG84t8EmtWoGSrd-rNIAcVLWqzrZ_TnTpjyhPXu0ZkaHb2dZGKGDujXHPokk6tIzmJ8twtWz2jofMeeaKRKtMnchh4TI0mrtLFnQIVk3MSQNSBRV3V-biBZlIBaLZdGfc7HOJ0_gmvbjI9RI-s0wxbp-sgAA; - fpc=An1bUbFp6DBFhCVAojZILM0; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd + - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrfrhoAGzE0IfVkIEiYTDpMufLqO2ajaZPvDhh5khMtK1WtO3HXHyV6Oz-4DZiRAinE22jSh_6CeZAjKv5JOLNAp2xftnKte_7Tbn2bkwvVUbjWLB_MROdOpXZ9J9lBqA5JyfXiqeeAnw1vg-KcOJE3wCp-MFSR12hJI3baXlTWZQgAA; + fpc=Aj-ZCFjl2z5Ag18tpYYUfzE; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd User-Agent: - python-requests/2.28.1 method: GET @@ -29,7 +29,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 25 Aug 2022 20:03:44 GMT + - Fri, 16 Sep 2022 17:41:18 GMT expires: - '-1' p3p: @@ -37,7 +37,7 @@ interactions: pragma: - no-cache set-cookie: - - fpc=An1bUbFp6DBFhCVAojZILM0; expires=Sat, 24-Sep-2022 20:03:45 GMT; path=/; + - fpc=Aj-ZCFjl2z5Ag18tpYYUfzE; expires=Sun, 16-Oct-2022 17:41:19 GMT; path=/; secure; HttpOnly; SameSite=None - x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly - stsservicecookie=estsfd; path=/; secure; samesite=none; httponly @@ -46,7 +46,7 @@ interactions: x-content-type-options: - nosniff x-ms-ests-server: - - 2.1.13481.11 - NEULR2 ProdSlices + - 2.1.13622.7 - NEULR2 ProdSlices x-xss-protection: - '0' status: @@ -66,12 +66,12 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.2.1 Python/3.7.9 (Windows-10-10.0.22621-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.7.9 (Windows-10-10.0.22621-SP0) method: POST - uri: https://sanitized.ppe.communication.azure.net/teamsUser/:exchangeAccessToken?api-version=2022-10-01 + uri: https://sanitized.communication.azure.com/teamsUser/:exchangeAccessToken?api-version=2022-10-01 response: body: - string: '{"token": "sanitized", "expiresOn": "2022-08-25T21:13:13.6721087+00:00"}' + string: '{"token": "sanitized", "expiresOn": "2022-09-16T19:01:16.0083631+00:00"}' headers: api-supported-versions: - 2021-10-31-preview, 2022-06-01, 2022-10-01 @@ -80,9 +80,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 25 Aug 2022 20:03:47 GMT + - Fri, 16 Sep 2022 17:41:20 GMT ms-cv: - - kAJackYNoUC4NwdpMwykVA.0 + - Yi215JZIDUCYy4AdZceEqQ.0 request-context: - appId= strict-transport-security: @@ -90,7 +90,7 @@ interactions: x-cache: - CONFIG_NOCACHE x-processing-time: - - 625ms + - 512ms status: code: 200 message: OK diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_for_teams_user_with_expired_token.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_for_teams_user_with_expired_token.yaml index f922e73a68d9..3fccee274870 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_for_teams_user_with_expired_token.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_for_teams_user_with_expired_token.yaml @@ -9,8 +9,8 @@ interactions: Connection: - keep-alive Cookie: - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrYEBBK5TgIXiTT-yDpXPceGxW2wbdXqHpdmIcAZhLkhNpC_wt-_78HJvFGAO7fONEDMzBDP5_1tgdoC1s5KMi6MCDjfWCQMLrndfZyx-RQ4Pz1X0UhsvnmdA74R63jZg8neQYxv9D20WuySODEYuaGaLMNW1HRzuDcWYdSAyK-rcgAA; - fpc=AoB2MHM75gVHnQbyecmDrmo; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd + - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrTQBRs2S-njti3sxKPWH95K0opltpau6Hqq7wy1Jh0sgGZ0jeB95FpChl8O_T-kC_P0urUN0RYnrRhs1iH0JJ7B-WqGwydlU5RHJLDPdgDGAL1_zspOMoC_k4tevpp31ju_t6CxFQcYPSn8LN0mlVaDokKQETA7LC9l1FJCy3Xb0gAA; + fpc=AvWy6bLB6gRMqudegBTmf74; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd User-Agent: - python-requests/2.28.1 method: GET @@ -29,7 +29,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 25 Aug 2022 20:03:47 GMT + - Fri, 16 Sep 2022 17:41:21 GMT expires: - '-1' p3p: @@ -37,7 +37,7 @@ interactions: pragma: - no-cache set-cookie: - - fpc=AoB2MHM75gVHnQbyecmDrmo; expires=Sat, 24-Sep-2022 20:03:48 GMT; path=/; + - fpc=AvWy6bLB6gRMqudegBTmf74; expires=Sun, 16-Oct-2022 17:41:21 GMT; path=/; secure; HttpOnly; SameSite=None - x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly - stsservicecookie=estsfd; path=/; secure; samesite=none; httponly @@ -46,7 +46,7 @@ interactions: x-content-type-options: - nosniff x-ms-ests-server: - - 2.1.13481.11 - WEULR1 ProdSlices + - 2.1.13622.7 - NEULR2 ProdSlices x-xss-protection: - '0' status: @@ -66,13 +66,13 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.2.1 Python/3.7.9 (Windows-10-10.0.22621-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.7.9 (Windows-10-10.0.22621-SP0) x-ms-date: - - Thu, 25 Aug 2022 20:03:48 GMT + - Fri, 16 Sep 2022 17:41:21 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/teamsUser/:exchangeAccessToken?api-version=2022-10-01 + uri: https://sanitized.communication.azure.com/teamsUser/:exchangeAccessToken?api-version=2022-10-01 response: body: string: '{"error": {"code": "InvalidAccessToken", "message": "Provided access @@ -81,9 +81,9 @@ interactions: content-type: - application/json date: - - Thu, 25 Aug 2022 20:03:48 GMT + - Fri, 16 Sep 2022 17:41:21 GMT ms-cv: - - nI+m6hBmAEGnQa3QzrTvuw.0 + - Z+nGD39bs0aw97xaaoDGrw.0 request-context: - appId= strict-transport-security: @@ -93,7 +93,7 @@ interactions: x-cache: - CONFIG_NOCACHE x-processing-time: - - 50ms + - 33ms status: code: 401 message: Unauthorized diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_for_teams_user_with_invalid_client_id_0_empty_client_id.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_for_teams_user_with_invalid_client_id_0_empty_client_id.yaml index df0770be6d77..fb3226e029bf 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_for_teams_user_with_invalid_client_id_0_empty_client_id.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_for_teams_user_with_invalid_client_id_0_empty_client_id.yaml @@ -9,8 +9,8 @@ interactions: Connection: - keep-alive Cookie: - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrD_5dFQzp0c4OJrPcd4xuZCk5AOuwM4vyxVWWmJyrGBetb3Xh5yorYhjEKEhemkg0OA83arSmMIjwa8ahSpxcDvxI7wgU0GkA0-K718lAZIO74YVH-lEXn4jZ1GhmjluKWApiVB7eIL2lvTqwdjA4j-8YMwSd5rOLW1ZTHDDSLAMgAA; - fpc=AoRgY7T_UrBMoZLTURzgnXM; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd + - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrxRUkwDWHcXcKRWbdRJ0Jh0jZfn8gkWSzn5-CnNl1UcJFlbeQYfiR8ZRHS1KJeDbsqxQ2fgT5jy6CJMSlIA6yXYrNw5Fic9fE_LPz8CUbwsbQo7GD3e_a7YpReX8eNHiYwqkfVPvM5UZTMcU4zxL4kLKCrDQT7D8yCSJE4lYS2SYgAA; + fpc=AnAzjaDOePNEmclkBBgsATA; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd User-Agent: - python-requests/2.28.1 method: GET @@ -29,7 +29,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 25 Aug 2022 20:03:48 GMT + - Fri, 16 Sep 2022 17:41:21 GMT expires: - '-1' p3p: @@ -37,7 +37,7 @@ interactions: pragma: - no-cache set-cookie: - - fpc=AoRgY7T_UrBMoZLTURzgnXM; expires=Sat, 24-Sep-2022 20:03:48 GMT; path=/; + - fpc=AnAzjaDOePNEmclkBBgsATA; expires=Sun, 16-Oct-2022 17:41:22 GMT; path=/; secure; HttpOnly; SameSite=None - x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly - stsservicecookie=estsfd; path=/; secure; samesite=none; httponly @@ -46,7 +46,7 @@ interactions: x-content-type-options: - nosniff x-ms-ests-server: - - 2.1.13481.11 - WEULR1 ProdSlices + - 2.1.13622.7 - NEULR1 ProdSlices x-xss-protection: - '0' status: @@ -66,13 +66,13 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.2.1 Python/3.7.9 (Windows-10-10.0.22621-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.7.9 (Windows-10-10.0.22621-SP0) x-ms-date: - - Thu, 25 Aug 2022 20:03:49 GMT + - Fri, 16 Sep 2022 17:41:22 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/teamsUser/:exchangeAccessToken?api-version=2022-10-01 + uri: https://sanitized.communication.azure.com/teamsUser/:exchangeAccessToken?api-version=2022-10-01 response: body: string: '{"error": {"code": "ValidationError", "message": "AppId: The AppId @@ -81,9 +81,9 @@ interactions: content-type: - application/json date: - - Thu, 25 Aug 2022 20:03:48 GMT + - Fri, 16 Sep 2022 17:41:22 GMT ms-cv: - - 9RclyF3UcEOdz1zlBNBTxw.0 + - pNjdhxmmJ0SIXI43b28xWQ.0 request-context: - appId= strict-transport-security: @@ -93,7 +93,7 @@ interactions: x-cache: - CONFIG_NOCACHE x-processing-time: - - 40ms + - 103ms status: code: 400 message: Bad Request diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_for_teams_user_with_invalid_client_id_1_invalid_client_id.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_for_teams_user_with_invalid_client_id_1_invalid_client_id.yaml index 6a9699189dd5..7c33c9b3b0f4 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_for_teams_user_with_invalid_client_id_1_invalid_client_id.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_for_teams_user_with_invalid_client_id_1_invalid_client_id.yaml @@ -9,8 +9,8 @@ interactions: Connection: - keep-alive Cookie: - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevrs0mIZ3-TgVxh1Ldc6m2jE5KSPadQeki8jIpGfVIePTz1VJ6s4dIn8yQIjeCAlSaHrg4VT10hY-csbEawhaRccJiq3mRxfX3f8XeJu4VVBKtnsgRRTybDP2rKY_YEM3WVmSmfcsNXYVhPV07SE2ZSDrPP4hYhLC-wMDpQuR8CsVAgAA; - fpc=AnyHt_htnVRNgLP791qfzPM; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd + - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr88jj0UbiAD0f_J7ZdxwamOqO6ZlUjXJvDXkLGyGVaYHJSbG82y2rmUUzltM4skWXYk4IB0NhxeQtAmtAxxJWIYcJBRSWgY6RNijtdsS_ajxBwoSKFPAcc_eMLFKwWRoc0WwIm9Hs76zyqSrsX8ghnheKccqFxnBXf-YizBY3esQgAA; + fpc=ApNUZq1I14BArdXXDDKz5zA; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd User-Agent: - python-requests/2.28.1 method: GET @@ -29,7 +29,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 25 Aug 2022 20:03:49 GMT + - Fri, 16 Sep 2022 17:41:22 GMT expires: - '-1' p3p: @@ -37,7 +37,7 @@ interactions: pragma: - no-cache set-cookie: - - fpc=AnyHt_htnVRNgLP791qfzPM; expires=Sat, 24-Sep-2022 20:03:49 GMT; path=/; + - fpc=ApNUZq1I14BArdXXDDKz5zA; expires=Sun, 16-Oct-2022 17:41:23 GMT; path=/; secure; HttpOnly; SameSite=None - x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly - stsservicecookie=estsfd; path=/; secure; samesite=none; httponly @@ -46,7 +46,7 @@ interactions: x-content-type-options: - nosniff x-ms-ests-server: - - 2.1.13481.11 - WEULR1 ProdSlices + - 2.1.13622.7 - NEULR2 ProdSlices x-xss-protection: - '0' status: @@ -66,13 +66,13 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.2.1 Python/3.7.9 (Windows-10-10.0.22621-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.7.9 (Windows-10-10.0.22621-SP0) x-ms-date: - - Thu, 25 Aug 2022 20:03:50 GMT + - Fri, 16 Sep 2022 17:41:23 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/teamsUser/:exchangeAccessToken?api-version=2022-10-01 + uri: https://sanitized.communication.azure.com/teamsUser/:exchangeAccessToken?api-version=2022-10-01 response: body: string: '{"error": {"code": "ValidationError", "message": "Provided AppId has @@ -83,9 +83,9 @@ interactions: content-type: - application/json date: - - Thu, 25 Aug 2022 20:03:50 GMT + - Fri, 16 Sep 2022 17:41:22 GMT ms-cv: - - RBiL96FPE0i56oNPuyl9Qg.0 + - Xi5wKH7t/EWj1OrYObFrIA.0 request-context: - appId= strict-transport-security: @@ -95,7 +95,7 @@ interactions: x-cache: - CONFIG_NOCACHE x-processing-time: - - 43ms + - 36ms status: code: 400 message: Bad Request diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_for_teams_user_with_invalid_token_0_empty_token.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_for_teams_user_with_invalid_token_0_empty_token.yaml index e921b564865f..1a6174a49ccc 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_for_teams_user_with_invalid_token_0_empty_token.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_for_teams_user_with_invalid_token_0_empty_token.yaml @@ -13,13 +13,13 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.2.1 Python/3.7.9 (Windows-10-10.0.22621-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.7.9 (Windows-10-10.0.22621-SP0) x-ms-date: - - Thu, 25 Aug 2022 20:03:50 GMT + - Fri, 16 Sep 2022 17:41:23 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/teamsUser/:exchangeAccessToken?api-version=2022-10-01 + uri: https://sanitized.communication.azure.com/teamsUser/:exchangeAccessToken?api-version=2022-10-01 response: body: string: '{"error": {"code": "InvalidAccessToken", "message": "Provided access @@ -28,9 +28,9 @@ interactions: content-type: - application/json date: - - Thu, 25 Aug 2022 20:03:50 GMT + - Fri, 16 Sep 2022 17:41:23 GMT ms-cv: - - DHKYJwi/P0CW+DSTQfWa9w.0 + - wRLkYfsSlEiAsfTPK3uTgw.0 request-context: - appId= strict-transport-security: @@ -40,7 +40,7 @@ interactions: x-cache: - CONFIG_NOCACHE x-processing-time: - - 33ms + - 27ms status: code: 401 message: Unauthorized diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_for_teams_user_with_invalid_token_1_invalid_token.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_for_teams_user_with_invalid_token_1_invalid_token.yaml index 0097fa6cd0a3..db1c9b314e18 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_for_teams_user_with_invalid_token_1_invalid_token.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_for_teams_user_with_invalid_token_1_invalid_token.yaml @@ -13,13 +13,13 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.2.1 Python/3.7.9 (Windows-10-10.0.22621-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.7.9 (Windows-10-10.0.22621-SP0) x-ms-date: - - Thu, 25 Aug 2022 20:03:50 GMT + - Fri, 16 Sep 2022 17:41:24 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/teamsUser/:exchangeAccessToken?api-version=2022-10-01 + uri: https://sanitized.communication.azure.com/teamsUser/:exchangeAccessToken?api-version=2022-10-01 response: body: string: '{"error": {"code": "InvalidAccessToken", "message": "Provided access @@ -28,9 +28,9 @@ interactions: content-type: - application/json date: - - Thu, 25 Aug 2022 20:03:51 GMT + - Fri, 16 Sep 2022 17:41:23 GMT ms-cv: - - ApN59EeVDUKsMJP1ArXyGg.0 + - nylLShu2l0e3pzTK2kDFFQ.0 request-context: - appId= strict-transport-security: @@ -40,7 +40,7 @@ interactions: x-cache: - CONFIG_NOCACHE x-processing-time: - - 27ms + - 34ms status: code: 401 message: Unauthorized diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_for_teams_user_with_invalid_user_object_id_0_empty_user_object_id.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_for_teams_user_with_invalid_user_object_id_0_empty_user_object_id.yaml index f2bd5617766f..7b87abae4b36 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_for_teams_user_with_invalid_user_object_id_0_empty_user_object_id.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_for_teams_user_with_invalid_user_object_id_0_empty_user_object_id.yaml @@ -9,8 +9,8 @@ interactions: Connection: - keep-alive Cookie: - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrsiQlqKMUnr_ltXTdhv4sHgMAhGU1LiHoPJSiAw-ZjbaSRWG9z-BOwIBsQFI3bt0JGQzWHq8Kr5QnQ52P-zXFwPgFKrkuGc0zZOZ2txaYZ4A5pR9ilc_j_p1-G03UDMYvIqkUl4l6PLg9gdcd1CusjDRNyg9FG_QxitqWdnilvDQgAA; - fpc=AnWxvt09nBhKhfK9lh6GD5Q; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd + - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrE6TFnN1VByZa2i1I6vshc1bVsov0AvmmHeUv-fc-qEFH6Dy6S2f0LYmT6EWLNUc50BSwhyNSQoDbWSqclFINHCt2XSuvxm5GMhaRUz0njE6Xs52sTEBYmoeMPRiUdIPzY0NkmB9YpwqKeereNDbA_RH4DRrxIa8GB8WpcFZXdikgAA; + fpc=Ai98laH2S81Hk571Zyn_8PE; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd User-Agent: - python-requests/2.28.1 method: GET @@ -29,7 +29,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 25 Aug 2022 20:03:51 GMT + - Fri, 16 Sep 2022 17:41:24 GMT expires: - '-1' p3p: @@ -37,7 +37,7 @@ interactions: pragma: - no-cache set-cookie: - - fpc=AnWxvt09nBhKhfK9lh6GD5Q; expires=Sat, 24-Sep-2022 20:03:51 GMT; path=/; + - fpc=Ai98laH2S81Hk571Zyn_8PE; expires=Sun, 16-Oct-2022 17:41:24 GMT; path=/; secure; HttpOnly; SameSite=None - x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly - stsservicecookie=estsfd; path=/; secure; samesite=none; httponly @@ -46,7 +46,7 @@ interactions: x-content-type-options: - nosniff x-ms-ests-server: - - 2.1.13481.11 - NEULR1 ProdSlices + - 2.1.13622.7 - NEULR2 ProdSlices x-xss-protection: - '0' status: @@ -66,13 +66,13 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.2.1 Python/3.7.9 (Windows-10-10.0.22621-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.7.9 (Windows-10-10.0.22621-SP0) x-ms-date: - - Thu, 25 Aug 2022 20:03:52 GMT + - Fri, 16 Sep 2022 17:41:24 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/teamsUser/:exchangeAccessToken?api-version=2022-10-01 + uri: https://sanitized.communication.azure.com/teamsUser/:exchangeAccessToken?api-version=2022-10-01 response: body: string: '{"error": {"code": "ValidationError", "message": "UserId: The UserId @@ -81,9 +81,9 @@ interactions: content-type: - application/json date: - - Thu, 25 Aug 2022 20:03:51 GMT + - Fri, 16 Sep 2022 17:41:24 GMT ms-cv: - - wdffrzUyiEahoRjHN7UV5g.0 + - W6MBDe88IEyRMNpYC+evvA.0 request-context: - appId= strict-transport-security: @@ -93,7 +93,7 @@ interactions: x-cache: - CONFIG_NOCACHE x-processing-time: - - 51ms + - 32ms status: code: 400 message: Bad Request diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_for_teams_user_with_invalid_user_object_id_1_invalid_user_object_id.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_for_teams_user_with_invalid_user_object_id_1_invalid_user_object_id.yaml index ee8a1b43f56d..5a5cc49b8176 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_for_teams_user_with_invalid_user_object_id_1_invalid_user_object_id.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_for_teams_user_with_invalid_user_object_id_1_invalid_user_object_id.yaml @@ -9,8 +9,8 @@ interactions: Connection: - keep-alive Cookie: - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrXuyU7VKeCFPwYDPqrN1CMdPwgrz24-7LQnrt8A-Lc6C6DAqJk1gQpGyExc14jN6b3-btYBFOcowNRvNBVIldlSyPu6NaXB9JK0iKv5PVonA4a2fVQ3RDCnRUU_aCX0kV9X47-z_3lTKA7rEMuYsEMafR8Xj1IeufAtJsG3sumP8gAA; - fpc=Aov-pPRNp6RNts6RmdOx-Kk; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd + - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrjKSr_Q0JKK79YN_4ya1sgHZpEngDl9BS5q5kaXfjbS2j_YiprQj1u_1wUYHUiD2ca-3WZoNCnVA_LqCuGDXc3Q5Tj3pZSuKq9Haote4_cm2XGKZfSi_EFYVYx3O_4i8lYAtSEDprUC9KYUfmQ1iyZCXw1uYnhkYwN35lbyzwDfggAA; + fpc=AuzpiXo4RttGt7zOXCslpjI; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd User-Agent: - python-requests/2.28.1 method: GET @@ -29,7 +29,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 25 Aug 2022 20:03:51 GMT + - Fri, 16 Sep 2022 17:41:25 GMT expires: - '-1' p3p: @@ -37,7 +37,7 @@ interactions: pragma: - no-cache set-cookie: - - fpc=Aov-pPRNp6RNts6RmdOx-Kk; expires=Sat, 24-Sep-2022 20:03:52 GMT; path=/; + - fpc=AuzpiXo4RttGt7zOXCslpjI; expires=Sun, 16-Oct-2022 17:41:25 GMT; path=/; secure; HttpOnly; SameSite=None - x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly - stsservicecookie=estsfd; path=/; secure; samesite=none; httponly @@ -46,7 +46,7 @@ interactions: x-content-type-options: - nosniff x-ms-ests-server: - - 2.1.13481.11 - WEULR2 ProdSlices + - 2.1.13622.7 - NEULR1 ProdSlices x-xss-protection: - '0' status: @@ -66,13 +66,13 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.2.1 Python/3.7.9 (Windows-10-10.0.22621-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.7.9 (Windows-10-10.0.22621-SP0) x-ms-date: - - Thu, 25 Aug 2022 20:03:52 GMT + - Fri, 16 Sep 2022 17:41:25 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/teamsUser/:exchangeAccessToken?api-version=2022-10-01 + uri: https://sanitized.communication.azure.com/teamsUser/:exchangeAccessToken?api-version=2022-10-01 response: body: string: '{"error": {"code": "ValidationError", "message": "Provided UserId has @@ -83,9 +83,9 @@ interactions: content-type: - application/json date: - - Thu, 25 Aug 2022 20:03:52 GMT + - Fri, 16 Sep 2022 17:41:25 GMT ms-cv: - - u62EB86CnEOYF6dTbb9Exw.0 + - 5zUVW+RQGE6lUtyPcmpT+A.0 request-context: - appId= strict-transport-security: @@ -95,7 +95,7 @@ interactions: x-cache: - CONFIG_NOCACHE x-processing-time: - - 34ms + - 38ms status: code: 400 message: Bad Request diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_for_teams_user_with_valid_params.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_for_teams_user_with_valid_params.yaml index 712963b69e83..5c26c80735e3 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_for_teams_user_with_valid_params.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_for_teams_user_with_valid_params.yaml @@ -9,8 +9,8 @@ interactions: Connection: - keep-alive Cookie: - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr1Uqhpu7wYUjAvZ9y58uTSyAeoA8xST98asK_CjXU8eIEKYaWpBBXuAXQOnwSjZgzZGnT3aYWBW6C7qMj64Pbb3KVusNWOL1xOMbP9r6vNdpXfr1pyy2Q3-9z-rI8-1pSXXs9psMlwVZF2po1jCHGZEImhQJmSghHDOtw8O7WvtkgAA; - fpc=Ams7s0NcqBREr9LVzYt8wcw; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd + - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrQnb9USyEhx_ba8O3MmsH8H9dNUb2WAdrMWFUurbWq-nDOC9Fc9Yzdp1rogosntd9MRnzKXbbTPU-NVEU8VCH_9HRUmo02qz5URXtz0BzDzIfsqdhx5NrTLp1IBFRvOigorSmmYvJ3IFOk3f22QGCVH8u5X5fLSMGwRrcqYRHI6cgAA; + fpc=Ajk9SnjY1YpOlEiwpNwd774; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd User-Agent: - python-requests/2.28.1 method: GET @@ -29,7 +29,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 25 Aug 2022 20:03:52 GMT + - Fri, 16 Sep 2022 17:41:25 GMT expires: - '-1' p3p: @@ -37,7 +37,7 @@ interactions: pragma: - no-cache set-cookie: - - fpc=Ams7s0NcqBREr9LVzYt8wcw; expires=Sat, 24-Sep-2022 20:03:53 GMT; path=/; + - fpc=Ajk9SnjY1YpOlEiwpNwd774; expires=Sun, 16-Oct-2022 17:41:26 GMT; path=/; secure; HttpOnly; SameSite=None - x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly - stsservicecookie=estsfd; path=/; secure; samesite=none; httponly @@ -46,7 +46,7 @@ interactions: x-content-type-options: - nosniff x-ms-ests-server: - - 2.1.13481.11 - NEULR2 ProdSlices + - 2.1.13622.7 - NEULR1 ProdSlices x-xss-protection: - '0' status: @@ -66,16 +66,16 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.2.1 Python/3.7.9 (Windows-10-10.0.22621-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.7.9 (Windows-10-10.0.22621-SP0) x-ms-date: - - Thu, 25 Aug 2022 20:03:53 GMT + - Fri, 16 Sep 2022 17:41:26 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/teamsUser/:exchangeAccessToken?api-version=2022-10-01 + uri: https://sanitized.communication.azure.com/teamsUser/:exchangeAccessToken?api-version=2022-10-01 response: body: - string: '{"token": "sanitized", "expiresOn": "2022-08-25T21:19:40.3381494+00:00"}' + string: '{"token": "sanitized", "expiresOn": "2022-09-16T19:00:11.5860819+00:00"}' headers: api-supported-versions: - 2021-10-31-preview, 2022-06-01, 2022-10-01 @@ -84,9 +84,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 25 Aug 2022 20:03:53 GMT + - Fri, 16 Sep 2022 17:41:27 GMT ms-cv: - - g5S2h8pQ8E64oI3pQWP0XA.0 + - HTu84zFwxkycgVn2Qy5SJA.0 request-context: - appId= strict-transport-security: @@ -94,7 +94,7 @@ interactions: x-cache: - CONFIG_NOCACHE x-processing-time: - - 450ms + - 312ms status: code: 200 message: OK diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_for_teams_user_with_wrong_client_id.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_for_teams_user_with_wrong_client_id.yaml index 7ca7f40a3051..fd9944b90bb6 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_for_teams_user_with_wrong_client_id.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_for_teams_user_with_wrong_client_id.yaml @@ -9,8 +9,8 @@ interactions: Connection: - keep-alive Cookie: - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrPKA_IIcR9PEqQTYJnTTpCGnW1aqHj_62UUG-9VLkeEQmkO5MDUL4a3Fm6xmI2gYrMku8SKH_RJNtgXaqRmVWmiIL5WweR4kg1IBjk_hGLwE7llBikIz1h1vGajhjtOB9CbsA8Dwf_JXLpSD-vpQjEmCiUP23FzzvrL4tPkn6XnUgAA; - fpc=Al_HIqxZw3lIoEhzOqgucYw; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd + - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrQGsvZjcNpNlXtnT3Dl2fKQNa7Ws15gpdydYN3MOPY6Py9YDNuKgJYULnEmTUb1WD_cjzM0WjPOqxZ8x7F9DBmxR6aMCaML0DIiuQw8ePkxayS1USwpa-wb6tXN6tqDp1UXeUO5GR5t-KBEv9WnYZiHRtWW5ctf30FpbZiSkHn8kgAA; + fpc=Aker7_KLdu9KpQ-q8bXcLeU; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd User-Agent: - python-requests/2.28.1 method: GET @@ -29,7 +29,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 25 Aug 2022 20:03:54 GMT + - Fri, 16 Sep 2022 17:41:28 GMT expires: - '-1' p3p: @@ -37,7 +37,7 @@ interactions: pragma: - no-cache set-cookie: - - fpc=Al_HIqxZw3lIoEhzOqgucYw; expires=Sat, 24-Sep-2022 20:03:54 GMT; path=/; + - fpc=Aker7_KLdu9KpQ-q8bXcLeU; expires=Sun, 16-Oct-2022 17:41:28 GMT; path=/; secure; HttpOnly; SameSite=None - x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly - stsservicecookie=estsfd; path=/; secure; samesite=none; httponly @@ -46,7 +46,7 @@ interactions: x-content-type-options: - nosniff x-ms-ests-server: - - 2.1.13481.11 - NEULR1 ProdSlices + - 2.1.13622.7 - NEULR2 ProdSlices x-xss-protection: - '0' status: @@ -66,13 +66,13 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.2.1 Python/3.7.9 (Windows-10-10.0.22621-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.7.9 (Windows-10-10.0.22621-SP0) x-ms-date: - - Thu, 25 Aug 2022 20:03:54 GMT + - Fri, 16 Sep 2022 17:41:29 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/teamsUser/:exchangeAccessToken?api-version=2022-10-01 + uri: https://sanitized.communication.azure.com/teamsUser/:exchangeAccessToken?api-version=2022-10-01 response: body: string: '{"error": {"code": "ValidationError", "message": "AAD application is @@ -83,9 +83,9 @@ interactions: content-type: - application/json date: - - Thu, 25 Aug 2022 20:03:54 GMT + - Fri, 16 Sep 2022 17:41:29 GMT ms-cv: - - +T31Z+Ka5UufkIVkPFvD6w.0 + - yArvSiMv1EyHwVowzZjmUg.0 request-context: - appId= strict-transport-security: @@ -95,7 +95,7 @@ interactions: x-cache: - CONFIG_NOCACHE x-processing-time: - - 50ms + - 36ms status: code: 400 message: Bad Request diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_for_teams_user_with_wrong_user_object_id.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_for_teams_user_with_wrong_user_object_id.yaml index b250868f3cc4..49f374cb2818 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_for_teams_user_with_wrong_user_object_id.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_for_teams_user_with_wrong_user_object_id.yaml @@ -9,8 +9,8 @@ interactions: Connection: - keep-alive Cookie: - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevriuBet0z5ILdsLBR-IAhloLEFVWesh2sbBT0cpketeqHPoe968evxPq4nbd-PV13Nivl3R8LpwoZPMZKzKdjoV7Qa4C-LZu4ZULl9zZ5hCgcHyXNWDRhonCpZYP_mog0I_9ac0TElG-3SH_bcb99jqVMpq69yredCIgIZPnXwLb4gAA; - fpc=AuY-gY5Wx0dJkua_leX537g; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd + - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrzrUbCtNJqBhYsGpMdR1qMFow3EyGH8XA4KcvDslscFcDAwJB4lZZNq5R-thOPvnKi_S0VG8LrELOvH8VYT6O1l-VwAJmNb6AbAfJn_s6rjEeLWKrOyTFMb7a8hVFKqRpb3ItwFlg0-PUkiwj5VvFShwUULbatnPf6wW9cL5_We8gAA; + fpc=Ap6Og9WCpA9Goqnxv1u_UJA; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd User-Agent: - python-requests/2.28.1 method: GET @@ -29,7 +29,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 25 Aug 2022 20:03:55 GMT + - Fri, 16 Sep 2022 17:41:29 GMT expires: - '-1' p3p: @@ -37,7 +37,7 @@ interactions: pragma: - no-cache set-cookie: - - fpc=AuY-gY5Wx0dJkua_leX537g; expires=Sat, 24-Sep-2022 20:03:56 GMT; path=/; + - fpc=Ap6Og9WCpA9Goqnxv1u_UJA; expires=Sun, 16-Oct-2022 17:41:30 GMT; path=/; secure; HttpOnly; SameSite=None - x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly - stsservicecookie=estsfd; path=/; secure; samesite=none; httponly @@ -46,7 +46,7 @@ interactions: x-content-type-options: - nosniff x-ms-ests-server: - - 2.1.13481.11 - NEULR1 ProdSlices + - 2.1.13622.7 - NEULR1 ProdSlices x-xss-protection: - '0' status: @@ -66,13 +66,13 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.2.1 Python/3.7.9 (Windows-10-10.0.22621-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.7.9 (Windows-10-10.0.22621-SP0) x-ms-date: - - Thu, 25 Aug 2022 20:03:56 GMT + - Fri, 16 Sep 2022 17:41:30 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/teamsUser/:exchangeAccessToken?api-version=2022-10-01 + uri: https://sanitized.communication.azure.com/teamsUser/:exchangeAccessToken?api-version=2022-10-01 response: body: string: '{"error": {"code": "ValidationError", "message": "Provided AAD token @@ -83,9 +83,9 @@ interactions: content-type: - application/json date: - - Thu, 25 Aug 2022 20:03:56 GMT + - Fri, 16 Sep 2022 17:41:30 GMT ms-cv: - - IPRGhlTb1EukjYwBL5iWpQ.0 + - SdAsoI/3T0ac31aXZ/q5YQ.0 request-context: - appId= strict-transport-security: @@ -95,7 +95,7 @@ interactions: x-cache: - CONFIG_NOCACHE x-processing-time: - - 46ms + - 42ms status: code: 400 message: Bad Request diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_from_managed_identity.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_from_managed_identity.yaml index f5dba79f66ec..bbf6a09a2ec5 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_from_managed_identity.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_from_managed_identity.yaml @@ -13,9 +13,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.2.1 Python/3.7.9 (Windows-10-10.0.22621-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.7.9 (Windows-10-10.0.22621-SP0) method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity": {"id": "sanitized"}}' @@ -28,9 +28,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 25 Aug 2022 20:03:56 GMT + - Fri, 16 Sep 2022 17:41:32 GMT ms-cv: - - HOV1PDvozE+tPy5+QRRTpg.0 + - nih+SjBBck2EgkfycweFzQ.0 request-context: - appId= strict-transport-security: @@ -38,7 +38,7 @@ interactions: x-cache: - CONFIG_NOCACHE x-processing-time: - - 76ms + - 243ms status: code: 201 message: Created @@ -56,24 +56,24 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.2.1 Python/3.7.9 (Windows-10-10.0.22621-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.7.9 (Windows-10-10.0.22621-SP0) method: POST - uri: https://sanitized.ppe.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2022-10-01 + uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2022-10-01 response: body: - string: '{"token": "sanitized", "expiresOn": "2022-08-26T20:03:57.7361416+00:00"}' + string: '{"token": "sanitized", "expiresOn": "2022-09-17T17:41:32.758196+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, 2021-11-01, 2022-06-01, 2022-10-01 content-length: - - '804' + - '803' content-type: - application/json; charset=utf-8 date: - - Thu, 25 Aug 2022 20:03:57 GMT + - Fri, 16 Sep 2022 17:41:32 GMT ms-cv: - - eb5TUnx0e0666rbBi6TLQg.0 + - XLlble47l0G7aYorNv29YA.0 request-context: - appId= strict-transport-security: @@ -81,7 +81,7 @@ interactions: x-cache: - CONFIG_NOCACHE x-processing-time: - - 54ms + - 39ms status: code: 200 message: OK diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_with_custom_maximum_validity.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_with_custom_maximum_validity.yaml index f26353600dfe..091d6840a292 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_with_custom_maximum_validity.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_with_custom_maximum_validity.yaml @@ -13,13 +13,13 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.2.1 Python/3.7.9 (Windows-10-10.0.22621-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.7.9 (Windows-10-10.0.22621-SP0) x-ms-date: - - Thu, 25 Aug 2022 20:03:57 GMT + - Fri, 16 Sep 2022 17:41:32 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity": {"id": "sanitized"}}' @@ -32,9 +32,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 25 Aug 2022 20:03:57 GMT + - Fri, 16 Sep 2022 17:41:32 GMT ms-cv: - - uC4LaNX1wkO/YPn0fDP03Q.0 + - 5NcwOOFZikyYXPKSnd5ldw.0 request-context: - appId= strict-transport-security: @@ -60,16 +60,16 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.2.1 Python/3.7.9 (Windows-10-10.0.22621-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.7.9 (Windows-10-10.0.22621-SP0) x-ms-date: - - Thu, 25 Aug 2022 20:03:58 GMT + - Fri, 16 Sep 2022 17:41:33 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2022-10-01 + uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2022-10-01 response: body: - string: '{"token": "sanitized", "expiresOn": "2022-08-26T20:03:58.3190244+00:00"}' + string: '{"token": "sanitized", "expiresOn": "2022-09-17T17:41:33.8255075+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, @@ -79,9 +79,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 25 Aug 2022 20:03:57 GMT + - Fri, 16 Sep 2022 17:41:33 GMT ms-cv: - - qYVj2duLg0GdYQecPc9hSw.0 + - FuZDkMiTakKCC0UEAm1gWQ.0 request-context: - appId= strict-transport-security: @@ -89,7 +89,7 @@ interactions: x-cache: - CONFIG_NOCACHE x-processing-time: - - 45ms + - 40ms status: code: 200 message: OK diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_with_custom_minimum_validity.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_with_custom_minimum_validity.yaml index 28bc08bd2be5..f61f60940ec7 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_with_custom_minimum_validity.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_with_custom_minimum_validity.yaml @@ -13,13 +13,13 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.2.1 Python/3.7.9 (Windows-10-10.0.22621-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.7.9 (Windows-10-10.0.22621-SP0) x-ms-date: - - Thu, 25 Aug 2022 20:03:58 GMT + - Fri, 16 Sep 2022 17:41:33 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity": {"id": "sanitized"}}' @@ -32,9 +32,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 25 Aug 2022 20:03:58 GMT + - Fri, 16 Sep 2022 17:41:33 GMT ms-cv: - - uoiZ2/UpzEevnb9LBh+fNw.0 + - Oi9ZAS4780ykIpAQdSsSsg.0 request-context: - appId= strict-transport-security: @@ -42,7 +42,7 @@ interactions: x-cache: - CONFIG_NOCACHE x-processing-time: - - 37ms + - 39ms status: code: 201 message: Created @@ -60,16 +60,16 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.2.1 Python/3.7.9 (Windows-10-10.0.22621-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.7.9 (Windows-10-10.0.22621-SP0) x-ms-date: - - Thu, 25 Aug 2022 20:03:58 GMT + - Fri, 16 Sep 2022 17:41:34 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2022-10-01 + uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2022-10-01 response: body: - string: '{"token": "sanitized", "expiresOn": "2022-08-25T21:03:58.9989782+00:00"}' + string: '{"token": "sanitized", "expiresOn": "2022-09-16T18:41:34.4410404+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, @@ -79,9 +79,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 25 Aug 2022 20:03:58 GMT + - Fri, 16 Sep 2022 17:41:33 GMT ms-cv: - - 4kDYOGQIb0CDVXlR5jWKxA.0 + - m7F0iccnRkyw2hHC0IixnQ.0 request-context: - appId= strict-transport-security: @@ -89,7 +89,7 @@ interactions: x-cache: - CONFIG_NOCACHE x-processing-time: - - 40ms + - 50ms status: code: 200 message: OK diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_with_custom_validity_over_maximum_allowed.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_with_custom_validity_over_maximum_allowed.yaml index eb94ac38fbba..7c3d551470fe 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_with_custom_validity_over_maximum_allowed.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_with_custom_validity_over_maximum_allowed.yaml @@ -13,13 +13,13 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.2.1 Python/3.7.9 (Windows-10-10.0.22621-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.7.9 (Windows-10-10.0.22621-SP0) x-ms-date: - - Thu, 25 Aug 2022 20:03:59 GMT + - Fri, 16 Sep 2022 17:41:34 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity": {"id": "sanitized"}}' @@ -32,9 +32,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 25 Aug 2022 20:03:59 GMT + - Fri, 16 Sep 2022 17:41:34 GMT ms-cv: - - X3ZOh9OY/02nOI90WW1Tmw.0 + - CDj+TR3U8kSwPk1KWcuCIw.0 request-context: - appId= strict-transport-security: @@ -42,7 +42,7 @@ interactions: x-cache: - CONFIG_NOCACHE x-processing-time: - - 46ms + - 34ms status: code: 201 message: Created @@ -60,13 +60,13 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.2.1 Python/3.7.9 (Windows-10-10.0.22621-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.7.9 (Windows-10-10.0.22621-SP0) x-ms-date: - - Thu, 25 Aug 2022 20:03:59 GMT + - Fri, 16 Sep 2022 17:41:34 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2022-10-01 + uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2022-10-01 response: body: string: '{"error": {"code": "ValidationError", "message": "ExpiresInMinutes @@ -78,9 +78,9 @@ interactions: content-type: - application/json date: - - Thu, 25 Aug 2022 20:03:59 GMT + - Fri, 16 Sep 2022 17:41:34 GMT ms-cv: - - NH2VByLXRUCs1/4Lo+7JoA.0 + - lJyfWOO2Y0mjMKNXTsfB3A.0 request-context: - appId= strict-transport-security: @@ -90,7 +90,7 @@ interactions: x-cache: - CONFIG_NOCACHE x-processing-time: - - 26ms + - 31ms status: code: 400 message: Bad Request diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_with_custom_validity_under_minimum_allowed.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_with_custom_validity_under_minimum_allowed.yaml index 14c5631fb2c4..2839bde09c05 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_with_custom_validity_under_minimum_allowed.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_with_custom_validity_under_minimum_allowed.yaml @@ -13,13 +13,13 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.2.1 Python/3.7.9 (Windows-10-10.0.22621-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.7.9 (Windows-10-10.0.22621-SP0) x-ms-date: - - Thu, 25 Aug 2022 20:04:00 GMT + - Fri, 16 Sep 2022 17:41:35 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity": {"id": "sanitized"}}' @@ -32,9 +32,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 25 Aug 2022 20:04:00 GMT + - Fri, 16 Sep 2022 17:41:34 GMT ms-cv: - - fFv5v5lPbUy0KyswPnGROA.0 + - /5r/3FFTu0G1ec9XUUSfzA.0 request-context: - appId= strict-transport-security: @@ -42,7 +42,7 @@ interactions: x-cache: - CONFIG_NOCACHE x-processing-time: - - 34ms + - 38ms status: code: 201 message: Created @@ -60,13 +60,13 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.2.1 Python/3.7.9 (Windows-10-10.0.22621-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.7.9 (Windows-10-10.0.22621-SP0) x-ms-date: - - Thu, 25 Aug 2022 20:04:00 GMT + - Fri, 16 Sep 2022 17:41:35 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2022-10-01 + uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2022-10-01 response: body: string: '{"error": {"code": "ValidationError", "message": "ExpiresInMinutes @@ -78,9 +78,9 @@ interactions: content-type: - application/json date: - - Thu, 25 Aug 2022 20:04:00 GMT + - Fri, 16 Sep 2022 17:41:34 GMT ms-cv: - - 7GaoXxKKY0+5nipZuiHjNw.0 + - Ty9wb1Kst0iODeP0Ku8HDw.0 request-context: - appId= strict-transport-security: @@ -90,7 +90,7 @@ interactions: x-cache: - CONFIG_NOCACHE x-processing-time: - - 31ms + - 43ms status: code: 400 message: Bad Request diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_with_no_scopes.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_with_no_scopes.yaml index 6c441e4effcb..a325eb8eb7d1 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_with_no_scopes.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_with_no_scopes.yaml @@ -13,13 +13,13 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.2.1 Python/3.7.9 (Windows-10-10.0.22621-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.7.9 (Windows-10-10.0.22621-SP0) x-ms-date: - - Thu, 25 Aug 2022 20:04:00 GMT + - Fri, 16 Sep 2022 17:41:35 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity": {"id": "sanitized"}}' @@ -32,9 +32,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 25 Aug 2022 20:04:00 GMT + - Fri, 16 Sep 2022 17:41:35 GMT ms-cv: - - hfXSZEp9lEyNxgTRm1HBhA.0 + - Im5DklXQkUqrjkJa3lX88w.0 request-context: - appId= strict-transport-security: @@ -42,7 +42,7 @@ interactions: x-cache: - CONFIG_NOCACHE x-processing-time: - - 40ms + - 32ms status: code: 201 message: Created @@ -60,13 +60,13 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.2.1 Python/3.7.9 (Windows-10-10.0.22621-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.7.9 (Windows-10-10.0.22621-SP0) x-ms-date: - - Thu, 25 Aug 2022 20:04:00 GMT + - Fri, 16 Sep 2022 17:41:35 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2022-10-01 + uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2022-10-01 response: body: string: '{"error": {"code": "ValidationError", "message": "Scopes: The Scopes @@ -75,9 +75,9 @@ interactions: content-type: - application/json date: - - Thu, 25 Aug 2022 20:04:00 GMT + - Fri, 16 Sep 2022 17:41:35 GMT ms-cv: - - 6Jk/8ME1cEGQkzzOiEh+5g.0 + - 6GlyAfbSfUW1BymqvqlZ0A.0 request-context: - appId= strict-transport-security: @@ -87,7 +87,7 @@ interactions: x-cache: - CONFIG_NOCACHE x-processing-time: - - 37ms + - 30ms status: code: 400 message: Bad Request diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_revoke_tokens.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_revoke_tokens.yaml index 11584cb91b56..f8180783789f 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_revoke_tokens.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_revoke_tokens.yaml @@ -13,13 +13,13 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.2.1 Python/3.7.9 (Windows-10-10.0.22621-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.7.9 (Windows-10-10.0.22621-SP0) x-ms-date: - - Thu, 25 Aug 2022 20:04:01 GMT + - Fri, 16 Sep 2022 17:41:36 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity": {"id": "sanitized"}}' @@ -32,9 +32,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 25 Aug 2022 20:04:01 GMT + - Fri, 16 Sep 2022 17:41:36 GMT ms-cv: - - PT8imR+IXkK97MJis2j61w.0 + - lIk5kXCGFUew+WHtFZ6FUQ.0 request-context: - appId= strict-transport-security: @@ -42,7 +42,7 @@ interactions: x-cache: - CONFIG_NOCACHE x-processing-time: - - 33ms + - 51ms status: code: 201 message: Created @@ -60,28 +60,28 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.2.1 Python/3.7.9 (Windows-10-10.0.22621-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.7.9 (Windows-10-10.0.22621-SP0) x-ms-date: - - Thu, 25 Aug 2022 20:04:01 GMT + - Fri, 16 Sep 2022 17:41:36 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2022-10-01 + uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2022-10-01 response: body: - string: '{"token": "sanitized", "expiresOn": "2022-08-26T20:04:01.6141005+00:00"}' + string: '{"token": "sanitized", "expiresOn": "2022-09-17T17:41:36.729901+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, 2021-11-01, 2022-06-01, 2022-10-01 content-length: - - '804' + - '803' content-type: - application/json; charset=utf-8 date: - - Thu, 25 Aug 2022 20:04:01 GMT + - Fri, 16 Sep 2022 17:41:36 GMT ms-cv: - - RVAcB/ek50mU3+Itjf6CZw.0 + - GH4NJsolFE+u0+pmtg1ntQ.0 request-context: - appId= strict-transport-security: @@ -89,7 +89,7 @@ interactions: x-cache: - CONFIG_NOCACHE x-processing-time: - - 44ms + - 41ms status: code: 200 message: OK @@ -105,13 +105,13 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.2.1 Python/3.7.9 (Windows-10-10.0.22621-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.7.9 (Windows-10-10.0.22621-SP0) x-ms-date: - - Thu, 25 Aug 2022 20:04:01 GMT + - Fri, 16 Sep 2022 17:41:36 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities/sanitized/:revokeAccessTokens?api-version=2022-10-01 + uri: https://sanitized.communication.azure.com/identities/sanitized/:revokeAccessTokens?api-version=2022-10-01 response: body: string: '' @@ -120,9 +120,9 @@ interactions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, 2021-11-01, 2022-06-01, 2022-10-01 date: - - Thu, 25 Aug 2022 20:04:01 GMT + - Fri, 16 Sep 2022 17:41:36 GMT ms-cv: - - CKD/rny9wUioVCjaElf5VQ.0 + - vCIdjSstdkCLyIZV3Ez73A.0 request-context: - appId= strict-transport-security: @@ -130,7 +130,7 @@ interactions: x-cache: - CONFIG_NOCACHE x-processing-time: - - 170ms + - 112ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_revoke_tokens_from_managed_identity.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_revoke_tokens_from_managed_identity.yaml index bf0bd26f8e24..bbcf50177262 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_revoke_tokens_from_managed_identity.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_revoke_tokens_from_managed_identity.yaml @@ -13,9 +13,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.2.1 Python/3.7.9 (Windows-10-10.0.22621-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.7.9 (Windows-10-10.0.22621-SP0) method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity": {"id": "sanitized"}}' @@ -28,9 +28,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 25 Aug 2022 20:04:02 GMT + - Fri, 16 Sep 2022 17:41:37 GMT ms-cv: - - grmsZh2rg0OhnqR+Hkulqw.0 + - 0e88kvZQiE6UGDa7GsxQOA.0 request-context: - appId= strict-transport-security: @@ -38,7 +38,7 @@ interactions: x-cache: - CONFIG_NOCACHE x-processing-time: - - 41ms + - 49ms status: code: 201 message: Created @@ -56,12 +56,12 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.2.1 Python/3.7.9 (Windows-10-10.0.22621-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.7.9 (Windows-10-10.0.22621-SP0) method: POST - uri: https://sanitized.ppe.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2022-10-01 + uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2022-10-01 response: body: - string: '{"token": "sanitized", "expiresOn": "2022-08-26T20:04:03.1297055+00:00"}' + string: '{"token": "sanitized", "expiresOn": "2022-09-17T17:41:38.2777387+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, @@ -71,9 +71,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 25 Aug 2022 20:04:02 GMT + - Fri, 16 Sep 2022 17:41:37 GMT ms-cv: - - TxZzW4k9x0SWy9cTaP038A.0 + - giZ6Pj/XuUSz596R4bkmJg.0 request-context: - appId= strict-transport-security: @@ -81,7 +81,7 @@ interactions: x-cache: - CONFIG_NOCACHE x-processing-time: - - 39ms + - 35ms status: code: 200 message: OK @@ -97,9 +97,9 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.2.1 Python/3.7.9 (Windows-10-10.0.22621-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.7.9 (Windows-10-10.0.22621-SP0) method: POST - uri: https://sanitized.ppe.communication.azure.net/identities/sanitized/:revokeAccessTokens?api-version=2022-10-01 + uri: https://sanitized.communication.azure.com/identities/sanitized/:revokeAccessTokens?api-version=2022-10-01 response: body: string: '' @@ -108,9 +108,9 @@ interactions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, 2021-11-01, 2022-06-01, 2022-10-01 date: - - Thu, 25 Aug 2022 20:04:03 GMT + - Fri, 16 Sep 2022 17:41:38 GMT ms-cv: - - qUYlMaCY/ESgGs5s2gdMtg.0 + - /8Xpi3hVIkmQ2zMkY9OKfA.0 request-context: - appId= strict-transport-security: @@ -118,7 +118,7 @@ interactions: x-cache: - CONFIG_NOCACHE x-processing-time: - - 249ms + - 110ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_create_user.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_create_user.yaml index 6c8a206540a7..2110f2a83d03 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_create_user.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_create_user.yaml @@ -7,13 +7,13 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.2.1 Python/3.7.9 (Windows-10-10.0.22621-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.7.9 (Windows-10-10.0.22621-SP0) x-ms-date: - - Thu, 25 Aug 2022 20:04:03 GMT + - Fri, 16 Sep 2022 17:41:38 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity": {"id": "sanitized"}}' @@ -22,14 +22,14 @@ interactions: 2021-10-31-preview, 2021-11-01, 2022-06-01, 2022-10-01 content-length: '101' content-type: application/json; charset=utf-8 - date: Thu, 25 Aug 2022 20:04:03 GMT - ms-cv: oXpHbjby7E61JL0DqFGfXA.0 + date: Fri, 16 Sep 2022 17:41:38 GMT + ms-cv: fo5MEVGqrk6Z2W1kW5jK0w.0 request-context: appId= strict-transport-security: max-age=2592000 x-cache: CONFIG_NOCACHE - x-processing-time: 34ms + x-processing-time: 35ms status: code: 201 message: Created - url: https://test-petrsvihlik.ppe.communication.azure.net/identities?api-version=2022-10-01 + url: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 version: 1 diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_create_user_and_token.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_create_user_and_token.yaml index 50313404bf95..8ff7a32b1941 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_create_user_and_token.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_create_user_and_token.yaml @@ -9,30 +9,30 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.2.1 Python/3.7.9 (Windows-10-10.0.22621-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.7.9 (Windows-10-10.0.22621-SP0) x-ms-date: - - Thu, 25 Aug 2022 20:04:04 GMT + - Fri, 16 Sep 2022 17:41:39 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity": {"id": "sanitized"}, "accessToken": {"token": "sanitized", - "expiresOn": "2022-08-26T20:04:04.2146678+00:00"}}' + "expiresOn": "2022-09-17T17:41:39.1849966+00:00"}}' headers: api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, 2021-11-01, 2022-06-01, 2022-10-01 content-length: '920' content-type: application/json; charset=utf-8 - date: Thu, 25 Aug 2022 20:04:03 GMT - ms-cv: knpoVtY9ukyCg+gvt5/OTg.0 + date: Fri, 16 Sep 2022 17:41:38 GMT + ms-cv: k/Z6dzNCcUihy5zpuSZTLA.0 request-context: appId= strict-transport-security: max-age=2592000 x-cache: CONFIG_NOCACHE - x-processing-time: 70ms + x-processing-time: 43ms status: code: 201 message: Created - url: https://test-petrsvihlik.ppe.communication.azure.net/identities?api-version=2022-10-01 + url: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 version: 1 diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_create_user_and_token_with_custom_maximum_validity.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_create_user_and_token_with_custom_maximum_validity.yaml index bc80961952d8..93d013d54a3a 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_create_user_and_token_with_custom_maximum_validity.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_create_user_and_token_with_custom_maximum_validity.yaml @@ -9,30 +9,30 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.2.1 Python/3.7.9 (Windows-10-10.0.22621-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.7.9 (Windows-10-10.0.22621-SP0) x-ms-date: - - Thu, 25 Aug 2022 20:04:04 GMT + - Fri, 16 Sep 2022 17:41:39 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity": {"id": "sanitized"}, "accessToken": {"token": "sanitized", - "expiresOn": "2022-08-26T20:04:04.497103+00:00"}}' + "expiresOn": "2022-09-17T17:41:39.4651462+00:00"}}' headers: api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, 2021-11-01, 2022-06-01, 2022-10-01 - content-length: '919' + content-length: '920' content-type: application/json; charset=utf-8 - date: Thu, 25 Aug 2022 20:04:04 GMT - ms-cv: Y24KRX8u1UGlH4Auv2DBug.0 + date: Fri, 16 Sep 2022 17:41:39 GMT + ms-cv: KiozbZJf0k+nn6izutd2cA.0 request-context: appId= strict-transport-security: max-age=2592000 x-cache: CONFIG_NOCACHE - x-processing-time: 43ms + x-processing-time: 37ms status: code: 201 message: Created - url: https://test-petrsvihlik.ppe.communication.azure.net/identities?api-version=2022-10-01 + url: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 version: 1 diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_create_user_and_token_with_custom_minimum_validity.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_create_user_and_token_with_custom_minimum_validity.yaml index 86b060ca5a48..053afbd801bb 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_create_user_and_token_with_custom_minimum_validity.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_create_user_and_token_with_custom_minimum_validity.yaml @@ -9,30 +9,30 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.2.1 Python/3.7.9 (Windows-10-10.0.22621-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.7.9 (Windows-10-10.0.22621-SP0) x-ms-date: - - Thu, 25 Aug 2022 20:04:04 GMT + - Fri, 16 Sep 2022 17:41:39 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity": {"id": "sanitized"}, "accessToken": {"token": "sanitized", - "expiresOn": "2022-08-25T21:04:04.7806553+00:00"}}' + "expiresOn": "2022-09-16T18:41:39.7516332+00:00"}}' headers: api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, 2021-11-01, 2022-06-01, 2022-10-01 content-length: '920' content-type: application/json; charset=utf-8 - date: Thu, 25 Aug 2022 20:04:04 GMT - ms-cv: mWmB0MXDqUmcosbxE/6+wQ.0 + date: Fri, 16 Sep 2022 17:41:39 GMT + ms-cv: 3qmTqDZyH0GetqeYnANPqg.0 request-context: appId= strict-transport-security: max-age=2592000 x-cache: CONFIG_NOCACHE - x-processing-time: 52ms + x-processing-time: 44ms status: code: 201 message: Created - url: https://test-petrsvihlik.ppe.communication.azure.net/identities?api-version=2022-10-01 + url: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 version: 1 diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_create_user_and_token_with_custom_validity_over_maximum_allowed.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_create_user_and_token_with_custom_validity_over_maximum_allowed.yaml index b1da39f1c335..97d0fa03cc54 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_create_user_and_token_with_custom_validity_over_maximum_allowed.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_create_user_and_token_with_custom_validity_over_maximum_allowed.yaml @@ -9,13 +9,13 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.2.1 Python/3.7.9 (Windows-10-10.0.22621-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.7.9 (Windows-10-10.0.22621-SP0) x-ms-date: - - Thu, 25 Aug 2022 20:04:04 GMT + - Fri, 16 Sep 2022 17:41:39 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"error": {"code": "ValidationError", "message": "ExpiresInMinutes @@ -24,15 +24,15 @@ interactions: api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, 2021-11-01, 2022-06-01, 2022-10-01 content-type: application/json - date: Thu, 25 Aug 2022 20:04:04 GMT - ms-cv: TV7/pM0NwEuqDH2dxRh4NQ.0 + date: Fri, 16 Sep 2022 17:41:39 GMT + ms-cv: s6EAB/vXgESJXTTdFE+1hg.0 request-context: appId= strict-transport-security: max-age=2592000 transfer-encoding: chunked x-cache: CONFIG_NOCACHE - x-processing-time: 34ms + x-processing-time: 25ms status: code: 400 message: Bad Request - url: https://test-petrsvihlik.ppe.communication.azure.net/identities?api-version=2022-10-01 + url: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 version: 1 diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_create_user_and_token_with_custom_validity_under_minimum_allowed.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_create_user_and_token_with_custom_validity_under_minimum_allowed.yaml index 034cdd57625d..1eb57c3ce2ae 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_create_user_and_token_with_custom_validity_under_minimum_allowed.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_create_user_and_token_with_custom_validity_under_minimum_allowed.yaml @@ -9,13 +9,13 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.2.1 Python/3.7.9 (Windows-10-10.0.22621-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.7.9 (Windows-10-10.0.22621-SP0) x-ms-date: - - Thu, 25 Aug 2022 20:04:05 GMT + - Fri, 16 Sep 2022 17:41:40 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"error": {"code": "ValidationError", "message": "ExpiresInMinutes @@ -24,15 +24,15 @@ interactions: api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, 2021-11-01, 2022-06-01, 2022-10-01 content-type: application/json - date: Thu, 25 Aug 2022 20:04:04 GMT - ms-cv: VeMtaBNDK0ulDz9K4lb/1w.0 + date: Fri, 16 Sep 2022 17:41:39 GMT + ms-cv: AStyNrSkCkWq8ptrmjfFqw.0 request-context: appId= strict-transport-security: max-age=2592000 transfer-encoding: chunked x-cache: CONFIG_NOCACHE - x-processing-time: 26ms + x-processing-time: 32ms status: code: 400 message: Bad Request - url: https://test-petrsvihlik.ppe.communication.azure.net/identities?api-version=2022-10-01 + url: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 version: 1 diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_create_user_and_token_with_no_scopes.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_create_user_and_token_with_no_scopes.yaml index 0f3484e78d3f..d60ee0b10134 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_create_user_and_token_with_no_scopes.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_create_user_and_token_with_no_scopes.yaml @@ -9,30 +9,29 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.2.1 Python/3.7.9 (Windows-10-10.0.22621-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.7.9 (Windows-10-10.0.22621-SP0) x-ms-date: - - Thu, 25 Aug 2022 20:04:05 GMT + - Fri, 16 Sep 2022 17:41:40 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: - string: '{"error": {"code": "ValidationError", "message": "CreateTokenWithScopes - value is missing.", "target": "CreateTokenWithScopes"}}' + string: '{"identity": {"id": "sanitized"}}' headers: api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, 2021-11-01, 2022-06-01, 2022-10-01 - content-type: application/json - date: Thu, 25 Aug 2022 20:04:05 GMT - ms-cv: DXD+Hgj3R0uYy4Xfu82xqA.0 + content-length: '101' + content-type: application/json; charset=utf-8 + date: Fri, 16 Sep 2022 17:41:40 GMT + ms-cv: FnpQYfU2YUeqvk6H5AyO0A.0 request-context: appId= strict-transport-security: max-age=2592000 - transfer-encoding: chunked x-cache: CONFIG_NOCACHE - x-processing-time: 30ms + x-processing-time: 32ms status: - code: 400 - message: Bad Request - url: https://test-petrsvihlik.ppe.communication.azure.net/identities?api-version=2022-10-01 + code: 201 + message: Created + url: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 version: 1 diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_create_user_from_managed_identity.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_create_user_from_managed_identity.yaml index 3b487d70da56..ced3954c9a50 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_create_user_from_managed_identity.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_create_user_from_managed_identity.yaml @@ -7,9 +7,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.2.1 Python/3.7.9 (Windows-10-10.0.22621-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.7.9 (Windows-10-10.0.22621-SP0) method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity": {"id": "sanitized"}}' @@ -18,14 +18,14 @@ interactions: 2021-10-31-preview, 2021-11-01, 2022-06-01, 2022-10-01 content-length: '101' content-type: application/json; charset=utf-8 - date: Thu, 25 Aug 2022 20:04:06 GMT - ms-cv: x3M+5mCS9kCR3QMKevicOw.0 + date: Fri, 16 Sep 2022 17:41:40 GMT + ms-cv: dpVHvTmYkUOFt57G95/Cpg.0 request-context: appId= strict-transport-security: max-age=2592000 x-cache: CONFIG_NOCACHE - x-processing-time: 193ms + x-processing-time: 31ms status: code: 201 message: Created - url: https://test-petrsvihlik.ppe.communication.azure.net/identities?api-version=2022-10-01 + url: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 version: 1 diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_delete_user.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_delete_user.yaml index 096efde0f116..64e5bc10c93d 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_delete_user.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_delete_user.yaml @@ -7,13 +7,13 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.2.1 Python/3.7.9 (Windows-10-10.0.22621-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.7.9 (Windows-10-10.0.22621-SP0) x-ms-date: - - Thu, 25 Aug 2022 20:04:06 GMT + - Fri, 16 Sep 2022 17:41:41 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity": {"id": "sanitized"}}' @@ -22,43 +22,43 @@ interactions: 2021-10-31-preview, 2021-11-01, 2022-06-01, 2022-10-01 content-length: '101' content-type: application/json; charset=utf-8 - date: Thu, 25 Aug 2022 20:04:05 GMT - ms-cv: 9dpFfOjkQU2sfi05B2uwNg.0 + date: Fri, 16 Sep 2022 17:41:41 GMT + ms-cv: IM4qmtq09EOGo+uLSNOrPA.0 request-context: appId= strict-transport-security: max-age=2592000 x-cache: CONFIG_NOCACHE - x-processing-time: 44ms + x-processing-time: 34ms status: code: 201 message: Created - url: https://test-petrsvihlik.ppe.communication.azure.net/identities?api-version=2022-10-01 + url: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 - request: body: '' headers: Accept: - application/json User-Agent: - - azsdk-python-communication-identity/1.2.1 Python/3.7.9 (Windows-10-10.0.22621-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.7.9 (Windows-10-10.0.22621-SP0) x-ms-date: - - Thu, 25 Aug 2022 20:04:06 GMT + - Fri, 16 Sep 2022 17:41:41 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-10-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, 2021-11-01, 2022-06-01, 2022-10-01 - date: Thu, 25 Aug 2022 20:04:06 GMT - ms-cv: S9OvRcNALk2jU3tbih623g.0 + date: Fri, 16 Sep 2022 17:41:41 GMT + ms-cv: YVLq6hIeI0efbYvyQJG1Dg.0 request-context: appId= strict-transport-security: max-age=2592000 x-cache: CONFIG_NOCACHE - x-processing-time: 463ms + x-processing-time: 208ms status: code: 204 message: No Content - url: https://test-petrsvihlik.ppe.communication.azure.net/identities/sanitized?api-version=2022-10-01 + url: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 version: 1 diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_delete_user_from_managed_identity.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_delete_user_from_managed_identity.yaml index 889e92376953..e620418dabe7 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_delete_user_from_managed_identity.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_delete_user_from_managed_identity.yaml @@ -7,9 +7,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.2.1 Python/3.7.9 (Windows-10-10.0.22621-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.7.9 (Windows-10-10.0.22621-SP0) method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity": {"id": "sanitized"}}' @@ -18,39 +18,39 @@ interactions: 2021-10-31-preview, 2021-11-01, 2022-06-01, 2022-10-01 content-length: '101' content-type: application/json; charset=utf-8 - date: Thu, 25 Aug 2022 20:04:07 GMT - ms-cv: EauQ0z2eIUCi4Aqbo5yGsA.0 + date: Fri, 16 Sep 2022 17:41:41 GMT + ms-cv: 8NDShylRz0mL5d0eDvcTBA.0 request-context: appId= strict-transport-security: max-age=2592000 x-cache: CONFIG_NOCACHE - x-processing-time: 43ms + x-processing-time: 276ms status: code: 201 message: Created - url: https://test-petrsvihlik.ppe.communication.azure.net/identities?api-version=2022-10-01 + url: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 - request: body: null headers: Accept: - application/json User-Agent: - - azsdk-python-communication-identity/1.2.1 Python/3.7.9 (Windows-10-10.0.22621-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.7.9 (Windows-10-10.0.22621-SP0) method: DELETE - uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-10-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, 2021-11-01, 2022-06-01, 2022-10-01 - date: Thu, 25 Aug 2022 20:04:07 GMT - ms-cv: z/kweuQUbkaIY+yzK6LtOg.0 + date: Fri, 16 Sep 2022 17:41:42 GMT + ms-cv: +kfT1bH3I0uu9Ln/3lmNdQ.0 request-context: appId= strict-transport-security: max-age=2592000 x-cache: CONFIG_NOCACHE - x-processing-time: 157ms + x-processing-time: 248ms status: code: 204 message: No Content - url: https://test-petrsvihlik.ppe.communication.azure.net/identities/sanitized?api-version=2022-10-01 + url: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 version: 1 diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token.yaml index 6f2e188fbbf0..fe0a64b40f75 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token.yaml @@ -7,13 +7,13 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.2.1 Python/3.7.9 (Windows-10-10.0.22621-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.7.9 (Windows-10-10.0.22621-SP0) x-ms-date: - - Thu, 25 Aug 2022 20:04:08 GMT + - Fri, 16 Sep 2022 17:41:43 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity": {"id": "sanitized"}}' @@ -22,8 +22,8 @@ interactions: 2021-10-31-preview, 2021-11-01, 2022-06-01, 2022-10-01 content-length: '101' content-type: application/json; charset=utf-8 - date: Thu, 25 Aug 2022 20:04:07 GMT - ms-cv: x8msplLrS0a88tRh7i0CXg.0 + date: Fri, 16 Sep 2022 17:41:43 GMT + ms-cv: weDnPvBlJUa6egPCFj42mg.0 request-context: appId= strict-transport-security: max-age=2592000 x-cache: CONFIG_NOCACHE @@ -31,7 +31,7 @@ interactions: status: code: 201 message: Created - url: https://test-petrsvihlik.ppe.communication.azure.net/identities?api-version=2022-10-01 + url: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 - request: body: '{"scopes": ["chat"]}' headers: @@ -42,29 +42,29 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.2.1 Python/3.7.9 (Windows-10-10.0.22621-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.7.9 (Windows-10-10.0.22621-SP0) x-ms-date: - - Thu, 25 Aug 2022 20:04:08 GMT + - Fri, 16 Sep 2022 17:41:43 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2022-10-01 + uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2022-10-01 response: body: - string: '{"token": "sanitized", "expiresOn": "2022-08-26T20:04:08.7365911+00:00"}' + string: '{"token": "sanitized", "expiresOn": "2022-09-17T17:41:43.6397144+00:00"}' headers: api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, 2021-11-01, 2022-06-01, 2022-10-01 content-length: '804' content-type: application/json; charset=utf-8 - date: Thu, 25 Aug 2022 20:04:08 GMT - ms-cv: whuW/D+5WUWw+UERP3B1Vw.0 + date: Fri, 16 Sep 2022 17:41:43 GMT + ms-cv: gXtinFq6h0uM7nNV0xwwQw.0 request-context: appId= strict-transport-security: max-age=2592000 x-cache: CONFIG_NOCACHE - x-processing-time: 44ms + x-processing-time: 42ms status: code: 200 message: OK - url: https://test-petrsvihlik.ppe.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2022-10-01 + url: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2022-10-01 version: 1 diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_for_teams_user_from_managed_identity.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_for_teams_user_from_managed_identity.yaml index c90e38a50bd6..9bc34887567e 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_for_teams_user_from_managed_identity.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_for_teams_user_from_managed_identity.yaml @@ -9,8 +9,8 @@ interactions: Connection: - keep-alive Cookie: - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrEFan2pjZXWG1yNkKXAsuh8dI8VkdNYZ3SIUf3qNRlfMTvf6LbXAQ-KtXntpYwSgzlovloQzr3a8cZxo0MihcR1_B8zNyxbgfDoWbHV_LMkrfI0mZ_8toMlske-9XmHphyZ9yZUTvzW_REuawe4GWHFLkpyuePPoirsx15XIXOCMgAA; - fpc=Am69xJ1ctddEhupaW0qau58; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd + - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr3fhKvxTVqBvFDiAvxHOBmH5M8JBCt9_us61isVvOgBp8r-B9TgHkWgz8_UUisVKZ1xiF4xmIruEBg0ze4PDtv9OD_9jYpnmUQ6XfGws7Nvh8LwWuNuOu6nUrQuyppeyiU2pyh1-H0NQOXGdXqvbpZrDV1SZKXsZjyCl_YI0igrUgAA; + fpc=Au92HHIPllxNuMRagl1h8AE; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd User-Agent: - python-requests/2.28.1 method: GET @@ -29,7 +29,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 25 Aug 2022 20:04:08 GMT + - Fri, 16 Sep 2022 17:41:43 GMT expires: - '-1' p3p: @@ -37,7 +37,7 @@ interactions: pragma: - no-cache set-cookie: - - fpc=Am69xJ1ctddEhupaW0qau58; expires=Sat, 24-Sep-2022 20:04:09 GMT; path=/; + - fpc=Au92HHIPllxNuMRagl1h8AE; expires=Sun, 16-Oct-2022 17:41:44 GMT; path=/; secure; HttpOnly; SameSite=None - x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly - stsservicecookie=estsfd; path=/; secure; samesite=none; httponly @@ -46,7 +46,7 @@ interactions: x-content-type-options: - nosniff x-ms-ests-server: - - 2.1.13481.11 - WEULR1 ProdSlices + - 2.1.13622.7 - NEULR2 ProdSlices x-xss-protection: - '0' status: @@ -62,24 +62,24 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.2.1 Python/3.7.9 (Windows-10-10.0.22621-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.7.9 (Windows-10-10.0.22621-SP0) method: POST - uri: https://sanitized.ppe.communication.azure.net/teamsUser/:exchangeAccessToken?api-version=2022-10-01 + uri: https://sanitized.communication.azure.com/teamsUser/:exchangeAccessToken?api-version=2022-10-01 response: body: - string: '{"token": "sanitized", "expiresOn": "2022-08-25T21:18:05.5434897+00:00"}' + string: '{"token": "sanitized", "expiresOn": "2022-09-16T19:04:55.2347562+00:00"}' headers: api-supported-versions: 2021-10-31-preview, 2022-06-01, 2022-10-01 content-length: '824' content-type: application/json; charset=utf-8 - date: Thu, 25 Aug 2022 20:04:09 GMT - ms-cv: pUxJQp/PzUGOTujFsQNiVw.0 + date: Fri, 16 Sep 2022 17:41:45 GMT + ms-cv: GxbY2znNW02c0zaj9BsxRA.0 request-context: appId= strict-transport-security: max-age=2592000 x-cache: CONFIG_NOCACHE - x-processing-time: 548ms + x-processing-time: 500ms status: code: 200 message: OK - url: https://test-petrsvihlik.ppe.communication.azure.net/teamsUser/:exchangeAccessToken?api-version=2022-10-01 + url: https://sanitized.communication.azure.com/teamsUser/:exchangeAccessToken?api-version=2022-10-01 version: 1 diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_for_teams_user_with_empty_client_id.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_for_teams_user_with_empty_client_id.yaml index 78366bd688bb..0f00e66040ec 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_for_teams_user_with_empty_client_id.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_for_teams_user_with_empty_client_id.yaml @@ -9,8 +9,8 @@ interactions: Connection: - keep-alive Cookie: - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrH2EP_G7QWudzpvgt3NkszGUxET0ULbfC_Fi0kVAdasyL2IzNCRSSH736cgO3JVUEQC2By2n-mHCMsxa3CPfkht_N0KWBUnUp2twKA9UrJX43v1zhI-j2Nku8_tAT-cZw7eOo1Mv9qpKvPHhcLPF6p1jHlWNvnwHY-9kvsLcB9SUgAA; - fpc=AmYDLNioUsZHmlhG53z7q6o; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd + - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevro4CcF6uKukCr7G3OdRQTH9jrAyCWKOCYOv1sg5DAtZs-BOVXEBY6axvNfyTg0hYf-WXgdprC2ql-Ay5afy1UgdFB6kd9Gna9bDNmU5Rwyzt8kPjcZ7SB0jA3tOP4lr16A881GSAMH5xbtTD1-mL0UQYaRAA5cH6DhH4ygIGXIbMgAA; + fpc=AjUMrHOZyppJnkm5GdEZydA; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd User-Agent: - python-requests/2.28.1 method: GET @@ -29,7 +29,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 25 Aug 2022 20:04:10 GMT + - Fri, 16 Sep 2022 17:41:45 GMT expires: - '-1' p3p: @@ -37,7 +37,7 @@ interactions: pragma: - no-cache set-cookie: - - fpc=AmYDLNioUsZHmlhG53z7q6o; expires=Sat, 24-Sep-2022 20:04:10 GMT; path=/; + - fpc=AjUMrHOZyppJnkm5GdEZydA; expires=Sun, 16-Oct-2022 17:41:45 GMT; path=/; secure; HttpOnly; SameSite=None - x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly - stsservicecookie=estsfd; path=/; secure; samesite=none; httponly @@ -46,7 +46,7 @@ interactions: x-content-type-options: - nosniff x-ms-ests-server: - - 2.1.13481.11 - NEULR1 ProdSlices + - 2.1.13622.7 - NEULR1 ProdSlices x-xss-protection: - '0' status: @@ -62,28 +62,28 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.2.1 Python/3.7.9 (Windows-10-10.0.22621-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.7.9 (Windows-10-10.0.22621-SP0) x-ms-date: - - Thu, 25 Aug 2022 20:04:11 GMT + - Fri, 16 Sep 2022 17:41:45 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/teamsUser/:exchangeAccessToken?api-version=2022-10-01 + uri: https://sanitized.communication.azure.com/teamsUser/:exchangeAccessToken?api-version=2022-10-01 response: body: string: '{"error": {"code": "ValidationError", "message": "AppId: The AppId field is required.", "target": "AppId"}}' headers: content-type: application/json - date: Thu, 25 Aug 2022 20:04:10 GMT - ms-cv: 45T2jkDVGUq3RhAbC2t8eg.0 + date: Fri, 16 Sep 2022 17:41:45 GMT + ms-cv: 4CDilMG4M0STFf5sZ2Gyeg.0 request-context: appId= strict-transport-security: max-age=2592000 transfer-encoding: chunked x-cache: CONFIG_NOCACHE - x-processing-time: 42ms + x-processing-time: 37ms status: code: 400 message: Bad Request - url: https://test-petrsvihlik.ppe.communication.azure.net/teamsUser/:exchangeAccessToken?api-version=2022-10-01 + url: https://sanitized.communication.azure.com/teamsUser/:exchangeAccessToken?api-version=2022-10-01 version: 1 diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_for_teams_user_with_empty_token.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_for_teams_user_with_empty_token.yaml index 925c08282ca5..44c6eaa93e89 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_for_teams_user_with_empty_token.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_for_teams_user_with_empty_token.yaml @@ -9,28 +9,28 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.2.1 Python/3.7.9 (Windows-10-10.0.22621-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.7.9 (Windows-10-10.0.22621-SP0) x-ms-date: - - Thu, 25 Aug 2022 20:04:11 GMT + - Fri, 16 Sep 2022 17:41:46 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/teamsUser/:exchangeAccessToken?api-version=2022-10-01 + uri: https://sanitized.communication.azure.com/teamsUser/:exchangeAccessToken?api-version=2022-10-01 response: body: string: '{"error": {"code": "InvalidAccessToken", "message": "Provided access token is not valid."}}' headers: content-type: application/json - date: Thu, 25 Aug 2022 20:04:11 GMT - ms-cv: RQzGjaldg0OOVHpb54MJ9Q.0 + date: Fri, 16 Sep 2022 17:41:46 GMT + ms-cv: hl/IXcgYn0yly4kvUwb0Mg.0 request-context: appId= strict-transport-security: max-age=2592000 transfer-encoding: chunked x-cache: CONFIG_NOCACHE - x-processing-time: 25ms + x-processing-time: 27ms status: code: 401 message: Unauthorized - url: https://test-petrsvihlik.ppe.communication.azure.net/teamsUser/:exchangeAccessToken?api-version=2022-10-01 + url: https://sanitized.communication.azure.com/teamsUser/:exchangeAccessToken?api-version=2022-10-01 version: 1 diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_for_teams_user_with_empty_user_object_id.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_for_teams_user_with_empty_user_object_id.yaml index cc9af61c565e..d5e3b1622a70 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_for_teams_user_with_empty_user_object_id.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_for_teams_user_with_empty_user_object_id.yaml @@ -9,8 +9,8 @@ interactions: Connection: - keep-alive Cookie: - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrRI-7JU7PcDNaiOFi75vlWH_YL2JCJqoF6l5hRV-POibSw5UIphwIKt9VTRNuEWQe9kQZEKRJ344emFBnKTYOnKjaC5kB2OPdlaqNynj8ocvc-aI73W613e4JH4ZtkvBqpPg3Y2fxK2ZYoDw0MhrUYH5PLWOPCMxOXVYUTs6JvdEgAA; - fpc=AkK3Q7HxhUJDrNRAuNVsz_4; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd + - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr3799T4YpyADSxwt4GkFhUQaYyGyPKT8G2q2a2aEp9ztPNogPKA0Vvsm9-N_qByw390VxeZda-p35jBzwS-LagUyV8zq5tkWG2C0CDkCa7a9uBmk669RjtzHznX-9lkRpNbIftuxMQ71a9w1-IxpUojYA0YjE4M7kV8WkbcAIG-4gAA; + fpc=AhY5rBpqfvZFrKTEjzMp1No; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd User-Agent: - python-requests/2.28.1 method: GET @@ -29,7 +29,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 25 Aug 2022 20:04:11 GMT + - Fri, 16 Sep 2022 17:41:45 GMT expires: - '-1' p3p: @@ -37,7 +37,7 @@ interactions: pragma: - no-cache set-cookie: - - fpc=AkK3Q7HxhUJDrNRAuNVsz_4; expires=Sat, 24-Sep-2022 20:04:11 GMT; path=/; + - fpc=AhY5rBpqfvZFrKTEjzMp1No; expires=Sun, 16-Oct-2022 17:41:46 GMT; path=/; secure; HttpOnly; SameSite=None - x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly - stsservicecookie=estsfd; path=/; secure; samesite=none; httponly @@ -46,7 +46,7 @@ interactions: x-content-type-options: - nosniff x-ms-ests-server: - - 2.1.13481.11 - NEULR2 ProdSlices + - 2.1.13622.7 - NEULR2 ProdSlices x-xss-protection: - '0' status: @@ -62,28 +62,28 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.2.1 Python/3.7.9 (Windows-10-10.0.22621-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.7.9 (Windows-10-10.0.22621-SP0) x-ms-date: - - Thu, 25 Aug 2022 20:04:12 GMT + - Fri, 16 Sep 2022 17:41:46 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/teamsUser/:exchangeAccessToken?api-version=2022-10-01 + uri: https://sanitized.communication.azure.com/teamsUser/:exchangeAccessToken?api-version=2022-10-01 response: body: string: '{"error": {"code": "ValidationError", "message": "UserId: The UserId field is required.", "target": "UserId"}}' headers: content-type: application/json - date: Thu, 25 Aug 2022 20:04:11 GMT - ms-cv: xpe91dURkEKaFFdi/k8QMA.0 + date: Fri, 16 Sep 2022 17:41:46 GMT + ms-cv: zAjYSmi/Q0mV78xwOxl/CQ.0 request-context: appId= strict-transport-security: max-age=2592000 transfer-encoding: chunked x-cache: CONFIG_NOCACHE - x-processing-time: 40ms + x-processing-time: 33ms status: code: 400 message: Bad Request - url: https://test-petrsvihlik.ppe.communication.azure.net/teamsUser/:exchangeAccessToken?api-version=2022-10-01 + url: https://sanitized.communication.azure.com/teamsUser/:exchangeAccessToken?api-version=2022-10-01 version: 1 diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_for_teams_user_with_expired_token.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_for_teams_user_with_expired_token.yaml index 3920a4531bcc..db08c3ac50ed 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_for_teams_user_with_expired_token.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_for_teams_user_with_expired_token.yaml @@ -9,8 +9,8 @@ interactions: Connection: - keep-alive Cookie: - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrrlrdroiYE6U1BcKokwomrzdL3U-HxP9WkcrfqeWHSiRdgqJTNO0a_C56ptFf_q4oQqpP09I9Hxs0mx__aq0VzY6WFhthpco-L0xltcKdXze7v9sSgfqUHplLLUd5N9zQuGlWCn32ldg1ebeFoeBpD3ZCOCsPKUP5WgmIImAujZEgAA; - fpc=AlQFluSERTNPgYx66JP05zc; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd + - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevrg7ETCs5iQz84Auw3WVdr1r4fuF93kfoe1BgEE01M2sGlkcavTF6HQhNfXE5Me80ksSvkw-atR-cX6ybL3fi0gYT5PBU6d0m6lG9R9gNfXeY3hOnZHXilfAsQqJKg6yqzbHYEcpPlYrg10m09SL9xG-ace58nOWoFmGBaLGfnaDwgAA; + fpc=Ass0eC0y7h1Ev-3H4CnSi6g; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd User-Agent: - python-requests/2.28.1 method: GET @@ -29,7 +29,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 25 Aug 2022 20:04:12 GMT + - Fri, 16 Sep 2022 17:41:46 GMT expires: - '-1' p3p: @@ -37,7 +37,7 @@ interactions: pragma: - no-cache set-cookie: - - fpc=AlQFluSERTNPgYx66JP05zc; expires=Sat, 24-Sep-2022 20:04:12 GMT; path=/; + - fpc=Ass0eC0y7h1Ev-3H4CnSi6g; expires=Sun, 16-Oct-2022 17:41:47 GMT; path=/; secure; HttpOnly; SameSite=None - x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly - stsservicecookie=estsfd; path=/; secure; samesite=none; httponly @@ -46,7 +46,7 @@ interactions: x-content-type-options: - nosniff x-ms-ests-server: - - 2.1.13481.11 - WEULR2 ProdSlices + - 2.1.13622.7 - NEULR2 ProdSlices x-xss-protection: - '0' status: @@ -62,28 +62,28 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.2.1 Python/3.7.9 (Windows-10-10.0.22621-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.7.9 (Windows-10-10.0.22621-SP0) x-ms-date: - - Thu, 25 Aug 2022 20:04:12 GMT + - Fri, 16 Sep 2022 17:41:47 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/teamsUser/:exchangeAccessToken?api-version=2022-10-01 + uri: https://sanitized.communication.azure.com/teamsUser/:exchangeAccessToken?api-version=2022-10-01 response: body: string: '{"error": {"code": "InvalidAccessToken", "message": "Provided access token is not valid."}}' headers: content-type: application/json - date: Thu, 25 Aug 2022 20:04:12 GMT - ms-cv: oYCstAVOs0aBgx834Glnjg.0 + date: Fri, 16 Sep 2022 17:41:47 GMT + ms-cv: SZ+1xqblTkyUmAHuT0NaxQ.0 request-context: appId= strict-transport-security: max-age=2592000 transfer-encoding: chunked x-cache: CONFIG_NOCACHE - x-processing-time: 104ms + x-processing-time: 44ms status: code: 401 message: Unauthorized - url: https://test-petrsvihlik.ppe.communication.azure.net/teamsUser/:exchangeAccessToken?api-version=2022-10-01 + url: https://sanitized.communication.azure.com/teamsUser/:exchangeAccessToken?api-version=2022-10-01 version: 1 diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_for_teams_user_with_invalid_client_id.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_for_teams_user_with_invalid_client_id.yaml index 7a414fe95991..45ec822ae845 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_for_teams_user_with_invalid_client_id.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_for_teams_user_with_invalid_client_id.yaml @@ -9,8 +9,8 @@ interactions: Connection: - keep-alive Cookie: - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevrai_uk0huEvLcQ6YXW02i_Hpt_gtbc1jLwCfHO1CzRQy4luUA7cn9O04omLjjceM-P_zT1PaQ4idZkzDFFsK6NKAtfSDm57XaeT-HoPxdfYz52SQZZcg3KZhGw9-DR7xUH8_w_8vLc1vMJWkm5G44aOoeh9Uq8pnhFpTN0Gt-vuIgAA; - fpc=AjhVmIvcfl5Hv4oAZN6LAuw; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd + - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrkOnRyoSSrSlKWOVchYm2LKFRPkGomSmgDsd11U88OE7AfhmoZFNf148ClF9sfEkSZtsHK4zjKMOF7MDzye9ZjP7QgRdfHLUZSDs6gkTAoRwvGuoGuNPPwpjrBUXiJ7cqdh3NSElh5XZQS_WZWXW9r94VC1u2Lmla-m4OjS-mGecgAA; + fpc=AqOF6XI5N71NhbdG1tQ_3HE; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd User-Agent: - python-requests/2.28.1 method: GET @@ -29,7 +29,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 25 Aug 2022 20:04:12 GMT + - Fri, 16 Sep 2022 17:41:47 GMT expires: - '-1' p3p: @@ -37,7 +37,7 @@ interactions: pragma: - no-cache set-cookie: - - fpc=AjhVmIvcfl5Hv4oAZN6LAuw; expires=Sat, 24-Sep-2022 20:04:13 GMT; path=/; + - fpc=AqOF6XI5N71NhbdG1tQ_3HE; expires=Sun, 16-Oct-2022 17:41:48 GMT; path=/; secure; HttpOnly; SameSite=None - x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly - stsservicecookie=estsfd; path=/; secure; samesite=none; httponly @@ -46,7 +46,7 @@ interactions: x-content-type-options: - nosniff x-ms-ests-server: - - 2.1.13481.11 - NEULR1 ProdSlices + - 2.1.13622.7 - NEULR2 ProdSlices x-xss-protection: - '0' status: @@ -62,13 +62,13 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.2.1 Python/3.7.9 (Windows-10-10.0.22621-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.7.9 (Windows-10-10.0.22621-SP0) x-ms-date: - - Thu, 25 Aug 2022 20:04:13 GMT + - Fri, 16 Sep 2022 17:41:48 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/teamsUser/:exchangeAccessToken?api-version=2022-10-01 + uri: https://sanitized.communication.azure.com/teamsUser/:exchangeAccessToken?api-version=2022-10-01 response: body: string: '{"error": {"code": "ValidationError", "message": "Provided AppId has @@ -76,15 +76,15 @@ interactions: headers: api-supported-versions: 2021-10-31-preview, 2022-06-01, 2022-10-01 content-type: application/json - date: Thu, 25 Aug 2022 20:04:13 GMT - ms-cv: vZuN4Ic3iUG8dL9D8oad/g.0 + date: Fri, 16 Sep 2022 17:41:47 GMT + ms-cv: h9GA0AZSsEC8ptAnVFcr1w.0 request-context: appId= strict-transport-security: max-age=2592000 transfer-encoding: chunked x-cache: CONFIG_NOCACHE - x-processing-time: 44ms + x-processing-time: 37ms status: code: 400 message: Bad Request - url: https://test-petrsvihlik.ppe.communication.azure.net/teamsUser/:exchangeAccessToken?api-version=2022-10-01 + url: https://sanitized.communication.azure.com/teamsUser/:exchangeAccessToken?api-version=2022-10-01 version: 1 diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_for_teams_user_with_invalid_token.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_for_teams_user_with_invalid_token.yaml index eadaf2f9742c..a0dc4bcf841e 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_for_teams_user_with_invalid_token.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_for_teams_user_with_invalid_token.yaml @@ -9,28 +9,28 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.2.1 Python/3.7.9 (Windows-10-10.0.22621-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.7.9 (Windows-10-10.0.22621-SP0) x-ms-date: - - Thu, 25 Aug 2022 20:04:13 GMT + - Fri, 16 Sep 2022 17:41:48 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/teamsUser/:exchangeAccessToken?api-version=2022-10-01 + uri: https://sanitized.communication.azure.com/teamsUser/:exchangeAccessToken?api-version=2022-10-01 response: body: string: '{"error": {"code": "InvalidAccessToken", "message": "Provided access token is not valid."}}' headers: content-type: application/json - date: Thu, 25 Aug 2022 20:04:13 GMT - ms-cv: A/R5Zt/dA0y+5M3Xdz8zMQ.0 + date: Fri, 16 Sep 2022 17:41:48 GMT + ms-cv: oWLg5xBoVkeqLcG/KwgofA.0 request-context: appId= strict-transport-security: max-age=2592000 transfer-encoding: chunked x-cache: CONFIG_NOCACHE - x-processing-time: 26ms + x-processing-time: 25ms status: code: 401 message: Unauthorized - url: https://test-petrsvihlik.ppe.communication.azure.net/teamsUser/:exchangeAccessToken?api-version=2022-10-01 + url: https://sanitized.communication.azure.com/teamsUser/:exchangeAccessToken?api-version=2022-10-01 version: 1 diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_for_teams_user_with_invalid_user_object_id.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_for_teams_user_with_invalid_user_object_id.yaml index 72c5e3956a48..79efbc23a614 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_for_teams_user_with_invalid_user_object_id.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_for_teams_user_with_invalid_user_object_id.yaml @@ -9,8 +9,8 @@ interactions: Connection: - keep-alive Cookie: - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevraUahFT-YxqfCGrVVNstCzWrLRViNLz4c3fdQeCRzIjK5ODOrSHJyg5eT_a-_oyOTGqf6e_w2z4VaMCT-FsCgHV9Ni3ManPFSezOiVyzh8GVsgbtKBg9WkRRbQtrIVaPcoKQOe1RRTctZbQK77tAQ83CiyBBeKpfRhMK7sQNLBvggAA; - fpc=AhcRyHfOBUZHnupLQunlZaI; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd + - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrtG_mQ4PHWvah-x2-_wbYSXUa21joo8qoUdAbA6OWP0Ryl6j8NI2wr8ZGNGRfbIKF_tpm8QFmuv9TXSrnbRv2wE_n1gZXXfEs1N6v8I3rEb-bM15gVxDcbD17RxTNCUtnC9BIC4PaeyE0M3p66r0bs3SOk2HQToyW5slAVnXvincgAA; + fpc=AmQBdwKO7ptJigPEia95W70; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd User-Agent: - python-requests/2.28.1 method: GET @@ -29,7 +29,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 25 Aug 2022 20:04:13 GMT + - Fri, 16 Sep 2022 17:41:48 GMT expires: - '-1' p3p: @@ -37,7 +37,7 @@ interactions: pragma: - no-cache set-cookie: - - fpc=AhcRyHfOBUZHnupLQunlZaI; expires=Sat, 24-Sep-2022 20:04:14 GMT; path=/; + - fpc=AmQBdwKO7ptJigPEia95W70; expires=Sun, 16-Oct-2022 17:41:49 GMT; path=/; secure; HttpOnly; SameSite=None - x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly - stsservicecookie=estsfd; path=/; secure; samesite=none; httponly @@ -46,7 +46,7 @@ interactions: x-content-type-options: - nosniff x-ms-ests-server: - - 2.1.13481.11 - WEULR2 ProdSlices + - 2.1.13622.7 - NEULR2 ProdSlices x-xss-protection: - '0' status: @@ -62,13 +62,13 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.2.1 Python/3.7.9 (Windows-10-10.0.22621-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.7.9 (Windows-10-10.0.22621-SP0) x-ms-date: - - Thu, 25 Aug 2022 20:04:14 GMT + - Fri, 16 Sep 2022 17:41:49 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/teamsUser/:exchangeAccessToken?api-version=2022-10-01 + uri: https://sanitized.communication.azure.com/teamsUser/:exchangeAccessToken?api-version=2022-10-01 response: body: string: '{"error": {"code": "ValidationError", "message": "Provided UserId has @@ -76,15 +76,15 @@ interactions: headers: api-supported-versions: 2021-10-31-preview, 2022-06-01, 2022-10-01 content-type: application/json - date: Thu, 25 Aug 2022 20:04:14 GMT - ms-cv: vQPNA97MZk659Y2t2Ls4fQ.0 + date: Fri, 16 Sep 2022 17:41:49 GMT + ms-cv: XRtZ82QsO0SSdG76oI7OUQ.0 request-context: appId= strict-transport-security: max-age=2592000 transfer-encoding: chunked x-cache: CONFIG_NOCACHE - x-processing-time: 33ms + x-processing-time: 35ms status: code: 400 message: Bad Request - url: https://test-petrsvihlik.ppe.communication.azure.net/teamsUser/:exchangeAccessToken?api-version=2022-10-01 + url: https://sanitized.communication.azure.com/teamsUser/:exchangeAccessToken?api-version=2022-10-01 version: 1 diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_for_teams_user_with_valid_params.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_for_teams_user_with_valid_params.yaml index 816f1c9e73c3..2e6d12e65ff3 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_for_teams_user_with_valid_params.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_for_teams_user_with_valid_params.yaml @@ -9,8 +9,8 @@ interactions: Connection: - keep-alive Cookie: - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrG4nRewN8Abb0U5OzpgVdop01bd-byb8Z-IIcG_t1DhEOTeFise_pj1KYOo_UZbFvHKcDUX5NqZqHN1CInyu6iEYenHywoGtISNpffVBY1pYalSADMOYxU_WSou5Ieruba4tJuptqKOlK6IVPyu947zQV9Gz1b8LsUzbA_A9l6nkgAA; - fpc=AhcPlrRDP41NppSq_Gk36FE; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd + - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrA7eetbabsIqXJmQ4fXDyHBP0Cn6ZO8HJ7aaUh1oEViUqnKQJlJj_ZhL1IVP-JtuWtRaYsZnWS_9qeO8o9G3P1vE4fsKrDEBLGECcACCGglUFjUciBQSHz3QkGEJE6CZ6cBVli4QFQvs1z00FylHY-Fkt8yuwrALv-dBl47WnPCcgAA; + fpc=AphLEQtOGcNBi7cqMl2MZ5U; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd User-Agent: - python-requests/2.28.1 method: GET @@ -29,7 +29,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 25 Aug 2022 20:04:14 GMT + - Fri, 16 Sep 2022 17:41:49 GMT expires: - '-1' p3p: @@ -37,7 +37,7 @@ interactions: pragma: - no-cache set-cookie: - - fpc=AhcPlrRDP41NppSq_Gk36FE; expires=Sat, 24-Sep-2022 20:04:15 GMT; path=/; + - fpc=AphLEQtOGcNBi7cqMl2MZ5U; expires=Sun, 16-Oct-2022 17:41:50 GMT; path=/; secure; HttpOnly; SameSite=None - x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly - stsservicecookie=estsfd; path=/; secure; samesite=none; httponly @@ -46,7 +46,7 @@ interactions: x-content-type-options: - nosniff x-ms-ests-server: - - 2.1.13481.11 - WEULR1 ProdSlices + - 2.1.13622.7 - NEULR1 ProdSlices x-xss-protection: - '0' status: @@ -62,28 +62,28 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.2.1 Python/3.7.9 (Windows-10-10.0.22621-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.7.9 (Windows-10-10.0.22621-SP0) x-ms-date: - - Thu, 25 Aug 2022 20:04:15 GMT + - Fri, 16 Sep 2022 17:41:50 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/teamsUser/:exchangeAccessToken?api-version=2022-10-01 + uri: https://sanitized.communication.azure.com/teamsUser/:exchangeAccessToken?api-version=2022-10-01 response: body: - string: '{"token": "sanitized", "expiresOn": "2022-08-25T21:10:37.9813617+00:00"}' + string: '{"token": "sanitized", "expiresOn": "2022-09-16T18:59:30.8120187+00:00"}' headers: api-supported-versions: 2021-10-31-preview, 2022-06-01, 2022-10-01 content-length: '824' content-type: application/json; charset=utf-8 - date: Thu, 25 Aug 2022 20:04:15 GMT - ms-cv: /9LuU4x4/E6r0rJEDAYSkw.0 + date: Fri, 16 Sep 2022 17:41:50 GMT + ms-cv: zNG2LfsEpU6insKOKj2fNw.0 request-context: appId= strict-transport-security: max-age=2592000 x-cache: CONFIG_NOCACHE - x-processing-time: 498ms + x-processing-time: 419ms status: code: 200 message: OK - url: https://test-petrsvihlik.ppe.communication.azure.net/teamsUser/:exchangeAccessToken?api-version=2022-10-01 + url: https://sanitized.communication.azure.com/teamsUser/:exchangeAccessToken?api-version=2022-10-01 version: 1 diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_for_teams_user_with_wrong_client_id.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_for_teams_user_with_wrong_client_id.yaml index 43c894008063..9d9f18d15d57 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_for_teams_user_with_wrong_client_id.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_for_teams_user_with_wrong_client_id.yaml @@ -9,8 +9,8 @@ interactions: Connection: - keep-alive Cookie: - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr2ySDxMdxg9j2S5BjMZOGf0iuyu5nPbzc3mqje1VNJYNVJYhdK3iIEbsOqfXnvSSZlGztugD6dTsTufJ0Eq24zdsmimV41pFoFwtsUKxR58ZMuAE72mW-aVt9LsaRWJog3VTR6rjLv91KtVBoAMtpSMUBH-Kkk_QwQ76NnX8EW9ggAA; - fpc=Ap-lsL6U2BlGns0SA6vRZcw; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd + - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrOfJqMSvtKZ1MwOpE8qEkkSqL5Gu5UWHOSqnlxVX52B6o-_K5_sotV5XBNZCJsOGG7-3wefWjEacjRViOr2PnL9-Op4pyYknDAB3tZobv3FMB-ES4JUlO6-4amzFvO3ViJ2PtjOMN665OL-Pd0GFytXOsqaHCCzGMma6r3mYDvQ0gAA; + fpc=AqYBgY5UD2JJlib6whLsyOM; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd User-Agent: - python-requests/2.28.1 method: GET @@ -29,7 +29,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 25 Aug 2022 20:04:15 GMT + - Fri, 16 Sep 2022 17:41:50 GMT expires: - '-1' p3p: @@ -37,7 +37,7 @@ interactions: pragma: - no-cache set-cookie: - - fpc=Ap-lsL6U2BlGns0SA6vRZcw; expires=Sat, 24-Sep-2022 20:04:16 GMT; path=/; + - fpc=AqYBgY5UD2JJlib6whLsyOM; expires=Sun, 16-Oct-2022 17:41:51 GMT; path=/; secure; HttpOnly; SameSite=None - x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly - stsservicecookie=estsfd; path=/; secure; samesite=none; httponly @@ -46,7 +46,7 @@ interactions: x-content-type-options: - nosniff x-ms-ests-server: - - 2.1.13481.11 - WEULR2 ProdSlices + - 2.1.13622.7 - NEULR1 ProdSlices x-xss-protection: - '0' status: @@ -62,13 +62,13 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.2.1 Python/3.7.9 (Windows-10-10.0.22621-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.7.9 (Windows-10-10.0.22621-SP0) x-ms-date: - - Thu, 25 Aug 2022 20:04:16 GMT + - Fri, 16 Sep 2022 17:41:51 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/teamsUser/:exchangeAccessToken?api-version=2022-10-01 + uri: https://sanitized.communication.azure.com/teamsUser/:exchangeAccessToken?api-version=2022-10-01 response: body: string: '{"error": {"code": "ValidationError", "message": "AAD application is @@ -76,15 +76,15 @@ interactions: headers: api-supported-versions: 2021-10-31-preview, 2022-06-01, 2022-10-01 content-type: application/json - date: Thu, 25 Aug 2022 20:04:15 GMT - ms-cv: SPwRnA7/dEOf3uDvVvtGTQ.0 + date: Fri, 16 Sep 2022 17:41:51 GMT + ms-cv: NrkFhnXK8ki/yPsqpmJzJg.0 request-context: appId= strict-transport-security: max-age=2592000 transfer-encoding: chunked x-cache: CONFIG_NOCACHE - x-processing-time: 55ms + x-processing-time: 34ms status: code: 400 message: Bad Request - url: https://test-petrsvihlik.ppe.communication.azure.net/teamsUser/:exchangeAccessToken?api-version=2022-10-01 + url: https://sanitized.communication.azure.com/teamsUser/:exchangeAccessToken?api-version=2022-10-01 version: 1 diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_for_teams_user_with_wrong_user_object_id.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_for_teams_user_with_wrong_user_object_id.yaml index fa7eaa0561e3..b78983ffa0ac 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_for_teams_user_with_wrong_user_object_id.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_for_teams_user_with_wrong_user_object_id.yaml @@ -9,8 +9,8 @@ interactions: Connection: - keep-alive Cookie: - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrtR5tv34B3Rjf5Po0vOgPv_4ng5IDPXVO67Ews3ZtSHjUx0vQLH2RONpVyB0Quq8C9uVM5uY4wKFbYhjMU3u2SPp9rqCE9ZtFd_ElIK2eGUnbdW2DB4R_1kEWofGvSkulq4R5hQDj_3tWwQIrqLzDANVW6rlSfwbQM26eM96mFy8gAA; - fpc=Al7DCFcHBmZPp6-xpYlGmx8; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd + - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevrj8AkPThcIxOaE2H16BLivYKTj58qQrVAIMC-TgPchqUV8vXm4KWI6INZmhgpEj482vMTg-6zFWfZjduyR7byRLdKemuEoAqb4EroORBV0xzMjJBfxR7s2VqgQXnvVChBB_h3xcrNj8ThZWbHfkir3vGjI_qH5QrCQJimibDB1vsgAA; + fpc=AhXgITHWkl5BrORMWMH_CgA; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd User-Agent: - python-requests/2.28.1 method: GET @@ -29,7 +29,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 25 Aug 2022 20:04:16 GMT + - Fri, 16 Sep 2022 17:41:51 GMT expires: - '-1' p3p: @@ -37,7 +37,7 @@ interactions: pragma: - no-cache set-cookie: - - fpc=Al7DCFcHBmZPp6-xpYlGmx8; expires=Sat, 24-Sep-2022 20:04:17 GMT; path=/; + - fpc=AhXgITHWkl5BrORMWMH_CgA; expires=Sun, 16-Oct-2022 17:41:51 GMT; path=/; secure; HttpOnly; SameSite=None - x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly - stsservicecookie=estsfd; path=/; secure; samesite=none; httponly @@ -46,7 +46,7 @@ interactions: x-content-type-options: - nosniff x-ms-ests-server: - - 2.1.13481.11 - NEULR1 ProdSlices + - 2.1.13622.7 - NEULR1 ProdSlices x-xss-protection: - '0' status: @@ -62,13 +62,13 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.2.1 Python/3.7.9 (Windows-10-10.0.22621-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.7.9 (Windows-10-10.0.22621-SP0) x-ms-date: - - Thu, 25 Aug 2022 20:04:17 GMT + - Fri, 16 Sep 2022 17:41:52 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/teamsUser/:exchangeAccessToken?api-version=2022-10-01 + uri: https://sanitized.communication.azure.com/teamsUser/:exchangeAccessToken?api-version=2022-10-01 response: body: string: '{"error": {"code": "ValidationError", "message": "Provided AAD token @@ -76,8 +76,8 @@ interactions: headers: api-supported-versions: 2021-10-31-preview, 2022-06-01, 2022-10-01 content-type: application/json - date: Thu, 25 Aug 2022 20:04:17 GMT - ms-cv: WVgaCA6HkEK7A57uupNjBg.0 + date: Fri, 16 Sep 2022 17:41:51 GMT + ms-cv: Ah4c8Xsb7U6w7xPxS7PYCg.0 request-context: appId= strict-transport-security: max-age=2592000 transfer-encoding: chunked @@ -86,5 +86,5 @@ interactions: status: code: 400 message: Bad Request - url: https://test-petrsvihlik.ppe.communication.azure.net/teamsUser/:exchangeAccessToken?api-version=2022-10-01 + url: https://sanitized.communication.azure.com/teamsUser/:exchangeAccessToken?api-version=2022-10-01 version: 1 diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_from_managed_identity.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_from_managed_identity.yaml index 1ca34c326b71..8ed5131d8b3c 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_from_managed_identity.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_from_managed_identity.yaml @@ -7,9 +7,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.2.1 Python/3.7.9 (Windows-10-10.0.22621-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.7.9 (Windows-10-10.0.22621-SP0) method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity": {"id": "sanitized"}}' @@ -18,16 +18,16 @@ interactions: 2021-10-31-preview, 2021-11-01, 2022-06-01, 2022-10-01 content-length: '101' content-type: application/json; charset=utf-8 - date: Thu, 25 Aug 2022 20:04:17 GMT - ms-cv: pejZGY42tEWWEB5fp/7twg.0 + date: Fri, 16 Sep 2022 17:41:52 GMT + ms-cv: 6XrpJMctlkmEVMKW67Pc5w.0 request-context: appId= strict-transport-security: max-age=2592000 x-cache: CONFIG_NOCACHE - x-processing-time: 256ms + x-processing-time: 39ms status: code: 201 message: Created - url: https://test-petrsvihlik.ppe.communication.azure.net/identities?api-version=2022-10-01 + url: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 - request: body: '{"scopes": ["chat"]}' headers: @@ -38,25 +38,25 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.2.1 Python/3.7.9 (Windows-10-10.0.22621-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.7.9 (Windows-10-10.0.22621-SP0) method: POST - uri: https://sanitized.ppe.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2022-10-01 + uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2022-10-01 response: body: - string: '{"token": "sanitized", "expiresOn": "2022-08-26T20:04:18.4723124+00:00"}' + string: '{"token": "sanitized", "expiresOn": "2022-09-17T17:41:53.1716352+00:00"}' headers: api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, 2021-11-01, 2022-06-01, 2022-10-01 content-length: '804' content-type: application/json; charset=utf-8 - date: Thu, 25 Aug 2022 20:04:17 GMT - ms-cv: SY2UYVHoKUqA8sLZsszsKg.0 + date: Fri, 16 Sep 2022 17:41:52 GMT + ms-cv: P8/DQajdzE69yqd0NVWbJw.0 request-context: appId= strict-transport-security: max-age=2592000 x-cache: CONFIG_NOCACHE - x-processing-time: 46ms + x-processing-time: 71ms status: code: 200 message: OK - url: https://test-petrsvihlik.ppe.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2022-10-01 + url: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2022-10-01 version: 1 diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_with_custom_maximum_validity.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_with_custom_maximum_validity.yaml index bba3ed1097a0..0baa6f1e15fc 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_with_custom_maximum_validity.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_with_custom_maximum_validity.yaml @@ -7,13 +7,13 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.2.1 Python/3.7.9 (Windows-10-10.0.22621-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.7.9 (Windows-10-10.0.22621-SP0) x-ms-date: - - Thu, 25 Aug 2022 20:04:18 GMT + - Fri, 16 Sep 2022 17:41:53 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity": {"id": "sanitized"}}' @@ -22,16 +22,16 @@ interactions: 2021-10-31-preview, 2021-11-01, 2022-06-01, 2022-10-01 content-length: '101' content-type: application/json; charset=utf-8 - date: Thu, 25 Aug 2022 20:04:18 GMT - ms-cv: SI0NfKboBUeOF6d8FDbMUw.0 + date: Fri, 16 Sep 2022 17:41:53 GMT + ms-cv: 131ExC2u8EG/GTCT0fICtA.0 request-context: appId= strict-transport-security: max-age=2592000 x-cache: CONFIG_NOCACHE - x-processing-time: 35ms + x-processing-time: 40ms status: code: 201 message: Created - url: https://test-petrsvihlik.ppe.communication.azure.net/identities?api-version=2022-10-01 + url: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 - request: body: '{"scopes": ["chat"], "expiresInMinutes": 1440}' headers: @@ -42,29 +42,29 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.2.1 Python/3.7.9 (Windows-10-10.0.22621-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.7.9 (Windows-10-10.0.22621-SP0) x-ms-date: - - Thu, 25 Aug 2022 20:04:18 GMT + - Fri, 16 Sep 2022 17:41:53 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2022-10-01 + uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2022-10-01 response: body: - string: '{"token": "sanitized", "expiresOn": "2022-08-26T20:04:18.9851758+00:00"}' + string: '{"token": "sanitized", "expiresOn": "2022-09-17T17:41:53.7309482+00:00"}' headers: api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, 2021-11-01, 2022-06-01, 2022-10-01 content-length: '804' content-type: application/json; charset=utf-8 - date: Thu, 25 Aug 2022 20:04:18 GMT - ms-cv: XyNNxmw1mEaH2LEAV6pdbg.0 + date: Fri, 16 Sep 2022 17:41:53 GMT + ms-cv: d3uVcg/aZkiJgddD9CW4mg.0 request-context: appId= strict-transport-security: max-age=2592000 x-cache: CONFIG_NOCACHE - x-processing-time: 46ms + x-processing-time: 102ms status: code: 200 message: OK - url: https://test-petrsvihlik.ppe.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2022-10-01 + url: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2022-10-01 version: 1 diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_with_custom_minimum_validity.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_with_custom_minimum_validity.yaml index 95e6250cc2ed..7b7e242f0e56 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_with_custom_minimum_validity.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_with_custom_minimum_validity.yaml @@ -7,13 +7,13 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.2.1 Python/3.7.9 (Windows-10-10.0.22621-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.7.9 (Windows-10-10.0.22621-SP0) x-ms-date: - - Thu, 25 Aug 2022 20:04:19 GMT + - Fri, 16 Sep 2022 17:41:53 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity": {"id": "sanitized"}}' @@ -22,16 +22,16 @@ interactions: 2021-10-31-preview, 2021-11-01, 2022-06-01, 2022-10-01 content-length: '101' content-type: application/json; charset=utf-8 - date: Thu, 25 Aug 2022 20:04:18 GMT - ms-cv: b3UBitTSUkWO/GFx9xkvng.0 + date: Fri, 16 Sep 2022 17:41:53 GMT + ms-cv: E6Z7jhh8+kemKL1Zh95k4A.0 request-context: appId= strict-transport-security: max-age=2592000 x-cache: CONFIG_NOCACHE - x-processing-time: 35ms + x-processing-time: 36ms status: code: 201 message: Created - url: https://test-petrsvihlik.ppe.communication.azure.net/identities?api-version=2022-10-01 + url: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 - request: body: '{"scopes": ["chat"], "expiresInMinutes": 60}' headers: @@ -42,29 +42,29 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.2.1 Python/3.7.9 (Windows-10-10.0.22621-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.7.9 (Windows-10-10.0.22621-SP0) x-ms-date: - - Thu, 25 Aug 2022 20:04:19 GMT + - Fri, 16 Sep 2022 17:41:54 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2022-10-01 + uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2022-10-01 response: body: - string: '{"token": "sanitized", "expiresOn": "2022-08-25T21:04:19.4654205+00:00"}' + string: '{"token": "sanitized", "expiresOn": "2022-09-16T18:41:54.2020532+00:00"}' headers: api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, 2021-11-01, 2022-06-01, 2022-10-01 content-length: '804' content-type: application/json; charset=utf-8 - date: Thu, 25 Aug 2022 20:04:18 GMT - ms-cv: 11HC9kPGA0eNHaMGLLuYyA.0 + date: Fri, 16 Sep 2022 17:41:53 GMT + ms-cv: Atqhyus2wkurppmuJseB/Q.0 request-context: appId= strict-transport-security: max-age=2592000 x-cache: CONFIG_NOCACHE - x-processing-time: 41ms + x-processing-time: 49ms status: code: 200 message: OK - url: https://test-petrsvihlik.ppe.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2022-10-01 + url: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2022-10-01 version: 1 diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_with_custom_validity_over_maximum_allowed.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_with_custom_validity_over_maximum_allowed.yaml index cc4592cdf8be..1062637030a9 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_with_custom_validity_over_maximum_allowed.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_with_custom_validity_over_maximum_allowed.yaml @@ -7,13 +7,13 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.2.1 Python/3.7.9 (Windows-10-10.0.22621-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.7.9 (Windows-10-10.0.22621-SP0) x-ms-date: - - Thu, 25 Aug 2022 20:04:19 GMT + - Fri, 16 Sep 2022 17:41:54 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity": {"id": "sanitized"}}' @@ -22,16 +22,16 @@ interactions: 2021-10-31-preview, 2021-11-01, 2022-06-01, 2022-10-01 content-length: '101' content-type: application/json; charset=utf-8 - date: Thu, 25 Aug 2022 20:04:18 GMT - ms-cv: +TxVun4oUEmzLb+2HM8Zgw.0 + date: Fri, 16 Sep 2022 17:41:54 GMT + ms-cv: AcW2ejxm6EmtaUpJZnoKSg.0 request-context: appId= strict-transport-security: max-age=2592000 x-cache: CONFIG_NOCACHE - x-processing-time: 33ms + x-processing-time: 35ms status: code: 201 message: Created - url: https://test-petrsvihlik.ppe.communication.azure.net/identities?api-version=2022-10-01 + url: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 - request: body: '{"scopes": ["chat"], "expiresInMinutes": 1441}' headers: @@ -42,13 +42,13 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.2.1 Python/3.7.9 (Windows-10-10.0.22621-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.7.9 (Windows-10-10.0.22621-SP0) x-ms-date: - - Thu, 25 Aug 2022 20:04:19 GMT + - Fri, 16 Sep 2022 17:41:54 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2022-10-01 + uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2022-10-01 response: body: string: '{"error": {"code": "ValidationError", "message": "ExpiresInMinutes @@ -57,15 +57,15 @@ interactions: api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, 2021-11-01, 2022-06-01, 2022-10-01 content-type: application/json - date: Thu, 25 Aug 2022 20:04:19 GMT - ms-cv: bXh8kk0cbEOCgqgaxK+i9Q.0 + date: Fri, 16 Sep 2022 17:41:54 GMT + ms-cv: YYHNRcprpkyDVpuXspsSDg.0 request-context: appId= strict-transport-security: max-age=2592000 transfer-encoding: chunked x-cache: CONFIG_NOCACHE - x-processing-time: 32ms + x-processing-time: 44ms status: code: 400 message: Bad Request - url: https://test-petrsvihlik.ppe.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2022-10-01 + url: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2022-10-01 version: 1 diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_with_custom_validity_under_minimum_allowed.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_with_custom_validity_under_minimum_allowed.yaml index 89b7d3349ff6..6c92d8a588e0 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_with_custom_validity_under_minimum_allowed.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_with_custom_validity_under_minimum_allowed.yaml @@ -7,13 +7,13 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.2.1 Python/3.7.9 (Windows-10-10.0.22621-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.7.9 (Windows-10-10.0.22621-SP0) x-ms-date: - - Thu, 25 Aug 2022 20:04:20 GMT + - Fri, 16 Sep 2022 17:41:54 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity": {"id": "sanitized"}}' @@ -22,16 +22,16 @@ interactions: 2021-10-31-preview, 2021-11-01, 2022-06-01, 2022-10-01 content-length: '101' content-type: application/json; charset=utf-8 - date: Thu, 25 Aug 2022 20:04:19 GMT - ms-cv: TehNIM6WuUCsV/zCjmVw3w.0 + date: Fri, 16 Sep 2022 17:41:54 GMT + ms-cv: MYrwgHMLqEeILA60LKYfoQ.0 request-context: appId= strict-transport-security: max-age=2592000 x-cache: CONFIG_NOCACHE - x-processing-time: 33ms + x-processing-time: 58ms status: code: 201 message: Created - url: https://test-petrsvihlik.ppe.communication.azure.net/identities?api-version=2022-10-01 + url: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 - request: body: '{"scopes": ["chat"], "expiresInMinutes": 59}' headers: @@ -42,13 +42,13 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.2.1 Python/3.7.9 (Windows-10-10.0.22621-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.7.9 (Windows-10-10.0.22621-SP0) x-ms-date: - - Thu, 25 Aug 2022 20:04:20 GMT + - Fri, 16 Sep 2022 17:41:55 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2022-10-01 + uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2022-10-01 response: body: string: '{"error": {"code": "ValidationError", "message": "ExpiresInMinutes @@ -57,15 +57,15 @@ interactions: api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, 2021-11-01, 2022-06-01, 2022-10-01 content-type: application/json - date: Thu, 25 Aug 2022 20:04:19 GMT - ms-cv: 5cwPCsg8MESHXb0PElw9Mw.0 + date: Fri, 16 Sep 2022 17:41:55 GMT + ms-cv: lfi/QToUl0aabY88rU4Frg.0 request-context: appId= strict-transport-security: max-age=2592000 transfer-encoding: chunked x-cache: CONFIG_NOCACHE - x-processing-time: 35ms + x-processing-time: 43ms status: code: 400 message: Bad Request - url: https://test-petrsvihlik.ppe.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2022-10-01 + url: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2022-10-01 version: 1 diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_with_no_scopes.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_with_no_scopes.yaml index 74bd99d4a165..7fe2d166f011 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_with_no_scopes.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_with_no_scopes.yaml @@ -7,13 +7,13 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.2.1 Python/3.7.9 (Windows-10-10.0.22621-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.7.9 (Windows-10-10.0.22621-SP0) x-ms-date: - - Thu, 25 Aug 2022 20:04:20 GMT + - Fri, 16 Sep 2022 17:41:55 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity": {"id": "sanitized"}}' @@ -22,8 +22,8 @@ interactions: 2021-10-31-preview, 2021-11-01, 2022-06-01, 2022-10-01 content-length: '101' content-type: application/json; charset=utf-8 - date: Thu, 25 Aug 2022 20:04:20 GMT - ms-cv: OwwzJc4dLki7lDHedgn6xQ.0 + date: Fri, 16 Sep 2022 17:41:55 GMT + ms-cv: EID6htbjv0esOfJmJ7Pr+Q.0 request-context: appId= strict-transport-security: max-age=2592000 x-cache: CONFIG_NOCACHE @@ -31,7 +31,7 @@ interactions: status: code: 201 message: Created - url: https://test-petrsvihlik.ppe.communication.azure.net/identities?api-version=2022-10-01 + url: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 - request: body: '{"scopes": null}' headers: @@ -42,28 +42,28 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.2.1 Python/3.7.9 (Windows-10-10.0.22621-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.7.9 (Windows-10-10.0.22621-SP0) x-ms-date: - - Thu, 25 Aug 2022 20:04:20 GMT + - Fri, 16 Sep 2022 17:41:56 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2022-10-01 + uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2022-10-01 response: body: string: '{"error": {"code": "ValidationError", "message": "Scopes: The Scopes field is required.", "target": "Scopes"}}' headers: content-type: application/json - date: Thu, 25 Aug 2022 20:04:20 GMT - ms-cv: wP+579EY70m6ZHdvf6a9Ag.0 + date: Fri, 16 Sep 2022 17:41:55 GMT + ms-cv: KVMBDnpzck6xwn2zKwuqJA.0 request-context: appId= strict-transport-security: max-age=2592000 transfer-encoding: chunked x-cache: CONFIG_NOCACHE - x-processing-time: 29ms + x-processing-time: 31ms status: code: 400 message: Bad Request - url: https://test-petrsvihlik.ppe.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2022-10-01 + url: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2022-10-01 version: 1 diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_revoke_tokens.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_revoke_tokens.yaml index 29c26344eddf..c1bbc5a8b32a 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_revoke_tokens.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_revoke_tokens.yaml @@ -7,13 +7,13 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.2.1 Python/3.7.9 (Windows-10-10.0.22621-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.7.9 (Windows-10-10.0.22621-SP0) x-ms-date: - - Thu, 25 Aug 2022 20:04:21 GMT + - Fri, 16 Sep 2022 17:41:56 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity": {"id": "sanitized"}}' @@ -22,16 +22,16 @@ interactions: 2021-10-31-preview, 2021-11-01, 2022-06-01, 2022-10-01 content-length: '101' content-type: application/json; charset=utf-8 - date: Thu, 25 Aug 2022 20:04:20 GMT - ms-cv: nT9E6WOgN0qNoUz5o69/Lg.0 + date: Fri, 16 Sep 2022 17:41:55 GMT + ms-cv: U8tnjBFSnk2sFxuF0rlZXw.0 request-context: appId= strict-transport-security: max-age=2592000 x-cache: CONFIG_NOCACHE - x-processing-time: 36ms + x-processing-time: 88ms status: code: 201 message: Created - url: https://test-petrsvihlik.ppe.communication.azure.net/identities?api-version=2022-10-01 + url: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 - request: body: '{"scopes": ["chat"]}' headers: @@ -42,58 +42,58 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.2.1 Python/3.7.9 (Windows-10-10.0.22621-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.7.9 (Windows-10-10.0.22621-SP0) x-ms-date: - - Thu, 25 Aug 2022 20:04:21 GMT + - Fri, 16 Sep 2022 17:41:56 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2022-10-01 + uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2022-10-01 response: body: - string: '{"token": "sanitized", "expiresOn": "2022-08-26T20:04:21.4589681+00:00"}' + string: '{"token": "sanitized", "expiresOn": "2022-09-17T17:41:56.8086694+00:00"}' headers: api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, 2021-11-01, 2022-06-01, 2022-10-01 content-length: '804' content-type: application/json; charset=utf-8 - date: Thu, 25 Aug 2022 20:04:20 GMT - ms-cv: 3swj2+zpB0WT3wOibsttvw.0 + date: Fri, 16 Sep 2022 17:41:55 GMT + ms-cv: SS1Ly/tav0S/4Thxw9AAMg.0 request-context: appId= strict-transport-security: max-age=2592000 x-cache: CONFIG_NOCACHE - x-processing-time: 47ms + x-processing-time: 52ms status: code: 200 message: OK - url: https://test-petrsvihlik.ppe.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2022-10-01 + url: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2022-10-01 - request: body: '' headers: Accept: - application/json User-Agent: - - azsdk-python-communication-identity/1.2.1 Python/3.7.9 (Windows-10-10.0.22621-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.7.9 (Windows-10-10.0.22621-SP0) x-ms-date: - - Thu, 25 Aug 2022 20:04:21 GMT + - Fri, 16 Sep 2022 17:41:56 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities/sanitized/:revokeAccessTokens?api-version=2022-10-01 + uri: https://sanitized.communication.azure.com/identities/sanitized/:revokeAccessTokens?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, 2021-11-01, 2022-06-01, 2022-10-01 - date: Thu, 25 Aug 2022 20:04:20 GMT - ms-cv: KgjXOlMAz0eqipnSELsTOw.0 + date: Fri, 16 Sep 2022 17:41:56 GMT + ms-cv: 27agakE1wUWvlnZRiS5FIw.0 request-context: appId= strict-transport-security: max-age=2592000 x-cache: CONFIG_NOCACHE - x-processing-time: 116ms + x-processing-time: 295ms status: code: 204 message: No Content - url: https://test-petrsvihlik.ppe.communication.azure.net/identities/sanitized/:revokeAccessTokens?api-version=2022-10-01 + url: https://sanitized.communication.azure.com/identities/sanitized/:revokeAccessTokens?api-version=2022-10-01 version: 1 diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_revoke_tokens_from_managed_identity.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_revoke_tokens_from_managed_identity.yaml index 39619ba796ae..3ddeb4f1ebca 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_revoke_tokens_from_managed_identity.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_revoke_tokens_from_managed_identity.yaml @@ -7,9 +7,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.2.1 Python/3.7.9 (Windows-10-10.0.22621-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.7.9 (Windows-10-10.0.22621-SP0) method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity": {"id": "sanitized"}}' @@ -18,16 +18,16 @@ interactions: 2021-10-31-preview, 2021-11-01, 2022-06-01, 2022-10-01 content-length: '101' content-type: application/json; charset=utf-8 - date: Thu, 25 Aug 2022 20:04:21 GMT - ms-cv: xP2UYjWfz0a32JEOix5egw.0 + date: Fri, 16 Sep 2022 17:41:57 GMT + ms-cv: Sp+O0ZCzNEi4BIC3RDiE6Q.0 request-context: appId= strict-transport-security: max-age=2592000 x-cache: CONFIG_NOCACHE - x-processing-time: 60ms + x-processing-time: 42ms status: code: 201 message: Created - url: https://test-petrsvihlik.ppe.communication.azure.net/identities?api-version=2022-10-01 + url: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 - request: body: '{"scopes": ["chat"]}' headers: @@ -38,50 +38,50 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.2.1 Python/3.7.9 (Windows-10-10.0.22621-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.7.9 (Windows-10-10.0.22621-SP0) method: POST - uri: https://sanitized.ppe.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2022-10-01 + uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2022-10-01 response: body: - string: '{"token": "sanitized", "expiresOn": "2022-08-26T20:04:22.5782665+00:00"}' + string: '{"token": "sanitized", "expiresOn": "2022-09-17T17:41:58.1116588+00:00"}' headers: api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, 2021-11-01, 2022-06-01, 2022-10-01 content-length: '804' content-type: application/json; charset=utf-8 - date: Thu, 25 Aug 2022 20:04:21 GMT - ms-cv: WaxpgLMTZ0yoWMBY4Kk95g.0 + date: Fri, 16 Sep 2022 17:41:58 GMT + ms-cv: Qr4o3EJAUUeKWbualtaHEw.0 request-context: appId= strict-transport-security: max-age=2592000 x-cache: CONFIG_NOCACHE - x-processing-time: 39ms + x-processing-time: 42ms status: code: 200 message: OK - url: https://test-petrsvihlik.ppe.communication.azure.net/identities/sanitized/:issueAccessToken?api-version=2022-10-01 + url: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2022-10-01 - request: body: null headers: Accept: - application/json User-Agent: - - azsdk-python-communication-identity/1.2.1 Python/3.7.9 (Windows-10-10.0.22621-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.7.9 (Windows-10-10.0.22621-SP0) method: POST - uri: https://sanitized.ppe.communication.azure.net/identities/sanitized/:revokeAccessTokens?api-version=2022-10-01 + uri: https://sanitized.communication.azure.com/identities/sanitized/:revokeAccessTokens?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, 2021-11-01, 2022-06-01, 2022-10-01 - date: Thu, 25 Aug 2022 20:04:22 GMT - ms-cv: MXAWPwapEUmbVYiSt9ligg.0 + date: Fri, 16 Sep 2022 17:41:58 GMT + ms-cv: Ha8fcrq1gUm/u+DFk6nXSQ.0 request-context: appId= strict-transport-security: max-age=2592000 x-cache: CONFIG_NOCACHE - x-processing-time: 326ms + x-processing-time: 133ms status: code: 204 message: No Content - url: https://test-petrsvihlik.ppe.communication.azure.net/identities/sanitized/:revokeAccessTokens?api-version=2022-10-01 + url: https://sanitized.communication.azure.com/identities/sanitized/:revokeAccessTokens?api-version=2022-10-01 version: 1 diff --git a/sdk/communication/azure-communication-identity/tests/test_communication_identity_client.py b/sdk/communication/azure-communication-identity/tests/test_communication_identity_client.py index 2ff592366b6a..7e4e07eff5d2 100644 --- a/sdk/communication/azure-communication-identity/tests/test_communication_identity_client.py +++ b/sdk/communication/azure-communication-identity/tests/test_communication_identity_client.py @@ -13,7 +13,7 @@ from _shared.testcase import BodyReplacerProcessor from testcase import CommunicationIdentityTestCase from _shared.communication_service_preparer import CommunicationPreparer -from _shared.utils import get_http_logging_policy +from _shared.utils import TOKEN_EXPIRATION_ALLOWED_DEVIATION, get_http_logging_policy, token_expiration_within_allowed_deviation from azure.identity import DefaultAzureCredential from azure.communication.identity._shared.utils import parse_connection_str from parameterized import parameterized @@ -75,12 +75,17 @@ def test_create_user_and_token_with_custom_minimum_validity(self, communication_ http_logging_policy=get_http_logging_policy() ) - token_expires_after = timedelta(minutes=60) - user, token_response = identity_client.create_user_and_token(scopes=[CommunicationTokenScope.CHAT], token_expires_after=token_expires_after) - + token_expires_in = timedelta(minutes=60) + user, token_response = identity_client.create_user_and_token(scopes=[CommunicationTokenScope.CHAT], token_expires_in=token_expires_in) + assert user.properties.get('id') is not None assert token_response.token is not None + from devtools_testutils import is_live + if is_live(): + expiration_within_allowed_deviation = token_expiration_within_allowed_deviation(token_expires_in, token_response.expires_on, TOKEN_EXPIRATION_ALLOWED_DEVIATION) + assert expiration_within_allowed_deviation is True + @CommunicationPreparer() def test_create_user_and_token_with_custom_maximum_validity(self, communication_livetest_dynamic_connection_string): identity_client = CommunicationIdentityClient.from_connection_string( @@ -88,12 +93,17 @@ def test_create_user_and_token_with_custom_maximum_validity(self, communication_ http_logging_policy=get_http_logging_policy() ) - token_expires_after = timedelta(minutes=1440) - user, token_response = identity_client.create_user_and_token(scopes=[CommunicationTokenScope.CHAT], token_expires_after=token_expires_after) + token_expires_in = timedelta(minutes=1440) + user, token_response = identity_client.create_user_and_token(scopes=[CommunicationTokenScope.CHAT], token_expires_in=token_expires_in) assert user.properties.get('id') is not None assert token_response.token is not None + from devtools_testutils import is_live + if is_live(): + expiration_within_allowed_deviation = token_expiration_within_allowed_deviation(token_expires_in, token_response.expires_on, TOKEN_EXPIRATION_ALLOWED_DEVIATION) + assert expiration_within_allowed_deviation is True + @CommunicationPreparer() def test_create_user_and_token_with_custom_validity_under_minimum_allowed(self, communication_livetest_dynamic_connection_string): identity_client = CommunicationIdentityClient.from_connection_string( @@ -101,10 +111,10 @@ def test_create_user_and_token_with_custom_validity_under_minimum_allowed(self, http_logging_policy=get_http_logging_policy() ) - token_expires_after = timedelta(minutes=59) + token_expires_in = timedelta(minutes=59) with pytest.raises(Exception) as ex: - identity_client.create_user_and_token(scopes=[CommunicationTokenScope.CHAT], token_expires_after=token_expires_after) + identity_client.create_user_and_token(scopes=[CommunicationTokenScope.CHAT], token_expires_in=token_expires_in) assert str(ex.value.status_code) == "400" assert ex.value.message is not None @@ -116,10 +126,10 @@ def test_create_user_and_token_with_custom_validity_over_maximum_allowed(self, c http_logging_policy=get_http_logging_policy() ) - token_expires_after = timedelta(minutes=1441) + token_expires_in = timedelta(minutes=1441) with pytest.raises(Exception) as ex: - identity_client.create_user_and_token(scopes=[CommunicationTokenScope.CHAT], token_expires_after=token_expires_after) + identity_client.create_user_and_token(scopes=[CommunicationTokenScope.CHAT], token_expires_in=token_expires_in) assert str(ex.value.status_code) == "400" assert ex.value.message is not None @@ -165,8 +175,8 @@ def test_get_token_with_custom_minimum_validity(self, communication_livetest_dyn ) user = identity_client.create_user() - token_expires_after = timedelta(minutes=60) - token_response = identity_client.get_token(user, scopes=[CommunicationTokenScope.CHAT], token_expires_after=token_expires_after) + token_expires_in = timedelta(minutes=60) + token_response = identity_client.get_token(user, scopes=[CommunicationTokenScope.CHAT], token_expires_in=token_expires_in) assert user.properties.get('id') is not None assert token_response.token is not None @@ -179,8 +189,8 @@ def test_get_token_with_custom_maximum_validity(self, communication_livetest_dyn ) user = identity_client.create_user() - token_expires_after = timedelta(minutes=1440) - token_response = identity_client.get_token(user, scopes=[CommunicationTokenScope.CHAT], token_expires_after=token_expires_after) + token_expires_in = timedelta(minutes=1440) + token_response = identity_client.get_token(user, scopes=[CommunicationTokenScope.CHAT], token_expires_in=token_expires_in) assert user.properties.get('id') is not None assert token_response.token is not None @@ -193,10 +203,10 @@ def test_get_token_with_custom_validity_under_minimum_allowed(self, communicatio ) user = identity_client.create_user() - token_expires_after = timedelta(minutes=59) + token_expires_in = timedelta(minutes=59) with pytest.raises(Exception) as ex: - identity_client.get_token(user, scopes=[CommunicationTokenScope.CHAT], token_expires_after=token_expires_after) + identity_client.get_token(user, scopes=[CommunicationTokenScope.CHAT], token_expires_in=token_expires_in) assert str(ex.value.status_code) == "400" assert ex.value.message is not None @@ -209,10 +219,10 @@ def test_get_token_with_custom_validity_over_maximum_allowed(self, communication ) user = identity_client.create_user() - token_expires_after = timedelta(minutes=1441) + token_expires_in = timedelta(minutes=1441) with pytest.raises(Exception) as ex: - identity_client.get_token(user, scopes=[CommunicationTokenScope.CHAT], token_expires_after=token_expires_after) + identity_client.get_token(user, scopes=[CommunicationTokenScope.CHAT], token_expires_in=token_expires_in) assert str(ex.value.status_code) == "400" assert ex.value.message is not None diff --git a/sdk/communication/azure-communication-identity/tests/test_communication_identity_client_async.py b/sdk/communication/azure-communication-identity/tests/test_communication_identity_client_async.py index 843dab47bd9e..5085e191fa28 100644 --- a/sdk/communication/azure-communication-identity/tests/test_communication_identity_client_async.py +++ b/sdk/communication/azure-communication-identity/tests/test_communication_identity_client_async.py @@ -10,13 +10,11 @@ from azure.communication.identity.aio import CommunicationIdentityClient from azure.communication.identity import CommunicationTokenScope from azure.communication.identity._shared.utils import parse_connection_str -from azure_devtools.scenario_tests import RecordingProcessor -from devtools_testutils import ResourceGroupPreparer from _shared.helper import URIIdentityReplacer, URIMsalUsernameReplacer from asynctestcase import AsyncCommunicationIdentityTestCase from _shared.testcase import BodyReplacerProcessor from _shared.communication_service_preparer import CommunicationPreparer -from _shared.utils import get_http_logging_policy +from _shared.utils import TOKEN_EXPIRATION_ALLOWED_DEVIATION, get_http_logging_policy, token_expiration_within_allowed_deviation from azure.identity.aio import DefaultAzureCredential class FakeTokenCredential(object): @@ -81,14 +79,19 @@ async def test_create_user_and_token_with_custom_minimum_validity(self, communic http_logging_policy=get_http_logging_policy() ) - token_expires_after = timedelta(minutes=60) + token_expires_in = timedelta(minutes=60) async with identity_client: - user, token_response = await identity_client.create_user_and_token(scopes=[CommunicationTokenScope.CHAT], token_expires_after=token_expires_after) + user, token_response = await identity_client.create_user_and_token(scopes=[CommunicationTokenScope.CHAT], token_expires_in=token_expires_in) assert user.properties.get('id') is not None assert token_response.token is not None + from devtools_testutils import is_live + if is_live(): + expiration_within_allowed_deviation = token_expiration_within_allowed_deviation(token_expires_in, token_response.expires_on, TOKEN_EXPIRATION_ALLOWED_DEVIATION) + assert expiration_within_allowed_deviation is True + @CommunicationPreparer() async def test_create_user_and_token_with_custom_maximum_validity(self, communication_livetest_dynamic_connection_string): identity_client = CommunicationIdentityClient.from_connection_string( @@ -96,14 +99,19 @@ async def test_create_user_and_token_with_custom_maximum_validity(self, communic http_logging_policy=get_http_logging_policy() ) - token_expires_after = timedelta(minutes=1440) + token_expires_in = timedelta(minutes=1440) async with identity_client: - user, token_response = await identity_client.create_user_and_token(scopes=[CommunicationTokenScope.CHAT], token_expires_after=token_expires_after) + user, token_response = await identity_client.create_user_and_token(scopes=[CommunicationTokenScope.CHAT], token_expires_in=token_expires_in) assert user.properties.get('id') is not None assert token_response.token is not None + from devtools_testutils import is_live + if is_live(): + expiration_within_allowed_deviation = token_expiration_within_allowed_deviation(token_expires_in, token_response.expires_on, TOKEN_EXPIRATION_ALLOWED_DEVIATION) + assert expiration_within_allowed_deviation is True + @CommunicationPreparer() async def test_create_user_and_token_with_custom_validity_under_minimum_allowed(self, communication_livetest_dynamic_connection_string): identity_client = CommunicationIdentityClient.from_connection_string( @@ -111,11 +119,11 @@ async def test_create_user_and_token_with_custom_validity_under_minimum_allowed( http_logging_policy=get_http_logging_policy() ) - token_expires_after = timedelta(minutes=59) + token_expires_in = timedelta(minutes=59) async with identity_client: with pytest.raises(Exception) as ex: - await identity_client.create_user_and_token(scopes=[CommunicationTokenScope.CHAT], token_expires_after=token_expires_after) + await identity_client.create_user_and_token(scopes=[CommunicationTokenScope.CHAT], token_expires_in=token_expires_in) assert str(ex.value.status_code) == "400" assert ex.value.message is not None @@ -127,11 +135,11 @@ async def test_create_user_and_token_with_custom_validity_over_maximum_allowed(s http_logging_policy=get_http_logging_policy() ) - token_expires_after = timedelta(minutes=1441) + token_expires_in = timedelta(minutes=1441) async with identity_client: with pytest.raises(Exception) as ex: - await identity_client.create_user_and_token(scopes=[CommunicationTokenScope.CHAT], token_expires_after=token_expires_after) + await identity_client.create_user_and_token(scopes=[CommunicationTokenScope.CHAT], token_expires_in=token_expires_in) assert str(ex.value.status_code) == "400" assert ex.value.message is not None @@ -176,11 +184,11 @@ async def test_get_token_with_custom_minimum_validity(self, communication_livete http_logging_policy=get_http_logging_policy() ) - token_expires_after = timedelta(minutes=60) + token_expires_in = timedelta(minutes=60) async with identity_client: user = await identity_client.create_user() - token_response = await identity_client.get_token(user, scopes=[CommunicationTokenScope.CHAT], token_expires_after=token_expires_after) + token_response = await identity_client.get_token(user, scopes=[CommunicationTokenScope.CHAT], token_expires_in=token_expires_in) assert user.properties.get('id') is not None assert token_response.token is not None @@ -192,11 +200,11 @@ async def test_get_token_with_custom_maximum_validity(self, communication_livete http_logging_policy=get_http_logging_policy() ) - token_expires_after = timedelta(minutes=1440) + token_expires_in = timedelta(minutes=1440) async with identity_client: user = await identity_client.create_user() - token_response = await identity_client.get_token(user, scopes=[CommunicationTokenScope.CHAT], token_expires_after=token_expires_after) + token_response = await identity_client.get_token(user, scopes=[CommunicationTokenScope.CHAT], token_expires_in=token_expires_in) assert user.properties.get('id') is not None assert token_response.token is not None @@ -208,12 +216,12 @@ async def test_get_token_with_custom_validity_under_minimum_allowed(self, commun http_logging_policy=get_http_logging_policy() ) - token_expires_after = timedelta(minutes=59) + token_expires_in = timedelta(minutes=59) async with identity_client: with pytest.raises(Exception) as ex: user = await identity_client.create_user() - await identity_client.get_token(user, scopes=[CommunicationTokenScope.CHAT], token_expires_after=token_expires_after) + await identity_client.get_token(user, scopes=[CommunicationTokenScope.CHAT], token_expires_in=token_expires_in) assert str(ex.value.status_code) == "400" assert ex.value.message is not None @@ -225,12 +233,12 @@ async def test_get_token_with_custom_validity_over_maximum_allowed(self, communi http_logging_policy=get_http_logging_policy() ) - token_expires_after = timedelta(minutes=1441) + token_expires_in = timedelta(minutes=1441) async with identity_client: with pytest.raises(Exception) as ex: user = await identity_client.create_user() - await identity_client.get_token(user, scopes=[CommunicationTokenScope.CHAT], token_expires_after=token_expires_after) + await identity_client.get_token(user, scopes=[CommunicationTokenScope.CHAT], token_expires_in=token_expires_in) assert str(ex.value.status_code) == "400" assert ex.value.message is not None diff --git a/sdk/communication/azure-communication-networktraversal/tests/recordings/test_communication_relay_client.test_get_relay_configuration.yaml b/sdk/communication/azure-communication-networktraversal/tests/recordings/test_communication_relay_client.test_get_relay_configuration.yaml index af62fcb94104..1f03ec1a8ae4 100644 --- a/sdk/communication/azure-communication-networktraversal/tests/recordings/test_communication_relay_client.test_get_relay_configuration.yaml +++ b/sdk/communication/azure-communication-networktraversal/tests/recordings/test_communication_relay_client.test_get_relay_configuration.yaml @@ -13,20 +13,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.2.0 Python/3.7.4 (Windows-10-10.0.22523-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.7.4 (Windows-10-10.0.22523-SP0) x-ms-date: - Wed, 23 Mar 2022 18:20:54 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity": {"id": "sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: diff --git a/sdk/communication/azure-communication-networktraversal/tests/recordings/test_communication_relay_client.test_get_relay_configuration_with_route_type_any.yaml b/sdk/communication/azure-communication-networktraversal/tests/recordings/test_communication_relay_client.test_get_relay_configuration_with_route_type_any.yaml index 8bc5feebf9d4..e70d51c8df33 100644 --- a/sdk/communication/azure-communication-networktraversal/tests/recordings/test_communication_relay_client.test_get_relay_configuration_with_route_type_any.yaml +++ b/sdk/communication/azure-communication-networktraversal/tests/recordings/test_communication_relay_client.test_get_relay_configuration_with_route_type_any.yaml @@ -13,20 +13,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.2.0 Python/3.7.4 (Windows-10-10.0.22523-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.7.4 (Windows-10-10.0.22523-SP0) x-ms-date: - Wed, 23 Mar 2022 18:20:54 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity": {"id": "sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: diff --git a/sdk/communication/azure-communication-networktraversal/tests/recordings/test_communication_relay_client.test_get_relay_configuration_with_route_type_nearest.yaml b/sdk/communication/azure-communication-networktraversal/tests/recordings/test_communication_relay_client.test_get_relay_configuration_with_route_type_nearest.yaml index d30e1538407b..9d37935d0ca6 100644 --- a/sdk/communication/azure-communication-networktraversal/tests/recordings/test_communication_relay_client.test_get_relay_configuration_with_route_type_nearest.yaml +++ b/sdk/communication/azure-communication-networktraversal/tests/recordings/test_communication_relay_client.test_get_relay_configuration_with_route_type_nearest.yaml @@ -13,20 +13,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.2.0 Python/3.7.4 (Windows-10-10.0.22523-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.7.4 (Windows-10-10.0.22523-SP0) x-ms-date: - Wed, 23 Mar 2022 18:20:54 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity": {"id": "sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: diff --git a/sdk/communication/azure-communication-networktraversal/tests/recordings/test_communication_relay_client_async.test_get_relay_configuration.yaml b/sdk/communication/azure-communication-networktraversal/tests/recordings/test_communication_relay_client_async.test_get_relay_configuration.yaml index 46f0ef1f85de..898a044ba2a5 100644 --- a/sdk/communication/azure-communication-networktraversal/tests/recordings/test_communication_relay_client_async.test_get_relay_configuration.yaml +++ b/sdk/communication/azure-communication-networktraversal/tests/recordings/test_communication_relay_client_async.test_get_relay_configuration.yaml @@ -9,19 +9,19 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.2.0 Python/3.7.4 (Windows-10-10.0.22523-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.7.4 (Windows-10-10.0.22523-SP0) x-ms-date: - Wed, 23 Mar 2022 18:20:55 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity": {"id": "sanitized"}}' headers: api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, - 2021-10-31-preview, 2021-11-01, 2022-06-01 + 2021-10-31-preview, 2021-11-01, 2022-06-01, 2022-10-01 content-length: '101' content-type: application/json; charset=utf-8 date: Wed, 23 Mar 2022 18:20:54 GMT @@ -33,7 +33,7 @@ interactions: status: code: 201 message: Created - url: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + url: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 - request: body: '{"id": "sanitized", "ttl": 172800}' headers: diff --git a/sdk/communication/azure-communication-networktraversal/tests/recordings/test_communication_relay_client_async.test_get_relay_configuration_with_route_type_any.yaml b/sdk/communication/azure-communication-networktraversal/tests/recordings/test_communication_relay_client_async.test_get_relay_configuration_with_route_type_any.yaml index 8c9cd8a3e175..2872705e4434 100644 --- a/sdk/communication/azure-communication-networktraversal/tests/recordings/test_communication_relay_client_async.test_get_relay_configuration_with_route_type_any.yaml +++ b/sdk/communication/azure-communication-networktraversal/tests/recordings/test_communication_relay_client_async.test_get_relay_configuration_with_route_type_any.yaml @@ -9,19 +9,19 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.2.0 Python/3.7.4 (Windows-10-10.0.22523-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.7.4 (Windows-10-10.0.22523-SP0) x-ms-date: - Wed, 23 Mar 2022 18:20:55 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity": {"id": "sanitized"}}' headers: api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, - 2021-10-31-preview, 2021-11-01, 2022-06-01 + 2021-10-31-preview, 2021-11-01, 2022-06-01, 2022-10-01 content-length: '101' content-type: application/json; charset=utf-8 date: Wed, 23 Mar 2022 18:20:55 GMT @@ -33,7 +33,7 @@ interactions: status: code: 201 message: Created - url: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + url: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 - request: body: '{"id": "sanitized", "routeType": "any", "ttl": 172800}' headers: diff --git a/sdk/communication/azure-communication-networktraversal/tests/recordings/test_communication_relay_client_async.test_get_relay_configuration_with_route_type_nearest.yaml b/sdk/communication/azure-communication-networktraversal/tests/recordings/test_communication_relay_client_async.test_get_relay_configuration_with_route_type_nearest.yaml index ffcc5f67dc72..b4a437311087 100644 --- a/sdk/communication/azure-communication-networktraversal/tests/recordings/test_communication_relay_client_async.test_get_relay_configuration_with_route_type_nearest.yaml +++ b/sdk/communication/azure-communication-networktraversal/tests/recordings/test_communication_relay_client_async.test_get_relay_configuration_with_route_type_nearest.yaml @@ -9,19 +9,19 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.2.0 Python/3.7.4 (Windows-10-10.0.22523-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.7.4 (Windows-10-10.0.22523-SP0) x-ms-date: - Wed, 23 Mar 2022 18:20:55 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity": {"id": "sanitized"}}' headers: api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, - 2021-10-31-preview, 2021-11-01, 2022-06-01 + 2021-10-31-preview, 2021-11-01, 2022-06-01, 2022-10-01 content-length: '101' content-type: application/json; charset=utf-8 date: Wed, 23 Mar 2022 18:20:55 GMT @@ -33,7 +33,7 @@ interactions: status: code: 201 message: Created - url: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + url: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 - request: body: '{"id": "sanitized", "routeType": "nearest", "ttl": 172800}' headers: diff --git a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_add_participant_async.yaml b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_add_participant_async.yaml index 21de51da7a08..6ef3a454638d 100644 --- a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_add_participant_async.yaml +++ b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_add_participant_async.yaml @@ -13,20 +13,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:45:04 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -60,20 +60,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:45:04 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -107,20 +107,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:45:04 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -272,20 +272,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:45:06 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:45:06 GMT ms-cv: @@ -313,20 +313,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:45:06 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:45:06 GMT ms-cv: @@ -354,20 +354,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:45:07 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:45:07 GMT ms-cv: diff --git a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_add_participants_incorrectMri_async.yaml b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_add_participants_incorrectMri_async.yaml index 1c41f3769563..c24c2e90d964 100644 --- a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_add_participants_incorrectMri_async.yaml +++ b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_add_participants_incorrectMri_async.yaml @@ -13,20 +13,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:45:07 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -60,20 +60,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:45:07 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -107,20 +107,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:45:07 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -221,20 +221,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:45:08 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:45:08 GMT ms-cv: @@ -262,20 +262,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:45:09 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:45:09 GMT ms-cv: @@ -303,20 +303,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:45:09 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:45:09 GMT ms-cv: diff --git a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_add_participants_wrongRoleName_async.yaml b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_add_participants_wrongRoleName_async.yaml index 8d8468ec5ee1..970401a043d8 100644 --- a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_add_participants_wrongRoleName_async.yaml +++ b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_add_participants_wrongRoleName_async.yaml @@ -13,20 +13,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:45:09 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -60,20 +60,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:45:10 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -107,20 +107,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:45:10 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -224,20 +224,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:45:11 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:45:11 GMT ms-cv: @@ -265,20 +265,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:45:11 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:45:11 GMT ms-cv: @@ -306,20 +306,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:45:11 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:45:11 GMT ms-cv: diff --git a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_create_room_all_attributes_async.yaml b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_create_room_all_attributes_async.yaml index 73fbf7b539e6..df44f1c34b0c 100644 --- a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_create_room_all_attributes_async.yaml +++ b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_create_room_all_attributes_async.yaml @@ -13,20 +13,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:45:11 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -60,20 +60,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:45:12 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -107,20 +107,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:45:12 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -215,20 +215,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:45:13 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:45:13 GMT ms-cv: @@ -256,20 +256,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:45:13 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:45:13 GMT ms-cv: @@ -297,20 +297,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:45:14 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:45:13 GMT ms-cv: diff --git a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_create_room_correct_timerange_async.yaml b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_create_room_correct_timerange_async.yaml index 0da2ac24aaf3..683b6afd1a65 100644 --- a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_create_room_correct_timerange_async.yaml +++ b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_create_room_correct_timerange_async.yaml @@ -13,20 +13,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:45:14 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -60,20 +60,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:45:14 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -107,20 +107,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:45:14 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -213,20 +213,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:45:16 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:45:15 GMT ms-cv: @@ -254,20 +254,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:45:16 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:45:15 GMT ms-cv: @@ -295,20 +295,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:45:16 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:45:16 GMT ms-cv: diff --git a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_create_room_incorrectMri_async.yaml b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_create_room_incorrectMri_async.yaml index a74ff4e40894..028f7c753caf 100644 --- a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_create_room_incorrectMri_async.yaml +++ b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_create_room_incorrectMri_async.yaml @@ -13,20 +13,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:45:16 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -60,20 +60,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:45:17 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -107,20 +107,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:45:17 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -189,20 +189,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:45:18 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:45:18 GMT ms-cv: @@ -230,20 +230,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:45:18 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:45:18 GMT ms-cv: @@ -271,20 +271,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:45:18 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:45:18 GMT ms-cv: diff --git a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_create_room_no_attributes_async.yaml b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_create_room_no_attributes_async.yaml index 74d0069c68e5..2bf300751602 100644 --- a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_create_room_no_attributes_async.yaml +++ b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_create_room_no_attributes_async.yaml @@ -13,20 +13,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:45:18 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -60,20 +60,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:45:19 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -107,20 +107,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:45:19 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -213,20 +213,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:45:20 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:45:20 GMT ms-cv: @@ -254,20 +254,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:45:20 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:45:25 GMT ms-cv: @@ -295,20 +295,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:45:25 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:45:25 GMT ms-cv: diff --git a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_create_room_only_participants_async.yaml b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_create_room_only_participants_async.yaml index db1adf585af9..126fbf732341 100644 --- a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_create_room_only_participants_async.yaml +++ b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_create_room_only_participants_async.yaml @@ -13,20 +13,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:45:26 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -60,20 +60,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:45:26 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -107,20 +107,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:45:26 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -215,20 +215,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:45:27 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:45:27 GMT ms-cv: @@ -256,20 +256,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:45:28 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:45:27 GMT ms-cv: @@ -297,20 +297,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:45:28 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:45:27 GMT ms-cv: diff --git a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_create_room_only_validFrom_async.yaml b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_create_room_only_validFrom_async.yaml index 5b4737d1547b..8bd2b1c874a9 100644 --- a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_create_room_only_validFrom_async.yaml +++ b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_create_room_only_validFrom_async.yaml @@ -13,20 +13,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:45:28 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -60,20 +60,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:45:29 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -107,20 +107,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:45:29 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -213,20 +213,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:45:30 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:45:30 GMT ms-cv: @@ -254,20 +254,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:45:30 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:45:30 GMT ms-cv: @@ -295,20 +295,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:45:30 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:45:30 GMT ms-cv: diff --git a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_create_room_only_validUntil_async.yaml b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_create_room_only_validUntil_async.yaml index a2d48cbd57c8..a5d38a0717de 100644 --- a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_create_room_only_validUntil_async.yaml +++ b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_create_room_only_validUntil_async.yaml @@ -13,20 +13,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:45:31 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -60,20 +60,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:45:31 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -107,20 +107,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:45:31 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -213,20 +213,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:45:32 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:45:32 GMT ms-cv: @@ -254,20 +254,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:45:33 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:45:32 GMT ms-cv: @@ -295,20 +295,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:45:33 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:45:33 GMT ms-cv: diff --git a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_create_room_open_room.yaml b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_create_room_open_room.yaml index 179adc763503..60d8f4722e29 100644 --- a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_create_room_open_room.yaml +++ b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_create_room_open_room.yaml @@ -13,20 +13,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:45:33 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -60,20 +60,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:45:33 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -107,20 +107,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:45:34 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -214,20 +214,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:45:34 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:45:34 GMT ms-cv: @@ -255,20 +255,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:45:35 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:45:34 GMT ms-cv: @@ -296,20 +296,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:45:35 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:45:35 GMT ms-cv: diff --git a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_create_room_validFrom_7Months_async.yaml b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_create_room_validFrom_7Months_async.yaml index 263755f59508..c38d9796a728 100644 --- a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_create_room_validFrom_7Months_async.yaml +++ b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_create_room_validFrom_7Months_async.yaml @@ -13,20 +13,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:45:35 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -60,20 +60,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:45:36 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -107,20 +107,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:45:36 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -188,20 +188,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:45:36 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:45:36 GMT ms-cv: @@ -229,20 +229,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:45:37 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:45:36 GMT ms-cv: @@ -270,20 +270,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:45:37 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:45:37 GMT ms-cv: diff --git a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_create_room_validUntil_7Months_async.yaml b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_create_room_validUntil_7Months_async.yaml index 0935edbab28e..d9a3eeaf192b 100644 --- a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_create_room_validUntil_7Months_async.yaml +++ b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_create_room_validUntil_7Months_async.yaml @@ -13,20 +13,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:45:37 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -60,20 +60,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:45:37 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -107,20 +107,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:45:38 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -188,20 +188,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:45:38 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:45:38 GMT ms-cv: @@ -229,20 +229,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:45:38 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:45:38 GMT ms-cv: @@ -270,20 +270,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:45:38 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:45:39 GMT ms-cv: diff --git a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_delete_invalid_room_async.yaml b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_delete_invalid_room_async.yaml index 741fcac7a5e7..53725901b5df 100644 --- a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_delete_invalid_room_async.yaml +++ b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_delete_invalid_room_async.yaml @@ -13,20 +13,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:45:39 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -60,20 +60,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:45:39 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -107,20 +107,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:45:39 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -179,20 +179,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:45:40 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:45:40 GMT ms-cv: @@ -220,20 +220,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:45:40 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:45:40 GMT ms-cv: @@ -261,20 +261,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:45:40 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:45:40 GMT ms-cv: diff --git a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_get_invalid_room_async.yaml b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_get_invalid_room_async.yaml index c460d97b141a..9e86e0f22c57 100644 --- a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_get_invalid_room_async.yaml +++ b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_get_invalid_room_async.yaml @@ -13,20 +13,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:45:41 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -60,20 +60,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:45:41 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -107,20 +107,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:45:41 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -179,20 +179,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:45:42 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:45:42 GMT ms-cv: @@ -220,20 +220,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:45:42 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:45:42 GMT ms-cv: @@ -261,20 +261,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:45:42 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:45:42 GMT ms-cv: diff --git a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_get_room_async.yaml b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_get_room_async.yaml index 01160b7ba1ad..f59a34baf43a 100644 --- a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_get_room_async.yaml +++ b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_get_room_async.yaml @@ -13,20 +13,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:45:43 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -60,20 +60,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:45:43 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -107,20 +107,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:45:43 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -242,20 +242,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:45:44 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:45:44 GMT ms-cv: @@ -283,20 +283,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:45:45 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:45:44 GMT ms-cv: @@ -324,20 +324,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:45:45 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:45:45 GMT ms-cv: diff --git a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_remove_participant_async.yaml b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_remove_participant_async.yaml index 46987c21480c..248178fcbcc7 100644 --- a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_remove_participant_async.yaml +++ b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_remove_participant_async.yaml @@ -13,20 +13,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:45:45 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -60,20 +60,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:45:46 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -107,20 +107,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:45:46 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -274,20 +274,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:45:47 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:45:47 GMT ms-cv: @@ -315,20 +315,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:45:48 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:45:48 GMT ms-cv: @@ -356,20 +356,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:45:48 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:45:48 GMT ms-cv: diff --git a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_update_participant_async.yaml b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_update_participant_async.yaml index fdfcf63fbfae..d98d7748ad44 100644 --- a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_update_participant_async.yaml +++ b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_update_participant_async.yaml @@ -13,20 +13,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:45:48 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -60,20 +60,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:45:49 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -107,20 +107,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:45:49 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -275,20 +275,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:45:50 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:45:50 GMT ms-cv: @@ -316,20 +316,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:45:50 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:45:50 GMT ms-cv: @@ -357,20 +357,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:45:51 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:45:51 GMT ms-cv: diff --git a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_update_room_ValidFrom_7Months_async.yaml b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_update_room_ValidFrom_7Months_async.yaml index a9df1892489a..9de2c15d7d35 100644 --- a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_update_room_ValidFrom_7Months_async.yaml +++ b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_update_room_ValidFrom_7Months_async.yaml @@ -13,20 +13,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:45:51 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -60,20 +60,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:45:51 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -107,20 +107,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:45:52 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -220,20 +220,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:45:52 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:45:52 GMT ms-cv: @@ -261,20 +261,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:45:53 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:45:53 GMT ms-cv: @@ -302,20 +302,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:45:53 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:45:53 GMT ms-cv: diff --git a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_update_room_ValidUntil_7Months_async.yaml b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_update_room_ValidUntil_7Months_async.yaml index 076fc0cdc6a9..898270fd3c26 100644 --- a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_update_room_ValidUntil_7Months_async.yaml +++ b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_update_room_ValidUntil_7Months_async.yaml @@ -13,20 +13,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:45:53 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -60,20 +60,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:45:54 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -107,20 +107,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:45:54 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -220,20 +220,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:45:55 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:45:54 GMT ms-cv: @@ -261,20 +261,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:45:55 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:45:54 GMT ms-cv: @@ -302,20 +302,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:45:55 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:45:55 GMT ms-cv: diff --git a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_update_room_change_open_room_in_future.yaml b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_update_room_change_open_room_in_future.yaml index 700cc3b677fa..b34bc05a076c 100644 --- a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_update_room_change_open_room_in_future.yaml +++ b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_update_room_change_open_room_in_future.yaml @@ -13,20 +13,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:45:55 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -60,20 +60,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:45:56 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -107,20 +107,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:45:56 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -245,20 +245,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:45:57 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:45:57 GMT ms-cv: @@ -286,20 +286,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:45:57 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:45:57 GMT ms-cv: @@ -327,20 +327,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:45:58 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:45:57 GMT ms-cv: diff --git a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_update_room_change_open_room_in_past.yaml b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_update_room_change_open_room_in_past.yaml index 863e617fcff9..bbc41bd7e86e 100644 --- a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_update_room_change_open_room_in_past.yaml +++ b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_update_room_change_open_room_in_past.yaml @@ -13,20 +13,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:45:58 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -60,20 +60,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:45:58 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -107,20 +107,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:45:59 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -246,20 +246,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:46:00 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:46:00 GMT ms-cv: @@ -287,20 +287,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:46:00 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:46:00 GMT ms-cv: @@ -328,20 +328,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:46:00 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:46:00 GMT ms-cv: diff --git a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_update_room_correct_timerange_async.yaml b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_update_room_correct_timerange_async.yaml index 3276f85f4499..5885caebc0f3 100644 --- a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_update_room_correct_timerange_async.yaml +++ b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_update_room_correct_timerange_async.yaml @@ -13,20 +13,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:46:01 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -60,20 +60,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:46:01 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -107,20 +107,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:46:01 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -244,20 +244,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:46:03 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:46:02 GMT ms-cv: @@ -285,20 +285,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:46:03 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:46:03 GMT ms-cv: @@ -326,20 +326,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:46:03 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:46:03 GMT ms-cv: diff --git a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_update_room_deleted_room_async.yaml b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_update_room_deleted_room_async.yaml index 578de6dfda4d..b79439969c1b 100644 --- a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_update_room_deleted_room_async.yaml +++ b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_update_room_deleted_room_async.yaml @@ -13,20 +13,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:46:04 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -60,20 +60,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:46:04 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -107,20 +107,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:46:04 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -244,20 +244,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:46:05 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:46:05 GMT ms-cv: @@ -285,20 +285,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:46:05 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:46:05 GMT ms-cv: @@ -326,20 +326,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:46:06 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:46:06 GMT ms-cv: diff --git a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_update_room_incorrect_roomId_async.yaml b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_update_room_incorrect_roomId_async.yaml index 7691e4e925dc..1b9af4ff1bfa 100644 --- a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_update_room_incorrect_roomId_async.yaml +++ b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_update_room_incorrect_roomId_async.yaml @@ -13,20 +13,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:46:06 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -60,20 +60,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:46:06 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -107,20 +107,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:46:06 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -183,20 +183,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:46:07 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:46:07 GMT ms-cv: @@ -224,20 +224,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:46:07 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:46:07 GMT ms-cv: @@ -265,20 +265,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:46:07 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:46:08 GMT ms-cv: diff --git a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_update_room_incorrect_timerange_async.yaml b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_update_room_incorrect_timerange_async.yaml index d8f6d012a9a8..36556fc1427f 100644 --- a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_update_room_incorrect_timerange_async.yaml +++ b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_update_room_incorrect_timerange_async.yaml @@ -13,20 +13,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:46:08 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -60,20 +60,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:46:08 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -107,20 +107,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:46:08 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -220,20 +220,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:46:09 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:46:09 GMT ms-cv: @@ -261,20 +261,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:46:09 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:46:10 GMT ms-cv: @@ -302,20 +302,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:46:10 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:46:10 GMT ms-cv: diff --git a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_update_room_only_ValidFrom_async.yaml b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_update_room_only_ValidFrom_async.yaml index 032a08fed549..b48e992c0e74 100644 --- a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_update_room_only_ValidFrom_async.yaml +++ b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_update_room_only_ValidFrom_async.yaml @@ -13,20 +13,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:46:10 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -60,20 +60,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:46:10 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -107,20 +107,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:46:11 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -220,20 +220,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:46:11 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:46:11 GMT ms-cv: @@ -261,20 +261,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:46:11 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:46:11 GMT ms-cv: @@ -302,20 +302,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:46:12 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:46:11 GMT ms-cv: diff --git a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_update_room_only_ValidUntil_async.yaml b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_update_room_only_ValidUntil_async.yaml index b7716e5f7ff7..bd6ea39c3623 100644 --- a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_update_room_only_ValidUntil_async.yaml +++ b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_update_room_only_ValidUntil_async.yaml @@ -13,20 +13,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:46:12 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -60,20 +60,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:46:12 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -107,20 +107,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:46:13 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -220,20 +220,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:46:13 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:46:13 GMT ms-cv: @@ -261,20 +261,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:46:14 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:46:13 GMT ms-cv: @@ -302,20 +302,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:46:14 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:46:14 GMT ms-cv: diff --git a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_add_participants.yaml b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_add_participants.yaml index 3eb82f0d99e8..242602c25ab1 100644 --- a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_add_participants.yaml +++ b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_add_participants.yaml @@ -13,20 +13,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:46:14 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -60,20 +60,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:46:14 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -107,20 +107,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:46:15 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -309,20 +309,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:46:16 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:46:16 GMT ms-cv: @@ -350,20 +350,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:46:16 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:46:17 GMT ms-cv: @@ -391,20 +391,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:46:17 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:46:17 GMT ms-cv: diff --git a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_add_participants_incorrectMri.yaml b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_add_participants_incorrectMri.yaml index 4f8094091556..768e40a318b7 100644 --- a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_add_participants_incorrectMri.yaml +++ b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_add_participants_incorrectMri.yaml @@ -13,20 +13,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:46:17 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -60,20 +60,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:46:17 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -107,20 +107,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:46:18 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -240,20 +240,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:46:18 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:46:18 GMT ms-cv: @@ -281,20 +281,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:46:19 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:46:18 GMT ms-cv: @@ -322,20 +322,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:46:19 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:46:18 GMT ms-cv: diff --git a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_create_room_all_attributes.yaml b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_create_room_all_attributes.yaml index 21e6e78dcc99..9b3088ecee90 100644 --- a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_create_room_all_attributes.yaml +++ b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_create_room_all_attributes.yaml @@ -13,20 +13,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:46:19 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -60,20 +60,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:46:20 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -107,20 +107,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:46:20 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -234,20 +234,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:46:21 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:46:21 GMT ms-cv: @@ -275,20 +275,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:46:21 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:46:21 GMT ms-cv: @@ -316,20 +316,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:46:21 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:46:22 GMT ms-cv: diff --git a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_create_room_correct_timerange.yaml b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_create_room_correct_timerange.yaml index 994485cbb7f5..6af86b9987b7 100644 --- a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_create_room_correct_timerange.yaml +++ b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_create_room_correct_timerange.yaml @@ -13,20 +13,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:46:22 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -60,20 +60,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:46:22 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -107,20 +107,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:46:22 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -232,20 +232,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:46:23 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:46:24 GMT ms-cv: @@ -273,20 +273,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:46:24 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:46:24 GMT ms-cv: @@ -314,20 +314,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:46:24 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:46:24 GMT ms-cv: diff --git a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_create_room_incorrectMri.yaml b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_create_room_incorrectMri.yaml index 0ccfd9810845..a5fcae201e6e 100644 --- a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_create_room_incorrectMri.yaml +++ b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_create_room_incorrectMri.yaml @@ -13,20 +13,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:46:24 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -60,20 +60,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:46:25 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -107,20 +107,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:46:25 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -198,20 +198,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:46:25 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:46:25 GMT ms-cv: @@ -239,20 +239,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:46:25 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:46:25 GMT ms-cv: @@ -280,20 +280,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:46:26 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:46:25 GMT ms-cv: diff --git a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_create_room_no_attributes.yaml b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_create_room_no_attributes.yaml index 5f2e6aa1bf46..49048db14f27 100644 --- a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_create_room_no_attributes.yaml +++ b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_create_room_no_attributes.yaml @@ -13,20 +13,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:46:26 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -60,20 +60,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:46:26 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -107,20 +107,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:46:26 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -232,20 +232,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:46:27 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:46:27 GMT ms-cv: @@ -273,20 +273,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:46:28 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:46:27 GMT ms-cv: @@ -314,20 +314,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:46:28 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:46:28 GMT ms-cv: diff --git a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_create_room_only_participants.yaml b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_create_room_only_participants.yaml index dbf8e8c00f69..30c88c585fef 100644 --- a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_create_room_only_participants.yaml +++ b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_create_room_only_participants.yaml @@ -13,20 +13,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:46:28 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -60,20 +60,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:46:28 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -107,20 +107,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:46:28 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -234,20 +234,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:46:30 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:46:29 GMT ms-cv: @@ -275,20 +275,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:46:30 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:46:29 GMT ms-cv: @@ -316,20 +316,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:46:30 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:46:30 GMT ms-cv: diff --git a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_create_room_only_validFrom.yaml b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_create_room_only_validFrom.yaml index 823bb0c38651..dc81ba2f956b 100644 --- a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_create_room_only_validFrom.yaml +++ b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_create_room_only_validFrom.yaml @@ -13,20 +13,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:46:30 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -60,20 +60,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:46:31 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -107,20 +107,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:46:31 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -232,20 +232,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:46:32 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:46:32 GMT ms-cv: @@ -273,20 +273,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:46:32 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:46:32 GMT ms-cv: @@ -314,20 +314,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:46:32 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:46:32 GMT ms-cv: diff --git a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_create_room_only_validUntil.yaml b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_create_room_only_validUntil.yaml index 6021d892dbac..f98a201df8b7 100644 --- a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_create_room_only_validUntil.yaml +++ b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_create_room_only_validUntil.yaml @@ -13,20 +13,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:46:33 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -60,20 +60,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:46:33 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -107,20 +107,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:46:33 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -232,20 +232,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:46:34 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:46:34 GMT ms-cv: @@ -273,20 +273,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:46:34 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:46:34 GMT ms-cv: @@ -314,20 +314,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:46:35 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:46:34 GMT ms-cv: diff --git a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_create_room_open_room.yaml b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_create_room_open_room.yaml index 8b20c88c4529..df8fc28c8caf 100644 --- a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_create_room_open_room.yaml +++ b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_create_room_open_room.yaml @@ -13,20 +13,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:46:35 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -60,20 +60,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:46:35 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -107,20 +107,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:46:35 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -233,20 +233,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:46:36 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:46:36 GMT ms-cv: @@ -274,20 +274,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:46:36 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:46:36 GMT ms-cv: @@ -315,20 +315,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:46:37 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:46:36 GMT ms-cv: diff --git a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_create_room_validFrom_7Months.yaml b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_create_room_validFrom_7Months.yaml index 9b8fed6a7b51..9135390b9921 100644 --- a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_create_room_validFrom_7Months.yaml +++ b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_create_room_validFrom_7Months.yaml @@ -13,20 +13,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:46:37 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -60,20 +60,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:46:37 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -107,20 +107,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:46:37 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -196,20 +196,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:46:38 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:46:38 GMT ms-cv: @@ -237,20 +237,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:46:38 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:46:38 GMT ms-cv: @@ -278,20 +278,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:46:39 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:46:39 GMT ms-cv: diff --git a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_create_room_validUntil_7Months.yaml b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_create_room_validUntil_7Months.yaml index a05233324088..9015fccf843e 100644 --- a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_create_room_validUntil_7Months.yaml +++ b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_create_room_validUntil_7Months.yaml @@ -13,20 +13,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:46:39 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -60,20 +60,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:46:39 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -107,20 +107,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:46:39 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -196,20 +196,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:46:40 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:46:40 GMT ms-cv: @@ -237,20 +237,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:46:40 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:46:40 GMT ms-cv: @@ -278,20 +278,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:46:41 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:46:40 GMT ms-cv: diff --git a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_delete_invalid_room.yaml b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_delete_invalid_room.yaml index 868d5a455542..e8eab30c2b27 100644 --- a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_delete_invalid_room.yaml +++ b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_delete_invalid_room.yaml @@ -13,20 +13,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:46:41 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -60,20 +60,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:46:41 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -107,20 +107,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:46:41 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -190,20 +190,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:46:42 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:46:41 GMT ms-cv: @@ -231,20 +231,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:46:42 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:46:42 GMT ms-cv: @@ -272,20 +272,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:46:42 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:46:42 GMT ms-cv: diff --git a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_get_invalid_room.yaml b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_get_invalid_room.yaml index 440323849ac5..78dc9060620e 100644 --- a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_get_invalid_room.yaml +++ b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_get_invalid_room.yaml @@ -13,20 +13,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:46:43 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -60,20 +60,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:46:43 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -107,20 +107,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:46:43 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -188,20 +188,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:46:44 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:46:43 GMT ms-cv: @@ -229,20 +229,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:46:44 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:46:44 GMT ms-cv: @@ -270,20 +270,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:46:44 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:46:44 GMT ms-cv: diff --git a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_get_room.yaml b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_get_room.yaml index 1c302483ccb4..9783037e8fa8 100644 --- a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_get_room.yaml +++ b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_get_room.yaml @@ -13,20 +13,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:46:45 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -60,20 +60,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:46:45 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -107,20 +107,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:46:45 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -270,20 +270,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:46:46 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:46:46 GMT ms-cv: @@ -311,20 +311,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:46:46 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:46:46 GMT ms-cv: @@ -352,20 +352,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:46:46 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:46:46 GMT ms-cv: diff --git a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_remove_participants.yaml b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_remove_participants.yaml index 517652803a62..52ecfcf8e724 100644 --- a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_remove_participants.yaml +++ b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_remove_participants.yaml @@ -13,20 +13,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:46:47 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -60,20 +60,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:46:47 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -107,20 +107,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:46:47 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -311,20 +311,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:46:48 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:46:48 GMT ms-cv: @@ -352,20 +352,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:46:49 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:46:48 GMT ms-cv: @@ -393,20 +393,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:46:49 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:46:49 GMT ms-cv: diff --git a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_update_participants.yaml b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_update_participants.yaml index e0efb3c6668d..74ae3088e5d1 100644 --- a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_update_participants.yaml +++ b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_update_participants.yaml @@ -13,20 +13,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:46:49 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -60,20 +60,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:46:49 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -107,20 +107,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:46:50 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -312,20 +312,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:46:51 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:46:51 GMT ms-cv: @@ -353,20 +353,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:46:51 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:46:51 GMT ms-cv: @@ -394,20 +394,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:46:51 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:46:51 GMT ms-cv: diff --git a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_update_room_ValidFrom_7Months.yaml b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_update_room_ValidFrom_7Months.yaml index 4db2d09662b0..bab8b87883b9 100644 --- a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_update_room_ValidFrom_7Months.yaml +++ b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_update_room_ValidFrom_7Months.yaml @@ -13,20 +13,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:46:52 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -60,20 +60,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:46:52 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -107,20 +107,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:46:52 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -272,20 +272,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:46:53 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:46:53 GMT ms-cv: @@ -313,20 +313,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:46:53 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:46:53 GMT ms-cv: @@ -354,20 +354,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:46:53 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:46:53 GMT ms-cv: diff --git a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_update_room_ValidUntil_7Months.yaml b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_update_room_ValidUntil_7Months.yaml index 3eb2b2c3eccc..ceb9615547b9 100644 --- a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_update_room_ValidUntil_7Months.yaml +++ b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_update_room_ValidUntil_7Months.yaml @@ -13,20 +13,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:46:54 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -60,20 +60,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:46:54 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -107,20 +107,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:46:54 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -272,20 +272,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:46:55 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:46:55 GMT ms-cv: @@ -313,20 +313,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:46:56 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:46:56 GMT ms-cv: @@ -354,20 +354,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:46:56 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:46:56 GMT ms-cv: diff --git a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_update_room_change_open_room_in_future.yaml b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_update_room_change_open_room_in_future.yaml index 47c594a88820..583be05f00ba 100644 --- a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_update_room_change_open_room_in_future.yaml +++ b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_update_room_change_open_room_in_future.yaml @@ -13,20 +13,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:46:56 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -60,20 +60,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:46:57 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -107,20 +107,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:46:57 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -273,20 +273,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:46:58 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:46:58 GMT ms-cv: @@ -314,20 +314,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:46:58 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:46:58 GMT ms-cv: @@ -355,20 +355,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:46:58 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:46:58 GMT ms-cv: diff --git a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_update_room_change_open_room_in_past.yaml b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_update_room_change_open_room_in_past.yaml index f60055e8bcb8..30c8648ccba8 100644 --- a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_update_room_change_open_room_in_past.yaml +++ b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_update_room_change_open_room_in_past.yaml @@ -13,20 +13,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:46:59 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -60,20 +60,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:46:59 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -107,20 +107,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:46:59 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -274,20 +274,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:47:00 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:47:00 GMT ms-cv: @@ -315,20 +315,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:47:01 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:47:01 GMT ms-cv: @@ -356,20 +356,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:47:01 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:47:01 GMT ms-cv: diff --git a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_update_room_correct_timerange.yaml b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_update_room_correct_timerange.yaml index f110d50f63b8..cce6373e3048 100644 --- a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_update_room_correct_timerange.yaml +++ b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_update_room_correct_timerange.yaml @@ -13,20 +13,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:47:01 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -60,20 +60,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:47:02 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -107,20 +107,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:47:02 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -272,20 +272,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:47:03 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:47:03 GMT ms-cv: @@ -313,20 +313,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:47:03 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:47:03 GMT ms-cv: @@ -354,20 +354,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:47:03 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:47:03 GMT ms-cv: diff --git a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_update_room_deleted_room.yaml b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_update_room_deleted_room.yaml index 8eff4bc6a909..04080e152d4e 100644 --- a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_update_room_deleted_room.yaml +++ b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_update_room_deleted_room.yaml @@ -13,20 +13,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:47:04 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -60,20 +60,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:47:04 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -107,20 +107,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:47:04 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -272,20 +272,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:47:05 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:47:05 GMT ms-cv: @@ -313,20 +313,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:47:05 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:47:05 GMT ms-cv: @@ -354,20 +354,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:47:06 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:47:05 GMT ms-cv: diff --git a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_update_room_incorrect_roomId.yaml b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_update_room_incorrect_roomId.yaml index a9ce86b7b752..12a8e229100b 100644 --- a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_update_room_incorrect_roomId.yaml +++ b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_update_room_incorrect_roomId.yaml @@ -13,20 +13,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:47:06 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -60,20 +60,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:47:06 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -107,20 +107,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:47:06 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -192,20 +192,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:47:07 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:47:06 GMT ms-cv: @@ -233,20 +233,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:47:07 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:47:07 GMT ms-cv: @@ -274,20 +274,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:47:07 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:47:07 GMT ms-cv: diff --git a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_update_room_incorrect_timerange.yaml b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_update_room_incorrect_timerange.yaml index cf20756ee0d0..6b479eabb938 100644 --- a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_update_room_incorrect_timerange.yaml +++ b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_update_room_incorrect_timerange.yaml @@ -13,20 +13,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:47:08 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -60,20 +60,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:47:08 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -107,20 +107,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:47:08 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -272,20 +272,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:47:09 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:47:09 GMT ms-cv: @@ -313,20 +313,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:47:09 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:47:09 GMT ms-cv: @@ -354,20 +354,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:47:09 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:47:09 GMT ms-cv: diff --git a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_update_room_only_ValidFrom.yaml b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_update_room_only_ValidFrom.yaml index da33b0c1eae0..c4e1437b9044 100644 --- a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_update_room_only_ValidFrom.yaml +++ b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_update_room_only_ValidFrom.yaml @@ -13,20 +13,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:47:10 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -60,20 +60,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:47:10 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -107,20 +107,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:47:10 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -272,20 +272,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:47:11 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:47:12 GMT ms-cv: @@ -313,20 +313,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:47:11 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:47:12 GMT ms-cv: @@ -354,20 +354,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:47:12 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:47:12 GMT ms-cv: diff --git a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_update_room_only_ValidUntil.yaml b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_update_room_only_ValidUntil.yaml index 1b2df0bda3d1..b67ab8322483 100644 --- a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_update_room_only_ValidUntil.yaml +++ b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_update_room_only_ValidUntil.yaml @@ -13,20 +13,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:47:12 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -60,20 +60,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:47:12 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -107,20 +107,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:47:13 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -272,20 +272,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:47:14 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:47:14 GMT ms-cv: @@ -313,20 +313,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:47:14 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:47:14 GMT ms-cv: @@ -354,20 +354,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:47:14 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:47:14 GMT ms-cv: diff --git a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_update_room_wrongRoleName.yaml b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_update_room_wrongRoleName.yaml index 31ee39886fd0..98d9262bce19 100644 --- a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_update_room_wrongRoleName.yaml +++ b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_update_room_wrongRoleName.yaml @@ -13,20 +13,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:47:15 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -60,20 +60,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:47:15 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -107,20 +107,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:47:15 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -241,20 +241,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:47:16 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:47:16 GMT ms-cv: @@ -282,20 +282,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:47:17 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:47:17 GMT ms-cv: @@ -323,20 +323,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:47:17 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.ppe.communication.azure.net/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:47:17 GMT ms-cv: From 0ff0867870d9290556f5fa753fdeb53f9fa420ee Mon Sep 17 00:00:00 2001 From: Maxim Rytych Date: Thu, 29 Sep 2022 15:25:09 +0200 Subject: [PATCH 10/17] Update test recordings --- ..._client_async_e2e.test_add_participant_async.yaml | 6 +++--- ...e2e.test_add_participants_incorrectMri_async.yaml | 12 ++++++------ ...2e.test_add_participants_wrongRoleName_async.yaml | 12 ++++++------ ...nc_e2e.test_create_room_all_attributes_async.yaml | 12 ++++++------ ...e2e.test_create_room_correct_timerange_async.yaml | 12 ++++++------ ...sync_e2e.test_create_room_incorrectMri_async.yaml | 12 ++++++------ ...ync_e2e.test_create_room_no_attributes_async.yaml | 12 ++++++------ ...e2e.test_create_room_only_participants_async.yaml | 12 ++++++------ ...nc_e2e.test_create_room_only_validFrom_async.yaml | 12 ++++++------ ...c_e2e.test_create_room_only_validUntil_async.yaml | 12 ++++++------ ..._client_async_e2e.test_create_room_open_room.yaml | 12 ++++++------ ...e2e.test_create_room_validFrom_7Months_async.yaml | 12 ++++++------ ...2e.test_create_room_validUntil_7Months_async.yaml | 12 ++++++------ ...ent_async_e2e.test_delete_invalid_room_async.yaml | 12 ++++++------ ...client_async_e2e.test_get_invalid_room_async.yaml | 12 ++++++------ ...t_rooms_client_async_e2e.test_get_room_async.yaml | 12 ++++++------ ...ient_async_e2e.test_remove_participant_async.yaml | 12 ++++++------ ...ient_async_e2e.test_update_participant_async.yaml | 12 ++++++------ ...e2e.test_update_room_ValidFrom_7Months_async.yaml | 12 ++++++------ ...2e.test_update_room_ValidUntil_7Months_async.yaml | 12 ++++++------ ....test_update_room_change_open_room_in_future.yaml | 12 ++++++------ ...2e.test_update_room_change_open_room_in_past.yaml | 12 ++++++------ ...e2e.test_update_room_correct_timerange_async.yaml | 12 ++++++------ ...sync_e2e.test_update_room_deleted_room_async.yaml | 12 ++++++------ ..._e2e.test_update_room_incorrect_roomId_async.yaml | 12 ++++++------ ...e.test_update_room_incorrect_timerange_async.yaml | 12 ++++++------ ...nc_e2e.test_update_room_only_ValidFrom_async.yaml | 12 ++++++------ ...c_e2e.test_update_room_only_ValidUntil_async.yaml | 12 ++++++------ .../test_rooms_client_e2e.test_add_participants.yaml | 12 ++++++------ ...lient_e2e.test_add_participants_incorrectMri.yaml | 12 ++++++------ ...s_client_e2e.test_create_room_all_attributes.yaml | 12 ++++++------ ...lient_e2e.test_create_room_correct_timerange.yaml | 12 ++++++------ ...oms_client_e2e.test_create_room_incorrectMri.yaml | 12 ++++++------ ...ms_client_e2e.test_create_room_no_attributes.yaml | 12 ++++++------ ...lient_e2e.test_create_room_only_participants.yaml | 12 ++++++------ ...s_client_e2e.test_create_room_only_validFrom.yaml | 12 ++++++------ ..._client_e2e.test_create_room_only_validUntil.yaml | 12 ++++++------ ..._rooms_client_e2e.test_create_room_open_room.yaml | 12 ++++++------ ...lient_e2e.test_create_room_validFrom_7Months.yaml | 12 ++++++------ ...ient_e2e.test_create_room_validUntil_7Months.yaml | 12 ++++++------ ...st_rooms_client_e2e.test_delete_invalid_room.yaml | 12 ++++++------ .../test_rooms_client_e2e.test_get_invalid_room.yaml | 12 ++++++------ .../test_rooms_client_e2e.test_get_room.yaml | 12 ++++++------ ...st_rooms_client_e2e.test_remove_participants.yaml | 12 ++++++------ ...st_rooms_client_e2e.test_update_participants.yaml | 12 ++++++------ ...lient_e2e.test_update_room_ValidFrom_7Months.yaml | 12 ++++++------ ...ient_e2e.test_update_room_ValidUntil_7Months.yaml | 12 ++++++------ ....test_update_room_change_open_room_in_future.yaml | 12 ++++++------ ...2e.test_update_room_change_open_room_in_past.yaml | 12 ++++++------ ...lient_e2e.test_update_room_correct_timerange.yaml | 12 ++++++------ ...oms_client_e2e.test_update_room_deleted_room.yaml | 12 ++++++------ ...client_e2e.test_update_room_incorrect_roomId.yaml | 12 ++++++------ ...ent_e2e.test_update_room_incorrect_timerange.yaml | 12 ++++++------ ...s_client_e2e.test_update_room_only_ValidFrom.yaml | 12 ++++++------ ..._client_e2e.test_update_room_only_ValidUntil.yaml | 12 ++++++------ ...ms_client_e2e.test_update_room_wrongRoleName.yaml | 12 ++++++------ 56 files changed, 333 insertions(+), 333 deletions(-) diff --git a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_add_participant_async.yaml b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_add_participant_async.yaml index a1e6a23b8bb4..d8ad061989f7 100644 --- a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_add_participant_async.yaml +++ b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_add_participant_async.yaml @@ -278,7 +278,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -319,7 +319,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -360,7 +360,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' diff --git a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_add_participants_incorrectMri_async.yaml b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_add_participants_incorrectMri_async.yaml index 601282723c97..7a7e1d446a89 100644 --- a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_add_participants_incorrectMri_async.yaml +++ b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_add_participants_incorrectMri_async.yaml @@ -19,7 +19,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -66,7 +66,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -113,7 +113,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -227,7 +227,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -268,7 +268,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -309,7 +309,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' diff --git a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_add_participants_wrongRoleName_async.yaml b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_add_participants_wrongRoleName_async.yaml index 3493b770f1ef..e3e2a80177f3 100644 --- a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_add_participants_wrongRoleName_async.yaml +++ b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_add_participants_wrongRoleName_async.yaml @@ -19,7 +19,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -66,7 +66,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -113,7 +113,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -230,7 +230,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -271,7 +271,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -312,7 +312,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' diff --git a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_create_room_all_attributes_async.yaml b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_create_room_all_attributes_async.yaml index adf8f9b8d0b6..2652221dde97 100644 --- a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_create_room_all_attributes_async.yaml +++ b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_create_room_all_attributes_async.yaml @@ -19,7 +19,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -66,7 +66,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -113,7 +113,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -221,7 +221,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -262,7 +262,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -303,7 +303,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' diff --git a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_create_room_correct_timerange_async.yaml b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_create_room_correct_timerange_async.yaml index e0f376692c74..1ad97333aeff 100644 --- a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_create_room_correct_timerange_async.yaml +++ b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_create_room_correct_timerange_async.yaml @@ -19,7 +19,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -66,7 +66,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -113,7 +113,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -219,7 +219,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -260,7 +260,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -301,7 +301,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' diff --git a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_create_room_incorrectMri_async.yaml b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_create_room_incorrectMri_async.yaml index ef8a99c5988c..05c6d231b757 100644 --- a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_create_room_incorrectMri_async.yaml +++ b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_create_room_incorrectMri_async.yaml @@ -19,7 +19,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -66,7 +66,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -113,7 +113,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -195,7 +195,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -236,7 +236,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -277,7 +277,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' diff --git a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_create_room_no_attributes_async.yaml b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_create_room_no_attributes_async.yaml index a640d70398b5..2755a0cebd61 100644 --- a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_create_room_no_attributes_async.yaml +++ b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_create_room_no_attributes_async.yaml @@ -19,7 +19,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -66,7 +66,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -113,7 +113,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -219,7 +219,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -260,7 +260,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -301,7 +301,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' diff --git a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_create_room_only_participants_async.yaml b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_create_room_only_participants_async.yaml index c6691f401737..8992ce1ada16 100644 --- a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_create_room_only_participants_async.yaml +++ b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_create_room_only_participants_async.yaml @@ -19,7 +19,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -66,7 +66,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -113,7 +113,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -221,7 +221,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -262,7 +262,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -303,7 +303,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' diff --git a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_create_room_only_validFrom_async.yaml b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_create_room_only_validFrom_async.yaml index 474e9160c6b2..90b615bd3753 100644 --- a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_create_room_only_validFrom_async.yaml +++ b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_create_room_only_validFrom_async.yaml @@ -19,7 +19,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -66,7 +66,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -113,7 +113,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -219,7 +219,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -260,7 +260,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -301,7 +301,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' diff --git a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_create_room_only_validUntil_async.yaml b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_create_room_only_validUntil_async.yaml index c6bc4a483358..79d5f6757be3 100644 --- a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_create_room_only_validUntil_async.yaml +++ b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_create_room_only_validUntil_async.yaml @@ -19,7 +19,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -66,7 +66,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -113,7 +113,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -219,7 +219,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -260,7 +260,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -301,7 +301,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' diff --git a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_create_room_open_room.yaml b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_create_room_open_room.yaml index b63e632dbe8b..e60325c68d30 100644 --- a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_create_room_open_room.yaml +++ b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_create_room_open_room.yaml @@ -19,7 +19,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -66,7 +66,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -113,7 +113,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -220,7 +220,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -261,7 +261,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -302,7 +302,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' diff --git a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_create_room_validFrom_7Months_async.yaml b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_create_room_validFrom_7Months_async.yaml index f7eb87f6e4d1..20299e8f3334 100644 --- a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_create_room_validFrom_7Months_async.yaml +++ b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_create_room_validFrom_7Months_async.yaml @@ -19,7 +19,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -66,7 +66,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -113,7 +113,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -194,7 +194,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -235,7 +235,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -276,7 +276,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' diff --git a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_create_room_validUntil_7Months_async.yaml b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_create_room_validUntil_7Months_async.yaml index 5fc6ac666307..ea45c7db9edc 100644 --- a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_create_room_validUntil_7Months_async.yaml +++ b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_create_room_validUntil_7Months_async.yaml @@ -19,7 +19,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -66,7 +66,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -113,7 +113,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -194,7 +194,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -235,7 +235,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -276,7 +276,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' diff --git a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_delete_invalid_room_async.yaml b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_delete_invalid_room_async.yaml index c845301c8ee8..4994c4cec310 100644 --- a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_delete_invalid_room_async.yaml +++ b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_delete_invalid_room_async.yaml @@ -19,7 +19,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -66,7 +66,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -113,7 +113,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -185,7 +185,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -226,7 +226,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -267,7 +267,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' diff --git a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_get_invalid_room_async.yaml b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_get_invalid_room_async.yaml index 8be46ac01f4a..ed157b77cdc9 100644 --- a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_get_invalid_room_async.yaml +++ b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_get_invalid_room_async.yaml @@ -19,7 +19,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -66,7 +66,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -113,7 +113,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -185,7 +185,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -226,7 +226,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -267,7 +267,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' diff --git a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_get_room_async.yaml b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_get_room_async.yaml index ee045d0f4e6a..0281f7ae3185 100644 --- a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_get_room_async.yaml +++ b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_get_room_async.yaml @@ -19,7 +19,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -66,7 +66,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -113,7 +113,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -248,7 +248,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -289,7 +289,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -330,7 +330,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' diff --git a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_remove_participant_async.yaml b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_remove_participant_async.yaml index 2bdb92216712..4da5df26408a 100644 --- a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_remove_participant_async.yaml +++ b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_remove_participant_async.yaml @@ -19,7 +19,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -66,7 +66,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -113,7 +113,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -280,7 +280,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -321,7 +321,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -362,7 +362,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' diff --git a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_update_participant_async.yaml b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_update_participant_async.yaml index e4174a01067f..f6486924acd8 100644 --- a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_update_participant_async.yaml +++ b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_update_participant_async.yaml @@ -19,7 +19,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -66,7 +66,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -113,7 +113,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -281,7 +281,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -322,7 +322,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -363,7 +363,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' diff --git a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_update_room_ValidFrom_7Months_async.yaml b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_update_room_ValidFrom_7Months_async.yaml index daa634dfb7c7..70b450c3dbe9 100644 --- a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_update_room_ValidFrom_7Months_async.yaml +++ b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_update_room_ValidFrom_7Months_async.yaml @@ -19,7 +19,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -66,7 +66,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -113,7 +113,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -226,7 +226,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -267,7 +267,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -308,7 +308,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' diff --git a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_update_room_ValidUntil_7Months_async.yaml b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_update_room_ValidUntil_7Months_async.yaml index e0b6f1624393..efbc75bbba87 100644 --- a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_update_room_ValidUntil_7Months_async.yaml +++ b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_update_room_ValidUntil_7Months_async.yaml @@ -19,7 +19,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -66,7 +66,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -113,7 +113,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -226,7 +226,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -267,7 +267,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -308,7 +308,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' diff --git a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_update_room_change_open_room_in_future.yaml b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_update_room_change_open_room_in_future.yaml index f1a4b9383601..cd986d1c1e2a 100644 --- a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_update_room_change_open_room_in_future.yaml +++ b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_update_room_change_open_room_in_future.yaml @@ -19,7 +19,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -66,7 +66,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -113,7 +113,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -251,7 +251,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -292,7 +292,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -333,7 +333,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' diff --git a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_update_room_change_open_room_in_past.yaml b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_update_room_change_open_room_in_past.yaml index 17f50f99ac83..958e364d7333 100644 --- a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_update_room_change_open_room_in_past.yaml +++ b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_update_room_change_open_room_in_past.yaml @@ -19,7 +19,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -66,7 +66,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -113,7 +113,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -252,7 +252,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -293,7 +293,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -334,7 +334,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' diff --git a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_update_room_correct_timerange_async.yaml b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_update_room_correct_timerange_async.yaml index 66c7a0d183bd..2c7486979251 100644 --- a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_update_room_correct_timerange_async.yaml +++ b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_update_room_correct_timerange_async.yaml @@ -19,7 +19,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -66,7 +66,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -113,7 +113,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -250,7 +250,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -291,7 +291,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -332,7 +332,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' diff --git a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_update_room_deleted_room_async.yaml b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_update_room_deleted_room_async.yaml index 19d42412a0fe..723ec768c2c3 100644 --- a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_update_room_deleted_room_async.yaml +++ b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_update_room_deleted_room_async.yaml @@ -19,7 +19,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -66,7 +66,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -113,7 +113,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -250,7 +250,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -291,7 +291,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -332,7 +332,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' diff --git a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_update_room_incorrect_roomId_async.yaml b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_update_room_incorrect_roomId_async.yaml index 17a7e7e0d569..3bf074c63abe 100644 --- a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_update_room_incorrect_roomId_async.yaml +++ b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_update_room_incorrect_roomId_async.yaml @@ -19,7 +19,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -66,7 +66,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -113,7 +113,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -189,7 +189,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -230,7 +230,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -271,7 +271,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' diff --git a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_update_room_incorrect_timerange_async.yaml b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_update_room_incorrect_timerange_async.yaml index 5b6011a56943..0eb9bfb2d1be 100644 --- a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_update_room_incorrect_timerange_async.yaml +++ b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_update_room_incorrect_timerange_async.yaml @@ -19,7 +19,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -66,7 +66,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -113,7 +113,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -226,7 +226,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -267,7 +267,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -308,7 +308,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' diff --git a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_update_room_only_ValidFrom_async.yaml b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_update_room_only_ValidFrom_async.yaml index 5e1c3e4ad242..931919f22e61 100644 --- a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_update_room_only_ValidFrom_async.yaml +++ b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_update_room_only_ValidFrom_async.yaml @@ -19,7 +19,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -66,7 +66,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -113,7 +113,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -226,7 +226,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -267,7 +267,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -308,7 +308,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' diff --git a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_update_room_only_ValidUntil_async.yaml b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_update_room_only_ValidUntil_async.yaml index 9be6e76ca0ec..14ecea16c13b 100644 --- a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_update_room_only_ValidUntil_async.yaml +++ b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_update_room_only_ValidUntil_async.yaml @@ -19,7 +19,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -66,7 +66,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -113,7 +113,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -226,7 +226,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -267,7 +267,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -308,7 +308,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' diff --git a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_add_participants.yaml b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_add_participants.yaml index 20a06b265505..5ab4d24fe7e0 100644 --- a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_add_participants.yaml +++ b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_add_participants.yaml @@ -19,7 +19,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -66,7 +66,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -113,7 +113,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -315,7 +315,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -356,7 +356,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -397,7 +397,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' diff --git a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_add_participants_incorrectMri.yaml b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_add_participants_incorrectMri.yaml index 66fcf187f61e..1262174f31cd 100644 --- a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_add_participants_incorrectMri.yaml +++ b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_add_participants_incorrectMri.yaml @@ -19,7 +19,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -66,7 +66,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -113,7 +113,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -246,7 +246,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -287,7 +287,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -328,7 +328,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' diff --git a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_create_room_all_attributes.yaml b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_create_room_all_attributes.yaml index 09a6d76d5133..7b8cd7e0434e 100644 --- a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_create_room_all_attributes.yaml +++ b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_create_room_all_attributes.yaml @@ -19,7 +19,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -66,7 +66,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -113,7 +113,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -240,7 +240,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -281,7 +281,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -322,7 +322,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' diff --git a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_create_room_correct_timerange.yaml b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_create_room_correct_timerange.yaml index 4eb2a28db342..73e4e00dd1f4 100644 --- a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_create_room_correct_timerange.yaml +++ b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_create_room_correct_timerange.yaml @@ -19,7 +19,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -66,7 +66,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -113,7 +113,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -238,7 +238,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -279,7 +279,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -320,7 +320,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' diff --git a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_create_room_incorrectMri.yaml b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_create_room_incorrectMri.yaml index 58fb54952f4a..7747ad53907b 100644 --- a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_create_room_incorrectMri.yaml +++ b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_create_room_incorrectMri.yaml @@ -19,7 +19,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -66,7 +66,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -113,7 +113,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -204,7 +204,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -245,7 +245,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -286,7 +286,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' diff --git a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_create_room_no_attributes.yaml b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_create_room_no_attributes.yaml index 3ec353b68f2c..41c473a7fe95 100644 --- a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_create_room_no_attributes.yaml +++ b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_create_room_no_attributes.yaml @@ -19,7 +19,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -66,7 +66,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -113,7 +113,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -238,7 +238,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -279,7 +279,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -320,7 +320,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' diff --git a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_create_room_only_participants.yaml b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_create_room_only_participants.yaml index 16f7471e6f5a..89466b4c6113 100644 --- a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_create_room_only_participants.yaml +++ b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_create_room_only_participants.yaml @@ -19,7 +19,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -66,7 +66,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -113,7 +113,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -240,7 +240,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -281,7 +281,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -322,7 +322,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' diff --git a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_create_room_only_validFrom.yaml b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_create_room_only_validFrom.yaml index 7796f036e405..faaf85530760 100644 --- a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_create_room_only_validFrom.yaml +++ b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_create_room_only_validFrom.yaml @@ -19,7 +19,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -66,7 +66,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -113,7 +113,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -238,7 +238,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -279,7 +279,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -320,7 +320,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' diff --git a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_create_room_only_validUntil.yaml b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_create_room_only_validUntil.yaml index e66b2bf703ab..098c5ad3c60a 100644 --- a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_create_room_only_validUntil.yaml +++ b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_create_room_only_validUntil.yaml @@ -19,7 +19,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -66,7 +66,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -113,7 +113,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -238,7 +238,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -279,7 +279,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -320,7 +320,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' diff --git a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_create_room_open_room.yaml b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_create_room_open_room.yaml index 82ca27a54f8b..8a42fbe5dba7 100644 --- a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_create_room_open_room.yaml +++ b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_create_room_open_room.yaml @@ -19,7 +19,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -66,7 +66,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -113,7 +113,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -239,7 +239,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -280,7 +280,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -321,7 +321,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' diff --git a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_create_room_validFrom_7Months.yaml b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_create_room_validFrom_7Months.yaml index efff6059d9f4..24bc6f8f24bb 100644 --- a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_create_room_validFrom_7Months.yaml +++ b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_create_room_validFrom_7Months.yaml @@ -19,7 +19,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -66,7 +66,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -113,7 +113,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -202,7 +202,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -243,7 +243,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -284,7 +284,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' diff --git a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_create_room_validUntil_7Months.yaml b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_create_room_validUntil_7Months.yaml index e74871e11d9f..0437bb66a99a 100644 --- a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_create_room_validUntil_7Months.yaml +++ b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_create_room_validUntil_7Months.yaml @@ -19,7 +19,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -66,7 +66,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -113,7 +113,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -202,7 +202,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -243,7 +243,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -284,7 +284,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' diff --git a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_delete_invalid_room.yaml b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_delete_invalid_room.yaml index 9702096c793a..3d44e37eb160 100644 --- a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_delete_invalid_room.yaml +++ b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_delete_invalid_room.yaml @@ -19,7 +19,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -66,7 +66,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -113,7 +113,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -196,7 +196,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -237,7 +237,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -278,7 +278,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' diff --git a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_get_invalid_room.yaml b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_get_invalid_room.yaml index f2b40acf1948..5e3f3bc38adb 100644 --- a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_get_invalid_room.yaml +++ b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_get_invalid_room.yaml @@ -19,7 +19,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -66,7 +66,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -113,7 +113,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -194,7 +194,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -235,7 +235,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -276,7 +276,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' diff --git a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_get_room.yaml b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_get_room.yaml index 3c782791f940..6647fe56ca48 100644 --- a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_get_room.yaml +++ b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_get_room.yaml @@ -19,7 +19,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -66,7 +66,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -113,7 +113,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -276,7 +276,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -317,7 +317,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -358,7 +358,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' diff --git a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_remove_participants.yaml b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_remove_participants.yaml index 39433f6166d8..2efa373296f2 100644 --- a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_remove_participants.yaml +++ b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_remove_participants.yaml @@ -19,7 +19,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -66,7 +66,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -113,7 +113,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -317,7 +317,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -358,7 +358,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -399,7 +399,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' diff --git a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_update_participants.yaml b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_update_participants.yaml index 1c9446242c74..a5d036a15af3 100644 --- a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_update_participants.yaml +++ b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_update_participants.yaml @@ -19,7 +19,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -66,7 +66,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -113,7 +113,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -318,7 +318,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -359,7 +359,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -400,7 +400,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' diff --git a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_update_room_ValidFrom_7Months.yaml b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_update_room_ValidFrom_7Months.yaml index 64d799b06b3b..3e2d51a110ed 100644 --- a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_update_room_ValidFrom_7Months.yaml +++ b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_update_room_ValidFrom_7Months.yaml @@ -19,7 +19,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -66,7 +66,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -113,7 +113,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -278,7 +278,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -319,7 +319,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -360,7 +360,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' diff --git a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_update_room_ValidUntil_7Months.yaml b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_update_room_ValidUntil_7Months.yaml index 965974d6c21a..8cea6ad13b90 100644 --- a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_update_room_ValidUntil_7Months.yaml +++ b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_update_room_ValidUntil_7Months.yaml @@ -19,7 +19,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -66,7 +66,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -113,7 +113,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -278,7 +278,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -319,7 +319,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -360,7 +360,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' diff --git a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_update_room_change_open_room_in_future.yaml b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_update_room_change_open_room_in_future.yaml index 8a10aba0f352..0c5912326ab2 100644 --- a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_update_room_change_open_room_in_future.yaml +++ b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_update_room_change_open_room_in_future.yaml @@ -19,7 +19,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -66,7 +66,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -113,7 +113,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -279,7 +279,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -320,7 +320,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -361,7 +361,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' diff --git a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_update_room_change_open_room_in_past.yaml b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_update_room_change_open_room_in_past.yaml index 4e9de8d19d8b..fbf93dfbacb6 100644 --- a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_update_room_change_open_room_in_past.yaml +++ b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_update_room_change_open_room_in_past.yaml @@ -19,7 +19,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -66,7 +66,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -113,7 +113,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -280,7 +280,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -321,7 +321,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -362,7 +362,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' diff --git a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_update_room_correct_timerange.yaml b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_update_room_correct_timerange.yaml index 73fc2da7730f..8a265207ae13 100644 --- a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_update_room_correct_timerange.yaml +++ b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_update_room_correct_timerange.yaml @@ -19,7 +19,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -66,7 +66,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -113,7 +113,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -278,7 +278,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -319,7 +319,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -360,7 +360,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' diff --git a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_update_room_deleted_room.yaml b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_update_room_deleted_room.yaml index ed02673e00cb..44006b3dceb5 100644 --- a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_update_room_deleted_room.yaml +++ b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_update_room_deleted_room.yaml @@ -19,7 +19,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -66,7 +66,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -113,7 +113,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -278,7 +278,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -319,7 +319,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -360,7 +360,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' diff --git a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_update_room_incorrect_roomId.yaml b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_update_room_incorrect_roomId.yaml index f6eca20107d0..0a87658c1780 100644 --- a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_update_room_incorrect_roomId.yaml +++ b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_update_room_incorrect_roomId.yaml @@ -19,7 +19,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -66,7 +66,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -113,7 +113,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -198,7 +198,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -239,7 +239,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -280,7 +280,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' diff --git a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_update_room_incorrect_timerange.yaml b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_update_room_incorrect_timerange.yaml index b1502e61258c..a47842844e0f 100644 --- a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_update_room_incorrect_timerange.yaml +++ b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_update_room_incorrect_timerange.yaml @@ -19,7 +19,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -66,7 +66,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -113,7 +113,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -278,7 +278,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -319,7 +319,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -360,7 +360,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' diff --git a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_update_room_only_ValidFrom.yaml b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_update_room_only_ValidFrom.yaml index 09827d06f8c0..217768064af7 100644 --- a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_update_room_only_ValidFrom.yaml +++ b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_update_room_only_ValidFrom.yaml @@ -19,7 +19,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -66,7 +66,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -113,7 +113,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -278,7 +278,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -319,7 +319,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -360,7 +360,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' diff --git a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_update_room_only_ValidUntil.yaml b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_update_room_only_ValidUntil.yaml index e202d46bfaf4..e704d998fdba 100644 --- a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_update_room_only_ValidUntil.yaml +++ b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_update_room_only_ValidUntil.yaml @@ -19,7 +19,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -66,7 +66,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -113,7 +113,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -278,7 +278,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -319,7 +319,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -360,7 +360,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' diff --git a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_update_room_wrongRoleName.yaml b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_update_room_wrongRoleName.yaml index 686d84ce7688..dc6a51f12e96 100644 --- a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_update_room_wrongRoleName.yaml +++ b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_update_room_wrongRoleName.yaml @@ -19,7 +19,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -66,7 +66,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -113,7 +113,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -247,7 +247,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -288,7 +288,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -329,7 +329,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' From 2f7049095fa72c6f8d409a3efd45c66349d053d2 Mon Sep 17 00:00:00 2001 From: Aigerim Beishenbekova Date: Fri, 7 Oct 2022 14:55:07 +0200 Subject: [PATCH 11/17] fixed PR comments --- .../azure-communication-identity/CHANGELOG.md | 12 +------- .../azure-communication-identity/README.md | 4 +-- .../samples/identity_samples.py | 8 ++--- .../samples/identity_samples_async.py | 8 ++--- .../tests/_shared/utils.py | 20 +------------ .../test_communication_identity_client.py | 30 +++++++++---------- ...est_communication_identity_client_async.py | 23 +++++++------- .../tests/utils.py | 21 +++++++++++++ 8 files changed, 58 insertions(+), 68 deletions(-) create mode 100644 sdk/communication/azure-communication-identity/tests/utils.py diff --git a/sdk/communication/azure-communication-identity/CHANGELOG.md b/sdk/communication/azure-communication-identity/CHANGELOG.md index fe2d0979382c..a7fc3e308f73 100644 --- a/sdk/communication/azure-communication-identity/CHANGELOG.md +++ b/sdk/communication/azure-communication-identity/CHANGELOG.md @@ -5,19 +5,9 @@ ### Features Added - Added support to customize the Communication Identity access token's validity period: - - `create_user_and_token` and `get_token` methods in both sync and async clients can now accept keyword argument `token_expires_in` that provides the ability to create a Communication Identity access token with custom expiration. + - `create_user_and_token` and `get_token` methods in both sync and async clients can now accept keyword argument `token_expires_in: ~datetime.timedelta` that provides the ability to create a Communication Identity access token with custom expiration. - Added a new API version `ApiVersion.V2022_10_01` that is now the default API version. -## 1.2.1 (Unreleased) - -### Features Added - -### Breaking Changes - -### Bugs Fixed - -### Other Changes - ## 1.2.0 (2022-08-24) ### Features Added diff --git a/sdk/communication/azure-communication-identity/README.md b/sdk/communication/azure-communication-identity/README.md index c360c78bf647..2e0975ce6762 100644 --- a/sdk/communication/azure-communication-identity/README.md +++ b/sdk/communication/azure-communication-identity/README.md @@ -82,7 +82,7 @@ print("Token issued with value: " + tokenresponse.token) You can specify expiration time for the token. The token can be configured to expire in as little as one hour or as long as 24 hours. The default expiration time is 24 hours. ```python -token_expires_in = timedelta(minutes=60) +token_expires_in = timedelta(hours=60) tokenresponse = identity_client.get_token(user, scopes=[CommunicationTokenScope.CHAT], token_expires_in=token_expires_in) print("Token issued with value: " + tokenresponse.token) ``` @@ -100,7 +100,7 @@ print("Token issued with value: " + tokenresponse.token) You can specify expiration time for the token. The token can be configured to expire in as little as one hour or as long as 24 hours. The default expiration time is 24 hours. ```python -token_expires_in = timedelta(minutes=60) +token_expires_in = timedelta(hours=60) user, tokenresponse = identity_client.create_user_and_token(scopes=[CommunicationTokenScope.CHAT], token_expires_in=token_expires_in) print("User id:" + user.properties['id']) print("Token issued with value: " + tokenresponse.token) diff --git a/sdk/communication/azure-communication-identity/samples/identity_samples.py b/sdk/communication/azure-communication-identity/samples/identity_samples.py index 0488f903787d..83ba5ecb6f12 100644 --- a/sdk/communication/azure-communication-identity/samples/identity_samples.py +++ b/sdk/communication/azure-communication-identity/samples/identity_samples.py @@ -72,9 +72,9 @@ def get_token_with_custom_expiration(self): identity_client = CommunicationIdentityClient.from_connection_string(self.connection_string) user = identity_client.create_user() print("Getting token for: " + user.properties.get('id')) - token_expires_in = timedelta(minutes=60) + token_expires_in = timedelta(hours=1) tokenresponse = identity_client.get_token(user, scopes=[CommunicationTokenScope.CHAT], token_expires_in=token_expires_in) - print("Token issued with value: " + tokenresponse.token) + print("Issued token with custom expiration" + tokenresponse.token) def revoke_tokens(self): from azure.communication.identity import ( @@ -135,10 +135,10 @@ def create_user_and_token_with_custom_expiration(self): else: identity_client = CommunicationIdentityClient.from_connection_string(self.connection_string) print("Creating new user with token") - token_expires_in = timedelta(minutes=60) + token_expires_in = timedelta(hours=1) user, tokenresponse = identity_client.create_user_and_token(scopes=[CommunicationTokenScope.CHAT], token_expires_in=token_expires_in) print("User created with id:" + user.properties.get('id')) - print("Token issued with value: " + tokenresponse.token) + print("Issued token with custom expiration: " + tokenresponse.token) def delete_user(self): from azure.communication.identity import CommunicationIdentityClient diff --git a/sdk/communication/azure-communication-identity/samples/identity_samples_async.py b/sdk/communication/azure-communication-identity/samples/identity_samples_async.py index 74cf5b7946e9..6b457cbfe09e 100644 --- a/sdk/communication/azure-communication-identity/samples/identity_samples_async.py +++ b/sdk/communication/azure-communication-identity/samples/identity_samples_async.py @@ -75,9 +75,9 @@ async def get_token_with_custom_expiration(self): async with identity_client: user = await identity_client.create_user() print("Issuing token for: " + user.properties.get('id')) - token_expires_in = timedelta(minutes=60) + token_expires_in = timedelta(hours=1) tokenresponse = await identity_client.get_token(user, scopes=[CommunicationTokenScope.CHAT], token_expires_in=token_expires_in) - print("Token issued with value: " + tokenresponse.token) + print("Issued token with custom expiration: " + tokenresponse.token) async def revoke_tokens(self): from azure.communication.identity.aio import CommunicationIdentityClient @@ -138,10 +138,10 @@ async def create_user_and_token_with_custom_expiration(self): async with identity_client: print("Creating new user with token") - token_expires_in = timedelta(minutes=60) + token_expires_in = timedelta(hours=1) user, tokenresponse = await identity_client.create_user_and_token(scopes=[CommunicationTokenScope.CHAT], token_expires_in=token_expires_in) print("User created with id:" + user.properties.get('id')) - print("Token issued with value: " + tokenresponse.token) + print("Issued token with custom expiration: " + tokenresponse.token) async def delete_user(self): from azure.communication.identity.aio import CommunicationIdentityClient diff --git a/sdk/communication/azure-communication-identity/tests/_shared/utils.py b/sdk/communication/azure-communication-identity/tests/_shared/utils.py index ba706eaa385e..33ef09fca4e1 100644 --- a/sdk/communication/azure-communication-identity/tests/_shared/utils.py +++ b/sdk/communication/azure-communication-identity/tests/_shared/utils.py @@ -4,16 +4,12 @@ # license information. # ------------------------------------------------------------------------- import os -from datetime import datetime, timedelta, timezone -from dateutil import parser from typing import ( # pylint: disable=unused-import cast, Tuple, ) from azure.core.pipeline.policies import HttpLoggingPolicy, HeadersPolicy -TOKEN_EXPIRATION_ALLOWED_DEVIATION = 0.05 - def create_token_credential(): # type: () -> FakeTokenCredential or DefaultAzureCredential from devtools_testutils import is_live @@ -75,18 +71,4 @@ def parse_connection_str(conn_str): else: host = str(endpoint) - return host, str(shared_access_key) - -def token_expiration_within_allowed_deviation( - expected_token_expiration, - token_expires_in, - allowed_deviation -): - # type: (timedelta, datetime, float) -> bool - utc_now = datetime.now(timezone.utc) - token_expiration = parser.parse(token_expires_in) - token_expiration_in_seconds = (token_expiration - utc_now).total_seconds() - expected_seconds = expected_token_expiration.total_seconds(); - time_difference = abs(expected_seconds - token_expiration_in_seconds) - allowed_time_difference = expected_seconds * allowed_deviation - return time_difference < allowed_time_difference \ No newline at end of file + return host, str(shared_access_key) \ No newline at end of file diff --git a/sdk/communication/azure-communication-identity/tests/test_communication_identity_client.py b/sdk/communication/azure-communication-identity/tests/test_communication_identity_client.py index 7e4e07eff5d2..b959ec8114c6 100644 --- a/sdk/communication/azure-communication-identity/tests/test_communication_identity_client.py +++ b/sdk/communication/azure-communication-identity/tests/test_communication_identity_client.py @@ -9,11 +9,13 @@ from azure.communication.identity import CommunicationIdentityClient from azure.communication.identity import CommunicationTokenScope from azure.core.credentials import AccessToken +from devtools_testutils import is_live from _shared.helper import URIIdentityReplacer, URIMsalUsernameReplacer from _shared.testcase import BodyReplacerProcessor from testcase import CommunicationIdentityTestCase from _shared.communication_service_preparer import CommunicationPreparer -from _shared.utils import TOKEN_EXPIRATION_ALLOWED_DEVIATION, get_http_logging_policy, token_expiration_within_allowed_deviation +from _shared.utils import get_http_logging_policy +from utils import is_token_expiration_within_allowed_deviation from azure.identity import DefaultAzureCredential from azure.communication.identity._shared.utils import parse_connection_str from parameterized import parameterized @@ -75,17 +77,15 @@ def test_create_user_and_token_with_custom_minimum_validity(self, communication_ http_logging_policy=get_http_logging_policy() ) - token_expires_in = timedelta(minutes=60) + token_expires_in = timedelta(hours=1) user, token_response = identity_client.create_user_and_token(scopes=[CommunicationTokenScope.CHAT], token_expires_in=token_expires_in) assert user.properties.get('id') is not None assert token_response.token is not None - from devtools_testutils import is_live if is_live(): - expiration_within_allowed_deviation = token_expiration_within_allowed_deviation(token_expires_in, token_response.expires_on, TOKEN_EXPIRATION_ALLOWED_DEVIATION) - assert expiration_within_allowed_deviation is True - + assert is_token_expiration_within_allowed_deviation(token_expires_in, token_response.expires_on) + @CommunicationPreparer() def test_create_user_and_token_with_custom_maximum_validity(self, communication_livetest_dynamic_connection_string): identity_client = CommunicationIdentityClient.from_connection_string( @@ -93,16 +93,14 @@ def test_create_user_and_token_with_custom_maximum_validity(self, communication_ http_logging_policy=get_http_logging_policy() ) - token_expires_in = timedelta(minutes=1440) + token_expires_in = timedelta(hours=24) user, token_response = identity_client.create_user_and_token(scopes=[CommunicationTokenScope.CHAT], token_expires_in=token_expires_in) assert user.properties.get('id') is not None assert token_response.token is not None - from devtools_testutils import is_live if is_live(): - expiration_within_allowed_deviation = token_expiration_within_allowed_deviation(token_expires_in, token_response.expires_on, TOKEN_EXPIRATION_ALLOWED_DEVIATION) - assert expiration_within_allowed_deviation is True + assert is_token_expiration_within_allowed_deviation(token_expires_in, token_response.expires_on) @CommunicationPreparer() def test_create_user_and_token_with_custom_validity_under_minimum_allowed(self, communication_livetest_dynamic_connection_string): @@ -137,7 +135,6 @@ def test_create_user_and_token_with_custom_validity_over_maximum_allowed(self, c @CommunicationPreparer() def test_get_token_from_managed_identity(self, communication_livetest_dynamic_connection_string): endpoint, access_key = parse_connection_str(communication_livetest_dynamic_connection_string) - from devtools_testutils import is_live if not is_live(): credential = FakeTokenCredential() else: @@ -175,11 +172,13 @@ def test_get_token_with_custom_minimum_validity(self, communication_livetest_dyn ) user = identity_client.create_user() - token_expires_in = timedelta(minutes=60) + token_expires_in = timedelta(hours=1) token_response = identity_client.get_token(user, scopes=[CommunicationTokenScope.CHAT], token_expires_in=token_expires_in) assert user.properties.get('id') is not None assert token_response.token is not None + if is_live(): + assert is_token_expiration_within_allowed_deviation(token_expires_in, token_response.expires_on) @CommunicationPreparer() def test_get_token_with_custom_maximum_validity(self, communication_livetest_dynamic_connection_string): @@ -189,11 +188,13 @@ def test_get_token_with_custom_maximum_validity(self, communication_livetest_dyn ) user = identity_client.create_user() - token_expires_in = timedelta(minutes=1440) + token_expires_in = timedelta(hours=24) token_response = identity_client.get_token(user, scopes=[CommunicationTokenScope.CHAT], token_expires_in=token_expires_in) assert user.properties.get('id') is not None assert token_response.token is not None + if is_live(): + assert is_token_expiration_within_allowed_deviation(token_expires_in, token_response.expires_on) @CommunicationPreparer() def test_get_token_with_custom_validity_under_minimum_allowed(self, communication_livetest_dynamic_connection_string): @@ -230,7 +231,6 @@ def test_get_token_with_custom_validity_over_maximum_allowed(self, communication @CommunicationPreparer() def test_revoke_tokens_from_managed_identity(self, communication_livetest_dynamic_connection_string): endpoint, access_key = parse_connection_str(communication_livetest_dynamic_connection_string) - from devtools_testutils import is_live if not is_live(): credential = FakeTokenCredential() else: @@ -265,7 +265,6 @@ def test_revoke_tokens(self, communication_livetest_dynamic_connection_string): @CommunicationPreparer() def test_delete_user_from_managed_identity(self, communication_livetest_dynamic_connection_string): endpoint, access_key = parse_connection_str(communication_livetest_dynamic_connection_string) - from devtools_testutils import is_live if not is_live(): credential = FakeTokenCredential() else: @@ -350,7 +349,6 @@ def test_get_token_for_teams_user_from_managed_identity(self, communication_live if(self.skip_get_token_for_teams_user_test()): return endpoint, access_key = parse_connection_str(communication_livetest_dynamic_connection_string) - from devtools_testutils import is_live if not is_live(): credential = FakeTokenCredential() else: diff --git a/sdk/communication/azure-communication-identity/tests/test_communication_identity_client_async.py b/sdk/communication/azure-communication-identity/tests/test_communication_identity_client_async.py index 5085e191fa28..12bd9a541bde 100644 --- a/sdk/communication/azure-communication-identity/tests/test_communication_identity_client_async.py +++ b/sdk/communication/azure-communication-identity/tests/test_communication_identity_client_async.py @@ -12,9 +12,11 @@ from azure.communication.identity._shared.utils import parse_connection_str from _shared.helper import URIIdentityReplacer, URIMsalUsernameReplacer from asynctestcase import AsyncCommunicationIdentityTestCase +from devtools_testutils import is_live from _shared.testcase import BodyReplacerProcessor from _shared.communication_service_preparer import CommunicationPreparer -from _shared.utils import TOKEN_EXPIRATION_ALLOWED_DEVIATION, get_http_logging_policy, token_expiration_within_allowed_deviation +from _shared.utils import get_http_logging_policy +from utils import is_token_expiration_within_allowed_deviation from azure.identity.aio import DefaultAzureCredential class FakeTokenCredential(object): @@ -34,7 +36,6 @@ def setUp(self): @CommunicationPreparer() async def test_create_user_from_managed_identity(self, communication_livetest_dynamic_connection_string): endpoint, access_key = parse_connection_str(communication_livetest_dynamic_connection_string) - from devtools_testutils import is_live if not is_live(): credential = FakeTokenCredential() else: @@ -87,10 +88,8 @@ async def test_create_user_and_token_with_custom_minimum_validity(self, communic assert user.properties.get('id') is not None assert token_response.token is not None - from devtools_testutils import is_live if is_live(): - expiration_within_allowed_deviation = token_expiration_within_allowed_deviation(token_expires_in, token_response.expires_on, TOKEN_EXPIRATION_ALLOWED_DEVIATION) - assert expiration_within_allowed_deviation is True + assert is_token_expiration_within_allowed_deviation(token_expires_in, token_response.expires_on) @CommunicationPreparer() async def test_create_user_and_token_with_custom_maximum_validity(self, communication_livetest_dynamic_connection_string): @@ -107,10 +106,8 @@ async def test_create_user_and_token_with_custom_maximum_validity(self, communic assert user.properties.get('id') is not None assert token_response.token is not None - from devtools_testutils import is_live if is_live(): - expiration_within_allowed_deviation = token_expiration_within_allowed_deviation(token_expires_in, token_response.expires_on, TOKEN_EXPIRATION_ALLOWED_DEVIATION) - assert expiration_within_allowed_deviation is True + assert is_token_expiration_within_allowed_deviation(token_expires_in, token_response.expires_on) @CommunicationPreparer() async def test_create_user_and_token_with_custom_validity_under_minimum_allowed(self, communication_livetest_dynamic_connection_string): @@ -147,7 +144,6 @@ async def test_create_user_and_token_with_custom_validity_over_maximum_allowed(s @CommunicationPreparer() async def test_get_token_from_managed_identity(self, communication_livetest_dynamic_connection_string): endpoint, access_key = parse_connection_str(communication_livetest_dynamic_connection_string) - from devtools_testutils import is_live if not is_live(): credential = FakeTokenCredential() else: @@ -193,6 +189,9 @@ async def test_get_token_with_custom_minimum_validity(self, communication_livete assert user.properties.get('id') is not None assert token_response.token is not None + if is_live(): + assert is_token_expiration_within_allowed_deviation(token_expires_in, token_response.expires_on) + @CommunicationPreparer() async def test_get_token_with_custom_maximum_validity(self, communication_livetest_dynamic_connection_string): identity_client = CommunicationIdentityClient.from_connection_string( @@ -209,6 +208,9 @@ async def test_get_token_with_custom_maximum_validity(self, communication_livete assert user.properties.get('id') is not None assert token_response.token is not None + if is_live(): + assert is_token_expiration_within_allowed_deviation(token_expires_in, token_response.expires_on) + @CommunicationPreparer() async def test_get_token_with_custom_validity_under_minimum_allowed(self, communication_livetest_dynamic_connection_string): identity_client = CommunicationIdentityClient.from_connection_string( @@ -246,7 +248,6 @@ async def test_get_token_with_custom_validity_over_maximum_allowed(self, communi @CommunicationPreparer() async def test_revoke_tokens_from_managed_identity(self, communication_livetest_dynamic_connection_string): endpoint, access_key = parse_connection_str(communication_livetest_dynamic_connection_string) - from devtools_testutils import is_live if not is_live(): credential = FakeTokenCredential() else: @@ -281,7 +282,6 @@ async def test_revoke_tokens(self, communication_livetest_dynamic_connection_str @CommunicationPreparer() async def test_delete_user_from_managed_identity(self, communication_livetest_dynamic_connection_string): endpoint, access_key = parse_connection_str(communication_livetest_dynamic_connection_string) - from devtools_testutils import is_live if not is_live(): credential = FakeTokenCredential() else: @@ -370,7 +370,6 @@ async def test_get_token_for_teams_user_from_managed_identity(self, communicatio if(self.skip_get_token_for_teams_user_test()): return endpoint, access_key = parse_connection_str(communication_livetest_dynamic_connection_string) - from devtools_testutils import is_live if not is_live(): credential = FakeTokenCredential() else: diff --git a/sdk/communication/azure-communication-identity/tests/utils.py b/sdk/communication/azure-communication-identity/tests/utils.py new file mode 100644 index 000000000000..59c29b15fd59 --- /dev/null +++ b/sdk/communication/azure-communication-identity/tests/utils.py @@ -0,0 +1,21 @@ +# ------------------------------------------------------------------------ +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# ------------------------------------------------------------------------- +from datetime import datetime, timedelta, timezone +from dateutil import parser + +def is_token_expiration_within_allowed_deviation( + expected_token_expiration, + token_expires_in, + allowed_deviation = 0.05 +): + # type: (timedelta, datetime, float) -> bool + utc_now = datetime.now(timezone.utc) + token_expiration = parser.parse(token_expires_in) + token_expiration_in_seconds = (token_expiration - utc_now).total_seconds() + expected_seconds = expected_token_expiration.total_seconds(); + time_difference = abs(expected_seconds - token_expiration_in_seconds) + allowed_time_difference = expected_seconds * allowed_deviation + return time_difference < allowed_time_difference \ No newline at end of file From 730846341a0faaaf6a9596beee4fb4847a43c811 Mon Sep 17 00:00:00 2001 From: Aigerim Beishenbekova Date: Fri, 7 Oct 2022 16:16:03 +0200 Subject: [PATCH 12/17] fixed creation of the request body --- .../_communication_identity_client.py | 22 +++++++----- .../communication/identity/_shared/utils.py | 34 +------------------ .../azure/communication/identity/_utils.py | 19 +++++++++++ .../_communication_identity_client_async.py | 23 ++++++++----- 4 files changed, 49 insertions(+), 49 deletions(-) create mode 100644 sdk/communication/azure-communication-identity/azure/communication/identity/_utils.py diff --git a/sdk/communication/azure-communication-identity/azure/communication/identity/_communication_identity_client.py b/sdk/communication/azure-communication-identity/azure/communication/identity/_communication_identity_client.py index a383ab24916e..7acb0a587865 100644 --- a/sdk/communication/azure-communication-identity/azure/communication/identity/_communication_identity_client.py +++ b/sdk/communication/azure-communication-identity/azure/communication/identity/_communication_identity_client.py @@ -11,10 +11,11 @@ from ._generated._communication_identity_client\ import CommunicationIdentityClient as CommunicationIdentityClientGen -from ._shared.utils import parse_connection_str, get_authentication_policy, create_body +from ._shared.utils import parse_connection_str, get_authentication_policy from ._shared.models import CommunicationUserIdentifier from ._version import SDK_MONIKER from ._api_versions import DEFAULT_VERSION +from ._utils import convert_timedelta_to_mins if TYPE_CHECKING: from azure.core.credentials import TokenCredential @@ -115,12 +116,14 @@ def create_user_and_token( tuple of (~azure.communication.identity.CommunicationUserIdentifier, ~azure.core.credentials.AccessToken) """ token_expires_in = kwargs.pop('token_expires_in', None) - body = create_body(scopes, token_expires_in, scopes_key_name='createTokenWithScopes') - + request_body = { + 'createTokenWithScopes': scopes, + 'expiresInMinutes': convert_timedelta_to_mins(token_expires_in) + } return self._identity_service_client.communication_identity.create( cls=lambda pr, u, e: (CommunicationUserIdentifier(u['identity']['id'], raw_id=u['identity']['id']), AccessToken(u['accessToken']['token'], u['accessToken']['expiresOn'])), - body=body, + body=request_body, **kwargs) @distributed_trace @@ -162,11 +165,14 @@ def get_token( :rtype: ~azure.core.credentials.AccessToken """ token_expires_in = kwargs.pop('token_expires_in', None) - body = create_body(scopes, token_expires_in, scopes_key_name='scopes') + request_body = { + 'scopes': scopes, + 'expiresInMinutes': convert_timedelta_to_mins(token_expires_in) + } return self._identity_service_client.communication_identity.issue_access_token( user.properties['id'], - body=body, + body=request_body, cls=lambda pr, u, e: AccessToken(u['token'], u['expiresOn']), **kwargs) @@ -211,14 +217,14 @@ def get_token_for_teams_user( :rtype: ~azure.core.credentials.AccessToken """ - body = { + request_body = { "token": aad_token, "appId": client_id, "userId": user_object_id } return self._identity_service_client.communication_identity.exchange_teams_user_access_token( - body=body, + body=request_body, cls=lambda pr, u, e: AccessToken(u['token'], u['expiresOn']), **kwargs) \ No newline at end of file diff --git a/sdk/communication/azure-communication-identity/azure/communication/identity/_shared/utils.py b/sdk/communication/azure-communication-identity/azure/communication/identity/_shared/utils.py index 7569afc83f9b..ad8be53371cb 100644 --- a/sdk/communication/azure-communication-identity/azure/communication/identity/_shared/utils.py +++ b/sdk/communication/azure-communication-identity/azure/communication/identity/_shared/utils.py @@ -131,36 +131,4 @@ def get_authentication_policy( return HMACCredentialsPolicy(endpoint, credential, decode_url=decode_url) raise TypeError("Unsupported credential: {}. Use an access token string to use HMACCredentialsPolicy" - "or a token credential from azure.identity".format(type(credential))) - -def create_body( - scopes, # type: List[Union[str, CommunicationTokenScope]] - token_expires_in, # type: datetime.timedelta - **kwargs, -): - # type: (...) -> dict[str, Any] - """ - Returns body to pass to request for user and token creation or token creation. - : param scopes: List of scopes to be added to the token. - : type scopes: list[str or ~azure.communication.identity.CommunicationTokenScope] - : param token_expires_in: Custom validity period of the Communication Identity access token - within [1, 24] hours range. If not provided, the default value of 24 hours will be used. - : type token_expires_in: ~datetime.timedelta - : keyword scopes_key_name: Name for the key for scopes to pass in the request body. - : paramtype keyword scopes_key_name: str - : return: Body to pass to request for user and token creation or token creation. - : rtype: dict[str, Any] - """ - scopes_key_name = kwargs.pop('scopes_key_name', None) - expires_after_in_minutes = 0 - if token_expires_in is not None: - expires_after_in_minutes = int(token_expires_in.total_seconds() / 60) - body = { - scopes_key_name: scopes, - 'expiresInMinutes': expires_after_in_minutes - } - else: - body = { - scopes_key_name: scopes - } - return body + "or a token credential from azure.identity".format(type(credential))) \ No newline at end of file diff --git a/sdk/communication/azure-communication-identity/azure/communication/identity/_utils.py b/sdk/communication/azure-communication-identity/azure/communication/identity/_utils.py new file mode 100644 index 000000000000..fa0199e559ff --- /dev/null +++ b/sdk/communication/azure-communication-identity/azure/communication/identity/_utils.py @@ -0,0 +1,19 @@ +# ------------------------------------------------------------------------ +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# ------------------------------------------------------------------------- + +from datetime import timedelta + +def convert_timedelta_to_mins( + duration, # type: timedelta +): + # type: (...) -> int + """ + Returns body to pass to request for user and token creation or token creation. + : param duration: + : type duration: ~datetime.timedelta + : rtype: int + """ + return None if duration is None else int(duration.total_seconds() / 60) diff --git a/sdk/communication/azure-communication-identity/azure/communication/identity/aio/_communication_identity_client_async.py b/sdk/communication/azure-communication-identity/azure/communication/identity/aio/_communication_identity_client_async.py index 1724ad96fdf5..29cfd5b46c97 100644 --- a/sdk/communication/azure-communication-identity/azure/communication/identity/aio/_communication_identity_client_async.py +++ b/sdk/communication/azure-communication-identity/azure/communication/identity/aio/_communication_identity_client_async.py @@ -10,10 +10,11 @@ from .._generated.aio._communication_identity_client\ import CommunicationIdentityClient as CommunicationIdentityClientGen -from .._shared.utils import parse_connection_str, get_authentication_policy, create_body +from .._shared.utils import parse_connection_str, get_authentication_policy from .._shared.models import CommunicationUserIdentifier from .._version import SDK_MONIKER from .._api_versions import DEFAULT_VERSION +from .._utils import convert_timedelta_to_mins if TYPE_CHECKING: from azure.core.credentials_async import AsyncTokenCredential @@ -111,10 +112,13 @@ async def create_user_and_token( tuple of (~azure.communication.identity.CommunicationUserIdentifier, ~azure.core.credentials.AccessToken) """ token_expires_in = kwargs.pop('token_expires_in', None) - body = create_body(scopes, token_expires_in, scopes_key_name='createTokenWithScopes') - + request_body = { + 'createTokenWithScopes': scopes, + 'expiresInMinutes': convert_timedelta_to_mins(token_expires_in) + } + return await self._identity_service_client.communication_identity.create( - body=body, + body=request_body, cls=lambda pr, u, e: (CommunicationUserIdentifier(u['identity']['id'], raw_id=u['identity']['id']), AccessToken(u['accessToken']['token'], u['accessToken']['expiresOn'])), **kwargs) @@ -158,11 +162,14 @@ async def get_token( :rtype: ~azure.core.credentials.AccessToken """ token_expires_in = kwargs.pop('token_expires_in', None) - body = create_body(scopes, token_expires_in, scopes_key_name='scopes') + request_body = { + 'scopes': scopes, + 'expiresInMinutes': convert_timedelta_to_mins(token_expires_in) + } return await self._identity_service_client.communication_identity.issue_access_token( user.properties['id'], - body=body, + body=request_body, cls=lambda pr, u, e: AccessToken(u['token'], u['expiresOn']), **kwargs) @@ -205,13 +212,13 @@ async def get_token_for_teams_user( :return: AccessToken :rtype: ~azure.core.credentials.AccessToken """ - body = { + request_body = { "token": aad_token, "appId": client_id, "userId": user_object_id } return await self._identity_service_client.communication_identity.exchange_teams_user_access_token( - body=body, + body=request_body, cls=lambda pr, u, e: AccessToken(u['token'], u['expiresOn']), **kwargs) From 10ca0ff37a794571dcbff996aa1fa158e7eebf62 Mon Sep 17 00:00:00 2001 From: Aigerim Beishenbekova Date: Fri, 7 Oct 2022 16:40:04 +0200 Subject: [PATCH 13/17] refactored sync tests --- ...tion_identity_client.test_create_user.yaml | 10 +- ...ity_client.test_create_user_and_token.yaml | 16 +-- ...custom_expirations_0_min_invalid_mins.yaml | 51 ++++++++ ...custom_expirations_1_max_invalid_mins.yaml | 51 ++++++++ ..._create_user_and_token_with_no_scopes.yaml | 14 +-- ..._custom_expirations_0_min_valid_hours.yaml | 50 ++++++++ ..._custom_expirations_1_max_valid_hours.yaml | 50 ++++++++ ...est_create_user_from_managed_identity.yaml | 8 +- ...tion_identity_client.test_delete_user.yaml | 20 +-- ...est_delete_user_from_managed_identity.yaml | 16 +-- ...cation_identity_client.test_get_token.yaml | 26 ++-- ..._for_teams_user_from_managed_identity.yaml | 24 ++-- ...ken_for_teams_user_with_expired_token.yaml | 20 +-- ...h_invalid_client_id_0_empty_client_id.yaml | 22 ++-- ...invalid_client_id_1_invalid_client_id.yaml | 22 ++-- ...user_with_invalid_token_0_empty_token.yaml | 10 +- ...er_with_invalid_token_1_invalid_token.yaml | 10 +- ...user_object_id_0_empty_user_object_id.yaml | 22 ++-- ...er_object_id_1_invalid_user_object_id.yaml | 22 ++-- ...oken_for_teams_user_with_valid_params.yaml | 24 ++-- ...n_for_teams_user_with_wrong_client_id.yaml | 22 ++-- ..._teams_user_with_wrong_user_object_id.yaml | 22 ++-- ....test_get_token_from_managed_identity.yaml | 24 ++-- ...custom_expirations_0_min_invalid_mins.yaml | 98 +++++++++++++++ ...custom_expirations_1_max_invalid_mins.yaml | 98 +++++++++++++++ ..._client.test_get_token_with_no_scopes.yaml | 24 ++-- ..._custom_expirations_0_min_valid_hours.yaml | 96 ++++++++++++++ ..._custom_expirations_1_max_valid_hours.yaml | 96 ++++++++++++++ ...on_identity_client.test_revoke_tokens.yaml | 38 +++--- ...t_revoke_tokens_from_managed_identity.yaml | 30 ++--- ...dentity_client_async.test_create_user.yaml | 10 +- ...ient_async.test_create_user_and_token.yaml | 16 +-- ...nd_token_with_custom_maximum_validity.yaml | 14 +-- ...nd_token_with_custom_minimum_validity.yaml | 12 +- ..._custom_validity_over_maximum_allowed.yaml | 13 +- ...custom_validity_under_minimum_allowed.yaml | 13 +- ..._create_user_and_token_with_no_scopes.yaml | 14 +-- ...est_create_user_from_managed_identity.yaml | 8 +- ...dentity_client_async.test_delete_user.yaml | 20 +-- ...est_delete_user_from_managed_identity.yaml | 16 +-- ..._identity_client_async.test_get_token.yaml | 26 ++-- ..._for_teams_user_from_managed_identity.yaml | 22 ++-- ...n_for_teams_user_with_empty_client_id.yaml | 22 ++-- ...token_for_teams_user_with_empty_token.yaml | 10 +- ..._teams_user_with_empty_user_object_id.yaml | 22 ++-- ...ken_for_teams_user_with_expired_token.yaml | 20 +-- ...for_teams_user_with_invalid_client_id.yaml | 22 ++-- ...ken_for_teams_user_with_invalid_token.yaml | 10 +- ...eams_user_with_invalid_user_object_id.yaml | 22 ++-- ...oken_for_teams_user_with_valid_params.yaml | 24 ++-- ...n_for_teams_user_with_wrong_client_id.yaml | 22 ++-- ..._teams_user_with_wrong_user_object_id.yaml | 22 ++-- ....test_get_token_from_managed_identity.yaml | 22 ++-- ...et_token_with_custom_maximum_validity.yaml | 22 ++-- ...et_token_with_custom_minimum_validity.yaml | 22 ++-- ..._custom_validity_over_maximum_allowed.yaml | 23 ++-- ...custom_validity_under_minimum_allowed.yaml | 23 ++-- ...t_async.test_get_token_with_no_scopes.yaml | 24 ++-- ...ntity_client_async.test_revoke_tokens.yaml | 36 +++--- ...t_revoke_tokens_from_managed_identity.yaml | 30 ++--- .../test_communication_identity_client.py | 119 ++++++------------ 61 files changed, 1144 insertions(+), 593 deletions(-) create mode 100644 sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user_and_token_with_invalid_custom_expirations_0_min_invalid_mins.yaml create mode 100644 sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user_and_token_with_invalid_custom_expirations_1_max_invalid_mins.yaml create mode 100644 sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user_and_token_with_valid_custom_expirations_0_min_valid_hours.yaml create mode 100644 sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user_and_token_with_valid_custom_expirations_1_max_valid_hours.yaml create mode 100644 sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_with_invalid_custom_expirations_0_min_invalid_mins.yaml create mode 100644 sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_with_invalid_custom_expirations_1_max_invalid_mins.yaml create mode 100644 sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_with_valid_custom_expirations_0_min_valid_hours.yaml create mode 100644 sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_with_valid_custom_expirations_1_max_valid_hours.yaml diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user.yaml index 5de2f135f93b..c9c03cec802e 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user.yaml @@ -13,9 +13,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.3.0 Python/3.7.9 (Windows-10-10.0.22621-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.0 (macOS-12.6-x86_64-i386-64bit) x-ms-date: - - Fri, 16 Sep 2022 17:41:07 GMT + - Fri, 07 Oct 2022 14:37:47 GMT x-ms-return-client-request-id: - 'true' method: POST @@ -32,9 +32,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 16 Sep 2022 17:41:07 GMT + - Fri, 07 Oct 2022 14:37:47 GMT ms-cv: - - PqMXUZJZW0uAbex5kOxHvQ.0 + - KMNf9zN7ZE2GjH5gVeXk2A.2.0 request-context: - appId= strict-transport-security: @@ -42,7 +42,7 @@ interactions: x-cache: - CONFIG_NOCACHE x-processing-time: - - 37ms + - 95ms status: code: 201 message: Created diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user_and_token.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user_and_token.yaml index c4f48391a0a4..51b171856d01 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user_and_token.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user_and_token.yaml @@ -1,6 +1,6 @@ interactions: - request: - body: '{"createTokenWithScopes": ["chat"]}' + body: '{"createTokenWithScopes": ["chat"], "expiresInMinutes": null}' headers: Accept: - application/json @@ -9,13 +9,13 @@ interactions: Connection: - keep-alive Content-Length: - - '35' + - '61' Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.3.0 Python/3.7.9 (Windows-10-10.0.22621-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.0 (macOS-12.6-x86_64-i386-64bit) x-ms-date: - - Fri, 16 Sep 2022 17:41:08 GMT + - Fri, 07 Oct 2022 14:37:48 GMT x-ms-return-client-request-id: - 'true' method: POST @@ -23,7 +23,7 @@ interactions: response: body: string: '{"identity": {"id": "sanitized"}, "accessToken": {"token": "sanitized", - "expiresOn": "2022-09-17T17:41:08.9068132+00:00"}}' + "expiresOn": "2022-10-08T14:37:48.9409653+00:00"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, @@ -33,9 +33,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 16 Sep 2022 17:41:08 GMT + - Fri, 07 Oct 2022 14:37:48 GMT ms-cv: - - WlDODyh9DECa/8Twyuo27A.0 + - 0E+6qas4cUyJWZeaohz6Wg.2.0 request-context: - appId= strict-transport-security: @@ -43,7 +43,7 @@ interactions: x-cache: - CONFIG_NOCACHE x-processing-time: - - 52ms + - 97ms status: code: 201 message: Created diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user_and_token_with_invalid_custom_expirations_0_min_invalid_mins.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user_and_token_with_invalid_custom_expirations_0_min_invalid_mins.yaml new file mode 100644 index 000000000000..61759e7d3f84 --- /dev/null +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user_and_token_with_invalid_custom_expirations_0_min_invalid_mins.yaml @@ -0,0 +1,51 @@ +interactions: +- request: + body: '{"createTokenWithScopes": ["chat"], "expiresInMinutes": 59}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '59' + Content-Type: + - application/json + User-Agent: + - azsdk-python-communication-identity/1.3.0 Python/3.10.0 (macOS-12.6-x86_64-i386-64bit) + x-ms-date: + - Fri, 07 Oct 2022 14:37:48 GMT + x-ms-return-client-request-id: + - 'true' + method: POST + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 + response: + body: + string: '{"error": {"code": "ValidationError", "message": "ExpiresInMinutes + value 59 is invalid. Value must be within the [60, 1440] interval.", "target": + "ExpiresInMinutes"}}' + headers: + api-supported-versions: + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, + 2021-11-01, 2022-06-01, 2022-10-01 + content-type: + - application/json + date: + - Fri, 07 Oct 2022 14:37:49 GMT + ms-cv: + - dsJ6PKH8P0WuZo4/ZGA1bw.2.0 + request-context: + - appId= + strict-transport-security: + - max-age=2592000 + transfer-encoding: + - chunked + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 132ms + status: + code: 400 + message: Bad Request +version: 1 diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user_and_token_with_invalid_custom_expirations_1_max_invalid_mins.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user_and_token_with_invalid_custom_expirations_1_max_invalid_mins.yaml new file mode 100644 index 000000000000..7cbf3e432842 --- /dev/null +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user_and_token_with_invalid_custom_expirations_1_max_invalid_mins.yaml @@ -0,0 +1,51 @@ +interactions: +- request: + body: '{"createTokenWithScopes": ["chat"], "expiresInMinutes": 1441}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '61' + Content-Type: + - application/json + User-Agent: + - azsdk-python-communication-identity/1.3.0 Python/3.10.0 (macOS-12.6-x86_64-i386-64bit) + x-ms-date: + - Fri, 07 Oct 2022 14:37:49 GMT + x-ms-return-client-request-id: + - 'true' + method: POST + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 + response: + body: + string: '{"error": {"code": "ValidationError", "message": "ExpiresInMinutes + value 1441 is invalid. Value must be within the [60, 1440] interval.", "target": + "ExpiresInMinutes"}}' + headers: + api-supported-versions: + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, + 2021-11-01, 2022-06-01, 2022-10-01 + content-type: + - application/json + date: + - Fri, 07 Oct 2022 14:37:49 GMT + ms-cv: + - RDRwoELtokK+QF6CFYuJ6Q.2.0 + request-context: + - appId= + strict-transport-security: + - max-age=2592000 + transfer-encoding: + - chunked + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 23ms + status: + code: 400 + message: Bad Request +version: 1 diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user_and_token_with_no_scopes.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user_and_token_with_no_scopes.yaml index 5dfaf1835f8e..cb3cceb62190 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user_and_token_with_no_scopes.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user_and_token_with_no_scopes.yaml @@ -1,6 +1,6 @@ interactions: - request: - body: '{"createTokenWithScopes": null}' + body: '{"createTokenWithScopes": null, "expiresInMinutes": null}' headers: Accept: - application/json @@ -9,13 +9,13 @@ interactions: Connection: - keep-alive Content-Length: - - '31' + - '57' Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.3.0 Python/3.7.9 (Windows-10-10.0.22621-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.0 (macOS-12.6-x86_64-i386-64bit) x-ms-date: - - Fri, 16 Sep 2022 17:41:12 GMT + - Fri, 07 Oct 2022 14:37:49 GMT x-ms-return-client-request-id: - 'true' method: POST @@ -32,9 +32,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 16 Sep 2022 17:41:12 GMT + - Fri, 07 Oct 2022 14:37:50 GMT ms-cv: - - sjI6SoEEikmVwh24rYjuVw.0 + - YhmTB0W+qkmzvUnZrix4Zw.2.0 request-context: - appId= strict-transport-security: @@ -42,7 +42,7 @@ interactions: x-cache: - CONFIG_NOCACHE x-processing-time: - - 48ms + - 92ms status: code: 201 message: Created diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user_and_token_with_valid_custom_expirations_0_min_valid_hours.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user_and_token_with_valid_custom_expirations_0_min_valid_hours.yaml new file mode 100644 index 000000000000..48822a4d0a28 --- /dev/null +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user_and_token_with_valid_custom_expirations_0_min_valid_hours.yaml @@ -0,0 +1,50 @@ +interactions: +- request: + body: '{"createTokenWithScopes": ["chat"], "expiresInMinutes": 60}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '59' + Content-Type: + - application/json + User-Agent: + - azsdk-python-communication-identity/1.3.0 Python/3.10.0 (macOS-12.6-x86_64-i386-64bit) + x-ms-date: + - Fri, 07 Oct 2022 14:37:50 GMT + x-ms-return-client-request-id: + - 'true' + method: POST + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 + response: + body: + string: '{"identity": {"id": "sanitized"}, "accessToken": {"token": "sanitized", + "expiresOn": "2022-10-07T15:37:50.827085+00:00"}}' + headers: + api-supported-versions: + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, + 2021-11-01, 2022-06-01, 2022-10-01 + content-length: + - '919' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 07 Oct 2022 14:37:50 GMT + ms-cv: + - t/5ITMLUOU6wwfhdDJ8ZJA.2.0 + request-context: + - appId= + strict-transport-security: + - max-age=2592000 + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 108ms + status: + code: 201 + message: Created +version: 1 diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user_and_token_with_valid_custom_expirations_1_max_valid_hours.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user_and_token_with_valid_custom_expirations_1_max_valid_hours.yaml new file mode 100644 index 000000000000..489cd47a615c --- /dev/null +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user_and_token_with_valid_custom_expirations_1_max_valid_hours.yaml @@ -0,0 +1,50 @@ +interactions: +- request: + body: '{"createTokenWithScopes": ["chat"], "expiresInMinutes": 1440}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '61' + Content-Type: + - application/json + User-Agent: + - azsdk-python-communication-identity/1.3.0 Python/3.10.0 (macOS-12.6-x86_64-i386-64bit) + x-ms-date: + - Fri, 07 Oct 2022 14:37:50 GMT + x-ms-return-client-request-id: + - 'true' + method: POST + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 + response: + body: + string: '{"identity": {"id": "sanitized"}, "accessToken": {"token": "sanitized", + "expiresOn": "2022-10-08T14:37:51.2891035+00:00"}}' + headers: + api-supported-versions: + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, + 2021-11-01, 2022-06-01, 2022-10-01 + content-length: + - '920' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 07 Oct 2022 14:37:51 GMT + ms-cv: + - LnfiyO3CgEOKfO7BFSZrIw.2.0 + request-context: + - appId= + strict-transport-security: + - max-age=2592000 + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 100ms + status: + code: 201 + message: Created +version: 1 diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user_from_managed_identity.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user_from_managed_identity.yaml index 723f3bbfd47a..a5505265c72b 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user_from_managed_identity.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user_from_managed_identity.yaml @@ -13,7 +13,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.3.0 Python/3.7.9 (Windows-10-10.0.22621-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.0 (macOS-12.6-x86_64-i386-64bit) method: POST uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: @@ -28,9 +28,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 16 Sep 2022 17:41:15 GMT + - Fri, 07 Oct 2022 14:37:52 GMT ms-cv: - - JYg3zre69Euxthx1SYXgjQ.0 + - xxG6spXdjESb7AabdYfKbA.2.0 request-context: - appId= strict-transport-security: @@ -38,7 +38,7 @@ interactions: x-cache: - CONFIG_NOCACHE x-processing-time: - - 329ms + - 244ms status: code: 201 message: Created diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_delete_user.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_delete_user.yaml index 9fe529ead294..547c36c2657d 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_delete_user.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_delete_user.yaml @@ -13,9 +13,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.3.0 Python/3.7.9 (Windows-10-10.0.22621-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.0 (macOS-12.6-x86_64-i386-64bit) x-ms-date: - - Fri, 16 Sep 2022 17:41:15 GMT + - Fri, 07 Oct 2022 14:37:53 GMT x-ms-return-client-request-id: - 'true' method: POST @@ -32,9 +32,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 16 Sep 2022 17:41:15 GMT + - Fri, 07 Oct 2022 14:37:53 GMT ms-cv: - - sACZWXWWSESUMxpjbLsKQg.0 + - w4+E3FoIhE6EypQm/sU7Xw.2.0 request-context: - appId= strict-transport-security: @@ -42,7 +42,7 @@ interactions: x-cache: - CONFIG_NOCACHE x-processing-time: - - 35ms + - 110ms status: code: 201 message: Created @@ -58,9 +58,9 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.3.0 Python/3.7.9 (Windows-10-10.0.22621-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.0 (macOS-12.6-x86_64-i386-64bit) x-ms-date: - - Fri, 16 Sep 2022 17:41:16 GMT + - Fri, 07 Oct 2022 14:37:53 GMT x-ms-return-client-request-id: - 'true' method: DELETE @@ -73,9 +73,9 @@ interactions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, 2021-11-01, 2022-06-01, 2022-10-01 date: - - Fri, 16 Sep 2022 17:41:15 GMT + - Fri, 07 Oct 2022 14:37:53 GMT ms-cv: - - RUCpgtYzZ0a4BATmw4aMog.0 + - l/r97jJtjEu5wiCcK4fQ8A.2.0 request-context: - appId= strict-transport-security: @@ -83,7 +83,7 @@ interactions: x-cache: - CONFIG_NOCACHE x-processing-time: - - 153ms + - 214ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_delete_user_from_managed_identity.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_delete_user_from_managed_identity.yaml index 85928d896840..0bbe1f9457eb 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_delete_user_from_managed_identity.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_delete_user_from_managed_identity.yaml @@ -13,7 +13,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.3.0 Python/3.7.9 (Windows-10-10.0.22621-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.0 (macOS-12.6-x86_64-i386-64bit) method: POST uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: @@ -28,9 +28,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 16 Sep 2022 17:41:16 GMT + - Fri, 07 Oct 2022 14:37:55 GMT ms-cv: - - jDc5XtHUF0S2FnvpmWzmAQ.0 + - WFKB9hhRqEWmdhh5FGesPw.2.0 request-context: - appId= strict-transport-security: @@ -38,7 +38,7 @@ interactions: x-cache: - CONFIG_NOCACHE x-processing-time: - - 239ms + - 231ms status: code: 201 message: Created @@ -54,7 +54,7 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.3.0 Python/3.7.9 (Windows-10-10.0.22621-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.0 (macOS-12.6-x86_64-i386-64bit) method: DELETE uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: @@ -65,9 +65,9 @@ interactions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, 2021-11-01, 2022-06-01, 2022-10-01 date: - - Fri, 16 Sep 2022 17:41:17 GMT + - Fri, 07 Oct 2022 14:37:56 GMT ms-cv: - - IAn1mNwwZUWP+OFffgqWWQ.0 + - jRaEQ/zB5EGk+Wz7qkoxfA.2.0 request-context: - appId= strict-transport-security: @@ -75,7 +75,7 @@ interactions: x-cache: - CONFIG_NOCACHE x-processing-time: - - 183ms + - 299ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token.yaml index 4461a7ba3d3a..0db6dcac8d28 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token.yaml @@ -13,9 +13,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.3.0 Python/3.7.9 (Windows-10-10.0.22621-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.0 (macOS-12.6-x86_64-i386-64bit) x-ms-date: - - Fri, 16 Sep 2022 17:41:17 GMT + - Fri, 07 Oct 2022 14:37:56 GMT x-ms-return-client-request-id: - 'true' method: POST @@ -32,9 +32,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 16 Sep 2022 17:41:18 GMT + - Fri, 07 Oct 2022 14:37:56 GMT ms-cv: - - arE1mdBSlkiPMphfUy9s0w.0 + - nhg7ptKwXE6cy5IGkTVA8g.2.0 request-context: - appId= strict-transport-security: @@ -42,12 +42,12 @@ interactions: x-cache: - CONFIG_NOCACHE x-processing-time: - - 37ms + - 95ms status: code: 201 message: Created - request: - body: '{"scopes": ["chat"]}' + body: '{"scopes": ["chat"], "expiresInMinutes": null}' headers: Accept: - application/json @@ -56,20 +56,20 @@ interactions: Connection: - keep-alive Content-Length: - - '20' + - '46' Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.3.0 Python/3.7.9 (Windows-10-10.0.22621-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.0 (macOS-12.6-x86_64-i386-64bit) x-ms-date: - - Fri, 16 Sep 2022 17:41:18 GMT + - Fri, 07 Oct 2022 14:37:57 GMT x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2022-10-01 response: body: - string: '{"token": "sanitized", "expiresOn": "2022-09-17T17:41:19.0514132+00:00"}' + string: '{"token": "sanitized", "expiresOn": "2022-10-08T14:37:57.7752455+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, @@ -79,9 +79,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 16 Sep 2022 17:41:18 GMT + - Fri, 07 Oct 2022 14:37:57 GMT ms-cv: - - gY69OOm0H0CIjG1aEJpCWA.0 + - BuHu/o6m7EaBsgUNrNyLtw.2.0 request-context: - appId= strict-transport-security: @@ -89,7 +89,7 @@ interactions: x-cache: - CONFIG_NOCACHE x-processing-time: - - 41ms + - 168ms status: code: 200 message: OK diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_for_teams_user_from_managed_identity.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_for_teams_user_from_managed_identity.yaml index a4d8aeb4544c..fa8e48103963 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_for_teams_user_from_managed_identity.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_for_teams_user_from_managed_identity.yaml @@ -9,8 +9,8 @@ interactions: Connection: - keep-alive Cookie: - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrfrhoAGzE0IfVkIEiYTDpMufLqO2ajaZPvDhh5khMtK1WtO3HXHyV6Oz-4DZiRAinE22jSh_6CeZAjKv5JOLNAp2xftnKte_7Tbn2bkwvVUbjWLB_MROdOpXZ9J9lBqA5JyfXiqeeAnw1vg-KcOJE3wCp-MFSR12hJI3baXlTWZQgAA; - fpc=Aj-ZCFjl2z5Ag18tpYYUfzE; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd + - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevrt517x72psclkbHVuUmHXLpVNmP78j3MGUOc4d6cPcrJEaowBFD2xXylW5T2ck1bz3GFBjkkJlE-S3NfWMECyv40LqYJM2i-1D4_IeVSeFJ_lObwtAIP_t3fW1gs3MPrTU5Un00g5QpLGQ-xJx0GRZv-CBwVroiLAGDwbBjOyqXFrfUp5Vs62nuWV6I4bJSGGpR_Sdl4GGGn4qwZ4BRFjZmaKbbFDI1uC4WuqoiS4hRUgAA; + fpc=ArhtEweoVghMp9wXYBxFkDQ; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd User-Agent: - python-requests/2.28.1 method: GET @@ -29,7 +29,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 16 Sep 2022 17:41:18 GMT + - Fri, 07 Oct 2022 14:37:57 GMT expires: - '-1' p3p: @@ -37,7 +37,7 @@ interactions: pragma: - no-cache set-cookie: - - fpc=Aj-ZCFjl2z5Ag18tpYYUfzE; expires=Sun, 16-Oct-2022 17:41:19 GMT; path=/; + - fpc=ArhtEweoVghMp9wXYBxFkDQ; expires=Sun, 06-Nov-2022 14:37:58 GMT; path=/; secure; HttpOnly; SameSite=None - x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly - stsservicecookie=estsfd; path=/; secure; samesite=none; httponly @@ -46,7 +46,7 @@ interactions: x-content-type-options: - nosniff x-ms-ests-server: - - 2.1.13622.7 - NEULR2 ProdSlices + - 2.1.13777.6 - NEULR2 ProdSlices x-xss-protection: - '0' status: @@ -62,27 +62,27 @@ interactions: Connection: - keep-alive Content-Length: - - '2199' + - '2156' Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.3.0 Python/3.7.9 (Windows-10-10.0.22621-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.0 (macOS-12.6-x86_64-i386-64bit) method: POST uri: https://sanitized.communication.azure.com/teamsUser/:exchangeAccessToken?api-version=2022-10-01 response: body: - string: '{"token": "sanitized", "expiresOn": "2022-09-16T19:01:16.0083631+00:00"}' + string: '{"token": "sanitized", "expiresOn": "2022-10-07T15:59:26.141054+00:00"}' headers: api-supported-versions: - 2021-10-31-preview, 2022-06-01, 2022-10-01 content-length: - - '824' + - '823' content-type: - application/json; charset=utf-8 date: - - Fri, 16 Sep 2022 17:41:20 GMT + - Fri, 07 Oct 2022 14:37:59 GMT ms-cv: - - Yi215JZIDUCYy4AdZceEqQ.0 + - Pce0VLVuqEe7qFoUecxRvg.0 request-context: - appId= strict-transport-security: @@ -90,7 +90,7 @@ interactions: x-cache: - CONFIG_NOCACHE x-processing-time: - - 512ms + - 1218ms status: code: 200 message: OK diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_for_teams_user_with_expired_token.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_for_teams_user_with_expired_token.yaml index 3fccee274870..532cf54d6bd9 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_for_teams_user_with_expired_token.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_for_teams_user_with_expired_token.yaml @@ -9,8 +9,8 @@ interactions: Connection: - keep-alive Cookie: - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrTQBRs2S-njti3sxKPWH95K0opltpau6Hqq7wy1Jh0sgGZ0jeB95FpChl8O_T-kC_P0urUN0RYnrRhs1iH0JJ7B-WqGwydlU5RHJLDPdgDGAL1_zspOMoC_k4tevpp31ju_t6CxFQcYPSn8LN0mlVaDokKQETA7LC9l1FJCy3Xb0gAA; - fpc=AvWy6bLB6gRMqudegBTmf74; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd + - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrBcxWzeGcBf7hDe1I2PqhjoFNfu27vV8DBz_uJCQZz3dZyV4lFzT9lDq_TP8N4hPoRJ-Q945AquKkWNTqVMqMg1bImnONco6ANzpUHMUzOi1wtKoiCKP5XSTQiLqo_RlzAwZ96odM7-zXsm9MmBbOGv1owhGx_CQDSENWe3qGL3rbtDvs391Vl6d77kGmTA4_E0ji435Rd9T8EwLKMRhAI2Ev8o1UaIeTC1-J64xPAjIgAA; + fpc=Aq8hHJmFcVFJudWnaJbcDZU; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd User-Agent: - python-requests/2.28.1 method: GET @@ -29,7 +29,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 16 Sep 2022 17:41:21 GMT + - Fri, 07 Oct 2022 14:38:00 GMT expires: - '-1' p3p: @@ -37,7 +37,7 @@ interactions: pragma: - no-cache set-cookie: - - fpc=AvWy6bLB6gRMqudegBTmf74; expires=Sun, 16-Oct-2022 17:41:21 GMT; path=/; + - fpc=Aq8hHJmFcVFJudWnaJbcDZU; expires=Sun, 06-Nov-2022 14:38:00 GMT; path=/; secure; HttpOnly; SameSite=None - x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly - stsservicecookie=estsfd; path=/; secure; samesite=none; httponly @@ -46,7 +46,7 @@ interactions: x-content-type-options: - nosniff x-ms-ests-server: - - 2.1.13622.7 - NEULR2 ProdSlices + - 2.1.13777.6 - WEULR1 ProdSlices x-xss-protection: - '0' status: @@ -66,9 +66,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.3.0 Python/3.7.9 (Windows-10-10.0.22621-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.0 (macOS-12.6-x86_64-i386-64bit) x-ms-date: - - Fri, 16 Sep 2022 17:41:21 GMT + - Fri, 07 Oct 2022 14:38:00 GMT x-ms-return-client-request-id: - 'true' method: POST @@ -81,9 +81,9 @@ interactions: content-type: - application/json date: - - Fri, 16 Sep 2022 17:41:21 GMT + - Fri, 07 Oct 2022 14:38:00 GMT ms-cv: - - Z+nGD39bs0aw97xaaoDGrw.0 + - CgNqGtqt5k6Nb/43K5QsMg.0 request-context: - appId= strict-transport-security: @@ -93,7 +93,7 @@ interactions: x-cache: - CONFIG_NOCACHE x-processing-time: - - 33ms + - 115ms status: code: 401 message: Unauthorized diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_for_teams_user_with_invalid_client_id_0_empty_client_id.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_for_teams_user_with_invalid_client_id_0_empty_client_id.yaml index fb3226e029bf..36faab19ca19 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_for_teams_user_with_invalid_client_id_0_empty_client_id.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_for_teams_user_with_invalid_client_id_0_empty_client_id.yaml @@ -9,8 +9,8 @@ interactions: Connection: - keep-alive Cookie: - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrxRUkwDWHcXcKRWbdRJ0Jh0jZfn8gkWSzn5-CnNl1UcJFlbeQYfiR8ZRHS1KJeDbsqxQ2fgT5jy6CJMSlIA6yXYrNw5Fic9fE_LPz8CUbwsbQo7GD3e_a7YpReX8eNHiYwqkfVPvM5UZTMcU4zxL4kLKCrDQT7D8yCSJE4lYS2SYgAA; - fpc=AnAzjaDOePNEmclkBBgsATA; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd + - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrwAdPkau605XGQuyPDJQiCpXdcz1MXkXUjZZfEBeebliqkKIgn5SYrX9UhBVqyAF6JIGl6-A9_IYGOiVFIFaYIgdtIbchaiu5xl4ZU79eP6bQ6Wt9viRizvK7qOJ6K7AJe2DL61VeOhVjgDIeA2nWnFLA5Q2O_A0-aD0ERezSVpDDZ58rFN2xHf8PRzzL2P8-fy1S_o2acA1snOWAG-TilHDFQAdKS-KAAY3bx7gML_kgAA; + fpc=AvYGoz_0exBLkpHPbIg2Uyg; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd User-Agent: - python-requests/2.28.1 method: GET @@ -29,7 +29,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 16 Sep 2022 17:41:21 GMT + - Fri, 07 Oct 2022 14:38:00 GMT expires: - '-1' p3p: @@ -37,7 +37,7 @@ interactions: pragma: - no-cache set-cookie: - - fpc=AnAzjaDOePNEmclkBBgsATA; expires=Sun, 16-Oct-2022 17:41:22 GMT; path=/; + - fpc=AvYGoz_0exBLkpHPbIg2Uyg; expires=Sun, 06-Nov-2022 14:38:01 GMT; path=/; secure; HttpOnly; SameSite=None - x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly - stsservicecookie=estsfd; path=/; secure; samesite=none; httponly @@ -46,7 +46,7 @@ interactions: x-content-type-options: - nosniff x-ms-ests-server: - - 2.1.13622.7 - NEULR1 ProdSlices + - 2.1.13777.6 - WEULR2 ProdSlices x-xss-protection: - '0' status: @@ -62,13 +62,13 @@ interactions: Connection: - keep-alive Content-Length: - - '2163' + - '2120' Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.3.0 Python/3.7.9 (Windows-10-10.0.22621-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.0 (macOS-12.6-x86_64-i386-64bit) x-ms-date: - - Fri, 16 Sep 2022 17:41:22 GMT + - Fri, 07 Oct 2022 14:38:01 GMT x-ms-return-client-request-id: - 'true' method: POST @@ -81,9 +81,9 @@ interactions: content-type: - application/json date: - - Fri, 16 Sep 2022 17:41:22 GMT + - Fri, 07 Oct 2022 14:38:01 GMT ms-cv: - - pNjdhxmmJ0SIXI43b28xWQ.0 + - kjAHbaVjX0mGwo3cyADN4Q.0 request-context: - appId= strict-transport-security: @@ -93,7 +93,7 @@ interactions: x-cache: - CONFIG_NOCACHE x-processing-time: - - 103ms + - 115ms status: code: 400 message: Bad Request diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_for_teams_user_with_invalid_client_id_1_invalid_client_id.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_for_teams_user_with_invalid_client_id_1_invalid_client_id.yaml index 7c33c9b3b0f4..0236fae49ed3 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_for_teams_user_with_invalid_client_id_1_invalid_client_id.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_for_teams_user_with_invalid_client_id_1_invalid_client_id.yaml @@ -9,8 +9,8 @@ interactions: Connection: - keep-alive Cookie: - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr88jj0UbiAD0f_J7ZdxwamOqO6ZlUjXJvDXkLGyGVaYHJSbG82y2rmUUzltM4skWXYk4IB0NhxeQtAmtAxxJWIYcJBRSWgY6RNijtdsS_ajxBwoSKFPAcc_eMLFKwWRoc0WwIm9Hs76zyqSrsX8ghnheKccqFxnBXf-YizBY3esQgAA; - fpc=ApNUZq1I14BArdXXDDKz5zA; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd + - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrotWx3bVDG8Iwwgby-FHrVbykEZSOblXZFdrLaChtQU_2T1zTDZqJLvAh4yTwPIplc9GU6Lt-0R_u3OUTURzTtSIt--hk3Gai9SCy-ke4TWDtYm-YMkNocgQFE14HxhyloCdj7r8wEX6pa9-Lgv0GGWyUvIwSKeQCzhDx-KSAEF5Uqgwe6N4ESaBxwJ3NuhXfmG4GRmnxm2vOGmvgz5fRKV1dg0-RcwVbk5kxVCe2lMUgAA; + fpc=AoBknw96eLdMmYrEPqbmp0k; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd User-Agent: - python-requests/2.28.1 method: GET @@ -29,7 +29,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 16 Sep 2022 17:41:22 GMT + - Fri, 07 Oct 2022 14:38:01 GMT expires: - '-1' p3p: @@ -37,7 +37,7 @@ interactions: pragma: - no-cache set-cookie: - - fpc=ApNUZq1I14BArdXXDDKz5zA; expires=Sun, 16-Oct-2022 17:41:23 GMT; path=/; + - fpc=AoBknw96eLdMmYrEPqbmp0k; expires=Sun, 06-Nov-2022 14:38:02 GMT; path=/; secure; HttpOnly; SameSite=None - x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly - stsservicecookie=estsfd; path=/; secure; samesite=none; httponly @@ -46,7 +46,7 @@ interactions: x-content-type-options: - nosniff x-ms-ests-server: - - 2.1.13622.7 - NEULR2 ProdSlices + - 2.1.13777.6 - NEULR2 ProdSlices x-xss-protection: - '0' status: @@ -62,13 +62,13 @@ interactions: Connection: - keep-alive Content-Length: - - '2170' + - '2127' Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.3.0 Python/3.7.9 (Windows-10-10.0.22621-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.0 (macOS-12.6-x86_64-i386-64bit) x-ms-date: - - Fri, 16 Sep 2022 17:41:23 GMT + - Fri, 07 Oct 2022 14:38:02 GMT x-ms-return-client-request-id: - 'true' method: POST @@ -83,9 +83,9 @@ interactions: content-type: - application/json date: - - Fri, 16 Sep 2022 17:41:22 GMT + - Fri, 07 Oct 2022 14:38:02 GMT ms-cv: - - Xi5wKH7t/EWj1OrYObFrIA.0 + - c6ibiR3k3E2hBq5FlAF0yw.0 request-context: - appId= strict-transport-security: @@ -95,7 +95,7 @@ interactions: x-cache: - CONFIG_NOCACHE x-processing-time: - - 36ms + - 113ms status: code: 400 message: Bad Request diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_for_teams_user_with_invalid_token_0_empty_token.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_for_teams_user_with_invalid_token_0_empty_token.yaml index 1a6174a49ccc..8f3bb47cdaa3 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_for_teams_user_with_invalid_token_0_empty_token.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_for_teams_user_with_invalid_token_0_empty_token.yaml @@ -13,9 +13,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.3.0 Python/3.7.9 (Windows-10-10.0.22621-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.0 (macOS-12.6-x86_64-i386-64bit) x-ms-date: - - Fri, 16 Sep 2022 17:41:23 GMT + - Fri, 07 Oct 2022 14:38:02 GMT x-ms-return-client-request-id: - 'true' method: POST @@ -28,9 +28,9 @@ interactions: content-type: - application/json date: - - Fri, 16 Sep 2022 17:41:23 GMT + - Fri, 07 Oct 2022 14:38:02 GMT ms-cv: - - wRLkYfsSlEiAsfTPK3uTgw.0 + - nMFKCF6Kl06soIxaTlohiQ.0 request-context: - appId= strict-transport-security: @@ -40,7 +40,7 @@ interactions: x-cache: - CONFIG_NOCACHE x-processing-time: - - 27ms + - 111ms status: code: 401 message: Unauthorized diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_for_teams_user_with_invalid_token_1_invalid_token.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_for_teams_user_with_invalid_token_1_invalid_token.yaml index db1c9b314e18..181872418b71 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_for_teams_user_with_invalid_token_1_invalid_token.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_for_teams_user_with_invalid_token_1_invalid_token.yaml @@ -13,9 +13,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.3.0 Python/3.7.9 (Windows-10-10.0.22621-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.0 (macOS-12.6-x86_64-i386-64bit) x-ms-date: - - Fri, 16 Sep 2022 17:41:24 GMT + - Fri, 07 Oct 2022 14:38:02 GMT x-ms-return-client-request-id: - 'true' method: POST @@ -28,9 +28,9 @@ interactions: content-type: - application/json date: - - Fri, 16 Sep 2022 17:41:23 GMT + - Fri, 07 Oct 2022 14:38:02 GMT ms-cv: - - nylLShu2l0e3pzTK2kDFFQ.0 + - be8Xl2duikO2RFmRXIw8pg.0 request-context: - appId= strict-transport-security: @@ -40,7 +40,7 @@ interactions: x-cache: - CONFIG_NOCACHE x-processing-time: - - 34ms + - 107ms status: code: 401 message: Unauthorized diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_for_teams_user_with_invalid_user_object_id_0_empty_user_object_id.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_for_teams_user_with_invalid_user_object_id_0_empty_user_object_id.yaml index 7b87abae4b36..c8815b841470 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_for_teams_user_with_invalid_user_object_id_0_empty_user_object_id.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_for_teams_user_with_invalid_user_object_id_0_empty_user_object_id.yaml @@ -9,8 +9,8 @@ interactions: Connection: - keep-alive Cookie: - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrE6TFnN1VByZa2i1I6vshc1bVsov0AvmmHeUv-fc-qEFH6Dy6S2f0LYmT6EWLNUc50BSwhyNSQoDbWSqclFINHCt2XSuvxm5GMhaRUz0njE6Xs52sTEBYmoeMPRiUdIPzY0NkmB9YpwqKeereNDbA_RH4DRrxIa8GB8WpcFZXdikgAA; - fpc=Ai98laH2S81Hk571Zyn_8PE; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd + - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevrws6oZYY2NIC9PFwMecLGRAajA8h5WUNaVoIO-jw3gTquEh_CqgC7J_04YPplUWO185zIBdLYVtfkBLpN88-91cbykW_U4ql5mIcff2o3ko8ThBAhOTUlzwOYKGFbvrjcDv7jMBRXFBFydJzxX5d1lUshn6JBlGDq5WsuVXbwIaq8WhzeGSNz66ZBABdHPFsSPGuJfgFj68XRYALx3G7ib8urKsF3EoMZ25BHUgZnprwgAA; + fpc=AgQMDiP1EddNsVmcDY1PBnU; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd User-Agent: - python-requests/2.28.1 method: GET @@ -29,7 +29,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 16 Sep 2022 17:41:24 GMT + - Fri, 07 Oct 2022 14:38:03 GMT expires: - '-1' p3p: @@ -37,7 +37,7 @@ interactions: pragma: - no-cache set-cookie: - - fpc=Ai98laH2S81Hk571Zyn_8PE; expires=Sun, 16-Oct-2022 17:41:24 GMT; path=/; + - fpc=AgQMDiP1EddNsVmcDY1PBnU; expires=Sun, 06-Nov-2022 14:38:03 GMT; path=/; secure; HttpOnly; SameSite=None - x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly - stsservicecookie=estsfd; path=/; secure; samesite=none; httponly @@ -46,7 +46,7 @@ interactions: x-content-type-options: - nosniff x-ms-ests-server: - - 2.1.13622.7 - NEULR2 ProdSlices + - 2.1.13777.6 - WEULR1 ProdSlices x-xss-protection: - '0' status: @@ -62,13 +62,13 @@ interactions: Connection: - keep-alive Content-Length: - - '2163' + - '2120' Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.3.0 Python/3.7.9 (Windows-10-10.0.22621-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.0 (macOS-12.6-x86_64-i386-64bit) x-ms-date: - - Fri, 16 Sep 2022 17:41:24 GMT + - Fri, 07 Oct 2022 14:38:03 GMT x-ms-return-client-request-id: - 'true' method: POST @@ -81,9 +81,9 @@ interactions: content-type: - application/json date: - - Fri, 16 Sep 2022 17:41:24 GMT + - Fri, 07 Oct 2022 14:38:03 GMT ms-cv: - - W6MBDe88IEyRMNpYC+evvA.0 + - rWq96OTU/EOnx/pcFDkZfg.0 request-context: - appId= strict-transport-security: @@ -93,7 +93,7 @@ interactions: x-cache: - CONFIG_NOCACHE x-processing-time: - - 32ms + - 112ms status: code: 400 message: Bad Request diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_for_teams_user_with_invalid_user_object_id_1_invalid_user_object_id.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_for_teams_user_with_invalid_user_object_id_1_invalid_user_object_id.yaml index 5a5cc49b8176..737bec1bae19 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_for_teams_user_with_invalid_user_object_id_1_invalid_user_object_id.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_for_teams_user_with_invalid_user_object_id_1_invalid_user_object_id.yaml @@ -9,8 +9,8 @@ interactions: Connection: - keep-alive Cookie: - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrjKSr_Q0JKK79YN_4ya1sgHZpEngDl9BS5q5kaXfjbS2j_YiprQj1u_1wUYHUiD2ca-3WZoNCnVA_LqCuGDXc3Q5Tj3pZSuKq9Haote4_cm2XGKZfSi_EFYVYx3O_4i8lYAtSEDprUC9KYUfmQ1iyZCXw1uYnhkYwN35lbyzwDfggAA; - fpc=AuzpiXo4RttGt7zOXCslpjI; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd + - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevrc9HD1f8Wpnz4__tTHi0xO_7QsRLWv9qfAQDVXOTvNtCCqkOHI2k46kx5cfCU-3dwqVgggss-id1qEnnz7bPnS-HA-8mWvLJtOgYHjnte_Il_5Qo5GsTzQrTUJtVk7X5KDq9nUYuBsvAgznzC5oJLveIh0KwaAQYR9XtSdeNFY-Sx38vlcZPnTj5nKGvNMehIKIqPh0d_OuA2wtMGvSdXi9rSrnsuCl8YgUA6DLA9-OggAA; + fpc=AnNJXQw9rQ1Kl0V9PuDc2N8; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd User-Agent: - python-requests/2.28.1 method: GET @@ -29,7 +29,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 16 Sep 2022 17:41:25 GMT + - Fri, 07 Oct 2022 14:38:03 GMT expires: - '-1' p3p: @@ -37,7 +37,7 @@ interactions: pragma: - no-cache set-cookie: - - fpc=AuzpiXo4RttGt7zOXCslpjI; expires=Sun, 16-Oct-2022 17:41:25 GMT; path=/; + - fpc=AnNJXQw9rQ1Kl0V9PuDc2N8; expires=Sun, 06-Nov-2022 14:38:04 GMT; path=/; secure; HttpOnly; SameSite=None - x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly - stsservicecookie=estsfd; path=/; secure; samesite=none; httponly @@ -46,7 +46,7 @@ interactions: x-content-type-options: - nosniff x-ms-ests-server: - - 2.1.13622.7 - NEULR1 ProdSlices + - 2.1.13777.6 - WEULR1 ProdSlices x-xss-protection: - '0' status: @@ -62,13 +62,13 @@ interactions: Connection: - keep-alive Content-Length: - - '2170' + - '2127' Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.3.0 Python/3.7.9 (Windows-10-10.0.22621-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.0 (macOS-12.6-x86_64-i386-64bit) x-ms-date: - - Fri, 16 Sep 2022 17:41:25 GMT + - Fri, 07 Oct 2022 14:38:04 GMT x-ms-return-client-request-id: - 'true' method: POST @@ -83,9 +83,9 @@ interactions: content-type: - application/json date: - - Fri, 16 Sep 2022 17:41:25 GMT + - Fri, 07 Oct 2022 14:38:04 GMT ms-cv: - - 5zUVW+RQGE6lUtyPcmpT+A.0 + - jC83bTi4SUCCIFOpvMcm3A.0 request-context: - appId= strict-transport-security: @@ -95,7 +95,7 @@ interactions: x-cache: - CONFIG_NOCACHE x-processing-time: - - 38ms + - 113ms status: code: 400 message: Bad Request diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_for_teams_user_with_valid_params.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_for_teams_user_with_valid_params.yaml index 5c26c80735e3..f4313c9815f9 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_for_teams_user_with_valid_params.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_for_teams_user_with_valid_params.yaml @@ -9,8 +9,8 @@ interactions: Connection: - keep-alive Cookie: - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrQnb9USyEhx_ba8O3MmsH8H9dNUb2WAdrMWFUurbWq-nDOC9Fc9Yzdp1rogosntd9MRnzKXbbTPU-NVEU8VCH_9HRUmo02qz5URXtz0BzDzIfsqdhx5NrTLp1IBFRvOigorSmmYvJ3IFOk3f22QGCVH8u5X5fLSMGwRrcqYRHI6cgAA; - fpc=Ajk9SnjY1YpOlEiwpNwd774; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd + - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevriIzcl5xCg5VNEsUUkILtGmok97Esn12aBdJWqrPKi7ehsK3Az7eqKPOvXQ1EsBJxIxGTuYUckD752qXrmyRNfh3tm-PElF_vePYXQYda9cxr8zNrCdmcmziqaU3tKJCuAlbBuiuz3oSkh6f1HJQYhCmy3E7fIiF2lfJfDPOVqv1hi7IdOGgqu3iq1GoNDnHn0IZwcCZm3-VxtI0IC_LLm1ysgoWskg8Z5Diq1bBKwBwgAA; + fpc=AjGd9X0vUrNIqag3b1x2tAI; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd User-Agent: - python-requests/2.28.1 method: GET @@ -29,7 +29,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 16 Sep 2022 17:41:25 GMT + - Fri, 07 Oct 2022 14:38:04 GMT expires: - '-1' p3p: @@ -37,7 +37,7 @@ interactions: pragma: - no-cache set-cookie: - - fpc=Ajk9SnjY1YpOlEiwpNwd774; expires=Sun, 16-Oct-2022 17:41:26 GMT; path=/; + - fpc=AjGd9X0vUrNIqag3b1x2tAI; expires=Sun, 06-Nov-2022 14:38:05 GMT; path=/; secure; HttpOnly; SameSite=None - x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly - stsservicecookie=estsfd; path=/; secure; samesite=none; httponly @@ -46,7 +46,7 @@ interactions: x-content-type-options: - nosniff x-ms-ests-server: - - 2.1.13622.7 - NEULR1 ProdSlices + - 2.1.13777.6 - WEULR2 ProdSlices x-xss-protection: - '0' status: @@ -62,20 +62,20 @@ interactions: Connection: - keep-alive Content-Length: - - '2199' + - '2156' Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.3.0 Python/3.7.9 (Windows-10-10.0.22621-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.0 (macOS-12.6-x86_64-i386-64bit) x-ms-date: - - Fri, 16 Sep 2022 17:41:26 GMT + - Fri, 07 Oct 2022 14:38:05 GMT x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.communication.azure.com/teamsUser/:exchangeAccessToken?api-version=2022-10-01 response: body: - string: '{"token": "sanitized", "expiresOn": "2022-09-16T19:00:11.5860819+00:00"}' + string: '{"token": "sanitized", "expiresOn": "2022-10-07T15:51:51.9311306+00:00"}' headers: api-supported-versions: - 2021-10-31-preview, 2022-06-01, 2022-10-01 @@ -84,9 +84,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 16 Sep 2022 17:41:27 GMT + - Fri, 07 Oct 2022 14:38:05 GMT ms-cv: - - HTu84zFwxkycgVn2Qy5SJA.0 + - Be4c1xXH002KTjFsRNbUJQ.0 request-context: - appId= strict-transport-security: @@ -94,7 +94,7 @@ interactions: x-cache: - CONFIG_NOCACHE x-processing-time: - - 312ms + - 318ms status: code: 200 message: OK diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_for_teams_user_with_wrong_client_id.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_for_teams_user_with_wrong_client_id.yaml index fd9944b90bb6..567e993426ed 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_for_teams_user_with_wrong_client_id.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_for_teams_user_with_wrong_client_id.yaml @@ -9,8 +9,8 @@ interactions: Connection: - keep-alive Cookie: - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrQGsvZjcNpNlXtnT3Dl2fKQNa7Ws15gpdydYN3MOPY6Py9YDNuKgJYULnEmTUb1WD_cjzM0WjPOqxZ8x7F9DBmxR6aMCaML0DIiuQw8ePkxayS1USwpa-wb6tXN6tqDp1UXeUO5GR5t-KBEv9WnYZiHRtWW5ctf30FpbZiSkHn8kgAA; - fpc=Aker7_KLdu9KpQ-q8bXcLeU; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd + - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrpdPFSh6mFZuYJTNgxHaNF7rAJmhQqPG9R09PZ-4-xFRKNIUGZrj2GNM2JXK9rI7QhNkiKq6_sebFMAhRgCl9lWLQPVs-L-9EgMe0NiLHM_lQSVT0U45wz8592qLWJFlK1lwcilEBz7AtF4d-8Oz4ZMKGq477WCUEcZK39L_M75l60X4eN0QZqbE8xO6WpqLyN9M0aBrvHmGZuDRLSC7MHdaUUn7Cwqw4xWZQEMAROpAgAA; + fpc=AjdyfPIOJKxBqdCYeyPndsQ; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd User-Agent: - python-requests/2.28.1 method: GET @@ -29,7 +29,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 16 Sep 2022 17:41:28 GMT + - Fri, 07 Oct 2022 14:38:05 GMT expires: - '-1' p3p: @@ -37,7 +37,7 @@ interactions: pragma: - no-cache set-cookie: - - fpc=Aker7_KLdu9KpQ-q8bXcLeU; expires=Sun, 16-Oct-2022 17:41:28 GMT; path=/; + - fpc=AjdyfPIOJKxBqdCYeyPndsQ; expires=Sun, 06-Nov-2022 14:38:06 GMT; path=/; secure; HttpOnly; SameSite=None - x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly - stsservicecookie=estsfd; path=/; secure; samesite=none; httponly @@ -46,7 +46,7 @@ interactions: x-content-type-options: - nosniff x-ms-ests-server: - - 2.1.13622.7 - NEULR2 ProdSlices + - 2.1.13777.6 - WEULR2 ProdSlices x-xss-protection: - '0' status: @@ -62,13 +62,13 @@ interactions: Connection: - keep-alive Content-Length: - - '2199' + - '2156' Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.3.0 Python/3.7.9 (Windows-10-10.0.22621-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.0 (macOS-12.6-x86_64-i386-64bit) x-ms-date: - - Fri, 16 Sep 2022 17:41:29 GMT + - Fri, 07 Oct 2022 14:38:06 GMT x-ms-return-client-request-id: - 'true' method: POST @@ -83,9 +83,9 @@ interactions: content-type: - application/json date: - - Fri, 16 Sep 2022 17:41:29 GMT + - Fri, 07 Oct 2022 14:38:05 GMT ms-cv: - - yArvSiMv1EyHwVowzZjmUg.0 + - WIWvnUGMsUKg4j1Vituukw.0 request-context: - appId= strict-transport-security: @@ -95,7 +95,7 @@ interactions: x-cache: - CONFIG_NOCACHE x-processing-time: - - 36ms + - 115ms status: code: 400 message: Bad Request diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_for_teams_user_with_wrong_user_object_id.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_for_teams_user_with_wrong_user_object_id.yaml index 49f374cb2818..dcc1a4d4be22 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_for_teams_user_with_wrong_user_object_id.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_for_teams_user_with_wrong_user_object_id.yaml @@ -9,8 +9,8 @@ interactions: Connection: - keep-alive Cookie: - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrzrUbCtNJqBhYsGpMdR1qMFow3EyGH8XA4KcvDslscFcDAwJB4lZZNq5R-thOPvnKi_S0VG8LrELOvH8VYT6O1l-VwAJmNb6AbAfJn_s6rjEeLWKrOyTFMb7a8hVFKqRpb3ItwFlg0-PUkiwj5VvFShwUULbatnPf6wW9cL5_We8gAA; - fpc=Ap6Og9WCpA9Goqnxv1u_UJA; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd + - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrvA2IsXhYG8W9sGHoAY-cnshSS9w00AUeKrSI86ve04ODS05pb6ORL8wdQRTFnImerTKu2k0_xtMfffoUb8fcVo4KYfHvAY-fhWOdnZjrhY1ok0zOr2-yYe1pCWjIQydnIunDRu0yGzCjp7XujW7kzJLjCYLQpx1J9efvwPNkHSaLBzHw9VPTShSPaNZ45tR7417XqdjCCiEmSKejwUE401Ui5-x1Iw-DsQGJ_vdBjJUgAA; + fpc=AvwTPmRJTkFBmEOFYlo1224; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd User-Agent: - python-requests/2.28.1 method: GET @@ -29,7 +29,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 16 Sep 2022 17:41:29 GMT + - Fri, 07 Oct 2022 14:38:06 GMT expires: - '-1' p3p: @@ -37,7 +37,7 @@ interactions: pragma: - no-cache set-cookie: - - fpc=Ap6Og9WCpA9Goqnxv1u_UJA; expires=Sun, 16-Oct-2022 17:41:30 GMT; path=/; + - fpc=AvwTPmRJTkFBmEOFYlo1224; expires=Sun, 06-Nov-2022 14:38:07 GMT; path=/; secure; HttpOnly; SameSite=None - x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly - stsservicecookie=estsfd; path=/; secure; samesite=none; httponly @@ -46,7 +46,7 @@ interactions: x-content-type-options: - nosniff x-ms-ests-server: - - 2.1.13622.7 - NEULR1 ProdSlices + - 2.1.13777.6 - NEULR2 ProdSlices x-xss-protection: - '0' status: @@ -62,13 +62,13 @@ interactions: Connection: - keep-alive Content-Length: - - '2199' + - '2156' Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.3.0 Python/3.7.9 (Windows-10-10.0.22621-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.0 (macOS-12.6-x86_64-i386-64bit) x-ms-date: - - Fri, 16 Sep 2022 17:41:30 GMT + - Fri, 07 Oct 2022 14:38:07 GMT x-ms-return-client-request-id: - 'true' method: POST @@ -83,9 +83,9 @@ interactions: content-type: - application/json date: - - Fri, 16 Sep 2022 17:41:30 GMT + - Fri, 07 Oct 2022 14:38:06 GMT ms-cv: - - SdAsoI/3T0ac31aXZ/q5YQ.0 + - /tk+CvNwJE+RUdpzxSfFPQ.0 request-context: - appId= strict-transport-security: @@ -95,7 +95,7 @@ interactions: x-cache: - CONFIG_NOCACHE x-processing-time: - - 42ms + - 114ms status: code: 400 message: Bad Request diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_from_managed_identity.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_from_managed_identity.yaml index bbf6a09a2ec5..4db26932c96d 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_from_managed_identity.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_from_managed_identity.yaml @@ -13,7 +13,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.3.0 Python/3.7.9 (Windows-10-10.0.22621-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.0 (macOS-12.6-x86_64-i386-64bit) method: POST uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: @@ -28,9 +28,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 16 Sep 2022 17:41:32 GMT + - Fri, 07 Oct 2022 14:38:08 GMT ms-cv: - - nih+SjBBck2EgkfycweFzQ.0 + - piJp1TkGF0O/TpUwkAhHyg.2.0 request-context: - appId= strict-transport-security: @@ -38,12 +38,12 @@ interactions: x-cache: - CONFIG_NOCACHE x-processing-time: - - 243ms + - 238ms status: code: 201 message: Created - request: - body: '{"scopes": ["chat"]}' + body: '{"scopes": ["chat"], "expiresInMinutes": null}' headers: Accept: - application/json @@ -52,28 +52,28 @@ interactions: Connection: - keep-alive Content-Length: - - '20' + - '46' Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.3.0 Python/3.7.9 (Windows-10-10.0.22621-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.0 (macOS-12.6-x86_64-i386-64bit) method: POST uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2022-10-01 response: body: - string: '{"token": "sanitized", "expiresOn": "2022-09-17T17:41:32.758196+00:00"}' + string: '{"token": "sanitized", "expiresOn": "2022-10-08T14:38:08.7828927+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, 2021-11-01, 2022-06-01, 2022-10-01 content-length: - - '803' + - '804' content-type: - application/json; charset=utf-8 date: - - Fri, 16 Sep 2022 17:41:32 GMT + - Fri, 07 Oct 2022 14:38:08 GMT ms-cv: - - XLlble47l0G7aYorNv29YA.0 + - 9bTNWcQtDEKBc66e2NQI/w.2.0 request-context: - appId= strict-transport-security: @@ -81,7 +81,7 @@ interactions: x-cache: - CONFIG_NOCACHE x-processing-time: - - 39ms + - 159ms status: code: 200 message: OK diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_with_invalid_custom_expirations_0_min_invalid_mins.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_with_invalid_custom_expirations_0_min_invalid_mins.yaml new file mode 100644 index 000000000000..e1bee8c17970 --- /dev/null +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_with_invalid_custom_expirations_0_min_invalid_mins.yaml @@ -0,0 +1,98 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + Content-Type: + - application/json + User-Agent: + - azsdk-python-communication-identity/1.3.0 Python/3.10.0 (macOS-12.6-x86_64-i386-64bit) + x-ms-date: + - Fri, 07 Oct 2022 14:38:08 GMT + x-ms-return-client-request-id: + - 'true' + method: POST + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 + response: + body: + string: '{"identity": {"id": "sanitized"}}' + headers: + api-supported-versions: + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, + 2021-11-01, 2022-06-01, 2022-10-01 + content-length: + - '101' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 07 Oct 2022 14:38:09 GMT + ms-cv: + - rPoVA4Txjkir1wDjjxSs7Q.2.0 + request-context: + - appId= + strict-transport-security: + - max-age=2592000 + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 96ms + status: + code: 201 + message: Created +- request: + body: '{"scopes": ["chat"], "expiresInMinutes": 59}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '44' + Content-Type: + - application/json + User-Agent: + - azsdk-python-communication-identity/1.3.0 Python/3.10.0 (macOS-12.6-x86_64-i386-64bit) + x-ms-date: + - Fri, 07 Oct 2022 14:38:09 GMT + x-ms-return-client-request-id: + - 'true' + method: POST + uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2022-10-01 + response: + body: + string: '{"error": {"code": "ValidationError", "message": "ExpiresInMinutes + value 59 is invalid. Value must be within the [60, 1440] interval.", "target": + "ExpiresInMinutes"}}' + headers: + api-supported-versions: + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, + 2021-11-01, 2022-06-01, 2022-10-01 + content-type: + - application/json + date: + - Fri, 07 Oct 2022 14:38:09 GMT + ms-cv: + - E/ZIFrr0lUme6FbUQPdBNA.2.0 + request-context: + - appId= + strict-transport-security: + - max-age=2592000 + transfer-encoding: + - chunked + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 23ms + status: + code: 400 + message: Bad Request +version: 1 diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_with_invalid_custom_expirations_1_max_invalid_mins.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_with_invalid_custom_expirations_1_max_invalid_mins.yaml new file mode 100644 index 000000000000..7cec8847cc83 --- /dev/null +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_with_invalid_custom_expirations_1_max_invalid_mins.yaml @@ -0,0 +1,98 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + Content-Type: + - application/json + User-Agent: + - azsdk-python-communication-identity/1.3.0 Python/3.10.0 (macOS-12.6-x86_64-i386-64bit) + x-ms-date: + - Fri, 07 Oct 2022 14:38:09 GMT + x-ms-return-client-request-id: + - 'true' + method: POST + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 + response: + body: + string: '{"identity": {"id": "sanitized"}}' + headers: + api-supported-versions: + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, + 2021-11-01, 2022-06-01, 2022-10-01 + content-length: + - '101' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 07 Oct 2022 14:38:09 GMT + ms-cv: + - VORBuELLfkyotSRlqplFNg.2.0 + request-context: + - appId= + strict-transport-security: + - max-age=2592000 + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 92ms + status: + code: 201 + message: Created +- request: + body: '{"scopes": ["chat"], "expiresInMinutes": 1441}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '46' + Content-Type: + - application/json + User-Agent: + - azsdk-python-communication-identity/1.3.0 Python/3.10.0 (macOS-12.6-x86_64-i386-64bit) + x-ms-date: + - Fri, 07 Oct 2022 14:38:09 GMT + x-ms-return-client-request-id: + - 'true' + method: POST + uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2022-10-01 + response: + body: + string: '{"error": {"code": "ValidationError", "message": "ExpiresInMinutes + value 1441 is invalid. Value must be within the [60, 1440] interval.", "target": + "ExpiresInMinutes"}}' + headers: + api-supported-versions: + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, + 2021-11-01, 2022-06-01, 2022-10-01 + content-type: + - application/json + date: + - Fri, 07 Oct 2022 14:38:09 GMT + ms-cv: + - J44WJFYII0it5e+fPMIj9w.2.0 + request-context: + - appId= + strict-transport-security: + - max-age=2592000 + transfer-encoding: + - chunked + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 22ms + status: + code: 400 + message: Bad Request +version: 1 diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_with_no_scopes.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_with_no_scopes.yaml index a325eb8eb7d1..dd1a2df5defd 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_with_no_scopes.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_with_no_scopes.yaml @@ -13,9 +13,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.3.0 Python/3.7.9 (Windows-10-10.0.22621-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.0 (macOS-12.6-x86_64-i386-64bit) x-ms-date: - - Fri, 16 Sep 2022 17:41:35 GMT + - Fri, 07 Oct 2022 14:38:10 GMT x-ms-return-client-request-id: - 'true' method: POST @@ -32,9 +32,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 16 Sep 2022 17:41:35 GMT + - Fri, 07 Oct 2022 14:38:10 GMT ms-cv: - - Im5DklXQkUqrjkJa3lX88w.0 + - CdPY6DDj2k2jrBtnHaJ8mQ.2.0 request-context: - appId= strict-transport-security: @@ -42,12 +42,12 @@ interactions: x-cache: - CONFIG_NOCACHE x-processing-time: - - 32ms + - 104ms status: code: 201 message: Created - request: - body: '{"scopes": null}' + body: '{"scopes": null, "expiresInMinutes": null}' headers: Accept: - application/json @@ -56,13 +56,13 @@ interactions: Connection: - keep-alive Content-Length: - - '16' + - '42' Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.3.0 Python/3.7.9 (Windows-10-10.0.22621-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.0 (macOS-12.6-x86_64-i386-64bit) x-ms-date: - - Fri, 16 Sep 2022 17:41:35 GMT + - Fri, 07 Oct 2022 14:38:11 GMT x-ms-return-client-request-id: - 'true' method: POST @@ -75,9 +75,9 @@ interactions: content-type: - application/json date: - - Fri, 16 Sep 2022 17:41:35 GMT + - Fri, 07 Oct 2022 14:38:11 GMT ms-cv: - - 6GlyAfbSfUW1BymqvqlZ0A.0 + - 5lQIyDmjFEGeuVsTLQnz8A.2.0 request-context: - appId= strict-transport-security: @@ -87,7 +87,7 @@ interactions: x-cache: - CONFIG_NOCACHE x-processing-time: - - 30ms + - 24ms status: code: 400 message: Bad Request diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_with_valid_custom_expirations_0_min_valid_hours.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_with_valid_custom_expirations_0_min_valid_hours.yaml new file mode 100644 index 000000000000..c4b144cb3157 --- /dev/null +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_with_valid_custom_expirations_0_min_valid_hours.yaml @@ -0,0 +1,96 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + Content-Type: + - application/json + User-Agent: + - azsdk-python-communication-identity/1.3.0 Python/3.10.0 (macOS-12.6-x86_64-i386-64bit) + x-ms-date: + - Fri, 07 Oct 2022 14:38:11 GMT + x-ms-return-client-request-id: + - 'true' + method: POST + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 + response: + body: + string: '{"identity": {"id": "sanitized"}}' + headers: + api-supported-versions: + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, + 2021-11-01, 2022-06-01, 2022-10-01 + content-length: + - '101' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 07 Oct 2022 14:38:11 GMT + ms-cv: + - GDxMUa1byUWNXsQeThTRaA.2.0 + request-context: + - appId= + strict-transport-security: + - max-age=2592000 + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 91ms + status: + code: 201 + message: Created +- request: + body: '{"scopes": ["chat"], "expiresInMinutes": 60}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '44' + Content-Type: + - application/json + User-Agent: + - azsdk-python-communication-identity/1.3.0 Python/3.10.0 (macOS-12.6-x86_64-i386-64bit) + x-ms-date: + - Fri, 07 Oct 2022 14:38:11 GMT + x-ms-return-client-request-id: + - 'true' + method: POST + uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2022-10-01 + response: + body: + string: '{"token": "sanitized", "expiresOn": "2022-10-07T15:38:12.4249933+00:00"}' + headers: + api-supported-versions: + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, + 2021-11-01, 2022-06-01, 2022-10-01 + content-length: + - '804' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 07 Oct 2022 14:38:11 GMT + ms-cv: + - Fc0dnDMjmE66HHNMSdGrbg.2.0 + request-context: + - appId= + strict-transport-security: + - max-age=2592000 + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 158ms + status: + code: 200 + message: OK +version: 1 diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_with_valid_custom_expirations_1_max_valid_hours.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_with_valid_custom_expirations_1_max_valid_hours.yaml new file mode 100644 index 000000000000..8a85d7bae8eb --- /dev/null +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_with_valid_custom_expirations_1_max_valid_hours.yaml @@ -0,0 +1,96 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + Content-Type: + - application/json + User-Agent: + - azsdk-python-communication-identity/1.3.0 Python/3.10.0 (macOS-12.6-x86_64-i386-64bit) + x-ms-date: + - Fri, 07 Oct 2022 14:38:12 GMT + x-ms-return-client-request-id: + - 'true' + method: POST + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 + response: + body: + string: '{"identity": {"id": "sanitized"}}' + headers: + api-supported-versions: + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, + 2021-11-01, 2022-06-01, 2022-10-01 + content-length: + - '101' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 07 Oct 2022 14:38:12 GMT + ms-cv: + - OMirD+w2MUCbFn7vTIg91Q.2.0 + request-context: + - appId= + strict-transport-security: + - max-age=2592000 + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 102ms + status: + code: 201 + message: Created +- request: + body: '{"scopes": ["chat"], "expiresInMinutes": 1440}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '46' + Content-Type: + - application/json + User-Agent: + - azsdk-python-communication-identity/1.3.0 Python/3.10.0 (macOS-12.6-x86_64-i386-64bit) + x-ms-date: + - Fri, 07 Oct 2022 14:38:12 GMT + x-ms-return-client-request-id: + - 'true' + method: POST + uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2022-10-01 + response: + body: + string: '{"token": "sanitized", "expiresOn": "2022-10-08T14:38:13.2889051+00:00"}' + headers: + api-supported-versions: + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, + 2021-11-01, 2022-06-01, 2022-10-01 + content-length: + - '804' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 07 Oct 2022 14:38:12 GMT + ms-cv: + - YdUZaOYfYE6fn+nYZzDtkg.2.0 + request-context: + - appId= + strict-transport-security: + - max-age=2592000 + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 159ms + status: + code: 200 + message: OK +version: 1 diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_revoke_tokens.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_revoke_tokens.yaml index f8180783789f..feb8fe7882c7 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_revoke_tokens.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_revoke_tokens.yaml @@ -13,9 +13,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.3.0 Python/3.7.9 (Windows-10-10.0.22621-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.0 (macOS-12.6-x86_64-i386-64bit) x-ms-date: - - Fri, 16 Sep 2022 17:41:36 GMT + - Fri, 07 Oct 2022 14:38:13 GMT x-ms-return-client-request-id: - 'true' method: POST @@ -32,9 +32,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 16 Sep 2022 17:41:36 GMT + - Fri, 07 Oct 2022 14:38:12 GMT ms-cv: - - lIk5kXCGFUew+WHtFZ6FUQ.0 + - /rWW/OU91EahJKGDforzcw.2.0 request-context: - appId= strict-transport-security: @@ -42,12 +42,12 @@ interactions: x-cache: - CONFIG_NOCACHE x-processing-time: - - 51ms + - 95ms status: code: 201 message: Created - request: - body: '{"scopes": ["chat"]}' + body: '{"scopes": ["chat"], "expiresInMinutes": null}' headers: Accept: - application/json @@ -56,32 +56,32 @@ interactions: Connection: - keep-alive Content-Length: - - '20' + - '46' Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.3.0 Python/3.7.9 (Windows-10-10.0.22621-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.0 (macOS-12.6-x86_64-i386-64bit) x-ms-date: - - Fri, 16 Sep 2022 17:41:36 GMT + - Fri, 07 Oct 2022 14:38:13 GMT x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2022-10-01 response: body: - string: '{"token": "sanitized", "expiresOn": "2022-09-17T17:41:36.729901+00:00"}' + string: '{"token": "sanitized", "expiresOn": "2022-10-08T14:38:14.1958136+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, 2021-11-01, 2022-06-01, 2022-10-01 content-length: - - '803' + - '804' content-type: - application/json; charset=utf-8 date: - - Fri, 16 Sep 2022 17:41:36 GMT + - Fri, 07 Oct 2022 14:38:13 GMT ms-cv: - - GH4NJsolFE+u0+pmtg1ntQ.0 + - OK5ZLq+woUa4kYNsxbMZ8Q.2.0 request-context: - appId= strict-transport-security: @@ -89,7 +89,7 @@ interactions: x-cache: - CONFIG_NOCACHE x-processing-time: - - 41ms + - 169ms status: code: 200 message: OK @@ -105,9 +105,9 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.3.0 Python/3.7.9 (Windows-10-10.0.22621-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.0 (macOS-12.6-x86_64-i386-64bit) x-ms-date: - - Fri, 16 Sep 2022 17:41:36 GMT + - Fri, 07 Oct 2022 14:38:14 GMT x-ms-return-client-request-id: - 'true' method: POST @@ -120,9 +120,9 @@ interactions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, 2021-11-01, 2022-06-01, 2022-10-01 date: - - Fri, 16 Sep 2022 17:41:36 GMT + - Fri, 07 Oct 2022 14:38:13 GMT ms-cv: - - vCIdjSstdkCLyIZV3Ez73A.0 + - a2T0HfkHC0aG/t0J045zzA.2.0 request-context: - appId= strict-transport-security: @@ -130,7 +130,7 @@ interactions: x-cache: - CONFIG_NOCACHE x-processing-time: - - 112ms + - 232ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_revoke_tokens_from_managed_identity.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_revoke_tokens_from_managed_identity.yaml index bbcf50177262..3a62f915c6f0 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_revoke_tokens_from_managed_identity.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_revoke_tokens_from_managed_identity.yaml @@ -13,7 +13,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.3.0 Python/3.7.9 (Windows-10-10.0.22621-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.0 (macOS-12.6-x86_64-i386-64bit) method: POST uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: @@ -28,9 +28,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 16 Sep 2022 17:41:37 GMT + - Fri, 07 Oct 2022 14:38:14 GMT ms-cv: - - 0e88kvZQiE6UGDa7GsxQOA.0 + - IQY51qrZ/UunFY9nqnX3iQ.2.0 request-context: - appId= strict-transport-security: @@ -38,12 +38,12 @@ interactions: x-cache: - CONFIG_NOCACHE x-processing-time: - - 49ms + - 194ms status: code: 201 message: Created - request: - body: '{"scopes": ["chat"]}' + body: '{"scopes": ["chat"], "expiresInMinutes": null}' headers: Accept: - application/json @@ -52,16 +52,16 @@ interactions: Connection: - keep-alive Content-Length: - - '20' + - '46' Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.3.0 Python/3.7.9 (Windows-10-10.0.22621-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.0 (macOS-12.6-x86_64-i386-64bit) method: POST uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2022-10-01 response: body: - string: '{"token": "sanitized", "expiresOn": "2022-09-17T17:41:38.2777387+00:00"}' + string: '{"token": "sanitized", "expiresOn": "2022-10-08T14:38:16.0422119+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, @@ -71,9 +71,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 16 Sep 2022 17:41:37 GMT + - Fri, 07 Oct 2022 14:38:15 GMT ms-cv: - - giZ6Pj/XuUSz596R4bkmJg.0 + - P9kycMSCxUCV/Mnu1y52TQ.2.0 request-context: - appId= strict-transport-security: @@ -81,7 +81,7 @@ interactions: x-cache: - CONFIG_NOCACHE x-processing-time: - - 35ms + - 161ms status: code: 200 message: OK @@ -97,7 +97,7 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.3.0 Python/3.7.9 (Windows-10-10.0.22621-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.0 (macOS-12.6-x86_64-i386-64bit) method: POST uri: https://sanitized.communication.azure.com/identities/sanitized/:revokeAccessTokens?api-version=2022-10-01 response: @@ -108,9 +108,9 @@ interactions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, 2021-11-01, 2022-06-01, 2022-10-01 date: - - Fri, 16 Sep 2022 17:41:38 GMT + - Fri, 07 Oct 2022 14:38:15 GMT ms-cv: - - /8Xpi3hVIkmQ2zMkY9OKfA.0 + - VfHlET10eEKWmk+22rrSdA.2.0 request-context: - appId= strict-transport-security: @@ -118,7 +118,7 @@ interactions: x-cache: - CONFIG_NOCACHE x-processing-time: - - 110ms + - 401ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_create_user.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_create_user.yaml index 2110f2a83d03..1151cd0debbe 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_create_user.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_create_user.yaml @@ -7,9 +7,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.3.0 Python/3.7.9 (Windows-10-10.0.22621-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.0 (macOS-12.6-x86_64-i386-64bit) x-ms-date: - - Fri, 16 Sep 2022 17:41:38 GMT + - Fri, 07 Oct 2022 14:38:16 GMT x-ms-return-client-request-id: - 'true' method: POST @@ -22,12 +22,12 @@ interactions: 2021-10-31-preview, 2021-11-01, 2022-06-01, 2022-10-01 content-length: '101' content-type: application/json; charset=utf-8 - date: Fri, 16 Sep 2022 17:41:38 GMT - ms-cv: fo5MEVGqrk6Z2W1kW5jK0w.0 + date: Fri, 07 Oct 2022 14:38:16 GMT + ms-cv: Cibwx+RfBEWCwHlfErTGFw.2.0 request-context: appId= strict-transport-security: max-age=2592000 x-cache: CONFIG_NOCACHE - x-processing-time: 35ms + x-processing-time: 95ms status: code: 201 message: Created diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_create_user_and_token.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_create_user_and_token.yaml index 8ff7a32b1941..b38de207b56e 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_create_user_and_token.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_create_user_and_token.yaml @@ -1,17 +1,17 @@ interactions: - request: - body: '{"createTokenWithScopes": ["chat"]}' + body: '{"createTokenWithScopes": ["chat"], "expiresInMinutes": null}' headers: Accept: - application/json Content-Length: - - '35' + - '61' Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.3.0 Python/3.7.9 (Windows-10-10.0.22621-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.0 (macOS-12.6-x86_64-i386-64bit) x-ms-date: - - Fri, 16 Sep 2022 17:41:39 GMT + - Fri, 07 Oct 2022 14:38:17 GMT x-ms-return-client-request-id: - 'true' method: POST @@ -19,18 +19,18 @@ interactions: response: body: string: '{"identity": {"id": "sanitized"}, "accessToken": {"token": "sanitized", - "expiresOn": "2022-09-17T17:41:39.1849966+00:00"}}' + "expiresOn": "2022-10-08T14:38:17.5366905+00:00"}}' headers: api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, 2021-11-01, 2022-06-01, 2022-10-01 content-length: '920' content-type: application/json; charset=utf-8 - date: Fri, 16 Sep 2022 17:41:38 GMT - ms-cv: k/Z6dzNCcUihy5zpuSZTLA.0 + date: Fri, 07 Oct 2022 14:38:17 GMT + ms-cv: 9QV+jZlqkk2VQnLHEOSFmA.2.0 request-context: appId= strict-transport-security: max-age=2592000 x-cache: CONFIG_NOCACHE - x-processing-time: 43ms + x-processing-time: 102ms status: code: 201 message: Created diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_create_user_and_token_with_custom_maximum_validity.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_create_user_and_token_with_custom_maximum_validity.yaml index 93d013d54a3a..c5d881498313 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_create_user_and_token_with_custom_maximum_validity.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_create_user_and_token_with_custom_maximum_validity.yaml @@ -9,9 +9,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.3.0 Python/3.7.9 (Windows-10-10.0.22621-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.0 (macOS-12.6-x86_64-i386-64bit) x-ms-date: - - Fri, 16 Sep 2022 17:41:39 GMT + - Fri, 07 Oct 2022 14:38:17 GMT x-ms-return-client-request-id: - 'true' method: POST @@ -19,18 +19,18 @@ interactions: response: body: string: '{"identity": {"id": "sanitized"}, "accessToken": {"token": "sanitized", - "expiresOn": "2022-09-17T17:41:39.4651462+00:00"}}' + "expiresOn": "2022-10-08T14:38:17.991727+00:00"}}' headers: api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, 2021-11-01, 2022-06-01, 2022-10-01 - content-length: '920' + content-length: '919' content-type: application/json; charset=utf-8 - date: Fri, 16 Sep 2022 17:41:39 GMT - ms-cv: KiozbZJf0k+nn6izutd2cA.0 + date: Fri, 07 Oct 2022 14:38:17 GMT + ms-cv: Xmy/Uphem0SusP42fkPITw.2.0 request-context: appId= strict-transport-security: max-age=2592000 x-cache: CONFIG_NOCACHE - x-processing-time: 37ms + x-processing-time: 98ms status: code: 201 message: Created diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_create_user_and_token_with_custom_minimum_validity.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_create_user_and_token_with_custom_minimum_validity.yaml index 053afbd801bb..241520b1bcc8 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_create_user_and_token_with_custom_minimum_validity.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_create_user_and_token_with_custom_minimum_validity.yaml @@ -9,9 +9,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.3.0 Python/3.7.9 (Windows-10-10.0.22621-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.0 (macOS-12.6-x86_64-i386-64bit) x-ms-date: - - Fri, 16 Sep 2022 17:41:39 GMT + - Fri, 07 Oct 2022 14:38:17 GMT x-ms-return-client-request-id: - 'true' method: POST @@ -19,18 +19,18 @@ interactions: response: body: string: '{"identity": {"id": "sanitized"}, "accessToken": {"token": "sanitized", - "expiresOn": "2022-09-16T18:41:39.7516332+00:00"}}' + "expiresOn": "2022-10-07T15:38:18.4430479+00:00"}}' headers: api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, 2021-11-01, 2022-06-01, 2022-10-01 content-length: '920' content-type: application/json; charset=utf-8 - date: Fri, 16 Sep 2022 17:41:39 GMT - ms-cv: 3qmTqDZyH0GetqeYnANPqg.0 + date: Fri, 07 Oct 2022 14:38:18 GMT + ms-cv: baMiXgou80OLrRPGybBXBQ.2.0 request-context: appId= strict-transport-security: max-age=2592000 x-cache: CONFIG_NOCACHE - x-processing-time: 44ms + x-processing-time: 102ms status: code: 201 message: Created diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_create_user_and_token_with_custom_validity_over_maximum_allowed.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_create_user_and_token_with_custom_validity_over_maximum_allowed.yaml index 97d0fa03cc54..fc90e70b6a46 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_create_user_and_token_with_custom_validity_over_maximum_allowed.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_create_user_and_token_with_custom_validity_over_maximum_allowed.yaml @@ -9,9 +9,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.3.0 Python/3.7.9 (Windows-10-10.0.22621-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.0 (macOS-12.6-x86_64-i386-64bit) x-ms-date: - - Fri, 16 Sep 2022 17:41:39 GMT + - Fri, 07 Oct 2022 14:38:18 GMT x-ms-return-client-request-id: - 'true' method: POST @@ -19,18 +19,19 @@ interactions: response: body: string: '{"error": {"code": "ValidationError", "message": "ExpiresInMinutes - value 1441 is invalid.", "target": "ExpiresInMinutes"}}' + value 1441 is invalid. Value must be within the [60, 1440] interval.", "target": + "ExpiresInMinutes"}}' headers: api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, 2021-11-01, 2022-06-01, 2022-10-01 content-type: application/json - date: Fri, 16 Sep 2022 17:41:39 GMT - ms-cv: s6EAB/vXgESJXTTdFE+1hg.0 + date: Fri, 07 Oct 2022 14:38:17 GMT + ms-cv: 5lLzcmUoi0ySBHxL31gXnw.2.0 request-context: appId= strict-transport-security: max-age=2592000 transfer-encoding: chunked x-cache: CONFIG_NOCACHE - x-processing-time: 25ms + x-processing-time: 22ms status: code: 400 message: Bad Request diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_create_user_and_token_with_custom_validity_under_minimum_allowed.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_create_user_and_token_with_custom_validity_under_minimum_allowed.yaml index 1eb57c3ce2ae..7e9e560d2762 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_create_user_and_token_with_custom_validity_under_minimum_allowed.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_create_user_and_token_with_custom_validity_under_minimum_allowed.yaml @@ -9,9 +9,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.3.0 Python/3.7.9 (Windows-10-10.0.22621-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.0 (macOS-12.6-x86_64-i386-64bit) x-ms-date: - - Fri, 16 Sep 2022 17:41:40 GMT + - Fri, 07 Oct 2022 14:38:18 GMT x-ms-return-client-request-id: - 'true' method: POST @@ -19,18 +19,19 @@ interactions: response: body: string: '{"error": {"code": "ValidationError", "message": "ExpiresInMinutes - value 59 is invalid.", "target": "ExpiresInMinutes"}}' + value 59 is invalid. Value must be within the [60, 1440] interval.", "target": + "ExpiresInMinutes"}}' headers: api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, 2021-11-01, 2022-06-01, 2022-10-01 content-type: application/json - date: Fri, 16 Sep 2022 17:41:39 GMT - ms-cv: AStyNrSkCkWq8ptrmjfFqw.0 + date: Fri, 07 Oct 2022 14:38:18 GMT + ms-cv: HvRyCNUHx0uYispT605Y7A.2.0 request-context: appId= strict-transport-security: max-age=2592000 transfer-encoding: chunked x-cache: CONFIG_NOCACHE - x-processing-time: 32ms + x-processing-time: 24ms status: code: 400 message: Bad Request diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_create_user_and_token_with_no_scopes.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_create_user_and_token_with_no_scopes.yaml index d60ee0b10134..538813b6a579 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_create_user_and_token_with_no_scopes.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_create_user_and_token_with_no_scopes.yaml @@ -1,17 +1,17 @@ interactions: - request: - body: '{"createTokenWithScopes": null}' + body: '{"createTokenWithScopes": null, "expiresInMinutes": null}' headers: Accept: - application/json Content-Length: - - '31' + - '57' Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.3.0 Python/3.7.9 (Windows-10-10.0.22621-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.0 (macOS-12.6-x86_64-i386-64bit) x-ms-date: - - Fri, 16 Sep 2022 17:41:40 GMT + - Fri, 07 Oct 2022 14:38:19 GMT x-ms-return-client-request-id: - 'true' method: POST @@ -24,12 +24,12 @@ interactions: 2021-10-31-preview, 2021-11-01, 2022-06-01, 2022-10-01 content-length: '101' content-type: application/json; charset=utf-8 - date: Fri, 16 Sep 2022 17:41:40 GMT - ms-cv: FnpQYfU2YUeqvk6H5AyO0A.0 + date: Fri, 07 Oct 2022 14:38:19 GMT + ms-cv: uELb/p9vYUuy4pmORSjqEw.2.0 request-context: appId= strict-transport-security: max-age=2592000 x-cache: CONFIG_NOCACHE - x-processing-time: 32ms + x-processing-time: 95ms status: code: 201 message: Created diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_create_user_from_managed_identity.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_create_user_from_managed_identity.yaml index ced3954c9a50..2b124241682d 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_create_user_from_managed_identity.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_create_user_from_managed_identity.yaml @@ -7,7 +7,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.3.0 Python/3.7.9 (Windows-10-10.0.22621-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.0 (macOS-12.6-x86_64-i386-64bit) method: POST uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: @@ -18,12 +18,12 @@ interactions: 2021-10-31-preview, 2021-11-01, 2022-06-01, 2022-10-01 content-length: '101' content-type: application/json; charset=utf-8 - date: Fri, 16 Sep 2022 17:41:40 GMT - ms-cv: dpVHvTmYkUOFt57G95/Cpg.0 + date: Fri, 07 Oct 2022 14:38:19 GMT + ms-cv: SWs5Xt+cBU2GETHmzeOC5A.2.0 request-context: appId= strict-transport-security: max-age=2592000 x-cache: CONFIG_NOCACHE - x-processing-time: 31ms + x-processing-time: 91ms status: code: 201 message: Created diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_delete_user.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_delete_user.yaml index 64e5bc10c93d..ae07e8cba79b 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_delete_user.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_delete_user.yaml @@ -7,9 +7,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.3.0 Python/3.7.9 (Windows-10-10.0.22621-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.0 (macOS-12.6-x86_64-i386-64bit) x-ms-date: - - Fri, 16 Sep 2022 17:41:41 GMT + - Fri, 07 Oct 2022 14:38:20 GMT x-ms-return-client-request-id: - 'true' method: POST @@ -22,12 +22,12 @@ interactions: 2021-10-31-preview, 2021-11-01, 2022-06-01, 2022-10-01 content-length: '101' content-type: application/json; charset=utf-8 - date: Fri, 16 Sep 2022 17:41:41 GMT - ms-cv: IM4qmtq09EOGo+uLSNOrPA.0 + date: Fri, 07 Oct 2022 14:38:20 GMT + ms-cv: LOotS3E5ykyaoa3g6JUadw.2.0 request-context: appId= strict-transport-security: max-age=2592000 x-cache: CONFIG_NOCACHE - x-processing-time: 34ms + x-processing-time: 96ms status: code: 201 message: Created @@ -38,9 +38,9 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-communication-identity/1.3.0 Python/3.7.9 (Windows-10-10.0.22621-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.0 (macOS-12.6-x86_64-i386-64bit) x-ms-date: - - Fri, 16 Sep 2022 17:41:41 GMT + - Fri, 07 Oct 2022 14:38:20 GMT x-ms-return-client-request-id: - 'true' method: DELETE @@ -51,12 +51,12 @@ interactions: headers: api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, 2021-11-01, 2022-06-01, 2022-10-01 - date: Fri, 16 Sep 2022 17:41:41 GMT - ms-cv: YVLq6hIeI0efbYvyQJG1Dg.0 + date: Fri, 07 Oct 2022 14:38:20 GMT + ms-cv: b0rRvOMBe0uqz43GrzyLbw.2.0 request-context: appId= strict-transport-security: max-age=2592000 x-cache: CONFIG_NOCACHE - x-processing-time: 208ms + x-processing-time: 274ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_delete_user_from_managed_identity.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_delete_user_from_managed_identity.yaml index e620418dabe7..69c1bfb1e6ef 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_delete_user_from_managed_identity.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_delete_user_from_managed_identity.yaml @@ -7,7 +7,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.3.0 Python/3.7.9 (Windows-10-10.0.22621-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.0 (macOS-12.6-x86_64-i386-64bit) method: POST uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: @@ -18,12 +18,12 @@ interactions: 2021-10-31-preview, 2021-11-01, 2022-06-01, 2022-10-01 content-length: '101' content-type: application/json; charset=utf-8 - date: Fri, 16 Sep 2022 17:41:41 GMT - ms-cv: 8NDShylRz0mL5d0eDvcTBA.0 + date: Fri, 07 Oct 2022 14:38:21 GMT + ms-cv: oLAVEUpJo0iuknri38lhtw.2.0 request-context: appId= strict-transport-security: max-age=2592000 x-cache: CONFIG_NOCACHE - x-processing-time: 276ms + x-processing-time: 91ms status: code: 201 message: Created @@ -34,7 +34,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-communication-identity/1.3.0 Python/3.7.9 (Windows-10-10.0.22621-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.0 (macOS-12.6-x86_64-i386-64bit) method: DELETE uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: @@ -43,12 +43,12 @@ interactions: headers: api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, 2021-11-01, 2022-06-01, 2022-10-01 - date: Fri, 16 Sep 2022 17:41:42 GMT - ms-cv: +kfT1bH3I0uu9Ln/3lmNdQ.0 + date: Fri, 07 Oct 2022 14:38:22 GMT + ms-cv: 89SWfbcTmUC5it5719cX3w.2.0 request-context: appId= strict-transport-security: max-age=2592000 x-cache: CONFIG_NOCACHE - x-processing-time: 248ms + x-processing-time: 209ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token.yaml index fe0a64b40f75..104e6b5a3b8c 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token.yaml @@ -7,9 +7,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.3.0 Python/3.7.9 (Windows-10-10.0.22621-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.0 (macOS-12.6-x86_64-i386-64bit) x-ms-date: - - Fri, 16 Sep 2022 17:41:43 GMT + - Fri, 07 Oct 2022 14:38:22 GMT x-ms-return-client-request-id: - 'true' method: POST @@ -22,47 +22,47 @@ interactions: 2021-10-31-preview, 2021-11-01, 2022-06-01, 2022-10-01 content-length: '101' content-type: application/json; charset=utf-8 - date: Fri, 16 Sep 2022 17:41:43 GMT - ms-cv: weDnPvBlJUa6egPCFj42mg.0 + date: Fri, 07 Oct 2022 14:38:23 GMT + ms-cv: mkVSJkgtd0+lcbdO+EJSdA.2.0 request-context: appId= strict-transport-security: max-age=2592000 x-cache: CONFIG_NOCACHE - x-processing-time: 36ms + x-processing-time: 95ms status: code: 201 message: Created url: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 - request: - body: '{"scopes": ["chat"]}' + body: '{"scopes": ["chat"], "expiresInMinutes": null}' headers: Accept: - application/json Content-Length: - - '20' + - '46' Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.3.0 Python/3.7.9 (Windows-10-10.0.22621-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.0 (macOS-12.6-x86_64-i386-64bit) x-ms-date: - - Fri, 16 Sep 2022 17:41:43 GMT + - Fri, 07 Oct 2022 14:38:23 GMT x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2022-10-01 response: body: - string: '{"token": "sanitized", "expiresOn": "2022-09-17T17:41:43.6397144+00:00"}' + string: '{"token": "sanitized", "expiresOn": "2022-10-08T14:38:23.9182152+00:00"}' headers: api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, 2021-11-01, 2022-06-01, 2022-10-01 content-length: '804' content-type: application/json; charset=utf-8 - date: Fri, 16 Sep 2022 17:41:43 GMT - ms-cv: gXtinFq6h0uM7nNV0xwwQw.0 + date: Fri, 07 Oct 2022 14:38:23 GMT + ms-cv: BfVGuer+Fk2sdQBtVXuOqw.2.0 request-context: appId= strict-transport-security: max-age=2592000 x-cache: CONFIG_NOCACHE - x-processing-time: 42ms + x-processing-time: 171ms status: code: 200 message: OK diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_for_teams_user_from_managed_identity.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_for_teams_user_from_managed_identity.yaml index 9bc34887567e..a7ae724d9fa9 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_for_teams_user_from_managed_identity.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_for_teams_user_from_managed_identity.yaml @@ -9,8 +9,8 @@ interactions: Connection: - keep-alive Cookie: - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr3fhKvxTVqBvFDiAvxHOBmH5M8JBCt9_us61isVvOgBp8r-B9TgHkWgz8_UUisVKZ1xiF4xmIruEBg0ze4PDtv9OD_9jYpnmUQ6XfGws7Nvh8LwWuNuOu6nUrQuyppeyiU2pyh1-H0NQOXGdXqvbpZrDV1SZKXsZjyCl_YI0igrUgAA; - fpc=Au92HHIPllxNuMRagl1h8AE; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd + - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevruOBzaHc7OVfywNaLv9-9p81-HSVW9rjOBB_zdtlqcmW4eItXKC4qL7Fqigqd2FwfXbfagiYSDzAwupcZ_-pS1i7xOwABy_c1gRNgTivw7toqqOENFql8hDbauU2CUVbiMKHs2d8TM3o55Ybwuj8FcDtkxWsoHYM3KjE0PsZwRQXDbJmH5oAITqagXfsE5ljEAJpCdO8QF-2QFjSrJsuxQRWHhO1ce_ZIIlUpC4jymLEgAA; + fpc=AvX0FLMg3m9IgXwFOBGj03c; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd User-Agent: - python-requests/2.28.1 method: GET @@ -29,7 +29,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 16 Sep 2022 17:41:43 GMT + - Fri, 07 Oct 2022 14:38:23 GMT expires: - '-1' p3p: @@ -37,7 +37,7 @@ interactions: pragma: - no-cache set-cookie: - - fpc=Au92HHIPllxNuMRagl1h8AE; expires=Sun, 16-Oct-2022 17:41:44 GMT; path=/; + - fpc=AvX0FLMg3m9IgXwFOBGj03c; expires=Sun, 06-Nov-2022 14:38:24 GMT; path=/; secure; HttpOnly; SameSite=None - x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly - stsservicecookie=estsfd; path=/; secure; samesite=none; httponly @@ -46,7 +46,7 @@ interactions: x-content-type-options: - nosniff x-ms-ests-server: - - 2.1.13622.7 - NEULR2 ProdSlices + - 2.1.13777.6 - WEULR2 ProdSlices x-xss-protection: - '0' status: @@ -58,26 +58,26 @@ interactions: Accept: - application/json Content-Length: - - '2199' + - '2135' Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.3.0 Python/3.7.9 (Windows-10-10.0.22621-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.0 (macOS-12.6-x86_64-i386-64bit) method: POST uri: https://sanitized.communication.azure.com/teamsUser/:exchangeAccessToken?api-version=2022-10-01 response: body: - string: '{"token": "sanitized", "expiresOn": "2022-09-16T19:04:55.2347562+00:00"}' + string: '{"token": "sanitized", "expiresOn": "2022-10-07T15:55:43.2480915+00:00"}' headers: api-supported-versions: 2021-10-31-preview, 2022-06-01, 2022-10-01 content-length: '824' content-type: application/json; charset=utf-8 - date: Fri, 16 Sep 2022 17:41:45 GMT - ms-cv: GxbY2znNW02c0zaj9BsxRA.0 + date: Fri, 07 Oct 2022 14:38:24 GMT + ms-cv: Yv9fXL/7+0SilWZ0Ymde8A.0 request-context: appId= strict-transport-security: max-age=2592000 x-cache: CONFIG_NOCACHE - x-processing-time: 500ms + x-processing-time: 217ms status: code: 200 message: OK diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_for_teams_user_with_empty_client_id.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_for_teams_user_with_empty_client_id.yaml index 0f00e66040ec..2eefaacc9905 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_for_teams_user_with_empty_client_id.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_for_teams_user_with_empty_client_id.yaml @@ -9,8 +9,8 @@ interactions: Connection: - keep-alive Cookie: - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevro4CcF6uKukCr7G3OdRQTH9jrAyCWKOCYOv1sg5DAtZs-BOVXEBY6axvNfyTg0hYf-WXgdprC2ql-Ay5afy1UgdFB6kd9Gna9bDNmU5Rwyzt8kPjcZ7SB0jA3tOP4lr16A881GSAMH5xbtTD1-mL0UQYaRAA5cH6DhH4ygIGXIbMgAA; - fpc=AjUMrHOZyppJnkm5GdEZydA; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd + - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevrxrul6NBzEIXpjgh2vJNaQQ-l4t7b1HGgJH9xk4fb_qzYCQScff3-8tqiBneCmkndIJfSOWYaBKmg4s5O7PkEnEfq0_1bmLWe7Nzf6ZU5ejgGD70KsUHwifMmMcP8kewQtYqNU3Pq7wmY9MCelzP17WtA8J7CRchO55y9lt7xqJMOP7veno5m9Dr1n1p6euxu9gfpFYBtw61B9eEF12kDE_Z4cmX_Huy3ylxHJYqGlAMgAA; + fpc=An6qAqABMbBIink_ZdqaxNE; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd User-Agent: - python-requests/2.28.1 method: GET @@ -29,7 +29,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 16 Sep 2022 17:41:45 GMT + - Fri, 07 Oct 2022 14:38:24 GMT expires: - '-1' p3p: @@ -37,7 +37,7 @@ interactions: pragma: - no-cache set-cookie: - - fpc=AjUMrHOZyppJnkm5GdEZydA; expires=Sun, 16-Oct-2022 17:41:45 GMT; path=/; + - fpc=An6qAqABMbBIink_ZdqaxNE; expires=Sun, 06-Nov-2022 14:38:25 GMT; path=/; secure; HttpOnly; SameSite=None - x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly - stsservicecookie=estsfd; path=/; secure; samesite=none; httponly @@ -46,7 +46,7 @@ interactions: x-content-type-options: - nosniff x-ms-ests-server: - - 2.1.13622.7 - NEULR1 ProdSlices + - 2.1.13777.6 - NEULR1 ProdSlices x-xss-protection: - '0' status: @@ -58,13 +58,13 @@ interactions: Accept: - application/json Content-Length: - - '2163' + - '2120' Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.3.0 Python/3.7.9 (Windows-10-10.0.22621-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.0 (macOS-12.6-x86_64-i386-64bit) x-ms-date: - - Fri, 16 Sep 2022 17:41:45 GMT + - Fri, 07 Oct 2022 14:38:25 GMT x-ms-return-client-request-id: - 'true' method: POST @@ -75,13 +75,13 @@ interactions: field is required.", "target": "AppId"}}' headers: content-type: application/json - date: Fri, 16 Sep 2022 17:41:45 GMT - ms-cv: 4CDilMG4M0STFf5sZ2Gyeg.0 + date: Fri, 07 Oct 2022 14:38:25 GMT + ms-cv: NaHP7E1qUUO0/2FThOBbjQ.0 request-context: appId= strict-transport-security: max-age=2592000 transfer-encoding: chunked x-cache: CONFIG_NOCACHE - x-processing-time: 37ms + x-processing-time: 114ms status: code: 400 message: Bad Request diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_for_teams_user_with_empty_token.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_for_teams_user_with_empty_token.yaml index 44c6eaa93e89..1a68b7c6414a 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_for_teams_user_with_empty_token.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_for_teams_user_with_empty_token.yaml @@ -9,9 +9,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.3.0 Python/3.7.9 (Windows-10-10.0.22621-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.0 (macOS-12.6-x86_64-i386-64bit) x-ms-date: - - Fri, 16 Sep 2022 17:41:46 GMT + - Fri, 07 Oct 2022 14:38:25 GMT x-ms-return-client-request-id: - 'true' method: POST @@ -22,13 +22,13 @@ interactions: token is not valid."}}' headers: content-type: application/json - date: Fri, 16 Sep 2022 17:41:46 GMT - ms-cv: hl/IXcgYn0yly4kvUwb0Mg.0 + date: Fri, 07 Oct 2022 14:38:26 GMT + ms-cv: goSGceo81ke1/OLd3LimVw.0 request-context: appId= strict-transport-security: max-age=2592000 transfer-encoding: chunked x-cache: CONFIG_NOCACHE - x-processing-time: 27ms + x-processing-time: 110ms status: code: 401 message: Unauthorized diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_for_teams_user_with_empty_user_object_id.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_for_teams_user_with_empty_user_object_id.yaml index d5e3b1622a70..f98cf8f3284b 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_for_teams_user_with_empty_user_object_id.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_for_teams_user_with_empty_user_object_id.yaml @@ -9,8 +9,8 @@ interactions: Connection: - keep-alive Cookie: - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr3799T4YpyADSxwt4GkFhUQaYyGyPKT8G2q2a2aEp9ztPNogPKA0Vvsm9-N_qByw390VxeZda-p35jBzwS-LagUyV8zq5tkWG2C0CDkCa7a9uBmk669RjtzHznX-9lkRpNbIftuxMQ71a9w1-IxpUojYA0YjE4M7kV8WkbcAIG-4gAA; - fpc=AhY5rBpqfvZFrKTEjzMp1No; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd + - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrR7f_Fxoy0U7kBbhijuhERu8hy_q9RUX4oO3HIdbtdqZhffdl7iLAHIBDUXUYIx9V1Z54rnMPgbiriVXpza8cxnoiTGyfCsYMclDy4QFRrRvcKwaHwPFjmpBirzaayXaII565SvbartksLaEYfzaac4t2oBOkxZAYsbOxkCQEgvW04pKf7cFkAxh-NHUKZNb20jr1CLsWfTw6TsuyDZkrMLxowPLwr3zsP2_6b6xkMyEgAA; + fpc=Av7hZj7YgWpAsHS3skxaK_0; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd User-Agent: - python-requests/2.28.1 method: GET @@ -29,7 +29,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 16 Sep 2022 17:41:45 GMT + - Fri, 07 Oct 2022 14:38:25 GMT expires: - '-1' p3p: @@ -37,7 +37,7 @@ interactions: pragma: - no-cache set-cookie: - - fpc=AhY5rBpqfvZFrKTEjzMp1No; expires=Sun, 16-Oct-2022 17:41:46 GMT; path=/; + - fpc=Av7hZj7YgWpAsHS3skxaK_0; expires=Sun, 06-Nov-2022 14:38:26 GMT; path=/; secure; HttpOnly; SameSite=None - x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly - stsservicecookie=estsfd; path=/; secure; samesite=none; httponly @@ -46,7 +46,7 @@ interactions: x-content-type-options: - nosniff x-ms-ests-server: - - 2.1.13622.7 - NEULR2 ProdSlices + - 2.1.13777.6 - WEULR2 ProdSlices x-xss-protection: - '0' status: @@ -58,13 +58,13 @@ interactions: Accept: - application/json Content-Length: - - '2163' + - '2120' Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.3.0 Python/3.7.9 (Windows-10-10.0.22621-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.0 (macOS-12.6-x86_64-i386-64bit) x-ms-date: - - Fri, 16 Sep 2022 17:41:46 GMT + - Fri, 07 Oct 2022 14:38:26 GMT x-ms-return-client-request-id: - 'true' method: POST @@ -75,13 +75,13 @@ interactions: field is required.", "target": "UserId"}}' headers: content-type: application/json - date: Fri, 16 Sep 2022 17:41:46 GMT - ms-cv: zAjYSmi/Q0mV78xwOxl/CQ.0 + date: Fri, 07 Oct 2022 14:38:26 GMT + ms-cv: iStpc47RUEik/nWqlvCRSw.0 request-context: appId= strict-transport-security: max-age=2592000 transfer-encoding: chunked x-cache: CONFIG_NOCACHE - x-processing-time: 33ms + x-processing-time: 111ms status: code: 400 message: Bad Request diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_for_teams_user_with_expired_token.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_for_teams_user_with_expired_token.yaml index db08c3ac50ed..af5f09db7582 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_for_teams_user_with_expired_token.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_for_teams_user_with_expired_token.yaml @@ -9,8 +9,8 @@ interactions: Connection: - keep-alive Cookie: - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevrg7ETCs5iQz84Auw3WVdr1r4fuF93kfoe1BgEE01M2sGlkcavTF6HQhNfXE5Me80ksSvkw-atR-cX6ybL3fi0gYT5PBU6d0m6lG9R9gNfXeY3hOnZHXilfAsQqJKg6yqzbHYEcpPlYrg10m09SL9xG-ace58nOWoFmGBaLGfnaDwgAA; - fpc=Ass0eC0y7h1Ev-3H4CnSi6g; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd + - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr62JT4lbCIOz5YmOBrVIDihRextVvqfSbS_TXd392oRs5Z1sFn-yVJq9Zb6vmORqQs4N5ug-ZRRJN-T0ZQdUQV5S06mqX_r-yFIFYQUy6TM4F4xdqAiWChAGne7W492iw4KnwUopZbXaTOntfRuHA9e2evwLxWQSwGZm0A9R_xaDV5RlXRnJW4Vu2oMOfRjlv24XMoFN4KirrMc3zin0kAsVnRWNlmbKiZq9oOgG7dbogAA; + fpc=AixkSGSWkP9Co736X9zsAIM; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd User-Agent: - python-requests/2.28.1 method: GET @@ -29,7 +29,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 16 Sep 2022 17:41:46 GMT + - Fri, 07 Oct 2022 14:38:26 GMT expires: - '-1' p3p: @@ -37,7 +37,7 @@ interactions: pragma: - no-cache set-cookie: - - fpc=Ass0eC0y7h1Ev-3H4CnSi6g; expires=Sun, 16-Oct-2022 17:41:47 GMT; path=/; + - fpc=AixkSGSWkP9Co736X9zsAIM; expires=Sun, 06-Nov-2022 14:38:27 GMT; path=/; secure; HttpOnly; SameSite=None - x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly - stsservicecookie=estsfd; path=/; secure; samesite=none; httponly @@ -46,7 +46,7 @@ interactions: x-content-type-options: - nosniff x-ms-ests-server: - - 2.1.13622.7 - NEULR2 ProdSlices + - 2.1.13777.6 - NEULR2 ProdSlices x-xss-protection: - '0' status: @@ -62,9 +62,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.3.0 Python/3.7.9 (Windows-10-10.0.22621-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.0 (macOS-12.6-x86_64-i386-64bit) x-ms-date: - - Fri, 16 Sep 2022 17:41:47 GMT + - Fri, 07 Oct 2022 14:38:27 GMT x-ms-return-client-request-id: - 'true' method: POST @@ -75,13 +75,13 @@ interactions: token is not valid."}}' headers: content-type: application/json - date: Fri, 16 Sep 2022 17:41:47 GMT - ms-cv: SZ+1xqblTkyUmAHuT0NaxQ.0 + date: Fri, 07 Oct 2022 14:38:27 GMT + ms-cv: RbE80I7ZLEmmmgZAVpA5ug.0 request-context: appId= strict-transport-security: max-age=2592000 transfer-encoding: chunked x-cache: CONFIG_NOCACHE - x-processing-time: 44ms + x-processing-time: 114ms status: code: 401 message: Unauthorized diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_for_teams_user_with_invalid_client_id.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_for_teams_user_with_invalid_client_id.yaml index 45ec822ae845..40b87b52e236 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_for_teams_user_with_invalid_client_id.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_for_teams_user_with_invalid_client_id.yaml @@ -9,8 +9,8 @@ interactions: Connection: - keep-alive Cookie: - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrkOnRyoSSrSlKWOVchYm2LKFRPkGomSmgDsd11U88OE7AfhmoZFNf148ClF9sfEkSZtsHK4zjKMOF7MDzye9ZjP7QgRdfHLUZSDs6gkTAoRwvGuoGuNPPwpjrBUXiJ7cqdh3NSElh5XZQS_WZWXW9r94VC1u2Lmla-m4OjS-mGecgAA; - fpc=AqOF6XI5N71NhbdG1tQ_3HE; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd + - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrJ-4xzezBQytAEEKzg69K6D-ekyo5XLuqvgZ_GPebWN5EachaBtgcTsJ1vzLq733H45HmBL427yVfQ7KuJ0QNrYqM2N5xFwrJPUfrD459SWT1oNho7c19SxiDCyyjUVU9xyfvFBd8M97rhP3G2zrmcOnWI02W3_j2YjF2UdIyK3YT4pxgjjkLFbjrNgwmOzsA-ZNS9j5y6K-U1ahoux9LrmPL5SAdNIuf-xssuzLKp_kgAA; + fpc=Av-q-GKco-BKtCJFdw0e74M; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd User-Agent: - python-requests/2.28.1 method: GET @@ -29,7 +29,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 16 Sep 2022 17:41:47 GMT + - Fri, 07 Oct 2022 14:38:27 GMT expires: - '-1' p3p: @@ -37,7 +37,7 @@ interactions: pragma: - no-cache set-cookie: - - fpc=AqOF6XI5N71NhbdG1tQ_3HE; expires=Sun, 16-Oct-2022 17:41:48 GMT; path=/; + - fpc=Av-q-GKco-BKtCJFdw0e74M; expires=Sun, 06-Nov-2022 14:38:28 GMT; path=/; secure; HttpOnly; SameSite=None - x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly - stsservicecookie=estsfd; path=/; secure; samesite=none; httponly @@ -46,7 +46,7 @@ interactions: x-content-type-options: - nosniff x-ms-ests-server: - - 2.1.13622.7 - NEULR2 ProdSlices + - 2.1.13777.6 - NEULR2 ProdSlices x-xss-protection: - '0' status: @@ -58,13 +58,13 @@ interactions: Accept: - application/json Content-Length: - - '2170' + - '2127' Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.3.0 Python/3.7.9 (Windows-10-10.0.22621-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.0 (macOS-12.6-x86_64-i386-64bit) x-ms-date: - - Fri, 16 Sep 2022 17:41:48 GMT + - Fri, 07 Oct 2022 14:38:28 GMT x-ms-return-client-request-id: - 'true' method: POST @@ -76,13 +76,13 @@ interactions: headers: api-supported-versions: 2021-10-31-preview, 2022-06-01, 2022-10-01 content-type: application/json - date: Fri, 16 Sep 2022 17:41:47 GMT - ms-cv: h9GA0AZSsEC8ptAnVFcr1w.0 + date: Fri, 07 Oct 2022 14:38:27 GMT + ms-cv: 53JYOouGy0qc5WBbIKTuZA.0 request-context: appId= strict-transport-security: max-age=2592000 transfer-encoding: chunked x-cache: CONFIG_NOCACHE - x-processing-time: 37ms + x-processing-time: 114ms status: code: 400 message: Bad Request diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_for_teams_user_with_invalid_token.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_for_teams_user_with_invalid_token.yaml index a0dc4bcf841e..0f4160bf150a 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_for_teams_user_with_invalid_token.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_for_teams_user_with_invalid_token.yaml @@ -9,9 +9,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.3.0 Python/3.7.9 (Windows-10-10.0.22621-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.0 (macOS-12.6-x86_64-i386-64bit) x-ms-date: - - Fri, 16 Sep 2022 17:41:48 GMT + - Fri, 07 Oct 2022 14:38:28 GMT x-ms-return-client-request-id: - 'true' method: POST @@ -22,13 +22,13 @@ interactions: token is not valid."}}' headers: content-type: application/json - date: Fri, 16 Sep 2022 17:41:48 GMT - ms-cv: oWLg5xBoVkeqLcG/KwgofA.0 + date: Fri, 07 Oct 2022 14:38:28 GMT + ms-cv: z9763aP0N0qEdK8EGfXVGQ.0 request-context: appId= strict-transport-security: max-age=2592000 transfer-encoding: chunked x-cache: CONFIG_NOCACHE - x-processing-time: 25ms + x-processing-time: 108ms status: code: 401 message: Unauthorized diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_for_teams_user_with_invalid_user_object_id.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_for_teams_user_with_invalid_user_object_id.yaml index 79efbc23a614..650e4fda2efa 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_for_teams_user_with_invalid_user_object_id.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_for_teams_user_with_invalid_user_object_id.yaml @@ -9,8 +9,8 @@ interactions: Connection: - keep-alive Cookie: - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrtG_mQ4PHWvah-x2-_wbYSXUa21joo8qoUdAbA6OWP0Ryl6j8NI2wr8ZGNGRfbIKF_tpm8QFmuv9TXSrnbRv2wE_n1gZXXfEs1N6v8I3rEb-bM15gVxDcbD17RxTNCUtnC9BIC4PaeyE0M3p66r0bs3SOk2HQToyW5slAVnXvincgAA; - fpc=AmQBdwKO7ptJigPEia95W70; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd + - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrAda_R1SZ0yB1iOsr_Ch-A3oM-h5_FN31cuIUeMLwlnKKPujtqCUFXnAA5sv-W3DOy6yqqcFtJnsglhsSMbrZb5Kls1Sg40EZri3ihts_2KuL3SgjE8tf0lEHRYatcZkPzp0t8cE_-PD_bIt0hrkjXEieWclkERueMCcD41BCMgEgj1Ej0nTvJ-dO7G2JtMtX4mSEhs_mqPPTEWAC3PZ8F2encTQ5VQkFys6GxRLzGqQgAA; + fpc=AsFW8ogI3spClREWiv5H9bE; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd User-Agent: - python-requests/2.28.1 method: GET @@ -29,7 +29,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 16 Sep 2022 17:41:48 GMT + - Fri, 07 Oct 2022 14:38:29 GMT expires: - '-1' p3p: @@ -37,7 +37,7 @@ interactions: pragma: - no-cache set-cookie: - - fpc=AmQBdwKO7ptJigPEia95W70; expires=Sun, 16-Oct-2022 17:41:49 GMT; path=/; + - fpc=AsFW8ogI3spClREWiv5H9bE; expires=Sun, 06-Nov-2022 14:38:29 GMT; path=/; secure; HttpOnly; SameSite=None - x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly - stsservicecookie=estsfd; path=/; secure; samesite=none; httponly @@ -46,7 +46,7 @@ interactions: x-content-type-options: - nosniff x-ms-ests-server: - - 2.1.13622.7 - NEULR2 ProdSlices + - 2.1.13777.6 - NEULR2 ProdSlices x-xss-protection: - '0' status: @@ -58,13 +58,13 @@ interactions: Accept: - application/json Content-Length: - - '2170' + - '2127' Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.3.0 Python/3.7.9 (Windows-10-10.0.22621-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.0 (macOS-12.6-x86_64-i386-64bit) x-ms-date: - - Fri, 16 Sep 2022 17:41:49 GMT + - Fri, 07 Oct 2022 14:38:29 GMT x-ms-return-client-request-id: - 'true' method: POST @@ -76,13 +76,13 @@ interactions: headers: api-supported-versions: 2021-10-31-preview, 2022-06-01, 2022-10-01 content-type: application/json - date: Fri, 16 Sep 2022 17:41:49 GMT - ms-cv: XRtZ82QsO0SSdG76oI7OUQ.0 + date: Fri, 07 Oct 2022 14:38:29 GMT + ms-cv: fr/s6VOqxkWGL9eeGeO9Cg.0 request-context: appId= strict-transport-security: max-age=2592000 transfer-encoding: chunked x-cache: CONFIG_NOCACHE - x-processing-time: 35ms + x-processing-time: 115ms status: code: 400 message: Bad Request diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_for_teams_user_with_valid_params.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_for_teams_user_with_valid_params.yaml index 2e6d12e65ff3..8144ece62f65 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_for_teams_user_with_valid_params.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_for_teams_user_with_valid_params.yaml @@ -9,8 +9,8 @@ interactions: Connection: - keep-alive Cookie: - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrA7eetbabsIqXJmQ4fXDyHBP0Cn6ZO8HJ7aaUh1oEViUqnKQJlJj_ZhL1IVP-JtuWtRaYsZnWS_9qeO8o9G3P1vE4fsKrDEBLGECcACCGglUFjUciBQSHz3QkGEJE6CZ6cBVli4QFQvs1z00FylHY-Fkt8yuwrALv-dBl47WnPCcgAA; - fpc=AphLEQtOGcNBi7cqMl2MZ5U; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd + - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrUotedDms764vdgVvYs6H0CRBCwWGnEMQZNN4vEjnVuh3PHE4mtJ82M2JlZZrsBnAPCsR2CE1pRWBeT3dYdkBPsSc9R6W3-1iD93BmukaRPVjVuEz8MlJAdJExh6qbKAJ79fOWGS9ZVmo2R8Z169M87dzfLdDW_DR6LJhY0UpBnsIBnNx0uhwIsp-wZ_pKOoGg-yj3kbZKJi5yAzv1feHBOI7-ZjZsvPaZd3TWY7U5eogAA; + fpc=AsEuOwYS0gVHuJPF_FlFOQ4; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd User-Agent: - python-requests/2.28.1 method: GET @@ -29,7 +29,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 16 Sep 2022 17:41:49 GMT + - Fri, 07 Oct 2022 14:38:29 GMT expires: - '-1' p3p: @@ -37,7 +37,7 @@ interactions: pragma: - no-cache set-cookie: - - fpc=AphLEQtOGcNBi7cqMl2MZ5U; expires=Sun, 16-Oct-2022 17:41:50 GMT; path=/; + - fpc=AsEuOwYS0gVHuJPF_FlFOQ4; expires=Sun, 06-Nov-2022 14:38:29 GMT; path=/; secure; HttpOnly; SameSite=None - x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly - stsservicecookie=estsfd; path=/; secure; samesite=none; httponly @@ -46,7 +46,7 @@ interactions: x-content-type-options: - nosniff x-ms-ests-server: - - 2.1.13622.7 - NEULR1 ProdSlices + - 2.1.13777.6 - WEULR1 ProdSlices x-xss-protection: - '0' status: @@ -58,30 +58,30 @@ interactions: Accept: - application/json Content-Length: - - '2199' + - '2156' Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.3.0 Python/3.7.9 (Windows-10-10.0.22621-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.0 (macOS-12.6-x86_64-i386-64bit) x-ms-date: - - Fri, 16 Sep 2022 17:41:50 GMT + - Fri, 07 Oct 2022 14:38:29 GMT x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.communication.azure.com/teamsUser/:exchangeAccessToken?api-version=2022-10-01 response: body: - string: '{"token": "sanitized", "expiresOn": "2022-09-16T18:59:30.8120187+00:00"}' + string: '{"token": "sanitized", "expiresOn": "2022-10-07T15:52:46.5956456+00:00"}' headers: api-supported-versions: 2021-10-31-preview, 2022-06-01, 2022-10-01 content-length: '824' content-type: application/json; charset=utf-8 - date: Fri, 16 Sep 2022 17:41:50 GMT - ms-cv: zNG2LfsEpU6insKOKj2fNw.0 + date: Fri, 07 Oct 2022 14:38:30 GMT + ms-cv: cx0VJlGHAE2e4PEkH+R4mA.0 request-context: appId= strict-transport-security: max-age=2592000 x-cache: CONFIG_NOCACHE - x-processing-time: 419ms + x-processing-time: 308ms status: code: 200 message: OK diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_for_teams_user_with_wrong_client_id.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_for_teams_user_with_wrong_client_id.yaml index 9d9f18d15d57..88a39358c268 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_for_teams_user_with_wrong_client_id.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_for_teams_user_with_wrong_client_id.yaml @@ -9,8 +9,8 @@ interactions: Connection: - keep-alive Cookie: - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrOfJqMSvtKZ1MwOpE8qEkkSqL5Gu5UWHOSqnlxVX52B6o-_K5_sotV5XBNZCJsOGG7-3wefWjEacjRViOr2PnL9-Op4pyYknDAB3tZobv3FMB-ES4JUlO6-4amzFvO3ViJ2PtjOMN665OL-Pd0GFytXOsqaHCCzGMma6r3mYDvQ0gAA; - fpc=AqYBgY5UD2JJlib6whLsyOM; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd + - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr-XUWlAk4s4Wxd9YBpEFBBHmv_q2amtBJctlpjNNIik2hXUrB0xh7Z9uaceQwUl9kdCVLMf3O4cB3XOTlx4c_e4zRkLVhynuYf-7DTS9BeCL91Amd4YJX5P-UoUAv7BbSB5l6S_f8UrxqNKpp79R1vbSfnsNENZOxLA-9xgOq7tm4Sks8VpzDhnGIqnP0tls4IDjYcJl1YKrmecHnZEa8dra2VCBKa_9yHgAlO5S_k50gAA; + fpc=Al25BgtnJKNHuajJjES_tTo; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd User-Agent: - python-requests/2.28.1 method: GET @@ -29,7 +29,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 16 Sep 2022 17:41:50 GMT + - Fri, 07 Oct 2022 14:38:30 GMT expires: - '-1' p3p: @@ -37,7 +37,7 @@ interactions: pragma: - no-cache set-cookie: - - fpc=AqYBgY5UD2JJlib6whLsyOM; expires=Sun, 16-Oct-2022 17:41:51 GMT; path=/; + - fpc=Al25BgtnJKNHuajJjES_tTo; expires=Sun, 06-Nov-2022 14:38:30 GMT; path=/; secure; HttpOnly; SameSite=None - x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly - stsservicecookie=estsfd; path=/; secure; samesite=none; httponly @@ -46,7 +46,7 @@ interactions: x-content-type-options: - nosniff x-ms-ests-server: - - 2.1.13622.7 - NEULR1 ProdSlices + - 2.1.13777.6 - WEULR2 ProdSlices x-xss-protection: - '0' status: @@ -58,13 +58,13 @@ interactions: Accept: - application/json Content-Length: - - '2199' + - '2156' Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.3.0 Python/3.7.9 (Windows-10-10.0.22621-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.0 (macOS-12.6-x86_64-i386-64bit) x-ms-date: - - Fri, 16 Sep 2022 17:41:51 GMT + - Fri, 07 Oct 2022 14:38:30 GMT x-ms-return-client-request-id: - 'true' method: POST @@ -76,13 +76,13 @@ interactions: headers: api-supported-versions: 2021-10-31-preview, 2022-06-01, 2022-10-01 content-type: application/json - date: Fri, 16 Sep 2022 17:41:51 GMT - ms-cv: NrkFhnXK8ki/yPsqpmJzJg.0 + date: Fri, 07 Oct 2022 14:38:31 GMT + ms-cv: cKNq0aAIg0G6o8oAt+mwyg.0 request-context: appId= strict-transport-security: max-age=2592000 transfer-encoding: chunked x-cache: CONFIG_NOCACHE - x-processing-time: 34ms + x-processing-time: 113ms status: code: 400 message: Bad Request diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_for_teams_user_with_wrong_user_object_id.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_for_teams_user_with_wrong_user_object_id.yaml index b78983ffa0ac..779eec9949e7 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_for_teams_user_with_wrong_user_object_id.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_for_teams_user_with_wrong_user_object_id.yaml @@ -9,8 +9,8 @@ interactions: Connection: - keep-alive Cookie: - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevrj8AkPThcIxOaE2H16BLivYKTj58qQrVAIMC-TgPchqUV8vXm4KWI6INZmhgpEj482vMTg-6zFWfZjduyR7byRLdKemuEoAqb4EroORBV0xzMjJBfxR7s2VqgQXnvVChBB_h3xcrNj8ThZWbHfkir3vGjI_qH5QrCQJimibDB1vsgAA; - fpc=AhXgITHWkl5BrORMWMH_CgA; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd + - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrYdr3fgSzW7FQwZTPtosNr4gSfgxkYAhgflB90Co5qFuNvQwVgigExuf2ZIaMOsLXmNBFe9wI853uPnsZXZugNCSTwj3KB3er15IEHkVDpKsnquIaHZdVE2RAlQ8-nSrayxiFTUeZLR_3uUdjNiptxv6R-BKt6Dgny8Wvc9CmpNFIE8FfPeYuLS5pfF7lFBZAnMoj4qhc9NLuDkmlWV5ty6XJ_8KuyYKpnhwr24u60e0gAA; + fpc=At7ltwimI8dDrLa8xXHkd28; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd User-Agent: - python-requests/2.28.1 method: GET @@ -29,7 +29,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 16 Sep 2022 17:41:51 GMT + - Fri, 07 Oct 2022 14:38:31 GMT expires: - '-1' p3p: @@ -37,7 +37,7 @@ interactions: pragma: - no-cache set-cookie: - - fpc=AhXgITHWkl5BrORMWMH_CgA; expires=Sun, 16-Oct-2022 17:41:51 GMT; path=/; + - fpc=At7ltwimI8dDrLa8xXHkd28; expires=Sun, 06-Nov-2022 14:38:31 GMT; path=/; secure; HttpOnly; SameSite=None - x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly - stsservicecookie=estsfd; path=/; secure; samesite=none; httponly @@ -46,7 +46,7 @@ interactions: x-content-type-options: - nosniff x-ms-ests-server: - - 2.1.13622.7 - NEULR1 ProdSlices + - 2.1.13777.6 - NEULR1 ProdSlices x-xss-protection: - '0' status: @@ -58,13 +58,13 @@ interactions: Accept: - application/json Content-Length: - - '2199' + - '2156' Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.3.0 Python/3.7.9 (Windows-10-10.0.22621-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.0 (macOS-12.6-x86_64-i386-64bit) x-ms-date: - - Fri, 16 Sep 2022 17:41:52 GMT + - Fri, 07 Oct 2022 14:38:31 GMT x-ms-return-client-request-id: - 'true' method: POST @@ -76,13 +76,13 @@ interactions: headers: api-supported-versions: 2021-10-31-preview, 2022-06-01, 2022-10-01 content-type: application/json - date: Fri, 16 Sep 2022 17:41:51 GMT - ms-cv: Ah4c8Xsb7U6w7xPxS7PYCg.0 + date: Fri, 07 Oct 2022 14:38:32 GMT + ms-cv: FvCq3bT9jEKm8HtWhEAnzQ.0 request-context: appId= strict-transport-security: max-age=2592000 transfer-encoding: chunked x-cache: CONFIG_NOCACHE - x-processing-time: 33ms + x-processing-time: 114ms status: code: 400 message: Bad Request diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_from_managed_identity.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_from_managed_identity.yaml index 8ed5131d8b3c..bc0c1c74cdf4 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_from_managed_identity.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_from_managed_identity.yaml @@ -7,7 +7,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.3.0 Python/3.7.9 (Windows-10-10.0.22621-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.0 (macOS-12.6-x86_64-i386-64bit) method: POST uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: @@ -18,43 +18,43 @@ interactions: 2021-10-31-preview, 2021-11-01, 2022-06-01, 2022-10-01 content-length: '101' content-type: application/json; charset=utf-8 - date: Fri, 16 Sep 2022 17:41:52 GMT - ms-cv: 6XrpJMctlkmEVMKW67Pc5w.0 + date: Fri, 07 Oct 2022 14:38:33 GMT + ms-cv: zoDoMWS070yHt3WpRcMZkA.2.0 request-context: appId= strict-transport-security: max-age=2592000 x-cache: CONFIG_NOCACHE - x-processing-time: 39ms + x-processing-time: 201ms status: code: 201 message: Created url: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 - request: - body: '{"scopes": ["chat"]}' + body: '{"scopes": ["chat"], "expiresInMinutes": null}' headers: Accept: - application/json Content-Length: - - '20' + - '46' Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.3.0 Python/3.7.9 (Windows-10-10.0.22621-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.0 (macOS-12.6-x86_64-i386-64bit) method: POST uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2022-10-01 response: body: - string: '{"token": "sanitized", "expiresOn": "2022-09-17T17:41:53.1716352+00:00"}' + string: '{"token": "sanitized", "expiresOn": "2022-10-08T14:38:34.4186707+00:00"}' headers: api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, 2021-11-01, 2022-06-01, 2022-10-01 content-length: '804' content-type: application/json; charset=utf-8 - date: Fri, 16 Sep 2022 17:41:52 GMT - ms-cv: P8/DQajdzE69yqd0NVWbJw.0 + date: Fri, 07 Oct 2022 14:38:34 GMT + ms-cv: Mfu5PqN7BkWSghUTbC0+NQ.2.0 request-context: appId= strict-transport-security: max-age=2592000 x-cache: CONFIG_NOCACHE - x-processing-time: 71ms + x-processing-time: 270ms status: code: 200 message: OK diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_with_custom_maximum_validity.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_with_custom_maximum_validity.yaml index 0baa6f1e15fc..e56f42fccdc4 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_with_custom_maximum_validity.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_with_custom_maximum_validity.yaml @@ -7,9 +7,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.3.0 Python/3.7.9 (Windows-10-10.0.22621-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.0 (macOS-12.6-x86_64-i386-64bit) x-ms-date: - - Fri, 16 Sep 2022 17:41:53 GMT + - Fri, 07 Oct 2022 14:38:34 GMT x-ms-return-client-request-id: - 'true' method: POST @@ -22,12 +22,12 @@ interactions: 2021-10-31-preview, 2021-11-01, 2022-06-01, 2022-10-01 content-length: '101' content-type: application/json; charset=utf-8 - date: Fri, 16 Sep 2022 17:41:53 GMT - ms-cv: 131ExC2u8EG/GTCT0fICtA.0 + date: Fri, 07 Oct 2022 14:38:34 GMT + ms-cv: i7kwCZA14E6mC7zEK/4Kwg.2.0 request-context: appId= strict-transport-security: max-age=2592000 x-cache: CONFIG_NOCACHE - x-processing-time: 40ms + x-processing-time: 98ms status: code: 201 message: Created @@ -42,27 +42,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.3.0 Python/3.7.9 (Windows-10-10.0.22621-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.0 (macOS-12.6-x86_64-i386-64bit) x-ms-date: - - Fri, 16 Sep 2022 17:41:53 GMT + - Fri, 07 Oct 2022 14:38:34 GMT x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2022-10-01 response: body: - string: '{"token": "sanitized", "expiresOn": "2022-09-17T17:41:53.7309482+00:00"}' + string: '{"token": "sanitized", "expiresOn": "2022-10-08T14:38:35.2764409+00:00"}' headers: api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, 2021-11-01, 2022-06-01, 2022-10-01 content-length: '804' content-type: application/json; charset=utf-8 - date: Fri, 16 Sep 2022 17:41:53 GMT - ms-cv: d3uVcg/aZkiJgddD9CW4mg.0 + date: Fri, 07 Oct 2022 14:38:34 GMT + ms-cv: oDWuwUd+w0iU75G4I/1nOw.2.0 request-context: appId= strict-transport-security: max-age=2592000 x-cache: CONFIG_NOCACHE - x-processing-time: 102ms + x-processing-time: 174ms status: code: 200 message: OK diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_with_custom_minimum_validity.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_with_custom_minimum_validity.yaml index 7b7e242f0e56..65a9ffef37b5 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_with_custom_minimum_validity.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_with_custom_minimum_validity.yaml @@ -7,9 +7,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.3.0 Python/3.7.9 (Windows-10-10.0.22621-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.0 (macOS-12.6-x86_64-i386-64bit) x-ms-date: - - Fri, 16 Sep 2022 17:41:53 GMT + - Fri, 07 Oct 2022 14:38:35 GMT x-ms-return-client-request-id: - 'true' method: POST @@ -22,12 +22,12 @@ interactions: 2021-10-31-preview, 2021-11-01, 2022-06-01, 2022-10-01 content-length: '101' content-type: application/json; charset=utf-8 - date: Fri, 16 Sep 2022 17:41:53 GMT - ms-cv: E6Z7jhh8+kemKL1Zh95k4A.0 + date: Fri, 07 Oct 2022 14:38:35 GMT + ms-cv: NUJZgGhnwkieJHv7YoXGoA.2.0 request-context: appId= strict-transport-security: max-age=2592000 x-cache: CONFIG_NOCACHE - x-processing-time: 36ms + x-processing-time: 93ms status: code: 201 message: Created @@ -42,27 +42,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.3.0 Python/3.7.9 (Windows-10-10.0.22621-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.0 (macOS-12.6-x86_64-i386-64bit) x-ms-date: - - Fri, 16 Sep 2022 17:41:54 GMT + - Fri, 07 Oct 2022 14:38:35 GMT x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2022-10-01 response: body: - string: '{"token": "sanitized", "expiresOn": "2022-09-16T18:41:54.2020532+00:00"}' + string: '{"token": "sanitized", "expiresOn": "2022-10-07T15:38:36.1016383+00:00"}' headers: api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, 2021-11-01, 2022-06-01, 2022-10-01 content-length: '804' content-type: application/json; charset=utf-8 - date: Fri, 16 Sep 2022 17:41:53 GMT - ms-cv: Atqhyus2wkurppmuJseB/Q.0 + date: Fri, 07 Oct 2022 14:38:35 GMT + ms-cv: TqbOkZ2HJEuF5PxUEGBAbQ.2.0 request-context: appId= strict-transport-security: max-age=2592000 x-cache: CONFIG_NOCACHE - x-processing-time: 49ms + x-processing-time: 161ms status: code: 200 message: OK diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_with_custom_validity_over_maximum_allowed.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_with_custom_validity_over_maximum_allowed.yaml index 1062637030a9..0a093bc5e34a 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_with_custom_validity_over_maximum_allowed.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_with_custom_validity_over_maximum_allowed.yaml @@ -7,9 +7,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.3.0 Python/3.7.9 (Windows-10-10.0.22621-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.0 (macOS-12.6-x86_64-i386-64bit) x-ms-date: - - Fri, 16 Sep 2022 17:41:54 GMT + - Fri, 07 Oct 2022 14:38:36 GMT x-ms-return-client-request-id: - 'true' method: POST @@ -22,12 +22,12 @@ interactions: 2021-10-31-preview, 2021-11-01, 2022-06-01, 2022-10-01 content-length: '101' content-type: application/json; charset=utf-8 - date: Fri, 16 Sep 2022 17:41:54 GMT - ms-cv: AcW2ejxm6EmtaUpJZnoKSg.0 + date: Fri, 07 Oct 2022 14:38:36 GMT + ms-cv: MxFA8AP1jEafLfBzpT/xPQ.2.0 request-context: appId= strict-transport-security: max-age=2592000 x-cache: CONFIG_NOCACHE - x-processing-time: 35ms + x-processing-time: 93ms status: code: 201 message: Created @@ -42,9 +42,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.3.0 Python/3.7.9 (Windows-10-10.0.22621-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.0 (macOS-12.6-x86_64-i386-64bit) x-ms-date: - - Fri, 16 Sep 2022 17:41:54 GMT + - Fri, 07 Oct 2022 14:38:36 GMT x-ms-return-client-request-id: - 'true' method: POST @@ -52,18 +52,19 @@ interactions: response: body: string: '{"error": {"code": "ValidationError", "message": "ExpiresInMinutes - value 1441 is invalid.", "target": "ExpiresInMinutes"}}' + value 1441 is invalid. Value must be within the [60, 1440] interval.", "target": + "ExpiresInMinutes"}}' headers: api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, 2021-11-01, 2022-06-01, 2022-10-01 content-type: application/json - date: Fri, 16 Sep 2022 17:41:54 GMT - ms-cv: YYHNRcprpkyDVpuXspsSDg.0 + date: Fri, 07 Oct 2022 14:38:36 GMT + ms-cv: 5uOdr114hUGXRKs6AakWJg.2.0 request-context: appId= strict-transport-security: max-age=2592000 transfer-encoding: chunked x-cache: CONFIG_NOCACHE - x-processing-time: 44ms + x-processing-time: 22ms status: code: 400 message: Bad Request diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_with_custom_validity_under_minimum_allowed.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_with_custom_validity_under_minimum_allowed.yaml index 6c92d8a588e0..cafdac252445 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_with_custom_validity_under_minimum_allowed.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_with_custom_validity_under_minimum_allowed.yaml @@ -7,9 +7,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.3.0 Python/3.7.9 (Windows-10-10.0.22621-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.0 (macOS-12.6-x86_64-i386-64bit) x-ms-date: - - Fri, 16 Sep 2022 17:41:54 GMT + - Fri, 07 Oct 2022 14:38:36 GMT x-ms-return-client-request-id: - 'true' method: POST @@ -22,12 +22,12 @@ interactions: 2021-10-31-preview, 2021-11-01, 2022-06-01, 2022-10-01 content-length: '101' content-type: application/json; charset=utf-8 - date: Fri, 16 Sep 2022 17:41:54 GMT - ms-cv: MYrwgHMLqEeILA60LKYfoQ.0 + date: Fri, 07 Oct 2022 14:38:37 GMT + ms-cv: YgEsFCii3kqgf1tNF42A2g.2.0 request-context: appId= strict-transport-security: max-age=2592000 x-cache: CONFIG_NOCACHE - x-processing-time: 58ms + x-processing-time: 94ms status: code: 201 message: Created @@ -42,9 +42,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.3.0 Python/3.7.9 (Windows-10-10.0.22621-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.0 (macOS-12.6-x86_64-i386-64bit) x-ms-date: - - Fri, 16 Sep 2022 17:41:55 GMT + - Fri, 07 Oct 2022 14:38:37 GMT x-ms-return-client-request-id: - 'true' method: POST @@ -52,18 +52,19 @@ interactions: response: body: string: '{"error": {"code": "ValidationError", "message": "ExpiresInMinutes - value 59 is invalid.", "target": "ExpiresInMinutes"}}' + value 59 is invalid. Value must be within the [60, 1440] interval.", "target": + "ExpiresInMinutes"}}' headers: api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, 2021-11-01, 2022-06-01, 2022-10-01 content-type: application/json - date: Fri, 16 Sep 2022 17:41:55 GMT - ms-cv: lfi/QToUl0aabY88rU4Frg.0 + date: Fri, 07 Oct 2022 14:38:37 GMT + ms-cv: SprHuzOfQE+dzh++016u4A.2.0 request-context: appId= strict-transport-security: max-age=2592000 transfer-encoding: chunked x-cache: CONFIG_NOCACHE - x-processing-time: 43ms + x-processing-time: 22ms status: code: 400 message: Bad Request diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_with_no_scopes.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_with_no_scopes.yaml index 7fe2d166f011..b612e7f83c84 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_with_no_scopes.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_with_no_scopes.yaml @@ -7,9 +7,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.3.0 Python/3.7.9 (Windows-10-10.0.22621-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.0 (macOS-12.6-x86_64-i386-64bit) x-ms-date: - - Fri, 16 Sep 2022 17:41:55 GMT + - Fri, 07 Oct 2022 14:38:37 GMT x-ms-return-client-request-id: - 'true' method: POST @@ -22,29 +22,29 @@ interactions: 2021-10-31-preview, 2021-11-01, 2022-06-01, 2022-10-01 content-length: '101' content-type: application/json; charset=utf-8 - date: Fri, 16 Sep 2022 17:41:55 GMT - ms-cv: EID6htbjv0esOfJmJ7Pr+Q.0 + date: Fri, 07 Oct 2022 14:38:37 GMT + ms-cv: 677HLotkyUCtqQqBOLvFsA.2.0 request-context: appId= strict-transport-security: max-age=2592000 x-cache: CONFIG_NOCACHE - x-processing-time: 39ms + x-processing-time: 92ms status: code: 201 message: Created url: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 - request: - body: '{"scopes": null}' + body: '{"scopes": null, "expiresInMinutes": null}' headers: Accept: - application/json Content-Length: - - '16' + - '42' Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.3.0 Python/3.7.9 (Windows-10-10.0.22621-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.0 (macOS-12.6-x86_64-i386-64bit) x-ms-date: - - Fri, 16 Sep 2022 17:41:56 GMT + - Fri, 07 Oct 2022 14:38:37 GMT x-ms-return-client-request-id: - 'true' method: POST @@ -55,13 +55,13 @@ interactions: field is required.", "target": "Scopes"}}' headers: content-type: application/json - date: Fri, 16 Sep 2022 17:41:55 GMT - ms-cv: KVMBDnpzck6xwn2zKwuqJA.0 + date: Fri, 07 Oct 2022 14:38:38 GMT + ms-cv: LiA6QURiM0WTtAMQ2T45JA.2.0 request-context: appId= strict-transport-security: max-age=2592000 transfer-encoding: chunked x-cache: CONFIG_NOCACHE - x-processing-time: 31ms + x-processing-time: 23ms status: code: 400 message: Bad Request diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_revoke_tokens.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_revoke_tokens.yaml index c1bbc5a8b32a..abe417a42d77 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_revoke_tokens.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_revoke_tokens.yaml @@ -7,9 +7,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.3.0 Python/3.7.9 (Windows-10-10.0.22621-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.0 (macOS-12.6-x86_64-i386-64bit) x-ms-date: - - Fri, 16 Sep 2022 17:41:56 GMT + - Fri, 07 Oct 2022 14:38:38 GMT x-ms-return-client-request-id: - 'true' method: POST @@ -22,47 +22,47 @@ interactions: 2021-10-31-preview, 2021-11-01, 2022-06-01, 2022-10-01 content-length: '101' content-type: application/json; charset=utf-8 - date: Fri, 16 Sep 2022 17:41:55 GMT - ms-cv: U8tnjBFSnk2sFxuF0rlZXw.0 + date: Fri, 07 Oct 2022 14:38:38 GMT + ms-cv: bPgpzXvUKkCVgDiMaNZziQ.2.0 request-context: appId= strict-transport-security: max-age=2592000 x-cache: CONFIG_NOCACHE - x-processing-time: 88ms + x-processing-time: 94ms status: code: 201 message: Created url: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 - request: - body: '{"scopes": ["chat"]}' + body: '{"scopes": ["chat"], "expiresInMinutes": null}' headers: Accept: - application/json Content-Length: - - '20' + - '46' Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.3.0 Python/3.7.9 (Windows-10-10.0.22621-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.0 (macOS-12.6-x86_64-i386-64bit) x-ms-date: - - Fri, 16 Sep 2022 17:41:56 GMT + - Fri, 07 Oct 2022 14:38:38 GMT x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2022-10-01 response: body: - string: '{"token": "sanitized", "expiresOn": "2022-09-17T17:41:56.8086694+00:00"}' + string: '{"token": "sanitized", "expiresOn": "2022-10-08T14:38:39.0989287+00:00"}' headers: api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, 2021-11-01, 2022-06-01, 2022-10-01 content-length: '804' content-type: application/json; charset=utf-8 - date: Fri, 16 Sep 2022 17:41:55 GMT - ms-cv: SS1Ly/tav0S/4Thxw9AAMg.0 + date: Fri, 07 Oct 2022 14:38:39 GMT + ms-cv: hlOvvPPunkKB0Xf6IwClpA.2.0 request-context: appId= strict-transport-security: max-age=2592000 x-cache: CONFIG_NOCACHE - x-processing-time: 52ms + x-processing-time: 164ms status: code: 200 message: OK @@ -73,9 +73,9 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-communication-identity/1.3.0 Python/3.7.9 (Windows-10-10.0.22621-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.0 (macOS-12.6-x86_64-i386-64bit) x-ms-date: - - Fri, 16 Sep 2022 17:41:56 GMT + - Fri, 07 Oct 2022 14:38:38 GMT x-ms-return-client-request-id: - 'true' method: POST @@ -86,12 +86,12 @@ interactions: headers: api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, 2021-11-01, 2022-06-01, 2022-10-01 - date: Fri, 16 Sep 2022 17:41:56 GMT - ms-cv: 27agakE1wUWvlnZRiS5FIw.0 + date: Fri, 07 Oct 2022 14:38:39 GMT + ms-cv: qYNgFTKa0UWP+Cs93kMgjQ.2.0 request-context: appId= strict-transport-security: max-age=2592000 x-cache: CONFIG_NOCACHE - x-processing-time: 295ms + x-processing-time: 398ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_revoke_tokens_from_managed_identity.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_revoke_tokens_from_managed_identity.yaml index 3ddeb4f1ebca..66f162b9fb72 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_revoke_tokens_from_managed_identity.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_revoke_tokens_from_managed_identity.yaml @@ -7,7 +7,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.3.0 Python/3.7.9 (Windows-10-10.0.22621-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.0 (macOS-12.6-x86_64-i386-64bit) method: POST uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: @@ -18,43 +18,43 @@ interactions: 2021-10-31-preview, 2021-11-01, 2022-06-01, 2022-10-01 content-length: '101' content-type: application/json; charset=utf-8 - date: Fri, 16 Sep 2022 17:41:57 GMT - ms-cv: Sp+O0ZCzNEi4BIC3RDiE6Q.0 + date: Fri, 07 Oct 2022 14:38:39 GMT + ms-cv: hTSyL6qbcEKhT0TAy3tNVQ.2.0 request-context: appId= strict-transport-security: max-age=2592000 x-cache: CONFIG_NOCACHE - x-processing-time: 42ms + x-processing-time: 91ms status: code: 201 message: Created url: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 - request: - body: '{"scopes": ["chat"]}' + body: '{"scopes": ["chat"], "expiresInMinutes": null}' headers: Accept: - application/json Content-Length: - - '20' + - '46' Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.3.0 Python/3.7.9 (Windows-10-10.0.22621-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.0 (macOS-12.6-x86_64-i386-64bit) method: POST uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2022-10-01 response: body: - string: '{"token": "sanitized", "expiresOn": "2022-09-17T17:41:58.1116588+00:00"}' + string: '{"token": "sanitized", "expiresOn": "2022-10-08T14:38:40.8183497+00:00"}' headers: api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, 2021-11-01, 2022-06-01, 2022-10-01 content-length: '804' content-type: application/json; charset=utf-8 - date: Fri, 16 Sep 2022 17:41:58 GMT - ms-cv: Qr4o3EJAUUeKWbualtaHEw.0 + date: Fri, 07 Oct 2022 14:38:40 GMT + ms-cv: 1dIwfoxteEmPVIBpRmAmnA.2.0 request-context: appId= strict-transport-security: max-age=2592000 x-cache: CONFIG_NOCACHE - x-processing-time: 42ms + x-processing-time: 261ms status: code: 200 message: OK @@ -65,7 +65,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-communication-identity/1.3.0 Python/3.7.9 (Windows-10-10.0.22621-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.0 (macOS-12.6-x86_64-i386-64bit) method: POST uri: https://sanitized.communication.azure.com/identities/sanitized/:revokeAccessTokens?api-version=2022-10-01 response: @@ -74,12 +74,12 @@ interactions: headers: api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, 2021-11-01, 2022-06-01, 2022-10-01 - date: Fri, 16 Sep 2022 17:41:58 GMT - ms-cv: Ha8fcrq1gUm/u+DFk6nXSQ.0 + date: Fri, 07 Oct 2022 14:38:40 GMT + ms-cv: ohKeSLgSbkqGZC9K/gSgUg.2.0 request-context: appId= strict-transport-security: max-age=2592000 x-cache: CONFIG_NOCACHE - x-processing-time: 133ms + x-processing-time: 614ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-identity/tests/test_communication_identity_client.py b/sdk/communication/azure-communication-identity/tests/test_communication_identity_client.py index b959ec8114c6..cddef7286c3a 100644 --- a/sdk/communication/azure-communication-identity/tests/test_communication_identity_client.py +++ b/sdk/communication/azure-communication-identity/tests/test_communication_identity_client.py @@ -70,14 +70,19 @@ def test_create_user_and_token(self, communication_livetest_dynamic_connection_s assert user.properties.get('id') is not None assert token_response.token is not None - @CommunicationPreparer() - def test_create_user_and_token_with_custom_minimum_validity(self, communication_livetest_dynamic_connection_string): + @parameterized.expand( + [ + ("min_valid_hours", 1), + ("max_valid_hours", 24), + ] + ) + def test_create_user_and_token_with_valid_custom_expirations(self, _, valid_hours): identity_client = CommunicationIdentityClient.from_connection_string( - communication_livetest_dynamic_connection_string, + self.connection_str, http_logging_policy=get_http_logging_policy() ) - token_expires_in = timedelta(hours=1) + token_expires_in = timedelta(hours=valid_hours) user, token_response = identity_client.create_user_and_token(scopes=[CommunicationTokenScope.CHAT], token_expires_in=token_expires_in) assert user.properties.get('id') is not None @@ -85,46 +90,20 @@ def test_create_user_and_token_with_custom_minimum_validity(self, communication_ if is_live(): assert is_token_expiration_within_allowed_deviation(token_expires_in, token_response.expires_on) - - @CommunicationPreparer() - def test_create_user_and_token_with_custom_maximum_validity(self, communication_livetest_dynamic_connection_string): - identity_client = CommunicationIdentityClient.from_connection_string( - communication_livetest_dynamic_connection_string, - http_logging_policy=get_http_logging_policy() - ) - - token_expires_in = timedelta(hours=24) - user, token_response = identity_client.create_user_and_token(scopes=[CommunicationTokenScope.CHAT], token_expires_in=token_expires_in) - - assert user.properties.get('id') is not None - assert token_response.token is not None - - if is_live(): - assert is_token_expiration_within_allowed_deviation(token_expires_in, token_response.expires_on) - - @CommunicationPreparer() - def test_create_user_and_token_with_custom_validity_under_minimum_allowed(self, communication_livetest_dynamic_connection_string): - identity_client = CommunicationIdentityClient.from_connection_string( - communication_livetest_dynamic_connection_string, - http_logging_policy=get_http_logging_policy() - ) - - token_expires_in = timedelta(minutes=59) - - with pytest.raises(Exception) as ex: - identity_client.create_user_and_token(scopes=[CommunicationTokenScope.CHAT], token_expires_in=token_expires_in) - - assert str(ex.value.status_code) == "400" - assert ex.value.message is not None - - @CommunicationPreparer() - def test_create_user_and_token_with_custom_validity_over_maximum_allowed(self, communication_livetest_dynamic_connection_string): + + @parameterized.expand( + [ + ("min_invalid_mins", 59), + ("max_invalid_mins", 1441), + ] + ) + def test_create_user_and_token_with_invalid_custom_expirations(self, _, invalid_mins): identity_client = CommunicationIdentityClient.from_connection_string( - communication_livetest_dynamic_connection_string, + self.connection_str, http_logging_policy=get_http_logging_policy() ) - token_expires_in = timedelta(minutes=1441) + token_expires_in = timedelta(minutes=invalid_mins) with pytest.raises(Exception) as ex: identity_client.create_user_and_token(scopes=[CommunicationTokenScope.CHAT], token_expires_in=token_expires_in) @@ -164,63 +143,41 @@ def test_get_token(self, communication_livetest_dynamic_connection_string): assert user.properties.get('id') is not None assert token_response.token is not None - @CommunicationPreparer() - def test_get_token_with_custom_minimum_validity(self, communication_livetest_dynamic_connection_string): - identity_client = CommunicationIdentityClient.from_connection_string( - communication_livetest_dynamic_connection_string, - http_logging_policy=get_http_logging_policy() - ) - user = identity_client.create_user() - - token_expires_in = timedelta(hours=1) - token_response = identity_client.get_token(user, scopes=[CommunicationTokenScope.CHAT], token_expires_in=token_expires_in) - - assert user.properties.get('id') is not None - assert token_response.token is not None - if is_live(): - assert is_token_expiration_within_allowed_deviation(token_expires_in, token_response.expires_on) - - @CommunicationPreparer() - def test_get_token_with_custom_maximum_validity(self, communication_livetest_dynamic_connection_string): + @parameterized.expand( + [ + ("min_valid_hours", 1), + ("max_valid_hours", 24), + ] + ) + def test_get_token_with_valid_custom_expirations(self, _, valid_hours): identity_client = CommunicationIdentityClient.from_connection_string( - communication_livetest_dynamic_connection_string, + self.connection_str, http_logging_policy=get_http_logging_policy() ) user = identity_client.create_user() - token_expires_in = timedelta(hours=24) + token_expires_in = timedelta(hours=valid_hours) token_response = identity_client.get_token(user, scopes=[CommunicationTokenScope.CHAT], token_expires_in=token_expires_in) assert user.properties.get('id') is not None assert token_response.token is not None if is_live(): assert is_token_expiration_within_allowed_deviation(token_expires_in, token_response.expires_on) - - @CommunicationPreparer() - def test_get_token_with_custom_validity_under_minimum_allowed(self, communication_livetest_dynamic_connection_string): - identity_client = CommunicationIdentityClient.from_connection_string( - communication_livetest_dynamic_connection_string, - http_logging_policy=get_http_logging_policy() - ) - user = identity_client.create_user() - - token_expires_in = timedelta(minutes=59) - - with pytest.raises(Exception) as ex: - identity_client.get_token(user, scopes=[CommunicationTokenScope.CHAT], token_expires_in=token_expires_in) - - assert str(ex.value.status_code) == "400" - assert ex.value.message is not None - - @CommunicationPreparer() - def test_get_token_with_custom_validity_over_maximum_allowed(self, communication_livetest_dynamic_connection_string): + + @parameterized.expand( + [ + ("min_invalid_mins", 59), + ("max_invalid_mins", 1441), + ] + ) + def test_get_token_with_invalid_custom_expirations(self, _, invalid_mins): identity_client = CommunicationIdentityClient.from_connection_string( - communication_livetest_dynamic_connection_string, + self.connection_str, http_logging_policy=get_http_logging_policy() ) user = identity_client.create_user() - token_expires_in = timedelta(minutes=1441) + token_expires_in = timedelta(minutes=invalid_mins) with pytest.raises(Exception) as ex: identity_client.get_token(user, scopes=[CommunicationTokenScope.CHAT], token_expires_in=token_expires_in) From 73348a89de6785555c1fdcfd0790670653993715 Mon Sep 17 00:00:00 2001 From: Aigerim Beishenbekova Date: Mon, 10 Oct 2022 08:57:36 +0200 Subject: [PATCH 14/17] fixed lint issues --- sdk/communication/azure-communication-identity/README.md | 4 ++-- .../azure/communication/identity/_shared/utils.py | 2 +- .../azure/communication/identity/_utils.py | 4 ++-- .../identity/aio/_communication_identity_client_async.py | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/sdk/communication/azure-communication-identity/README.md b/sdk/communication/azure-communication-identity/README.md index 2e0975ce6762..72ebd017f333 100644 --- a/sdk/communication/azure-communication-identity/README.md +++ b/sdk/communication/azure-communication-identity/README.md @@ -82,7 +82,7 @@ print("Token issued with value: " + tokenresponse.token) You can specify expiration time for the token. The token can be configured to expire in as little as one hour or as long as 24 hours. The default expiration time is 24 hours. ```python -token_expires_in = timedelta(hours=60) +token_expires_in = timedelta(hours=1) tokenresponse = identity_client.get_token(user, scopes=[CommunicationTokenScope.CHAT], token_expires_in=token_expires_in) print("Token issued with value: " + tokenresponse.token) ``` @@ -100,7 +100,7 @@ print("Token issued with value: " + tokenresponse.token) You can specify expiration time for the token. The token can be configured to expire in as little as one hour or as long as 24 hours. The default expiration time is 24 hours. ```python -token_expires_in = timedelta(hours=60) +token_expires_in = timedelta(hours=1) user, tokenresponse = identity_client.create_user_and_token(scopes=[CommunicationTokenScope.CHAT], token_expires_in=token_expires_in) print("User id:" + user.properties['id']) print("Token issued with value: " + tokenresponse.token) diff --git a/sdk/communication/azure-communication-identity/azure/communication/identity/_shared/utils.py b/sdk/communication/azure-communication-identity/azure/communication/identity/_shared/utils.py index ad8be53371cb..144f6aa41761 100644 --- a/sdk/communication/azure-communication-identity/azure/communication/identity/_shared/utils.py +++ b/sdk/communication/azure-communication-identity/azure/communication/identity/_shared/utils.py @@ -131,4 +131,4 @@ def get_authentication_policy( return HMACCredentialsPolicy(endpoint, credential, decode_url=decode_url) raise TypeError("Unsupported credential: {}. Use an access token string to use HMACCredentialsPolicy" - "or a token credential from azure.identity".format(type(credential))) \ No newline at end of file + "or a token credential from azure.identity".format(type(credential))) diff --git a/sdk/communication/azure-communication-identity/azure/communication/identity/_utils.py b/sdk/communication/azure-communication-identity/azure/communication/identity/_utils.py index fa0199e559ff..fa92430ed059 100644 --- a/sdk/communication/azure-communication-identity/azure/communication/identity/_utils.py +++ b/sdk/communication/azure-communication-identity/azure/communication/identity/_utils.py @@ -11,8 +11,8 @@ def convert_timedelta_to_mins( ): # type: (...) -> int """ - Returns body to pass to request for user and token creation or token creation. - : param duration: + Returns the total number of minutes contained in the duration. + : param duration: Time duration : type duration: ~datetime.timedelta : rtype: int """ diff --git a/sdk/communication/azure-communication-identity/azure/communication/identity/aio/_communication_identity_client_async.py b/sdk/communication/azure-communication-identity/azure/communication/identity/aio/_communication_identity_client_async.py index 29cfd5b46c97..f388ff7c8743 100644 --- a/sdk/communication/azure-communication-identity/azure/communication/identity/aio/_communication_identity_client_async.py +++ b/sdk/communication/azure-communication-identity/azure/communication/identity/aio/_communication_identity_client_async.py @@ -116,7 +116,7 @@ async def create_user_and_token( 'createTokenWithScopes': scopes, 'expiresInMinutes': convert_timedelta_to_mins(token_expires_in) } - + return await self._identity_service_client.communication_identity.create( body=request_body, cls=lambda pr, u, e: (CommunicationUserIdentifier(u['identity']['id'], raw_id=u['identity']['id']), From 0a1933a085554647c414c3fce14633eb9d2417a8 Mon Sep 17 00:00:00 2001 From: Aigerim Beishenbekova Date: Mon, 10 Oct 2022 09:11:07 +0200 Subject: [PATCH 15/17] reverted back unwanted changes in ml sdk --- .../azure-ai-ml/tests/environment/__init__.py | 0 .../tests/environment/e2etests/__init__.py | 0 .../tests/environment/unittests/__init__.py | 0 .../environment/unittests/test_env_entity.py | 69 +++++++++++++++++++ 4 files changed, 69 insertions(+) create mode 100644 sdk/ml/azure-ai-ml/tests/environment/__init__.py create mode 100644 sdk/ml/azure-ai-ml/tests/environment/e2etests/__init__.py create mode 100644 sdk/ml/azure-ai-ml/tests/environment/unittests/__init__.py create mode 100644 sdk/ml/azure-ai-ml/tests/environment/unittests/test_env_entity.py diff --git a/sdk/ml/azure-ai-ml/tests/environment/__init__.py b/sdk/ml/azure-ai-ml/tests/environment/__init__.py new file mode 100644 index 000000000000..e69de29bb2d1 diff --git a/sdk/ml/azure-ai-ml/tests/environment/e2etests/__init__.py b/sdk/ml/azure-ai-ml/tests/environment/e2etests/__init__.py new file mode 100644 index 000000000000..e69de29bb2d1 diff --git a/sdk/ml/azure-ai-ml/tests/environment/unittests/__init__.py b/sdk/ml/azure-ai-ml/tests/environment/unittests/__init__.py new file mode 100644 index 000000000000..e69de29bb2d1 diff --git a/sdk/ml/azure-ai-ml/tests/environment/unittests/test_env_entity.py b/sdk/ml/azure-ai-ml/tests/environment/unittests/test_env_entity.py new file mode 100644 index 000000000000..63c7e450fce9 --- /dev/null +++ b/sdk/ml/azure-ai-ml/tests/environment/unittests/test_env_entity.py @@ -0,0 +1,69 @@ +from pathlib import Path + +import pytest +from test_utilities.utils import verify_entity_load_and_dump + +from azure.ai.ml import load_component, load_environment +from azure.ai.ml._utils.utils import load_yaml +from azure.ai.ml.constants._common import ANONYMOUS_ENV_NAME +from azure.ai.ml.entities import Component as ComponentEntity +from azure.ai.ml.entities._assets import Environment +from azure.ai.ml.entities._assets.environment import BuildContext + + +@pytest.mark.unittest +class TestEnvironmentEntity: + def test_eq_neq(self) -> None: + environment = Environment(name="name", version="16", image="mcr.microsoft.com/azureml/openmpi3.1.2-ubuntu18.04") + same_environment = Environment(name=environment.name, version=environment.version, image=environment.image) + diff_environment = Environment( + name=environment.name, + version=environment.version, + image="mcr.microsoft.com/azureml/openmpi3.1.2-ubuntu18.05", + ) + + assert environment.image == same_environment.image + assert environment == same_environment + assert environment != diff_environment + + def test_conda_file_deserialize_and_serialize(self) -> None: + # Tests that conda file is deserialized same way if using load_environment() or Environment() + conda_file_path = "tests/test_configs/environment/environment_files/environment.yml" + env_config_path = "tests/test_configs/environment/environment_conda_name_version.yml" + + conda_file_data = load_yaml(conda_file_path) + env = Environment(conda_file=conda_file_path) + + def simple_environment_validation(env_loaded): + assert env.conda_file == conda_file_data + assert env_loaded.conda_file == conda_file_data + + verify_entity_load_and_dump(load_environment, simple_environment_validation, env_config_path) + + def test_build_context_eq_neq(self) -> None: + build_context = BuildContext(dockerfile_path="dockerfile_path", path="context_uri") + + same_build_context = BuildContext( + path=build_context.path, + dockerfile_path=build_context.dockerfile_path, + ) + + diff_build_context = BuildContext( + dockerfile_path=build_context.dockerfile_path, + path=build_context.path + "blah", + ) + + assert build_context == same_build_context + assert build_context != diff_build_context + + def test_anonymous_environment_loaded_from_yaml(self): + tests_root_dir = Path(__file__).parent.parent.parent + components_dir = tests_root_dir / "test_configs/components/helloworld_components_with_env" + + env_0 = load_component(source=components_dir / "helloworld_component_env_inline.yml").environment + env_1 = load_component(source=components_dir / "helloworld_component_env_path_0.yml").environment + env_2 = load_component(source=components_dir / "helloworld_component_env_path_1.yml").environment + + assert env_0.name == env_1.name == env_2.name == ANONYMOUS_ENV_NAME + assert env_0.version == env_1.version == env_2.version + assert env_0 == env_1 == env_2 From d4bb7d93d9d641574bcdaac8eae43a36398fc3a0 Mon Sep 17 00:00:00 2001 From: Aigerim Beishenbekova Date: Tue, 11 Oct 2022 09:55:34 +0200 Subject: [PATCH 16/17] fixed doctype --- .../communication/identity/_communication_identity_client.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sdk/communication/azure-communication-identity/azure/communication/identity/_communication_identity_client.py b/sdk/communication/azure-communication-identity/azure/communication/identity/_communication_identity_client.py index 7acb0a587865..081461e4edcc 100644 --- a/sdk/communication/azure-communication-identity/azure/communication/identity/_communication_identity_client.py +++ b/sdk/communication/azure-communication-identity/azure/communication/identity/_communication_identity_client.py @@ -100,7 +100,7 @@ def create_user(self, **kwargs): @distributed_trace def create_user_and_token( self, - scopes, # type: List[Union[str, CommunicationTokenScope]] + scopes, # List[Union[str, CommunicationTokenScope]] **kwargs # type: Any ): # type: (...) -> Tuple[CommunicationUserIdentifier, AccessToken] @@ -148,7 +148,7 @@ def delete_user( def get_token( self, user, # type: CommunicationUserIdentifier - scopes, # type: List[Union[str, CommunicationTokenScope]] + scopes, # List[Union[str, CommunicationTokenScope]] **kwargs # type: Any ): # type: (...) -> AccessToken From 032c600bb70787bb9c962f159883f07fc89a709e Mon Sep 17 00:00:00 2001 From: Aigerim Beishenbekova Date: Tue, 11 Oct 2022 14:10:10 +0200 Subject: [PATCH 17/17] fixed linting issues --- .../communication/identity/_communication_identity_client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/communication/azure-communication-identity/azure/communication/identity/_communication_identity_client.py b/sdk/communication/azure-communication-identity/azure/communication/identity/_communication_identity_client.py index 081461e4edcc..4c11b498db34 100644 --- a/sdk/communication/azure-communication-identity/azure/communication/identity/_communication_identity_client.py +++ b/sdk/communication/azure-communication-identity/azure/communication/identity/_communication_identity_client.py @@ -4,7 +4,7 @@ # Licensed under the MIT License. # ------------------------------------ -from typing import TYPE_CHECKING, Any, List, Union, Tuple +from typing import TYPE_CHECKING, Any, Tuple from azure.core.tracing.decorator import distributed_trace from azure.core.credentials import AccessToken