diff --git a/sdk/servicebus/azure-servicebus/azure/servicebus/_common/client_mixins.py b/sdk/servicebus/azure-servicebus/azure/servicebus/_common/client_mixins.py deleted file mode 100644 index 4056f10388c5..000000000000 --- a/sdk/servicebus/azure-servicebus/azure/servicebus/_common/client_mixins.py +++ /dev/null @@ -1,346 +0,0 @@ -# ------------------------------------------------------------------------ -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# ------------------------------------------------------------------------- -# pylint: skip-file -import datetime -import uuid -import requests -try: - from urlparse import urlparse # type: ignore - from urllib import unquote_plus # type: ignore -except ImportError: - from urllib.parse import urlparse - from urllib.parse import unquote_plus - -from uamqp import Source - -import azure.common -import azure.servicebus -from .constants import ( - NEXT_AVAILABLE, - SESSION_LOCKED_UNTIL, - DATETIMEOFFSET_EPOCH, - SESSION_FILTER) -from .utils import parse_conn_str, build_uri -from ..exceptions import ( - ServiceBusConnectionError, - ServiceBusResourceNotFound) -from .._control_client import ServiceBusService -from .._control_client.models import AzureServiceBusResourceNotFound, Queue, Subscription, Topic - - -class ServiceBusMixin(object): - - def _get_host(self): - return "sb://" + self.service_namespace + self.host_base - - def create_queue( - self, queue_name, - lock_duration=30, max_size_in_megabytes=None, - requires_duplicate_detection=False, - requires_session=False, - default_message_time_to_live=None, - dead_lettering_on_message_expiration=False, - duplicate_detection_history_time_window=None, - max_delivery_count=None, enable_batched_operations=None): - """Create a queue entity. - - :param queue_name: The name of the new queue. - :type queue_name: str - :param lock_duration: The lock durection in seconds for each message in the queue. - :type lock_duration: int - :param max_size_in_megabytes: The max size to allow the queue to grow to. - :type max_size_in_megabytes: int - :param requires_duplicate_detection: Whether the queue will require every message with - a specified time frame to have a unique ID. Non-unique messages will be discarded. - Default value is False. - :type requires_duplicate_detection: bool - :param requires_session: Whether the queue will be sessionful, and therefore require all - message to have a Session ID and be received by a sessionful receiver. - Default value is False. - :type requires_session: bool - :param default_message_time_to_live: The length of time a message will remain in the queue - before it is either discarded or moved to the dead letter queue. - :type default_message_time_to_live: ~datetime.timedelta - :param dead_lettering_on_message_expiration: Whether to move expired messages to the - dead letter queue. Default value is False. - :type dead_lettering_on_message_expiration: bool - :param duplicate_detection_history_time_window: The period within which all incoming messages - must have a unique message ID. - :type duplicate_detection_history_time_window: ~datetime.timedelta - :param max_delivery_count: The maximum number of times a message will attempt to be delivered - before it is moved to the dead letter queue. - :type max_delivery_count: int - :param enable_batched_operations: - :type: enable_batched_operations: bool - :raises: ~azure.servicebus.exceptions.ServiceBusConnectionError if the namespace is not found. - :raises: ~azure.common.AzureConflictHttpError if a queue of the same name already exists. - """ - queue_properties = Queue( - lock_duration="PT{}S".format(int(lock_duration)), - max_size_in_megabytes=max_size_in_megabytes, - requires_duplicate_detection=requires_duplicate_detection, - requires_session=requires_session, - default_message_time_to_live=default_message_time_to_live, - dead_lettering_on_message_expiration=dead_lettering_on_message_expiration, - duplicate_detection_history_time_window=duplicate_detection_history_time_window, - max_delivery_count=max_delivery_count, - enable_batched_operations=enable_batched_operations) - try: - return self.mgmt_client.create_queue(queue_name, queue=queue_properties, fail_on_exist=True) - except requests.exceptions.ConnectionError as e: - raise ServiceBusConnectionError("Namespace: {} not found".format(self.service_namespace), e) - - def delete_queue(self, queue_name, fail_not_exist=False): - """Delete a queue entity. - - :param queue_name: The name of the queue to delete. - :type queue_name: str - :param fail_not_exist: Whether to raise an exception if the named queue is not - found. If set to True, a ServiceBusResourceNotFound will be raised. - Default value is False. - :type fail_not_exist: bool - :raises: ~azure.servicebus.exceptions.ServiceBusConnectionError if the namesapce is not found. - :raises: ~azure.servicebus.exceptions.ServiceBusResourceNotFound if the queue is not found - and `fail_not_exist` is set to True. - """ - try: - return self.mgmt_client.delete_queue(queue_name, fail_not_exist=fail_not_exist) - except requests.exceptions.ConnectionError as e: - raise ServiceBusConnectionError("Namespace: {} not found".format(self.service_namespace), e) - except azure.common.AzureMissingResourceHttpError as e: - raise ServiceBusResourceNotFound("Specificed queue '{}' does not exist.".format(queue_name), e) - - def create_topic( - self, topic_name, - default_message_time_to_live=None, - max_size_in_megabytes=None, requires_duplicate_detection=None, - duplicate_detection_history_time_window=None, - enable_batched_operations=None): - """Create a topic entity. - - :param topic_name: The name of the new topic. - :type topic_name: str - :param max_size_in_megabytes: The max size to allow the topic to grow to. - :type max_size_in_megabytes: int - :param requires_duplicate_detection: Whether the topic will require every message with - a specified time frame to have a unique ID. Non-unique messages will be discarded. - Default value is False. - :type requires_duplicate_detection: bool - :param default_message_time_to_live: The length of time a message will remain in the topic - before it is either discarded or moved to the dead letter queue. - :type default_message_time_to_live: ~datetime.timedelta - :param duplicate_detection_history_time_window: The period within which all incoming messages - must have a unique message ID. - :type duplicate_detection_history_time_window: ~datetime.timedelta - :param enable_batched_operations: - :type: enable_batched_operations: bool - :raises: ~azure.servicebus.exceptions.ServiceBusConnectionError if the namespace is not found. - :raises: ~azure.common.AzureConflictHttpError if a topic of the same name already exists. - """ - topic_properties = Topic( - max_size_in_megabytes=max_size_in_megabytes, - requires_duplicate_detection=requires_duplicate_detection, - default_message_time_to_live=default_message_time_to_live, - duplicate_detection_history_time_window=duplicate_detection_history_time_window, - enable_batched_operations=enable_batched_operations) - try: - return self.mgmt_client.create_topic(topic_name, topic=topic_properties, fail_on_exist=True) - except requests.exceptions.ConnectionError as e: - raise ServiceBusConnectionError("Namespace: {} not found".format(self.service_namespace), e) - - def delete_topic(self, topic_name, fail_not_exist=False): - """Delete a topic entity. - - :param topic_name: The name of the topic to delete. - :type topic_name: str - :param fail_not_exist: Whether to raise an exception if the named topic is not - found. If set to True, a ServiceBusResourceNotFound will be raised. - Default value is False. - :type fail_not_exist: bool - :raises: ~azure.servicebus.exceptions.ServiceBusConnectionError if the namesapce is not found. - :raises: ~azure.servicebus.exceptions.ServiceBusResourceNotFound if the topic is not found - and `fail_not_exist` is set to True. - """ - try: - return self.mgmt_client.delete_topic(topic_name, fail_not_exist=fail_not_exist) - except requests.exceptions.ConnectionError as e: - raise ServiceBusConnectionError("Namespace: {} not found".format(self.service_namespace), e) - except azure.common.AzureMissingResourceHttpError as e: - raise ServiceBusResourceNotFound("Specificed queue does not exist.", e) - - def create_subscription( - self, topic_name, subscription_name, - lock_duration=30, requires_session=None, - default_message_time_to_live=None, - dead_lettering_on_message_expiration=None, - dead_lettering_on_filter_evaluation_exceptions=None, - enable_batched_operations=None, max_delivery_count=None): - """Create a subscription entity. - - :param topic_name: The name of the topic under which to create the subscription. - :param subscription_name: The name of the new subscription. - :type subscription_name: str - :param lock_duration: The lock durection in seconds for each message in the subscription. - :type lock_duration: int - :param requires_session: Whether the subscription will be sessionful, and therefore require all - message to have a Session ID and be received by a sessionful receiver. - Default value is False. - :type requires_session: bool - :param default_message_time_to_live: The length of time a message will remain in the subscription - before it is either discarded or moved to the dead letter queue. - :type default_message_time_to_live: ~datetime.timedelta - :param dead_lettering_on_message_expiration: Whether to move expired messages to the - dead letter queue. Default value is False. - :type dead_lettering_on_message_expiration: bool - :param dead_lettering_on_filter_evaluation_exceptions: Whether to move messages that error on - filtering into the dead letter queue. Default is False, and the messages will be discarded. - :type dead_lettering_on_filter_evaluation_exceptions: bool - :param max_delivery_count: The maximum number of times a message will attempt to be delivered - before it is moved to the dead letter queue. - :type max_delivery_count: int - :param enable_batched_operations: - :type: enable_batched_operations: bool - :raises: ~azure.servicebus.exceptions.ServiceBusConnectionError if the namespace is not found. - :raises: ~azure.common.AzureConflictHttpError if a queue of the same name already exists. - """ - sub_properties = Subscription( - lock_duration="PT{}S".format(int(lock_duration)), - requires_session=requires_session, - default_message_time_to_live=default_message_time_to_live, - dead_lettering_on_message_expiration=dead_lettering_on_message_expiration, - dead_lettering_on_filter_evaluation_exceptions=dead_lettering_on_filter_evaluation_exceptions, - max_delivery_count=max_delivery_count, - enable_batched_operations=enable_batched_operations) - try: - return self.mgmt_client.create_subscription( - topic_name, subscription_name, - subscription=sub_properties, fail_on_exist=True) - except requests.exceptions.ConnectionError as e: - raise ServiceBusConnectionError("Namespace: {} not found".format(self.service_namespace), e) - - def delete_subscription(self, topic_name, subscription_name, fail_not_exist=False): - """Delete a subscription entity. - - :param topic_name: The name of the topic where the subscription is. - :type topic_name: str - :param subscription_name: The name of the subscription to delete. - :type subscription_name: str - :param fail_not_exist: Whether to raise an exception if the named subscription or - topic is not found. If set to True, a ServiceBusResourceNotFound will be raised. - Default value is False. - :type fail_not_exist: bool - :raises: ~azure.servicebus.exceptions.ServiceBusConnectionError if the namesapce is not found. - :raises: ~azure.servicebus.exceptions.ServiceBusResourceNotFound if the entity is not found - and `fail_not_exist` is set to True. - """ - try: - return self.mgmt_client.delete_subscription( - topic_name, subscription_name, fail_not_exist=fail_not_exist) - except requests.exceptions.ConnectionError as e: - raise ServiceBusConnectionError("Namespace: {} not found".format(self.service_namespace), e) - except azure.common.AzureMissingResourceHttpError as e: - raise ServiceBusResourceNotFound("Specificed queue does not exist.", e) - - -class BaseClient(object): # pylint: disable=too-many-instance-attributes - - def __init__(self, address, name, shared_access_key_name=None, - shared_access_key_value=None, debug=False, **kwargs): - """Construct a new Client to interact with the named Service Bus entity. - - :param address: The full URI of the Service Bus namespace. This can optionally - include URL-encoded access name and key. - :type address: str - :param name: The name of the entity to which the Client will connect. - :type name: str - :param shared_access_key_name: The name of the shared access policy. This must be supplied - if not encoded into the address. - :type shared_access_key_name: str - :param shared_access_key_value: The shared access key. This must be supplied if not encoded - into the address. - :type shared_access_key_value: str - :param debug: Whether to output network trace logs to the logger. Default is `False`. - :type debug: bool - """ - self.container_id = "servicebus.pysdk-" + str(uuid.uuid4())[:8] - self.address = urlparse(address) - self.name = name - self.debug = debug - self.encoding = 'UTF-8' - self.connection = None - self.entity = kwargs.get('validated_entity') - self.properties = dict(self.entity) if self.entity else {} - self.requires_session = self.properties.get('requires_session', False) - - namespace, _, host_base = self.address.hostname.partition('.') - url_username = unquote_plus(self.address.username) if self.address.username else None - shared_access_key_name = shared_access_key_name or url_username - url_password = unquote_plus(self.address.password) if self.address.password else None - shared_access_key_value = shared_access_key_value or url_password - if not shared_access_key_name or not shared_access_key_value: - raise ValueError("Missing shared access key name and/or value.") - self.entity_uri = "amqps://{}{}".format(self.address.hostname, self.address.path) - self.auth_config = { - 'uri': "sb://{}{}".format(self.address.hostname, self.address.path), - 'key_name': shared_access_key_name, - 'shared_access_key': shared_access_key_value} - - self.mgmt_client = kwargs.get('mgmt_client') or ServiceBusService( - service_namespace=namespace, - shared_access_key_name=shared_access_key_name, - shared_access_key_value=shared_access_key_value, - host_base="." + host_base) - - @classmethod - def from_entity(cls, address, entity, **kwargs): - client = cls( - address + "/" + entity.name, - entity.name, - validated_entity=entity, - **kwargs) - return client - - @classmethod - def from_connection_string(cls, conn_str, name=None, **kwargs): - """Create a Client from a Service Bus connection string. - - :param conn_str: The connection string. - :type conn_str: str - :param name: The name of the entity, if the 'EntityName' property is - not included in the connection string. - """ - address, policy, key, entity = parse_conn_str(conn_str) - entity = name or entity - address = build_uri(address, entity) - name = address.split('/')[-1] - return cls(address, name, shared_access_key_name=policy, shared_access_key_value=key, **kwargs) - - def _get_entity(self): - raise NotImplementedError("Must be implemented by child class.") - - def get_properties(self): - """Perform an operation to update the properties of the entity. - - :returns: The properties of the entity as a dictionary. - :rtype: dict[str, Any] - :raises: ~azure.servicebus.exceptions.ServiceBusResourceNotFound if the entity does not exist. - :raises: ~azure.servicebus.exceptions.ServiceBusConnectionError if the endpoint cannot be reached. - :raises: ~azure.common.AzureHTTPError if the credentials are invalid. - """ - try: - self.entity = self._get_entity() - self.properties = dict(self.entity) - if hasattr(self.entity, 'requires_session'): - self.requires_session = self.entity.requires_session - return self.properties - except AzureServiceBusResourceNotFound: - raise ServiceBusResourceNotFound("Specificed queue does not exist.") - except azure.common.AzureHttpError: - self.entity = None - self.properties = {} - self.requires_session = False - except requests.exceptions.ConnectionError as e: - raise ServiceBusConnectionError("Namespace not found", e) diff --git a/sdk/servicebus/azure-servicebus/azure/servicebus/_control_client/__init__.py b/sdk/servicebus/azure-servicebus/azure/servicebus/_control_client/__init__.py deleted file mode 100644 index 1a9b2e37b19c..000000000000 --- a/sdk/servicebus/azure-servicebus/azure/servicebus/_control_client/__init__.py +++ /dev/null @@ -1,47 +0,0 @@ -# ------------------------------------------------------------------------ -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# ------------------------------------------------------------------------- - -from .constants import ( - DEFAULT_RULE_NAME, - AZURE_SERVICEBUS_NAMESPACE, - AZURE_SERVICEBUS_ACCESS_KEY, - AZURE_SERVICEBUS_ISSUER, - SERVICE_BUS_HOST_BASE, - DEFAULT_HTTP_TIMEOUT, -) - -from .models import ( - AzureServiceBusPeekLockError, - AzureServiceBusResourceNotFound, - Queue, - Topic, - Subscription, - Rule, - Message, - EventHub, - AuthorizationRule -) - -from .servicebusservice import ServiceBusService - - -__all__ = [ - 'DEFAULT_RULE_NAME', - 'AZURE_SERVICEBUS_NAMESPACE', - 'AZURE_SERVICEBUS_ACCESS_KEY', - 'AZURE_SERVICEBUS_ISSUER', - 'SERVICE_BUS_HOST_BASE', - 'DEFAULT_HTTP_TIMEOUT', - 'AzureServiceBusPeekLockError', - 'AzureServiceBusResourceNotFound', - 'Queue', - 'Topic', - 'Subscription', - 'Rule', - 'Message', - 'EventHub', - 'AuthorizationRule', - 'ServiceBusService'] diff --git a/sdk/servicebus/azure-servicebus/azure/servicebus/_control_client/_common_conversion.py b/sdk/servicebus/azure-servicebus/azure/servicebus/_control_client/_common_conversion.py deleted file mode 100644 index 63e6a6d8afad..000000000000 --- a/sdk/servicebus/azure-servicebus/azure/servicebus/_control_client/_common_conversion.py +++ /dev/null @@ -1,84 +0,0 @@ -# ------------------------------------------------------------------------ -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# ------------------------------------------------------------------------- - -import base64 -import hashlib -import hmac -import sys - -from ._common_models import _unicode_type - - -def _encode_base64(data): - if isinstance(data, _unicode_type): - data = data.encode('utf-8') - encoded = base64.b64encode(data) - return encoded.decode('utf-8') - - -def _decode_base64_to_bytes(data): - if isinstance(data, _unicode_type): - data = data.encode('utf-8') - return base64.b64decode(data) - - -def _decode_base64_to_text(data): - decoded_bytes = _decode_base64_to_bytes(data) - return decoded_bytes.decode('utf-8') - - -if sys.version_info < (3,): - def _str(value): - if isinstance(value, _unicode_type): - return value.encode('utf-8') - - return str(value) -else: - _str = str - - -def _str_or_none(value): - if value is None: - return None - - return _str(value) - - -def _int_or_none(value): - if value is None: - return None - - return str(int(value)) - - -def _bool_or_none(value): - if value is None: - return None - - if isinstance(value, bool): - if value: - return 'true' - return 'false' - - return str(value) - - -def _lower(text): - return text.lower() - - -def _sign_string(key, string_to_sign, key_is_base64=True): - if key_is_base64: - key = _decode_base64_to_bytes(key) - else: - if isinstance(key, _unicode_type): - key = key.encode('utf-8') - if isinstance(string_to_sign, _unicode_type): - string_to_sign = string_to_sign.encode('utf-8') - signed_hmac_sha256 = hmac.HMAC(key, string_to_sign, hashlib.sha256) - digest = signed_hmac_sha256.digest() - encoded_digest = _encode_base64(digest) - return encoded_digest diff --git a/sdk/servicebus/azure-servicebus/azure/servicebus/_control_client/_common_error.py b/sdk/servicebus/azure-servicebus/azure/servicebus/_control_client/_common_error.py deleted file mode 100644 index 926bc70eb85b..000000000000 --- a/sdk/servicebus/azure-servicebus/azure/servicebus/_control_client/_common_error.py +++ /dev/null @@ -1,67 +0,0 @@ -# ------------------------------------------------------------------------ -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# ------------------------------------------------------------------------- - -from azure.common import ( - AzureHttpError, - AzureConflictHttpError, - AzureMissingResourceHttpError, -) - - -_ERROR_CONFLICT = 'Conflict ({0})' -_ERROR_NOT_FOUND = 'Not found ({0})' -_ERROR_UNKNOWN = 'Unknown error ({0})' -_ERROR_VALUE_NONE = '{0} should not be None.' -_ERROR_MESSAGE_NOT_PEEK_LOCKED_ON_DELETE = \ - 'Message is not peek locked and cannot be deleted.' -_ERROR_MESSAGE_NOT_PEEK_LOCKED_ON_UNLOCK = \ - 'Message is not peek locked and cannot be unlocked.' -_ERROR_MESSAGE_NOT_PEEK_LOCKED_ON_RENEW_LOCK = \ - 'Message is not peek locked and lock cannot be renewed.' -_ERROR_EVENT_HUB_NOT_FOUND = 'Event hub was not found' -_ERROR_QUEUE_NOT_FOUND = 'Queue was not found' -_ERROR_TOPIC_NOT_FOUND = 'Topic was not found' -_ERROR_SERVICEBUS_MISSING_INFO = \ - 'You need to provide servicebus namespace, access key and Issuer' -_WARNING_VALUE_SHOULD_BE_BYTES = \ - 'Warning: {0} must be bytes data type. It will be converted ' + \ - 'automatically, with utf-8 text encoding.' -_ERROR_VALUE_SHOULD_BE_BYTES = '{0} should be of type bytes.' -_ERROR_VALUE_NEGATIVE = '{0} should not be negative.' - - -def _general_error_handler(http_error): - ''' Simple error handler for azure.''' - message = str(http_error) - if http_error.respbody is not None: - message += '\n' + http_error.respbody.decode('utf-8-sig') - raise AzureHttpError(message, http_error.status) - - -def _dont_fail_on_exist(error): - ''' don't throw exception if the resource exists. - This is called by create_* APIs with fail_on_exist=False''' - if isinstance(error, AzureConflictHttpError): - return False - raise error - - -def _dont_fail_not_exist(error): - ''' don't throw exception if the resource doesn't exist. - This is called by delete_* APIs with fail_on_exist=False''' - if isinstance(error, AzureMissingResourceHttpError): - return False - raise error - - -def _validate_type_bytes(param_name, param): - if not isinstance(param, bytes): - raise TypeError(_ERROR_VALUE_SHOULD_BE_BYTES.format(param_name)) - - -def _validate_not_none(param_name, param): - if param is None: - raise ValueError(_ERROR_VALUE_NONE.format(param_name)) diff --git a/sdk/servicebus/azure-servicebus/azure/servicebus/_control_client/_common_models.py b/sdk/servicebus/azure-servicebus/azure/servicebus/_control_client/_common_models.py deleted file mode 100644 index a1f3ede58da7..000000000000 --- a/sdk/servicebus/azure-servicebus/azure/servicebus/_control_client/_common_models.py +++ /dev/null @@ -1,86 +0,0 @@ -# ------------------------------------------------------------------------ -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# ------------------------------------------------------------------------- - -# pylint: disable=too-few-public-methods - - -class WindowsAzureData(object): - - ''' This is the base of data class. - It is only used to check whether it is instance or not. ''' - - def __iter__(self): - for attr, value in self.__dict__.items(): - yield attr, value - - -class Feed(object): - pass - - -class _Base64String(str): - pass - - -class HeaderDict(dict): - - def __getitem__(self, index): - return super(HeaderDict, self).__getitem__(index.lower()) - - -class _dict_of(dict): - - """a dict which carries with it the xml element names for key,val. - Used for deserializaion and construction of the lists""" - - def __init__(self, pair_xml_element_name, key_xml_element_name, - value_xml_element_name): - self.pair_xml_element_name = pair_xml_element_name - self.key_xml_element_name = key_xml_element_name - self.value_xml_element_name = value_xml_element_name - super(_dict_of, self).__init__() - - -class _list_of(list): - - """a list which carries with it the type that's expected to go in it. - Used for deserializaion and construction of the lists""" - - def __init__(self, list_type, xml_element_name=None): - self.list_type = list_type - if xml_element_name is None: - self.xml_element_name = list_type.__name__ - else: - self.xml_element_name = xml_element_name - super(_list_of, self).__init__() - - -class _scalar_list_of(list): - """a list of scalar types which carries with it the type that's - expected to go in it along with its xml element name. - Used for deserializaion and construction of the lists""" - - def __init__(self, list_type, xml_element_name): - self.list_type = list_type - self.xml_element_name = xml_element_name - super(_scalar_list_of, self).__init__() - - -class _xml_attribute: - """a accessor to XML attributes - expected to go in it along with its xml element name. - Used for deserialization and construction""" - - def __init__(self, xml_element_name): - self.xml_element_name = xml_element_name - - -try: - _unicode_type = unicode # type: ignore - _strtype = basestring # type: ignore -except NameError: - _unicode_type = str - _strtype = str diff --git a/sdk/servicebus/azure-servicebus/azure/servicebus/_control_client/_common_serialization.py b/sdk/servicebus/azure-servicebus/azure/servicebus/_control_client/_common_serialization.py deleted file mode 100644 index f2daaf3cf3ef..000000000000 --- a/sdk/servicebus/azure-servicebus/azure/servicebus/_control_client/_common_serialization.py +++ /dev/null @@ -1,518 +0,0 @@ -# ------------------------------------------------------------------------ -# 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 -from xml.sax.saxutils import escape as xml_escape -try: - from xml.etree import cElementTree as ETree -except ImportError: - from xml.etree import ElementTree as ETree # type: ignore -try: - from cStringIO import StringIO -except ImportError: - from io import StringIO - -from ._common_conversion import _str, _decode_base64_to_text -from ._common_models import ( - Feed, - HeaderDict, - WindowsAzureData, - _Base64String, - _dict_of, - _list_of, - _scalar_list_of, - _unicode_type, - _xml_attribute) - - -_etree_entity_feed_namespaces = { - 'atom': 'http://www.w3.org/2005/Atom', - 'm': 'http://schemas.microsoft.com/ado/2007/08/dataservices/metadata', - 'd': 'http://schemas.microsoft.com/ado/2007/08/dataservices', -} - - -def _make_etree_ns_attr_name(ns, name): - return '{' + ns + '}' + name - - -def _get_etree_tag_name_without_ns(tag): - val = tag.partition('}')[2] - return val - - -def _get_etree_text(element): - text = element.text - return text if text is not None else '' - - -def _get_readable_id(id_name, id_prefix_to_skip): - """simplified an id to be more friendly for us people""" - # id_name is in the form 'https://namespace.host.suffix/name' - # where name may contain a forward slash! - pos = id_name.find('//') - if pos != -1: - pos += 2 - if id_prefix_to_skip: - pos = id_name.find(id_prefix_to_skip, pos) - if pos != -1: - pos += len(id_prefix_to_skip) - pos = id_name.find('/', pos) - if pos != -1: - return id_name[pos + 1:] - return id_name - - -def _to_datetime(strtime): - return datetime.strptime(strtime, "%Y-%m-%dT%H:%M:%S.%f") - -_KNOWN_SERIALIZATION_XFORMS = { - 'last_modified': 'Last-Modified', - 'cache_control': 'Cache-Control', -} - - -def _get_serialization_name(element_name): - """converts a Python name into a serializable name""" - known = _KNOWN_SERIALIZATION_XFORMS.get(element_name) - if known is not None: - return known - - if element_name.startswith('x_ms_'): - return element_name.replace('_', '-') - if element_name.endswith('_id'): - element_name = element_name.replace('_id', 'ID') - for name in ['content_', 'last_modified', 'if_', 'cache_control']: - if element_name.startswith(name): - element_name = element_name.replace('_', '-_') - - return ''.join(name.capitalize() for name in element_name.split('_')) - - -def _convert_class_to_xml(source, xml_prefix=True): - if source is None: - return '' - - xmlstr = '' - if xml_prefix: - xmlstr = '' - - if isinstance(source, list): - for value in source: - xmlstr += _convert_class_to_xml(value, False) - elif isinstance(source, WindowsAzureData): - class_name = source.__class__.__name__ - xmlstr += '<' + class_name + '>' - for name, value in vars(source).items(): - if value is not None: - if isinstance(value, (list, WindowsAzureData)): - xmlstr += _convert_class_to_xml(value, False) - else: - xmlstr += ('<' + _get_serialization_name(name) + '>' + - xml_escape(str(value)) + '') - xmlstr += '' - return xmlstr - - -def _set_continuation_from_response_headers(feeds, response): - x_ms_continuation = HeaderDict() - for name, value in response.headers: - if 'x-ms-continuation' in name: - x_ms_continuation[name[len('x-ms-continuation') + 1:]] = value - if x_ms_continuation: - setattr(feeds, 'x_ms_continuation', x_ms_continuation) - - -def _get_request_body(request_body): - '''Converts an object into a request body. If it's None - we'll return an empty string, if it's one of our objects it'll - convert it to XML and return it. Otherwise we just use the object - directly''' - if request_body is None: - return b'' - - if isinstance(request_body, WindowsAzureData): - request_body = _convert_class_to_xml(request_body) - - if isinstance(request_body, bytes): - return request_body - - if isinstance(request_body, _unicode_type): - return request_body.encode('utf-8') - - request_body = str(request_body) - if isinstance(request_body, _unicode_type): - return request_body.encode('utf-8') - - return request_body - - -class _ETreeXmlToObject(object): - @staticmethod - def parse_response(response, return_type): - ''' - Parse the HTTPResponse's body and fill all the data into a class of - return_type. - ''' - root = ETree.fromstring(response.body) - xml_name = getattr(return_type, '_xml_name', return_type.__name__) - if root.tag == xml_name: - return _ETreeXmlToObject._parse_response_body_from_xml_node(root, return_type) - - return None - - - @staticmethod - def parse_enum_results_list(response, return_type, resp_type, item_type): - """resp_body is the XML we received - resp_type is a string, such as Containers, - return_type is the type we're constructing, such as ContainerEnumResults - item_type is the type object of the item to be created, such as Container - - This function then returns a ContainerEnumResults object with the - containers member populated with the results. - """ - - # parsing something like: - # - # - # - # - # - # - # - # - return_obj = return_type() - root = ETree.fromstring(response.body) - - items = [] - - for container_element in root.findall(resp_type): - for item_element in container_element.findall(resp_type[:-1]): - items.append(_ETreeXmlToObject.fill_instance_element(item_element, item_type)) - - for name, value in vars(return_obj).items(): - # queues, Queues, this is the list its self which we populated - # above - if name == resp_type.lower(): - # the list its self. - continue - value = _ETreeXmlToObject.fill_data_member(root, name, value) - if value is not None: - setattr(return_obj, name, value) - - setattr(return_obj, resp_type.lower(), items) - return return_obj - - - @staticmethod - def parse_simple_list(response, return_type, item_type, list_name): - respbody = response.body - res = return_type() - res_items = [] - root = ETree.fromstring(respbody) - item_name = item_type.__name__ - for item in root.findall(item_name): - res_items.append(_ETreeXmlToObject.fill_instance_element(item, item_type)) - - setattr(res, list_name, res_items) - return res - - - @staticmethod - def convert_response_to_feeds(response, convert_func): - - if response is None: - return None - - feeds = _list_of(Feed) - - _set_continuation_from_response_headers(feeds, response) - - root = ETree.fromstring(response.body) - - # some feeds won't have the 'feed' element, just a single 'entry' element - root_name = _get_etree_tag_name_without_ns(root.tag) - if root_name == 'feed': - entries = root.findall("./atom:entry", _etree_entity_feed_namespaces) - elif root_name == 'entry': - entries = [root] - else: - raise NotImplementedError() - - for entry in entries: - feeds.append(convert_func(entry)) - - return feeds - - - @staticmethod - def get_entry_properties_from_element(element, include_id, id_prefix_to_skip=None, use_title_as_id=False): - ''' get properties from element tree element ''' - properties = {} - - etag = element.attrib.get(_make_etree_ns_attr_name(_etree_entity_feed_namespaces['m'], 'etag'), None) - if etag is not None: - properties['etag'] = etag - - updated = element.findtext('./atom:updated', '', _etree_entity_feed_namespaces) - if updated: - properties['updated'] = updated - - author_name = element.findtext('./atom:author/atom:name', '', _etree_entity_feed_namespaces) - if author_name: - properties['author'] = author_name - - if include_id: - if use_title_as_id: - title = element.findtext('./atom:title', '', _etree_entity_feed_namespaces) - if title: - properties['name'] = title - else: - element_id = element.findtext('./atom:id', '', _etree_entity_feed_namespaces) - if element_id: - properties['name'] = _get_readable_id(element_id, id_prefix_to_skip) - - return properties - - - @staticmethod - def fill_instance_element(element, return_type): - """Converts a DOM element into the specified object""" - return _ETreeXmlToObject._parse_response_body_from_xml_node(element, return_type) - - - @staticmethod - def fill_data_member(xmldoc, element_name, data_member): - element = xmldoc.find(_get_serialization_name(element_name)) - if element is None: - return None - - value = _get_etree_text(element) - - if data_member is None: - return value - if isinstance(data_member, datetime): - return _to_datetime(value) - if isinstance(data_member, bool): - return value.lower() != 'false' - return type(data_member)(value) - - - @staticmethod - def _parse_response_body_from_xml_node(node, return_type): - ''' - parse the xml and fill all the data into a class of return_type - ''' - return_obj = return_type() - _ETreeXmlToObject._fill_data_to_return_object(node, return_obj) - - return return_obj - - - @staticmethod - def _fill_instance_child(xmldoc, element_name, return_type): - '''Converts a child of the current dom element to the specified type. - ''' - element = xmldoc.find(_get_serialization_name(element_name)) - if element is None: - return None - - return_obj = return_type() - _ETreeXmlToObject._fill_data_to_return_object(element, return_obj) - - return return_obj - - - @staticmethod - def _fill_data_to_return_object(node, return_obj): - members = dict(vars(return_obj)) - for name, value in members.items(): - if isinstance(value, _list_of): - setattr(return_obj, - name, - _ETreeXmlToObject._fill_list_of(node, value.list_type, value.xml_element_name)) - elif isinstance(value, _scalar_list_of): - setattr(return_obj, - name, - _ETreeXmlToObject._fill_scalar_list_of( - node, - value.list_type, - _get_serialization_name(name), - value.xml_element_name)) - elif isinstance(value, _dict_of): - setattr(return_obj, - name, - _ETreeXmlToObject._fill_dict_of( - node, - _get_serialization_name(name), - value.pair_xml_element_name, - value.key_xml_element_name, - value.value_xml_element_name)) - elif isinstance(value, _xml_attribute): - real_value = node.attrib.get(value.xml_element_name, None) - if real_value is not None: - setattr(return_obj, name, real_value) - elif isinstance(value, WindowsAzureData): - setattr(return_obj, - name, - _ETreeXmlToObject._fill_instance_child(node, name, value.__class__)) - elif isinstance(value, dict): - setattr(return_obj, - name, - _ETreeXmlToObject._fill_dict(node, _get_serialization_name(name))) - elif isinstance(value, _Base64String): - value = _ETreeXmlToObject.fill_data_member(node, name, '') - if value is not None: - value = _decode_base64_to_text(value) - # always set the attribute, so we don't end up returning an object - # with type _Base64String - setattr(return_obj, name, value) - else: - value = _ETreeXmlToObject.fill_data_member(node, name, value) - if value is not None: - setattr(return_obj, name, value) - - - @staticmethod - def _fill_list_of(xmldoc, element_type, xml_element_name): - return [_ETreeXmlToObject._parse_response_body_from_xml_node(xmlelement, element_type) \ - for xmlelement in xmldoc.findall(xml_element_name)] - - - @staticmethod - def _fill_scalar_list_of(xmldoc, element_type, parent_xml_element_name, - xml_element_name): - '''Converts an xml fragment into a list of scalar types. The parent xml - element contains a flat list of xml elements which are converted into the - specified scalar type and added to the list. - .. admonition:: Example: - xmldoc= - - http://{storage-service-name}.blob.core.windows.net/ - http://{storage-service-name}.queue.core.windows.net/ - http://{storage-service-name}.table.core.windows.net/ - - element_type=str - parent_xml_element_name='Endpoints' - xml_element_name='Endpoint' - ''' - raise NotImplementedError('_scalar_list_of not supported') - - - @staticmethod - def _fill_dict(xmldoc, element_name): - container_element = xmldoc.find(element_name) - if container_element is not None: - return_obj = {} - for item_element in container_element.getchildren(): - return_obj[item_element.tag] = _get_etree_text(item_element) - return return_obj - return None - - - @staticmethod - def _fill_dict_of(xmldoc, parent_xml_element_name, pair_xml_element_name, - key_xml_element_name, value_xml_element_name): - '''Converts an xml fragment into a dictionary. The parent xml element - contains a list of xml elements where each element has a child element for - the key, and another for the value. - .. admonition:: Example: - xmldoc= - - - Ext1 - Val1 - - - Ext2 - Val2 - - - element_type=str - parent_xml_element_name='ExtendedProperties' - pair_xml_element_name='ExtendedProperty' - key_xml_element_name='Name' - value_xml_element_name='Value' - ''' - raise NotImplementedError('_dict_of not supported') - - -class _XmlWriter(object): - - def __init__(self, indent_string=None): - self.file = StringIO() - self.indent_level = 0 - self.indent_string = indent_string - - def _before_element(self, indent_change): - if self.indent_string: - self.indent_level += indent_change - self.file.write(self.indent_string * self.indent_level) - - def _after_element(self, indent_change): - if self.indent_string: - self.file.write('\n') - self.indent_level += indent_change - - def _write_attrs(self, attrs): - for attr_name, attr_val, attr_conv in attrs: - if attr_val is not None: - self.file.write(' ') - self.file.write(attr_name) - self.file.write('="') - val = attr_conv(_str(attr_val)) if attr_conv else _str(attr_val) - val = xml_escape(val) - self.file.write(val) - self.file.write('"') - - def element(self, name, val, val_conv=None, attrs=None): - self._before_element(0) - self.file.write('<') - self.file.write(name) - if attrs: - self._write_attrs(attrs) - self.file.write('>') - val = val_conv(_str(val)) if val_conv else _str(val) - val = xml_escape(val) - self.file.write(val) - self.file.write('') - self._after_element(0) - - def elements(self, name_val_convs): - for name, val, conv in name_val_convs: - if val is not None: - self.element(name, val, conv) - - def preprocessor(self, text): - self._before_element(0) - self.file.write(text) - self._after_element(0) - - def start(self, name, attrs=None): - self._before_element(0) - self.file.write('<') - self.file.write(name) - if attrs: - self._write_attrs(attrs) - self.file.write('>') - self._after_element(1) - - def end(self, name): - self._before_element(-1) - self.file.write('') - self._after_element(0) - - def xml(self): - return self.file.getvalue() - - def close(self): - self.file.close() diff --git a/sdk/servicebus/azure-servicebus/azure/servicebus/_control_client/_http/__init__.py b/sdk/servicebus/azure-servicebus/azure/servicebus/_control_client/_http/__init__.py deleted file mode 100644 index ce8ec601360c..000000000000 --- a/sdk/servicebus/azure-servicebus/azure/servicebus/_control_client/_http/__init__.py +++ /dev/null @@ -1,73 +0,0 @@ -# ------------------------------------------------------------------------ -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# ------------------------------------------------------------------------- - - # pylint: disable=too-few-public-methods - - -class HTTPError(Exception): - - ''' HTTP Exception when response status code >= 300 ''' - - def __init__(self, status, message, respheader, respbody): - '''Creates a new HTTPError with the specified status, message, - response headers and body''' - self.status = status - self.respheader = respheader - self.respbody = respbody - Exception.__init__(self, message) - - -class HTTPResponse(object): - - """Represents a response from an HTTP request. An HTTPResponse has the - following attributes: - - status: - the status code of the response - message: - the message - headers: - the returned headers, as a list of (name, value) pairs - body: - the body of the response - """ - - def __init__(self, status, message, headers, body): - self.status = status - self.message = message - self.headers = headers - self.body = body - - -class HTTPRequest(object): - - '''Represents an HTTP Request. An HTTP Request consists of the following - attributes: - host: - the host name to connect to - method: - the method to use to connect (string such as GET, POST, PUT, etc.) - path: - the uri fragment - query: - query parameters specified as a list of (name, value) pairs - headers: - header values specified as (name, value) pairs - body: - the body of the request. - protocol_override: - specify to use this protocol instead of the global one stored in - _HTTPClient. - ''' - - def __init__(self): - self.host = '' - self.method = '' - self.path = '' - self.query = [] # list of (name, value) - self.headers = [] # list of (header name, header value) - self.body = '' - self.protocol_override = None diff --git a/sdk/servicebus/azure-servicebus/azure/servicebus/_control_client/_http/httpclient.py b/sdk/servicebus/azure-servicebus/azure/servicebus/_control_client/_http/httpclient.py deleted file mode 100644 index ed4a14cb796b..000000000000 --- a/sdk/servicebus/azure-servicebus/azure/servicebus/_control_client/_http/httpclient.py +++ /dev/null @@ -1,215 +0,0 @@ -# ------------------------------------------------------------------------ -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# ------------------------------------------------------------------------- -# pylint: skip-file -import base64 -try: - from httplib import ( - HTTP_PORT, - HTTPS_PORT) - from urlparse import urlparse - from urllib2 import quote as url_quote -except ImportError: - from http.client import ( - HTTP_PORT, - HTTPS_PORT) - from urllib.parse import urlparse - from urllib.parse import quote as url_quote - -from . import HTTPError, HTTPResponse -from .requestsclient import _RequestsConnection - - -DEBUG_REQUESTS = False -DEBUG_RESPONSES = False - - -class _HTTPClient(object): # pylint: disable=too-many-instance-attributes - - ''' - Takes the request and sends it to cloud service and returns the response. - ''' - - def __init__(self, service_instance, cert_file=None, protocol='https', - request_session=None, timeout=65, user_agent='', api_version=None): - ''' - service_instance: - service client instance. - cert_file: - certificate file name/location. This is only used in hosted - service management. - protocol: - HTTP or HTTPS. - request_session: - session object created with requests library (or compatible). - timeout: - timeout for the HTTP request, in seconds. - user_agent: - user agent string to set in HTTP header. - ''' - self.service_instance = service_instance - self.cert_file = cert_file - self.protocol = protocol - self.proxy_host = None - self.proxy_port = None - self.proxy_user = None - self.proxy_password = None - self.request_session = request_session - self.timeout = timeout - self.user_agent = user_agent - self.api_version = api_version - - def set_proxy(self, host, port, user, password): - ''' - Sets the proxy server host and port for the HTTP CONNECT Tunnelling. - - host: - Address of the proxy. Ex: '192.168.0.100' - port: - Port of the proxy. Ex: 6000 - user: - User for proxy authorization. - password: - Password for proxy authorization. - ''' - self.proxy_host = host - self.proxy_port = port - self.proxy_user = user - self.proxy_password = password - - def get_uri(self, request): - ''' Return the target uri for the request.''' - protocol = request.protocol_override \ - if request.protocol_override else self.protocol - protocol = protocol.lower() - port = HTTP_PORT if protocol == 'http' else HTTPS_PORT - return protocol + '://' + request.host + ':' + str(port) + request.path - - def get_connection(self, request): - ''' Create connection for the request. ''' - protocol = request.protocol_override \ - if request.protocol_override else self.protocol - protocol = protocol.lower() - target_host = request.host - # target_port = HTTP_PORT if protocol == 'http' else HTTPS_PORT - - connection = _RequestsConnection( - target_host, protocol, self.request_session, self.timeout) - proxy_host = self.proxy_host - proxy_port = self.proxy_port - - if self.proxy_host: - headers = None - if self.proxy_user and self.proxy_password: - auth = base64.b64encode("{0}:{1}".format(self.proxy_user, self.proxy_password).encode()) - headers = {'Proxy-Authorization': 'Basic {0}'.format(auth.decode())} - connection.set_tunnel(proxy_host, int(proxy_port), headers) - - return connection - - def send_request_headers(self, connection, request_headers): - # pylint: disable=protected-access - if self.proxy_host and self.request_session is None: - for i in connection._buffer: - if i.startswith(b"Host: "): - connection._buffer.remove(i) - connection.putheader( - 'Host', "{0}:{1}".format(connection._tunnel_host, connection._tunnel_port)) - - for name, value in request_headers: - if value: - connection.putheader(name, value) - - connection.putheader('User-Agent', self.user_agent) - connection.endheaders() - - def send_request_body(self, connection, request_body): # pylint: disable=no-self-use - if request_body: - assert isinstance(request_body, bytes) - connection.send(request_body) - else: - connection.send(None) - - def _update_request_uri_query(self, request): - '''pulls the query string out of the URI and moves it into - the query portion of the request object. If there are already - query parameters on the request the parameters in the URI will - appear after the existing parameters''' - - if '?' in request.path: - request.path, _, query_string = request.path.partition('?') - if query_string: - query_params = query_string.split('&') - for query in query_params: - if '=' in query: - name, _, value = query.partition('=') - request.query.append((name, value)) - if self.api_version: - request.query.append(('api-version', self.api_version)) - - request.path = url_quote(request.path, '/()$=\',') - - # add encoded queries to request.path. - if request.query: - request.path += '?' - for name, value in request.query: - if value is not None: - request.path += name + '=' + url_quote(value, '/()$=\',') + '&' - request.path = request.path[:-1] - - return request.path, request.query - - def perform_request(self, request): - ''' Sends request to cloud service server and return the response. ''' - connection = self.get_connection(request) - try: - connection.putrequest(request.method, request.path) - - self.send_request_headers(connection, request.headers) - self.send_request_body(connection, request.body) - - if DEBUG_REQUESTS and request.body: - print('request:') - try: - print(request.body) - except: # pylint: disable=bare-except - pass - - resp = connection.getresponse() - status = int(resp.status) - message = resp.reason - respheaders = resp.getheaders() - - # for consistency across platforms, make header names lowercase - for i, value in enumerate(respheaders): - respheaders[i] = (value[0].lower(), value[1]) - - respbody = None - if resp.length is None: - respbody = resp.read() - elif resp.length > 0: - respbody = resp.read(resp.length) - - if DEBUG_RESPONSES and respbody: - print('response:') - try: - print(respbody) - except: # pylint: disable=bare-except - pass - - response = HTTPResponse( - status, resp.reason, respheaders, respbody) - if status == 307: - new_url = urlparse(dict(respheaders)['location']) - request.host = new_url.hostname - request.path = new_url.path - request.path, request.query = self._update_request_uri_query(request) - return self.perform_request(request) - if status >= 300: - raise HTTPError(status, message, respheaders, respbody) - - return response - finally: - connection.close() diff --git a/sdk/servicebus/azure-servicebus/azure/servicebus/_control_client/_http/requestsclient.py b/sdk/servicebus/azure-servicebus/azure/servicebus/_control_client/_http/requestsclient.py deleted file mode 100644 index c311ec7fdfc1..000000000000 --- a/sdk/servicebus/azure-servicebus/azure/servicebus/_control_client/_http/requestsclient.py +++ /dev/null @@ -1,81 +0,0 @@ -# ------------------------------------------------------------------------ -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# ------------------------------------------------------------------------- -# pylint: skip-file - - -class _Response(object): - - ''' Response class corresponding to the response returned from httplib - HTTPConnection. ''' - - def __init__(self, response): - self.status = response.status_code - self.reason = response.reason - self.respbody = response.content - self.length = len(response.content) - self.headers = [] - for key, name in response.headers.items(): - self.headers.append((key.lower(), name)) - - def getheaders(self): - '''Returns response headers.''' - return self.headers - - def read(self, _length=None): - '''Returns response body. ''' - if _length: - return self.respbody[:_length] - return self.respbody - - -class _RequestsConnection(object): # pylint: disable=too-many-instance-attributes - - def __init__(self, host, protocol, session, timeout): - self.host = host - self.protocol = protocol - self.session = session - self.headers = {} - self.method = None - self.body = None - self.response = None - self.uri = None - self.timeout = timeout - - # By default, requests adds an Accept:*/* to the session, which causes - # issues with some Azure REST APIs. Removing it here gives us the flexibility - # to add it back on a case by case basis via putheader. - if 'Accept' in self.session.headers: - del self.session.headers['Accept'] - - def close(self): - pass - - def set_tunnel(self, host, port=None, headers=None): - self.session.proxies['http'] = 'http://{}:{}'.format(host, port) - self.session.proxies['https'] = 'https://{}:{}'.format(host, port) - if headers: - self.session.headers.update(headers) - - def set_proxy_credentials(self, user, password): - pass - - def putrequest(self, method, uri): - self.method = method - self.uri = self.protocol + '://' + self.host + uri - - def putheader(self, name, value): - self.headers[name] = value - - def endheaders(self): - pass - - def send(self, request_body): - self.response = self.session.request( - self.method, self.uri, data=request_body, - headers=self.headers, timeout=self.timeout) - - def getresponse(self): - return _Response(self.response) diff --git a/sdk/servicebus/azure-servicebus/azure/servicebus/_control_client/_serialization.py b/sdk/servicebus/azure-servicebus/azure/servicebus/_control_client/_serialization.py deleted file mode 100644 index d72a83fd91cb..000000000000 --- a/sdk/servicebus/azure-servicebus/azure/servicebus/_control_client/_serialization.py +++ /dev/null @@ -1,569 +0,0 @@ -# ------------------------------------------------------------------------ -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# ------------------------------------------------------------------------- - -import json -from datetime import datetime -from .models import ( - AzureServiceBusResourceNotFound, - Queue, - Topic, - Subscription, - Rule, - EventHub, - AuthorizationRule, - Message) -from ._common_conversion import _lower -from ._common_serialization import ( - _XmlWriter, - _make_etree_ns_attr_name, - _get_etree_text, - ETree, - _ETreeXmlToObject) -from ._common_error import ( - _ERROR_EVENT_HUB_NOT_FOUND, - _ERROR_QUEUE_NOT_FOUND, - _ERROR_TOPIC_NOT_FOUND, - _general_error_handler) - - -class _XmlSchemas: # pylint: disable=too-few-public-methods - SchemaInstance = 'http://www.w3.org/2001/XMLSchema-instance' - SerializationArrays = 'http://schemas.microsoft.com/2003/10/Serialization/Arrays' - ServiceBus = 'http://schemas.microsoft.com/netservices/2010/10/servicebus/connect' - DataServices = 'http://schemas.microsoft.com/ado/2007/08/dataservices' - DataServicesMetadata = 'http://schemas.microsoft.com/ado/2007/08/dataservices/metadata' - Atom = 'http://www.w3.org/2005/Atom' - - -def _create_message(response, service_instance): - ''' Create message from response. - - response: - response from Service Bus cloud server. - service_instance: - the Service Bus client. - ''' - respbody = response.body - custom_properties = {} - broker_properties = None - message_type = None - message_location = None - - # gets all information from respheaders. - for name, value in response.headers: - if name.lower() == 'brokerproperties': - broker_properties = json.loads(value) - elif name.lower() == 'content-type': - message_type = value - elif name.lower() == 'location': - message_location = value - # Exclude common HTTP headers to avoid noise. List - # is not exhaustive. At worst, custom properties will contains - # an unexpected content generated by the webserver and not the customer. - elif name.lower() not in ['transfer-encoding', - 'server', - 'date', - 'strict-transport-security']: - # Follow the spec: - # https://docs.microsoft.com/rest/api/servicebus/message-headers-and-properties - if '"' in value: - value = value[1:-1].replace('\\"', '"') - try: - custom_properties[name] = datetime.strptime( - value, '%a, %d %b %Y %H:%M:%S GMT') - except ValueError: - custom_properties[name] = value - elif value.lower() == 'true': - custom_properties[name] = True - elif value.lower() == 'false': - custom_properties[name] = False - else: # in theory, only int or float - try: - # int('3.1') doesn't work so need to get float('3.14') first - float_value = float(value) - if str(int(float_value)) == value: - custom_properties[name] = int(value) - else: - custom_properties[name] = float_value - except ValueError: - # If we are here, this header does not respect the spec. - # Could be an unexpected HTTP header or an invalid - # header value. In both case we ignore without failing. - pass - - if message_type is None: - message = Message( - respbody, service_instance, message_location, custom_properties, - 'application/atom+xml;type=entry;charset=utf-8', broker_properties) - else: - message = Message(respbody, service_instance, message_location, - custom_properties, message_type, broker_properties) - return message - -# convert functions - -_etree_sb_feed_namespaces = { - 'atom': _XmlSchemas.Atom, - 'i': _XmlSchemas.SchemaInstance, - 'sb': _XmlSchemas.ServiceBus, - 'arrays': _XmlSchemas.SerializationArrays, -} - - -def _convert_response_to_rule(response): - root = ETree.fromstring(response.body) - return _convert_etree_element_to_rule(root) - - -def _convert_etree_element_to_rule(entry_element): - ''' Converts entry element to rule object. - - The format of xml for rule: - - - - - MyProperty='XYZ' - - - set MyProperty2 = 'ABC' - - - - - ''' - rule = Rule() - - rule_element = entry_element.find('./atom:content/sb:RuleDescription', _etree_sb_feed_namespaces) - if rule_element is not None: - filter_element = rule_element.find('./sb:Filter', _etree_sb_feed_namespaces) - if filter_element is not None: - rule.filter_type = filter_element.attrib.get( - _make_etree_ns_attr_name(_etree_sb_feed_namespaces['i'], 'type'), None) - sql_exp_element = filter_element.find('./sb:SqlExpression', _etree_sb_feed_namespaces) - if sql_exp_element is not None: - rule.filter_expression = sql_exp_element.text - - action_element = rule_element.find('./sb:Action', _etree_sb_feed_namespaces) - if action_element is not None: - rule.action_type = action_element.attrib.get( - _make_etree_ns_attr_name(_etree_sb_feed_namespaces['i'], 'type'), None) - sql_exp_element = action_element.find('./sb:SqlExpression', _etree_sb_feed_namespaces) - if sql_exp_element is not None: - rule.action_expression = sql_exp_element.text - - - # extract id, updated and name value from feed entry and set them of rule. - for name, value in _ETreeXmlToObject.get_entry_properties_from_element( - entry_element, True, '/rules').items(): - setattr(rule, name, value) - - return rule - - -def _convert_response_to_queue(response): - root = ETree.fromstring(response.body) - return _convert_etree_element_to_queue(root) - - -def _convert_response_to_event_hub(response): - root = ETree.fromstring(response.body) - return _convert_etree_element_to_event_hub(root) - - -def _parse_bool(value): - if value.lower() == 'true': - return True - return False - - -def _read_etree_element(parent_element, child_element_name, target_object, target_field_name, converter): - child_element = parent_element.find('./sb:{0}'.format(child_element_name), _etree_sb_feed_namespaces) - if child_element is not None: - field_value = _get_etree_text(child_element) - if converter is not None: - field_value = converter(field_value) - setattr(target_object, target_field_name, field_value) - return True - return False - - -def _convert_etree_element_to_queue(entry_element): - ''' Converts entry element to queue object. - - The format of xml response for queue: - - 10000 - PT5M - PT2M - False - False - ... - - - ''' - queue = Queue() - - # get node for each attribute in Queue class, if nothing found then the - # response is not valid xml for Queue. - invalid_queue = True - - queue_element = entry_element.find('./atom:content/sb:QueueDescription', _etree_sb_feed_namespaces) - if queue_element is not None: - mappings = [ - ('LockDuration', 'lock_duration', None), - ('MaxSizeInMegabytes', 'max_size_in_megabytes', int), - ('RequiresDuplicateDetection', 'requires_duplicate_detection', _parse_bool), - ('RequiresSession', 'requires_session', _parse_bool), - ('DefaultMessageTimeToLive', 'default_message_time_to_live', None), - ('DeadLetteringOnMessageExpiration', 'dead_lettering_on_message_expiration', _parse_bool), - ('DuplicateDetectionHistoryTimeWindow', 'duplicate_detection_history_time_window', None), - ('EnableBatchedOperations', 'enable_batched_operations', _parse_bool), - ('MaxDeliveryCount', 'max_delivery_count', int), - ('MessageCount', 'message_count', int), - ('SizeInBytes', 'size_in_bytes', int), - ] - - for mapping in mappings: - if _read_etree_element(queue_element, mapping[0], queue, mapping[1], mapping[2]): - invalid_queue = False - - if invalid_queue: - raise AzureServiceBusResourceNotFound(_ERROR_QUEUE_NOT_FOUND) - - # extract id, updated and name value from feed entry and set them of queue. - for name, value in _ETreeXmlToObject.get_entry_properties_from_element( - entry_element, True).items(): - setattr(queue, name, value) - - return queue - - -def _convert_response_to_topic(response): - root = ETree.fromstring(response.body) - return _convert_etree_element_to_topic(root) - - -def _convert_etree_element_to_topic(entry_element): - '''Converts entry element to topic - - The xml format for topic: - - - - P10675199DT2H48M5.4775807S - 1024 - false - P7D - true - - - - ''' - topic = Topic() - - invalid_topic = True - - topic_element = entry_element.find('./atom:content/sb:TopicDescription', _etree_sb_feed_namespaces) - if topic_element is not None: - mappings = [ - ('DefaultMessageTimeToLive', 'default_message_time_to_live', None), - ('MaxSizeInMegabytes', 'max_size_in_megabytes', int), - ('RequiresDuplicateDetection', 'requires_duplicate_detection', _parse_bool), - ('DuplicateDetectionHistoryTimeWindow', 'duplicate_detection_history_time_window', None), - ('EnableBatchedOperations', 'enable_batched_operations', _parse_bool), - ('SizeInBytes', 'size_in_bytes', int), - ] - - for mapping in mappings: - if _read_etree_element(topic_element, mapping[0], topic, mapping[1], mapping[2]): - invalid_topic = False - - if invalid_topic: - raise AzureServiceBusResourceNotFound(_ERROR_TOPIC_NOT_FOUND) - - # extract id, updated and name value from feed entry and set them of topic. - for name, value in _ETreeXmlToObject.get_entry_properties_from_element( - entry_element, True).items(): - setattr(topic, name, value) - - return topic - - -def _convert_response_to_subscription(response): - root = ETree.fromstring(response.body) - return _convert_etree_element_to_subscription(root) - - -def _convert_etree_element_to_subscription(entry_element): - '''Converts entry element to subscription - - The xml format for subscription: - - - - PT5M - false - P10675199DT2H48M5.4775807S - false - true - - - - ''' - subscription = Subscription() - - subscription_element = entry_element.find('./atom:content/sb:SubscriptionDescription', _etree_sb_feed_namespaces) - if subscription_element is not None: - mappings = [ - ('LockDuration', 'lock_duration', None), - ('RequiresSession', 'requires_session', _parse_bool), - ('DefaultMessageTimeToLive', 'default_message_time_to_live', None), - ('DeadLetteringOnFilterEvaluationExceptions', 'dead_lettering_on_filter_evaluation_exceptions', _parse_bool), # pylint: disable=line-too-long - ('DeadLetteringOnMessageExpiration', 'dead_lettering_on_message_expiration', _parse_bool), - ('EnableBatchedOperations', 'enable_batched_operations', _parse_bool), - ('MaxDeliveryCount', 'max_delivery_count', int), - ('MessageCount', 'message_count', int), - ] - - for mapping in mappings: - _read_etree_element(subscription_element, mapping[0], subscription, mapping[1], mapping[2]) - - for name, value in _ETreeXmlToObject.get_entry_properties_from_element( - entry_element, True, '/subscriptions').items(): - setattr(subscription, name, value) - - return subscription - - -def _convert_etree_element_to_event_hub(entry_element): - hub = EventHub() - - invalid_event_hub = True - # get node for each attribute in EventHub class, if nothing found then the - # response is not valid xml for EventHub. - - hub_element = entry_element.find('./atom:content/sb:EventHubDescription', _etree_sb_feed_namespaces) - if hub_element is not None: # pylint: disable=too-many-nested-blocks - mappings = [ - ('SizeInBytes', 'size_in_bytes', int), - ('MessageRetentionInDays', 'message_retention_in_days', int), - ('Status', 'status', None), - ('UserMetadata', 'user_metadata', None), - ('PartitionCount', 'partition_count', int), - ('EntityAvailableStatus', 'entity_available_status', None), - ] - - for mapping in mappings: - if _read_etree_element(hub_element, mapping[0], hub, mapping[1], mapping[2]): - invalid_event_hub = False - - ids = hub_element.find('./sb:PartitionIds', _etree_sb_feed_namespaces) - if ids is not None: - for id_node in ids.findall('./arrays:string', _etree_sb_feed_namespaces): - value = _get_etree_text(id_node) - if value: - hub.partition_ids.append(value) - - rules_nodes = hub_element.find('./sb:AuthorizationRules', _etree_sb_feed_namespaces) - if rules_nodes is not None: - invalid_event_hub = False - for rule_node in rules_nodes.findall('./sb:AuthorizationRule', _etree_sb_feed_namespaces): - rule = AuthorizationRule() - - mappings = [ - ('ClaimType', 'claim_type', None), - ('ClaimValue', 'claim_value', None), - ('ModifiedTime', 'modified_time', None), - ('CreatedTime', 'created_time', None), - ('KeyName', 'key_name', None), - ('PrimaryKey', 'primary_key', None), - ('SecondaryKey', 'secondary_key', None), - ] - - for mapping in mappings: - _read_etree_element(rule_node, mapping[0], rule, mapping[1], mapping[2]) - - rights_nodes = rule_node.find('./sb:Rights', _etree_sb_feed_namespaces) - if rights_nodes is not None: - for access_rights_node in rights_nodes.findall('./sb:AccessRights', _etree_sb_feed_namespaces): - node_value = _get_etree_text(access_rights_node) - if node_value: - rule.rights.append(node_value) - - hub.authorization_rules.append(rule) - - if invalid_event_hub: - raise AzureServiceBusResourceNotFound(_ERROR_EVENT_HUB_NOT_FOUND) - - # extract id, updated and name value from feed entry and set them of queue. - for name, value in _ETreeXmlToObject.get_entry_properties_from_element( - entry_element, True).items(): - if name == 'name': - value = value.partition('?')[0] - setattr(hub, name, value) - - return hub - - -def _convert_object_to_feed_entry(obj, rootName, content_writer): - updated_str = datetime.utcnow().isoformat() - if datetime.utcnow().utcoffset() is None: - updated_str += '+00:00' - - writer = _XmlWriter() - writer.preprocessor('') - writer.start('entry', [ - ('xmlns:d', _XmlSchemas.DataServices, None), - ('xmlns:m', _XmlSchemas.DataServicesMetadata, None), - ('xmlns', _XmlSchemas.Atom, None), - ]) - - writer.element('title', '') - writer.element('updated', updated_str) - writer.start('author') - writer.element('name', '') - writer.end('author') - writer.element('id', '') - writer.start('content', [('type', 'application/xml', None)]) - writer.start(rootName, [ - ('xmlns:i', _XmlSchemas.SchemaInstance, None), - ('xmlns', _XmlSchemas.ServiceBus, None), - ]) - - if obj: - content_writer(writer, obj) - - writer.end(rootName) - writer.end('content') - writer.end('entry') - - xml = writer.xml() - writer.close() - - return xml - - -def _convert_subscription_to_xml(sub): - - def _subscription_to_xml(writer, sub): - writer.elements([ - ('LockDuration', sub.lock_duration, None), - ('RequiresSession', sub.requires_session, _lower), - ('DefaultMessageTimeToLive', sub.default_message_time_to_live, None), - ('DeadLetteringOnMessageExpiration', sub.dead_lettering_on_message_expiration, _lower), - ('DeadLetteringOnFilterEvaluationExceptions', sub.dead_lettering_on_filter_evaluation_exceptions, _lower), - ('EnableBatchedOperations', sub.enable_batched_operations, _lower), - ('MaxDeliveryCount', sub.max_delivery_count, None), - ('MessageCount', sub.message_count, None), - ]) - - return _convert_object_to_feed_entry( - sub, 'SubscriptionDescription', _subscription_to_xml) - - -def _convert_rule_to_xml(rule): - - def _rule_to_xml(writer, rule): - if rule.filter_type: - writer.start('Filter', [('i:type', rule.filter_type, None)]) - if rule.filter_type == 'CorrelationFilter': - writer.element('CorrelationId', rule.filter_expression) - else: - writer.element('SqlExpression', rule.filter_expression) - writer.element('CompatibilityLevel', '20') - writer.end('Filter') - if rule.action_type: - writer.start('Action', [('i:type', rule.action_type, None)]) - if rule.action_type == 'SqlRuleAction': - writer.element('SqlExpression', rule.action_expression) - writer.element('CompatibilityLevel', '20') - writer.end('Action') - - return _convert_object_to_feed_entry( - rule, 'RuleDescription', _rule_to_xml) - - -def _convert_topic_to_xml(topic): - - def _topic_to_xml(writer, topic): - writer.elements([ - ('DefaultMessageTimeToLive', topic.default_message_time_to_live, None), - ('MaxSizeInMegabytes', topic.max_size_in_megabytes, None), - ('RequiresDuplicateDetection', topic.requires_duplicate_detection, _lower), - ('DuplicateDetectionHistoryTimeWindow', topic.duplicate_detection_history_time_window, None), - ('EnableBatchedOperations', topic.enable_batched_operations, _lower), - ('SizeInBytes', topic.size_in_bytes, None), - ]) - - return _convert_object_to_feed_entry( - topic, 'TopicDescription', _topic_to_xml) - - -def _convert_queue_to_xml(queue): - - def _queue_to_xml(writer, queue): - writer.elements([ - ('LockDuration', queue.lock_duration, None), - ('MaxSizeInMegabytes', queue.max_size_in_megabytes, None), - ('RequiresDuplicateDetection', queue.requires_duplicate_detection, _lower), - ('RequiresSession', queue.requires_session, _lower), - ('DefaultMessageTimeToLive', queue.default_message_time_to_live, None), - ('DeadLetteringOnMessageExpiration', queue.dead_lettering_on_message_expiration, _lower), - ('DuplicateDetectionHistoryTimeWindow', queue.duplicate_detection_history_time_window, None), - ('MaxDeliveryCount', queue.max_delivery_count, None), - ('EnableBatchedOperations', queue.enable_batched_operations, _lower), - ('SizeInBytes', queue.size_in_bytes, None), - ('MessageCount', queue.message_count, None), - ]) - - return _convert_object_to_feed_entry( - queue, 'QueueDescription', _queue_to_xml) - - -def _convert_event_hub_to_xml(hub): - - def _hub_to_xml(writer, hub): - writer.elements( - [('MessageRetentionInDays', hub.message_retention_in_days, None)]) - if hub.authorization_rules: - writer.start('AuthorizationRules') - for rule in hub.authorization_rules: - writer.start('AuthorizationRule', - [('i:type', 'SharedAccessAuthorizationRule', None)]) - writer.elements( - [('ClaimType', rule.claim_type, None), - ('ClaimValue', rule.claim_value, None)]) - if rule.rights: - writer.start('Rights') - for right in rule.rights: - writer.element('AccessRights', right) - writer.end('Rights') - writer.elements( - [('KeyName', rule.key_name, None), - ('PrimaryKey', rule.primary_key, None), - ('SecondaryKey', rule.secondary_key, None)]) - writer.end('AuthorizationRule') - writer.end('AuthorizationRules') - writer.elements( - [('Status', hub.status, None), - ('UserMetadata', hub.user_metadata, None), - ('PartitionCount', hub.partition_count, None)]) - - return _convert_object_to_feed_entry( - hub, 'EventHubDescription', _hub_to_xml) - - -def _service_bus_error_handler(http_error): - ''' Simple error handler for Service Bus service. ''' - return _general_error_handler(http_error) diff --git a/sdk/servicebus/azure-servicebus/azure/servicebus/_control_client/constants.py b/sdk/servicebus/azure-servicebus/azure/servicebus/_control_client/constants.py deleted file mode 100644 index 9bbc8019ae99..000000000000 --- a/sdk/servicebus/azure-servicebus/azure/servicebus/_control_client/constants.py +++ /dev/null @@ -1,25 +0,0 @@ -# ------------------------------------------------------------------------ -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# ------------------------------------------------------------------------- - -from azure.servicebus import __version__ - - -_USER_AGENT_STRING = 'azure-servicebus/{} Azure-SDK-For-Python'.format(__version__) - -# default rule name for subscription -DEFAULT_RULE_NAME = '$Default' - -# ---------------------------------------------------------------------------- -# Constants for Azure app environment settings. -AZURE_SERVICEBUS_NAMESPACE = 'AZURE_SERVICEBUS_NAMESPACE' -AZURE_SERVICEBUS_ACCESS_KEY = 'AZURE_SERVICEBUS_ACCESS_KEY' -AZURE_SERVICEBUS_ISSUER = 'AZURE_SERVICEBUS_ISSUER' - -# Live ServiceClient URLs -SERVICE_BUS_HOST_BASE = '.servicebus.windows.net' - -# Default timeout for HTTP requests (in secs) -DEFAULT_HTTP_TIMEOUT = 65 diff --git a/sdk/servicebus/azure-servicebus/azure/servicebus/_control_client/models.py b/sdk/servicebus/azure-servicebus/azure/servicebus/_control_client/models.py deleted file mode 100644 index 9f0ea92812b9..000000000000 --- a/sdk/servicebus/azure-servicebus/azure/servicebus/_control_client/models.py +++ /dev/null @@ -1,303 +0,0 @@ -# ------------------------------------------------------------------------ -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# ------------------------------------------------------------------------- - -# pylint: disable=too-few-public-methods,too-many-instance-attributes - -import sys -import json -from datetime import datetime -import warnings - -from azure.common import AzureException -from ._common_models import WindowsAzureData, _unicode_type -from ._common_error import ( - _ERROR_MESSAGE_NOT_PEEK_LOCKED_ON_DELETE, - _ERROR_MESSAGE_NOT_PEEK_LOCKED_ON_UNLOCK, - _ERROR_MESSAGE_NOT_PEEK_LOCKED_ON_RENEW_LOCK) - -class AzureServiceBusPeekLockError(AzureException): - '''Indicates that peek-lock is required for this operation.''' - - -class AzureServiceBusResourceNotFound(AzureException): - '''Indicates that the resource doesn't exist.''' - - -class Queue(WindowsAzureData): - - ''' Queue class corresponding to Queue Description: - http://msdn.microsoft.com/en-us/library/windowsazure/hh780773''' - - def __init__(self, lock_duration=None, max_size_in_megabytes=None, - requires_duplicate_detection=None, requires_session=None, - default_message_time_to_live=None, - dead_lettering_on_message_expiration=None, - duplicate_detection_history_time_window=None, - max_delivery_count=None, enable_batched_operations=None, - size_in_bytes=None, message_count=None): - - self.lock_duration = lock_duration - self.max_size_in_megabytes = max_size_in_megabytes - self.requires_duplicate_detection = requires_duplicate_detection - self.requires_session = requires_session - self.default_message_time_to_live = default_message_time_to_live - self.dead_lettering_on_message_expiration = \ - dead_lettering_on_message_expiration - self.duplicate_detection_history_time_window = \ - duplicate_detection_history_time_window - self.max_delivery_count = max_delivery_count - self.enable_batched_operations = enable_batched_operations - self.size_in_bytes = size_in_bytes - self.message_count = message_count - - -class Topic(WindowsAzureData): - - ''' Topic class corresponding to Topic Description: - https://docs.microsoft.com/en-us/dotnet/api/microsoft.servicebus.messaging.topicdescription. ''' - - def __init__(self, default_message_time_to_live=None, - max_size_in_megabytes=None, requires_duplicate_detection=None, - duplicate_detection_history_time_window=None, - enable_batched_operations=None, size_in_bytes=None): - - self.default_message_time_to_live = default_message_time_to_live - self.max_size_in_megabytes = max_size_in_megabytes - self.requires_duplicate_detection = requires_duplicate_detection - self.duplicate_detection_history_time_window = \ - duplicate_detection_history_time_window - self.enable_batched_operations = enable_batched_operations - self.size_in_bytes = size_in_bytes - - @property - def max_size_in_mega_bytes(self): - warnings.warn( - 'This attribute has been changed to max_size_in_megabytes.') - return self.max_size_in_megabytes - - @max_size_in_mega_bytes.setter - def max_size_in_mega_bytes(self, value): - self.max_size_in_megabytes = value - - -class Subscription(WindowsAzureData): - - ''' Subscription class corresponding to Subscription Description: - http://msdn.microsoft.com/en-us/library/windowsazure/hh780763. ''' - - def __init__(self, lock_duration=None, requires_session=None, - default_message_time_to_live=None, - dead_lettering_on_message_expiration=None, - dead_lettering_on_filter_evaluation_exceptions=None, - enable_batched_operations=None, max_delivery_count=None, - message_count=None): - - self.lock_duration = lock_duration - self.requires_session = requires_session - self.default_message_time_to_live = default_message_time_to_live - self.dead_lettering_on_message_expiration = \ - dead_lettering_on_message_expiration - self.dead_lettering_on_filter_evaluation_exceptions = \ - dead_lettering_on_filter_evaluation_exceptions - self.enable_batched_operations = enable_batched_operations - self.max_delivery_count = max_delivery_count - self.message_count = message_count - - -class Rule(WindowsAzureData): - - ''' Rule class corresponding to Rule Description: - http://msdn.microsoft.com/en-us/library/windowsazure/hh780753. ''' - - def __init__(self, filter_type=None, filter_expression=None, - action_type=None, action_expression=None): - self.filter_type = filter_type - self.filter_expression = filter_expression - self.action_type = action_type - self.action_expression = action_expression - - -class EventHub(WindowsAzureData): - - def __init__(self, message_retention_in_days=None, status=None, - user_metadata=None, partition_count=None): - self.message_retention_in_days = message_retention_in_days - self.status = status - self.user_metadata = user_metadata - self.partition_count = partition_count - self.authorization_rules = [] - self.partition_ids = [] - - -class AuthorizationRule(WindowsAzureData): - - def __init__(self, claim_type=None, claim_value=None, rights=None, - key_name=None, primary_key=None, secondary_key=None): - self.claim_type = claim_type - self.claim_value = claim_value - self.rights = rights or [] - self.created_time = None - self.modified_time = None - self.key_name = key_name - self.primary_key = primary_key - self.secondary_key = secondary_key - - -class Message(WindowsAzureData): - - ''' Message class that used in send message/get message apis. ''' - - def __init__(self, body=None, service_bus_service=None, location=None, - custom_properties=None, - type='application/atom+xml;type=entry;charset=utf-8', # pylint: disable=redefined-builtin - broker_properties=None): - self.body = body - self.location = location - self.broker_properties = broker_properties - self.custom_properties = custom_properties - self.type = type - self.service_bus_service = service_bus_service - self._topic_name = None - self._subscription_name = None - self._queue_name = None - - if not service_bus_service: - return - - # if location is set, then extracts the queue name for queue message and - # extracts the topic and subscriptions name if it is topic message. - if location: - if '/subscriptions/' in location: - pos = location.find(service_bus_service.host_base.lower())+1 - pos1 = location.find('/subscriptions/') - self._topic_name = location[pos+len(service_bus_service.host_base):pos1] - pos = pos1 + len('/subscriptions/') - pos1 = location.find('/', pos) - self._subscription_name = location[pos:pos1] - elif '/messages/' in location: - pos = location.find(service_bus_service.host_base.lower())+1 - pos1 = location.find('/messages/') - self._queue_name = location[pos+len(service_bus_service.host_base):pos1] - - def delete(self): - ''' Deletes itself if find queue name or topic name and subscription - name. ''' - if self._queue_name: - self.service_bus_service.delete_queue_message( - self._queue_name, - self.broker_properties['SequenceNumber'], - self.broker_properties['LockToken']) - elif self._topic_name and self._subscription_name: - self.service_bus_service.delete_subscription_message( - self._topic_name, - self._subscription_name, - self.broker_properties['SequenceNumber'], - self.broker_properties['LockToken']) - else: - raise AzureServiceBusPeekLockError(_ERROR_MESSAGE_NOT_PEEK_LOCKED_ON_DELETE) - - def unlock(self): - ''' Unlocks itself if find queue name or topic name and subscription - name. ''' - if self._queue_name: - self.service_bus_service.unlock_queue_message( - self._queue_name, - self.broker_properties['SequenceNumber'], - self.broker_properties['LockToken']) - elif self._topic_name and self._subscription_name: - self.service_bus_service.unlock_subscription_message( - self._topic_name, - self._subscription_name, - self.broker_properties['SequenceNumber'], - self.broker_properties['LockToken']) - else: - raise AzureServiceBusPeekLockError(_ERROR_MESSAGE_NOT_PEEK_LOCKED_ON_UNLOCK) - - def renew_lock(self): - ''' Renew lock on itself if find queue name or topic name and subscription - name. ''' - if self._queue_name: - self.service_bus_service.renew_lock_queue_message( - self._queue_name, - self.broker_properties['SequenceNumber'], - self.broker_properties['LockToken']) - elif self._topic_name and self._subscription_name: - self.service_bus_service.renew_lock_subscription_message( - self._topic_name, - self._subscription_name, - self.broker_properties['SequenceNumber'], - self.broker_properties['LockToken']) - else: - raise AzureServiceBusPeekLockError(_ERROR_MESSAGE_NOT_PEEK_LOCKED_ON_RENEW_LOCK) - - def _serialize_escaped_properties_value(self, value): # pylint: disable=no-self-use - if sys.version_info < (3,) and isinstance(value, _unicode_type): - escaped_value = value.replace('"', '\\"') - return '"' + escaped_value.encode('utf-8') + '"' - if isinstance(value, str): - escaped_value = value.replace('"', '\\"') - return '"' + escaped_value + '"' - if isinstance(value, datetime): - return '"' + value.strftime('%a, %d %b %Y %H:%M:%S GMT') + '"' - return str(value).lower() - - def _serialize_basic_properties_value(self, value): # pylint: disable=no-self-use - if sys.version_info < (3,) and isinstance(value, _unicode_type): - return value.encode('utf-8') - if isinstance(value, str): - return value - if isinstance(value, datetime): - return value.strftime('%a, %d %b %Y %H:%M:%S GMT') - return str(value).lower() - - def add_headers(self, request): - ''' add addtional headers to request for message request.''' - - # Adds custom properties - if self.custom_properties: - for name, value in self.custom_properties.items(): - request.headers.append((name, self._serialize_escaped_properties_value(value))) - - # Adds content-type - request.headers.append(('Content-Type', self.type)) - - # Adds BrokerProperties - if self.broker_properties: - if hasattr(self.broker_properties, 'items'): - broker_properties = {name: self._serialize_basic_properties_value(value) - for name, value - in self.broker_properties.items()} - broker_properties = json.dumps(broker_properties) - else: - broker_properties = self.broker_properties - request.headers.append( - ('BrokerProperties', str(broker_properties))) - - return request.headers - - def as_batch_body(self): - ''' return the current message as expected by batch body format''' - if sys.version_info >= (3,) and isinstance(self.body, bytes): - # It HAS to be string to be serialized in JSON - body = self.body.decode('utf-8') - else: - # Python 2.7 people handle this themself - body = self.body - result = {'Body': body} - - # Adds custom properties - if self.custom_properties: - result['UserProperties'] = {name: self._serialize_basic_properties_value(value) - for name, value - in self.custom_properties.items()} - - # Adds BrokerProperties - if self.broker_properties: - result['BrokerProperties'] = {name: self._serialize_basic_properties_value(value) - for name, value - in self.broker_properties.items()} - - return result diff --git a/sdk/servicebus/azure-servicebus/azure/servicebus/_control_client/servicebusservice.py b/sdk/servicebus/azure-servicebus/azure/servicebus/_control_client/servicebusservice.py deleted file mode 100644 index 1b635c602fd4..000000000000 --- a/sdk/servicebus/azure-servicebus/azure/servicebus/_control_client/servicebusservice.py +++ /dev/null @@ -1,1350 +0,0 @@ -# ------------------------------------------------------------------------ -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# ------------------------------------------------------------------------- - -# pylint: disable=too-many-lines,too-few-public-methods - -import os -import time -import json -from typing import Dict - -try: - from urllib2 import quote as url_quote - from urllib2 import unquote as url_unquote -except ImportError: - from urllib.parse import quote as url_quote - from urllib.parse import unquote as url_unquote - -import requests - -from azure.common import AzureHttpError -from .constants import ( - AZURE_SERVICEBUS_NAMESPACE, - AZURE_SERVICEBUS_ACCESS_KEY, - AZURE_SERVICEBUS_ISSUER, - DEFAULT_HTTP_TIMEOUT, - SERVICE_BUS_HOST_BASE, - _USER_AGENT_STRING) -from ._common_error import ( - _dont_fail_not_exist, - _dont_fail_on_exist, - _validate_not_none) -from ._common_conversion import ( - _int_or_none, - _sign_string, - _str) -from ._common_serialization import ( - _ETreeXmlToObject, - _get_request_body) -from ._http import ( - HTTPError, - HTTPRequest) -from ._http.httpclient import _HTTPClient -from ._serialization import ( - _convert_event_hub_to_xml, - _convert_topic_to_xml, - _convert_response_to_topic, - _convert_queue_to_xml, - _convert_response_to_queue, - _convert_subscription_to_xml, - _convert_response_to_subscription, - _convert_rule_to_xml, - _convert_response_to_rule, - _convert_response_to_event_hub, - _convert_etree_element_to_queue, - _convert_etree_element_to_topic, - _convert_etree_element_to_subscription, - _convert_etree_element_to_rule, - _create_message, - _service_bus_error_handler) - - -class ServiceBusService(object): # pylint: disable=too-many-public-methods - - def __init__(self, service_namespace=None, account_key=None, issuer=None, - x_ms_version='2011-06-01', host_base=SERVICE_BUS_HOST_BASE, - shared_access_key_name=None, shared_access_key_value=None, - authentication=None, timeout=DEFAULT_HTTP_TIMEOUT, - request_session=None): - ''' - Initializes the Service Bus service for a namespace with the specified - authentication settings (SAS or ACS). - - service_namespace: - Service Bus namespace, required for all operations. If None, - the value is set to the AZURE_SERVICEBUS_NAMESPACE env variable. - account_key: - ACS authentication account key. If None, the value is set to the - AZURE_SERVICEBUS_ACCESS_KEY env variable. - Note that if both SAS and ACS settings are specified, SAS is used. - issuer: - ACS authentication issuer. If None, the value is set to the - AZURE_SERVICEBUS_ISSUER env variable. - Note that if both SAS and ACS settings are specified, SAS is used. - host_base: - Optional. Live host base URL. Defaults to Azure URL. Override this - for on-premise. - shared_access_key_name: - SAS authentication key name. - Note that if both SAS and ACS settings are specified, SAS is used. - shared_access_key_value: - SAS authentication key value. - Note that if both SAS and ACS settings are specified, SAS is used. - authentication: - Instance of authentication class. If this is specified, then - ACS and SAS parameters are ignored. - timeout: - Optional. Timeout for the HTTP request, in seconds. - request_session: - Optional. Session object to use for HTTP requests. - ''' - self.requestid = None - x_ms_version = None - api_version = x_ms_version # Waiting is updated API version support - self.service_namespace = service_namespace - self.host_base = host_base - - if not self.service_namespace: - self.service_namespace = os.environ.get(AZURE_SERVICEBUS_NAMESPACE) - - if not self.service_namespace: - raise ValueError('You need to provide servicebus namespace') - - if authentication: - self.authentication = authentication - else: - if not account_key: - account_key = os.environ.get(AZURE_SERVICEBUS_ACCESS_KEY) - if not issuer: - issuer = os.environ.get(AZURE_SERVICEBUS_ISSUER) - - if shared_access_key_name and shared_access_key_value: - self.authentication = ServiceBusSASAuthentication( - shared_access_key_name, - shared_access_key_value) - elif account_key and issuer: - self.authentication = ServiceBusWrapTokenAuthentication( - account_key, - issuer) - else: - raise ValueError( - 'You need to provide servicebus access key and Issuer OR shared access key and value') - - self._httpclient = _HTTPClient( - service_instance=self, - timeout=timeout, - request_session=request_session or requests.Session(), - user_agent=_USER_AGENT_STRING, - api_version=api_version, - ) - self._filter = self._httpclient.perform_request - - @staticmethod - def format_dead_letter_queue_name(queue_name): - """Get the dead letter name of this queue""" - return queue_name + '/$DeadLetterQueue' - - @staticmethod - def format_dead_letter_subscription_name(subscription_name): - """Get the dead letter name of this subscription""" - return subscription_name + '/$DeadLetterQueue' - - @staticmethod - def format_transfer_dead_letter_queue_name(queue_name): - """Get the dead letter name of this queue""" - return queue_name + '/$Transfer' + '/$DeadLetterQueue' - - @staticmethod - def format_transfer_dead_letter_topic_name(topic_name): - """Get the dead letter name of this topic""" - return topic_name + '/$Transfer' + '/$DeadLetterQueue' - - # Backwards compatibility: - # account_key and issuer used to be stored on the service class, they are - # now stored on the authentication class. - @property - def account_key(self): - return self.authentication.account_key - - @account_key.setter - def account_key(self, value): - self.authentication.account_key = value - - @property - def issuer(self): - return self.authentication.issuer - - @issuer.setter - def issuer(self, value): - self.authentication.issuer = value - - def with_filter(self, filter_func): - ''' - Returns a new service which will process requests with the specified - filter. Filtering operations can include logging, automatic retrying, - etc... The filter is a lambda which receives the HTTPRequest and - another lambda. The filter can perform any pre-processing on the - request, pass it off to the next lambda, and then perform any - post-processing on the response. - ''' - res = ServiceBusService( - service_namespace=self.service_namespace, - authentication=self.authentication) - - old_filter = self._filter - - def new_filter(request): - return filter_func(request, old_filter) - - res._filter = new_filter # pylint: disable=protected-access - return res - - def set_proxy(self, host, port, user=None, password=None): - ''' - Sets the proxy server host and port for the HTTP CONNECT Tunnelling. - - host: - Address of the proxy. Ex: '192.168.0.100' - port: - Port of the proxy. Ex: 6000 - user: - User for proxy authorization. - password: - Password for proxy authorization. - ''' - self._httpclient.set_proxy(host, port, user, password) - - @property - def timeout(self): - return self._httpclient.timeout - - @timeout.setter - def timeout(self, value): - self._httpclient.timeout = value - - def create_queue(self, queue_name, queue=None, fail_on_exist=False): - ''' - Creates a new queue. Once created, this queue's resource manifest is - immutable. - - queue_name: - Name of the queue to create. - queue: - Queue object to create. - fail_on_exist: - Specify whether to throw an exception when the queue exists. - ''' - _validate_not_none('queue_name', queue_name) - request = HTTPRequest() - request.method = 'PUT' - request.host = self._get_host() - request.path = '/' + _str(queue_name) + '' - request.body = _get_request_body(_convert_queue_to_xml(queue)) - request.path, request.query = self._httpclient._update_request_uri_query(request) # pylint: disable=protected-access - request.headers = self._update_service_bus_header(request) - if not fail_on_exist: - try: - self._perform_request(request) - return True - except AzureHttpError as ex: - _dont_fail_on_exist(ex) - return False - else: - self._perform_request(request) - return True - - def delete_queue(self, queue_name, fail_not_exist=False): - ''' - Deletes an existing queue. This operation will also remove all - associated state including messages in the queue. - - queue_name: - Name of the queue to delete. - fail_not_exist: - Specify whether to throw an exception if the queue doesn't exist. - ''' - _validate_not_none('queue_name', queue_name) - request = HTTPRequest() - request.method = 'DELETE' - request.host = self._get_host() - request.path = '/' + _str(queue_name) + '' - request.path, request.query = self._httpclient._update_request_uri_query(request) # pylint: disable=protected-access - request.headers = self._update_service_bus_header(request) - if not fail_not_exist: - try: - self._perform_request(request) - return True - except AzureHttpError as ex: - _dont_fail_not_exist(ex) - return False - else: - self._perform_request(request) - return True - - def get_queue(self, queue_name): - ''' - Retrieves an existing queue. - - queue_name: - Name of the queue. - ''' - _validate_not_none('queue_name', queue_name) - request = HTTPRequest() - request.method = 'GET' - request.host = self._get_host() - request.path = '/' + _str(queue_name) + '' - request.path, request.query = self._httpclient._update_request_uri_query(request) # pylint: disable=protected-access - request.headers = self._update_service_bus_header(request) - response = self._perform_request(request) - - return _convert_response_to_queue(response) - - def list_queues(self): - ''' - Enumerates the queues in the service namespace. - ''' - request = HTTPRequest() - request.method = 'GET' - request.host = self._get_host() - request.path = '/$Resources/Queues' - request.path, request.query = self._httpclient._update_request_uri_query(request) # pylint: disable=protected-access - request.headers = self._update_service_bus_header(request) - response = self._perform_request(request) - - return _ETreeXmlToObject.convert_response_to_feeds( - response, _convert_etree_element_to_queue) - - def create_topic(self, topic_name, topic=None, fail_on_exist=False): - ''' - Creates a new topic. Once created, this topic resource manifest is - immutable. - - topic_name: - Name of the topic to create. - topic: - Topic object to create. - fail_on_exist: - Specify whether to throw an exception when the topic exists. - ''' - _validate_not_none('topic_name', topic_name) - request = HTTPRequest() - request.method = 'PUT' - request.host = self._get_host() - request.path = '/' + _str(topic_name) + '' - request.body = _get_request_body(_convert_topic_to_xml(topic)) - request.path, request.query = self._httpclient._update_request_uri_query(request) # pylint: disable=protected-access - request.headers = self._update_service_bus_header(request) - if not fail_on_exist: - try: - self._perform_request(request) - return True - except AzureHttpError as ex: - _dont_fail_on_exist(ex) - return False - else: - self._perform_request(request) - return True - - def delete_topic(self, topic_name, fail_not_exist=False): - ''' - Deletes an existing topic. This operation will also remove all - associated state including associated subscriptions. - - topic_name: - Name of the topic to delete. - fail_not_exist: - Specify whether throw exception when topic doesn't exist. - ''' - _validate_not_none('topic_name', topic_name) - request = HTTPRequest() - request.method = 'DELETE' - request.host = self._get_host() - request.path = '/' + _str(topic_name) + '' - request.path, request.query = self._httpclient._update_request_uri_query(request) # pylint: disable=protected-access - request.headers = self._update_service_bus_header(request) - if not fail_not_exist: - try: - self._perform_request(request) - return True - except AzureHttpError as ex: - _dont_fail_not_exist(ex) - return False - else: - self._perform_request(request) - return True - - def get_topic(self, topic_name): - ''' - Retrieves the description for the specified topic. - - topic_name: - Name of the topic. - ''' - _validate_not_none('topic_name', topic_name) - request = HTTPRequest() - request.method = 'GET' - request.host = self._get_host() - request.path = '/' + _str(topic_name) + '' - request.path, request.query = self._httpclient._update_request_uri_query(request) # pylint: disable=protected-access - request.headers = self._update_service_bus_header(request) - response = self._perform_request(request) - - return _convert_response_to_topic(response) - - def list_topics(self): - ''' - Retrieves the topics in the service namespace. - ''' - request = HTTPRequest() - request.method = 'GET' - request.host = self._get_host() - request.path = '/$Resources/Topics' - request.path, request.query = self._httpclient._update_request_uri_query(request) # pylint: disable=protected-access - request.headers = self._update_service_bus_header(request) - response = self._perform_request(request) - - return _ETreeXmlToObject.convert_response_to_feeds( - response, _convert_etree_element_to_topic) - - def create_rule(self, topic_name, subscription_name, rule_name, rule=None, - fail_on_exist=False): - ''' - Creates a new rule. Once created, this rule's resource manifest is - immutable. - - topic_name: - Name of the topic. - subscription_name: - Name of the subscription. - rule_name: - Name of the rule. - fail_on_exist: - Specify whether to throw an exception when the rule exists. - ''' - _validate_not_none('topic_name', topic_name) - _validate_not_none('subscription_name', subscription_name) - _validate_not_none('rule_name', rule_name) - request = HTTPRequest() - request.method = 'PUT' - request.host = self._get_host() - request.path = '/' + _str(topic_name) + '/subscriptions/' + \ - _str(subscription_name) + \ - '/rules/' + _str(rule_name) + '' - request.body = _get_request_body(_convert_rule_to_xml(rule)) - request.path, request.query = self._httpclient._update_request_uri_query(request) # pylint: disable=protected-access - request.headers = self._update_service_bus_header(request) - if not fail_on_exist: - try: - self._perform_request(request) - return True - except AzureHttpError as ex: - _dont_fail_on_exist(ex) - return False - else: - self._perform_request(request) - return True - - def delete_rule(self, topic_name, subscription_name, rule_name, - fail_not_exist=False): - ''' - Deletes an existing rule. - - topic_name: - Name of the topic. - subscription_name: - Name of the subscription. - rule_name: - Name of the rule to delete. DEFAULT_RULE_NAME=$Default. - Use DEFAULT_RULE_NAME to delete default rule for the subscription. - fail_not_exist: - Specify whether throw exception when rule doesn't exist. - ''' - _validate_not_none('topic_name', topic_name) - _validate_not_none('subscription_name', subscription_name) - _validate_not_none('rule_name', rule_name) - request = HTTPRequest() - request.method = 'DELETE' - request.host = self._get_host() - request.path = '/' + _str(topic_name) + '/subscriptions/' + \ - _str(subscription_name) + \ - '/rules/' + _str(rule_name) + '' - request.path, request.query = self._httpclient._update_request_uri_query(request) # pylint: disable=protected-access - request.headers = self._update_service_bus_header(request) - if not fail_not_exist: - try: - self._perform_request(request) - return True - except AzureHttpError as ex: - _dont_fail_not_exist(ex) - return False - else: - self._perform_request(request) - return True - - def get_rule(self, topic_name, subscription_name, rule_name): - ''' - Retrieves the description for the specified rule. - - topic_name: - Name of the topic. - subscription_name: - Name of the subscription. - rule_name: - Name of the rule. - ''' - _validate_not_none('topic_name', topic_name) - _validate_not_none('subscription_name', subscription_name) - _validate_not_none('rule_name', rule_name) - request = HTTPRequest() - request.method = 'GET' - request.host = self._get_host() - request.path = '/' + _str(topic_name) + '/subscriptions/' + \ - _str(subscription_name) + \ - '/rules/' + _str(rule_name) + '' - request.path, request.query = self._httpclient._update_request_uri_query(request) # pylint: disable=protected-access - request.headers = self._update_service_bus_header(request) - response = self._perform_request(request) - - return _convert_response_to_rule(response) - - def list_rules(self, topic_name, subscription_name): - ''' - Retrieves the rules that exist under the specified subscription. - - topic_name: - Name of the topic. - subscription_name: - Name of the subscription. - ''' - _validate_not_none('topic_name', topic_name) - _validate_not_none('subscription_name', subscription_name) - request = HTTPRequest() - request.method = 'GET' - request.host = self._get_host() - request.path = '/' + \ - _str(topic_name) + '/subscriptions/' + \ - _str(subscription_name) + '/rules/' - request.path, request.query = self._httpclient._update_request_uri_query(request) # pylint: disable=protected-access - request.headers = self._update_service_bus_header(request) - response = self._perform_request(request) - - return _ETreeXmlToObject.convert_response_to_feeds( - response, _convert_etree_element_to_rule) - - def create_subscription(self, topic_name, subscription_name, - subscription=None, fail_on_exist=False): - ''' - Creates a new subscription. Once created, this subscription resource - manifest is immutable. - - topic_name: - Name of the topic. - subscription_name: - Name of the subscription. - fail_on_exist: - Specify whether throw exception when subscription exists. - ''' - _validate_not_none('topic_name', topic_name) - _validate_not_none('subscription_name', subscription_name) - request = HTTPRequest() - request.method = 'PUT' - request.host = self._get_host() - request.path = '/' + \ - _str(topic_name) + '/subscriptions/' + _str(subscription_name) + '' - request.body = _get_request_body( - _convert_subscription_to_xml(subscription)) - request.path, request.query = self._httpclient._update_request_uri_query(request) # pylint: disable=protected-access - request.headers = self._update_service_bus_header(request) - if not fail_on_exist: - try: - self._perform_request(request) - return True - except AzureHttpError as ex: - _dont_fail_on_exist(ex) - return False - else: - self._perform_request(request) - return True - - def delete_subscription(self, topic_name, subscription_name, - fail_not_exist=False): - ''' - Deletes an existing subscription. - - topic_name: - Name of the topic. - subscription_name: - Name of the subscription to delete. - fail_not_exist: - Specify whether to throw an exception when the subscription - doesn't exist. - ''' - _validate_not_none('topic_name', topic_name) - _validate_not_none('subscription_name', subscription_name) - request = HTTPRequest() - request.method = 'DELETE' - request.host = self._get_host() - request.path = '/' + \ - _str(topic_name) + '/subscriptions/' + _str(subscription_name) + '' - request.path, request.query = self._httpclient._update_request_uri_query(request) # pylint: disable=protected-access - request.headers = self._update_service_bus_header(request) - if not fail_not_exist: - try: - self._perform_request(request) - return True - except AzureHttpError as ex: - _dont_fail_not_exist(ex) - return False - else: - self._perform_request(request) - return True - - def get_subscription(self, topic_name, subscription_name): - ''' - Gets an existing subscription. - - topic_name: - Name of the topic. - subscription_name: - Name of the subscription. - ''' - _validate_not_none('topic_name', topic_name) - _validate_not_none('subscription_name', subscription_name) - request = HTTPRequest() - request.method = 'GET' - request.host = self._get_host() - request.path = '/' + \ - _str(topic_name) + '/subscriptions/' + _str(subscription_name) + '' - request.path, request.query = self._httpclient._update_request_uri_query(request) # pylint: disable=protected-access - request.headers = self._update_service_bus_header(request) - response = self._perform_request(request) - - return _convert_response_to_subscription(response) - - def list_subscriptions(self, topic_name): - ''' - Retrieves the subscriptions in the specified topic. - - topic_name: - Name of the topic. - ''' - _validate_not_none('topic_name', topic_name) - request = HTTPRequest() - request.method = 'GET' - request.host = self._get_host() - request.path = '/' + _str(topic_name) + '/subscriptions/' - request.path, request.query = self._httpclient._update_request_uri_query(request) # pylint: disable=protected-access - request.headers = self._update_service_bus_header(request) - response = self._perform_request(request) - - return _ETreeXmlToObject.convert_response_to_feeds( - response, _convert_etree_element_to_subscription) - - def send_topic_message(self, topic_name, message=None): - ''' - Enqueues a message into the specified topic. The limit to the number - of messages which may be present in the topic is governed by the - message size in MaxTopicSizeInBytes. If this message causes the topic - to exceed its quota, a quota exceeded error is returned and the - message will be rejected. - - topic_name: - Name of the topic. - message: - Message object containing message body and properties. - ''' - _validate_not_none('topic_name', topic_name) - _validate_not_none('message', message) - request = HTTPRequest() - request.method = 'POST' - request.host = self._get_host() - request.path = '/' + _str(topic_name) + '/messages' - request.headers = message.add_headers(request) - request.body = _get_request_body(message.body) - request.path, request.query = self._httpclient._update_request_uri_query(request) # pylint: disable=protected-access - request.headers = self._update_service_bus_header(request) - self._perform_request(request) - - def send_topic_message_batch(self, topic_name, messages=None): - ''' - Sends a batch of messages into the specified topic. The limit to the number of - messages which may be present in the topic is governed by the message - size the MaxTopicSizeInMegaBytes. If this message will cause the topic - to exceed its quota, a quota exceeded error is returned and the - message will be rejected. - - topic_name: - Name of the topic. - messages: - List of message objects containing message body and properties. - ''' - _validate_not_none('topic_name', topic_name) - _validate_not_none('messages', messages) - request = HTTPRequest() - request.method = 'POST' - request.host = self._get_host() - request.path = '/' + _str(topic_name) + '/messages' - request.headers.append(('Content-Type', 'application/vnd.microsoft.servicebus.json')) - request.body = _get_request_body(json.dumps([m.as_batch_body() for m in messages])) - request.path, request.query = self._httpclient._update_request_uri_query(request) # pylint: disable=protected-access - request.headers = self._update_service_bus_header(request) - self._perform_request(request) - - def peek_lock_subscription_message(self, topic_name, subscription_name, - timeout='60'): - ''' - This operation is used to atomically retrieve and lock a message for - processing. The message is guaranteed not to be delivered to other - receivers during the lock duration period specified in buffer - description. Once the lock expires, the message will be available to - other receivers (on the same subscription only) during the lock - duration period specified in the topic description. Once the lock - expires, the message will be available to other receivers. In order to - complete processing of the message, the receiver should issue a delete - command with the lock ID received from this operation. To abandon - processing of the message and unlock it for other receivers, an Unlock - Message command should be issued, or the lock duration period can - expire. - - topic_name: - Name of the topic. - subscription_name: - Name of the subscription. - timeout: - Optional. The timeout parameter is expressed in seconds. - ''' - _validate_not_none('topic_name', topic_name) - _validate_not_none('subscription_name', subscription_name) - request = HTTPRequest() - request.method = 'POST' - request.host = self._get_host() - request.path = '/' + \ - _str(topic_name) + '/subscriptions/' + \ - _str(subscription_name) + '/messages/head' - request.query = [('timeout', _int_or_none(timeout))] - request.path, request.query = self._httpclient._update_request_uri_query(request) # pylint: disable=protected-access - request.headers = self._update_service_bus_header(request) - response = self._perform_request(request) - - return _create_message(response, self) - - def unlock_subscription_message(self, topic_name, subscription_name, - sequence_number, lock_token): - ''' - Unlock a message for processing by other receivers on a given - subscription. This operation deletes the lock object, causing the - message to be unlocked. A message must have first been locked by a - receiver before this operation is called. - - topic_name: - Name of the topic. - subscription_name: - Name of the subscription. - sequence_number: - The sequence number of the message to be unlocked as returned in - BrokerProperties['SequenceNumber'] by the Peek Message operation. - lock_token: - The ID of the lock as returned by the Peek Message operation in - BrokerProperties['LockToken'] - ''' - _validate_not_none('topic_name', topic_name) - _validate_not_none('subscription_name', subscription_name) - _validate_not_none('sequence_number', sequence_number) - _validate_not_none('lock_token', lock_token) - request = HTTPRequest() - request.method = 'PUT' - request.host = self._get_host() - request.path = '/' + _str(topic_name) + \ - '/subscriptions/' + str(subscription_name) + \ - '/messages/' + _str(sequence_number) + \ - '/' + _str(lock_token) + '' - request.path, request.query = self._httpclient._update_request_uri_query(request) # pylint: disable=protected-access - request.headers = self._update_service_bus_header(request) - self._perform_request(request) - - def renew_lock_subscription_message(self, topic_name, subscription_name, - sequence_number, lock_token): - ''' - Renew the lock on an already locked message on a given - subscription. A message must have first been locked by a - receiver before this operation is called. - - topic_name: - Name of the topic. - subscription_name: - Name of the subscription. - sequence_number: - The sequence number of the message to be unlocked as returned in - BrokerProperties['SequenceNumber'] by the Peek Message operation. - lock_token: - The ID of the lock as returned by the Peek Message operation in - BrokerProperties['LockToken'] - ''' - _validate_not_none('topic_name', topic_name) - _validate_not_none('subscription_name', subscription_name) - _validate_not_none('sequence_number', sequence_number) - _validate_not_none('lock_token', lock_token) - request = HTTPRequest() - request.method = 'POST' - request.host = self._get_host() - request.path = '/' + _str(topic_name) + \ - '/subscriptions/' + str(subscription_name) + \ - '/messages/' + _str(sequence_number) + \ - '/' + _str(lock_token) + '' - request.path, request.query = self._httpclient._update_request_uri_query(request) # pylint: disable=protected-access - request.headers = self._update_service_bus_header(request) - self._perform_request(request) - - def read_delete_subscription_message(self, topic_name, subscription_name, - timeout='60'): - ''' - Read and delete a message from a subscription as an atomic operation. - This operation should be used when a best-effort guarantee is - sufficient for an application; that is, using this operation it is - possible for messages to be lost if processing fails. - - topic_name: - Name of the topic. - subscription_name: - Name of the subscription. - timeout: - Optional. The timeout parameter is expressed in seconds. - ''' - _validate_not_none('topic_name', topic_name) - _validate_not_none('subscription_name', subscription_name) - request = HTTPRequest() - request.method = 'DELETE' - request.host = self._get_host() - request.path = '/' + _str(topic_name) + \ - '/subscriptions/' + _str(subscription_name) + \ - '/messages/head' - request.query = [('timeout', _int_or_none(timeout))] - request.path, request.query = self._httpclient._update_request_uri_query(request) # pylint: disable=protected-access - request.headers = self._update_service_bus_header(request) - response = self._perform_request(request) - - return _create_message(response, self) - - def delete_subscription_message(self, topic_name, subscription_name, - sequence_number, lock_token): - ''' - Completes processing on a locked message and delete it from the - subscription. This operation should only be called after processing a - previously locked message is successful to maintain At-Least-Once - delivery assurances. - - topic_name: - Name of the topic. - subscription_name: - Name of the subscription. - sequence_number: - The sequence number of the message to be deleted as returned in - BrokerProperties['SequenceNumber'] by the Peek Message operation. - lock_token: - The ID of the lock as returned by the Peek Message operation in - BrokerProperties['LockToken'] - ''' - _validate_not_none('topic_name', topic_name) - _validate_not_none('subscription_name', subscription_name) - _validate_not_none('sequence_number', sequence_number) - _validate_not_none('lock_token', lock_token) - request = HTTPRequest() - request.method = 'DELETE' - request.host = self._get_host() - request.path = '/' + _str(topic_name) + \ - '/subscriptions/' + _str(subscription_name) + \ - '/messages/' + _str(sequence_number) + \ - '/' + _str(lock_token) + '' - request.path, request.query = self._httpclient._update_request_uri_query(request) # pylint: disable=protected-access - request.headers = self._update_service_bus_header(request) - self._perform_request(request) - - def send_queue_message(self, queue_name, message=None): - ''' - Sends a message into the specified queue. The limit to the number of - messages which may be present in the queue is governed by the message - size the MaxTopicSizeInMegaBytes. If this message will cause the queue - to exceed its quota, a quota exceeded error is returned and the - message will be rejected. - - queue_name: - Name of the queue. - message: - Message object containing message body and properties. - ''' - _validate_not_none('queue_name', queue_name) - _validate_not_none('message', message) - request = HTTPRequest() - request.method = 'POST' - request.host = self._get_host() - request.path = '/' + _str(queue_name) + '/messages' - request.headers = message.add_headers(request) - request.body = _get_request_body(message.body) - request.path, request.query = self._httpclient._update_request_uri_query(request) # pylint: disable=protected-access - request.headers = self._update_service_bus_header(request) - self._perform_request(request) - - def send_queue_message_batch(self, queue_name, messages=None): - ''' - Sends a batch of messages into the specified queue. The limit to the number of - messages which may be present in the topic is governed by the message - size the MaxTopicSizeInMegaBytes. If this message will cause the queue - to exceed its quota, a quota exceeded error is returned and the - message will be rejected. - - queue_name: - Name of the queue. - messages: - List of message objects containing message body and properties. - ''' - _validate_not_none('queue_name', queue_name) - _validate_not_none('messages', messages) - request = HTTPRequest() - request.method = 'POST' - request.host = self._get_host() - request.path = '/' + _str(queue_name) + '/messages' - request.headers.append(('Content-Type', 'application/vnd.microsoft.servicebus.json')) - request.body = _get_request_body(json.dumps([m.as_batch_body() for m in messages])) - request.path, request.query = self._httpclient._update_request_uri_query(request) # pylint: disable=protected-access - request.headers = self._update_service_bus_header(request) - self._perform_request(request) - - def peek_lock_queue_message(self, queue_name, timeout='60'): - ''' - Automically retrieves and locks a message from a queue for processing. - The message is guaranteed not to be delivered to other receivers (on - the same subscription only) during the lock duration period specified - in the queue description. Once the lock expires, the message will be - available to other receivers. In order to complete processing of the - message, the receiver should issue a delete command with the lock ID - received from this operation. To abandon processing of the message and - unlock it for other receivers, an Unlock Message command should be - issued, or the lock duration period can expire. - - queue_name: - Name of the queue. - timeout: - Optional. The timeout parameter is expressed in seconds. - ''' - _validate_not_none('queue_name', queue_name) - request = HTTPRequest() - request.method = 'POST' - request.host = self._get_host() - request.path = '/' + _str(queue_name) + '/messages/head' - request.query = [('timeout', _int_or_none(timeout))] - request.path, request.query = self._httpclient._update_request_uri_query(request) # pylint: disable=protected-access - request.headers = self._update_service_bus_header(request) - response = self._perform_request(request) - - return _create_message(response, self) - - def unlock_queue_message(self, queue_name, sequence_number, lock_token): - ''' - Unlocks a message for processing by other receivers on a given - queue. This operation deletes the lock object, causing the - message to be unlocked. A message must have first been locked by a - receiver before this operation is called. - - queue_name: - Name of the queue. - sequence_number: - The sequence number of the message to be unlocked as returned in - BrokerProperties['SequenceNumber'] by the Peek Message operation. - lock_token: - The ID of the lock as returned by the Peek Message operation in - BrokerProperties['LockToken'] - ''' - _validate_not_none('queue_name', queue_name) - _validate_not_none('sequence_number', sequence_number) - _validate_not_none('lock_token', lock_token) - request = HTTPRequest() - request.method = 'PUT' - request.host = self._get_host() - request.path = '/' + _str(queue_name) + \ - '/messages/' + _str(sequence_number) + \ - '/' + _str(lock_token) + '' - request.path, request.query = self._httpclient._update_request_uri_query(request) # pylint: disable=protected-access - request.headers = self._update_service_bus_header(request) - self._perform_request(request) - - def renew_lock_queue_message(self, queue_name, sequence_number, lock_token): - ''' - Renew lock on an already locked message on a given - queue. A message must have first been locked by a - receiver before this operation is called. - - queue_name: - Name of the queue. - sequence_number: - The sequence number of the message to be unlocked as returned in - BrokerProperties['SequenceNumber'] by the Peek Message operation. - lock_token: - The ID of the lock as returned by the Peek Message operation in - BrokerProperties['LockToken'] - ''' - _validate_not_none('queue_name', queue_name) - _validate_not_none('sequence_number', sequence_number) - _validate_not_none('lock_token', lock_token) - request = HTTPRequest() - request.method = 'POST' - request.host = self._get_host() - request.path = '/' + _str(queue_name) + \ - '/messages/' + _str(sequence_number) + \ - '/' + _str(lock_token) + '' - request.path, request.query = self._httpclient._update_request_uri_query(request) # pylint: disable=protected-access - request.headers = self._update_service_bus_header(request) - self._perform_request(request) - - def read_delete_queue_message(self, queue_name, timeout='60'): - ''' - Reads and deletes a message from a queue as an atomic operation. This - operation should be used when a best-effort guarantee is sufficient - for an application; that is, using this operation it is possible for - messages to be lost if processing fails. - - queue_name: - Name of the queue. - timeout: - Optional. The timeout parameter is expressed in seconds. - ''' - _validate_not_none('queue_name', queue_name) - request = HTTPRequest() - request.method = 'DELETE' - request.host = self._get_host() - request.path = '/' + _str(queue_name) + '/messages/head' - request.query = [('timeout', _int_or_none(timeout))] - request.path, request.query = self._httpclient._update_request_uri_query(request) # pylint: disable=protected-access - request.headers = self._update_service_bus_header(request) - response = self._perform_request(request) - - return _create_message(response, self) - - def delete_queue_message(self, queue_name, sequence_number, lock_token): - ''' - Completes processing on a locked message and delete it from the queue. - This operation should only be called after processing a previously - locked message is successful to maintain At-Least-Once delivery - assurances. - - queue_name: - Name of the queue. - sequence_number: - The sequence number of the message to be deleted as returned in - BrokerProperties['SequenceNumber'] by the Peek Message operation. - lock_token: - The ID of the lock as returned by the Peek Message operation in - BrokerProperties['LockToken'] - ''' - _validate_not_none('queue_name', queue_name) - _validate_not_none('sequence_number', sequence_number) - _validate_not_none('lock_token', lock_token) - request = HTTPRequest() - request.method = 'DELETE' - request.host = self._get_host() - request.path = '/' + _str(queue_name) + \ - '/messages/' + _str(sequence_number) + \ - '/' + _str(lock_token) + '' - request.path, request.query = self._httpclient._update_request_uri_query(request) # pylint: disable=protected-access - request.headers = self._update_service_bus_header(request) - self._perform_request(request) - - def receive_queue_message(self, queue_name, peek_lock=True, timeout=60): - ''' - Receive a message from a queue for processing. - - queue_name: - Name of the queue. - peek_lock: - Optional. True to retrieve and lock the message. False to read and - delete the message. Default is True (lock). - timeout: - Optional. The timeout parameter is expressed in seconds. - ''' - if peek_lock: - return self.peek_lock_queue_message(queue_name, timeout) - return self.read_delete_queue_message(queue_name, timeout) - - def receive_subscription_message(self, topic_name, subscription_name, - peek_lock=True, timeout=60): - ''' - Receive a message from a subscription for processing. - - topic_name: - Name of the topic. - subscription_name: - Name of the subscription. - peek_lock: - Optional. True to retrieve and lock the message. False to read and - delete the message. Default is True (lock). - timeout: - Optional. The timeout parameter is expressed in seconds. - ''' - if peek_lock: - return self.peek_lock_subscription_message(topic_name, - subscription_name, - timeout) - return self.read_delete_subscription_message(topic_name, - subscription_name, - timeout) - - def create_event_hub(self, hub_name, hub=None, fail_on_exist=False): - ''' - Creates a new Event Hub. - - hub_name: - Name of event hub. - hub: - Optional. Event hub properties. Instance of EventHub class. - hub.message_retention_in_days: - Number of days to retain the events for this Event Hub. - hub.status: - Status of the Event Hub (enabled or disabled). - hub.user_metadata: - User metadata. - hub.partition_count: - Number of shards on the Event Hub. - fail_on_exist: - Specify whether to throw an exception when the event hub exists. - ''' - _validate_not_none('hub_name', hub_name) - request = HTTPRequest() - request.method = 'PUT' - request.host = self._get_host() - request.path = '/' + _str(hub_name) + '?api-version=2014-01' - request.body = _get_request_body(_convert_event_hub_to_xml(hub)) - request.path, request.query = self._httpclient._update_request_uri_query(request) # pylint: disable=protected-access - request.headers = self._update_service_bus_header(request) - if not fail_on_exist: - try: - self._perform_request(request) - return True - except AzureHttpError as ex: - _dont_fail_on_exist(ex) - return False - else: - self._perform_request(request) - return True - - def update_event_hub(self, hub_name, hub=None): - ''' - Updates an Event Hub. - - hub_name: - Name of event hub. - hub: - Optional. Event hub properties. Instance of EventHub class. - hub.message_retention_in_days: - Number of days to retain the events for this Event Hub. - ''' - _validate_not_none('hub_name', hub_name) - request = HTTPRequest() - request.method = 'PUT' - request.host = self._get_host() - request.path = '/' + _str(hub_name) + '?api-version=2014-01' - request.body = _get_request_body(_convert_event_hub_to_xml(hub)) - request.path, request.query = self._httpclient._update_request_uri_query(request) # pylint: disable=protected-access - request.headers.append(('If-Match', '*')) - request.headers = self._update_service_bus_header(request) - response = self._perform_request(request) - - return _convert_response_to_event_hub(response) - - def delete_event_hub(self, hub_name, fail_not_exist=False): - ''' - Deletes an Event Hub. This operation will also remove all associated - state. - - hub_name: - Name of the event hub to delete. - fail_not_exist: - Specify whether to throw an exception if the event hub doesn't exist. - ''' - _validate_not_none('hub_name', hub_name) - request = HTTPRequest() - request.method = 'DELETE' - request.host = self._get_host() - request.path = '/' + _str(hub_name) + '?api-version=2014-01' - request.path, request.query = self._httpclient._update_request_uri_query(request) # pylint: disable=protected-access - request.headers = self._update_service_bus_header(request) - if not fail_not_exist: - try: - self._perform_request(request) - return True - except AzureHttpError as ex: - _dont_fail_not_exist(ex) - return False - else: - self._perform_request(request) - return True - - def get_event_hub(self, hub_name): - ''' - Retrieves an existing event hub. - - hub_name: - Name of the event hub. - ''' - _validate_not_none('hub_name', hub_name) - request = HTTPRequest() - request.method = 'GET' - request.host = self._get_host() - request.path = '/' + _str(hub_name) + '' - request.path, request.query = self._httpclient._update_request_uri_query(request) # pylint: disable=protected-access - request.headers = self._update_service_bus_header(request) - response = self._perform_request(request) - - return _convert_response_to_event_hub(response) - - def send_event(self, hub_name, message, device_id=None, - broker_properties=None): - ''' - Sends a new message event to an Event Hub. - ''' - _validate_not_none('hub_name', hub_name) - request = HTTPRequest() - request.method = 'POST' - request.host = self._get_host() - if device_id: - request.path = '/{0}/publishers/{1}/messages?api-version=2014-01'.format(hub_name, device_id) - else: - request.path = '/{0}/messages?api-version=2014-01'.format(hub_name) - if broker_properties: - request.headers.append( - ('BrokerProperties', str(broker_properties))) - request.body = _get_request_body(message) - request.path, request.query = self._httpclient._update_request_uri_query(request) # pylint: disable=protected-access - request.headers = self._update_service_bus_header(request) - self._perform_request(request) - - def _get_host(self): - return self.service_namespace + self.host_base - - def _perform_request(self, request): - try: - resp = self._filter(request) - except HTTPError as ex: - return _service_bus_error_handler(ex) - - return resp - - def _update_service_bus_header(self, request): - ''' Add additional headers for Service Bus. ''' - - if request.method in ['PUT', 'POST', 'MERGE', 'DELETE']: - request.headers.append(('Content-Length', str(len(request.body)))) - - # if it is not GET or HEAD request, must set content-type. - if not request.method in ['GET', 'HEAD']: - for name, _ in request.headers: - if name.lower() == 'content-type': - break - else: - request.headers.append( - ('Content-Type', - 'application/atom+xml;type=entry;charset=utf-8')) - - # Adds authorization header for authentication. - self.authentication.sign_request(request, self._httpclient) - - return request.headers - - -# Token cache for Authentication -# Shared by the different instances of ServiceBusWrapTokenAuthentication -_tokens = {} # type: Dict[str, str] - - -class ServiceBusWrapTokenAuthentication: - def __init__(self, account_key, issuer): - self.account_key = account_key - self.issuer = issuer - - def sign_request(self, request, httpclient): - request.headers.append( - ('Authorization', self._get_authorization(request, httpclient))) - - def _get_authorization(self, request, httpclient): - ''' return the signed string with token. ''' - return 'WRAP access_token="' + \ - self._get_token(request.host, request.path, httpclient) + '"' - - def _token_is_expired(self, token): # pylint: disable=no-self-use - ''' Check if token expires or not. ''' - time_pos_begin = token.find('ExpiresOn=') + len('ExpiresOn=') - time_pos_end = token.find('&', time_pos_begin) - token_expire_time = int(token[time_pos_begin:time_pos_end]) - time_now = time.mktime(time.localtime()) - - # Adding 30 seconds so the token wouldn't be expired when we send the - # token to server. - return (token_expire_time - time_now) < 30 - - def _get_token(self, host, path, httpclient): - ''' - Returns token for the request. - - host: - the Service Bus service request. - path: - the Service Bus service request. - ''' - wrap_scope = 'http://' + host + path + self.issuer + self.account_key - - # Check whether has unexpired cache, return cached token if it is still - # usable. - if wrap_scope in _tokens: - token = _tokens[wrap_scope] - if not self._token_is_expired(token): - return token - - # get token from accessconstrol server - request = HTTPRequest() - request.protocol_override = 'https' - request.host = host.replace('.servicebus.', '-sb.accesscontrol.') - request.method = 'POST' - request.path = '/WRAPv0.9' - request.body = ('wrap_name=' + url_quote(self.issuer) + - '&wrap_password=' + url_quote(self.account_key) + - '&wrap_scope=' + - url_quote('http://' + host + path)).encode('utf-8') - request.headers.append(('Content-Length', str(len(request.body)))) - resp = httpclient.perform_request(request) - - token = resp.body.decode('utf-8-sig') - token = url_unquote(token[token.find('=') + 1:token.rfind('&')]) - _tokens[wrap_scope] = token - - return token - - -class ServiceBusSASAuthentication: - def __init__(self, key_name, key_value): - self.key_name = key_name - self.key_value = key_value - self.account_key = None - self.issuer = None - - def sign_request(self, request, httpclient): - request.headers.append( - ('Authorization', self._get_authorization(request, httpclient))) - - def _get_authorization(self, request, httpclient): - uri = httpclient.get_uri(request) - uri = url_quote(uri, '').lower() - expiry = str(self._get_expiry()) - - to_sign = uri + '\n' + expiry - signature = url_quote(_sign_string(self.key_value, to_sign, False), '') - - auth_format = 'SharedAccessSignature sig={0}&se={1}&skn={2}&sr={3}' - auth = auth_format.format(signature, expiry, self.key_name, uri) - - return auth - - def _get_expiry(self): # pylint: disable=no-self-use - '''Returns the UTC datetime, in seconds since Epoch, when this signed - request expires (5 minutes from now).''' - return int(round(time.time() + 300)) diff --git a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/__init__.py b/sdk/servicebus/azure-servicebus/tests/control_plane_tests/__init__.py deleted file mode 100644 index 849489fca33c..000000000000 --- a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/__init__.py +++ /dev/null @@ -1 +0,0 @@ -__import__('pkg_resources').declare_namespace(__name__) diff --git a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/doctest_servicebusservicequeue.py b/sdk/servicebus/azure-servicebus/tests/control_plane_tests/doctest_servicebusservicequeue.py deleted file mode 100644 index e79958e00c3c..000000000000 --- a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/doctest_servicebusservicequeue.py +++ /dev/null @@ -1,55 +0,0 @@ -#------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -#-------------------------------------------------------------------------- - -""" -How To: Create a Queue ----------------------- ->>> from azure.servicebus._control_client import * ->>> bus_service = ServiceBusService(shared_access_key_name=key_name, shared_access_key_value=key_value, 'owner') ->>> bus_service.create_queue('taskqueue') -True - ->>> queue_options = Queue() ->>> queue_options.max_size_in_megabytes = '5120' ->>> queue_options.default_message_time_to_live = 'PT1M' ->>> bus_service.create_queue('taskqueue2', queue_options) -True - -How to Send Messages to a Queue -------------------------------- ->>> msg = Message('Test Message') ->>> bus_service.send_queue_message('taskqueue', msg) - -How to Receive Messages from a Queue ------------------------------------- ->>> msg = bus_service.receive_queue_message('taskqueue') ->>> print(msg.body) -Test Message - ->>> msg = Message('Test Message') ->>> bus_service.send_queue_message('taskqueue', msg) - ->>> msg = bus_service.receive_queue_message('taskqueue', peek_lock=True) ->>> print(msg.body) -Test Message ->>> msg.delete() - - ->>> bus_service.delete_queue('taskqueue') -True - ->>> bus_service.delete_queue('taskqueue2') -True - -""" -import servicebus_settings_real as settings # pylint: disable=import-error - -key_name = settings.SERVICEBUS_SAS_KEY_NAME -key_value = settings.SERVICEBUS_SAS_KEY_VALUE - -if __name__ == "__main__": - import doctest - doctest.testmod() diff --git a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/doctest_servicebusservicetopic.py b/sdk/servicebus/azure-servicebus/tests/control_plane_tests/doctest_servicebusservicetopic.py deleted file mode 100644 index 2a3fb5d166ee..000000000000 --- a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/doctest_servicebusservicetopic.py +++ /dev/null @@ -1,86 +0,0 @@ -#------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -#-------------------------------------------------------------------------- - -""" -How to Create a Topic ---------------------- ->>> from azure.servicebus._control_client import * ->>> bus_service = ServiceBusService(shared_access_key_name=key_name, shared_access_key_value=key_value, 'owner') ->>> bus_service.create_topic('mytopic') -True - ->>> topic_options = Topic() ->>> topic_options.max_size_in_megabytes = '5120' ->>> topic_options.default_message_time_to_live = 'PT1M' ->>> bus_service.create_topic('mytopic2', topic_options) -True - -How to Create Subscriptions ---------------------------- ->>> bus_service.create_subscription('mytopic', 'AllMessages') -True - ->>> bus_service.create_subscription('mytopic', 'HighMessages') -True - ->>> rule = Rule() ->>> rule.filter_type = 'SqlFilter' ->>> rule.filter_expression = 'messagenumber > 3' ->>> bus_service.create_rule('mytopic', 'HighMessages', 'HighMessageFilter', rule) -True - ->>> bus_service.delete_rule('mytopic', 'HighMessages', DEFAULT_RULE_NAME) -True - ->>> bus_service.create_subscription('mytopic', 'LowMessages') -True - ->>> rule = Rule() ->>> rule.filter_type = 'SqlFilter' ->>> rule.filter_expression = 'messagenumber <= 3' ->>> bus_service.create_rule('mytopic', 'LowMessages', 'LowMessageFilter', rule) -True - ->>> bus_service.delete_rule('mytopic', 'LowMessages', DEFAULT_RULE_NAME) -True - -How to Send Messages to a Topic -------------------------------- ->>> for i in range(5): -... msg = Message('Msg ' + str(i), custom_properties={'messagenumber':i}) -... bus_service.send_topic_message('mytopic', msg) - -How to Receive Messages from a Subscription -------------------------------------------- ->>> msg = bus_service.receive_subscription_message('mytopic', 'LowMessages') ->>> print(msg.body) -Msg 0 - ->>> msg = bus_service.receive_subscription_message('mytopic', 'LowMessages', peek_lock=True) ->>> print(msg.body) -Msg 1 ->>> msg.delete() - -How to Delete Topics and Subscriptions --------------------------------------- ->>> bus_service.delete_subscription('mytopic', 'HighMessages') -True - ->>> bus_service.delete_queue('mytopic') -True - ->>> bus_service.delete_queue('mytopic2') -True - -""" -import servicebus_settings_real as settings # pylint: disable=import-error - -key_name = settings.SERVICEBUS_SAS_KEY_NAME -key_value = settings.SERVICEBUS_SAS_KEY_VALUE - -if __name__ == "__main__": - import doctest - doctest.testmod() diff --git a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_eventhub.test_create_event_hub_no_options.yaml b/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_eventhub.test_create_event_hub_no_options.yaml deleted file mode 100644 index 9abe99ee24fe..000000000000 --- a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_eventhub.test_create_event_hub_no_options.yaml +++ /dev/null @@ -1,36 +0,0 @@ -interactions: -- request: - body: !!binary | - PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiIHN0YW5kYWxvbmU9InllcyI/Pjxl - bnRyeSB4bWxuczpkPSJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL2Fkby8yMDA3LzA4L2Rh - dGFzZXJ2aWNlcyIgeG1sbnM6bT0iaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9hZG8vMjAw - Ny8wOC9kYXRhc2VydmljZXMvbWV0YWRhdGEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDA1 - L0F0b20iPjx0aXRsZT48L3RpdGxlPjx1cGRhdGVkPjIwMTUtMDYtMzBUMjE6NDI6MDcuNjg3ODYz - KzAwOjAwPC91cGRhdGVkPjxhdXRob3I+PG5hbWU+PC9uYW1lPjwvYXV0aG9yPjxpZD48L2lkPjxj - b250ZW50IHR5cGU9ImFwcGxpY2F0aW9uL3htbCI+PEV2ZW50SHViRGVzY3JpcHRpb24geG1sbnM6 - aT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS9YTUxTY2hlbWEtaW5zdGFuY2UiIHhtbG5zPSJodHRw - Oi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL25ldHNlcnZpY2VzLzIwMTAvMTAvc2VydmljZWJ1cy9j - b25uZWN0Ij48L0V2ZW50SHViRGVzY3JpcHRpb24+PC9jb250ZW50PjwvZW50cnk+ - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['561'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: PUT - uri: https://fakehubnamespace.servicebus.windows.net/uthubad7a17a2?api-version=2014-01 - response: - body: {string: 'https://fakehubnamespace.servicebus.windows.net/uthubad7a17a2?api-version=2014-01uthubad7a17a22015-06-30T21:42:09Z2015-06-30T21:42:28Zfakehubnamespace7Active2015-06-30T21:42:09.7872015-06-30T21:42:28.53340123'} - headers: - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - Date: ['Tue, 30 Jun 2015 21:42:27 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 201, message: Created} -version: 1 diff --git a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_eventhub.test_create_event_hub_no_options_fail_on_exist.yaml b/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_eventhub.test_create_event_hub_no_options_fail_on_exist.yaml deleted file mode 100644 index 3257b2285d2a..000000000000 --- a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_eventhub.test_create_event_hub_no_options_fail_on_exist.yaml +++ /dev/null @@ -1,36 +0,0 @@ -interactions: -- request: - body: !!binary | - PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiIHN0YW5kYWxvbmU9InllcyI/Pjxl - bnRyeSB4bWxuczpkPSJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL2Fkby8yMDA3LzA4L2Rh - dGFzZXJ2aWNlcyIgeG1sbnM6bT0iaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9hZG8vMjAw - Ny8wOC9kYXRhc2VydmljZXMvbWV0YWRhdGEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDA1 - L0F0b20iPjx0aXRsZT48L3RpdGxlPjx1cGRhdGVkPjIwMTUtMDYtMzBUMjE6NDE6NTMuMDkxNzI2 - KzAwOjAwPC91cGRhdGVkPjxhdXRob3I+PG5hbWU+PC9uYW1lPjwvYXV0aG9yPjxpZD48L2lkPjxj - b250ZW50IHR5cGU9ImFwcGxpY2F0aW9uL3htbCI+PEV2ZW50SHViRGVzY3JpcHRpb24geG1sbnM6 - aT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS9YTUxTY2hlbWEtaW5zdGFuY2UiIHhtbG5zPSJodHRw - Oi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL25ldHNlcnZpY2VzLzIwMTAvMTAvc2VydmljZWJ1cy9j - b25uZWN0Ij48L0V2ZW50SHViRGVzY3JpcHRpb24+PC9jb250ZW50PjwvZW50cnk+ - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['561'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: PUT - uri: https://fakehubnamespace.servicebus.windows.net/uthub22941d65?api-version=2014-01 - response: - body: {string: 'https://fakehubnamespace.servicebus.windows.net/uthub22941d65?api-version=2014-01uthub22941d652015-06-30T21:41:55Z2015-06-30T21:41:56Zfakehubnamespace7Active2015-06-30T21:41:55.4972015-06-30T21:41:56.50340123'} - headers: - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - Date: ['Tue, 30 Jun 2015 21:41:55 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 201, message: Created} -version: 1 diff --git a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_eventhub.test_create_event_hub_with_authorization.yaml b/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_eventhub.test_create_event_hub_with_authorization.yaml deleted file mode 100644 index 4055156eb729..000000000000 --- a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_eventhub.test_create_event_hub_with_authorization.yaml +++ /dev/null @@ -1,69 +0,0 @@ -interactions: -- request: - body: !!binary | - PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiIHN0YW5kYWxvbmU9InllcyI/Pjxl - bnRyeSB4bWxuczpkPSJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL2Fkby8yMDA3LzA4L2Rh - dGFzZXJ2aWNlcyIgeG1sbnM6bT0iaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9hZG8vMjAw - Ny8wOC9kYXRhc2VydmljZXMvbWV0YWRhdGEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDA1 - L0F0b20iPjx0aXRsZT48L3RpdGxlPjx1cGRhdGVkPjIwMTUtMDYtMzBUMjE6NDM6MDcuODMxMjI1 - KzAwOjAwPC91cGRhdGVkPjxhdXRob3I+PG5hbWU+PC9uYW1lPjwvYXV0aG9yPjxpZD48L2lkPjxj - b250ZW50IHR5cGU9ImFwcGxpY2F0aW9uL3htbCI+PEV2ZW50SHViRGVzY3JpcHRpb24geG1sbnM6 - aT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS9YTUxTY2hlbWEtaW5zdGFuY2UiIHhtbG5zPSJodHRw - Oi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL25ldHNlcnZpY2VzLzIwMTAvMTAvc2VydmljZWJ1cy9j - b25uZWN0Ij48QXV0aG9yaXphdGlvblJ1bGVzPjxBdXRob3JpemF0aW9uUnVsZSBpOnR5cGU9IlNo - YXJlZEFjY2Vzc0F1dGhvcml6YXRpb25SdWxlIj48Q2xhaW1UeXBlPlNoYXJlZEFjY2Vzc0tleTwv - Q2xhaW1UeXBlPjxDbGFpbVZhbHVlPk5vbmU8L0NsYWltVmFsdWU+PFJpZ2h0cz48QWNjZXNzUmln - aHRzPk1hbmFnZTwvQWNjZXNzUmlnaHRzPjxBY2Nlc3NSaWdodHM+U2VuZDwvQWNjZXNzUmlnaHRz - PjxBY2Nlc3NSaWdodHM+TGlzdGVuPC9BY2Nlc3NSaWdodHM+PC9SaWdodHM+PEtleU5hbWU+S2V5 - MTwvS2V5TmFtZT48UHJpbWFyeUtleT5XbGk0cmV3UEd1RXNMYW05NW5RRXdHUitlOGIreW5sdXBa - UTdWZmpiUW53PTwvUHJpbWFyeUtleT48U2Vjb25kYXJ5S2V5PmpTK2xFUlBCbWJCVkdKNUp6SXdW - UnRTR1lvRlVldW5Sb0FETlRqd1UzalU9PC9TZWNvbmRhcnlLZXk+PC9BdXRob3JpemF0aW9uUnVs - ZT48L0F1dGhvcml6YXRpb25SdWxlcz48L0V2ZW50SHViRGVzY3JpcHRpb24+PC9jb250ZW50Pjwv - ZW50cnk+ - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['1032'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: PUT - uri: https://fakehubnamespace.servicebus.windows.net/uthub79c51b06?api-version=2014-01 - response: - body: {string: 'https://fakehubnamespace.servicebus.windows.net/uthub79c51b06?api-version=2014-01uthub79c51b062015-06-30T21:43:10Z2015-06-30T21:43:10Zfakehubnamespace7SharedAccessKeyNoneManageSendListenKey1Wli4rewPGuEsLam95nQEwGR+e8b+ynlupZQ7VfjbQnw=jS+lERPBmbBVGJ5JzIwVRtSGYoFUeunRoADNTjwU3jU=Active2015-06-30T21:43:10.062015-06-30T21:43:10.8340123'} - headers: - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - Date: ['Tue, 30 Jun 2015 21:43:10 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 201, message: Created} -- request: - body: null - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [pyazure/0.20.0] - method: GET - uri: https://fakehubnamespace.servicebus.windows.net/uthub79c51b06 - response: - body: {string: 'https://fakehubnamespace.servicebus.windows.net/uthub79c51b06uthub79c51b062015-06-30T21:43:10Z2015-06-30T21:43:10Zfakehubnamespace7SharedAccessKeyNoneManageSendListenKey1Wli4rewPGuEsLam95nQEwGR+e8b+ynlupZQ7VfjbQnw=jS+lERPBmbBVGJ5JzIwVRtSGYoFUeunRoADNTjwU3jU=Active2015-06-30T21:43:10.062015-06-30T21:43:10.8340123'} - headers: - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - Date: ['Tue, 30 Jun 2015 21:43:10 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 200, message: OK} -version: 1 diff --git a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_eventhub.test_create_event_hub_with_options.yaml b/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_eventhub.test_create_event_hub_with_options.yaml deleted file mode 100644 index 3efc7ee6a53e..000000000000 --- a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_eventhub.test_create_event_hub_with_options.yaml +++ /dev/null @@ -1,61 +0,0 @@ -interactions: -- request: - body: !!binary | - PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiIHN0YW5kYWxvbmU9InllcyI/Pjxl - bnRyeSB4bWxuczpkPSJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL2Fkby8yMDA3LzA4L2Rh - dGFzZXJ2aWNlcyIgeG1sbnM6bT0iaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9hZG8vMjAw - Ny8wOC9kYXRhc2VydmljZXMvbWV0YWRhdGEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDA1 - L0F0b20iPjx0aXRsZT48L3RpdGxlPjx1cGRhdGVkPjIwMTUtMDYtMzBUMjE6NDE6NTcuNDc3Mzg5 - KzAwOjAwPC91cGRhdGVkPjxhdXRob3I+PG5hbWU+PC9uYW1lPjwvYXV0aG9yPjxpZD48L2lkPjxj - b250ZW50IHR5cGU9ImFwcGxpY2F0aW9uL3htbCI+PEV2ZW50SHViRGVzY3JpcHRpb24geG1sbnM6 - aT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS9YTUxTY2hlbWEtaW5zdGFuY2UiIHhtbG5zPSJodHRw - Oi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL25ldHNlcnZpY2VzLzIwMTAvMTAvc2VydmljZWJ1cy9j - b25uZWN0Ij48TWVzc2FnZVJldGVudGlvbkluRGF5cz41PC9NZXNzYWdlUmV0ZW50aW9uSW5EYXlz - PjxTdGF0dXM+QWN0aXZlPC9TdGF0dXM+PFVzZXJNZXRhZGF0YT5oZWxsbyB3b3JsZDwvVXNlck1l - dGFkYXRhPjxQYXJ0aXRpb25Db3VudD4zMjwvUGFydGl0aW9uQ291bnQ+PC9FdmVudEh1YkRlc2Ny - aXB0aW9uPjwvY29udGVudD48L2VudHJ5Pg== - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['709'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: PUT - uri: https://fakehubnamespace.servicebus.windows.net/uthubde421881?api-version=2014-01 - response: - body: {string: 'https://fakehubnamespace.servicebus.windows.net/uthubde421881?api-version=2014-01uthubde4218812015-06-30T21:41:59Z2015-06-30T21:42:01Zfakehubnamespace5Active2015-06-30T21:41:59.882015-06-30T21:42:01.353hello - world32012345678910111213141516171819202122232425262728293031'} - headers: - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - Date: ['Tue, 30 Jun 2015 21:42:00 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 201, message: Created} -- request: - body: null - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [pyazure/0.20.0] - method: GET - uri: https://fakehubnamespace.servicebus.windows.net/uthubde421881 - response: - body: {string: 'https://fakehubnamespace.servicebus.windows.net/uthubde421881uthubde4218812015-06-30T21:41:59Z2015-06-30T21:42:01Zfakehubnamespace5Active2015-06-30T21:41:59.882015-06-30T21:42:01.353hello - world32012345678910111213141516171819202122232425262728293031'} - headers: - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - Date: ['Tue, 30 Jun 2015 21:42:00 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 200, message: OK} -version: 1 diff --git a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_eventhub.test_delete_event_hub_with_existing_event_hub.yaml b/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_eventhub.test_delete_event_hub_with_existing_event_hub.yaml deleted file mode 100644 index 3698fa96be90..000000000000 --- a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_eventhub.test_delete_event_hub_with_existing_event_hub.yaml +++ /dev/null @@ -1,54 +0,0 @@ -interactions: -- request: - body: !!binary | - PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiIHN0YW5kYWxvbmU9InllcyI/Pjxl - bnRyeSB4bWxuczpkPSJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL2Fkby8yMDA3LzA4L2Rh - dGFzZXJ2aWNlcyIgeG1sbnM6bT0iaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9hZG8vMjAw - Ny8wOC9kYXRhc2VydmljZXMvbWV0YWRhdGEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDA1 - L0F0b20iPjx0aXRsZT48L3RpdGxlPjx1cGRhdGVkPjIwMTUtMDYtMzBUMjE6NDI6MDMuMDk2MjAy - KzAwOjAwPC91cGRhdGVkPjxhdXRob3I+PG5hbWU+PC9uYW1lPjwvYXV0aG9yPjxpZD48L2lkPjxj - b250ZW50IHR5cGU9ImFwcGxpY2F0aW9uL3htbCI+PEV2ZW50SHViRGVzY3JpcHRpb24geG1sbnM6 - aT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS9YTUxTY2hlbWEtaW5zdGFuY2UiIHhtbG5zPSJodHRw - Oi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL25ldHNlcnZpY2VzLzIwMTAvMTAvc2VydmljZWJ1cy9j - b25uZWN0Ij48L0V2ZW50SHViRGVzY3JpcHRpb24+PC9jb250ZW50PjwvZW50cnk+ - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['561'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: PUT - uri: https://fakehubnamespace.servicebus.windows.net/uthub6341cfe?api-version=2014-01 - response: - body: {string: 'https://fakehubnamespace.servicebus.windows.net/uthub6341cfe?api-version=2014-01uthub6341cfe2015-06-30T21:42:05Z2015-06-30T21:42:06Zfakehubnamespace7Active2015-06-30T21:42:05.2872015-06-30T21:42:06.04740123'} - headers: - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - Date: ['Tue, 30 Jun 2015 21:42:05 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 201, message: Created} -- request: - body: null - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: DELETE - uri: https://fakehubnamespace.servicebus.windows.net/uthub6341cfe?api-version=2014-01 - response: - body: {string: ''} - headers: - Content-Length: ['0'] - Date: ['Tue, 30 Jun 2015 21:42:06 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - status: {code: 200, message: OK} -version: 1 diff --git a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_eventhub.test_delete_event_hub_with_existing_event_hub_fail_not_exist.yaml b/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_eventhub.test_delete_event_hub_with_existing_event_hub_fail_not_exist.yaml deleted file mode 100644 index b5427c1955b3..000000000000 --- a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_eventhub.test_delete_event_hub_with_existing_event_hub_fail_not_exist.yaml +++ /dev/null @@ -1,54 +0,0 @@ -interactions: -- request: - body: !!binary | - PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiIHN0YW5kYWxvbmU9InllcyI/Pjxl - bnRyeSB4bWxuczpkPSJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL2Fkby8yMDA3LzA4L2Rh - dGFzZXJ2aWNlcyIgeG1sbnM6bT0iaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9hZG8vMjAw - Ny8wOC9kYXRhc2VydmljZXMvbWV0YWRhdGEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDA1 - L0F0b20iPjx0aXRsZT48L3RpdGxlPjx1cGRhdGVkPjIwMTUtMDYtMzBUMjE6NDI6NDQuODg1OTIz - KzAwOjAwPC91cGRhdGVkPjxhdXRob3I+PG5hbWU+PC9uYW1lPjwvYXV0aG9yPjxpZD48L2lkPjxj - b250ZW50IHR5cGU9ImFwcGxpY2F0aW9uL3htbCI+PEV2ZW50SHViRGVzY3JpcHRpb24geG1sbnM6 - aT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS9YTUxTY2hlbWEtaW5zdGFuY2UiIHhtbG5zPSJodHRw - Oi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL25ldHNlcnZpY2VzLzIwMTAvMTAvc2VydmljZWJ1cy9j - b25uZWN0Ij48L0V2ZW50SHViRGVzY3JpcHRpb24+PC9jb250ZW50PjwvZW50cnk+ - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['561'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: PUT - uri: https://fakehubnamespace.servicebus.windows.net/uthube9a72335?api-version=2014-01 - response: - body: {string: 'https://fakehubnamespace.servicebus.windows.net/uthube9a72335?api-version=2014-01uthube9a723352015-06-30T21:42:47Z2015-06-30T21:42:51Zfakehubnamespace7Active2015-06-30T21:42:47.8532015-06-30T21:42:51.92340123'} - headers: - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - Date: ['Tue, 30 Jun 2015 21:42:51 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 201, message: Created} -- request: - body: null - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: DELETE - uri: https://fakehubnamespace.servicebus.windows.net/uthube9a72335?api-version=2014-01 - response: - body: {string: ''} - headers: - Content-Length: ['0'] - Date: ['Tue, 30 Jun 2015 21:42:52 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - status: {code: 200, message: OK} -version: 1 diff --git a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_eventhub.test_delete_event_hub_with_non_existing_event_hub.yaml b/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_eventhub.test_delete_event_hub_with_non_existing_event_hub.yaml deleted file mode 100644 index 19d8bd0d6bae..000000000000 --- a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_eventhub.test_delete_event_hub_with_non_existing_event_hub.yaml +++ /dev/null @@ -1,23 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: DELETE - uri: https://fakehubnamespace.servicebus.windows.net/uthub7e381ea8?api-version=2014-01 - response: - body: {string: '404No service is hosted at the specified - address. TrackingId:fe18aa33-f108-4298-9d22-59e4d5b4bc5d_G30,TimeStamp:6/30/2015 - 9:42:31 PM'} - headers: - Content-Type: [application/xml; charset=utf-8] - Date: ['Tue, 30 Jun 2015 21:42:31 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 404, message: Not Found} -version: 1 diff --git a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_eventhub.test_delete_event_hub_with_non_existing_event_hub_fail_not_exist.yaml b/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_eventhub.test_delete_event_hub_with_non_existing_event_hub_fail_not_exist.yaml deleted file mode 100644 index ecd22af0ff8b..000000000000 --- a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_eventhub.test_delete_event_hub_with_non_existing_event_hub_fail_not_exist.yaml +++ /dev/null @@ -1,23 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: DELETE - uri: https://fakehubnamespace.servicebus.windows.net/uthub7ab024df?api-version=2014-01 - response: - body: {string: '404No service is hosted at the specified - address. TrackingId:1f11c16f-98cb-4b41-a01f-36dd97030b97_G48,TimeStamp:6/30/2015 - 9:43:04 PM'} - headers: - Content-Type: [application/xml; charset=utf-8] - Date: ['Tue, 30 Jun 2015 21:43:03 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 404, message: Not Found} -version: 1 diff --git a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_eventhub.test_get_event_hub_with_existing_event_hub.yaml b/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_eventhub.test_get_event_hub_with_existing_event_hub.yaml deleted file mode 100644 index 3e03967a3779..000000000000 --- a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_eventhub.test_get_event_hub_with_existing_event_hub.yaml +++ /dev/null @@ -1,58 +0,0 @@ -interactions: -- request: - body: !!binary | - PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiIHN0YW5kYWxvbmU9InllcyI/Pjxl - bnRyeSB4bWxuczpkPSJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL2Fkby8yMDA3LzA4L2Rh - dGFzZXJ2aWNlcyIgeG1sbnM6bT0iaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9hZG8vMjAw - Ny8wOC9kYXRhc2VydmljZXMvbWV0YWRhdGEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDA1 - L0F0b20iPjx0aXRsZT48L3RpdGxlPjx1cGRhdGVkPjIwMTUtMDYtMzBUMjE6NDE6NDYuMjIwNTM3 - KzAwOjAwPC91cGRhdGVkPjxhdXRob3I+PG5hbWU+PC9uYW1lPjwvYXV0aG9yPjxpZD48L2lkPjxj - b250ZW50IHR5cGU9ImFwcGxpY2F0aW9uL3htbCI+PEV2ZW50SHViRGVzY3JpcHRpb24geG1sbnM6 - aT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS9YTUxTY2hlbWEtaW5zdGFuY2UiIHhtbG5zPSJodHRw - Oi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL25ldHNlcnZpY2VzLzIwMTAvMTAvc2VydmljZWJ1cy9j - b25uZWN0Ij48L0V2ZW50SHViRGVzY3JpcHRpb24+PC9jb250ZW50PjwvZW50cnk+ - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['561'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: PUT - uri: https://fakehubnamespace.servicebus.windows.net/uthubb21d1bcb?api-version=2014-01 - response: - body: {string: 'https://fakehubnamespace.servicebus.windows.net/uthubb21d1bcb?api-version=2014-01uthubb21d1bcb2015-06-30T21:41:48Z2015-06-30T21:41:51Zfakehubnamespace7Active2015-06-30T21:41:48.4432015-06-30T21:41:51.81740123'} - headers: - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - Date: ['Tue, 30 Jun 2015 21:41:51 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 201, message: Created} -- request: - body: null - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [pyazure/0.20.0] - method: GET - uri: https://fakehubnamespace.servicebus.windows.net/uthubb21d1bcb - response: - body: {string: 'https://fakehubnamespace.servicebus.windows.net/uthubb21d1bcbuthubb21d1bcb2015-06-30T21:41:48Z2015-06-30T21:41:51Zfakehubnamespace7Active2015-06-30T21:41:48.4432015-06-30T21:41:51.81740123'} - headers: - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - Date: ['Tue, 30 Jun 2015 21:41:51 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 200, message: OK} -version: 1 diff --git a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_eventhub.test_get_event_hub_with_non_existing_event_hub.yaml b/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_eventhub.test_get_event_hub_with_non_existing_event_hub.yaml deleted file mode 100644 index d254a4eb37a0..000000000000 --- a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_eventhub.test_get_event_hub_with_non_existing_event_hub.yaml +++ /dev/null @@ -1,22 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [pyazure/0.20.0] - method: GET - uri: https://fakehubnamespace.servicebus.windows.net/uthub25641d75 - response: - body: {string: 'Publicly - Listed ServicesThis is the list of publicly-listed - services currently available.uuid:ee981bc3-69c2-4be6-ac2c-d5b48d6e1e9d;id=2932015-06-30T21:43:01ZService - Bus 1.1'} - headers: - Content-Type: [application/atom+xml;type=feed;charset=utf-8] - Date: ['Tue, 30 Jun 2015 21:43:01 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 200, message: OK} -version: 1 diff --git a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_eventhub.test_send_event.yaml b/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_eventhub.test_send_event.yaml deleted file mode 100644 index 3b7ff38e6e3e..000000000000 --- a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_eventhub.test_send_event.yaml +++ /dev/null @@ -1,96 +0,0 @@ -interactions: -- request: - body: !!binary | - PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiIHN0YW5kYWxvbmU9InllcyI/Pjxl - bnRyeSB4bWxuczpkPSJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL2Fkby8yMDA3LzA4L2Rh - dGFzZXJ2aWNlcyIgeG1sbnM6bT0iaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9hZG8vMjAw - Ny8wOC9kYXRhc2VydmljZXMvbWV0YWRhdGEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDA1 - L0F0b20iPjx0aXRsZT48L3RpdGxlPjx1cGRhdGVkPjIwMTUtMDYtMzBUMjE6NDI6NTMuMTU2OTc5 - KzAwOjAwPC91cGRhdGVkPjxhdXRob3I+PG5hbWU+PC9uYW1lPjwvYXV0aG9yPjxpZD48L2lkPjxj - b250ZW50IHR5cGU9ImFwcGxpY2F0aW9uL3htbCI+PEV2ZW50SHViRGVzY3JpcHRpb24geG1sbnM6 - aT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS9YTUxTY2hlbWEtaW5zdGFuY2UiIHhtbG5zPSJodHRw - Oi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL25ldHNlcnZpY2VzLzIwMTAvMTAvc2VydmljZWJ1cy9j - b25uZWN0Ij48L0V2ZW50SHViRGVzY3JpcHRpb24+PC9jb250ZW50PjwvZW50cnk+ - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['561'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: PUT - uri: https://fakehubnamespace.servicebus.windows.net/uthub55e01093?api-version=2014-01 - response: - body: {string: 'https://fakehubnamespace.servicebus.windows.net/uthub55e01093?api-version=2014-01uthub55e010932015-06-30T21:42:55Z2015-06-30T21:42:56Zfakehubnamespace7Active2015-06-30T21:42:55.1872015-06-30T21:42:56.31340123'} - headers: - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - Date: ['Tue, 30 Jun 2015 21:42:55 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 201, message: Created} -- request: - body: !!binary | - aGVsbG8gd29ybGQ= - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['11'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: POST - uri: https://fakehubnamespace.servicebus.windows.net/uthub55e01093/messages?api-version=2014-01 - response: - body: {string: ''} - headers: - Content-Type: [application/xml; charset=utf-8] - Date: ['Tue, 30 Jun 2015 21:42:56 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 201, message: Created} -- request: - body: !!binary | - d2FrZSB1cCB3b3JsZA== - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['13'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: POST - uri: https://fakehubnamespace.servicebus.windows.net/uthub55e01093/messages?api-version=2014-01 - response: - body: {string: ''} - headers: - Content-Type: [application/xml; charset=utf-8] - Date: ['Tue, 30 Jun 2015 21:42:56 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 201, message: Created} -- request: - body: !!binary | - Z29vZGJ5ZSE= - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['8'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: POST - uri: https://fakehubnamespace.servicebus.windows.net/uthub55e01093/messages?api-version=2014-01 - response: - body: {string: ''} - headers: - Content-Type: [application/xml; charset=utf-8] - Date: ['Tue, 30 Jun 2015 21:42:57 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 201, message: Created} -version: 1 diff --git a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_eventhub.test_update_event_hub.yaml b/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_eventhub.test_update_event_hub.yaml deleted file mode 100644 index 1c1248e459d8..000000000000 --- a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_eventhub.test_update_event_hub.yaml +++ /dev/null @@ -1,71 +0,0 @@ -interactions: -- request: - body: !!binary | - PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiIHN0YW5kYWxvbmU9InllcyI/Pjxl - bnRyeSB4bWxuczpkPSJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL2Fkby8yMDA3LzA4L2Rh - dGFzZXJ2aWNlcyIgeG1sbnM6bT0iaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9hZG8vMjAw - Ny8wOC9kYXRhc2VydmljZXMvbWV0YWRhdGEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDA1 - L0F0b20iPjx0aXRsZT48L3RpdGxlPjx1cGRhdGVkPjIwMTUtMDYtMzBUMjE6NDI6MzguNDA1Njk4 - KzAwOjAwPC91cGRhdGVkPjxhdXRob3I+PG5hbWU+PC9uYW1lPjwvYXV0aG9yPjxpZD48L2lkPjxj - b250ZW50IHR5cGU9ImFwcGxpY2F0aW9uL3htbCI+PEV2ZW50SHViRGVzY3JpcHRpb24geG1sbnM6 - aT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS9YTUxTY2hlbWEtaW5zdGFuY2UiIHhtbG5zPSJodHRw - Oi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL25ldHNlcnZpY2VzLzIwMTAvMTAvc2VydmljZWJ1cy9j - b25uZWN0Ij48L0V2ZW50SHViRGVzY3JpcHRpb24+PC9jb250ZW50PjwvZW50cnk+ - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['561'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: PUT - uri: https://fakehubnamespace.servicebus.windows.net/uthubc229130a?api-version=2014-01 - response: - body: {string: 'https://fakehubnamespace.servicebus.windows.net/uthubc229130a?api-version=2014-01uthubc229130a2015-06-30T21:42:40Z2015-06-30T21:42:42Zfakehubnamespace7Active2015-06-30T21:42:40.892015-06-30T21:42:42.0340123'} - headers: - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - Date: ['Tue, 30 Jun 2015 21:42:41 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 201, message: Created} -- request: - body: !!binary | - PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiIHN0YW5kYWxvbmU9InllcyI/Pjxl - bnRyeSB4bWxuczpkPSJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL2Fkby8yMDA3LzA4L2Rh - dGFzZXJ2aWNlcyIgeG1sbnM6bT0iaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9hZG8vMjAw - Ny8wOC9kYXRhc2VydmljZXMvbWV0YWRhdGEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDA1 - L0F0b20iPjx0aXRsZT48L3RpdGxlPjx1cGRhdGVkPjIwMTUtMDYtMzBUMjE6NDI6NDEuMDkzMjk1 - KzAwOjAwPC91cGRhdGVkPjxhdXRob3I+PG5hbWU+PC9uYW1lPjwvYXV0aG9yPjxpZD48L2lkPjxj - b250ZW50IHR5cGU9ImFwcGxpY2F0aW9uL3htbCI+PEV2ZW50SHViRGVzY3JpcHRpb24geG1sbnM6 - aT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS9YTUxTY2hlbWEtaW5zdGFuY2UiIHhtbG5zPSJodHRw - Oi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL25ldHNlcnZpY2VzLzIwMTAvMTAvc2VydmljZWJ1cy9j - b25uZWN0Ij48TWVzc2FnZVJldGVudGlvbkluRGF5cz4zPC9NZXNzYWdlUmV0ZW50aW9uSW5EYXlz - PjwvRXZlbnRIdWJEZXNjcmlwdGlvbj48L2NvbnRlbnQ+PC9lbnRyeT4= - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['611'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - If-Match: ['*'] - User-Agent: [pyazure/0.20.0] - method: PUT - uri: https://fakehubnamespace.servicebus.windows.net/uthubc229130a?api-version=2014-01 - response: - body: {string: 'https://fakehubnamespace.servicebus.windows.net/uthubc229130a?api-version=2014-01uthubc229130a2015-06-30T21:42:41Zfakehubnamespace3'} - headers: - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - Date: ['Tue, 30 Jun 2015 21:42:41 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 200, message: OK} -version: 1 diff --git a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_eventhub.test_update_event_hub_with_authorization.yaml b/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_eventhub.test_update_event_hub_with_authorization.yaml deleted file mode 100644 index 8cf78bdd8cad..000000000000 --- a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_eventhub.test_update_event_hub_with_authorization.yaml +++ /dev/null @@ -1,80 +0,0 @@ -interactions: -- request: - body: !!binary | - PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiIHN0YW5kYWxvbmU9InllcyI/Pjxl - bnRyeSB4bWxuczpkPSJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL2Fkby8yMDA3LzA4L2Rh - dGFzZXJ2aWNlcyIgeG1sbnM6bT0iaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9hZG8vMjAw - Ny8wOC9kYXRhc2VydmljZXMvbWV0YWRhdGEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDA1 - L0F0b20iPjx0aXRsZT48L3RpdGxlPjx1cGRhdGVkPjIwMTUtMDYtMzBUMjE6NDI6MzIuNjU4MTY5 - KzAwOjAwPC91cGRhdGVkPjxhdXRob3I+PG5hbWU+PC9uYW1lPjwvYXV0aG9yPjxpZD48L2lkPjxj - b250ZW50IHR5cGU9ImFwcGxpY2F0aW9uL3htbCI+PEV2ZW50SHViRGVzY3JpcHRpb24geG1sbnM6 - aT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS9YTUxTY2hlbWEtaW5zdGFuY2UiIHhtbG5zPSJodHRw - Oi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL25ldHNlcnZpY2VzLzIwMTAvMTAvc2VydmljZWJ1cy9j - b25uZWN0Ij48L0V2ZW50SHViRGVzY3JpcHRpb24+PC9jb250ZW50PjwvZW50cnk+ - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['561'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: PUT - uri: https://fakehubnamespace.servicebus.windows.net/uthub7bd61b15?api-version=2014-01 - response: - body: {string: 'https://fakehubnamespace.servicebus.windows.net/uthub7bd61b15?api-version=2014-01uthub7bd61b152015-06-30T21:42:35Z2015-06-30T21:42:36Zfakehubnamespace7Active2015-06-30T21:42:35.3232015-06-30T21:42:36.60740123'} - headers: - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - Date: ['Tue, 30 Jun 2015 21:42:35 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 201, message: Created} -- request: - body: !!binary | - PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiIHN0YW5kYWxvbmU9InllcyI/Pjxl - bnRyeSB4bWxuczpkPSJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL2Fkby8yMDA3LzA4L2Rh - dGFzZXJ2aWNlcyIgeG1sbnM6bT0iaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9hZG8vMjAw - Ny8wOC9kYXRhc2VydmljZXMvbWV0YWRhdGEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDA1 - L0F0b20iPjx0aXRsZT48L3RpdGxlPjx1cGRhdGVkPjIwMTUtMDYtMzBUMjE6NDI6MzUuNjQwNDI3 - KzAwOjAwPC91cGRhdGVkPjxhdXRob3I+PG5hbWU+PC9uYW1lPjwvYXV0aG9yPjxpZD48L2lkPjxj - b250ZW50IHR5cGU9ImFwcGxpY2F0aW9uL3htbCI+PEV2ZW50SHViRGVzY3JpcHRpb24geG1sbnM6 - aT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS9YTUxTY2hlbWEtaW5zdGFuY2UiIHhtbG5zPSJodHRw - Oi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL25ldHNlcnZpY2VzLzIwMTAvMTAvc2VydmljZWJ1cy9j - b25uZWN0Ij48QXV0aG9yaXphdGlvblJ1bGVzPjxBdXRob3JpemF0aW9uUnVsZSBpOnR5cGU9IlNo - YXJlZEFjY2Vzc0F1dGhvcml6YXRpb25SdWxlIj48Q2xhaW1UeXBlPlNoYXJlZEFjY2Vzc0tleTwv - Q2xhaW1UeXBlPjxDbGFpbVZhbHVlPk5vbmU8L0NsYWltVmFsdWU+PFJpZ2h0cz48QWNjZXNzUmln - aHRzPk1hbmFnZTwvQWNjZXNzUmlnaHRzPjxBY2Nlc3NSaWdodHM+U2VuZDwvQWNjZXNzUmlnaHRz - PjxBY2Nlc3NSaWdodHM+TGlzdGVuPC9BY2Nlc3NSaWdodHM+PC9SaWdodHM+PEtleU5hbWU+S2V5 - MTwvS2V5TmFtZT48UHJpbWFyeUtleT5XbGk0cmV3UEd1RXNMYW05NW5RRXdHUitlOGIreW5sdXBa - UTdWZmpiUW53PTwvUHJpbWFyeUtleT48U2Vjb25kYXJ5S2V5PmpTK2xFUlBCbWJCVkdKNUp6SXdW - UnRTR1lvRlVldW5Sb0FETlRqd1UzalU9PC9TZWNvbmRhcnlLZXk+PC9BdXRob3JpemF0aW9uUnVs - ZT48L0F1dGhvcml6YXRpb25SdWxlcz48L0V2ZW50SHViRGVzY3JpcHRpb24+PC9jb250ZW50Pjwv - ZW50cnk+ - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['1032'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - If-Match: ['*'] - User-Agent: [pyazure/0.20.0] - method: PUT - uri: https://fakehubnamespace.servicebus.windows.net/uthub7bd61b15?api-version=2014-01 - response: - body: {string: 'https://fakehubnamespace.servicebus.windows.net/uthub7bd61b15?api-version=2014-01uthub7bd61b152015-06-30T21:42:35ZfakehubnamespaceSharedAccessKeyNoneManageSendListenKey1Wli4rewPGuEsLam95nQEwGR+e8b+ynlupZQ7VfjbQnw=jS+lERPBmbBVGJ5JzIwVRtSGYoFUeunRoADNTjwU3jU='} - headers: - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - Date: ['Tue, 30 Jun 2015 21:42:36 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 200, message: OK} -version: 1 diff --git a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_create_queue_no_options.yaml b/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_create_queue_no_options.yaml deleted file mode 100644 index b5d90b7260bd..000000000000 --- a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_create_queue_no_options.yaml +++ /dev/null @@ -1,35 +0,0 @@ -interactions: -- request: - body: !!binary | - PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiIHN0YW5kYWxvbmU9InllcyI/Pjxl - bnRyeSB4bWxuczpkPSJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL2Fkby8yMDA3LzA4L2Rh - dGFzZXJ2aWNlcyIgeG1sbnM6bT0iaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9hZG8vMjAw - Ny8wOC9kYXRhc2VydmljZXMvbWV0YWRhdGEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDA1 - L0F0b20iPjx0aXRsZT48L3RpdGxlPjx1cGRhdGVkPjIwMTUtMDYtMzBUMjA6NTM6MzYuMzQ5ODM2 - KzAwOjAwPC91cGRhdGVkPjxhdXRob3I+PG5hbWU+PC9uYW1lPjwvYXV0aG9yPjxpZD48L2lkPjxj - b250ZW50IHR5cGU9ImFwcGxpY2F0aW9uL3htbCI+PFF1ZXVlRGVzY3JpcHRpb24geG1sbnM6aT0i - aHR0cDovL3d3dy53My5vcmcvMjAwMS9YTUxTY2hlbWEtaW5zdGFuY2UiIHhtbG5zPSJodHRwOi8v - c2NoZW1hcy5taWNyb3NvZnQuY29tL25ldHNlcnZpY2VzLzIwMTAvMTAvc2VydmljZWJ1cy9jb25u - ZWN0Ij48L1F1ZXVlRGVzY3JpcHRpb24+PC9jb250ZW50PjwvZW50cnk+ - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['555'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: PUT - uri: https://fakesbnamespace.servicebus.windows.net/utqueue80d116e1 - response: - body: {string: 'https://fakesbnamespace.servicebus.windows.net/utqueue80d116e1utqueue80d116e12015-06-30T20:53:38Z2015-06-30T20:53:39ZfakesbnamespacePT1M1024falsefalseP10675199DT2H48M5.4775807SfalsePT10M10true002015-06-30T20:53:38.8472015-06-30T20:53:39.02'} - headers: - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:53:38 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 201, message: Created} -version: 1 diff --git a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_create_queue_no_options_fail_on_exist.yaml b/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_create_queue_no_options_fail_on_exist.yaml deleted file mode 100644 index 21f5252d7991..000000000000 --- a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_create_queue_no_options_fail_on_exist.yaml +++ /dev/null @@ -1,35 +0,0 @@ -interactions: -- request: - body: !!binary | - PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiIHN0YW5kYWxvbmU9InllcyI/Pjxl - bnRyeSB4bWxuczpkPSJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL2Fkby8yMDA3LzA4L2Rh - dGFzZXJ2aWNlcyIgeG1sbnM6bT0iaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9hZG8vMjAw - Ny8wOC9kYXRhc2VydmljZXMvbWV0YWRhdGEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDA1 - L0F0b20iPjx0aXRsZT48L3RpdGxlPjx1cGRhdGVkPjIwMTUtMDYtMzBUMjA6NTE6MzcuNzA0MTI3 - KzAwOjAwPC91cGRhdGVkPjxhdXRob3I+PG5hbWU+PC9uYW1lPjwvYXV0aG9yPjxpZD48L2lkPjxj - b250ZW50IHR5cGU9ImFwcGxpY2F0aW9uL3htbCI+PFF1ZXVlRGVzY3JpcHRpb24geG1sbnM6aT0i - aHR0cDovL3d3dy53My5vcmcvMjAwMS9YTUxTY2hlbWEtaW5zdGFuY2UiIHhtbG5zPSJodHRwOi8v - c2NoZW1hcy5taWNyb3NvZnQuY29tL25ldHNlcnZpY2VzLzIwMTAvMTAvc2VydmljZWJ1cy9jb25u - ZWN0Ij48L1F1ZXVlRGVzY3JpcHRpb24+PC9jb250ZW50PjwvZW50cnk+ - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['555'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: PUT - uri: https://fakesbnamespace.servicebus.windows.net/utqueueeb4e1ca4 - response: - body: {string: 'https://fakesbnamespace.servicebus.windows.net/utqueueeb4e1ca4utqueueeb4e1ca42015-06-30T20:51:40Z2015-06-30T20:51:40ZfakesbnamespacePT1M1024falsefalseP10675199DT2H48M5.4775807SfalsePT10M10true002015-06-30T20:51:40.082015-06-30T20:51:40.223'} - headers: - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:51:39 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 201, message: Created} -version: 1 diff --git a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_create_queue_with_already_existing_queue.yaml b/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_create_queue_with_already_existing_queue.yaml deleted file mode 100644 index 286a3c6e1392..000000000000 --- a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_create_queue_with_already_existing_queue.yaml +++ /dev/null @@ -1,65 +0,0 @@ -interactions: -- request: - body: !!binary | - PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiIHN0YW5kYWxvbmU9InllcyI/Pjxl - bnRyeSB4bWxuczpkPSJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL2Fkby8yMDA3LzA4L2Rh - dGFzZXJ2aWNlcyIgeG1sbnM6bT0iaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9hZG8vMjAw - Ny8wOC9kYXRhc2VydmljZXMvbWV0YWRhdGEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDA1 - L0F0b20iPjx0aXRsZT48L3RpdGxlPjx1cGRhdGVkPjIwMTUtMDYtMzBUMjA6NTY6MzQuMDQ4MDcx - KzAwOjAwPC91cGRhdGVkPjxhdXRob3I+PG5hbWU+PC9uYW1lPjwvYXV0aG9yPjxpZD48L2lkPjxj - b250ZW50IHR5cGU9ImFwcGxpY2F0aW9uL3htbCI+PFF1ZXVlRGVzY3JpcHRpb24geG1sbnM6aT0i - aHR0cDovL3d3dy53My5vcmcvMjAwMS9YTUxTY2hlbWEtaW5zdGFuY2UiIHhtbG5zPSJodHRwOi8v - c2NoZW1hcy5taWNyb3NvZnQuY29tL25ldHNlcnZpY2VzLzIwMTAvMTAvc2VydmljZWJ1cy9jb25u - ZWN0Ij48L1F1ZXVlRGVzY3JpcHRpb24+PC9jb250ZW50PjwvZW50cnk+ - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['555'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: PUT - uri: https://fakesbnamespace.servicebus.windows.net/utqueue437a1de4 - response: - body: {string: 'https://fakesbnamespace.servicebus.windows.net/utqueue437a1de4utqueue437a1de42015-06-30T20:56:36Z2015-06-30T20:56:36ZfakesbnamespacePT1M1024falsefalseP10675199DT2H48M5.4775807SfalsePT10M10true002015-06-30T20:56:36.4172015-06-30T20:56:36.507'} - headers: - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:56:36 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 201, message: Created} -- request: - body: !!binary | - PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiIHN0YW5kYWxvbmU9InllcyI/Pjxl - bnRyeSB4bWxuczpkPSJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL2Fkby8yMDA3LzA4L2Rh - dGFzZXJ2aWNlcyIgeG1sbnM6bT0iaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9hZG8vMjAw - Ny8wOC9kYXRhc2VydmljZXMvbWV0YWRhdGEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDA1 - L0F0b20iPjx0aXRsZT48L3RpdGxlPjx1cGRhdGVkPjIwMTUtMDYtMzBUMjA6NTY6MzUuNTYzNzU2 - KzAwOjAwPC91cGRhdGVkPjxhdXRob3I+PG5hbWU+PC9uYW1lPjwvYXV0aG9yPjxpZD48L2lkPjxj - b250ZW50IHR5cGU9ImFwcGxpY2F0aW9uL3htbCI+PFF1ZXVlRGVzY3JpcHRpb24geG1sbnM6aT0i - aHR0cDovL3d3dy53My5vcmcvMjAwMS9YTUxTY2hlbWEtaW5zdGFuY2UiIHhtbG5zPSJodHRwOi8v - c2NoZW1hcy5taWNyb3NvZnQuY29tL25ldHNlcnZpY2VzLzIwMTAvMTAvc2VydmljZWJ1cy9jb25u - ZWN0Ij48L1F1ZXVlRGVzY3JpcHRpb24+PC9jb250ZW50PjwvZW50cnk+ - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['555'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: PUT - uri: https://fakesbnamespace.servicebus.windows.net/utqueue437a1de4 - response: - body: {string: '409SubCode=40900. Conflict. TrackingId:66cf5879-7dec-4467-b69d-23a75c7d9b87_G57,TimeStamp:6/30/2015 - 8:56:36 PM'} - headers: - Content-Type: [application/xml; charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:56:36 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 409, message: Conflict} -version: 1 diff --git a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_create_queue_with_already_existing_queue_fail_on_exist.yaml b/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_create_queue_with_already_existing_queue_fail_on_exist.yaml deleted file mode 100644 index bf3fe4ff89c8..000000000000 --- a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_create_queue_with_already_existing_queue_fail_on_exist.yaml +++ /dev/null @@ -1,65 +0,0 @@ -interactions: -- request: - body: !!binary | - PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiIHN0YW5kYWxvbmU9InllcyI/Pjxl - bnRyeSB4bWxuczpkPSJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL2Fkby8yMDA3LzA4L2Rh - dGFzZXJ2aWNlcyIgeG1sbnM6bT0iaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9hZG8vMjAw - Ny8wOC9kYXRhc2VydmljZXMvbWV0YWRhdGEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDA1 - L0F0b20iPjx0aXRsZT48L3RpdGxlPjx1cGRhdGVkPjIwMTUtMDYtMzBUMjA6NTc6MzIuMDYwMzk1 - KzAwOjAwPC91cGRhdGVkPjxhdXRob3I+PG5hbWU+PC9uYW1lPjwvYXV0aG9yPjxpZD48L2lkPjxj - b250ZW50IHR5cGU9ImFwcGxpY2F0aW9uL3htbCI+PFF1ZXVlRGVzY3JpcHRpb24geG1sbnM6aT0i - aHR0cDovL3d3dy53My5vcmcvMjAwMS9YTUxTY2hlbWEtaW5zdGFuY2UiIHhtbG5zPSJodHRwOi8v - c2NoZW1hcy5taWNyb3NvZnQuY29tL25ldHNlcnZpY2VzLzIwMTAvMTAvc2VydmljZWJ1cy9jb25u - ZWN0Ij48L1F1ZXVlRGVzY3JpcHRpb24+PC9jb250ZW50PjwvZW50cnk+ - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['555'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: PUT - uri: https://fakesbnamespace.servicebus.windows.net/utqueue103023a7 - response: - body: {string: 'https://fakesbnamespace.servicebus.windows.net/utqueue103023a7utqueue103023a72015-06-30T20:57:34Z2015-06-30T20:57:34ZfakesbnamespacePT1M1024falsefalseP10675199DT2H48M5.4775807SfalsePT10M10true002015-06-30T20:57:34.1972015-06-30T20:57:34.31'} - headers: - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:57:33 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 201, message: Created} -- request: - body: !!binary | - PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiIHN0YW5kYWxvbmU9InllcyI/Pjxl - bnRyeSB4bWxuczpkPSJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL2Fkby8yMDA3LzA4L2Rh - dGFzZXJ2aWNlcyIgeG1sbnM6bT0iaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9hZG8vMjAw - Ny8wOC9kYXRhc2VydmljZXMvbWV0YWRhdGEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDA1 - L0F0b20iPjx0aXRsZT48L3RpdGxlPjx1cGRhdGVkPjIwMTUtMDYtMzBUMjA6NTc6MzMuMzcyOTU5 - KzAwOjAwPC91cGRhdGVkPjxhdXRob3I+PG5hbWU+PC9uYW1lPjwvYXV0aG9yPjxpZD48L2lkPjxj - b250ZW50IHR5cGU9ImFwcGxpY2F0aW9uL3htbCI+PFF1ZXVlRGVzY3JpcHRpb24geG1sbnM6aT0i - aHR0cDovL3d3dy53My5vcmcvMjAwMS9YTUxTY2hlbWEtaW5zdGFuY2UiIHhtbG5zPSJodHRwOi8v - c2NoZW1hcy5taWNyb3NvZnQuY29tL25ldHNlcnZpY2VzLzIwMTAvMTAvc2VydmljZWJ1cy9jb25u - ZWN0Ij48L1F1ZXVlRGVzY3JpcHRpb24+PC9jb250ZW50PjwvZW50cnk+ - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['555'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: PUT - uri: https://fakesbnamespace.servicebus.windows.net/utqueue103023a7 - response: - body: {string: '409SubCode=40900. Conflict. TrackingId:fc76434b-a479-46d5-9103-25654dbf3899_G0,TimeStamp:6/30/2015 - 8:57:34 PM'} - headers: - Content-Type: [application/xml; charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:57:34 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 409, message: Conflict} -version: 1 diff --git a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_create_queue_with_options.yaml b/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_create_queue_with_options.yaml deleted file mode 100644 index f21dcb76f6f6..000000000000 --- a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_create_queue_with_options.yaml +++ /dev/null @@ -1,66 +0,0 @@ -interactions: -- request: - body: !!binary | - PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiIHN0YW5kYWxvbmU9InllcyI/Pjxl - bnRyeSB4bWxuczpkPSJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL2Fkby8yMDA3LzA4L2Rh - dGFzZXJ2aWNlcyIgeG1sbnM6bT0iaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9hZG8vMjAw - Ny8wOC9kYXRhc2VydmljZXMvbWV0YWRhdGEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDA1 - L0F0b20iPjx0aXRsZT48L3RpdGxlPjx1cGRhdGVkPjIwMTUtMDYtMzBUMjA6NTA6NDkuNTk3NjAy - KzAwOjAwPC91cGRhdGVkPjxhdXRob3I+PG5hbWU+PC9uYW1lPjwvYXV0aG9yPjxpZD48L2lkPjxj - b250ZW50IHR5cGU9ImFwcGxpY2F0aW9uL3htbCI+PFF1ZXVlRGVzY3JpcHRpb24geG1sbnM6aT0i - aHR0cDovL3d3dy53My5vcmcvMjAwMS9YTUxTY2hlbWEtaW5zdGFuY2UiIHhtbG5zPSJodHRwOi8v - c2NoZW1hcy5taWNyb3NvZnQuY29tL25ldHNlcnZpY2VzLzIwMTAvMTAvc2VydmljZWJ1cy9jb25u - ZWN0Ij48TG9ja0R1cmF0aW9uPlBUMU08L0xvY2tEdXJhdGlvbj48TWF4U2l6ZUluTWVnYWJ5dGVz - PjUxMjA8L01heFNpemVJbk1lZ2FieXRlcz48UmVxdWlyZXNEdXBsaWNhdGVEZXRlY3Rpb24+ZmFs - c2U8L1JlcXVpcmVzRHVwbGljYXRlRGV0ZWN0aW9uPjxSZXF1aXJlc1Nlc3Npb24+ZmFsc2U8L1Jl - cXVpcmVzU2Vzc2lvbj48RGVmYXVsdE1lc3NhZ2VUaW1lVG9MaXZlPlBUMU08L0RlZmF1bHRNZXNz - YWdlVGltZVRvTGl2ZT48RGVhZExldHRlcmluZ09uTWVzc2FnZUV4cGlyYXRpb24+ZmFsc2U8L0Rl - YWRMZXR0ZXJpbmdPbk1lc3NhZ2VFeHBpcmF0aW9uPjxEdXBsaWNhdGVEZXRlY3Rpb25IaXN0b3J5 - VGltZVdpbmRvdz5QVDVNPC9EdXBsaWNhdGVEZXRlY3Rpb25IaXN0b3J5VGltZVdpbmRvdz48TWF4 - RGVsaXZlcnlDb3VudD4xNTwvTWF4RGVsaXZlcnlDb3VudD48RW5hYmxlQmF0Y2hlZE9wZXJhdGlv - bnM+ZmFsc2U8L0VuYWJsZUJhdGNoZWRPcGVyYXRpb25zPjxTaXplSW5CeXRlcz4wPC9TaXplSW5C - eXRlcz48TWVzc2FnZUNvdW50PjA8L01lc3NhZ2VDb3VudD48L1F1ZXVlRGVzY3JpcHRpb24+PC9j - b250ZW50PjwvZW50cnk+ - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['1098'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: PUT - uri: https://fakesbnamespace.servicebus.windows.net/utqueueb01717c0 - response: - body: {string: 'https://fakesbnamespace.servicebus.windows.net/utqueueb01717c0utqueueb01717c02015-06-30T20:50:52Z2015-06-30T20:50:52ZfakesbnamespacePT1M5120falsefalsePT1MfalsePT5M15false002015-06-30T20:50:52.0572015-06-30T20:50:52.277'} - headers: - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:50:51 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 201, message: Created} -- request: - body: null - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [pyazure/0.20.0] - method: GET - uri: https://fakesbnamespace.servicebus.windows.net/utqueueb01717c0 - response: - body: {string: 'https://fakesbnamespace.servicebus.windows.net/utqueueb01717c0utqueueb01717c02015-06-30T20:50:52Z2015-06-30T20:50:52ZfakesbnamespacePT1M5120falsefalsePT1MfalsePT5M15false00'} - headers: - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:50:51 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 200, message: OK} -version: 1 diff --git a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_create_rule_no_options.yaml b/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_create_rule_no_options.yaml deleted file mode 100644 index 8a8d5b0cbf84..000000000000 --- a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_create_rule_no_options.yaml +++ /dev/null @@ -1,102 +0,0 @@ -interactions: -- request: - body: !!binary | - PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiIHN0YW5kYWxvbmU9InllcyI/Pjxl - bnRyeSB4bWxuczpkPSJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL2Fkby8yMDA3LzA4L2Rh - dGFzZXJ2aWNlcyIgeG1sbnM6bT0iaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9hZG8vMjAw - Ny8wOC9kYXRhc2VydmljZXMvbWV0YWRhdGEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDA1 - L0F0b20iPjx0aXRsZT48L3RpdGxlPjx1cGRhdGVkPjIwMTUtMDYtMzBUMjA6NTc6NDEuNTEzMDY3 - KzAwOjAwPC91cGRhdGVkPjxhdXRob3I+PG5hbWU+PC9uYW1lPjwvYXV0aG9yPjxpZD48L2lkPjxj - b250ZW50IHR5cGU9ImFwcGxpY2F0aW9uL3htbCI+PFRvcGljRGVzY3JpcHRpb24geG1sbnM6aT0i - aHR0cDovL3d3dy53My5vcmcvMjAwMS9YTUxTY2hlbWEtaW5zdGFuY2UiIHhtbG5zPSJodHRwOi8v - c2NoZW1hcy5taWNyb3NvZnQuY29tL25ldHNlcnZpY2VzLzIwMTAvMTAvc2VydmljZWJ1cy9jb25u - ZWN0Ij48L1RvcGljRGVzY3JpcHRpb24+PC9jb250ZW50PjwvZW50cnk+ - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['555'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: PUT - uri: https://fakesbnamespace.servicebus.windows.net/uttopic69ea1674 - response: - body: {string: 'https://fakesbnamespace.servicebus.windows.net/uttopic69ea1674uttopic69ea16742015-06-30T20:57:43Z2015-06-30T20:57:43ZfakesbnamespaceP10675199DT2H48M5.4775807S1024falsePT10Mtrue02015-06-30T20:57:43.6432015-06-30T20:57:43.753'} - headers: - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:57:43 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 201, message: Created} -- request: - body: !!binary | - PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiIHN0YW5kYWxvbmU9InllcyI/Pjxl - bnRyeSB4bWxuczpkPSJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL2Fkby8yMDA3LzA4L2Rh - dGFzZXJ2aWNlcyIgeG1sbnM6bT0iaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9hZG8vMjAw - Ny8wOC9kYXRhc2VydmljZXMvbWV0YWRhdGEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDA1 - L0F0b20iPjx0aXRsZT48L3RpdGxlPjx1cGRhdGVkPjIwMTUtMDYtMzBUMjA6NTc6NDIuODEwMDAy - KzAwOjAwPC91cGRhdGVkPjxhdXRob3I+PG5hbWU+PC9uYW1lPjwvYXV0aG9yPjxpZD48L2lkPjxj - b250ZW50IHR5cGU9ImFwcGxpY2F0aW9uL3htbCI+PFN1YnNjcmlwdGlvbkRlc2NyaXB0aW9uIHht - bG5zOmk9Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvWE1MU2NoZW1hLWluc3RhbmNlIiB4bWxucz0i - aHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9uZXRzZXJ2aWNlcy8yMDEwLzEwL3NlcnZpY2Vi - dXMvY29ubmVjdCI+PC9TdWJzY3JpcHRpb25EZXNjcmlwdGlvbj48L2NvbnRlbnQ+PC9lbnRyeT4= - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['569'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: PUT - uri: https://fakesbnamespace.servicebus.windows.net/uttopic69ea1674/subscriptions/MySubscription - response: - body: {string: 'https://fakesbnamespace.servicebus.windows.net/uttopic69ea1674/subscriptions/MySubscriptionMySubscription2015-06-30T20:57:43Z2015-06-30T20:57:43ZPT1MfalseP10675199DT2H48M5.4775807Sfalsetrue010true'} - headers: - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:57:44 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 201, message: Created} -- request: - body: !!binary | - PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiIHN0YW5kYWxvbmU9InllcyI/Pjxl - bnRyeSB4bWxuczpkPSJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL2Fkby8yMDA3LzA4L2Rh - dGFzZXJ2aWNlcyIgeG1sbnM6bT0iaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9hZG8vMjAw - Ny8wOC9kYXRhc2VydmljZXMvbWV0YWRhdGEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDA1 - L0F0b20iPjx0aXRsZT48L3RpdGxlPjx1cGRhdGVkPjIwMTUtMDYtMzBUMjA6NTc6NDMuOTM1MDIx - KzAwOjAwPC91cGRhdGVkPjxhdXRob3I+PG5hbWU+PC9uYW1lPjwvYXV0aG9yPjxpZD48L2lkPjxj - b250ZW50IHR5cGU9ImFwcGxpY2F0aW9uL3htbCI+PFJ1bGVEZXNjcmlwdGlvbiB4bWxuczppPSJo - dHRwOi8vd3d3LnczLm9yZy8yMDAxL1hNTFNjaGVtYS1pbnN0YW5jZSIgeG1sbnM9Imh0dHA6Ly9z - Y2hlbWFzLm1pY3Jvc29mdC5jb20vbmV0c2VydmljZXMvMjAxMC8xMC9zZXJ2aWNlYnVzL2Nvbm5l - Y3QiPjwvUnVsZURlc2NyaXB0aW9uPjwvY29udGVudD48L2VudHJ5Pg== - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['553'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: PUT - uri: https://fakesbnamespace.servicebus.windows.net/uttopic69ea1674/subscriptions/MySubscription/rules/MyRule1 - response: - body: {string: 'https://fakesbnamespace.servicebus.windows.net/uttopic69ea1674/subscriptions/MySubscription/rules/MyRule1MyRule12015-06-30T20:57:44Z2015-06-30T20:57:44Z1=120'} - headers: - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:57:44 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 201, message: Created} -version: 1 diff --git a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_create_rule_no_options_fail_on_exist.yaml b/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_create_rule_no_options_fail_on_exist.yaml deleted file mode 100644 index 18e86824699a..000000000000 --- a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_create_rule_no_options_fail_on_exist.yaml +++ /dev/null @@ -1,102 +0,0 @@ -interactions: -- request: - body: !!binary | - PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiIHN0YW5kYWxvbmU9InllcyI/Pjxl - bnRyeSB4bWxuczpkPSJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL2Fkby8yMDA3LzA4L2Rh - dGFzZXJ2aWNlcyIgeG1sbnM6bT0iaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9hZG8vMjAw - Ny8wOC9kYXRhc2VydmljZXMvbWV0YWRhdGEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDA1 - L0F0b20iPjx0aXRsZT48L3RpdGxlPjx1cGRhdGVkPjIwMTUtMDYtMzBUMjA6NTc6MDcuNDUxODEw - KzAwOjAwPC91cGRhdGVkPjxhdXRob3I+PG5hbWU+PC9uYW1lPjwvYXV0aG9yPjxpZD48L2lkPjxj - b250ZW50IHR5cGU9ImFwcGxpY2F0aW9uL3htbCI+PFRvcGljRGVzY3JpcHRpb24geG1sbnM6aT0i - aHR0cDovL3d3dy53My5vcmcvMjAwMS9YTUxTY2hlbWEtaW5zdGFuY2UiIHhtbG5zPSJodHRwOi8v - c2NoZW1hcy5taWNyb3NvZnQuY29tL25ldHNlcnZpY2VzLzIwMTAvMTAvc2VydmljZWJ1cy9jb25u - ZWN0Ij48L1RvcGljRGVzY3JpcHRpb24+PC9jb250ZW50PjwvZW50cnk+ - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['555'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: PUT - uri: https://fakesbnamespace.servicebus.windows.net/uttopicce711c37 - response: - body: {string: 'https://fakesbnamespace.servicebus.windows.net/uttopicce711c37uttopicce711c372015-06-30T20:57:09Z2015-06-30T20:57:09ZfakesbnamespaceP10675199DT2H48M5.4775807S1024falsePT10Mtrue02015-06-30T20:57:09.7672015-06-30T20:57:09.953'} - headers: - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:57:08 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 201, message: Created} -- request: - body: !!binary | - PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiIHN0YW5kYWxvbmU9InllcyI/Pjxl - bnRyeSB4bWxuczpkPSJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL2Fkby8yMDA3LzA4L2Rh - dGFzZXJ2aWNlcyIgeG1sbnM6bT0iaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9hZG8vMjAw - Ny8wOC9kYXRhc2VydmljZXMvbWV0YWRhdGEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDA1 - L0F0b20iPjx0aXRsZT48L3RpdGxlPjx1cGRhdGVkPjIwMTUtMDYtMzBUMjA6NTc6MDkuMDQ1NjAz - KzAwOjAwPC91cGRhdGVkPjxhdXRob3I+PG5hbWU+PC9uYW1lPjwvYXV0aG9yPjxpZD48L2lkPjxj - b250ZW50IHR5cGU9ImFwcGxpY2F0aW9uL3htbCI+PFN1YnNjcmlwdGlvbkRlc2NyaXB0aW9uIHht - bG5zOmk9Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvWE1MU2NoZW1hLWluc3RhbmNlIiB4bWxucz0i - aHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9uZXRzZXJ2aWNlcy8yMDEwLzEwL3NlcnZpY2Vi - dXMvY29ubmVjdCI+PC9TdWJzY3JpcHRpb25EZXNjcmlwdGlvbj48L2NvbnRlbnQ+PC9lbnRyeT4= - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['569'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: PUT - uri: https://fakesbnamespace.servicebus.windows.net/uttopicce711c37/subscriptions/MySubscription - response: - body: {string: 'https://fakesbnamespace.servicebus.windows.net/uttopicce711c37/subscriptions/MySubscriptionMySubscription2015-06-30T20:57:10Z2015-06-30T20:57:10ZPT1MfalseP10675199DT2H48M5.4775807Sfalsetrue010true'} - headers: - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:57:09 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 201, message: Created} -- request: - body: !!binary | - PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiIHN0YW5kYWxvbmU9InllcyI/Pjxl - bnRyeSB4bWxuczpkPSJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL2Fkby8yMDA3LzA4L2Rh - dGFzZXJ2aWNlcyIgeG1sbnM6bT0iaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9hZG8vMjAw - Ny8wOC9kYXRhc2VydmljZXMvbWV0YWRhdGEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDA1 - L0F0b20iPjx0aXRsZT48L3RpdGxlPjx1cGRhdGVkPjIwMTUtMDYtMzBUMjA6NTc6MDkuNzMzMTQ2 - KzAwOjAwPC91cGRhdGVkPjxhdXRob3I+PG5hbWU+PC9uYW1lPjwvYXV0aG9yPjxpZD48L2lkPjxj - b250ZW50IHR5cGU9ImFwcGxpY2F0aW9uL3htbCI+PFJ1bGVEZXNjcmlwdGlvbiB4bWxuczppPSJo - dHRwOi8vd3d3LnczLm9yZy8yMDAxL1hNTFNjaGVtYS1pbnN0YW5jZSIgeG1sbnM9Imh0dHA6Ly9z - Y2hlbWFzLm1pY3Jvc29mdC5jb20vbmV0c2VydmljZXMvMjAxMC8xMC9zZXJ2aWNlYnVzL2Nvbm5l - Y3QiPjwvUnVsZURlc2NyaXB0aW9uPjwvY29udGVudD48L2VudHJ5Pg== - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['553'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: PUT - uri: https://fakesbnamespace.servicebus.windows.net/uttopicce711c37/subscriptions/MySubscription/rules/MyRule1 - response: - body: {string: 'https://fakesbnamespace.servicebus.windows.net/uttopicce711c37/subscriptions/MySubscription/rules/MyRule1MyRule12015-06-30T20:57:10Z2015-06-30T20:57:10Z1=120'} - headers: - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:57:09 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 201, message: Created} -version: 1 diff --git a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_create_rule_with_already_existing_rule.yaml b/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_create_rule_with_already_existing_rule.yaml deleted file mode 100644 index 7674620ac1c3..000000000000 --- a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_create_rule_with_already_existing_rule.yaml +++ /dev/null @@ -1,133 +0,0 @@ -interactions: -- request: - body: !!binary | - PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiIHN0YW5kYWxvbmU9InllcyI/Pjxl - bnRyeSB4bWxuczpkPSJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL2Fkby8yMDA3LzA4L2Rh - dGFzZXJ2aWNlcyIgeG1sbnM6bT0iaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9hZG8vMjAw - Ny8wOC9kYXRhc2VydmljZXMvbWV0YWRhdGEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDA1 - L0F0b20iPjx0aXRsZT48L3RpdGxlPjx1cGRhdGVkPjIwMTUtMDYtMzBUMjA6NTU6NDQuNzkxMTE4 - KzAwOjAwPC91cGRhdGVkPjxhdXRob3I+PG5hbWU+PC9uYW1lPjwvYXV0aG9yPjxpZD48L2lkPjxj - b250ZW50IHR5cGU9ImFwcGxpY2F0aW9uL3htbCI+PFRvcGljRGVzY3JpcHRpb24geG1sbnM6aT0i - aHR0cDovL3d3dy53My5vcmcvMjAwMS9YTUxTY2hlbWEtaW5zdGFuY2UiIHhtbG5zPSJodHRwOi8v - c2NoZW1hcy5taWNyb3NvZnQuY29tL25ldHNlcnZpY2VzLzIwMTAvMTAvc2VydmljZWJ1cy9jb25u - ZWN0Ij48L1RvcGljRGVzY3JpcHRpb24+PC9jb250ZW50PjwvZW50cnk+ - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['555'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: PUT - uri: https://fakesbnamespace.servicebus.windows.net/uttopic7e11d0a - response: - body: {string: 'https://fakesbnamespace.servicebus.windows.net/uttopic7e11d0auttopic7e11d0a2015-06-30T20:55:47Z2015-06-30T20:55:47ZfakesbnamespaceP10675199DT2H48M5.4775807S1024falsePT10Mtrue02015-06-30T20:55:47.052015-06-30T20:55:47.13'} - headers: - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:55:46 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 201, message: Created} -- request: - body: !!binary | - PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiIHN0YW5kYWxvbmU9InllcyI/Pjxl - bnRyeSB4bWxuczpkPSJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL2Fkby8yMDA3LzA4L2Rh - dGFzZXJ2aWNlcyIgeG1sbnM6bT0iaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9hZG8vMjAw - Ny8wOC9kYXRhc2VydmljZXMvbWV0YWRhdGEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDA1 - L0F0b20iPjx0aXRsZT48L3RpdGxlPjx1cGRhdGVkPjIwMTUtMDYtMzBUMjA6NTU6NDYuMjA1ODcw - KzAwOjAwPC91cGRhdGVkPjxhdXRob3I+PG5hbWU+PC9uYW1lPjwvYXV0aG9yPjxpZD48L2lkPjxj - b250ZW50IHR5cGU9ImFwcGxpY2F0aW9uL3htbCI+PFN1YnNjcmlwdGlvbkRlc2NyaXB0aW9uIHht - bG5zOmk9Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvWE1MU2NoZW1hLWluc3RhbmNlIiB4bWxucz0i - aHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9uZXRzZXJ2aWNlcy8yMDEwLzEwL3NlcnZpY2Vi - dXMvY29ubmVjdCI+PC9TdWJzY3JpcHRpb25EZXNjcmlwdGlvbj48L2NvbnRlbnQ+PC9lbnRyeT4= - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['569'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: PUT - uri: https://fakesbnamespace.servicebus.windows.net/uttopic7e11d0a/subscriptions/MySubscription - response: - body: {string: 'https://fakesbnamespace.servicebus.windows.net/uttopic7e11d0a/subscriptions/MySubscriptionMySubscription2015-06-30T20:55:47Z2015-06-30T20:55:47ZPT1MfalseP10675199DT2H48M5.4775807Sfalsetrue010true'} - headers: - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:55:47 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 201, message: Created} -- request: - body: !!binary | - PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiIHN0YW5kYWxvbmU9InllcyI/Pjxl - bnRyeSB4bWxuczpkPSJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL2Fkby8yMDA3LzA4L2Rh - dGFzZXJ2aWNlcyIgeG1sbnM6bT0iaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9hZG8vMjAw - Ny8wOC9kYXRhc2VydmljZXMvbWV0YWRhdGEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDA1 - L0F0b20iPjx0aXRsZT48L3RpdGxlPjx1cGRhdGVkPjIwMTUtMDYtMzBUMjA6NTU6NDYuODY1NDE1 - KzAwOjAwPC91cGRhdGVkPjxhdXRob3I+PG5hbWU+PC9uYW1lPjwvYXV0aG9yPjxpZD48L2lkPjxj - b250ZW50IHR5cGU9ImFwcGxpY2F0aW9uL3htbCI+PFJ1bGVEZXNjcmlwdGlvbiB4bWxuczppPSJo - dHRwOi8vd3d3LnczLm9yZy8yMDAxL1hNTFNjaGVtYS1pbnN0YW5jZSIgeG1sbnM9Imh0dHA6Ly9z - Y2hlbWFzLm1pY3Jvc29mdC5jb20vbmV0c2VydmljZXMvMjAxMC8xMC9zZXJ2aWNlYnVzL2Nvbm5l - Y3QiPjwvUnVsZURlc2NyaXB0aW9uPjwvY29udGVudD48L2VudHJ5Pg== - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['553'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: PUT - uri: https://fakesbnamespace.servicebus.windows.net/uttopic7e11d0a/subscriptions/MySubscription/rules/MyRule1 - response: - body: {string: 'https://fakesbnamespace.servicebus.windows.net/uttopic7e11d0a/subscriptions/MySubscription/rules/MyRule1MyRule12015-06-30T20:55:48Z2015-06-30T20:55:48Z1=120'} - headers: - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:55:47 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 201, message: Created} -- request: - body: !!binary | - PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiIHN0YW5kYWxvbmU9InllcyI/Pjxl - bnRyeSB4bWxuczpkPSJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL2Fkby8yMDA3LzA4L2Rh - dGFzZXJ2aWNlcyIgeG1sbnM6bT0iaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9hZG8vMjAw - Ny8wOC9kYXRhc2VydmljZXMvbWV0YWRhdGEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDA1 - L0F0b20iPjx0aXRsZT48L3RpdGxlPjx1cGRhdGVkPjIwMTUtMDYtMzBUMjA6NTU6NDcuMjY0MzQw - KzAwOjAwPC91cGRhdGVkPjxhdXRob3I+PG5hbWU+PC9uYW1lPjwvYXV0aG9yPjxpZD48L2lkPjxj - b250ZW50IHR5cGU9ImFwcGxpY2F0aW9uL3htbCI+PFJ1bGVEZXNjcmlwdGlvbiB4bWxuczppPSJo - dHRwOi8vd3d3LnczLm9yZy8yMDAxL1hNTFNjaGVtYS1pbnN0YW5jZSIgeG1sbnM9Imh0dHA6Ly9z - Y2hlbWFzLm1pY3Jvc29mdC5jb20vbmV0c2VydmljZXMvMjAxMC8xMC9zZXJ2aWNlYnVzL2Nvbm5l - Y3QiPjwvUnVsZURlc2NyaXB0aW9uPjwvY29udGVudD48L2VudHJ5Pg== - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['553'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: PUT - uri: https://fakesbnamespace.servicebus.windows.net/uttopic7e11d0a/subscriptions/MySubscription/rules/MyRule1 - response: - body: {string: '409The messaging entity ''fakesbnamespace:Topic:uttopic7e11d0a|MySubscription|MyRule1'' - already exists. TrackingId:4e1ef869-c97f-45dc-96a8-846869cfebf6_B24, Timestamp:6/30/2015 - 8:55:49 PM'} - headers: - Content-Type: [application/xml; charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:55:49 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 409, message: Conflict} -version: 1 diff --git a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_create_rule_with_already_existing_rule_fail_on_exist.yaml b/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_create_rule_with_already_existing_rule_fail_on_exist.yaml deleted file mode 100644 index 3e77606eb52d..000000000000 --- a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_create_rule_with_already_existing_rule_fail_on_exist.yaml +++ /dev/null @@ -1,133 +0,0 @@ -interactions: -- request: - body: !!binary | - PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiIHN0YW5kYWxvbmU9InllcyI/Pjxl - bnRyeSB4bWxuczpkPSJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL2Fkby8yMDA3LzA4L2Rh - dGFzZXJ2aWNlcyIgeG1sbnM6bT0iaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9hZG8vMjAw - Ny8wOC9kYXRhc2VydmljZXMvbWV0YWRhdGEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDA1 - L0F0b20iPjx0aXRsZT48L3RpdGxlPjx1cGRhdGVkPjIwMTUtMDYtMzBUMjA6NTE6NTcuNjU2MDQy - KzAwOjAwPC91cGRhdGVkPjxhdXRob3I+PG5hbWU+PC9uYW1lPjwvYXV0aG9yPjxpZD48L2lkPjxj - b250ZW50IHR5cGU9ImFwcGxpY2F0aW9uL3htbCI+PFRvcGljRGVzY3JpcHRpb24geG1sbnM6aT0i - aHR0cDovL3d3dy53My5vcmcvMjAwMS9YTUxTY2hlbWEtaW5zdGFuY2UiIHhtbG5zPSJodHRwOi8v - c2NoZW1hcy5taWNyb3NvZnQuY29tL25ldHNlcnZpY2VzLzIwMTAvMTAvc2VydmljZWJ1cy9jb25u - ZWN0Ij48L1RvcGljRGVzY3JpcHRpb24+PC9jb250ZW50PjwvZW50cnk+ - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['555'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: PUT - uri: https://fakesbnamespace.servicebus.windows.net/uttopicc89c22cd - response: - body: {string: 'https://fakesbnamespace.servicebus.windows.net/uttopicc89c22cduttopicc89c22cd2015-06-30T20:51:59Z2015-06-30T20:51:59ZfakesbnamespaceP10675199DT2H48M5.4775807S1024falsePT10Mtrue02015-06-30T20:51:59.862015-06-30T20:51:59.937'} - headers: - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:51:59 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 201, message: Created} -- request: - body: !!binary | - PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiIHN0YW5kYWxvbmU9InllcyI/Pjxl - bnRyeSB4bWxuczpkPSJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL2Fkby8yMDA3LzA4L2Rh - dGFzZXJ2aWNlcyIgeG1sbnM6bT0iaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9hZG8vMjAw - Ny8wOC9kYXRhc2VydmljZXMvbWV0YWRhdGEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDA1 - L0F0b20iPjx0aXRsZT48L3RpdGxlPjx1cGRhdGVkPjIwMTUtMDYtMzBUMjA6NTE6NTkuMDMxMTA4 - KzAwOjAwPC91cGRhdGVkPjxhdXRob3I+PG5hbWU+PC9uYW1lPjwvYXV0aG9yPjxpZD48L2lkPjxj - b250ZW50IHR5cGU9ImFwcGxpY2F0aW9uL3htbCI+PFN1YnNjcmlwdGlvbkRlc2NyaXB0aW9uIHht - bG5zOmk9Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvWE1MU2NoZW1hLWluc3RhbmNlIiB4bWxucz0i - aHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9uZXRzZXJ2aWNlcy8yMDEwLzEwL3NlcnZpY2Vi - dXMvY29ubmVjdCI+PC9TdWJzY3JpcHRpb25EZXNjcmlwdGlvbj48L2NvbnRlbnQ+PC9lbnRyeT4= - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['569'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: PUT - uri: https://fakesbnamespace.servicebus.windows.net/uttopicc89c22cd/subscriptions/MySubscription - response: - body: {string: 'https://fakesbnamespace.servicebus.windows.net/uttopicc89c22cd/subscriptions/MySubscriptionMySubscription2015-06-30T20:51:59Z2015-06-30T20:51:59ZPT1MfalseP10675199DT2H48M5.4775807Sfalsetrue010true'} - headers: - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:51:59 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 201, message: Created} -- request: - body: !!binary | - PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiIHN0YW5kYWxvbmU9InllcyI/Pjxl - bnRyeSB4bWxuczpkPSJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL2Fkby8yMDA3LzA4L2Rh - dGFzZXJ2aWNlcyIgeG1sbnM6bT0iaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9hZG8vMjAw - Ny8wOC9kYXRhc2VydmljZXMvbWV0YWRhdGEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDA1 - L0F0b20iPjx0aXRsZT48L3RpdGxlPjx1cGRhdGVkPjIwMTUtMDYtMzBUMjA6NTE6NTkuNDIxNzQx - KzAwOjAwPC91cGRhdGVkPjxhdXRob3I+PG5hbWU+PC9uYW1lPjwvYXV0aG9yPjxpZD48L2lkPjxj - b250ZW50IHR5cGU9ImFwcGxpY2F0aW9uL3htbCI+PFJ1bGVEZXNjcmlwdGlvbiB4bWxuczppPSJo - dHRwOi8vd3d3LnczLm9yZy8yMDAxL1hNTFNjaGVtYS1pbnN0YW5jZSIgeG1sbnM9Imh0dHA6Ly9z - Y2hlbWFzLm1pY3Jvc29mdC5jb20vbmV0c2VydmljZXMvMjAxMC8xMC9zZXJ2aWNlYnVzL2Nvbm5l - Y3QiPjwvUnVsZURlc2NyaXB0aW9uPjwvY29udGVudD48L2VudHJ5Pg== - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['553'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: PUT - uri: https://fakesbnamespace.servicebus.windows.net/uttopicc89c22cd/subscriptions/MySubscription/rules/MyRule1 - response: - body: {string: 'https://fakesbnamespace.servicebus.windows.net/uttopicc89c22cd/subscriptions/MySubscription/rules/MyRule1MyRule12015-06-30T20:52:00Z2015-06-30T20:52:00Z1=120'} - headers: - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:51:59 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 201, message: Created} -- request: - body: !!binary | - PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiIHN0YW5kYWxvbmU9InllcyI/Pjxl - bnRyeSB4bWxuczpkPSJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL2Fkby8yMDA3LzA4L2Rh - dGFzZXJ2aWNlcyIgeG1sbnM6bT0iaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9hZG8vMjAw - Ny8wOC9kYXRhc2VydmljZXMvbWV0YWRhdGEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDA1 - L0F0b20iPjx0aXRsZT48L3RpdGxlPjx1cGRhdGVkPjIwMTUtMDYtMzBUMjA6NTE6NTkuNzM0MjE4 - KzAwOjAwPC91cGRhdGVkPjxhdXRob3I+PG5hbWU+PC9uYW1lPjwvYXV0aG9yPjxpZD48L2lkPjxj - b250ZW50IHR5cGU9ImFwcGxpY2F0aW9uL3htbCI+PFJ1bGVEZXNjcmlwdGlvbiB4bWxuczppPSJo - dHRwOi8vd3d3LnczLm9yZy8yMDAxL1hNTFNjaGVtYS1pbnN0YW5jZSIgeG1sbnM9Imh0dHA6Ly9z - Y2hlbWFzLm1pY3Jvc29mdC5jb20vbmV0c2VydmljZXMvMjAxMC8xMC9zZXJ2aWNlYnVzL2Nvbm5l - Y3QiPjwvUnVsZURlc2NyaXB0aW9uPjwvY29udGVudD48L2VudHJ5Pg== - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['553'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: PUT - uri: https://fakesbnamespace.servicebus.windows.net/uttopicc89c22cd/subscriptions/MySubscription/rules/MyRule1 - response: - body: {string: '409The messaging entity ''fakesbnamespace:Topic:uttopicc89c22cd|MySubscription|MyRule1'' - already exists. TrackingId:bf405007-8fe4-4877-b0fc-ad6b7fce5068_B8, Timestamp:6/30/2015 - 8:52:00 PM'} - headers: - Content-Type: [application/xml; charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:52:00 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 409, message: Conflict} -version: 1 diff --git a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_create_rule_with_options_correlation_filter.yaml b/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_create_rule_with_options_correlation_filter.yaml deleted file mode 100644 index 6d9b51363aa2..000000000000 --- a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_create_rule_with_options_correlation_filter.yaml +++ /dev/null @@ -1,104 +0,0 @@ -interactions: -- request: - body: !!binary | - PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiIHN0YW5kYWxvbmU9InllcyI/Pjxl - bnRyeSB4bWxuczpkPSJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL2Fkby8yMDA3LzA4L2Rh - dGFzZXJ2aWNlcyIgeG1sbnM6bT0iaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9hZG8vMjAw - Ny8wOC9kYXRhc2VydmljZXMvbWV0YWRhdGEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDA1 - L0F0b20iPjx0aXRsZT48L3RpdGxlPjx1cGRhdGVkPjIwMTUtMDYtMzBUMjA6NTQ6NDcuMTcyOTI3 - KzAwOjAwPC91cGRhdGVkPjxhdXRob3I+PG5hbWU+PC9uYW1lPjwvYXV0aG9yPjxpZD48L2lkPjxj - b250ZW50IHR5cGU9ImFwcGxpY2F0aW9uL3htbCI+PFRvcGljRGVzY3JpcHRpb24geG1sbnM6aT0i - aHR0cDovL3d3dy53My5vcmcvMjAwMS9YTUxTY2hlbWEtaW5zdGFuY2UiIHhtbG5zPSJodHRwOi8v - c2NoZW1hcy5taWNyb3NvZnQuY29tL25ldHNlcnZpY2VzLzIwMTAvMTAvc2VydmljZWJ1cy9jb25u - ZWN0Ij48L1RvcGljRGVzY3JpcHRpb24+PC9jb250ZW50PjwvZW50cnk+ - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['555'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: PUT - uri: https://fakesbnamespace.servicebus.windows.net/uttopica21a1f39 - response: - body: {string: 'https://fakesbnamespace.servicebus.windows.net/uttopica21a1f39uttopica21a1f392015-06-30T20:54:49Z2015-06-30T20:54:49ZfakesbnamespaceP10675199DT2H48M5.4775807S1024falsePT10Mtrue02015-06-30T20:54:49.382015-06-30T20:54:49.46'} - headers: - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:54:49 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 201, message: Created} -- request: - body: !!binary | - PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiIHN0YW5kYWxvbmU9InllcyI/Pjxl - bnRyeSB4bWxuczpkPSJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL2Fkby8yMDA3LzA4L2Rh - dGFzZXJ2aWNlcyIgeG1sbnM6bT0iaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9hZG8vMjAw - Ny8wOC9kYXRhc2VydmljZXMvbWV0YWRhdGEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDA1 - L0F0b20iPjx0aXRsZT48L3RpdGxlPjx1cGRhdGVkPjIwMTUtMDYtMzBUMjA6NTQ6NDguNTMxNTU5 - KzAwOjAwPC91cGRhdGVkPjxhdXRob3I+PG5hbWU+PC9uYW1lPjwvYXV0aG9yPjxpZD48L2lkPjxj - b250ZW50IHR5cGU9ImFwcGxpY2F0aW9uL3htbCI+PFN1YnNjcmlwdGlvbkRlc2NyaXB0aW9uIHht - bG5zOmk9Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvWE1MU2NoZW1hLWluc3RhbmNlIiB4bWxucz0i - aHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9uZXRzZXJ2aWNlcy8yMDEwLzEwL3NlcnZpY2Vi - dXMvY29ubmVjdCI+PC9TdWJzY3JpcHRpb25EZXNjcmlwdGlvbj48L2NvbnRlbnQ+PC9lbnRyeT4= - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['569'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: PUT - uri: https://fakesbnamespace.servicebus.windows.net/uttopica21a1f39/subscriptions/MySubscription - response: - body: {string: 'https://fakesbnamespace.servicebus.windows.net/uttopica21a1f39/subscriptions/MySubscriptionMySubscription2015-06-30T20:54:49Z2015-06-30T20:54:49ZPT1MfalseP10675199DT2H48M5.4775807Sfalsetrue010true'} - headers: - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:54:49 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 201, message: Created} -- request: - body: !!binary | - PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiIHN0YW5kYWxvbmU9InllcyI/Pjxl - bnRyeSB4bWxuczpkPSJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL2Fkby8yMDA3LzA4L2Rh - dGFzZXJ2aWNlcyIgeG1sbnM6bT0iaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9hZG8vMjAw - Ny8wOC9kYXRhc2VydmljZXMvbWV0YWRhdGEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDA1 - L0F0b20iPjx0aXRsZT48L3RpdGxlPjx1cGRhdGVkPjIwMTUtMDYtMzBUMjA6NTQ6NDguOTg0Njkx - KzAwOjAwPC91cGRhdGVkPjxhdXRob3I+PG5hbWU+PC9uYW1lPjwvYXV0aG9yPjxpZD48L2lkPjxj - b250ZW50IHR5cGU9ImFwcGxpY2F0aW9uL3htbCI+PFJ1bGVEZXNjcmlwdGlvbiB4bWxuczppPSJo - dHRwOi8vd3d3LnczLm9yZy8yMDAxL1hNTFNjaGVtYS1pbnN0YW5jZSIgeG1sbnM9Imh0dHA6Ly9z - Y2hlbWFzLm1pY3Jvc29mdC5jb20vbmV0c2VydmljZXMvMjAxMC8xMC9zZXJ2aWNlYnVzL2Nvbm5l - Y3QiPjxGaWx0ZXIgaTp0eXBlPSJDb3JyZWxhdGlvbkZpbHRlciI+PENvcnJlbGF0aW9uSWQ+bXlp - ZDwvQ29ycmVsYXRpb25JZD48L0ZpbHRlcj48L1J1bGVEZXNjcmlwdGlvbj48L2NvbnRlbnQ+PC9l - bnRyeT4= - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['632'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: PUT - uri: https://fakesbnamespace.servicebus.windows.net/uttopica21a1f39/subscriptions/MySubscription/rules/MyRule1 - response: - body: {string: 'https://fakesbnamespace.servicebus.windows.net/uttopica21a1f39/subscriptions/MySubscription/rules/MyRule1MyRule12015-06-30T20:54:49Z2015-06-30T20:54:49Zmyid'} - headers: - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:54:50 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 201, message: Created} -version: 1 diff --git a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_create_rule_with_options_empty_rule_action.yaml b/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_create_rule_with_options_empty_rule_action.yaml deleted file mode 100644 index e783a1a8c2d1..000000000000 --- a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_create_rule_with_options_empty_rule_action.yaml +++ /dev/null @@ -1,103 +0,0 @@ -interactions: -- request: - body: !!binary | - PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiIHN0YW5kYWxvbmU9InllcyI/Pjxl - bnRyeSB4bWxuczpkPSJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL2Fkby8yMDA3LzA4L2Rh - dGFzZXJ2aWNlcyIgeG1sbnM6bT0iaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9hZG8vMjAw - Ny8wOC9kYXRhc2VydmljZXMvbWV0YWRhdGEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDA1 - L0F0b20iPjx0aXRsZT48L3RpdGxlPjx1cGRhdGVkPjIwMTUtMDYtMzBUMjA6NTI6MzkuMTI2NjE5 - KzAwOjAwPC91cGRhdGVkPjxhdXRob3I+PG5hbWU+PC9uYW1lPjwvYXV0aG9yPjxpZD48L2lkPjxj - b250ZW50IHR5cGU9ImFwcGxpY2F0aW9uL3htbCI+PFRvcGljRGVzY3JpcHRpb24geG1sbnM6aT0i - aHR0cDovL3d3dy53My5vcmcvMjAwMS9YTUxTY2hlbWEtaW5zdGFuY2UiIHhtbG5zPSJodHRwOi8v - c2NoZW1hcy5taWNyb3NvZnQuY29tL25ldHNlcnZpY2VzLzIwMTAvMTAvc2VydmljZWJ1cy9jb25u - ZWN0Ij48L1RvcGljRGVzY3JpcHRpb24+PC9jb250ZW50PjwvZW50cnk+ - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['555'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: PUT - uri: https://fakesbnamespace.servicebus.windows.net/uttopic838f1ed5 - response: - body: {string: 'https://fakesbnamespace.servicebus.windows.net/uttopic838f1ed5uttopic838f1ed52015-06-30T20:52:41Z2015-06-30T20:52:41ZfakesbnamespaceP10675199DT2H48M5.4775807S1024falsePT10Mtrue02015-06-30T20:52:41.5032015-06-30T20:52:41.703'} - headers: - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:52:40 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 201, message: Created} -- request: - body: !!binary | - PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiIHN0YW5kYWxvbmU9InllcyI/Pjxl - bnRyeSB4bWxuczpkPSJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL2Fkby8yMDA3LzA4L2Rh - dGFzZXJ2aWNlcyIgeG1sbnM6bT0iaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9hZG8vMjAw - Ny8wOC9kYXRhc2VydmljZXMvbWV0YWRhdGEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDA1 - L0F0b20iPjx0aXRsZT48L3RpdGxlPjx1cGRhdGVkPjIwMTUtMDYtMzBUMjA6NTI6NDAuNzcxNDIz - KzAwOjAwPC91cGRhdGVkPjxhdXRob3I+PG5hbWU+PC9uYW1lPjwvYXV0aG9yPjxpZD48L2lkPjxj - b250ZW50IHR5cGU9ImFwcGxpY2F0aW9uL3htbCI+PFN1YnNjcmlwdGlvbkRlc2NyaXB0aW9uIHht - bG5zOmk9Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvWE1MU2NoZW1hLWluc3RhbmNlIiB4bWxucz0i - aHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9uZXRzZXJ2aWNlcy8yMDEwLzEwL3NlcnZpY2Vi - dXMvY29ubmVjdCI+PC9TdWJzY3JpcHRpb25EZXNjcmlwdGlvbj48L2NvbnRlbnQ+PC9lbnRyeT4= - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['569'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: PUT - uri: https://fakesbnamespace.servicebus.windows.net/uttopic838f1ed5/subscriptions/MySubscription - response: - body: {string: 'https://fakesbnamespace.servicebus.windows.net/uttopic838f1ed5/subscriptions/MySubscriptionMySubscription2015-06-30T20:52:42Z2015-06-30T20:52:42ZPT1MfalseP10675199DT2H48M5.4775807Sfalsetrue010true'} - headers: - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:52:41 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 201, message: Created} -- request: - body: !!binary | - PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiIHN0YW5kYWxvbmU9InllcyI/Pjxl - bnRyeSB4bWxuczpkPSJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL2Fkby8yMDA3LzA4L2Rh - dGFzZXJ2aWNlcyIgeG1sbnM6bT0iaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9hZG8vMjAw - Ny8wOC9kYXRhc2VydmljZXMvbWV0YWRhdGEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDA1 - L0F0b20iPjx0aXRsZT48L3RpdGxlPjx1cGRhdGVkPjIwMTUtMDYtMzBUMjA6NTI6NDEuNjU1MzY3 - KzAwOjAwPC91cGRhdGVkPjxhdXRob3I+PG5hbWU+PC9uYW1lPjwvYXV0aG9yPjxpZD48L2lkPjxj - b250ZW50IHR5cGU9ImFwcGxpY2F0aW9uL3htbCI+PFJ1bGVEZXNjcmlwdGlvbiB4bWxuczppPSJo - dHRwOi8vd3d3LnczLm9yZy8yMDAxL1hNTFNjaGVtYS1pbnN0YW5jZSIgeG1sbnM9Imh0dHA6Ly9z - Y2hlbWFzLm1pY3Jvc29mdC5jb20vbmV0c2VydmljZXMvMjAxMC8xMC9zZXJ2aWNlYnVzL2Nvbm5l - Y3QiPjxBY3Rpb24gaTp0eXBlPSJFbXB0eVJ1bGVBY3Rpb24iPjwvQWN0aW9uPjwvUnVsZURlc2Ny - aXB0aW9uPjwvY29udGVudD48L2VudHJ5Pg== - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['595'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: PUT - uri: https://fakesbnamespace.servicebus.windows.net/uttopic838f1ed5/subscriptions/MySubscription/rules/MyRule1 - response: - body: {string: 'https://fakesbnamespace.servicebus.windows.net/uttopic838f1ed5/subscriptions/MySubscription/rules/MyRule1MyRule12015-06-30T20:52:42Z2015-06-30T20:52:42Z1=120'} - headers: - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:52:42 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 201, message: Created} -version: 1 diff --git a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_create_rule_with_options_false_filter.yaml b/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_create_rule_with_options_false_filter.yaml deleted file mode 100644 index 6c4a2d7374a4..000000000000 --- a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_create_rule_with_options_false_filter.yaml +++ /dev/null @@ -1,104 +0,0 @@ -interactions: -- request: - body: !!binary | - PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiIHN0YW5kYWxvbmU9InllcyI/Pjxl - bnRyeSB4bWxuczpkPSJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL2Fkby8yMDA3LzA4L2Rh - dGFzZXJ2aWNlcyIgeG1sbnM6bT0iaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9hZG8vMjAw - Ny8wOC9kYXRhc2VydmljZXMvbWV0YWRhdGEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDA1 - L0F0b20iPjx0aXRsZT48L3RpdGxlPjx1cGRhdGVkPjIwMTUtMDYtMzBUMjA6NTA6MTcuMDk3MzQw - KzAwOjAwPC91cGRhdGVkPjxhdXRob3I+PG5hbWU+PC9uYW1lPjwvYXV0aG9yPjxpZD48L2lkPjxj - b250ZW50IHR5cGU9ImFwcGxpY2F0aW9uL3htbCI+PFRvcGljRGVzY3JpcHRpb24geG1sbnM6aT0i - aHR0cDovL3d3dy53My5vcmcvMjAwMS9YTUxTY2hlbWEtaW5zdGFuY2UiIHhtbG5zPSJodHRwOi8v - c2NoZW1hcy5taWNyb3NvZnQuY29tL25ldHNlcnZpY2VzLzIwMTAvMTAvc2VydmljZWJ1cy9jb25u - ZWN0Ij48L1RvcGljRGVzY3JpcHRpb24+PC9jb250ZW50PjwvZW50cnk+ - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['555'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: PUT - uri: https://fakesbnamespace.servicebus.windows.net/uttopicec1f1ca2 - response: - body: {string: 'https://fakesbnamespace.servicebus.windows.net/uttopicec1f1ca2uttopicec1f1ca22015-06-30T20:50:19Z2015-06-30T20:50:19ZfakesbnamespaceP10675199DT2H48M5.4775807S1024falsePT10Mtrue02015-06-30T20:50:19.2572015-06-30T20:50:19.377'} - headers: - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:50:19 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 201, message: Created} -- request: - body: !!binary | - PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiIHN0YW5kYWxvbmU9InllcyI/Pjxl - bnRyeSB4bWxuczpkPSJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL2Fkby8yMDA3LzA4L2Rh - dGFzZXJ2aWNlcyIgeG1sbnM6bT0iaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9hZG8vMjAw - Ny8wOC9kYXRhc2VydmljZXMvbWV0YWRhdGEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDA1 - L0F0b20iPjx0aXRsZT48L3RpdGxlPjx1cGRhdGVkPjIwMTUtMDYtMzBUMjA6NTA6MTguNDc2ODM5 - KzAwOjAwPC91cGRhdGVkPjxhdXRob3I+PG5hbWU+PC9uYW1lPjwvYXV0aG9yPjxpZD48L2lkPjxj - b250ZW50IHR5cGU9ImFwcGxpY2F0aW9uL3htbCI+PFN1YnNjcmlwdGlvbkRlc2NyaXB0aW9uIHht - bG5zOmk9Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvWE1MU2NoZW1hLWluc3RhbmNlIiB4bWxucz0i - aHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9uZXRzZXJ2aWNlcy8yMDEwLzEwL3NlcnZpY2Vi - dXMvY29ubmVjdCI+PC9TdWJzY3JpcHRpb25EZXNjcmlwdGlvbj48L2NvbnRlbnQ+PC9lbnRyeT4= - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['569'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: PUT - uri: https://fakesbnamespace.servicebus.windows.net/uttopicec1f1ca2/subscriptions/MySubscription - response: - body: {string: 'https://fakesbnamespace.servicebus.windows.net/uttopicec1f1ca2/subscriptions/MySubscriptionMySubscription2015-06-30T20:50:19Z2015-06-30T20:50:19ZPT1MfalseP10675199DT2H48M5.4775807Sfalsetrue010true'} - headers: - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:50:19 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 201, message: Created} -- request: - body: !!binary | - PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiIHN0YW5kYWxvbmU9InllcyI/Pjxl - bnRyeSB4bWxuczpkPSJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL2Fkby8yMDA3LzA4L2Rh - dGFzZXJ2aWNlcyIgeG1sbnM6bT0iaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9hZG8vMjAw - Ny8wOC9kYXRhc2VydmljZXMvbWV0YWRhdGEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDA1 - L0F0b20iPjx0aXRsZT48L3RpdGxlPjx1cGRhdGVkPjIwMTUtMDYtMzBUMjA6NTA6MTkuMTU5NzUz - KzAwOjAwPC91cGRhdGVkPjxhdXRob3I+PG5hbWU+PC9uYW1lPjwvYXV0aG9yPjxpZD48L2lkPjxj - b250ZW50IHR5cGU9ImFwcGxpY2F0aW9uL3htbCI+PFJ1bGVEZXNjcmlwdGlvbiB4bWxuczppPSJo - dHRwOi8vd3d3LnczLm9yZy8yMDAxL1hNTFNjaGVtYS1pbnN0YW5jZSIgeG1sbnM9Imh0dHA6Ly9z - Y2hlbWFzLm1pY3Jvc29mdC5jb20vbmV0c2VydmljZXMvMjAxMC8xMC9zZXJ2aWNlYnVzL2Nvbm5l - Y3QiPjxGaWx0ZXIgaTp0eXBlPSJGYWxzZUZpbHRlciI+PFNxbEV4cHJlc3Npb24+MT0wPC9TcWxF - eHByZXNzaW9uPjxDb21wYXRpYmlsaXR5TGV2ZWw+MjA8L0NvbXBhdGliaWxpdHlMZXZlbD48L0Zp - bHRlcj48L1J1bGVEZXNjcmlwdGlvbj48L2NvbnRlbnQ+PC9lbnRyeT4= - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['668'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: PUT - uri: https://fakesbnamespace.servicebus.windows.net/uttopicec1f1ca2/subscriptions/MySubscription/rules/MyRule1 - response: - body: {string: 'https://fakesbnamespace.servicebus.windows.net/uttopicec1f1ca2/subscriptions/MySubscription/rules/MyRule1MyRule12015-06-30T20:50:20Z2015-06-30T20:50:20Z1=020'} - headers: - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:50:20 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 201, message: Created} -version: 1 diff --git a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_create_rule_with_options_sql_filter.yaml b/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_create_rule_with_options_sql_filter.yaml deleted file mode 100644 index ebc7bb2207f1..000000000000 --- a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_create_rule_with_options_sql_filter.yaml +++ /dev/null @@ -1,105 +0,0 @@ -interactions: -- request: - body: !!binary | - PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiIHN0YW5kYWxvbmU9InllcyI/Pjxl - bnRyeSB4bWxuczpkPSJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL2Fkby8yMDA3LzA4L2Rh - dGFzZXJ2aWNlcyIgeG1sbnM6bT0iaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9hZG8vMjAw - Ny8wOC9kYXRhc2VydmljZXMvbWV0YWRhdGEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDA1 - L0F0b20iPjx0aXRsZT48L3RpdGxlPjx1cGRhdGVkPjIwMTUtMDYtMzBUMjA6NTQ6MjcuNjcwOTkz - KzAwOjAwPC91cGRhdGVkPjxhdXRob3I+PG5hbWU+PC9uYW1lPjwvYXV0aG9yPjxpZD48L2lkPjxj - b250ZW50IHR5cGU9ImFwcGxpY2F0aW9uL3htbCI+PFRvcGljRGVzY3JpcHRpb24geG1sbnM6aT0i - aHR0cDovL3d3dy53My5vcmcvMjAwMS9YTUxTY2hlbWEtaW5zdGFuY2UiIHhtbG5zPSJodHRwOi8v - c2NoZW1hcy5taWNyb3NvZnQuY29tL25ldHNlcnZpY2VzLzIwMTAvMTAvc2VydmljZWJ1cy9jb25u - ZWN0Ij48L1RvcGljRGVzY3JpcHRpb24+PC9jb250ZW50PjwvZW50cnk+ - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['555'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: PUT - uri: https://fakesbnamespace.servicebus.windows.net/uttopicb4341be7 - response: - body: {string: 'https://fakesbnamespace.servicebus.windows.net/uttopicb4341be7uttopicb4341be72015-06-30T20:54:29Z2015-06-30T20:54:29ZfakesbnamespaceP10675199DT2H48M5.4775807S1024falsePT10Mtrue02015-06-30T20:54:29.8232015-06-30T20:54:29.897'} - headers: - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:54:29 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 201, message: Created} -- request: - body: !!binary | - PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiIHN0YW5kYWxvbmU9InllcyI/Pjxl - bnRyeSB4bWxuczpkPSJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL2Fkby8yMDA3LzA4L2Rh - dGFzZXJ2aWNlcyIgeG1sbnM6bT0iaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9hZG8vMjAw - Ny8wOC9kYXRhc2VydmljZXMvbWV0YWRhdGEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDA1 - L0F0b20iPjx0aXRsZT48L3RpdGxlPjx1cGRhdGVkPjIwMTUtMDYtMzBUMjA6NTQ6MjguOTUyMzAz - KzAwOjAwPC91cGRhdGVkPjxhdXRob3I+PG5hbWU+PC9uYW1lPjwvYXV0aG9yPjxpZD48L2lkPjxj - b250ZW50IHR5cGU9ImFwcGxpY2F0aW9uL3htbCI+PFN1YnNjcmlwdGlvbkRlc2NyaXB0aW9uIHht - bG5zOmk9Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvWE1MU2NoZW1hLWluc3RhbmNlIiB4bWxucz0i - aHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9uZXRzZXJ2aWNlcy8yMDEwLzEwL3NlcnZpY2Vi - dXMvY29ubmVjdCI+PC9TdWJzY3JpcHRpb25EZXNjcmlwdGlvbj48L2NvbnRlbnQ+PC9lbnRyeT4= - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['569'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: PUT - uri: https://fakesbnamespace.servicebus.windows.net/uttopicb4341be7/subscriptions/MySubscription - response: - body: {string: 'https://fakesbnamespace.servicebus.windows.net/uttopicb4341be7/subscriptions/MySubscriptionMySubscription2015-06-30T20:54:30Z2015-06-30T20:54:30ZPT1MfalseP10675199DT2H48M5.4775807Sfalsetrue010true'} - headers: - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:54:29 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 201, message: Created} -- request: - body: !!binary | - PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiIHN0YW5kYWxvbmU9InllcyI/Pjxl - bnRyeSB4bWxuczpkPSJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL2Fkby8yMDA3LzA4L2Rh - dGFzZXJ2aWNlcyIgeG1sbnM6bT0iaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9hZG8vMjAw - Ny8wOC9kYXRhc2VydmljZXMvbWV0YWRhdGEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDA1 - L0F0b20iPjx0aXRsZT48L3RpdGxlPjx1cGRhdGVkPjIwMTUtMDYtMzBUMjA6NTQ6MjkuNDUyMzE2 - KzAwOjAwPC91cGRhdGVkPjxhdXRob3I+PG5hbWU+PC9uYW1lPjwvYXV0aG9yPjxpZD48L2lkPjxj - b250ZW50IHR5cGU9ImFwcGxpY2F0aW9uL3htbCI+PFJ1bGVEZXNjcmlwdGlvbiB4bWxuczppPSJo - dHRwOi8vd3d3LnczLm9yZy8yMDAxL1hNTFNjaGVtYS1pbnN0YW5jZSIgeG1sbnM9Imh0dHA6Ly9z - Y2hlbWFzLm1pY3Jvc29mdC5jb20vbmV0c2VydmljZXMvMjAxMC8xMC9zZXJ2aWNlYnVzL2Nvbm5l - Y3QiPjxGaWx0ZXIgaTp0eXBlPSJTcWxGaWx0ZXIiPjxTcWxFeHByZXNzaW9uPm51bWJlciAmZ3Q7 - IDQwPC9TcWxFeHByZXNzaW9uPjxDb21wYXRpYmlsaXR5TGV2ZWw+MjA8L0NvbXBhdGliaWxpdHlM - ZXZlbD48L0ZpbHRlcj48L1J1bGVEZXNjcmlwdGlvbj48L2NvbnRlbnQ+PC9lbnRyeT4= - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['677'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: PUT - uri: https://fakesbnamespace.servicebus.windows.net/uttopicb4341be7/subscriptions/MySubscription/rules/MyRule1 - response: - body: {string: 'https://fakesbnamespace.servicebus.windows.net/uttopicb4341be7/subscriptions/MySubscription/rules/MyRule1MyRule12015-06-30T20:54:30Z2015-06-30T20:54:30Znumber - > 4020'} - headers: - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:54:29 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 201, message: Created} -version: 1 diff --git a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_create_rule_with_options_sql_rule_action.yaml b/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_create_rule_with_options_sql_rule_action.yaml deleted file mode 100644 index c98380a4591b..000000000000 --- a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_create_rule_with_options_sql_rule_action.yaml +++ /dev/null @@ -1,104 +0,0 @@ -interactions: -- request: - body: !!binary | - PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiIHN0YW5kYWxvbmU9InllcyI/Pjxl - bnRyeSB4bWxuczpkPSJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL2Fkby8yMDA3LzA4L2Rh - dGFzZXJ2aWNlcyIgeG1sbnM6bT0iaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9hZG8vMjAw - Ny8wOC9kYXRhc2VydmljZXMvbWV0YWRhdGEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDA1 - L0F0b20iPjx0aXRsZT48L3RpdGxlPjx1cGRhdGVkPjIwMTUtMDYtMzBUMjA6NTY6MTIuNTMwNTU3 - KzAwOjAwPC91cGRhdGVkPjxhdXRob3I+PG5hbWU+PC9uYW1lPjwvYXV0aG9yPjxpZD48L2lkPjxj - b250ZW50IHR5cGU9ImFwcGxpY2F0aW9uL3htbCI+PFRvcGljRGVzY3JpcHRpb24geG1sbnM6aT0i - aHR0cDovL3d3dy53My5vcmcvMjAwMS9YTUxTY2hlbWEtaW5zdGFuY2UiIHhtbG5zPSJodHRwOi8v - c2NoZW1hcy5taWNyb3NvZnQuY29tL25ldHNlcnZpY2VzLzIwMTAvMTAvc2VydmljZWJ1cy9jb25u - ZWN0Ij48L1RvcGljRGVzY3JpcHRpb24+PC9jb250ZW50PjwvZW50cnk+ - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['555'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: PUT - uri: https://fakesbnamespace.servicebus.windows.net/uttopic46001df6 - response: - body: {string: 'https://fakesbnamespace.servicebus.windows.net/uttopic46001df6uttopic46001df62015-06-30T20:56:23Z2015-06-30T20:56:23ZfakesbnamespaceP10675199DT2H48M5.4775807S1024falsePT10Mtrue02015-06-30T20:56:23.8532015-06-30T20:56:23.92'} - headers: - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:56:23 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 201, message: Created} -- request: - body: !!binary | - PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiIHN0YW5kYWxvbmU9InllcyI/Pjxl - bnRyeSB4bWxuczpkPSJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL2Fkby8yMDA3LzA4L2Rh - dGFzZXJ2aWNlcyIgeG1sbnM6bT0iaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9hZG8vMjAw - Ny8wOC9kYXRhc2VydmljZXMvbWV0YWRhdGEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDA1 - L0F0b20iPjx0aXRsZT48L3RpdGxlPjx1cGRhdGVkPjIwMTUtMDYtMzBUMjA6NTY6MjMuMDAwMjgy - KzAwOjAwPC91cGRhdGVkPjxhdXRob3I+PG5hbWU+PC9uYW1lPjwvYXV0aG9yPjxpZD48L2lkPjxj - b250ZW50IHR5cGU9ImFwcGxpY2F0aW9uL3htbCI+PFN1YnNjcmlwdGlvbkRlc2NyaXB0aW9uIHht - bG5zOmk9Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvWE1MU2NoZW1hLWluc3RhbmNlIiB4bWxucz0i - aHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9uZXRzZXJ2aWNlcy8yMDEwLzEwL3NlcnZpY2Vi - dXMvY29ubmVjdCI+PC9TdWJzY3JpcHRpb25EZXNjcmlwdGlvbj48L2NvbnRlbnQ+PC9lbnRyeT4= - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['569'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: PUT - uri: https://fakesbnamespace.servicebus.windows.net/uttopic46001df6/subscriptions/MySubscription - response: - body: {string: 'https://fakesbnamespace.servicebus.windows.net/uttopic46001df6/subscriptions/MySubscriptionMySubscription2015-06-30T20:56:24Z2015-06-30T20:56:24ZPT1MfalseP10675199DT2H48M5.4775807Sfalsetrue010true'} - headers: - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:56:23 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 201, message: Created} -- request: - body: !!binary | - PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiIHN0YW5kYWxvbmU9InllcyI/Pjxl - bnRyeSB4bWxuczpkPSJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL2Fkby8yMDA3LzA4L2Rh - dGFzZXJ2aWNlcyIgeG1sbnM6bT0iaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9hZG8vMjAw - Ny8wOC9kYXRhc2VydmljZXMvbWV0YWRhdGEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDA1 - L0F0b20iPjx0aXRsZT48L3RpdGxlPjx1cGRhdGVkPjIwMTUtMDYtMzBUMjA6NTY6MjMuNDUzNDI1 - KzAwOjAwPC91cGRhdGVkPjxhdXRob3I+PG5hbWU+PC9uYW1lPjwvYXV0aG9yPjxpZD48L2lkPjxj - b250ZW50IHR5cGU9ImFwcGxpY2F0aW9uL3htbCI+PFJ1bGVEZXNjcmlwdGlvbiB4bWxuczppPSJo - dHRwOi8vd3d3LnczLm9yZy8yMDAxL1hNTFNjaGVtYS1pbnN0YW5jZSIgeG1sbnM9Imh0dHA6Ly9z - Y2hlbWFzLm1pY3Jvc29mdC5jb20vbmV0c2VydmljZXMvMjAxMC8xMC9zZXJ2aWNlYnVzL2Nvbm5l - Y3QiPjxBY3Rpb24gaTp0eXBlPSJTcWxSdWxlQWN0aW9uIj48U3FsRXhwcmVzc2lvbj5TRVQgbnVt - YmVyID0gNTwvU3FsRXhwcmVzc2lvbj48Q29tcGF0aWJpbGl0eUxldmVsPjIwPC9Db21wYXRpYmls - aXR5TGV2ZWw+PC9BY3Rpb24+PC9SdWxlRGVzY3JpcHRpb24+PC9jb250ZW50PjwvZW50cnk+ - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['681'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: PUT - uri: https://fakesbnamespace.servicebus.windows.net/uttopic46001df6/subscriptions/MySubscription/rules/MyRule1 - response: - body: {string: 'https://fakesbnamespace.servicebus.windows.net/uttopic46001df6/subscriptions/MySubscription/rules/MyRule1MyRule12015-06-30T20:56:24Z2015-06-30T20:56:24Z1=120SET number = 520'} - headers: - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:56:23 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 201, message: Created} -version: 1 diff --git a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_create_rule_with_options_true_filter.yaml b/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_create_rule_with_options_true_filter.yaml deleted file mode 100644 index ee72311d9ca7..000000000000 --- a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_create_rule_with_options_true_filter.yaml +++ /dev/null @@ -1,104 +0,0 @@ -interactions: -- request: - body: !!binary | - PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiIHN0YW5kYWxvbmU9InllcyI/Pjxl - bnRyeSB4bWxuczpkPSJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL2Fkby8yMDA3LzA4L2Rh - dGFzZXJ2aWNlcyIgeG1sbnM6bT0iaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9hZG8vMjAw - Ny8wOC9kYXRhc2VydmljZXMvbWV0YWRhdGEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDA1 - L0F0b20iPjx0aXRsZT48L3RpdGxlPjx1cGRhdGVkPjIwMTUtMDYtMzBUMjA6NTc6MjYuNzY2Mjky - KzAwOjAwPC91cGRhdGVkPjxhdXRob3I+PG5hbWU+PC9uYW1lPjwvYXV0aG9yPjxpZD48L2lkPjxj - b250ZW50IHR5cGU9ImFwcGxpY2F0aW9uL3htbCI+PFRvcGljRGVzY3JpcHRpb24geG1sbnM6aT0i - aHR0cDovL3d3dy53My5vcmcvMjAwMS9YTUxTY2hlbWEtaW5zdGFuY2UiIHhtbG5zPSJodHRwOi8v - c2NoZW1hcy5taWNyb3NvZnQuY29tL25ldHNlcnZpY2VzLzIwMTAvMTAvc2VydmljZWJ1cy9jb25u - ZWN0Ij48L1RvcGljRGVzY3JpcHRpb24+PC9jb250ZW50PjwvZW50cnk+ - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['555'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: PUT - uri: https://fakesbnamespace.servicebus.windows.net/uttopicd0c41c57 - response: - body: {string: 'https://fakesbnamespace.servicebus.windows.net/uttopicd0c41c57uttopicd0c41c572015-06-30T20:57:29Z2015-06-30T20:57:29ZfakesbnamespaceP10675199DT2H48M5.4775807S1024falsePT10Mtrue02015-06-30T20:57:29.6472015-06-30T20:57:29.763'} - headers: - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:57:29 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 201, message: Created} -- request: - body: !!binary | - PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiIHN0YW5kYWxvbmU9InllcyI/Pjxl - bnRyeSB4bWxuczpkPSJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL2Fkby8yMDA3LzA4L2Rh - dGFzZXJ2aWNlcyIgeG1sbnM6bT0iaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9hZG8vMjAw - Ny8wOC9kYXRhc2VydmljZXMvbWV0YWRhdGEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDA1 - L0F0b20iPjx0aXRsZT48L3RpdGxlPjx1cGRhdGVkPjIwMTUtMDYtMzBUMjA6NTc6MjguODYwMTE5 - KzAwOjAwPC91cGRhdGVkPjxhdXRob3I+PG5hbWU+PC9uYW1lPjwvYXV0aG9yPjxpZD48L2lkPjxj - b250ZW50IHR5cGU9ImFwcGxpY2F0aW9uL3htbCI+PFN1YnNjcmlwdGlvbkRlc2NyaXB0aW9uIHht - bG5zOmk9Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvWE1MU2NoZW1hLWluc3RhbmNlIiB4bWxucz0i - aHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9uZXRzZXJ2aWNlcy8yMDEwLzEwL3NlcnZpY2Vi - dXMvY29ubmVjdCI+PC9TdWJzY3JpcHRpb25EZXNjcmlwdGlvbj48L2NvbnRlbnQ+PC9lbnRyeT4= - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['569'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: PUT - uri: https://fakesbnamespace.servicebus.windows.net/uttopicd0c41c57/subscriptions/MySubscription - response: - body: {string: 'https://fakesbnamespace.servicebus.windows.net/uttopicd0c41c57/subscriptions/MySubscriptionMySubscription2015-06-30T20:57:30Z2015-06-30T20:57:30ZPT1MfalseP10675199DT2H48M5.4775807Sfalsetrue010true'} - headers: - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:57:29 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 201, message: Created} -- request: - body: !!binary | - PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiIHN0YW5kYWxvbmU9InllcyI/Pjxl - bnRyeSB4bWxuczpkPSJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL2Fkby8yMDA3LzA4L2Rh - dGFzZXJ2aWNlcyIgeG1sbnM6bT0iaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9hZG8vMjAw - Ny8wOC9kYXRhc2VydmljZXMvbWV0YWRhdGEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDA1 - L0F0b20iPjx0aXRsZT48L3RpdGxlPjx1cGRhdGVkPjIwMTUtMDYtMzBUMjA6NTc6MjkuNDIyNjMy - KzAwOjAwPC91cGRhdGVkPjxhdXRob3I+PG5hbWU+PC9uYW1lPjwvYXV0aG9yPjxpZD48L2lkPjxj - b250ZW50IHR5cGU9ImFwcGxpY2F0aW9uL3htbCI+PFJ1bGVEZXNjcmlwdGlvbiB4bWxuczppPSJo - dHRwOi8vd3d3LnczLm9yZy8yMDAxL1hNTFNjaGVtYS1pbnN0YW5jZSIgeG1sbnM9Imh0dHA6Ly9z - Y2hlbWFzLm1pY3Jvc29mdC5jb20vbmV0c2VydmljZXMvMjAxMC8xMC9zZXJ2aWNlYnVzL2Nvbm5l - Y3QiPjxGaWx0ZXIgaTp0eXBlPSJUcnVlRmlsdGVyIj48U3FsRXhwcmVzc2lvbj4xPTE8L1NxbEV4 - cHJlc3Npb24+PENvbXBhdGliaWxpdHlMZXZlbD4yMDwvQ29tcGF0aWJpbGl0eUxldmVsPjwvRmls - dGVyPjwvUnVsZURlc2NyaXB0aW9uPjwvY29udGVudD48L2VudHJ5Pg== - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['667'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: PUT - uri: https://fakesbnamespace.servicebus.windows.net/uttopicd0c41c57/subscriptions/MySubscription/rules/MyRule1 - response: - body: {string: 'https://fakesbnamespace.servicebus.windows.net/uttopicd0c41c57/subscriptions/MySubscription/rules/MyRule1MyRule12015-06-30T20:57:30Z2015-06-30T20:57:30Z1=120'} - headers: - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:57:30 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 201, message: Created} -version: 1 diff --git a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_create_subscription.yaml b/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_create_subscription.yaml deleted file mode 100644 index 7223fbee8f11..000000000000 --- a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_create_subscription.yaml +++ /dev/null @@ -1,68 +0,0 @@ -interactions: -- request: - body: !!binary | - PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiIHN0YW5kYWxvbmU9InllcyI/Pjxl - bnRyeSB4bWxuczpkPSJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL2Fkby8yMDA3LzA4L2Rh - dGFzZXJ2aWNlcyIgeG1sbnM6bT0iaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9hZG8vMjAw - Ny8wOC9kYXRhc2VydmljZXMvbWV0YWRhdGEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDA1 - L0F0b20iPjx0aXRsZT48L3RpdGxlPjx1cGRhdGVkPjIwMTUtMDYtMzBUMjA6NTE6MjguMzA1MDYz - KzAwOjAwPC91cGRhdGVkPjxhdXRob3I+PG5hbWU+PC9uYW1lPjwvYXV0aG9yPjxpZD48L2lkPjxj - b250ZW50IHR5cGU9ImFwcGxpY2F0aW9uL3htbCI+PFRvcGljRGVzY3JpcHRpb24geG1sbnM6aT0i - aHR0cDovL3d3dy53My5vcmcvMjAwMS9YTUxTY2hlbWEtaW5zdGFuY2UiIHhtbG5zPSJodHRwOi8v - c2NoZW1hcy5taWNyb3NvZnQuY29tL25ldHNlcnZpY2VzLzIwMTAvMTAvc2VydmljZWJ1cy9jb25u - ZWN0Ij48L1RvcGljRGVzY3JpcHRpb24+PC9jb250ZW50PjwvZW50cnk+ - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['555'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: PUT - uri: https://fakesbnamespace.servicebus.windows.net/uttopic286f153a - response: - body: {string: 'https://fakesbnamespace.servicebus.windows.net/uttopic286f153auttopic286f153a2015-06-30T20:51:30Z2015-06-30T20:51:30ZfakesbnamespaceP10675199DT2H48M5.4775807S1024falsePT10Mtrue02015-06-30T20:51:30.5872015-06-30T20:51:30.7'} - headers: - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:51:30 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 201, message: Created} -- request: - body: !!binary | - PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiIHN0YW5kYWxvbmU9InllcyI/Pjxl - bnRyeSB4bWxuczpkPSJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL2Fkby8yMDA3LzA4L2Rh - dGFzZXJ2aWNlcyIgeG1sbnM6bT0iaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9hZG8vMjAw - Ny8wOC9kYXRhc2VydmljZXMvbWV0YWRhdGEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDA1 - L0F0b20iPjx0aXRsZT48L3RpdGxlPjx1cGRhdGVkPjIwMTUtMDYtMzBUMjA6NTE6MjkuNzg5NTAx - KzAwOjAwPC91cGRhdGVkPjxhdXRob3I+PG5hbWU+PC9uYW1lPjwvYXV0aG9yPjxpZD48L2lkPjxj - b250ZW50IHR5cGU9ImFwcGxpY2F0aW9uL3htbCI+PFN1YnNjcmlwdGlvbkRlc2NyaXB0aW9uIHht - bG5zOmk9Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvWE1MU2NoZW1hLWluc3RhbmNlIiB4bWxucz0i - aHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9uZXRzZXJ2aWNlcy8yMDEwLzEwL3NlcnZpY2Vi - dXMvY29ubmVjdCI+PC9TdWJzY3JpcHRpb25EZXNjcmlwdGlvbj48L2NvbnRlbnQ+PC9lbnRyeT4= - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['569'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: PUT - uri: https://fakesbnamespace.servicebus.windows.net/uttopic286f153a/subscriptions/MySubscription - response: - body: {string: 'https://fakesbnamespace.servicebus.windows.net/uttopic286f153a/subscriptions/MySubscriptionMySubscription2015-06-30T20:51:30Z2015-06-30T20:51:30ZPT1MfalseP10675199DT2H48M5.4775807Sfalsetrue010true'} - headers: - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:51:30 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 201, message: Created} -version: 1 diff --git a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_create_subscription_fail_on_exist.yaml b/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_create_subscription_fail_on_exist.yaml deleted file mode 100644 index 9f7c47508666..000000000000 --- a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_create_subscription_fail_on_exist.yaml +++ /dev/null @@ -1,68 +0,0 @@ -interactions: -- request: - body: !!binary | - PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiIHN0YW5kYWxvbmU9InllcyI/Pjxl - bnRyeSB4bWxuczpkPSJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL2Fkby8yMDA3LzA4L2Rh - dGFzZXJ2aWNlcyIgeG1sbnM6bT0iaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9hZG8vMjAw - Ny8wOC9kYXRhc2VydmljZXMvbWV0YWRhdGEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDA1 - L0F0b20iPjx0aXRsZT48L3RpdGxlPjx1cGRhdGVkPjIwMTUtMDYtMzBUMjA6NTY6NDkuMzk3MzQz - KzAwOjAwPC91cGRhdGVkPjxhdXRob3I+PG5hbWU+PC9uYW1lPjwvYXV0aG9yPjxpZD48L2lkPjxj - b250ZW50IHR5cGU9ImFwcGxpY2F0aW9uL3htbCI+PFRvcGljRGVzY3JpcHRpb24geG1sbnM6aT0i - aHR0cDovL3d3dy53My5vcmcvMjAwMS9YTUxTY2hlbWEtaW5zdGFuY2UiIHhtbG5zPSJodHRwOi8v - c2NoZW1hcy5taWNyb3NvZnQuY29tL25ldHNlcnZpY2VzLzIwMTAvMTAvc2VydmljZWJ1cy9jb25u - ZWN0Ij48L1RvcGljRGVzY3JpcHRpb24+PC9jb250ZW50PjwvZW50cnk+ - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['555'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: PUT - uri: https://fakesbnamespace.servicebus.windows.net/uttopic7bca1afd - response: - body: {string: 'https://fakesbnamespace.servicebus.windows.net/uttopic7bca1afduttopic7bca1afd2015-06-30T20:56:51Z2015-06-30T20:56:52ZfakesbnamespaceP10675199DT2H48M5.4775807S1024falsePT10Mtrue02015-06-30T20:56:51.9232015-06-30T20:56:52.09'} - headers: - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:56:51 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 201, message: Created} -- request: - body: !!binary | - PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiIHN0YW5kYWxvbmU9InllcyI/Pjxl - bnRyeSB4bWxuczpkPSJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL2Fkby8yMDA3LzA4L2Rh - dGFzZXJ2aWNlcyIgeG1sbnM6bT0iaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9hZG8vMjAw - Ny8wOC9kYXRhc2VydmljZXMvbWV0YWRhdGEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDA1 - L0F0b20iPjx0aXRsZT48L3RpdGxlPjx1cGRhdGVkPjIwMTUtMDYtMzBUMjA6NTY6NTEuMTc4NjM4 - KzAwOjAwPC91cGRhdGVkPjxhdXRob3I+PG5hbWU+PC9uYW1lPjwvYXV0aG9yPjxpZD48L2lkPjxj - b250ZW50IHR5cGU9ImFwcGxpY2F0aW9uL3htbCI+PFN1YnNjcmlwdGlvbkRlc2NyaXB0aW9uIHht - bG5zOmk9Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvWE1MU2NoZW1hLWluc3RhbmNlIiB4bWxucz0i - aHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9uZXRzZXJ2aWNlcy8yMDEwLzEwL3NlcnZpY2Vi - dXMvY29ubmVjdCI+PC9TdWJzY3JpcHRpb25EZXNjcmlwdGlvbj48L2NvbnRlbnQ+PC9lbnRyeT4= - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['569'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: PUT - uri: https://fakesbnamespace.servicebus.windows.net/uttopic7bca1afd/subscriptions/MySubscription - response: - body: {string: 'https://fakesbnamespace.servicebus.windows.net/uttopic7bca1afd/subscriptions/MySubscriptionMySubscription2015-06-30T20:56:52Z2015-06-30T20:56:52ZPT1MfalseP10675199DT2H48M5.4775807Sfalsetrue010true'} - headers: - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:56:51 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 201, message: Created} -version: 1 diff --git a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_create_subscription_with_already_existing_subscription.yaml b/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_create_subscription_with_already_existing_subscription.yaml deleted file mode 100644 index 9d4a03cdaea7..000000000000 --- a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_create_subscription_with_already_existing_subscription.yaml +++ /dev/null @@ -1,99 +0,0 @@ -interactions: -- request: - body: !!binary | - PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiIHN0YW5kYWxvbmU9InllcyI/Pjxl - bnRyeSB4bWxuczpkPSJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL2Fkby8yMDA3LzA4L2Rh - dGFzZXJ2aWNlcyIgeG1sbnM6bT0iaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9hZG8vMjAw - Ny8wOC9kYXRhc2VydmljZXMvbWV0YWRhdGEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDA1 - L0F0b20iPjx0aXRsZT48L3RpdGxlPjx1cGRhdGVkPjIwMTUtMDYtMzBUMjA6NTM6MTAuNDk2NTIy - KzAwOjAwPC91cGRhdGVkPjxhdXRob3I+PG5hbWU+PC9uYW1lPjwvYXV0aG9yPjxpZD48L2lkPjxj - b250ZW50IHR5cGU9ImFwcGxpY2F0aW9uL3htbCI+PFRvcGljRGVzY3JpcHRpb24geG1sbnM6aT0i - aHR0cDovL3d3dy53My5vcmcvMjAwMS9YTUxTY2hlbWEtaW5zdGFuY2UiIHhtbG5zPSJodHRwOi8v - c2NoZW1hcy5taWNyb3NvZnQuY29tL25ldHNlcnZpY2VzLzIwMTAvMTAvc2VydmljZWJ1cy9jb25u - ZWN0Ij48L1RvcGljRGVzY3JpcHRpb24+PC9jb250ZW50PjwvZW50cnk+ - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['555'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: PUT - uri: https://fakesbnamespace.servicebus.windows.net/uttopic155023e4 - response: - body: {string: 'https://fakesbnamespace.servicebus.windows.net/uttopic155023e4uttopic155023e42015-06-30T20:53:12Z2015-06-30T20:53:12ZfakesbnamespaceP10675199DT2H48M5.4775807S1024falsePT10Mtrue02015-06-30T20:53:12.8172015-06-30T20:53:12.91'} - headers: - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:53:12 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 201, message: Created} -- request: - body: !!binary | - PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiIHN0YW5kYWxvbmU9InllcyI/Pjxl - bnRyeSB4bWxuczpkPSJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL2Fkby8yMDA3LzA4L2Rh - dGFzZXJ2aWNlcyIgeG1sbnM6bT0iaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9hZG8vMjAw - Ny8wOC9kYXRhc2VydmljZXMvbWV0YWRhdGEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDA1 - L0F0b20iPjx0aXRsZT48L3RpdGxlPjx1cGRhdGVkPjIwMTUtMDYtMzBUMjA6NTM6MTEuOTgwODkw - KzAwOjAwPC91cGRhdGVkPjxhdXRob3I+PG5hbWU+PC9uYW1lPjwvYXV0aG9yPjxpZD48L2lkPjxj - b250ZW50IHR5cGU9ImFwcGxpY2F0aW9uL3htbCI+PFN1YnNjcmlwdGlvbkRlc2NyaXB0aW9uIHht - bG5zOmk9Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvWE1MU2NoZW1hLWluc3RhbmNlIiB4bWxucz0i - aHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9uZXRzZXJ2aWNlcy8yMDEwLzEwL3NlcnZpY2Vi - dXMvY29ubmVjdCI+PC9TdWJzY3JpcHRpb25EZXNjcmlwdGlvbj48L2NvbnRlbnQ+PC9lbnRyeT4= - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['569'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: PUT - uri: https://fakesbnamespace.servicebus.windows.net/uttopic155023e4/subscriptions/MySubscription - response: - body: {string: 'https://fakesbnamespace.servicebus.windows.net/uttopic155023e4/subscriptions/MySubscriptionMySubscription2015-06-30T20:53:13Z2015-06-30T20:53:13ZPT1MfalseP10675199DT2H48M5.4775807Sfalsetrue010true'} - headers: - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:53:13 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 201, message: Created} -- request: - body: !!binary | - PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiIHN0YW5kYWxvbmU9InllcyI/Pjxl - bnRyeSB4bWxuczpkPSJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL2Fkby8yMDA3LzA4L2Rh - dGFzZXJ2aWNlcyIgeG1sbnM6bT0iaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9hZG8vMjAw - Ny8wOC9kYXRhc2VydmljZXMvbWV0YWRhdGEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDA1 - L0F0b20iPjx0aXRsZT48L3RpdGxlPjx1cGRhdGVkPjIwMTUtMDYtMzBUMjA6NTM6MTIuNjczNzEw - KzAwOjAwPC91cGRhdGVkPjxhdXRob3I+PG5hbWU+PC9uYW1lPjwvYXV0aG9yPjxpZD48L2lkPjxj - b250ZW50IHR5cGU9ImFwcGxpY2F0aW9uL3htbCI+PFN1YnNjcmlwdGlvbkRlc2NyaXB0aW9uIHht - bG5zOmk9Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvWE1MU2NoZW1hLWluc3RhbmNlIiB4bWxucz0i - aHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9uZXRzZXJ2aWNlcy8yMDEwLzEwL3NlcnZpY2Vi - dXMvY29ubmVjdCI+PC9TdWJzY3JpcHRpb25EZXNjcmlwdGlvbj48L2NvbnRlbnQ+PC9lbnRyeT4= - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['569'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: PUT - uri: https://fakesbnamespace.servicebus.windows.net/uttopic155023e4/subscriptions/MySubscription - response: - body: {string: '409The messaging entity ''fakesbnamespace:Topic:uttopic155023e4|MySubscription'' - already exists. TrackingId:bff2fb91-7654-4d7b-9548-416559563c97_B8, Timestamp:6/30/2015 - 8:53:13 PM'} - headers: - Content-Type: [application/xml; charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:53:14 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 409, message: Conflict} -version: 1 diff --git a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_create_subscription_with_already_existing_subscription_fail_on_exist.yaml b/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_create_subscription_with_already_existing_subscription_fail_on_exist.yaml deleted file mode 100644 index 44cc0ad43328..000000000000 --- a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_create_subscription_with_already_existing_subscription_fail_on_exist.yaml +++ /dev/null @@ -1,99 +0,0 @@ -interactions: -- request: - body: !!binary | - PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiIHN0YW5kYWxvbmU9InllcyI/Pjxl - bnRyeSB4bWxuczpkPSJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL2Fkby8yMDA3LzA4L2Rh - dGFzZXJ2aWNlcyIgeG1sbnM6bT0iaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9hZG8vMjAw - Ny8wOC9kYXRhc2VydmljZXMvbWV0YWRhdGEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDA1 - L0F0b20iPjx0aXRsZT48L3RpdGxlPjx1cGRhdGVkPjIwMTUtMDYtMzBUMjA6NTM6MDQuOTkyMjk3 - KzAwOjAwPC91cGRhdGVkPjxhdXRob3I+PG5hbWU+PC9uYW1lPjwvYXV0aG9yPjxpZD48L2lkPjxj - b250ZW50IHR5cGU9ImFwcGxpY2F0aW9uL3htbCI+PFRvcGljRGVzY3JpcHRpb24geG1sbnM6aT0i - aHR0cDovL3d3dy53My5vcmcvMjAwMS9YTUxTY2hlbWEtaW5zdGFuY2UiIHhtbG5zPSJodHRwOi8v - c2NoZW1hcy5taWNyb3NvZnQuY29tL25ldHNlcnZpY2VzLzIwMTAvMTAvc2VydmljZWJ1cy9jb25u - ZWN0Ij48L1RvcGljRGVzY3JpcHRpb24+PC9jb250ZW50PjwvZW50cnk+ - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['555'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: PUT - uri: https://fakesbnamespace.servicebus.windows.net/uttopic360629a7 - response: - body: {string: 'https://fakesbnamespace.servicebus.windows.net/uttopic360629a7uttopic360629a72015-06-30T20:53:07Z2015-06-30T20:53:07ZfakesbnamespaceP10675199DT2H48M5.4775807S1024falsePT10Mtrue02015-06-30T20:53:07.042015-06-30T20:53:07.103'} - headers: - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:53:06 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 201, message: Created} -- request: - body: !!binary | - PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiIHN0YW5kYWxvbmU9InllcyI/Pjxl - bnRyeSB4bWxuczpkPSJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL2Fkby8yMDA3LzA4L2Rh - dGFzZXJ2aWNlcyIgeG1sbnM6bT0iaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9hZG8vMjAw - Ny8wOC9kYXRhc2VydmljZXMvbWV0YWRhdGEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDA1 - L0F0b20iPjx0aXRsZT48L3RpdGxlPjx1cGRhdGVkPjIwMTUtMDYtMzBUMjA6NTM6MDYuMTc0MTEx - KzAwOjAwPC91cGRhdGVkPjxhdXRob3I+PG5hbWU+PC9uYW1lPjwvYXV0aG9yPjxpZD48L2lkPjxj - b250ZW50IHR5cGU9ImFwcGxpY2F0aW9uL3htbCI+PFN1YnNjcmlwdGlvbkRlc2NyaXB0aW9uIHht - bG5zOmk9Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvWE1MU2NoZW1hLWluc3RhbmNlIiB4bWxucz0i - aHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9uZXRzZXJ2aWNlcy8yMDEwLzEwL3NlcnZpY2Vi - dXMvY29ubmVjdCI+PC9TdWJzY3JpcHRpb25EZXNjcmlwdGlvbj48L2NvbnRlbnQ+PC9lbnRyeT4= - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['569'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: PUT - uri: https://fakesbnamespace.servicebus.windows.net/uttopic360629a7/subscriptions/MySubscription - response: - body: {string: 'https://fakesbnamespace.servicebus.windows.net/uttopic360629a7/subscriptions/MySubscriptionMySubscription2015-06-30T20:53:07Z2015-06-30T20:53:07ZPT1MfalseP10675199DT2H48M5.4775807Sfalsetrue010true'} - headers: - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:53:07 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 201, message: Created} -- request: - body: !!binary | - PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiIHN0YW5kYWxvbmU9InllcyI/Pjxl - bnRyeSB4bWxuczpkPSJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL2Fkby8yMDA3LzA4L2Rh - dGFzZXJ2aWNlcyIgeG1sbnM6bT0iaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9hZG8vMjAw - Ny8wOC9kYXRhc2VydmljZXMvbWV0YWRhdGEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDA1 - L0F0b20iPjx0aXRsZT48L3RpdGxlPjx1cGRhdGVkPjIwMTUtMDYtMzBUMjA6NTM6MDYuNjc0MTQ3 - KzAwOjAwPC91cGRhdGVkPjxhdXRob3I+PG5hbWU+PC9uYW1lPjwvYXV0aG9yPjxpZD48L2lkPjxj - b250ZW50IHR5cGU9ImFwcGxpY2F0aW9uL3htbCI+PFN1YnNjcmlwdGlvbkRlc2NyaXB0aW9uIHht - bG5zOmk9Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvWE1MU2NoZW1hLWluc3RhbmNlIiB4bWxucz0i - aHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9uZXRzZXJ2aWNlcy8yMDEwLzEwL3NlcnZpY2Vi - dXMvY29ubmVjdCI+PC9TdWJzY3JpcHRpb25EZXNjcmlwdGlvbj48L2NvbnRlbnQ+PC9lbnRyeT4= - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['569'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: PUT - uri: https://fakesbnamespace.servicebus.windows.net/uttopic360629a7/subscriptions/MySubscription - response: - body: {string: '409The messaging entity ''fakesbnamespace:Topic:uttopic360629a7|MySubscription'' - already exists. TrackingId:d01dc0bc-f6fd-450b-97cc-f4e34ae47654_B16, Timestamp:6/30/2015 - 8:53:07 PM'} - headers: - Content-Type: [application/xml; charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:53:08 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 409, message: Conflict} -version: 1 diff --git a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_create_subscription_with_options.yaml b/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_create_subscription_with_options.yaml deleted file mode 100644 index fd635e99122c..000000000000 --- a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_create_subscription_with_options.yaml +++ /dev/null @@ -1,97 +0,0 @@ -interactions: -- request: - body: !!binary | - PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiIHN0YW5kYWxvbmU9InllcyI/Pjxl - bnRyeSB4bWxuczpkPSJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL2Fkby8yMDA3LzA4L2Rh - dGFzZXJ2aWNlcyIgeG1sbnM6bT0iaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9hZG8vMjAw - Ny8wOC9kYXRhc2VydmljZXMvbWV0YWRhdGEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDA1 - L0F0b20iPjx0aXRsZT48L3RpdGxlPjx1cGRhdGVkPjIwMTUtMDYtMzBUMjA6NTI6MzAuMjMwMDU4 - KzAwOjAwPC91cGRhdGVkPjxhdXRob3I+PG5hbWU+PC9uYW1lPjwvYXV0aG9yPjxpZD48L2lkPjxj - b250ZW50IHR5cGU9ImFwcGxpY2F0aW9uL3htbCI+PFRvcGljRGVzY3JpcHRpb24geG1sbnM6aT0i - aHR0cDovL3d3dy53My5vcmcvMjAwMS9YTUxTY2hlbWEtaW5zdGFuY2UiIHhtbG5zPSJodHRwOi8v - c2NoZW1hcy5taWNyb3NvZnQuY29tL25ldHNlcnZpY2VzLzIwMTAvMTAvc2VydmljZWJ1cy9jb25u - ZWN0Ij48L1RvcGljRGVzY3JpcHRpb24+PC9jb250ZW50PjwvZW50cnk+ - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['555'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: PUT - uri: https://fakesbnamespace.servicebus.windows.net/uttopic62af1ac0 - response: - body: {string: 'https://fakesbnamespace.servicebus.windows.net/uttopic62af1ac0uttopic62af1ac02015-06-30T20:52:32Z2015-06-30T20:52:32ZfakesbnamespaceP10675199DT2H48M5.4775807S1024falsePT10Mtrue02015-06-30T20:52:32.6232015-06-30T20:52:32.693'} - headers: - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:52:32 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 201, message: Created} -- request: - body: !!binary | - PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiIHN0YW5kYWxvbmU9InllcyI/Pjxl - bnRyeSB4bWxuczpkPSJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL2Fkby8yMDA3LzA4L2Rh - dGFzZXJ2aWNlcyIgeG1sbnM6bT0iaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9hZG8vMjAw - Ny8wOC9kYXRhc2VydmljZXMvbWV0YWRhdGEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDA1 - L0F0b20iPjx0aXRsZT48L3RpdGxlPjx1cGRhdGVkPjIwMTUtMDYtMzBUMjA6NTI6MzEuNzgyNTky - KzAwOjAwPC91cGRhdGVkPjxhdXRob3I+PG5hbWU+PC9uYW1lPjwvYXV0aG9yPjxpZD48L2lkPjxj - b250ZW50IHR5cGU9ImFwcGxpY2F0aW9uL3htbCI+PFN1YnNjcmlwdGlvbkRlc2NyaXB0aW9uIHht - bG5zOmk9Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvWE1MU2NoZW1hLWluc3RhbmNlIiB4bWxucz0i - aHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9uZXRzZXJ2aWNlcy8yMDEwLzEwL3NlcnZpY2Vi - dXMvY29ubmVjdCI+PExvY2tEdXJhdGlvbj5QVDFNPC9Mb2NrRHVyYXRpb24+PFJlcXVpcmVzU2Vz - c2lvbj5mYWxzZTwvUmVxdWlyZXNTZXNzaW9uPjxEZWZhdWx0TWVzc2FnZVRpbWVUb0xpdmU+UFQx - NU08L0RlZmF1bHRNZXNzYWdlVGltZVRvTGl2ZT48RGVhZExldHRlcmluZ09uTWVzc2FnZUV4cGly - YXRpb24+ZmFsc2U8L0RlYWRMZXR0ZXJpbmdPbk1lc3NhZ2VFeHBpcmF0aW9uPjxEZWFkTGV0dGVy - aW5nT25GaWx0ZXJFdmFsdWF0aW9uRXhjZXB0aW9ucz5mYWxzZTwvRGVhZExldHRlcmluZ09uRmls - dGVyRXZhbHVhdGlvbkV4Y2VwdGlvbnM+PEVuYWJsZUJhdGNoZWRPcGVyYXRpb25zPmZhbHNlPC9F - bmFibGVCYXRjaGVkT3BlcmF0aW9ucz48TWF4RGVsaXZlcnlDb3VudD4xNTwvTWF4RGVsaXZlcnlD - b3VudD48TWVzc2FnZUNvdW50PjA8L01lc3NhZ2VDb3VudD48L1N1YnNjcmlwdGlvbkRlc2NyaXB0 - aW9uPjwvY29udGVudD48L2VudHJ5Pg== - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['991'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: PUT - uri: https://fakesbnamespace.servicebus.windows.net/uttopic62af1ac0/subscriptions/MySubscription - response: - body: {string: 'https://fakesbnamespace.servicebus.windows.net/uttopic62af1ac0/subscriptions/MySubscriptionMySubscription2015-06-30T20:52:33Z2015-06-30T20:52:33ZPT1MfalsePT15Mfalsefalse010false'} - headers: - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:52:33 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 201, message: Created} -- request: - body: null - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [pyazure/0.20.0] - method: GET - uri: https://fakesbnamespace.servicebus.windows.net/uttopic62af1ac0/subscriptions/MySubscription - response: - body: {string: 'sb://fakesbnamespace.servicebus.windows.net/uttopic62af1ac0/subscriptions/MySubscriptionMySubscription2015-06-30T20:52:32Z2015-06-30T20:52:32ZPT1MfalsePT15Mfalsefalse010false'} - headers: - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:52:33 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 200, message: OK} -version: 1 diff --git a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_create_topic_no_options.yaml b/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_create_topic_no_options.yaml deleted file mode 100644 index da4edfe0b698..000000000000 --- a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_create_topic_no_options.yaml +++ /dev/null @@ -1,35 +0,0 @@ -interactions: -- request: - body: !!binary | - PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiIHN0YW5kYWxvbmU9InllcyI/Pjxl - bnRyeSB4bWxuczpkPSJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL2Fkby8yMDA3LzA4L2Rh - dGFzZXJ2aWNlcyIgeG1sbnM6bT0iaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9hZG8vMjAw - Ny8wOC9kYXRhc2VydmljZXMvbWV0YWRhdGEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDA1 - L0F0b20iPjx0aXRsZT48L3RpdGxlPjx1cGRhdGVkPjIwMTUtMDYtMzBUMjA6NTM6NDAuNDgzODI2 - KzAwOjAwPC91cGRhdGVkPjxhdXRob3I+PG5hbWU+PC9uYW1lPjwvYXV0aG9yPjxpZD48L2lkPjxj - b250ZW50IHR5cGU9ImFwcGxpY2F0aW9uL3htbCI+PFRvcGljRGVzY3JpcHRpb24geG1sbnM6aT0i - aHR0cDovL3d3dy53My5vcmcvMjAwMS9YTUxTY2hlbWEtaW5zdGFuY2UiIHhtbG5zPSJodHRwOi8v - c2NoZW1hcy5taWNyb3NvZnQuY29tL25ldHNlcnZpY2VzLzIwMTAvMTAvc2VydmljZWJ1cy9jb25u - ZWN0Ij48L1RvcGljRGVzY3JpcHRpb24+PC9jb250ZW50PjwvZW50cnk+ - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['555'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: PUT - uri: https://fakesbnamespace.servicebus.windows.net/uttopic808d16db - response: - body: {string: 'https://fakesbnamespace.servicebus.windows.net/uttopic808d16dbuttopic808d16db2015-06-30T20:53:42Z2015-06-30T20:53:42ZfakesbnamespaceP10675199DT2H48M5.4775807S1024falsePT10Mtrue02015-06-30T20:53:42.7732015-06-30T20:53:42.907'} - headers: - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:53:42 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 201, message: Created} -version: 1 diff --git a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_create_topic_no_options_fail_on_exist.yaml b/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_create_topic_no_options_fail_on_exist.yaml deleted file mode 100644 index 1073d8875837..000000000000 --- a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_create_topic_no_options_fail_on_exist.yaml +++ /dev/null @@ -1,35 +0,0 @@ -interactions: -- request: - body: !!binary | - PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiIHN0YW5kYWxvbmU9InllcyI/Pjxl - bnRyeSB4bWxuczpkPSJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL2Fkby8yMDA3LzA4L2Rh - dGFzZXJ2aWNlcyIgeG1sbnM6bT0iaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9hZG8vMjAw - Ny8wOC9kYXRhc2VydmljZXMvbWV0YWRhdGEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDA1 - L0F0b20iPjx0aXRsZT48L3RpdGxlPjx1cGRhdGVkPjIwMTUtMDYtMzBUMjA6NTI6MzUuMDk2ODAy - KzAwOjAwPC91cGRhdGVkPjxhdXRob3I+PG5hbWU+PC9uYW1lPjwvYXV0aG9yPjxpZD48L2lkPjxj - b250ZW50IHR5cGU9ImFwcGxpY2F0aW9uL3htbCI+PFRvcGljRGVzY3JpcHRpb24geG1sbnM6aT0i - aHR0cDovL3d3dy53My5vcmcvMjAwMS9YTUxTY2hlbWEtaW5zdGFuY2UiIHhtbG5zPSJodHRwOi8v - c2NoZW1hcy5taWNyb3NvZnQuY29tL25ldHNlcnZpY2VzLzIwMTAvMTAvc2VydmljZWJ1cy9jb25u - ZWN0Ij48L1RvcGljRGVzY3JpcHRpb24+PC9jb250ZW50PjwvZW50cnk+ - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['555'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: PUT - uri: https://fakesbnamespace.servicebus.windows.net/uttopiceab61c9e - response: - body: {string: 'https://fakesbnamespace.servicebus.windows.net/uttopiceab61c9euttopiceab61c9e2015-06-30T20:52:37Z2015-06-30T20:52:37ZfakesbnamespaceP10675199DT2H48M5.4775807S1024falsePT10Mtrue02015-06-30T20:52:37.5672015-06-30T20:52:37.767'} - headers: - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:52:36 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 201, message: Created} -version: 1 diff --git a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_create_topic_with_already_existing_topic.yaml b/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_create_topic_with_already_existing_topic.yaml deleted file mode 100644 index 0cfdb3179613..000000000000 --- a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_create_topic_with_already_existing_topic.yaml +++ /dev/null @@ -1,65 +0,0 @@ -interactions: -- request: - body: !!binary | - PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiIHN0YW5kYWxvbmU9InllcyI/Pjxl - bnRyeSB4bWxuczpkPSJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL2Fkby8yMDA3LzA4L2Rh - dGFzZXJ2aWNlcyIgeG1sbnM6bT0iaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9hZG8vMjAw - Ny8wOC9kYXRhc2VydmljZXMvbWV0YWRhdGEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDA1 - L0F0b20iPjx0aXRsZT48L3RpdGxlPjx1cGRhdGVkPjIwMTUtMDYtMzBUMjA6NTE6NDEuNTY3NTk4 - KzAwOjAwPC91cGRhdGVkPjxhdXRob3I+PG5hbWU+PC9uYW1lPjwvYXV0aG9yPjxpZD48L2lkPjxj - b250ZW50IHR5cGU9ImFwcGxpY2F0aW9uL3htbCI+PFRvcGljRGVzY3JpcHRpb24geG1sbnM6aT0i - aHR0cDovL3d3dy53My5vcmcvMjAwMS9YTUxTY2hlbWEtaW5zdGFuY2UiIHhtbG5zPSJodHRwOi8v - c2NoZW1hcy5taWNyb3NvZnQuY29tL25ldHNlcnZpY2VzLzIwMTAvMTAvc2VydmljZWJ1cy9jb25u - ZWN0Ij48L1RvcGljRGVzY3JpcHRpb24+PC9jb250ZW50PjwvZW50cnk+ - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['555'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: PUT - uri: https://fakesbnamespace.servicebus.windows.net/uttopic42ce1dd8 - response: - body: {string: 'https://fakesbnamespace.servicebus.windows.net/uttopic42ce1dd8uttopic42ce1dd82015-06-30T20:51:43Z2015-06-30T20:51:43ZfakesbnamespaceP10675199DT2H48M5.4775807S1024falsePT10Mtrue02015-06-30T20:51:43.7872015-06-30T20:51:43.87'} - headers: - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:51:43 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 201, message: Created} -- request: - body: !!binary | - PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiIHN0YW5kYWxvbmU9InllcyI/Pjxl - bnRyeSB4bWxuczpkPSJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL2Fkby8yMDA3LzA4L2Rh - dGFzZXJ2aWNlcyIgeG1sbnM6bT0iaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9hZG8vMjAw - Ny8wOC9kYXRhc2VydmljZXMvbWV0YWRhdGEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDA1 - L0F0b20iPjx0aXRsZT48L3RpdGxlPjx1cGRhdGVkPjIwMTUtMDYtMzBUMjA6NTE6NDIuOTU4NjE3 - KzAwOjAwPC91cGRhdGVkPjxhdXRob3I+PG5hbWU+PC9uYW1lPjwvYXV0aG9yPjxpZD48L2lkPjxj - b250ZW50IHR5cGU9ImFwcGxpY2F0aW9uL3htbCI+PFRvcGljRGVzY3JpcHRpb24geG1sbnM6aT0i - aHR0cDovL3d3dy53My5vcmcvMjAwMS9YTUxTY2hlbWEtaW5zdGFuY2UiIHhtbG5zPSJodHRwOi8v - c2NoZW1hcy5taWNyb3NvZnQuY29tL25ldHNlcnZpY2VzLzIwMTAvMTAvc2VydmljZWJ1cy9jb25u - ZWN0Ij48L1RvcGljRGVzY3JpcHRpb24+PC9jb250ZW50PjwvZW50cnk+ - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['555'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: PUT - uri: https://fakesbnamespace.servicebus.windows.net/uttopic42ce1dd8 - response: - body: {string: '409SubCode=40900. Conflict. TrackingId:b76ba070-876b-406e-8728-923e02e7a245_G48,TimeStamp:6/30/2015 - 8:51:44 PM'} - headers: - Content-Type: [application/xml; charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:51:43 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 409, message: Conflict} -version: 1 diff --git a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_create_topic_with_already_existing_topic_fail_on_exist.yaml b/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_create_topic_with_already_existing_topic_fail_on_exist.yaml deleted file mode 100644 index 99fe07b08930..000000000000 --- a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_create_topic_with_already_existing_topic_fail_on_exist.yaml +++ /dev/null @@ -1,65 +0,0 @@ -interactions: -- request: - body: !!binary | - PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiIHN0YW5kYWxvbmU9InllcyI/Pjxl - bnRyeSB4bWxuczpkPSJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL2Fkby8yMDA3LzA4L2Rh - dGFzZXJ2aWNlcyIgeG1sbnM6bT0iaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9hZG8vMjAw - Ny8wOC9kYXRhc2VydmljZXMvbWV0YWRhdGEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDA1 - L0F0b20iPjx0aXRsZT48L3RpdGxlPjx1cGRhdGVkPjIwMTUtMDYtMzBUMjA6NTY6MjYuMTkxODY3 - KzAwOjAwPC91cGRhdGVkPjxhdXRob3I+PG5hbWU+PC9uYW1lPjwvYXV0aG9yPjxpZD48L2lkPjxj - b250ZW50IHR5cGU9ImFwcGxpY2F0aW9uL3htbCI+PFRvcGljRGVzY3JpcHRpb24geG1sbnM6aT0i - aHR0cDovL3d3dy53My5vcmcvMjAwMS9YTUxTY2hlbWEtaW5zdGFuY2UiIHhtbG5zPSJodHRwOi8v - c2NoZW1hcy5taWNyb3NvZnQuY29tL25ldHNlcnZpY2VzLzIwMTAvMTAvc2VydmljZWJ1cy9jb25u - ZWN0Ij48L1RvcGljRGVzY3JpcHRpb24+PC9jb250ZW50PjwvZW50cnk+ - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['555'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: PUT - uri: https://fakesbnamespace.servicebus.windows.net/uttopicedc239b - response: - body: {string: 'https://fakesbnamespace.servicebus.windows.net/uttopicedc239buttopicedc239b2015-06-30T20:56:28Z2015-06-30T20:56:28ZfakesbnamespaceP10675199DT2H48M5.4775807S1024falsePT10Mtrue02015-06-30T20:56:28.6972015-06-30T20:56:28.78'} - headers: - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:56:28 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 201, message: Created} -- request: - body: !!binary | - PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiIHN0YW5kYWxvbmU9InllcyI/Pjxl - bnRyeSB4bWxuczpkPSJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL2Fkby8yMDA3LzA4L2Rh - dGFzZXJ2aWNlcyIgeG1sbnM6bT0iaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9hZG8vMjAw - Ny8wOC9kYXRhc2VydmljZXMvbWV0YWRhdGEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDA1 - L0F0b20iPjx0aXRsZT48L3RpdGxlPjx1cGRhdGVkPjIwMTUtMDYtMzBUMjA6NTY6MjcuODYzODA5 - KzAwOjAwPC91cGRhdGVkPjxhdXRob3I+PG5hbWU+PC9uYW1lPjwvYXV0aG9yPjxpZD48L2lkPjxj - b250ZW50IHR5cGU9ImFwcGxpY2F0aW9uL3htbCI+PFRvcGljRGVzY3JpcHRpb24geG1sbnM6aT0i - aHR0cDovL3d3dy53My5vcmcvMjAwMS9YTUxTY2hlbWEtaW5zdGFuY2UiIHhtbG5zPSJodHRwOi8v - c2NoZW1hcy5taWNyb3NvZnQuY29tL25ldHNlcnZpY2VzLzIwMTAvMTAvc2VydmljZWJ1cy9jb25u - ZWN0Ij48L1RvcGljRGVzY3JpcHRpb24+PC9jb250ZW50PjwvZW50cnk+ - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['555'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: PUT - uri: https://fakesbnamespace.servicebus.windows.net/uttopicedc239b - response: - body: {string: '409SubCode=40900. Conflict. TrackingId:9eaee979-52f1-43db-9580-bd4f3ac52fd9_G52,TimeStamp:6/30/2015 - 8:56:29 PM'} - headers: - Content-Type: [application/xml; charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:56:28 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 409, message: Conflict} -version: 1 diff --git a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_create_topic_with_options.yaml b/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_create_topic_with_options.yaml deleted file mode 100644 index fa6c4737362b..000000000000 --- a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_create_topic_with_options.yaml +++ /dev/null @@ -1,62 +0,0 @@ -interactions: -- request: - body: !!binary | - PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiIHN0YW5kYWxvbmU9InllcyI/Pjxl - bnRyeSB4bWxuczpkPSJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL2Fkby8yMDA3LzA4L2Rh - dGFzZXJ2aWNlcyIgeG1sbnM6bT0iaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9hZG8vMjAw - Ny8wOC9kYXRhc2VydmljZXMvbWV0YWRhdGEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDA1 - L0F0b20iPjx0aXRsZT48L3RpdGxlPjx1cGRhdGVkPjIwMTUtMDYtMzBUMjA6NTQ6MDkuNzY3MjM3 - KzAwOjAwPC91cGRhdGVkPjxhdXRob3I+PG5hbWU+PC9uYW1lPjwvYXV0aG9yPjxpZD48L2lkPjxj - b250ZW50IHR5cGU9ImFwcGxpY2F0aW9uL3htbCI+PFRvcGljRGVzY3JpcHRpb24geG1sbnM6aT0i - aHR0cDovL3d3dy53My5vcmcvMjAwMS9YTUxTY2hlbWEtaW5zdGFuY2UiIHhtbG5zPSJodHRwOi8v - c2NoZW1hcy5taWNyb3NvZnQuY29tL25ldHNlcnZpY2VzLzIwMTAvMTAvc2VydmljZWJ1cy9jb25u - ZWN0Ij48RGVmYXVsdE1lc3NhZ2VUaW1lVG9MaXZlPlBUMU08L0RlZmF1bHRNZXNzYWdlVGltZVRv - TGl2ZT48TWF4U2l6ZUluTWVnYWJ5dGVzPjUxMjA8L01heFNpemVJbk1lZ2FieXRlcz48UmVxdWly - ZXNEdXBsaWNhdGVEZXRlY3Rpb24+ZmFsc2U8L1JlcXVpcmVzRHVwbGljYXRlRGV0ZWN0aW9uPjxE - dXBsaWNhdGVEZXRlY3Rpb25IaXN0b3J5VGltZVdpbmRvdz5QVDVNPC9EdXBsaWNhdGVEZXRlY3Rp - b25IaXN0b3J5VGltZVdpbmRvdz48RW5hYmxlQmF0Y2hlZE9wZXJhdGlvbnM+ZmFsc2U8L0VuYWJs - ZUJhdGNoZWRPcGVyYXRpb25zPjxTaXplSW5CeXRlcz4wPC9TaXplSW5CeXRlcz48L1RvcGljRGVz - Y3JpcHRpb24+PC9jb250ZW50PjwvZW50cnk+ - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['882'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: PUT - uri: https://fakesbnamespace.servicebus.windows.net/uttopicafc717ba - response: - body: {string: 'https://fakesbnamespace.servicebus.windows.net/uttopicafc717bauttopicafc717ba2015-06-30T20:54:12Z2015-06-30T20:54:12ZfakesbnamespacePT1M5120falsePT5Mfalse02015-06-30T20:54:12.692015-06-30T20:54:12.813'} - headers: - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:54:12 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 201, message: Created} -- request: - body: null - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [pyazure/0.20.0] - method: GET - uri: https://fakesbnamespace.servicebus.windows.net/uttopicafc717ba - response: - body: {string: 'https://fakesbnamespace.servicebus.windows.net/uttopicafc717bauttopicafc717ba2015-06-30T20:54:12Z2015-06-30T20:54:12ZfakesbnamespacePT1M5120falsePT5Mfalse0'} - headers: - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:54:12 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 200, message: OK} -version: 1 diff --git a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_delete_queue_with_existing_queue.yaml b/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_delete_queue_with_existing_queue.yaml deleted file mode 100644 index 61601ed9f502..000000000000 --- a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_delete_queue_with_existing_queue.yaml +++ /dev/null @@ -1,71 +0,0 @@ -interactions: -- request: - body: !!binary | - PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiIHN0YW5kYWxvbmU9InllcyI/Pjxl - bnRyeSB4bWxuczpkPSJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL2Fkby8yMDA3LzA4L2Rh - dGFzZXJ2aWNlcyIgeG1sbnM6bT0iaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9hZG8vMjAw - Ny8wOC9kYXRhc2VydmljZXMvbWV0YWRhdGEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDA1 - L0F0b20iPjx0aXRsZT48L3RpdGxlPjx1cGRhdGVkPjIwMTUtMDYtMzBUMjA6NTQ6MjMuMDQ3MTI4 - KzAwOjAwPC91cGRhdGVkPjxhdXRob3I+PG5hbWU+PC9uYW1lPjwvYXV0aG9yPjxpZD48L2lkPjxj - b250ZW50IHR5cGU9ImFwcGxpY2F0aW9uL3htbCI+PFF1ZXVlRGVzY3JpcHRpb24geG1sbnM6aT0i - aHR0cDovL3d3dy53My5vcmcvMjAwMS9YTUxTY2hlbWEtaW5zdGFuY2UiIHhtbG5zPSJodHRwOi8v - c2NoZW1hcy5taWNyb3NvZnQuY29tL25ldHNlcnZpY2VzLzIwMTAvMTAvc2VydmljZWJ1cy9jb25u - ZWN0Ij48L1F1ZXVlRGVzY3JpcHRpb24+PC9jb250ZW50PjwvZW50cnk+ - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['555'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: PUT - uri: https://fakesbnamespace.servicebus.windows.net/utqueue616e1aa2 - response: - body: {string: 'https://fakesbnamespace.servicebus.windows.net/utqueue616e1aa2utqueue616e1aa22015-06-30T20:54:25Z2015-06-30T20:54:25ZfakesbnamespacePT1M1024falsefalseP10675199DT2H48M5.4775807SfalsePT10M10true002015-06-30T20:54:25.4332015-06-30T20:54:25.537'} - headers: - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:54:24 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 201, message: Created} -- request: - body: null - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: DELETE - uri: https://fakesbnamespace.servicebus.windows.net/utqueue616e1aa2 - response: - body: {string: ''} - headers: - Content-Length: ['0'] - Date: ['Tue, 30 Jun 2015 20:54:25 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [pyazure/0.20.0] - method: GET - uri: https://fakesbnamespace.servicebus.windows.net/$Resources/Queues - response: - body: {string: 'Queueshttps://fakesbnamespace.servicebus.windows.net/$Resources/Queues2015-06-30T20:54:26Z'} - headers: - Content-Type: [application/atom+xml;type=feed;charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:54:25 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 200, message: OK} -version: 1 diff --git a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_delete_queue_with_existing_queue_fail_not_exist.yaml b/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_delete_queue_with_existing_queue_fail_not_exist.yaml deleted file mode 100644 index 2328061f6590..000000000000 --- a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_delete_queue_with_existing_queue_fail_not_exist.yaml +++ /dev/null @@ -1,71 +0,0 @@ -interactions: -- request: - body: !!binary | - PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiIHN0YW5kYWxvbmU9InllcyI/Pjxl - bnRyeSB4bWxuczpkPSJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL2Fkby8yMDA3LzA4L2Rh - dGFzZXJ2aWNlcyIgeG1sbnM6bT0iaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9hZG8vMjAw - Ny8wOC9kYXRhc2VydmljZXMvbWV0YWRhdGEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDA1 - L0F0b20iPjx0aXRsZT48L3RpdGxlPjx1cGRhdGVkPjIwMTUtMDYtMzBUMjA6NTQ6NTUuNzg2MjMy - KzAwOjAwPC91cGRhdGVkPjxhdXRob3I+PG5hbWU+PC9uYW1lPjwvYXV0aG9yPjxpZD48L2lkPjxj - b250ZW50IHR5cGU9ImFwcGxpY2F0aW9uL3htbCI+PFF1ZXVlRGVzY3JpcHRpb24geG1sbnM6aT0i - aHR0cDovL3d3dy53My5vcmcvMjAwMS9YTUxTY2hlbWEtaW5zdGFuY2UiIHhtbG5zPSJodHRwOi8v - c2NoZW1hcy5taWNyb3NvZnQuY29tL25ldHNlcnZpY2VzLzIwMTAvMTAvc2VydmljZWJ1cy9jb25u - ZWN0Ij48L1F1ZXVlRGVzY3JpcHRpb24+PC9jb250ZW50PjwvZW50cnk+ - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['555'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: PUT - uri: https://fakesbnamespace.servicebus.windows.net/utqueue218c20d9 - response: - body: {string: 'https://fakesbnamespace.servicebus.windows.net/utqueue218c20d9utqueue218c20d92015-06-30T20:54:57Z2015-06-30T20:54:58ZfakesbnamespacePT1M1024falsefalseP10675199DT2H48M5.4775807SfalsePT10M10true002015-06-30T20:54:57.9272015-06-30T20:54:58.09'} - headers: - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:54:57 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 201, message: Created} -- request: - body: null - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: DELETE - uri: https://fakesbnamespace.servicebus.windows.net/utqueue218c20d9 - response: - body: {string: ''} - headers: - Content-Length: ['0'] - Date: ['Tue, 30 Jun 2015 20:54:58 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [pyazure/0.20.0] - method: GET - uri: https://fakesbnamespace.servicebus.windows.net/$Resources/Queues - response: - body: {string: 'Queueshttps://fakesbnamespace.servicebus.windows.net/$Resources/Queues2015-06-30T20:54:59Z'} - headers: - Content-Type: [application/atom+xml;type=feed;charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:54:58 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 200, message: OK} -version: 1 diff --git a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_delete_queue_with_non_existing_queue.yaml b/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_delete_queue_with_non_existing_queue.yaml deleted file mode 100644 index 5669c53f550c..000000000000 --- a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_delete_queue_with_non_existing_queue.yaml +++ /dev/null @@ -1,23 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: DELETE - uri: https://fakesbnamespace.servicebus.windows.net/utqueuecfc61c4c - response: - body: {string: '404No service is hosted at the specified - address. TrackingId:0a6794c0-9335-41fd-a9be-c2d8890c2ad9_G45,TimeStamp:6/30/2015 - 8:56:33 PM'} - headers: - Content-Type: [application/xml; charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:56:32 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 404, message: Not Found} -version: 1 diff --git a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_delete_queue_with_non_existing_queue_fail_not_exist.yaml b/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_delete_queue_with_non_existing_queue_fail_not_exist.yaml deleted file mode 100644 index f041e48b1271..000000000000 --- a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_delete_queue_with_non_existing_queue_fail_not_exist.yaml +++ /dev/null @@ -1,23 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: DELETE - uri: https://fakesbnamespace.servicebus.windows.net/utqueuea8da2283 - response: - body: {string: '404No service is hosted at the specified - address. TrackingId:01bd5467-6f9c-452a-aa50-17ffff36672e_G44,TimeStamp:6/30/2015 - 8:53:24 PM'} - headers: - Content-Type: [application/xml; charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:53:24 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 404, message: Not Found} -version: 1 diff --git a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_delete_rule_with_existing_rule.yaml b/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_delete_rule_with_existing_rule.yaml deleted file mode 100644 index 814842496bdb..000000000000 --- a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_delete_rule_with_existing_rule.yaml +++ /dev/null @@ -1,196 +0,0 @@ -interactions: -- request: - body: !!binary | - PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiIHN0YW5kYWxvbmU9InllcyI/Pjxl - bnRyeSB4bWxuczpkPSJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL2Fkby8yMDA3LzA4L2Rh - dGFzZXJ2aWNlcyIgeG1sbnM6bT0iaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9hZG8vMjAw - Ny8wOC9kYXRhc2VydmljZXMvbWV0YWRhdGEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDA1 - L0F0b20iPjx0aXRsZT48L3RpdGxlPjx1cGRhdGVkPjIwMTUtMDYtMzBUMjA6NTE6NDUuMTg0NzY3 - KzAwOjAwPC91cGRhdGVkPjxhdXRob3I+PG5hbWU+PC9uYW1lPjwvYXV0aG9yPjxpZD48L2lkPjxj - b250ZW50IHR5cGU9ImFwcGxpY2F0aW9uL3htbCI+PFRvcGljRGVzY3JpcHRpb24geG1sbnM6aT0i - aHR0cDovL3d3dy53My5vcmcvMjAwMS9YTUxTY2hlbWEtaW5zdGFuY2UiIHhtbG5zPSJodHRwOi8v - c2NoZW1hcy5taWNyb3NvZnQuY29tL25ldHNlcnZpY2VzLzIwMTAvMTAvc2VydmljZWJ1cy9jb25u - ZWN0Ij48L1RvcGljRGVzY3JpcHRpb24+PC9jb250ZW50PjwvZW50cnk+ - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['555'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: PUT - uri: https://fakesbnamespace.servicebus.windows.net/uttopic2c8019c8 - response: - body: {string: 'https://fakesbnamespace.servicebus.windows.net/uttopic2c8019c8uttopic2c8019c82015-06-30T20:51:47Z2015-06-30T20:51:47ZfakesbnamespaceP10675199DT2H48M5.4775807S1024falsePT10Mtrue02015-06-30T20:51:47.5572015-06-30T20:51:47.663'} - headers: - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:51:46 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 201, message: Created} -- request: - body: !!binary | - PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiIHN0YW5kYWxvbmU9InllcyI/Pjxl - bnRyeSB4bWxuczpkPSJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL2Fkby8yMDA3LzA4L2Rh - dGFzZXJ2aWNlcyIgeG1sbnM6bT0iaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9hZG8vMjAw - Ny8wOC9kYXRhc2VydmljZXMvbWV0YWRhdGEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDA1 - L0F0b20iPjx0aXRsZT48L3RpdGxlPjx1cGRhdGVkPjIwMTUtMDYtMzBUMjA6NTE6NDYuNzQ1Njk5 - KzAwOjAwPC91cGRhdGVkPjxhdXRob3I+PG5hbWU+PC9uYW1lPjwvYXV0aG9yPjxpZD48L2lkPjxj - b250ZW50IHR5cGU9ImFwcGxpY2F0aW9uL3htbCI+PFN1YnNjcmlwdGlvbkRlc2NyaXB0aW9uIHht - bG5zOmk9Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvWE1MU2NoZW1hLWluc3RhbmNlIiB4bWxucz0i - aHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9uZXRzZXJ2aWNlcy8yMDEwLzEwL3NlcnZpY2Vi - dXMvY29ubmVjdCI+PC9TdWJzY3JpcHRpb25EZXNjcmlwdGlvbj48L2NvbnRlbnQ+PC9lbnRyeT4= - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['569'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: PUT - uri: https://fakesbnamespace.servicebus.windows.net/uttopic2c8019c8/subscriptions/MySubscription - response: - body: {string: 'https://fakesbnamespace.servicebus.windows.net/uttopic2c8019c8/subscriptions/MySubscriptionMySubscription2015-06-30T20:51:47Z2015-06-30T20:51:47ZPT1MfalseP10675199DT2H48M5.4775807Sfalsetrue010true'} - headers: - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:51:47 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 201, message: Created} -- request: - body: !!binary | - PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiIHN0YW5kYWxvbmU9InllcyI/Pjxl - bnRyeSB4bWxuczpkPSJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL2Fkby8yMDA3LzA4L2Rh - dGFzZXJ2aWNlcyIgeG1sbnM6bT0iaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9hZG8vMjAw - Ny8wOC9kYXRhc2VydmljZXMvbWV0YWRhdGEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDA1 - L0F0b20iPjx0aXRsZT48L3RpdGxlPjx1cGRhdGVkPjIwMTUtMDYtMzBUMjA6NTE6NDcuMzcwNzQx - KzAwOjAwPC91cGRhdGVkPjxhdXRob3I+PG5hbWU+PC9uYW1lPjwvYXV0aG9yPjxpZD48L2lkPjxj - b250ZW50IHR5cGU9ImFwcGxpY2F0aW9uL3htbCI+PFJ1bGVEZXNjcmlwdGlvbiB4bWxuczppPSJo - dHRwOi8vd3d3LnczLm9yZy8yMDAxL1hNTFNjaGVtYS1pbnN0YW5jZSIgeG1sbnM9Imh0dHA6Ly9z - Y2hlbWFzLm1pY3Jvc29mdC5jb20vbmV0c2VydmljZXMvMjAxMC8xMC9zZXJ2aWNlYnVzL2Nvbm5l - Y3QiPjwvUnVsZURlc2NyaXB0aW9uPjwvY29udGVudD48L2VudHJ5Pg== - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['553'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: PUT - uri: https://fakesbnamespace.servicebus.windows.net/uttopic2c8019c8/subscriptions/MySubscription/rules/MyRule3 - response: - body: {string: 'https://fakesbnamespace.servicebus.windows.net/uttopic2c8019c8/subscriptions/MySubscription/rules/MyRule3MyRule32015-06-30T20:51:48Z2015-06-30T20:51:48Z1=120'} - headers: - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:51:47 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 201, message: Created} -- request: - body: !!binary | - PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiIHN0YW5kYWxvbmU9InllcyI/Pjxl - bnRyeSB4bWxuczpkPSJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL2Fkby8yMDA3LzA4L2Rh - dGFzZXJ2aWNlcyIgeG1sbnM6bT0iaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9hZG8vMjAw - Ny8wOC9kYXRhc2VydmljZXMvbWV0YWRhdGEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDA1 - L0F0b20iPjx0aXRsZT48L3RpdGxlPjx1cGRhdGVkPjIwMTUtMDYtMzBUMjA6NTE6NDcuOTAyMDA5 - KzAwOjAwPC91cGRhdGVkPjxhdXRob3I+PG5hbWU+PC9uYW1lPjwvYXV0aG9yPjxpZD48L2lkPjxj - b250ZW50IHR5cGU9ImFwcGxpY2F0aW9uL3htbCI+PFJ1bGVEZXNjcmlwdGlvbiB4bWxuczppPSJo - dHRwOi8vd3d3LnczLm9yZy8yMDAxL1hNTFNjaGVtYS1pbnN0YW5jZSIgeG1sbnM9Imh0dHA6Ly9z - Y2hlbWFzLm1pY3Jvc29mdC5jb20vbmV0c2VydmljZXMvMjAxMC8xMC9zZXJ2aWNlYnVzL2Nvbm5l - Y3QiPjwvUnVsZURlc2NyaXB0aW9uPjwvY29udGVudD48L2VudHJ5Pg== - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['553'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: PUT - uri: https://fakesbnamespace.servicebus.windows.net/uttopic2c8019c8/subscriptions/MySubscription/rules/MyRule4 - response: - body: {string: 'https://fakesbnamespace.servicebus.windows.net/uttopic2c8019c8/subscriptions/MySubscription/rules/MyRule4MyRule42015-06-30T20:51:48Z2015-06-30T20:51:48Z1=120'} - headers: - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:51:48 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 201, message: Created} -- request: - body: null - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: DELETE - uri: https://fakesbnamespace.servicebus.windows.net/uttopic2c8019c8/subscriptions/MySubscription/rules/MyRule4 - response: - body: {string: ''} - headers: - Content-Length: ['0'] - Date: ['Tue, 30 Jun 2015 20:51:48 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: DELETE - uri: https://fakesbnamespace.servicebus.windows.net/uttopic2c8019c8/subscriptions/MySubscription/rules/$Default - response: - body: {string: ''} - headers: - Content-Length: ['0'] - Date: ['Tue, 30 Jun 2015 20:51:48 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [pyazure/0.20.0] - method: GET - uri: https://fakesbnamespace.servicebus.windows.net/uttopic2c8019c8/subscriptions/MySubscription/rules/ - response: - body: {string: 'Ruleshttps://fakesbnamespace.servicebus.windows.net/uttopic2c8019c8/subscriptions/MySubscription/rules/2015-06-30T20:51:49Zhttps://fakesbnamespace.servicebus.windows.net/uttopic2c8019c8/subscriptions/MySubscription/rules/MyRule3MyRule32015-06-30T20:51:49Z2015-06-30T20:51:49Z1=120'} - headers: - Content-Type: [application/atom+xml;type=feed;charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:51:49 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 200, message: OK} -version: 1 diff --git a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_delete_rule_with_existing_rule_fail_not_exist.yaml b/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_delete_rule_with_existing_rule_fail_not_exist.yaml deleted file mode 100644 index 574fbd8552fb..000000000000 --- a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_delete_rule_with_existing_rule_fail_not_exist.yaml +++ /dev/null @@ -1,196 +0,0 @@ -interactions: -- request: - body: !!binary | - PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiIHN0YW5kYWxvbmU9InllcyI/Pjxl - bnRyeSB4bWxuczpkPSJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL2Fkby8yMDA3LzA4L2Rh - dGFzZXJ2aWNlcyIgeG1sbnM6bT0iaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9hZG8vMjAw - Ny8wOC9kYXRhc2VydmljZXMvbWV0YWRhdGEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDA1 - L0F0b20iPjx0aXRsZT48L3RpdGxlPjx1cGRhdGVkPjIwMTUtMDYtMzBUMjA6NTY6NTYuNDcxMzA0 - KzAwOjAwPC91cGRhdGVkPjxhdXRob3I+PG5hbWU+PC9uYW1lPjwvYXV0aG9yPjxpZD48L2lkPjxj - b250ZW50IHR5cGU9ImFwcGxpY2F0aW9uL3htbCI+PFRvcGljRGVzY3JpcHRpb24geG1sbnM6aT0i - aHR0cDovL3d3dy53My5vcmcvMjAwMS9YTUxTY2hlbWEtaW5zdGFuY2UiIHhtbG5zPSJodHRwOi8v - c2NoZW1hcy5taWNyb3NvZnQuY29tL25ldHNlcnZpY2VzLzIwMTAvMTAvc2VydmljZWJ1cy9jb25u - ZWN0Ij48L1RvcGljRGVzY3JpcHRpb24+PC9jb250ZW50PjwvZW50cnk+ - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['555'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: PUT - uri: https://fakesbnamespace.servicebus.windows.net/uttopicdfc91fff - response: - body: {string: 'https://fakesbnamespace.servicebus.windows.net/uttopicdfc91fffuttopicdfc91fff2015-06-30T20:56:59Z2015-06-30T20:56:59ZfakesbnamespaceP10675199DT2H48M5.4775807S1024falsePT10Mtrue02015-06-30T20:56:59.1532015-06-30T20:56:59.53'} - headers: - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:56:58 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 201, message: Created} -- request: - body: !!binary | - PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiIHN0YW5kYWxvbmU9InllcyI/Pjxl - bnRyeSB4bWxuczpkPSJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL2Fkby8yMDA3LzA4L2Rh - dGFzZXJ2aWNlcyIgeG1sbnM6bT0iaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9hZG8vMjAw - Ny8wOC9kYXRhc2VydmljZXMvbWV0YWRhdGEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDA1 - L0F0b20iPjx0aXRsZT48L3RpdGxlPjx1cGRhdGVkPjIwMTUtMDYtMzBUMjA6NTY6NTguNTk2NDIy - KzAwOjAwPC91cGRhdGVkPjxhdXRob3I+PG5hbWU+PC9uYW1lPjwvYXV0aG9yPjxpZD48L2lkPjxj - b250ZW50IHR5cGU9ImFwcGxpY2F0aW9uL3htbCI+PFN1YnNjcmlwdGlvbkRlc2NyaXB0aW9uIHht - bG5zOmk9Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvWE1MU2NoZW1hLWluc3RhbmNlIiB4bWxucz0i - aHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9uZXRzZXJ2aWNlcy8yMDEwLzEwL3NlcnZpY2Vi - dXMvY29ubmVjdCI+PC9TdWJzY3JpcHRpb25EZXNjcmlwdGlvbj48L2NvbnRlbnQ+PC9lbnRyeT4= - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['569'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: PUT - uri: https://fakesbnamespace.servicebus.windows.net/uttopicdfc91fff/subscriptions/MySubscription - response: - body: {string: 'https://fakesbnamespace.servicebus.windows.net/uttopicdfc91fff/subscriptions/MySubscriptionMySubscription2015-06-30T20:56:59Z2015-06-30T20:56:59ZPT1MfalseP10675199DT2H48M5.4775807Sfalsetrue010true'} - headers: - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:56:59 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 201, message: Created} -- request: - body: !!binary | - PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiIHN0YW5kYWxvbmU9InllcyI/Pjxl - bnRyeSB4bWxuczpkPSJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL2Fkby8yMDA3LzA4L2Rh - dGFzZXJ2aWNlcyIgeG1sbnM6bT0iaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9hZG8vMjAw - Ny8wOC9kYXRhc2VydmljZXMvbWV0YWRhdGEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDA1 - L0F0b20iPjx0aXRsZT48L3RpdGxlPjx1cGRhdGVkPjIwMTUtMDYtMzBUMjA6NTY6NTkuMzQ2NDEy - KzAwOjAwPC91cGRhdGVkPjxhdXRob3I+PG5hbWU+PC9uYW1lPjwvYXV0aG9yPjxpZD48L2lkPjxj - b250ZW50IHR5cGU9ImFwcGxpY2F0aW9uL3htbCI+PFJ1bGVEZXNjcmlwdGlvbiB4bWxuczppPSJo - dHRwOi8vd3d3LnczLm9yZy8yMDAxL1hNTFNjaGVtYS1pbnN0YW5jZSIgeG1sbnM9Imh0dHA6Ly9z - Y2hlbWFzLm1pY3Jvc29mdC5jb20vbmV0c2VydmljZXMvMjAxMC8xMC9zZXJ2aWNlYnVzL2Nvbm5l - Y3QiPjwvUnVsZURlc2NyaXB0aW9uPjwvY29udGVudD48L2VudHJ5Pg== - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['553'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: PUT - uri: https://fakesbnamespace.servicebus.windows.net/uttopicdfc91fff/subscriptions/MySubscription/rules/MyRule3 - response: - body: {string: 'https://fakesbnamespace.servicebus.windows.net/uttopicdfc91fff/subscriptions/MySubscription/rules/MyRule3MyRule32015-06-30T20:57:00Z2015-06-30T20:57:00Z1=120'} - headers: - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:56:59 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 201, message: Created} -- request: - body: !!binary | - PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiIHN0YW5kYWxvbmU9InllcyI/Pjxl - bnRyeSB4bWxuczpkPSJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL2Fkby8yMDA3LzA4L2Rh - dGFzZXJ2aWNlcyIgeG1sbnM6bT0iaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9hZG8vMjAw - Ny8wOC9kYXRhc2VydmljZXMvbWV0YWRhdGEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDA1 - L0F0b20iPjx0aXRsZT48L3RpdGxlPjx1cGRhdGVkPjIwMTUtMDYtMzBUMjA6NTY6NTkuNjc0NTM3 - KzAwOjAwPC91cGRhdGVkPjxhdXRob3I+PG5hbWU+PC9uYW1lPjwvYXV0aG9yPjxpZD48L2lkPjxj - b250ZW50IHR5cGU9ImFwcGxpY2F0aW9uL3htbCI+PFJ1bGVEZXNjcmlwdGlvbiB4bWxuczppPSJo - dHRwOi8vd3d3LnczLm9yZy8yMDAxL1hNTFNjaGVtYS1pbnN0YW5jZSIgeG1sbnM9Imh0dHA6Ly9z - Y2hlbWFzLm1pY3Jvc29mdC5jb20vbmV0c2VydmljZXMvMjAxMC8xMC9zZXJ2aWNlYnVzL2Nvbm5l - Y3QiPjwvUnVsZURlc2NyaXB0aW9uPjwvY29udGVudD48L2VudHJ5Pg== - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['553'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: PUT - uri: https://fakesbnamespace.servicebus.windows.net/uttopicdfc91fff/subscriptions/MySubscription/rules/MyRule4 - response: - body: {string: 'https://fakesbnamespace.servicebus.windows.net/uttopicdfc91fff/subscriptions/MySubscription/rules/MyRule4MyRule42015-06-30T20:57:00Z2015-06-30T20:57:00Z1=120'} - headers: - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:56:59 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 201, message: Created} -- request: - body: null - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: DELETE - uri: https://fakesbnamespace.servicebus.windows.net/uttopicdfc91fff/subscriptions/MySubscription/rules/MyRule4 - response: - body: {string: ''} - headers: - Content-Length: ['0'] - Date: ['Tue, 30 Jun 2015 20:57:00 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: DELETE - uri: https://fakesbnamespace.servicebus.windows.net/uttopicdfc91fff/subscriptions/MySubscription/rules/$Default - response: - body: {string: ''} - headers: - Content-Length: ['0'] - Date: ['Tue, 30 Jun 2015 20:57:00 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [pyazure/0.20.0] - method: GET - uri: https://fakesbnamespace.servicebus.windows.net/uttopicdfc91fff/subscriptions/MySubscription/rules/ - response: - body: {string: 'Ruleshttps://fakesbnamespace.servicebus.windows.net/uttopicdfc91fff/subscriptions/MySubscription/rules/2015-06-30T20:57:01Zhttps://fakesbnamespace.servicebus.windows.net/uttopicdfc91fff/subscriptions/MySubscription/rules/MyRule3MyRule32015-06-30T20:57:00Z2015-06-30T20:57:00Z1=120'} - headers: - Content-Type: [application/atom+xml;type=feed;charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:57:00 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 200, message: OK} -version: 1 diff --git a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_delete_rule_with_non_existing_rule.yaml b/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_delete_rule_with_non_existing_rule.yaml deleted file mode 100644 index 372a1834ab06..000000000000 --- a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_delete_rule_with_non_existing_rule.yaml +++ /dev/null @@ -1,86 +0,0 @@ -interactions: -- request: - body: !!binary | - PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiIHN0YW5kYWxvbmU9InllcyI/Pjxl - bnRyeSB4bWxuczpkPSJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL2Fkby8yMDA3LzA4L2Rh - dGFzZXJ2aWNlcyIgeG1sbnM6bT0iaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9hZG8vMjAw - Ny8wOC9kYXRhc2VydmljZXMvbWV0YWRhdGEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDA1 - L0F0b20iPjx0aXRsZT48L3RpdGxlPjx1cGRhdGVkPjIwMTUtMDYtMzBUMjA6NTI6MTguNjU0Nzkz - KzAwOjAwPC91cGRhdGVkPjxhdXRob3I+PG5hbWU+PC9uYW1lPjwvYXV0aG9yPjxpZD48L2lkPjxj - b250ZW50IHR5cGU9ImFwcGxpY2F0aW9uL3htbCI+PFRvcGljRGVzY3JpcHRpb24geG1sbnM6aT0i - aHR0cDovL3d3dy53My5vcmcvMjAwMS9YTUxTY2hlbWEtaW5zdGFuY2UiIHhtbG5zPSJodHRwOi8v - c2NoZW1hcy5taWNyb3NvZnQuY29tL25ldHNlcnZpY2VzLzIwMTAvMTAvc2VydmljZWJ1cy9jb25u - ZWN0Ij48L1RvcGljRGVzY3JpcHRpb24+PC9jb250ZW50PjwvZW50cnk+ - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['555'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: PUT - uri: https://fakesbnamespace.servicebus.windows.net/uttopic977a1b72 - response: - body: {string: 'https://fakesbnamespace.servicebus.windows.net/uttopic977a1b72uttopic977a1b722015-06-30T20:52:20Z2015-06-30T20:52:21ZfakesbnamespaceP10675199DT2H48M5.4775807S1024falsePT10Mtrue02015-06-30T20:52:20.9672015-06-30T20:52:21.153'} - headers: - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:52:20 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 201, message: Created} -- request: - body: !!binary | - PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiIHN0YW5kYWxvbmU9InllcyI/Pjxl - bnRyeSB4bWxuczpkPSJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL2Fkby8yMDA3LzA4L2Rh - dGFzZXJ2aWNlcyIgeG1sbnM6bT0iaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9hZG8vMjAw - Ny8wOC9kYXRhc2VydmljZXMvbWV0YWRhdGEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDA1 - L0F0b20iPjx0aXRsZT48L3RpdGxlPjx1cGRhdGVkPjIwMTUtMDYtMzBUMjA6NTI6MjAuMjI2NTUz - KzAwOjAwPC91cGRhdGVkPjxhdXRob3I+PG5hbWU+PC9uYW1lPjwvYXV0aG9yPjxpZD48L2lkPjxj - b250ZW50IHR5cGU9ImFwcGxpY2F0aW9uL3htbCI+PFN1YnNjcmlwdGlvbkRlc2NyaXB0aW9uIHht - bG5zOmk9Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvWE1MU2NoZW1hLWluc3RhbmNlIiB4bWxucz0i - aHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9uZXRzZXJ2aWNlcy8yMDEwLzEwL3NlcnZpY2Vi - dXMvY29ubmVjdCI+PC9TdWJzY3JpcHRpb25EZXNjcmlwdGlvbj48L2NvbnRlbnQ+PC9lbnRyeT4= - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['569'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: PUT - uri: https://fakesbnamespace.servicebus.windows.net/uttopic977a1b72/subscriptions/MySubscription - response: - body: {string: 'https://fakesbnamespace.servicebus.windows.net/uttopic977a1b72/subscriptions/MySubscriptionMySubscription2015-06-30T20:52:21Z2015-06-30T20:52:21ZPT1MfalseP10675199DT2H48M5.4775807Sfalsetrue010true'} - headers: - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:52:20 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 201, message: Created} -- request: - body: null - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: DELETE - uri: https://fakesbnamespace.servicebus.windows.net/uttopic977a1b72/subscriptions/MySubscription/rules/NonExistingRule - response: - body: {string: ''} - headers: - Content-Length: ['0'] - Date: ['Tue, 30 Jun 2015 20:52:22 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - status: {code: 404, message: '40400: Endpoint not found.'} -version: 1 diff --git a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_delete_rule_with_non_existing_rule_fail_not_exist.yaml b/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_delete_rule_with_non_existing_rule_fail_not_exist.yaml deleted file mode 100644 index 1a868f04816f..000000000000 --- a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_delete_rule_with_non_existing_rule_fail_not_exist.yaml +++ /dev/null @@ -1,86 +0,0 @@ -interactions: -- request: - body: !!binary | - PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiIHN0YW5kYWxvbmU9InllcyI/Pjxl - bnRyeSB4bWxuczpkPSJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL2Fkby8yMDA3LzA4L2Rh - dGFzZXJ2aWNlcyIgeG1sbnM6bT0iaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9hZG8vMjAw - Ny8wOC9kYXRhc2VydmljZXMvbWV0YWRhdGEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDA1 - L0F0b20iPjx0aXRsZT48L3RpdGxlPjx1cGRhdGVkPjIwMTUtMDYtMzBUMjA6NTA6MjkuMTA2MDQ5 - KzAwOjAwPC91cGRhdGVkPjxhdXRob3I+PG5hbWU+PC9uYW1lPjwvYXV0aG9yPjxpZD48L2lkPjxj - b250ZW50IHR5cGU9ImFwcGxpY2F0aW9uL3htbCI+PFRvcGljRGVzY3JpcHRpb24geG1sbnM6aT0i - aHR0cDovL3d3dy53My5vcmcvMjAwMS9YTUxTY2hlbWEtaW5zdGFuY2UiIHhtbG5zPSJodHRwOi8v - c2NoZW1hcy5taWNyb3NvZnQuY29tL25ldHNlcnZpY2VzLzIwMTAvMTAvc2VydmljZWJ1cy9jb25u - ZWN0Ij48L1RvcGljRGVzY3JpcHRpb24+PC9jb250ZW50PjwvZW50cnk+ - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['555'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: PUT - uri: https://fakesbnamespace.servicebus.windows.net/uttopic63c821a9 - response: - body: {string: 'https://fakesbnamespace.servicebus.windows.net/uttopic63c821a9uttopic63c821a92015-06-30T20:50:31Z2015-06-30T20:50:31ZfakesbnamespaceP10675199DT2H48M5.4775807S1024falsePT10Mtrue02015-06-30T20:50:31.2172015-06-30T20:50:31.347'} - headers: - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:50:30 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 201, message: Created} -- request: - body: !!binary | - PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiIHN0YW5kYWxvbmU9InllcyI/Pjxl - bnRyeSB4bWxuczpkPSJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL2Fkby8yMDA3LzA4L2Rh - dGFzZXJ2aWNlcyIgeG1sbnM6bT0iaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9hZG8vMjAw - Ny8wOC9kYXRhc2VydmljZXMvbWV0YWRhdGEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDA1 - L0F0b20iPjx0aXRsZT48L3RpdGxlPjx1cGRhdGVkPjIwMTUtMDYtMzBUMjA6NTA6MzAuNDE2NjQz - KzAwOjAwPC91cGRhdGVkPjxhdXRob3I+PG5hbWU+PC9uYW1lPjwvYXV0aG9yPjxpZD48L2lkPjxj - b250ZW50IHR5cGU9ImFwcGxpY2F0aW9uL3htbCI+PFN1YnNjcmlwdGlvbkRlc2NyaXB0aW9uIHht - bG5zOmk9Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvWE1MU2NoZW1hLWluc3RhbmNlIiB4bWxucz0i - aHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9uZXRzZXJ2aWNlcy8yMDEwLzEwL3NlcnZpY2Vi - dXMvY29ubmVjdCI+PC9TdWJzY3JpcHRpb25EZXNjcmlwdGlvbj48L2NvbnRlbnQ+PC9lbnRyeT4= - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['569'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: PUT - uri: https://fakesbnamespace.servicebus.windows.net/uttopic63c821a9/subscriptions/MySubscription - response: - body: {string: 'https://fakesbnamespace.servicebus.windows.net/uttopic63c821a9/subscriptions/MySubscriptionMySubscription2015-06-30T20:50:31Z2015-06-30T20:50:31ZPT1MfalseP10675199DT2H48M5.4775807Sfalsetrue010true'} - headers: - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:50:31 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 201, message: Created} -- request: - body: null - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: DELETE - uri: https://fakesbnamespace.servicebus.windows.net/uttopic63c821a9/subscriptions/MySubscription/rules/NonExistingRule - response: - body: {string: ''} - headers: - Content-Length: ['0'] - Date: ['Tue, 30 Jun 2015 20:50:32 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - status: {code: 404, message: '40400: Endpoint not found.'} -version: 1 diff --git a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_delete_subscription_with_existing_subscription.yaml b/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_delete_subscription_with_existing_subscription.yaml deleted file mode 100644 index e5fc5cf7a38c..000000000000 --- a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_delete_subscription_with_existing_subscription.yaml +++ /dev/null @@ -1,142 +0,0 @@ -interactions: -- request: - body: !!binary | - PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiIHN0YW5kYWxvbmU9InllcyI/Pjxl - bnRyeSB4bWxuczpkPSJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL2Fkby8yMDA3LzA4L2Rh - dGFzZXJ2aWNlcyIgeG1sbnM6bT0iaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9hZG8vMjAw - Ny8wOC9kYXRhc2VydmljZXMvbWV0YWRhdGEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDA1 - L0F0b20iPjx0aXRsZT48L3RpdGxlPjx1cGRhdGVkPjIwMTUtMDYtMzBUMjA6NTU6MDUuMzg3MTYw - KzAwOjAwPC91cGRhdGVkPjxhdXRob3I+PG5hbWU+PC9uYW1lPjwvYXV0aG9yPjxpZD48L2lkPjxj - b250ZW50IHR5cGU9ImFwcGxpY2F0aW9uL3htbCI+PFRvcGljRGVzY3JpcHRpb24geG1sbnM6aT0i - aHR0cDovL3d3dy53My5vcmcvMjAwMS9YTUxTY2hlbWEtaW5zdGFuY2UiIHhtbG5zPSJodHRwOi8v - c2NoZW1hcy5taWNyb3NvZnQuY29tL25ldHNlcnZpY2VzLzIwMTAvMTAvc2VydmljZWJ1cy9jb25u - ZWN0Ij48L1RvcGljRGVzY3JpcHRpb24+PC9jb250ZW50PjwvZW50cnk+ - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['555'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: PUT - uri: https://fakesbnamespace.servicebus.windows.net/uttopic46f20a2 - response: - body: {string: 'https://fakesbnamespace.servicebus.windows.net/uttopic46f20a2uttopic46f20a22015-06-30T20:55:07Z2015-06-30T20:55:07ZfakesbnamespaceP10675199DT2H48M5.4775807S1024falsePT10Mtrue02015-06-30T20:55:07.8072015-06-30T20:55:07.95'} - headers: - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:55:07 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 201, message: Created} -- request: - body: !!binary | - PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiIHN0YW5kYWxvbmU9InllcyI/Pjxl - bnRyeSB4bWxuczpkPSJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL2Fkby8yMDA3LzA4L2Rh - dGFzZXJ2aWNlcyIgeG1sbnM6bT0iaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9hZG8vMjAw - Ny8wOC9kYXRhc2VydmljZXMvbWV0YWRhdGEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDA1 - L0F0b20iPjx0aXRsZT48L3RpdGxlPjx1cGRhdGVkPjIwMTUtMDYtMzBUMjA6NTU6MDcuMDI0NjAz - KzAwOjAwPC91cGRhdGVkPjxhdXRob3I+PG5hbWU+PC9uYW1lPjwvYXV0aG9yPjxpZD48L2lkPjxj - b250ZW50IHR5cGU9ImFwcGxpY2F0aW9uL3htbCI+PFN1YnNjcmlwdGlvbkRlc2NyaXB0aW9uIHht - bG5zOmk9Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvWE1MU2NoZW1hLWluc3RhbmNlIiB4bWxucz0i - aHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9uZXRzZXJ2aWNlcy8yMDEwLzEwL3NlcnZpY2Vi - dXMvY29ubmVjdCI+PC9TdWJzY3JpcHRpb25EZXNjcmlwdGlvbj48L2NvbnRlbnQ+PC9lbnRyeT4= - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['569'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: PUT - uri: https://fakesbnamespace.servicebus.windows.net/uttopic46f20a2/subscriptions/MySubscription4 - response: - body: {string: 'https://fakesbnamespace.servicebus.windows.net/uttopic46f20a2/subscriptions/MySubscription4MySubscription42015-06-30T20:55:08Z2015-06-30T20:55:08ZPT1MfalseP10675199DT2H48M5.4775807Sfalsetrue010true'} - headers: - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:55:07 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 201, message: Created} -- request: - body: !!binary | - PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiIHN0YW5kYWxvbmU9InllcyI/Pjxl - bnRyeSB4bWxuczpkPSJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL2Fkby8yMDA3LzA4L2Rh - dGFzZXJ2aWNlcyIgeG1sbnM6bT0iaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9hZG8vMjAw - Ny8wOC9kYXRhc2VydmljZXMvbWV0YWRhdGEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDA1 - L0F0b20iPjx0aXRsZT48L3RpdGxlPjx1cGRhdGVkPjIwMTUtMDYtMzBUMjA6NTU6MDcuNDUxNTM2 - KzAwOjAwPC91cGRhdGVkPjxhdXRob3I+PG5hbWU+PC9uYW1lPjwvYXV0aG9yPjxpZD48L2lkPjxj - b250ZW50IHR5cGU9ImFwcGxpY2F0aW9uL3htbCI+PFN1YnNjcmlwdGlvbkRlc2NyaXB0aW9uIHht - bG5zOmk9Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvWE1MU2NoZW1hLWluc3RhbmNlIiB4bWxucz0i - aHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9uZXRzZXJ2aWNlcy8yMDEwLzEwL3NlcnZpY2Vi - dXMvY29ubmVjdCI+PC9TdWJzY3JpcHRpb25EZXNjcmlwdGlvbj48L2NvbnRlbnQ+PC9lbnRyeT4= - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['569'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: PUT - uri: https://fakesbnamespace.servicebus.windows.net/uttopic46f20a2/subscriptions/MySubscription5 - response: - body: {string: 'https://fakesbnamespace.servicebus.windows.net/uttopic46f20a2/subscriptions/MySubscription5MySubscription52015-06-30T20:55:08Z2015-06-30T20:55:08ZPT1MfalseP10675199DT2H48M5.4775807Sfalsetrue010true'} - headers: - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:55:07 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 201, message: Created} -- request: - body: null - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: DELETE - uri: https://fakesbnamespace.servicebus.windows.net/uttopic46f20a2/subscriptions/MySubscription4 - response: - body: {string: ''} - headers: - Content-Length: ['0'] - Date: ['Tue, 30 Jun 2015 20:55:08 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [pyazure/0.20.0] - method: GET - uri: https://fakesbnamespace.servicebus.windows.net/uttopic46f20a2/subscriptions/ - response: - body: {string: 'Subscriptionshttps://fakesbnamespace.servicebus.windows.net/uttopic46f20a2/subscriptions/2015-06-30T20:55:09Zhttps://fakesbnamespace.servicebus.windows.net/uttopic46f20a2/subscriptions/MySubscription5MySubscription52015-06-30T20:55:08Z2015-06-30T20:55:08ZPT1MfalseP10675199DT2H48M5.4775807Sfalsetrue010true'} - headers: - Content-Type: [application/atom+xml;type=feed;charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:55:08 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 200, message: OK} -version: 1 diff --git a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_delete_subscription_with_existing_subscription_fail_not_exist.yaml b/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_delete_subscription_with_existing_subscription_fail_not_exist.yaml deleted file mode 100644 index de60020434e1..000000000000 --- a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_delete_subscription_with_existing_subscription_fail_not_exist.yaml +++ /dev/null @@ -1,142 +0,0 @@ -interactions: -- request: - body: !!binary | - PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiIHN0YW5kYWxvbmU9InllcyI/Pjxl - bnRyeSB4bWxuczpkPSJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL2Fkby8yMDA3LzA4L2Rh - dGFzZXJ2aWNlcyIgeG1sbnM6bT0iaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9hZG8vMjAw - Ny8wOC9kYXRhc2VydmljZXMvbWV0YWRhdGEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDA1 - L0F0b20iPjx0aXRsZT48L3RpdGxlPjx1cGRhdGVkPjIwMTUtMDYtMzBUMjA6NTE6MTMuOTYxNDA0 - KzAwOjAwPC91cGRhdGVkPjxhdXRob3I+PG5hbWU+PC9uYW1lPjwvYXV0aG9yPjxpZD48L2lkPjxj - b250ZW50IHR5cGU9ImFwcGxpY2F0aW9uL3htbCI+PFRvcGljRGVzY3JpcHRpb24geG1sbnM6aT0i - aHR0cDovL3d3dy53My5vcmcvMjAwMS9YTUxTY2hlbWEtaW5zdGFuY2UiIHhtbG5zPSJodHRwOi8v - c2NoZW1hcy5taWNyb3NvZnQuY29tL25ldHNlcnZpY2VzLzIwMTAvMTAvc2VydmljZWJ1cy9jb25u - ZWN0Ij48L1RvcGljRGVzY3JpcHRpb24+PC9jb250ZW50PjwvZW50cnk+ - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['555'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: PUT - uri: https://fakesbnamespace.servicebus.windows.net/uttopic1e8d26d9 - response: - body: {string: 'https://fakesbnamespace.servicebus.windows.net/uttopic1e8d26d9uttopic1e8d26d92015-06-30T20:51:16Z2015-06-30T20:51:16ZfakesbnamespaceP10675199DT2H48M5.4775807S1024falsePT10Mtrue02015-06-30T20:51:16.2572015-06-30T20:51:16.367'} - headers: - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:51:15 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 201, message: Created} -- request: - body: !!binary | - PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiIHN0YW5kYWxvbmU9InllcyI/Pjxl - bnRyeSB4bWxuczpkPSJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL2Fkby8yMDA3LzA4L2Rh - dGFzZXJ2aWNlcyIgeG1sbnM6bT0iaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9hZG8vMjAw - Ny8wOC9kYXRhc2VydmljZXMvbWV0YWRhdGEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDA1 - L0F0b20iPjx0aXRsZT48L3RpdGxlPjx1cGRhdGVkPjIwMTUtMDYtMzBUMjA6NTE6MTUuNDQ3ODYw - KzAwOjAwPC91cGRhdGVkPjxhdXRob3I+PG5hbWU+PC9uYW1lPjwvYXV0aG9yPjxpZD48L2lkPjxj - b250ZW50IHR5cGU9ImFwcGxpY2F0aW9uL3htbCI+PFN1YnNjcmlwdGlvbkRlc2NyaXB0aW9uIHht - bG5zOmk9Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvWE1MU2NoZW1hLWluc3RhbmNlIiB4bWxucz0i - aHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9uZXRzZXJ2aWNlcy8yMDEwLzEwL3NlcnZpY2Vi - dXMvY29ubmVjdCI+PC9TdWJzY3JpcHRpb25EZXNjcmlwdGlvbj48L2NvbnRlbnQ+PC9lbnRyeT4= - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['569'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: PUT - uri: https://fakesbnamespace.servicebus.windows.net/uttopic1e8d26d9/subscriptions/MySubscription4 - response: - body: {string: 'https://fakesbnamespace.servicebus.windows.net/uttopic1e8d26d9/subscriptions/MySubscription4MySubscription42015-06-30T20:51:16Z2015-06-30T20:51:16ZPT1MfalseP10675199DT2H48M5.4775807Sfalsetrue010true'} - headers: - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:51:17 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 201, message: Created} -- request: - body: !!binary | - PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiIHN0YW5kYWxvbmU9InllcyI/Pjxl - bnRyeSB4bWxuczpkPSJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL2Fkby8yMDA3LzA4L2Rh - dGFzZXJ2aWNlcyIgeG1sbnM6bT0iaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9hZG8vMjAw - Ny8wOC9kYXRhc2VydmljZXMvbWV0YWRhdGEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDA1 - L0F0b20iPjx0aXRsZT48L3RpdGxlPjx1cGRhdGVkPjIwMTUtMDYtMzBUMjA6NTE6MTYuMTY3MTcx - KzAwOjAwPC91cGRhdGVkPjxhdXRob3I+PG5hbWU+PC9uYW1lPjwvYXV0aG9yPjxpZD48L2lkPjxj - b250ZW50IHR5cGU9ImFwcGxpY2F0aW9uL3htbCI+PFN1YnNjcmlwdGlvbkRlc2NyaXB0aW9uIHht - bG5zOmk9Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvWE1MU2NoZW1hLWluc3RhbmNlIiB4bWxucz0i - aHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9uZXRzZXJ2aWNlcy8yMDEwLzEwL3NlcnZpY2Vi - dXMvY29ubmVjdCI+PC9TdWJzY3JpcHRpb25EZXNjcmlwdGlvbj48L2NvbnRlbnQ+PC9lbnRyeT4= - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['569'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: PUT - uri: https://fakesbnamespace.servicebus.windows.net/uttopic1e8d26d9/subscriptions/MySubscription5 - response: - body: {string: 'https://fakesbnamespace.servicebus.windows.net/uttopic1e8d26d9/subscriptions/MySubscription5MySubscription52015-06-30T20:51:17Z2015-06-30T20:51:17ZPT1MfalseP10675199DT2H48M5.4775807Sfalsetrue010true'} - headers: - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:51:17 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 201, message: Created} -- request: - body: null - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: DELETE - uri: https://fakesbnamespace.servicebus.windows.net/uttopic1e8d26d9/subscriptions/MySubscription4 - response: - body: {string: ''} - headers: - Content-Length: ['0'] - Date: ['Tue, 30 Jun 2015 20:51:18 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [pyazure/0.20.0] - method: GET - uri: https://fakesbnamespace.servicebus.windows.net/uttopic1e8d26d9/subscriptions/ - response: - body: {string: 'Subscriptionshttps://fakesbnamespace.servicebus.windows.net/uttopic1e8d26d9/subscriptions/2015-06-30T20:51:18Zhttps://fakesbnamespace.servicebus.windows.net/uttopic1e8d26d9/subscriptions/MySubscription5MySubscription52015-06-30T20:51:17Z2015-06-30T20:51:17ZPT1MfalseP10675199DT2H48M5.4775807Sfalsetrue010true'} - headers: - Content-Type: [application/atom+xml;type=feed;charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:51:18 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 200, message: OK} -version: 1 diff --git a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_delete_subscription_with_non_existing_subscription.yaml b/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_delete_subscription_with_non_existing_subscription.yaml deleted file mode 100644 index ce7e5eba302e..000000000000 --- a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_delete_subscription_with_non_existing_subscription.yaml +++ /dev/null @@ -1,53 +0,0 @@ -interactions: -- request: - body: !!binary | - PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiIHN0YW5kYWxvbmU9InllcyI/Pjxl - bnRyeSB4bWxuczpkPSJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL2Fkby8yMDA3LzA4L2Rh - dGFzZXJ2aWNlcyIgeG1sbnM6bT0iaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9hZG8vMjAw - Ny8wOC9kYXRhc2VydmljZXMvbWV0YWRhdGEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDA1 - L0F0b20iPjx0aXRsZT48L3RpdGxlPjx1cGRhdGVkPjIwMTUtMDYtMzBUMjA6NTU6MDAuNDExNDI1 - KzAwOjAwPC91cGRhdGVkPjxhdXRob3I+PG5hbWU+PC9uYW1lPjwvYXV0aG9yPjxpZD48L2lkPjxj - b250ZW50IHR5cGU9ImFwcGxpY2F0aW9uL3htbCI+PFRvcGljRGVzY3JpcHRpb24geG1sbnM6aT0i - aHR0cDovL3d3dy53My5vcmcvMjAwMS9YTUxTY2hlbWEtaW5zdGFuY2UiIHhtbG5zPSJodHRwOi8v - c2NoZW1hcy5taWNyb3NvZnQuY29tL25ldHNlcnZpY2VzLzIwMTAvMTAvc2VydmljZWJ1cy9jb25u - ZWN0Ij48L1RvcGljRGVzY3JpcHRpb24+PC9jb250ZW50PjwvZW50cnk+ - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['555'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: PUT - uri: https://fakesbnamespace.servicebus.windows.net/uttopic8a6d224c - response: - body: {string: 'https://fakesbnamespace.servicebus.windows.net/uttopic8a6d224cuttopic8a6d224c2015-06-30T20:55:02Z2015-06-30T20:55:02ZfakesbnamespaceP10675199DT2H48M5.4775807S1024falsePT10Mtrue02015-06-30T20:55:02.612015-06-30T20:55:02.757'} - headers: - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:55:01 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 201, message: Created} -- request: - body: null - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: DELETE - uri: https://fakesbnamespace.servicebus.windows.net/uttopic8a6d224c/subscriptions/MySubscription - response: - body: {string: ''} - headers: - Content-Length: ['0'] - Date: ['Tue, 30 Jun 2015 20:55:03 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - status: {code: 404, message: '40400: Endpoint not found.'} -version: 1 diff --git a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_delete_subscription_with_non_existing_subscription_fail_not_exist.yaml b/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_delete_subscription_with_non_existing_subscription_fail_not_exist.yaml deleted file mode 100644 index b07c99137c0c..000000000000 --- a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_delete_subscription_with_non_existing_subscription_fail_not_exist.yaml +++ /dev/null @@ -1,53 +0,0 @@ -interactions: -- request: - body: !!binary | - PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiIHN0YW5kYWxvbmU9InllcyI/Pjxl - bnRyeSB4bWxuczpkPSJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL2Fkby8yMDA3LzA4L2Rh - dGFzZXJ2aWNlcyIgeG1sbnM6bT0iaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9hZG8vMjAw - Ny8wOC9kYXRhc2VydmljZXMvbWV0YWRhdGEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDA1 - L0F0b20iPjx0aXRsZT48L3RpdGxlPjx1cGRhdGVkPjIwMTUtMDYtMzBUMjA6NTI6MjUuMDMwMTU3 - KzAwOjAwPC91cGRhdGVkPjxhdXRob3I+PG5hbWU+PC9uYW1lPjwvYXV0aG9yPjxpZD48L2lkPjxj - b250ZW50IHR5cGU9ImFwcGxpY2F0aW9uL3htbCI+PFRvcGljRGVzY3JpcHRpb24geG1sbnM6aT0i - aHR0cDovL3d3dy53My5vcmcvMjAwMS9YTUxTY2hlbWEtaW5zdGFuY2UiIHhtbG5zPSJodHRwOi8v - c2NoZW1hcy5taWNyb3NvZnQuY29tL25ldHNlcnZpY2VzLzIwMTAvMTAvc2VydmljZWJ1cy9jb25u - ZWN0Ij48L1RvcGljRGVzY3JpcHRpb24+PC9jb250ZW50PjwvZW50cnk+ - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['555'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: PUT - uri: https://fakesbnamespace.servicebus.windows.net/uttopicbd812883 - response: - body: {string: 'https://fakesbnamespace.servicebus.windows.net/uttopicbd812883uttopicbd8128832015-06-30T20:52:27Z2015-06-30T20:52:27ZfakesbnamespaceP10675199DT2H48M5.4775807S1024falsePT10Mtrue02015-06-30T20:52:27.5872015-06-30T20:52:27.687'} - headers: - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:52:27 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 201, message: Created} -- request: - body: null - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: DELETE - uri: https://fakesbnamespace.servicebus.windows.net/uttopicbd812883/subscriptions/MySubscription - response: - body: {string: ''} - headers: - Content-Length: ['0'] - Date: ['Tue, 30 Jun 2015 20:52:28 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - status: {code: 404, message: '40400: Endpoint not found.'} -version: 1 diff --git a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_delete_topic_with_existing_topic.yaml b/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_delete_topic_with_existing_topic.yaml deleted file mode 100644 index d882c69529f1..000000000000 --- a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_delete_topic_with_existing_topic.yaml +++ /dev/null @@ -1,71 +0,0 @@ -interactions: -- request: - body: !!binary | - PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiIHN0YW5kYWxvbmU9InllcyI/Pjxl - bnRyeSB4bWxuczpkPSJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL2Fkby8yMDA3LzA4L2Rh - dGFzZXJ2aWNlcyIgeG1sbnM6bT0iaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9hZG8vMjAw - Ny8wOC9kYXRhc2VydmljZXMvbWV0YWRhdGEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDA1 - L0F0b20iPjx0aXRsZT48L3RpdGxlPjx1cGRhdGVkPjIwMTUtMDYtMzBUMjA6NTQ6MDIuODYxNTU1 - KzAwOjAwPC91cGRhdGVkPjxhdXRob3I+PG5hbWU+PC9uYW1lPjwvYXV0aG9yPjxpZD48L2lkPjxj - b250ZW50IHR5cGU9ImFwcGxpY2F0aW9uL3htbCI+PFRvcGljRGVzY3JpcHRpb24geG1sbnM6aT0i - aHR0cDovL3d3dy53My5vcmcvMjAwMS9YTUxTY2hlbWEtaW5zdGFuY2UiIHhtbG5zPSJodHRwOi8v - c2NoZW1hcy5taWNyb3NvZnQuY29tL25ldHNlcnZpY2VzLzIwMTAvMTAvc2VydmljZWJ1cy9jb25u - ZWN0Ij48L1RvcGljRGVzY3JpcHRpb24+PC9jb250ZW50PjwvZW50cnk+ - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['555'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: PUT - uri: https://fakesbnamespace.servicebus.windows.net/uttopic60f21a96 - response: - body: {string: 'https://fakesbnamespace.servicebus.windows.net/uttopic60f21a96uttopic60f21a962015-06-30T20:54:04Z2015-06-30T20:54:05ZfakesbnamespaceP10675199DT2H48M5.4775807S1024falsePT10Mtrue02015-06-30T20:54:04.912015-06-30T20:54:05.027'} - headers: - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:54:04 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 201, message: Created} -- request: - body: null - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: DELETE - uri: https://fakesbnamespace.servicebus.windows.net/uttopic60f21a96 - response: - body: {string: ''} - headers: - Content-Length: ['0'] - Date: ['Tue, 30 Jun 2015 20:54:05 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [pyazure/0.20.0] - method: GET - uri: https://fakesbnamespace.servicebus.windows.net/$Resources/Topics - response: - body: {string: 'Topicshttps://fakesbnamespace.servicebus.windows.net/$Resources/Topics2015-06-30T20:54:06Z'} - headers: - Content-Type: [application/atom+xml;type=feed;charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:54:05 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 200, message: OK} -version: 1 diff --git a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_delete_topic_with_existing_topic_fail_not_exist.yaml b/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_delete_topic_with_existing_topic_fail_not_exist.yaml deleted file mode 100644 index 39080808cac3..000000000000 --- a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_delete_topic_with_existing_topic_fail_not_exist.yaml +++ /dev/null @@ -1,71 +0,0 @@ -interactions: -- request: - body: !!binary | - PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiIHN0YW5kYWxvbmU9InllcyI/Pjxl - bnRyeSB4bWxuczpkPSJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL2Fkby8yMDA3LzA4L2Rh - dGFzZXJ2aWNlcyIgeG1sbnM6bT0iaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9hZG8vMjAw - Ny8wOC9kYXRhc2VydmljZXMvbWV0YWRhdGEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDA1 - L0F0b20iPjx0aXRsZT48L3RpdGxlPjx1cGRhdGVkPjIwMTUtMDYtMzBUMjA6NTc6MTkuNTA0NDg3 - KzAwOjAwPC91cGRhdGVkPjxhdXRob3I+PG5hbWU+PC9uYW1lPjwvYXV0aG9yPjxpZD48L2lkPjxj - b250ZW50IHR5cGU9ImFwcGxpY2F0aW9uL3htbCI+PFRvcGljRGVzY3JpcHRpb24geG1sbnM6aT0i - aHR0cDovL3d3dy53My5vcmcvMjAwMS9YTUxTY2hlbWEtaW5zdGFuY2UiIHhtbG5zPSJodHRwOi8v - c2NoZW1hcy5taWNyb3NvZnQuY29tL25ldHNlcnZpY2VzLzIwMTAvMTAvc2VydmljZWJ1cy9jb25u - ZWN0Ij48L1RvcGljRGVzY3JpcHRpb24+PC9jb250ZW50PjwvZW50cnk+ - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['555'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: PUT - uri: https://fakesbnamespace.servicebus.windows.net/uttopic205c20cd - response: - body: {string: 'https://fakesbnamespace.servicebus.windows.net/uttopic205c20cduttopic205c20cd2015-06-30T20:57:21Z2015-06-30T20:57:21ZfakesbnamespaceP10675199DT2H48M5.4775807S1024falsePT10Mtrue02015-06-30T20:57:21.8832015-06-30T20:57:21.997'} - headers: - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:57:21 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 201, message: Created} -- request: - body: null - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: DELETE - uri: https://fakesbnamespace.servicebus.windows.net/uttopic205c20cd - response: - body: {string: ''} - headers: - Content-Length: ['0'] - Date: ['Tue, 30 Jun 2015 20:57:22 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [pyazure/0.20.0] - method: GET - uri: https://fakesbnamespace.servicebus.windows.net/$Resources/Topics - response: - body: {string: 'Topicshttps://fakesbnamespace.servicebus.windows.net/$Resources/Topics2015-06-30T20:57:23Z'} - headers: - Content-Type: [application/atom+xml;type=feed;charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:57:22 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 200, message: OK} -version: 1 diff --git a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_delete_topic_with_non_existing_topic.yaml b/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_delete_topic_with_non_existing_topic.yaml deleted file mode 100644 index e6dc3e87172b..000000000000 --- a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_delete_topic_with_non_existing_topic.yaml +++ /dev/null @@ -1,23 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: DELETE - uri: https://fakesbnamespace.servicebus.windows.net/uttopiccf321c40 - response: - body: {string: '404No service is hosted at the specified - address. TrackingId:ffb2e6f3-104d-44eb-941b-fd69d1eb98fb_G16,TimeStamp:6/30/2015 - 8:56:11 PM'} - headers: - Content-Type: [application/xml; charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:56:11 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 404, message: Not Found} -version: 1 diff --git a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_delete_topic_with_non_existing_topic_fail_not_exist.yaml b/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_delete_topic_with_non_existing_topic_fail_not_exist.yaml deleted file mode 100644 index 5f174c8423b9..000000000000 --- a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_delete_topic_with_non_existing_topic_fail_not_exist.yaml +++ /dev/null @@ -1,23 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: DELETE - uri: https://fakesbnamespace.servicebus.windows.net/uttopica7922277 - response: - body: {string: '404No service is hosted at the specified - address. TrackingId:b89f970d-75ea-4c17-8cab-66ba67092962_G33,TimeStamp:6/30/2015 - 8:51:27 PM'} - headers: - Content-Type: [application/xml; charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:51:27 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 404, message: Not Found} -version: 1 diff --git a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_get_dead_letter_queue.yaml b/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_get_dead_letter_queue.yaml deleted file mode 100644 index f38767fca162..000000000000 --- a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_get_dead_letter_queue.yaml +++ /dev/null @@ -1,47 +0,0 @@ -interactions: -- request: - body: 2016-08-11T22:21:36.782954+00:00 - headers: - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['555'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.2] - method: PUT - uri: https://fakesbnamespace.servicebus.windows.net/utqueue51c815e2 - response: - body: {string: 'https://fakesbnamespace.servicebus.windows.net/utqueue51c815e2utqueue51c815e22016-08-11T22:21:39Z2016-08-11T22:21:40ZfakesbnamespacePT1M1024falsefalseP10675199DT2H48M5.4775807SfalsePT10M10true002016-08-11T22:21:39.9732016-08-11T22:21:40.093'} - headers: - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - Date: ['Thu, 11 Aug 2016 22:21:39 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000] - Transfer-Encoding: [chunked] - status: {code: 201, message: Created} -- request: - body: null - headers: - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.2] - method: POST - uri: https://fakesbnamespace.servicebus.windows.net/utqueue51c815e2/$DeadLetterQueue/messages/head?timeout=2 - response: - body: {string: ''} - headers: - Content-Length: ['0'] - Content-Type: [application/xml; charset=utf-8] - Date: ['Thu, 11 Aug 2016 22:21:41 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000] - status: {code: 204, message: No Content} -version: 1 diff --git a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_get_dead_letter_subscription.yaml b/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_get_dead_letter_subscription.yaml deleted file mode 100644 index 36e9cee32f85..000000000000 --- a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_get_dead_letter_subscription.yaml +++ /dev/null @@ -1,73 +0,0 @@ -interactions: -- request: - body: 2016-08-11T22:21:31.014399+00:00 - headers: - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['555'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.2] - method: PUT - uri: https://fakesbnamespace.servicebus.windows.net/uttopicf6e918e2 - response: - body: {string: 'https://fakesbnamespace.servicebus.windows.net/uttopicf6e918e2uttopicf6e918e22016-08-11T22:21:32Z2016-08-11T22:21:32ZfakesbnamespaceP10675199DT2H48M5.4775807S1024falsePT10Mtrue02016-08-11T22:21:32.5272016-08-11T22:21:32.623'} - headers: - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - Date: ['Thu, 11 Aug 2016 22:21:31 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000] - Transfer-Encoding: [chunked] - status: {code: 201, message: Created} -- request: - body: 2016-08-11T22:21:32.396104+00:00 - headers: - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['569'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.2] - method: PUT - uri: https://fakesbnamespace.servicebus.windows.net/uttopicf6e918e2/subscriptions/MySubscription - response: - body: {string: 'https://fakesbnamespace.servicebus.windows.net/uttopicf6e918e2/subscriptions/MySubscriptionMySubscription2016-08-11T22:21:32Z2016-08-11T22:21:32ZPT1MfalseP10675199DT2H48M5.4775807Sfalsetrue010true'} - headers: - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - Date: ['Thu, 11 Aug 2016 22:21:32 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000] - Transfer-Encoding: [chunked] - status: {code: 201, message: Created} -- request: - body: null - headers: - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.2] - method: POST - uri: https://fakesbnamespace.servicebus.windows.net/uttopicf6e918e2/subscriptions/MySubscription/$DeadLetterQueue/messages/head?timeout=2 - response: - body: {string: ''} - headers: - Content-Length: ['0'] - Content-Type: [application/xml; charset=utf-8] - Date: ['Thu, 11 Aug 2016 22:21:34 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000] - status: {code: 204, message: No Content} -version: 1 diff --git a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_get_queue_with_existing_queue.yaml b/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_get_queue_with_existing_queue.yaml deleted file mode 100644 index b5f5f0ae75c7..000000000000 --- a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_get_queue_with_existing_queue.yaml +++ /dev/null @@ -1,56 +0,0 @@ -interactions: -- request: - body: !!binary | - PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiIHN0YW5kYWxvbmU9InllcyI/Pjxl - bnRyeSB4bWxuczpkPSJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL2Fkby8yMDA3LzA4L2Rh - dGFzZXJ2aWNlcyIgeG1sbnM6bT0iaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9hZG8vMjAw - Ny8wOC9kYXRhc2VydmljZXMvbWV0YWRhdGEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDA1 - L0F0b20iPjx0aXRsZT48L3RpdGxlPjx1cGRhdGVkPjIwMTUtMDYtMzBUMjA6NTE6MDkuOTE2MTYx - KzAwOjAwPC91cGRhdGVkPjxhdXRob3I+PG5hbWU+PC9uYW1lPjwvYXV0aG9yPjxpZD48L2lkPjxj - b250ZW50IHR5cGU9ImFwcGxpY2F0aW9uL3htbCI+PFF1ZXVlRGVzY3JpcHRpb24geG1sbnM6aT0i - aHR0cDovL3d3dy53My5vcmcvMjAwMS9YTUxTY2hlbWEtaW5zdGFuY2UiIHhtbG5zPSJodHRwOi8v - c2NoZW1hcy5taWNyb3NvZnQuY29tL25ldHNlcnZpY2VzLzIwMTAvMTAvc2VydmljZWJ1cy9jb25u - ZWN0Ij48L1F1ZXVlRGVzY3JpcHRpb24+PC9jb250ZW50PjwvZW50cnk+ - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['555'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: PUT - uri: https://fakesbnamespace.servicebus.windows.net/utqueue1470196f - response: - body: {string: 'https://fakesbnamespace.servicebus.windows.net/utqueue1470196futqueue1470196f2015-06-30T20:51:12Z2015-06-30T20:51:12ZfakesbnamespacePT1M1024falsefalseP10675199DT2H48M5.4775807SfalsePT10M10true002015-06-30T20:51:12.1372015-06-30T20:51:12.32'} - headers: - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:51:11 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 201, message: Created} -- request: - body: null - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [pyazure/0.20.0] - method: GET - uri: https://fakesbnamespace.servicebus.windows.net/utqueue1470196f - response: - body: {string: 'https://fakesbnamespace.servicebus.windows.net/utqueue1470196futqueue1470196f2015-06-30T20:51:12Z2015-06-30T20:51:12ZfakesbnamespacePT1M1024falsefalseP10675199DT2H48M5.4775807SfalsePT10M10true00'} - headers: - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:51:11 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 200, message: OK} -version: 1 diff --git a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_get_queue_with_non_existing_queue.yaml b/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_get_queue_with_non_existing_queue.yaml deleted file mode 100644 index cb730da3da91..000000000000 --- a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_get_queue_with_non_existing_queue.yaml +++ /dev/null @@ -1,22 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [pyazure/0.20.0] - method: GET - uri: https://fakesbnamespace.servicebus.windows.net/utqueue7dfc1b19 - response: - body: {string: 'Publicly - Listed ServicesThis is the list of publicly-listed - services currently available.uuid:55f0ff16-4e23-4c96-b818-28d873ad9124;id=1502015-06-30T20:53:19ZService - Bus 1.1'} - headers: - Content-Type: [application/atom+xml;type=feed;charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:53:19 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 200, message: OK} -version: 1 diff --git a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_get_rule_with_existing_rule.yaml b/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_get_rule_with_existing_rule.yaml deleted file mode 100644 index fa2ab497cbd5..000000000000 --- a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_get_rule_with_existing_rule.yaml +++ /dev/null @@ -1,90 +0,0 @@ -interactions: -- request: - body: !!binary | - PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiIHN0YW5kYWxvbmU9InllcyI/Pjxl - bnRyeSB4bWxuczpkPSJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL2Fkby8yMDA3LzA4L2Rh - dGFzZXJ2aWNlcyIgeG1sbnM6bT0iaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9hZG8vMjAw - Ny8wOC9kYXRhc2VydmljZXMvbWV0YWRhdGEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDA1 - L0F0b20iPjx0aXRsZT48L3RpdGxlPjx1cGRhdGVkPjIwMTUtMDYtMzBUMjA6NTM6NTAuNTA0Njkx - KzAwOjAwPC91cGRhdGVkPjxhdXRob3I+PG5hbWU+PC9uYW1lPjwvYXV0aG9yPjxpZD48L2lkPjxj - b250ZW50IHR5cGU9ImFwcGxpY2F0aW9uL3htbCI+PFRvcGljRGVzY3JpcHRpb24geG1sbnM6aT0i - aHR0cDovL3d3dy53My5vcmcvMjAwMS9YTUxTY2hlbWEtaW5zdGFuY2UiIHhtbG5zPSJodHRwOi8v - c2NoZW1hcy5taWNyb3NvZnQuY29tL25ldHNlcnZpY2VzLzIwMTAvMTAvc2VydmljZWJ1cy9jb25u - ZWN0Ij48L1RvcGljRGVzY3JpcHRpb24+PC9jb250ZW50PjwvZW50cnk+ - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['555'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: PUT - uri: https://fakesbnamespace.servicebus.windows.net/uttopice1d91895 - response: - body: {string: 'https://fakesbnamespace.servicebus.windows.net/uttopice1d91895uttopice1d918952015-06-30T20:53:56Z2015-06-30T20:53:56ZfakesbnamespaceP10675199DT2H48M5.4775807S1024falsePT10Mtrue02015-06-30T20:53:56.1332015-06-30T20:53:56.33'} - headers: - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:53:55 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 201, message: Created} -- request: - body: !!binary | - PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiIHN0YW5kYWxvbmU9InllcyI/Pjxl - bnRyeSB4bWxuczpkPSJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL2Fkby8yMDA3LzA4L2Rh - dGFzZXJ2aWNlcyIgeG1sbnM6bT0iaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9hZG8vMjAw - Ny8wOC9kYXRhc2VydmljZXMvbWV0YWRhdGEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDA1 - L0F0b20iPjx0aXRsZT48L3RpdGxlPjx1cGRhdGVkPjIwMTUtMDYtMzBUMjA6NTM6NTUuNDA4MDE1 - KzAwOjAwPC91cGRhdGVkPjxhdXRob3I+PG5hbWU+PC9uYW1lPjwvYXV0aG9yPjxpZD48L2lkPjxj - b250ZW50IHR5cGU9ImFwcGxpY2F0aW9uL3htbCI+PFN1YnNjcmlwdGlvbkRlc2NyaXB0aW9uIHht - bG5zOmk9Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvWE1MU2NoZW1hLWluc3RhbmNlIiB4bWxucz0i - aHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9uZXRzZXJ2aWNlcy8yMDEwLzEwL3NlcnZpY2Vi - dXMvY29ubmVjdCI+PC9TdWJzY3JpcHRpb25EZXNjcmlwdGlvbj48L2NvbnRlbnQ+PC9lbnRyeT4= - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['569'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: PUT - uri: https://fakesbnamespace.servicebus.windows.net/uttopice1d91895/subscriptions/MySubscription - response: - body: {string: 'https://fakesbnamespace.servicebus.windows.net/uttopice1d91895/subscriptions/MySubscriptionMySubscription2015-06-30T20:53:56Z2015-06-30T20:53:56ZPT1MfalseP10675199DT2H48M5.4775807Sfalsetrue010true'} - headers: - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:53:55 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 201, message: Created} -- request: - body: null - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [pyazure/0.20.0] - method: GET - uri: https://fakesbnamespace.servicebus.windows.net/uttopice1d91895/subscriptions/MySubscription/rules/$Default - response: - body: {string: 'sb://fakesbnamespace.servicebus.windows.net/uttopice1d91895/subscriptions/MySubscription/rules/$Default$Default2015-06-30T20:53:56Z2015-06-30T20:53:56Z1=120'} - headers: - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:53:56 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 200, message: OK} -version: 1 diff --git a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_get_rule_with_existing_rule_with_options.yaml b/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_get_rule_with_existing_rule_with_options.yaml deleted file mode 100644 index f3b378ccbc38..000000000000 --- a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_get_rule_with_existing_rule_with_options.yaml +++ /dev/null @@ -1,131 +0,0 @@ -interactions: -- request: - body: !!binary | - PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiIHN0YW5kYWxvbmU9InllcyI/Pjxl - bnRyeSB4bWxuczpkPSJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL2Fkby8yMDA3LzA4L2Rh - dGFzZXJ2aWNlcyIgeG1sbnM6bT0iaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9hZG8vMjAw - Ny8wOC9kYXRhc2VydmljZXMvbWV0YWRhdGEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDA1 - L0F0b20iPjx0aXRsZT48L3RpdGxlPjx1cGRhdGVkPjIwMTUtMDYtMzBUMjA6NTQ6NDIuMTI5MTEw - KzAwOjAwPC91cGRhdGVkPjxhdXRob3I+PG5hbWU+PC9uYW1lPjwvYXV0aG9yPjxpZD48L2lkPjxj - b250ZW50IHR5cGU9ImFwcGxpY2F0aW9uL3htbCI+PFRvcGljRGVzY3JpcHRpb24geG1sbnM6aT0i - aHR0cDovL3d3dy53My5vcmcvMjAwMS9YTUxTY2hlbWEtaW5zdGFuY2UiIHhtbG5zPSJodHRwOi8v - c2NoZW1hcy5taWNyb3NvZnQuY29tL25ldHNlcnZpY2VzLzIwMTAvMTAvc2VydmljZWJ1cy9jb25u - ZWN0Ij48L1RvcGljRGVzY3JpcHRpb24+PC9jb250ZW50PjwvZW50cnk+ - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['555'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: PUT - uri: https://fakesbnamespace.servicebus.windows.net/uttopic47c71e1b - response: - body: {string: 'https://fakesbnamespace.servicebus.windows.net/uttopic47c71e1buttopic47c71e1b2015-06-30T20:54:44Z2015-06-30T20:54:44ZfakesbnamespaceP10675199DT2H48M5.4775807S1024falsePT10Mtrue02015-06-30T20:54:44.1832015-06-30T20:54:44.327'} - headers: - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:54:43 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 201, message: Created} -- request: - body: !!binary | - PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiIHN0YW5kYWxvbmU9InllcyI/Pjxl - bnRyeSB4bWxuczpkPSJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL2Fkby8yMDA3LzA4L2Rh - dGFzZXJ2aWNlcyIgeG1sbnM6bT0iaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9hZG8vMjAw - Ny8wOC9kYXRhc2VydmljZXMvbWV0YWRhdGEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDA1 - L0F0b20iPjx0aXRsZT48L3RpdGxlPjx1cGRhdGVkPjIwMTUtMDYtMzBUMjA6NTQ6NDMuNDU4MjA0 - KzAwOjAwPC91cGRhdGVkPjxhdXRob3I+PG5hbWU+PC9uYW1lPjwvYXV0aG9yPjxpZD48L2lkPjxj - b250ZW50IHR5cGU9ImFwcGxpY2F0aW9uL3htbCI+PFN1YnNjcmlwdGlvbkRlc2NyaXB0aW9uIHht - bG5zOmk9Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvWE1MU2NoZW1hLWluc3RhbmNlIiB4bWxucz0i - aHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9uZXRzZXJ2aWNlcy8yMDEwLzEwL3NlcnZpY2Vi - dXMvY29ubmVjdCI+PC9TdWJzY3JpcHRpb25EZXNjcmlwdGlvbj48L2NvbnRlbnQ+PC9lbnRyeT4= - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['569'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: PUT - uri: https://fakesbnamespace.servicebus.windows.net/uttopic47c71e1b/subscriptions/MySubscription - response: - body: {string: 'https://fakesbnamespace.servicebus.windows.net/uttopic47c71e1b/subscriptions/MySubscriptionMySubscription2015-06-30T20:54:44Z2015-06-30T20:54:44ZPT1MfalseP10675199DT2H48M5.4775807Sfalsetrue010true'} - headers: - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:54:43 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 201, message: Created} -- request: - body: !!binary | - PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiIHN0YW5kYWxvbmU9InllcyI/Pjxl - bnRyeSB4bWxuczpkPSJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL2Fkby8yMDA3LzA4L2Rh - dGFzZXJ2aWNlcyIgeG1sbnM6bT0iaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9hZG8vMjAw - Ny8wOC9kYXRhc2VydmljZXMvbWV0YWRhdGEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDA1 - L0F0b20iPjx0aXRsZT48L3RpdGxlPjx1cGRhdGVkPjIwMTUtMDYtMzBUMjA6NTQ6NDMuOTUxODAx - KzAwOjAwPC91cGRhdGVkPjxhdXRob3I+PG5hbWU+PC9uYW1lPjwvYXV0aG9yPjxpZD48L2lkPjxj - b250ZW50IHR5cGU9ImFwcGxpY2F0aW9uL3htbCI+PFJ1bGVEZXNjcmlwdGlvbiB4bWxuczppPSJo - dHRwOi8vd3d3LnczLm9yZy8yMDAxL1hNTFNjaGVtYS1pbnN0YW5jZSIgeG1sbnM9Imh0dHA6Ly9z - Y2hlbWFzLm1pY3Jvc29mdC5jb20vbmV0c2VydmljZXMvMjAxMC8xMC9zZXJ2aWNlYnVzL2Nvbm5l - Y3QiPjxGaWx0ZXIgaTp0eXBlPSJTcWxGaWx0ZXIiPjxTcWxFeHByZXNzaW9uPm51bWJlciAmZ3Q7 - IDQwPC9TcWxFeHByZXNzaW9uPjxDb21wYXRpYmlsaXR5TGV2ZWw+MjA8L0NvbXBhdGliaWxpdHlM - ZXZlbD48L0ZpbHRlcj48QWN0aW9uIGk6dHlwZT0iU3FsUnVsZUFjdGlvbiI+PFNxbEV4cHJlc3Np - b24+U0VUIG51bWJlciA9IDU8L1NxbEV4cHJlc3Npb24+PENvbXBhdGliaWxpdHlMZXZlbD4yMDwv - Q29tcGF0aWJpbGl0eUxldmVsPjwvQWN0aW9uPjwvUnVsZURlc2NyaXB0aW9uPjwvY29udGVudD48 - L2VudHJ5Pg== - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['805'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: PUT - uri: https://fakesbnamespace.servicebus.windows.net/uttopic47c71e1b/subscriptions/MySubscription/rules/MyRule1 - response: - body: {string: 'https://fakesbnamespace.servicebus.windows.net/uttopic47c71e1b/subscriptions/MySubscription/rules/MyRule1MyRule12015-06-30T20:54:44Z2015-06-30T20:54:44Znumber - > 4020SET number = 520'} - headers: - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:54:44 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 201, message: Created} -- request: - body: null - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [pyazure/0.20.0] - method: GET - uri: https://fakesbnamespace.servicebus.windows.net/uttopic47c71e1b/subscriptions/MySubscription/rules/MyRule1 - response: - body: {string: 'sb://fakesbnamespace.servicebus.windows.net/uttopic47c71e1b/subscriptions/MySubscription/rules/MyRule1MyRule12015-06-30T20:54:44Z2015-06-30T20:54:44Znumber - > 4020SET number = 520'} - headers: - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:54:44 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 200, message: OK} -version: 1 diff --git a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_get_rule_with_non_existing_rule.yaml b/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_get_rule_with_non_existing_rule.yaml deleted file mode 100644 index ea9ecd5e31f1..000000000000 --- a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_get_rule_with_non_existing_rule.yaml +++ /dev/null @@ -1,84 +0,0 @@ -interactions: -- request: - body: !!binary | - PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiIHN0YW5kYWxvbmU9InllcyI/Pjxl - bnRyeSB4bWxuczpkPSJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL2Fkby8yMDA3LzA4L2Rh - dGFzZXJ2aWNlcyIgeG1sbnM6bT0iaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9hZG8vMjAw - Ny8wOC9kYXRhc2VydmljZXMvbWV0YWRhdGEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDA1 - L0F0b20iPjx0aXRsZT48L3RpdGxlPjx1cGRhdGVkPjIwMTUtMDYtMzBUMjA6NTc6MzUuOTExMjY4 - KzAwOjAwPC91cGRhdGVkPjxhdXRob3I+PG5hbWU+PC9uYW1lPjwvYXV0aG9yPjxpZD48L2lkPjxj - b250ZW50IHR5cGU9ImFwcGxpY2F0aW9uL3htbCI+PFRvcGljRGVzY3JpcHRpb24geG1sbnM6aT0i - aHR0cDovL3d3dy53My5vcmcvMjAwMS9YTUxTY2hlbWEtaW5zdGFuY2UiIHhtbG5zPSJodHRwOi8v - c2NoZW1hcy5taWNyb3NvZnQuY29tL25ldHNlcnZpY2VzLzIwMTAvMTAvc2VydmljZWJ1cy9jb25u - ZWN0Ij48L1RvcGljRGVzY3JpcHRpb24+PC9jb250ZW50PjwvZW50cnk+ - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['555'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: PUT - uri: https://fakesbnamespace.servicebus.windows.net/uttopic48161a3f - response: - body: {string: 'https://fakesbnamespace.servicebus.windows.net/uttopic48161a3futtopic48161a3f2015-06-30T20:57:38Z2015-06-30T20:57:38ZfakesbnamespaceP10675199DT2H48M5.4775807S1024falsePT10Mtrue02015-06-30T20:57:38.2272015-06-30T20:57:38.31'} - headers: - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:57:37 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 201, message: Created} -- request: - body: !!binary | - PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiIHN0YW5kYWxvbmU9InllcyI/Pjxl - bnRyeSB4bWxuczpkPSJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL2Fkby8yMDA3LzA4L2Rh - dGFzZXJ2aWNlcyIgeG1sbnM6bT0iaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9hZG8vMjAw - Ny8wOC9kYXRhc2VydmljZXMvbWV0YWRhdGEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDA1 - L0F0b20iPjx0aXRsZT48L3RpdGxlPjx1cGRhdGVkPjIwMTUtMDYtMzBUMjA6NTc6MzcuMzgwMDYy - KzAwOjAwPC91cGRhdGVkPjxhdXRob3I+PG5hbWU+PC9uYW1lPjwvYXV0aG9yPjxpZD48L2lkPjxj - b250ZW50IHR5cGU9ImFwcGxpY2F0aW9uL3htbCI+PFN1YnNjcmlwdGlvbkRlc2NyaXB0aW9uIHht - bG5zOmk9Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvWE1MU2NoZW1hLWluc3RhbmNlIiB4bWxucz0i - aHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9uZXRzZXJ2aWNlcy8yMDEwLzEwL3NlcnZpY2Vi - dXMvY29ubmVjdCI+PC9TdWJzY3JpcHRpb25EZXNjcmlwdGlvbj48L2NvbnRlbnQ+PC9lbnRyeT4= - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['569'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: PUT - uri: https://fakesbnamespace.servicebus.windows.net/uttopic48161a3f/subscriptions/MySubscription - response: - body: {string: 'https://fakesbnamespace.servicebus.windows.net/uttopic48161a3f/subscriptions/MySubscriptionMySubscription2015-06-30T20:57:38Z2015-06-30T20:57:38ZPT1MfalseP10675199DT2H48M5.4775807Sfalsetrue010true'} - headers: - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:57:37 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 201, message: Created} -- request: - body: null - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [pyazure/0.20.0] - method: GET - uri: https://fakesbnamespace.servicebus.windows.net/uttopic48161a3f/subscriptions/MySubscription/rules/NonExistingRule - response: - body: {string: ''} - headers: - Content-Length: ['0'] - Date: ['Tue, 30 Jun 2015 20:57:39 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - status: {code: 404, message: '40400: Endpoint not found.'} -version: 1 diff --git a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_get_subscription_with_existing_subscription.yaml b/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_get_subscription_with_existing_subscription.yaml deleted file mode 100644 index 2e429ac0ecea..000000000000 --- a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_get_subscription_with_existing_subscription.yaml +++ /dev/null @@ -1,89 +0,0 @@ -interactions: -- request: - body: !!binary | - PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiIHN0YW5kYWxvbmU9InllcyI/Pjxl - bnRyeSB4bWxuczpkPSJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL2Fkby8yMDA3LzA4L2Rh - dGFzZXJ2aWNlcyIgeG1sbnM6bT0iaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9hZG8vMjAw - Ny8wOC9kYXRhc2VydmljZXMvbWV0YWRhdGEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDA1 - L0F0b20iPjx0aXRsZT48L3RpdGxlPjx1cGRhdGVkPjIwMTUtMDYtMzBUMjA6NTI6MTMuOTgxNjQw - KzAwOjAwPC91cGRhdGVkPjxhdXRob3I+PG5hbWU+PC9uYW1lPjwvYXV0aG9yPjxpZD48L2lkPjxj - b250ZW50IHR5cGU9ImFwcGxpY2F0aW9uL3htbCI+PFRvcGljRGVzY3JpcHRpb24geG1sbnM6aT0i - aHR0cDovL3d3dy53My5vcmcvMjAwMS9YTUxTY2hlbWEtaW5zdGFuY2UiIHhtbG5zPSJodHRwOi8v - c2NoZW1hcy5taWNyb3NvZnQuY29tL25ldHNlcnZpY2VzLzIwMTAvMTAvc2VydmljZWJ1cy9jb25u - ZWN0Ij48L1RvcGljRGVzY3JpcHRpb24+PC9jb250ZW50PjwvZW50cnk+ - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['555'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: PUT - uri: https://fakesbnamespace.servicebus.windows.net/uttopica6981f6f - response: - body: {string: 'https://fakesbnamespace.servicebus.windows.net/uttopica6981f6futtopica6981f6f2015-06-30T20:52:16Z2015-06-30T20:52:16ZfakesbnamespaceP10675199DT2H48M5.4775807S1024falsePT10Mtrue02015-06-30T20:52:16.1532015-06-30T20:52:16.343'} - headers: - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:52:15 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 201, message: Created} -- request: - body: !!binary | - PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiIHN0YW5kYWxvbmU9InllcyI/Pjxl - bnRyeSB4bWxuczpkPSJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL2Fkby8yMDA3LzA4L2Rh - dGFzZXJ2aWNlcyIgeG1sbnM6bT0iaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9hZG8vMjAw - Ny8wOC9kYXRhc2VydmljZXMvbWV0YWRhdGEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDA1 - L0F0b20iPjx0aXRsZT48L3RpdGxlPjx1cGRhdGVkPjIwMTUtMDYtMzBUMjA6NTI6MTUuNDA2MDQ3 - KzAwOjAwPC91cGRhdGVkPjxhdXRob3I+PG5hbWU+PC9uYW1lPjwvYXV0aG9yPjxpZD48L2lkPjxj - b250ZW50IHR5cGU9ImFwcGxpY2F0aW9uL3htbCI+PFN1YnNjcmlwdGlvbkRlc2NyaXB0aW9uIHht - bG5zOmk9Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvWE1MU2NoZW1hLWluc3RhbmNlIiB4bWxucz0i - aHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9uZXRzZXJ2aWNlcy8yMDEwLzEwL3NlcnZpY2Vi - dXMvY29ubmVjdCI+PC9TdWJzY3JpcHRpb25EZXNjcmlwdGlvbj48L2NvbnRlbnQ+PC9lbnRyeT4= - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['569'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: PUT - uri: https://fakesbnamespace.servicebus.windows.net/uttopica6981f6f/subscriptions/MySubscription3 - response: - body: {string: 'https://fakesbnamespace.servicebus.windows.net/uttopica6981f6f/subscriptions/MySubscription3MySubscription32015-06-30T20:52:16Z2015-06-30T20:52:16ZPT1MfalseP10675199DT2H48M5.4775807Sfalsetrue010true'} - headers: - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:52:16 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 201, message: Created} -- request: - body: null - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [pyazure/0.20.0] - method: GET - uri: https://fakesbnamespace.servicebus.windows.net/uttopica6981f6f/subscriptions/MySubscription3 - response: - body: {string: 'sb://fakesbnamespace.servicebus.windows.net/uttopica6981f6f/subscriptions/MySubscription3MySubscription32015-06-30T20:52:16Z2015-06-30T20:52:16ZPT1MfalseP10675199DT2H48M5.4775807Sfalsetrue010true'} - headers: - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:52:16 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 200, message: OK} -version: 1 diff --git a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_get_subscription_with_non_existing_subscription.yaml b/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_get_subscription_with_non_existing_subscription.yaml deleted file mode 100644 index 65ab265208e6..000000000000 --- a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_get_subscription_with_non_existing_subscription.yaml +++ /dev/null @@ -1,84 +0,0 @@ -interactions: -- request: - body: !!binary | - PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiIHN0YW5kYWxvbmU9InllcyI/Pjxl - bnRyeSB4bWxuczpkPSJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL2Fkby8yMDA3LzA4L2Rh - dGFzZXJ2aWNlcyIgeG1sbnM6bT0iaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9hZG8vMjAw - Ny8wOC9kYXRhc2VydmljZXMvbWV0YWRhdGEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDA1 - L0F0b20iPjx0aXRsZT48L3RpdGxlPjx1cGRhdGVkPjIwMTUtMDYtMzBUMjA6NTU6NTkuMDIyNjQ1 - KzAwOjAwPC91cGRhdGVkPjxhdXRob3I+PG5hbWU+PC9uYW1lPjwvYXV0aG9yPjxpZD48L2lkPjxj - b250ZW50IHR5cGU9ImFwcGxpY2F0aW9uL3htbCI+PFRvcGljRGVzY3JpcHRpb24geG1sbnM6aT0i - aHR0cDovL3d3dy53My5vcmcvMjAwMS9YTUxTY2hlbWEtaW5zdGFuY2UiIHhtbG5zPSJodHRwOi8v - c2NoZW1hcy5taWNyb3NvZnQuY29tL25ldHNlcnZpY2VzLzIwMTAvMTAvc2VydmljZWJ1cy9jb25u - ZWN0Ij48L1RvcGljRGVzY3JpcHRpb24+PC9jb250ZW50PjwvZW50cnk+ - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['555'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: PUT - uri: https://fakesbnamespace.servicebus.windows.net/uttopic27d92119 - response: - body: {string: 'https://fakesbnamespace.servicebus.windows.net/uttopic27d92119uttopic27d921192015-06-30T20:56:01Z2015-06-30T20:56:01ZfakesbnamespaceP10675199DT2H48M5.4775807S1024falsePT10Mtrue02015-06-30T20:56:01.412015-06-30T20:56:01.517'} - headers: - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:56:01 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 201, message: Created} -- request: - body: !!binary | - PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiIHN0YW5kYWxvbmU9InllcyI/Pjxl - bnRyeSB4bWxuczpkPSJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL2Fkby8yMDA3LzA4L2Rh - dGFzZXJ2aWNlcyIgeG1sbnM6bT0iaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9hZG8vMjAw - Ny8wOC9kYXRhc2VydmljZXMvbWV0YWRhdGEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDA1 - L0F0b20iPjx0aXRsZT48L3RpdGxlPjx1cGRhdGVkPjIwMTUtMDYtMzBUMjA6NTY6MDAuNjA2ODE4 - KzAwOjAwPC91cGRhdGVkPjxhdXRob3I+PG5hbWU+PC9uYW1lPjwvYXV0aG9yPjxpZD48L2lkPjxj - b250ZW50IHR5cGU9ImFwcGxpY2F0aW9uL3htbCI+PFN1YnNjcmlwdGlvbkRlc2NyaXB0aW9uIHht - bG5zOmk9Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvWE1MU2NoZW1hLWluc3RhbmNlIiB4bWxucz0i - aHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9uZXRzZXJ2aWNlcy8yMDEwLzEwL3NlcnZpY2Vi - dXMvY29ubmVjdCI+PC9TdWJzY3JpcHRpb25EZXNjcmlwdGlvbj48L2NvbnRlbnQ+PC9lbnRyeT4= - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['569'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: PUT - uri: https://fakesbnamespace.servicebus.windows.net/uttopic27d92119/subscriptions/MySubscription3 - response: - body: {string: 'https://fakesbnamespace.servicebus.windows.net/uttopic27d92119/subscriptions/MySubscription3MySubscription32015-06-30T20:56:01Z2015-06-30T20:56:01ZPT1MfalseP10675199DT2H48M5.4775807Sfalsetrue010true'} - headers: - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:56:02 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 201, message: Created} -- request: - body: null - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [pyazure/0.20.0] - method: GET - uri: https://fakesbnamespace.servicebus.windows.net/uttopic27d92119/subscriptions/MySubscription4 - response: - body: {string: ''} - headers: - Content-Length: ['0'] - Date: ['Tue, 30 Jun 2015 20:56:03 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - status: {code: 404, message: '40400: Endpoint not found.'} -version: 1 diff --git a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_get_topic_with_existing_topic.yaml b/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_get_topic_with_existing_topic.yaml deleted file mode 100644 index e3e98ce00439..000000000000 --- a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_get_topic_with_existing_topic.yaml +++ /dev/null @@ -1,56 +0,0 @@ -interactions: -- request: - body: !!binary | - PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiIHN0YW5kYWxvbmU9InllcyI/Pjxl - bnRyeSB4bWxuczpkPSJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL2Fkby8yMDA3LzA4L2Rh - dGFzZXJ2aWNlcyIgeG1sbnM6bT0iaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9hZG8vMjAw - Ny8wOC9kYXRhc2VydmljZXMvbWV0YWRhdGEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDA1 - L0F0b20iPjx0aXRsZT48L3RpdGxlPjx1cGRhdGVkPjIwMTUtMDYtMzBUMjA6NTQ6MTguOTk1NjEx - KzAwOjAwPC91cGRhdGVkPjxhdXRob3I+PG5hbWU+PC9uYW1lPjwvYXV0aG9yPjxpZD48L2lkPjxj - b250ZW50IHR5cGU9ImFwcGxpY2F0aW9uL3htbCI+PFRvcGljRGVzY3JpcHRpb24geG1sbnM6aT0i - aHR0cDovL3d3dy53My5vcmcvMjAwMS9YTUxTY2hlbWEtaW5zdGFuY2UiIHhtbG5zPSJodHRwOi8v - c2NoZW1hcy5taWNyb3NvZnQuY29tL25ldHNlcnZpY2VzLzIwMTAvMTAvc2VydmljZWJ1cy9jb25u - ZWN0Ij48L1RvcGljRGVzY3JpcHRpb24+PC9jb250ZW50PjwvZW50cnk+ - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['555'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: PUT - uri: https://fakesbnamespace.servicebus.windows.net/uttopic13f41963 - response: - body: {string: 'https://fakesbnamespace.servicebus.windows.net/uttopic13f41963uttopic13f419632015-06-30T20:54:21Z2015-06-30T20:54:21ZfakesbnamespaceP10675199DT2H48M5.4775807S1024falsePT10Mtrue02015-06-30T20:54:21.4132015-06-30T20:54:21.51'} - headers: - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:54:21 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 201, message: Created} -- request: - body: null - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [pyazure/0.20.0] - method: GET - uri: https://fakesbnamespace.servicebus.windows.net/uttopic13f41963 - response: - body: {string: 'https://fakesbnamespace.servicebus.windows.net/uttopic13f41963uttopic13f419632015-06-30T20:54:21Z2015-06-30T20:54:21ZfakesbnamespaceP10675199DT2H48M5.4775807S1024falsePT10Mtrue0'} - headers: - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:54:21 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 200, message: OK} -version: 1 diff --git a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_get_topic_with_non_existing_topic.yaml b/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_get_topic_with_non_existing_topic.yaml deleted file mode 100644 index 5005fe3c2cf7..000000000000 --- a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_get_topic_with_non_existing_topic.yaml +++ /dev/null @@ -1,22 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [pyazure/0.20.0] - method: GET - uri: https://fakesbnamespace.servicebus.windows.net/uttopic7d681b0d - response: - body: {string: 'Publicly - Listed ServicesThis is the list of publicly-listed - services currently available.uuid:5f9ba3ea-cd02-4477-82da-2ece37741e65;id=3372015-06-30T20:54:54ZService - Bus 1.1'} - headers: - Content-Type: [application/atom+xml;type=feed;charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:54:54 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 200, message: OK} -version: 1 diff --git a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_list_queues.yaml b/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_list_queues.yaml deleted file mode 100644 index fcf9d5735b7c..000000000000 --- a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_list_queues.yaml +++ /dev/null @@ -1,58 +0,0 @@ -interactions: -- request: - body: !!binary | - PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiIHN0YW5kYWxvbmU9InllcyI/Pjxl - bnRyeSB4bWxuczpkPSJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL2Fkby8yMDA3LzA4L2Rh - dGFzZXJ2aWNlcyIgeG1sbnM6bT0iaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9hZG8vMjAw - Ny8wOC9kYXRhc2VydmljZXMvbWV0YWRhdGEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDA1 - L0F0b20iPjx0aXRsZT48L3RpdGxlPjx1cGRhdGVkPjIwMTUtMDYtMzBUMjA6NTI6MDguNjU0MTgx - KzAwOjAwPC91cGRhdGVkPjxhdXRob3I+PG5hbWU+PC9uYW1lPjwvYXV0aG9yPjxpZD48L2lkPjxj - b250ZW50IHR5cGU9ImFwcGxpY2F0aW9uL3htbCI+PFF1ZXVlRGVzY3JpcHRpb24geG1sbnM6aT0i - aHR0cDovL3d3dy53My5vcmcvMjAwMS9YTUxTY2hlbWEtaW5zdGFuY2UiIHhtbG5zPSJodHRwOi8v - c2NoZW1hcy5taWNyb3NvZnQuY29tL25ldHNlcnZpY2VzLzIwMTAvMTAvc2VydmljZWJ1cy9jb25u - ZWN0Ij48L1F1ZXVlRGVzY3JpcHRpb24+PC9jb250ZW50PjwvZW50cnk+ - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['555'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: PUT - uri: https://fakesbnamespace.servicebus.windows.net/utqueue8bad11f5 - response: - body: {string: 'https://fakesbnamespace.servicebus.windows.net/utqueue8bad11f5utqueue8bad11f52015-06-30T20:52:11Z2015-06-30T20:52:11ZfakesbnamespacePT1M1024falsefalseP10675199DT2H48M5.4775807SfalsePT10M10true002015-06-30T20:52:11.332015-06-30T20:52:11.473'} - headers: - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:52:10 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 201, message: Created} -- request: - body: null - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [pyazure/0.20.0] - method: GET - uri: https://fakesbnamespace.servicebus.windows.net/$Resources/Queues - response: - body: {string: 'Queueshttps://fakesbnamespace.servicebus.windows.net/$Resources/Queues2015-06-30T20:52:11Zhttps://fakesbnamespace.servicebus.windows.net/utqueue8bad11f5utqueue8bad11f52015-06-30T20:52:11Z2015-06-30T20:52:11ZfakesbnamespacePT1M1024falsefalseP10675199DT2H48M5.4775807SfalsePT10M10true00'} - headers: - Content-Type: [application/atom+xml;type=feed;charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:52:10 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 200, message: OK} -version: 1 diff --git a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_list_queues_with_special_chars.yaml b/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_list_queues_with_special_chars.yaml deleted file mode 100644 index e5af90e7cc4c..000000000000 --- a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_list_queues_with_special_chars.yaml +++ /dev/null @@ -1,58 +0,0 @@ -interactions: -- request: - body: !!binary | - PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiIHN0YW5kYWxvbmU9InllcyI/Pjxl - bnRyeSB4bWxuczpkPSJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL2Fkby8yMDA3LzA4L2Rh - dGFzZXJ2aWNlcyIgeG1sbnM6bT0iaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9hZG8vMjAw - Ny8wOC9kYXRhc2VydmljZXMvbWV0YWRhdGEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDA1 - L0F0b20iPjx0aXRsZT48L3RpdGxlPjx1cGRhdGVkPjIwMTUtMDYtMzBUMjA6NTQ6MTQuMjQxOTk5 - KzAwOjAwPC91cGRhdGVkPjxhdXRob3I+PG5hbWU+PC9uYW1lPjwvYXV0aG9yPjxpZD48L2lkPjxj - b250ZW50IHR5cGU9ImFwcGxpY2F0aW9uL3htbCI+PFF1ZXVlRGVzY3JpcHRpb24geG1sbnM6aT0i - aHR0cDovL3d3dy53My5vcmcvMjAwMS9YTUxTY2hlbWEtaW5zdGFuY2UiIHhtbG5zPSJodHRwOi8v - c2NoZW1hcy5taWNyb3NvZnQuY29tL25ldHNlcnZpY2VzLzIwMTAvMTAvc2VydmljZWJ1cy9jb25u - ZWN0Ij48L1F1ZXVlRGVzY3JpcHRpb24+PC9jb250ZW50PjwvZW50cnk+ - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['555'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: PUT - uri: https://fakesbnamespace.servicebus.windows.net/utqueue2f2419c0txt/.-_123 - response: - body: {string: 'https://fakesbnamespace.servicebus.windows.net/utqueue2f2419c0txt/.-_123utqueue2f2419c0txt/.-_1232015-06-30T20:54:16Z2015-06-30T20:54:16ZfakesbnamespacePT1M1024falsefalseP10675199DT2H48M5.4775807SfalsePT10M10true002015-06-30T20:54:16.352015-06-30T20:54:16.537'} - headers: - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:54:16 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 201, message: Created} -- request: - body: null - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [pyazure/0.20.0] - method: GET - uri: https://fakesbnamespace.servicebus.windows.net/$Resources/Queues - response: - body: {string: 'Queueshttps://fakesbnamespace.servicebus.windows.net/$Resources/Queues2015-06-30T20:54:16Zhttps://fakesbnamespace.servicebus.windows.net/utqueue2f2419c0txt/.-_123utqueue2f2419c0txt/.-_1232015-06-30T20:54:16Z2015-06-30T20:54:16ZfakesbnamespacePT1M1024falsefalseP10675199DT2H48M5.4775807SfalsePT10M10true00'} - headers: - Content-Type: [application/atom+xml;type=feed;charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:54:16 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 200, message: OK} -version: 1 diff --git a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_list_rules.yaml b/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_list_rules.yaml deleted file mode 100644 index 27d49a1bb0dd..000000000000 --- a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_list_rules.yaml +++ /dev/null @@ -1,131 +0,0 @@ -interactions: -- request: - body: !!binary | - PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiIHN0YW5kYWxvbmU9InllcyI/Pjxl - bnRyeSB4bWxuczpkPSJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL2Fkby8yMDA3LzA4L2Rh - dGFzZXJ2aWNlcyIgeG1sbnM6bT0iaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9hZG8vMjAw - Ny8wOC9kYXRhc2VydmljZXMvbWV0YWRhdGEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDA1 - L0F0b20iPjx0aXRsZT48L3RpdGxlPjx1cGRhdGVkPjIwMTUtMDYtMzBUMjA6NTY6NDIuNDQ5NDU2 - KzAwOjAwPC91cGRhdGVkPjxhdXRob3I+PG5hbWU+PC9uYW1lPjwvYXV0aG9yPjxpZD48L2lkPjxj - b250ZW50IHR5cGU9ImFwcGxpY2F0aW9uL3htbCI+PFRvcGljRGVzY3JpcHRpb24geG1sbnM6aT0i - aHR0cDovL3d3dy53My5vcmcvMjAwMS9YTUxTY2hlbWEtaW5zdGFuY2UiIHhtbG5zPSJodHRwOi8v - c2NoZW1hcy5taWNyb3NvZnQuY29tL25ldHNlcnZpY2VzLzIwMTAvMTAvc2VydmljZWJ1cy9jb25u - ZWN0Ij48L1RvcGljRGVzY3JpcHRpb24+PC9jb250ZW50PjwvZW50cnk+ - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['555'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: PUT - uri: https://fakesbnamespace.servicebus.windows.net/uttopic79c01188 - response: - body: {string: 'https://fakesbnamespace.servicebus.windows.net/uttopic79c01188uttopic79c011882015-06-30T20:56:44Z2015-06-30T20:56:44ZfakesbnamespaceP10675199DT2H48M5.4775807S1024falsePT10Mtrue02015-06-30T20:56:44.6632015-06-30T20:56:44.753'} - headers: - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:56:44 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 201, message: Created} -- request: - body: !!binary | - PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiIHN0YW5kYWxvbmU9InllcyI/Pjxl - bnRyeSB4bWxuczpkPSJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL2Fkby8yMDA3LzA4L2Rh - dGFzZXJ2aWNlcyIgeG1sbnM6bT0iaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9hZG8vMjAw - Ny8wOC9kYXRhc2VydmljZXMvbWV0YWRhdGEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDA1 - L0F0b20iPjx0aXRsZT48L3RpdGxlPjx1cGRhdGVkPjIwMTUtMDYtMzBUMjA6NTY6NDMuODQwMTIw - KzAwOjAwPC91cGRhdGVkPjxhdXRob3I+PG5hbWU+PC9uYW1lPjwvYXV0aG9yPjxpZD48L2lkPjxj - b250ZW50IHR5cGU9ImFwcGxpY2F0aW9uL3htbCI+PFN1YnNjcmlwdGlvbkRlc2NyaXB0aW9uIHht - bG5zOmk9Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvWE1MU2NoZW1hLWluc3RhbmNlIiB4bWxucz0i - aHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9uZXRzZXJ2aWNlcy8yMDEwLzEwL3NlcnZpY2Vi - dXMvY29ubmVjdCI+PC9TdWJzY3JpcHRpb25EZXNjcmlwdGlvbj48L2NvbnRlbnQ+PC9lbnRyeT4= - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['569'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: PUT - uri: https://fakesbnamespace.servicebus.windows.net/uttopic79c01188/subscriptions/MySubscription - response: - body: {string: 'https://fakesbnamespace.servicebus.windows.net/uttopic79c01188/subscriptions/MySubscriptionMySubscription2015-06-30T20:56:45Z2015-06-30T20:56:45ZPT1MfalseP10675199DT2H48M5.4775807Sfalsetrue010true'} - headers: - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:56:45 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 201, message: Created} -- request: - body: !!binary | - PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiIHN0YW5kYWxvbmU9InllcyI/Pjxl - bnRyeSB4bWxuczpkPSJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL2Fkby8yMDA3LzA4L2Rh - dGFzZXJ2aWNlcyIgeG1sbnM6bT0iaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9hZG8vMjAw - Ny8wOC9kYXRhc2VydmljZXMvbWV0YWRhdGEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDA1 - L0F0b20iPjx0aXRsZT48L3RpdGxlPjx1cGRhdGVkPjIwMTUtMDYtMzBUMjA6NTY6NDQuODg3MDUx - KzAwOjAwPC91cGRhdGVkPjxhdXRob3I+PG5hbWU+PC9uYW1lPjwvYXV0aG9yPjxpZD48L2lkPjxj - b250ZW50IHR5cGU9ImFwcGxpY2F0aW9uL3htbCI+PFJ1bGVEZXNjcmlwdGlvbiB4bWxuczppPSJo - dHRwOi8vd3d3LnczLm9yZy8yMDAxL1hNTFNjaGVtYS1pbnN0YW5jZSIgeG1sbnM9Imh0dHA6Ly9z - Y2hlbWFzLm1pY3Jvc29mdC5jb20vbmV0c2VydmljZXMvMjAxMC8xMC9zZXJ2aWNlYnVzL2Nvbm5l - Y3QiPjwvUnVsZURlc2NyaXB0aW9uPjwvY29udGVudD48L2VudHJ5Pg== - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['553'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: PUT - uri: https://fakesbnamespace.servicebus.windows.net/uttopic79c01188/subscriptions/MySubscription/rules/MyRule2 - response: - body: {string: 'https://fakesbnamespace.servicebus.windows.net/uttopic79c01188/subscriptions/MySubscription/rules/MyRule2MyRule22015-06-30T20:56:46Z2015-06-30T20:56:46Z1=120'} - headers: - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:56:46 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 201, message: Created} -- request: - body: null - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [pyazure/0.20.0] - method: GET - uri: https://fakesbnamespace.servicebus.windows.net/uttopic79c01188/subscriptions/MySubscription/rules/ - response: - body: {string: 'Ruleshttps://fakesbnamespace.servicebus.windows.net/uttopic79c01188/subscriptions/MySubscription/rules/2015-06-30T20:56:47Zhttps://fakesbnamespace.servicebus.windows.net/uttopic79c01188/subscriptions/MySubscription/rules/$Default$Default2015-06-30T20:56:45Z2015-06-30T20:56:45Z1=120https://fakesbnamespace.servicebus.windows.net/uttopic79c01188/subscriptions/MySubscription/rules/MyRule2MyRule22015-06-30T20:56:46Z2015-06-30T20:56:46Z1=120'} - headers: - Content-Type: [application/atom+xml;type=feed;charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:56:46 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 200, message: OK} -version: 1 diff --git a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_list_subscriptions.yaml b/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_list_subscriptions.yaml deleted file mode 100644 index d6562ac7bd9a..000000000000 --- a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_list_subscriptions.yaml +++ /dev/null @@ -1,91 +0,0 @@ -interactions: -- request: - body: !!binary | - PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiIHN0YW5kYWxvbmU9InllcyI/Pjxl - bnRyeSB4bWxuczpkPSJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL2Fkby8yMDA3LzA4L2Rh - dGFzZXJ2aWNlcyIgeG1sbnM6bT0iaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9hZG8vMjAw - Ny8wOC9kYXRhc2VydmljZXMvbWV0YWRhdGEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDA1 - L0F0b20iPjx0aXRsZT48L3RpdGxlPjx1cGRhdGVkPjIwMTUtMDYtMzBUMjA6NTQ6MzIuNDEyNjQ5 - KzAwOjAwPC91cGRhdGVkPjxhdXRob3I+PG5hbWU+PC9uYW1lPjwvYXV0aG9yPjxpZD48L2lkPjxj - b250ZW50IHR5cGU9ImFwcGxpY2F0aW9uL3htbCI+PFRvcGljRGVzY3JpcHRpb24geG1sbnM6aT0i - aHR0cDovL3d3dy53My5vcmcvMjAwMS9YTUxTY2hlbWEtaW5zdGFuY2UiIHhtbG5zPSJodHRwOi8v - c2NoZW1hcy5taWNyb3NvZnQuY29tL25ldHNlcnZpY2VzLzIwMTAvMTAvc2VydmljZWJ1cy9jb25u - ZWN0Ij48L1RvcGljRGVzY3JpcHRpb24+PC9jb250ZW50PjwvZW50cnk+ - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['555'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: PUT - uri: https://fakesbnamespace.servicebus.windows.net/uttopic153d14f5 - response: - body: {string: 'https://fakesbnamespace.servicebus.windows.net/uttopic153d14f5uttopic153d14f52015-06-30T20:54:34Z2015-06-30T20:54:34ZfakesbnamespaceP10675199DT2H48M5.4775807S1024falsePT10Mtrue02015-06-30T20:54:34.7772015-06-30T20:54:34.867'} - headers: - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:54:34 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 201, message: Created} -- request: - body: !!binary | - PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiIHN0YW5kYWxvbmU9InllcyI/Pjxl - bnRyeSB4bWxuczpkPSJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL2Fkby8yMDA3LzA4L2Rh - dGFzZXJ2aWNlcyIgeG1sbnM6bT0iaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9hZG8vMjAw - Ny8wOC9kYXRhc2VydmljZXMvbWV0YWRhdGEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDA1 - L0F0b20iPjx0aXRsZT48L3RpdGxlPjx1cGRhdGVkPjIwMTUtMDYtMzBUMjA6NTQ6MzMuOTQxNjc1 - KzAwOjAwPC91cGRhdGVkPjxhdXRob3I+PG5hbWU+PC9uYW1lPjwvYXV0aG9yPjxpZD48L2lkPjxj - b250ZW50IHR5cGU9ImFwcGxpY2F0aW9uL3htbCI+PFN1YnNjcmlwdGlvbkRlc2NyaXB0aW9uIHht - bG5zOmk9Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvWE1MU2NoZW1hLWluc3RhbmNlIiB4bWxucz0i - aHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9uZXRzZXJ2aWNlcy8yMDEwLzEwL3NlcnZpY2Vi - dXMvY29ubmVjdCI+PC9TdWJzY3JpcHRpb25EZXNjcmlwdGlvbj48L2NvbnRlbnQ+PC9lbnRyeT4= - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['569'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: PUT - uri: https://fakesbnamespace.servicebus.windows.net/uttopic153d14f5/subscriptions/MySubscription2 - response: - body: {string: 'https://fakesbnamespace.servicebus.windows.net/uttopic153d14f5/subscriptions/MySubscription2MySubscription22015-06-30T20:54:34Z2015-06-30T20:54:34ZPT1MfalseP10675199DT2H48M5.4775807Sfalsetrue010true'} - headers: - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:54:34 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 201, message: Created} -- request: - body: null - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [pyazure/0.20.0] - method: GET - uri: https://fakesbnamespace.servicebus.windows.net/uttopic153d14f5/subscriptions/ - response: - body: {string: 'Subscriptionshttps://fakesbnamespace.servicebus.windows.net/uttopic153d14f5/subscriptions/2015-06-30T20:54:35Zhttps://fakesbnamespace.servicebus.windows.net/uttopic153d14f5/subscriptions/MySubscription2MySubscription22015-06-30T20:54:35Z2015-06-30T20:54:35ZPT1MfalseP10675199DT2H48M5.4775807Sfalsetrue010true'} - headers: - Content-Type: [application/atom+xml;type=feed;charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:54:34 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 200, message: OK} -version: 1 diff --git a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_list_topics.yaml b/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_list_topics.yaml deleted file mode 100644 index 6a737e8552df..000000000000 --- a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_list_topics.yaml +++ /dev/null @@ -1,58 +0,0 @@ -interactions: -- request: - body: !!binary | - PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiIHN0YW5kYWxvbmU9InllcyI/Pjxl - bnRyeSB4bWxuczpkPSJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL2Fkby8yMDA3LzA4L2Rh - dGFzZXJ2aWNlcyIgeG1sbnM6bT0iaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9hZG8vMjAw - Ny8wOC9kYXRhc2VydmljZXMvbWV0YWRhdGEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDA1 - L0F0b20iPjx0aXRsZT48L3RpdGxlPjx1cGRhdGVkPjIwMTUtMDYtMzBUMjA6NTU6MjYuMDI3Mjc0 - KzAwOjAwPC91cGRhdGVkPjxhdXRob3I+PG5hbWU+PC9uYW1lPjwvYXV0aG9yPjxpZD48L2lkPjxj - b250ZW50IHR5cGU9ImFwcGxpY2F0aW9uL3htbCI+PFRvcGljRGVzY3JpcHRpb24geG1sbnM6aT0i - aHR0cDovL3d3dy53My5vcmcvMjAwMS9YTUxTY2hlbWEtaW5zdGFuY2UiIHhtbG5zPSJodHRwOi8v - c2NoZW1hcy5taWNyb3NvZnQuY29tL25ldHNlcnZpY2VzLzIwMTAvMTAvc2VydmljZWJ1cy9jb25u - ZWN0Ij48L1RvcGljRGVzY3JpcHRpb24+PC9jb250ZW50PjwvZW50cnk+ - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['555'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: PUT - uri: https://fakesbnamespace.servicebus.windows.net/uttopic8ba511ef - response: - body: {string: 'https://fakesbnamespace.servicebus.windows.net/uttopic8ba511efuttopic8ba511ef2015-06-30T20:55:29Z2015-06-30T20:55:29ZfakesbnamespaceP10675199DT2H48M5.4775807S1024falsePT10Mtrue02015-06-30T20:55:29.232015-06-30T20:55:29.357'} - headers: - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:55:29 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 201, message: Created} -- request: - body: null - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [pyazure/0.20.0] - method: GET - uri: https://fakesbnamespace.servicebus.windows.net/$Resources/Topics - response: - body: {string: 'Topicshttps://fakesbnamespace.servicebus.windows.net/$Resources/Topics2015-06-30T20:55:30Zhttps://fakesbnamespace.servicebus.windows.net/uttopic8ba511efuttopic8ba511ef2015-06-30T20:55:29Z2015-06-30T20:55:29ZfakesbnamespaceP10675199DT2H48M5.4775807S1024falsePT10Mtrue0'} - headers: - Content-Type: [application/atom+xml;type=feed;charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:55:29 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 200, message: OK} -version: 1 diff --git a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_list_topics_with_special_chars.yaml b/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_list_topics_with_special_chars.yaml deleted file mode 100644 index 04adffd8eb91..000000000000 --- a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_list_topics_with_special_chars.yaml +++ /dev/null @@ -1,58 +0,0 @@ -interactions: -- request: - body: !!binary | - PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiIHN0YW5kYWxvbmU9InllcyI/Pjxl - bnRyeSB4bWxuczpkPSJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL2Fkby8yMDA3LzA4L2Rh - dGFzZXJ2aWNlcyIgeG1sbnM6bT0iaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9hZG8vMjAw - Ny8wOC9kYXRhc2VydmljZXMvbWV0YWRhdGEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDA1 - L0F0b20iPjx0aXRsZT48L3RpdGxlPjx1cGRhdGVkPjIwMTUtMDYtMzBUMjA6NTU6MTAuNTQ5ODE3 - KzAwOjAwPC91cGRhdGVkPjxhdXRob3I+PG5hbWU+PC9uYW1lPjwvYXV0aG9yPjxpZD48L2lkPjxj - b250ZW50IHR5cGU9ImFwcGxpY2F0aW9uL3htbCI+PFRvcGljRGVzY3JpcHRpb24geG1sbnM6aT0i - aHR0cDovL3d3dy53My5vcmcvMjAwMS9YTUxTY2hlbWEtaW5zdGFuY2UiIHhtbG5zPSJodHRwOi8v - c2NoZW1hcy5taWNyb3NvZnQuY29tL25ldHNlcnZpY2VzLzIwMTAvMTAvc2VydmljZWJ1cy9jb25u - ZWN0Ij48L1RvcGljRGVzY3JpcHRpb24+PC9jb250ZW50PjwvZW50cnk+ - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['555'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: PUT - uri: https://fakesbnamespace.servicebus.windows.net/uttopic2eaa19batxt/.-_123 - response: - body: {string: 'https://fakesbnamespace.servicebus.windows.net/uttopic2eaa19batxt/.-_123uttopic2eaa19batxt/.-_1232015-06-30T20:55:13Z2015-06-30T20:55:13ZfakesbnamespaceP10675199DT2H48M5.4775807S1024falsePT10Mtrue02015-06-30T20:55:13.0132015-06-30T20:55:13.09'} - headers: - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:55:12 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 201, message: Created} -- request: - body: null - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [pyazure/0.20.0] - method: GET - uri: https://fakesbnamespace.servicebus.windows.net/$Resources/Topics - response: - body: {string: 'Topicshttps://fakesbnamespace.servicebus.windows.net/$Resources/Topics2015-06-30T20:55:13Zhttps://fakesbnamespace.servicebus.windows.net/uttopic2eaa19batxt/.-_123uttopic2eaa19batxt/.-_1232015-06-30T20:55:13Z2015-06-30T20:55:13ZfakesbnamespaceP10675199DT2H48M5.4775807S1024falsePT10Mtrue0'} - headers: - Content-Type: [application/atom+xml;type=feed;charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:55:13 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 200, message: OK} -version: 1 diff --git a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_receive_queue_message_delete.yaml b/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_receive_queue_message_delete.yaml deleted file mode 100644 index c7b661207a1b..000000000000 --- a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_receive_queue_message_delete.yaml +++ /dev/null @@ -1,97 +0,0 @@ -interactions: -- request: - body: !!binary | - PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiIHN0YW5kYWxvbmU9InllcyI/Pjxl - bnRyeSB4bWxuczpkPSJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL2Fkby8yMDA3LzA4L2Rh - dGFzZXJ2aWNlcyIgeG1sbnM6bT0iaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9hZG8vMjAw - Ny8wOC9kYXRhc2VydmljZXMvbWV0YWRhdGEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDA1 - L0F0b20iPjx0aXRsZT48L3RpdGxlPjx1cGRhdGVkPjIwMTUtMDYtMzBUMjA6NTU6NTEuNjQxNDg0 - KzAwOjAwPC91cGRhdGVkPjxhdXRob3I+PG5hbWU+PC9uYW1lPjwvYXV0aG9yPjxpZD48L2lkPjxj - b250ZW50IHR5cGU9ImFwcGxpY2F0aW9uL3htbCI+PFF1ZXVlRGVzY3JpcHRpb24geG1sbnM6aT0i - aHR0cDovL3d3dy53My5vcmcvMjAwMS9YTUxTY2hlbWEtaW5zdGFuY2UiIHhtbG5zPSJodHRwOi8v - c2NoZW1hcy5taWNyb3NvZnQuY29tL25ldHNlcnZpY2VzLzIwMTAvMTAvc2VydmljZWJ1cy9jb25u - ZWN0Ij48L1F1ZXVlRGVzY3JpcHRpb24+PC9jb250ZW50PjwvZW50cnk+ - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['555'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: PUT - uri: https://fakesbnamespace.servicebus.windows.net/utqueuef84818bf - response: - body: {string: 'https://fakesbnamespace.servicebus.windows.net/utqueuef84818bfutqueuef84818bf2015-06-30T20:55:53Z2015-06-30T20:55:54ZfakesbnamespacePT1M1024falsefalseP10675199DT2H48M5.4775807SfalsePT10M10true002015-06-30T20:55:53.9672015-06-30T20:55:54.09'} - headers: - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:55:53 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 201, message: Created} -- request: - body: !!binary | - cGVlayBsb2NrIG1lc3NhZ2UgZGVsZXRl - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['24'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: POST - uri: https://fakesbnamespace.servicebus.windows.net/utqueuef84818bf/messages - response: - body: {string: ''} - headers: - Content-Type: [application/xml; charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:55:54 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 201, message: Created} -- request: - body: null - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: POST - uri: https://fakesbnamespace.servicebus.windows.net/utqueuef84818bf/messages/head?timeout=60 - response: - body: {string: peek lock message delete} - headers: - BrokerProperties: ['{"DeliveryCount":1,"EnqueuedSequenceNumber":0,"EnqueuedTimeUtc":"Tue, - 30 Jun 2015 20:55:54 GMT","LockToken":"d3c2a4ca-bebb-4ece-a213-5c6d1f048b07","LockedUntilUtc":"Tue, - 30 Jun 2015 20:56:54 GMT","MessageId":"f4349061550e4306814e6ebbface4155","SequenceNumber":1,"State":"Active","TimeToLive":922337203685.47754}'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:55:54 GMT'] - Location: ['https://fakesbnamespace.servicebus.windows.net/utqueuef84818bf/messages/1/d3c2a4ca-bebb-4ece-a213-5c6d1f048b07'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 201, message: Created} -- request: - body: null - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: DELETE - uri: https://fakesbnamespace.servicebus.windows.net/utqueuef84818bf/messages/1/d3c2a4ca-bebb-4ece-a213-5c6d1f048b07 - response: - body: {string: ''} - headers: - Content-Type: [application/xml; charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:55:54 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 200, message: OK} -version: 1 diff --git a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_receive_queue_message_delete_with_slash.yaml b/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_receive_queue_message_delete_with_slash.yaml deleted file mode 100644 index eeebd0f14c90..000000000000 --- a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_receive_queue_message_delete_with_slash.yaml +++ /dev/null @@ -1,97 +0,0 @@ -interactions: -- request: - body: !!binary | - PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiIHN0YW5kYWxvbmU9InllcyI/Pjxl - bnRyeSB4bWxuczpkPSJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL2Fkby8yMDA3LzA4L2Rh - dGFzZXJ2aWNlcyIgeG1sbnM6bT0iaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9hZG8vMjAw - Ny8wOC9kYXRhc2VydmljZXMvbWV0YWRhdGEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDA1 - L0F0b20iPjx0aXRsZT48L3RpdGxlPjx1cGRhdGVkPjIwMTUtMDYtMzBUMjA6NTA6MzUuMjE2Mjg1 - KzAwOjAwPC91cGRhdGVkPjxhdXRob3I+PG5hbWU+PC9uYW1lPjwvYXV0aG9yPjxpZD48L2lkPjxj - b250ZW50IHR5cGU9ImFwcGxpY2F0aW9uL3htbCI+PFF1ZXVlRGVzY3JpcHRpb24geG1sbnM6aT0i - aHR0cDovL3d3dy53My5vcmcvMjAwMS9YTUxTY2hlbWEtaW5zdGFuY2UiIHhtbG5zPSJodHRwOi8v - c2NoZW1hcy5taWNyb3NvZnQuY29tL25ldHNlcnZpY2VzLzIwMTAvMTAvc2VydmljZWJ1cy9jb25u - ZWN0Ij48L1F1ZXVlRGVzY3JpcHRpb24+PC9jb250ZW50PjwvZW50cnk+ - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['555'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: PUT - uri: https://fakesbnamespace.servicebus.windows.net/ut/queue24191d54 - response: - body: {string: 'https://fakesbnamespace.servicebus.windows.net/ut/queue24191d54ut/queue24191d542015-06-30T20:50:37Z2015-06-30T20:50:37ZfakesbnamespacePT1M1024falsefalseP10675199DT2H48M5.4775807SfalsePT10M10true002015-06-30T20:50:37.5832015-06-30T20:50:37.667'} - headers: - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:50:36 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 201, message: Created} -- request: - body: !!binary | - cGVlayBsb2NrIG1lc3NhZ2UgZGVsZXRl - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['24'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: POST - uri: https://fakesbnamespace.servicebus.windows.net/ut/queue24191d54/messages - response: - body: {string: ''} - headers: - Content-Type: [application/xml; charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:50:37 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 201, message: Created} -- request: - body: null - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: POST - uri: https://fakesbnamespace.servicebus.windows.net/ut/queue24191d54/messages/head?timeout=60 - response: - body: {string: peek lock message delete} - headers: - BrokerProperties: ['{"DeliveryCount":1,"EnqueuedSequenceNumber":0,"EnqueuedTimeUtc":"Tue, - 30 Jun 2015 20:50:37 GMT","LockToken":"6da98c43-e1c8-40bb-ae8d-05818e07fcd7","LockedUntilUtc":"Tue, - 30 Jun 2015 20:51:37 GMT","MessageId":"70971395dc174688b207457ce095b460","SequenceNumber":1,"State":"Active","TimeToLive":922337203685.47754}'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:50:37 GMT'] - Location: ['https://fakesbnamespace.servicebus.windows.net/ut/queue24191d54/messages/1/6da98c43-e1c8-40bb-ae8d-05818e07fcd7'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 201, message: Created} -- request: - body: null - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: DELETE - uri: https://fakesbnamespace.servicebus.windows.net/ut/queue24191d54/messages/1/6da98c43-e1c8-40bb-ae8d-05818e07fcd7 - response: - body: {string: ''} - headers: - Content-Type: [application/xml; charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:50:37 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 200, message: OK} -version: 1 diff --git a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_receive_queue_message_peek_lock_mode.yaml b/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_receive_queue_message_peek_lock_mode.yaml deleted file mode 100644 index 425a1f230e66..000000000000 --- a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_receive_queue_message_peek_lock_mode.yaml +++ /dev/null @@ -1,78 +0,0 @@ -interactions: -- request: - body: !!binary | - PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiIHN0YW5kYWxvbmU9InllcyI/Pjxl - bnRyeSB4bWxuczpkPSJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL2Fkby8yMDA3LzA4L2Rh - dGFzZXJ2aWNlcyIgeG1sbnM6bT0iaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9hZG8vMjAw - Ny8wOC9kYXRhc2VydmljZXMvbWV0YWRhdGEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDA1 - L0F0b20iPjx0aXRsZT48L3RpdGxlPjx1cGRhdGVkPjIwMTUtMDYtMzBUMjA6NTY6MzcuOTkyNzI3 - KzAwOjAwPC91cGRhdGVkPjxhdXRob3I+PG5hbWU+PC9uYW1lPjwvYXV0aG9yPjxpZD48L2lkPjxj - b250ZW50IHR5cGU9ImFwcGxpY2F0aW9uL3htbCI+PFF1ZXVlRGVzY3JpcHRpb24geG1sbnM6aT0i - aHR0cDovL3d3dy53My5vcmcvMjAwMS9YTUxTY2hlbWEtaW5zdGFuY2UiIHhtbG5zPSJodHRwOi8v - c2NoZW1hcy5taWNyb3NvZnQuY29tL25ldHNlcnZpY2VzLzIwMTAvMTAvc2VydmljZWJ1cy9jb25u - ZWN0Ij48L1F1ZXVlRGVzY3JpcHRpb24+PC9jb250ZW50PjwvZW50cnk+ - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['555'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: PUT - uri: https://fakesbnamespace.servicebus.windows.net/utqueuecd0a1bfd - response: - body: {string: 'https://fakesbnamespace.servicebus.windows.net/utqueuecd0a1bfdutqueuecd0a1bfd2015-06-30T20:56:40Z2015-06-30T20:56:40ZfakesbnamespacePT1M1024falsefalseP10675199DT2H48M5.4775807SfalsePT10M10true002015-06-30T20:56:40.3372015-06-30T20:56:40.41'} - headers: - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:56:39 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 201, message: Created} -- request: - body: !!binary | - cGVlayBsb2NrIG1lc3NhZ2U= - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['17'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: POST - uri: https://fakesbnamespace.servicebus.windows.net/utqueuecd0a1bfd/messages - response: - body: {string: ''} - headers: - Content-Type: [application/xml; charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:56:40 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 201, message: Created} -- request: - body: null - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: POST - uri: https://fakesbnamespace.servicebus.windows.net/utqueuecd0a1bfd/messages/head?timeout=60 - response: - body: {string: peek lock message} - headers: - BrokerProperties: ['{"DeliveryCount":1,"EnqueuedSequenceNumber":0,"EnqueuedTimeUtc":"Tue, - 30 Jun 2015 20:56:40 GMT","LockToken":"5ae07ea8-5dcb-4db7-bffd-bf3fa8d6ffab","LockedUntilUtc":"Tue, - 30 Jun 2015 20:57:41 GMT","MessageId":"069209bda6e04e30a0fb8fe2135caea9","SequenceNumber":1,"State":"Active","TimeToLive":922337203685.47754}'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:56:40 GMT'] - Location: ['https://fakesbnamespace.servicebus.windows.net/utqueuecd0a1bfd/messages/1/5ae07ea8-5dcb-4db7-bffd-bf3fa8d6ffab'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 201, message: Created} -version: 1 diff --git a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_receive_queue_message_read_delete_mode.yaml b/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_receive_queue_message_read_delete_mode.yaml deleted file mode 100644 index ff361aef5762..000000000000 --- a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_receive_queue_message_read_delete_mode.yaml +++ /dev/null @@ -1,76 +0,0 @@ -interactions: -- request: - body: !!binary | - PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiIHN0YW5kYWxvbmU9InllcyI/Pjxl - bnRyeSB4bWxuczpkPSJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL2Fkby8yMDA3LzA4L2Rh - dGFzZXJ2aWNlcyIgeG1sbnM6bT0iaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9hZG8vMjAw - Ny8wOC9kYXRhc2VydmljZXMvbWV0YWRhdGEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDA1 - L0F0b20iPjx0aXRsZT48L3RpdGxlPjx1cGRhdGVkPjIwMTUtMDYtMzBUMjA6NTA6NDAuMDc0MTcy - KzAwOjAwPC91cGRhdGVkPjxhdXRob3I+PG5hbWU+PC9uYW1lPjwvYXV0aG9yPjxpZD48L2lkPjxj - b250ZW50IHR5cGU9ImFwcGxpY2F0aW9uL3htbCI+PFF1ZXVlRGVzY3JpcHRpb24geG1sbnM6aT0i - aHR0cDovL3d3dy53My5vcmcvMjAwMS9YTUxTY2hlbWEtaW5zdGFuY2UiIHhtbG5zPSJodHRwOi8v - c2NoZW1hcy5taWNyb3NvZnQuY29tL25ldHNlcnZpY2VzLzIwMTAvMTAvc2VydmljZWJ1cy9jb25u - ZWN0Ij48L1F1ZXVlRGVzY3JpcHRpb24+PC9jb250ZW50PjwvZW50cnk+ - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['555'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: PUT - uri: https://fakesbnamespace.servicebus.windows.net/utqueue5871cbe - response: - body: {string: 'https://fakesbnamespace.servicebus.windows.net/utqueue5871cbeutqueue5871cbe2015-06-30T20:50:42Z2015-06-30T20:50:42ZfakesbnamespacePT1M1024falsefalseP10675199DT2H48M5.4775807SfalsePT10M10true002015-06-30T20:50:42.2932015-06-30T20:50:42.457'} - headers: - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:50:42 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 201, message: Created} -- request: - body: !!binary | - cmVjZWl2ZSBtZXNzYWdl - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['15'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: POST - uri: https://fakesbnamespace.servicebus.windows.net/utqueue5871cbe/messages - response: - body: {string: ''} - headers: - Content-Type: [application/xml; charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:50:42 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 201, message: Created} -- request: - body: null - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: DELETE - uri: https://fakesbnamespace.servicebus.windows.net/utqueue5871cbe/messages/head?timeout=60 - response: - body: {string: receive message} - headers: - BrokerProperties: ['{"DeliveryCount":1,"EnqueuedSequenceNumber":0,"EnqueuedTimeUtc":"Tue, - 30 Jun 2015 20:50:42 GMT","MessageId":"70a1a8d5fb774df89142f9e217e63860","SequenceNumber":1,"State":"Active","TimeToLive":922337203685.47754}'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:50:42 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 200, message: OK} -version: 1 diff --git a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_receive_queue_message_read_delete_mode_throws_on_delete.yaml b/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_receive_queue_message_read_delete_mode_throws_on_delete.yaml deleted file mode 100644 index 9104afb43f68..000000000000 --- a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_receive_queue_message_read_delete_mode_throws_on_delete.yaml +++ /dev/null @@ -1,76 +0,0 @@ -interactions: -- request: - body: !!binary | - PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiIHN0YW5kYWxvbmU9InllcyI/Pjxl - bnRyeSB4bWxuczpkPSJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL2Fkby8yMDA3LzA4L2Rh - dGFzZXJ2aWNlcyIgeG1sbnM6bT0iaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9hZG8vMjAw - Ny8wOC9kYXRhc2VydmljZXMvbWV0YWRhdGEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDA1 - L0F0b20iPjx0aXRsZT48L3RpdGxlPjx1cGRhdGVkPjIwMTUtMDYtMzBUMjA6NTE6MDQuODg4Mzk0 - KzAwOjAwPC91cGRhdGVkPjxhdXRob3I+PG5hbWU+PC9uYW1lPjwvYXV0aG9yPjxpZD48L2lkPjxj - b250ZW50IHR5cGU9ImFwcGxpY2F0aW9uL3htbCI+PFF1ZXVlRGVzY3JpcHRpb24geG1sbnM6aT0i - aHR0cDovL3d3dy53My5vcmcvMjAwMS9YTUxTY2hlbWEtaW5zdGFuY2UiIHhtbG5zPSJodHRwOi8v - c2NoZW1hcy5taWNyb3NvZnQuY29tL25ldHNlcnZpY2VzLzIwMTAvMTAvc2VydmljZWJ1cy9jb25u - ZWN0Ij48L1F1ZXVlRGVzY3JpcHRpb24+PC9jb250ZW50PjwvZW50cnk+ - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['555'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: PUT - uri: https://fakesbnamespace.servicebus.windows.net/utqueue2e7123d2 - response: - body: {string: 'https://fakesbnamespace.servicebus.windows.net/utqueue2e7123d2utqueue2e7123d22015-06-30T20:51:07Z2015-06-30T20:51:07ZfakesbnamespacePT1M1024falsefalseP10675199DT2H48M5.4775807SfalsePT10M10true002015-06-30T20:51:07.7572015-06-30T20:51:07.9'} - headers: - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:51:07 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 201, message: Created} -- request: - body: !!binary | - cmVjZWl2ZSBtZXNzYWdl - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['15'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: POST - uri: https://fakesbnamespace.servicebus.windows.net/utqueue2e7123d2/messages - response: - body: {string: ''} - headers: - Content-Type: [application/xml; charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:51:08 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 201, message: Created} -- request: - body: null - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: DELETE - uri: https://fakesbnamespace.servicebus.windows.net/utqueue2e7123d2/messages/head?timeout=60 - response: - body: {string: receive message} - headers: - BrokerProperties: ['{"DeliveryCount":1,"EnqueuedSequenceNumber":0,"EnqueuedTimeUtc":"Tue, - 30 Jun 2015 20:51:08 GMT","MessageId":"d5710cf5064d47308f978b1df76e7fee","SequenceNumber":1,"State":"Active","TimeToLive":922337203685.47754}'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:51:08 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 200, message: OK} -version: 1 diff --git a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_receive_queue_message_read_delete_mode_throws_on_unlock.yaml b/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_receive_queue_message_read_delete_mode_throws_on_unlock.yaml deleted file mode 100644 index 6fb725396ede..000000000000 --- a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_receive_queue_message_read_delete_mode_throws_on_unlock.yaml +++ /dev/null @@ -1,68 +0,0 @@ -interactions: -- request: - body: 2016-08-11T23:42:06.853853+00:00 - headers: - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['555'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.2] - method: PUT - uri: https://fakesbnamespace.servicebus.windows.net/utqueue2f0623eb - response: - body: {string: 'https://fakesbnamespace.servicebus.windows.net/utqueue2f0623ebutqueue2f0623eb2016-08-11T23:42:08Z2016-08-11T23:42:08ZfakesbnamespacePT1M1024falsefalseP10675199DT2H48M5.4775807SfalsePT10M10true002016-08-11T23:42:08.3732016-08-11T23:42:08.413'} - headers: - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - Date: ['Thu, 11 Aug 2016 23:42:07 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000] - Transfer-Encoding: [chunked] - status: {code: 201, message: Created} -- request: - body: receive message - headers: - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['15'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.2] - method: POST - uri: https://fakesbnamespace.servicebus.windows.net/utqueue2f0623eb/messages - response: - body: {string: ''} - headers: - Content-Type: [application/xml; charset=utf-8] - Date: ['Thu, 11 Aug 2016 23:42:07 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000] - Transfer-Encoding: [chunked] - status: {code: 201, message: Created} -- request: - body: null - headers: - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.2] - method: DELETE - uri: https://fakesbnamespace.servicebus.windows.net/utqueue2f0623eb/messages/head?timeout=60 - response: - body: {string: receive message} - headers: - BrokerProperties: ['{"DeliveryCount":1,"EnqueuedSequenceNumber":0,"EnqueuedTimeUtc":"Thu, - 11 Aug 2016 23:42:07 GMT","MessageId":"caaf99e88cc44461ad07497fa5d597b6","SequenceNumber":1,"State":"Active","TimeToLive":922337203685.47754}'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - Date: ['Thu, 11 Aug 2016 23:42:08 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000] - Transfer-Encoding: [chunked] - status: {code: 200, message: OK} -version: 1 diff --git a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_receive_queue_message_unlock.yaml b/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_receive_queue_message_unlock.yaml deleted file mode 100644 index 15a75f9d9806..000000000000 --- a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_receive_queue_message_unlock.yaml +++ /dev/null @@ -1,150 +0,0 @@ -interactions: -- request: - body: 2016-08-11T23:42:14.145401+00:00 - headers: - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['555'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.2] - method: PUT - uri: https://fakesbnamespace.servicebus.windows.net/utqueuef8dd18d8 - response: - body: {string: 'https://fakesbnamespace.servicebus.windows.net/utqueuef8dd18d8utqueuef8dd18d82016-08-11T23:42:15Z2016-08-11T23:42:16ZfakesbnamespacePT1M1024falsefalseP10675199DT2H48M5.4775807SfalsePT10M10true002016-08-11T23:42:15.582016-08-11T23:42:16.17'} - headers: - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - Date: ['Thu, 11 Aug 2016 23:42:14 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000] - Transfer-Encoding: [chunked] - status: {code: 201, message: Created} -- request: - body: peek lock message unlock - headers: - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['24'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.2] - method: POST - uri: https://fakesbnamespace.servicebus.windows.net/utqueuef8dd18d8/messages - response: - body: {string: ''} - headers: - Content-Type: [application/xml; charset=utf-8] - Date: ['Thu, 11 Aug 2016 23:42:14 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000] - Transfer-Encoding: [chunked] - status: {code: 201, message: Created} -- request: - body: null - headers: - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.2] - method: POST - uri: https://fakesbnamespace.servicebus.windows.net/utqueuef8dd18d8/messages/head?timeout=60 - response: - body: {string: peek lock message unlock} - headers: - BrokerProperties: ['{"DeliveryCount":1,"EnqueuedSequenceNumber":0,"EnqueuedTimeUtc":"Thu, - 11 Aug 2016 23:42:15 GMT","LockToken":"41f822ef-0c89-4f17-96e9-1df6c1f1a81e","LockedUntilUtc":"Thu, - 11 Aug 2016 23:43:15 GMT","MessageId":"93dedba50a09441aa3ab1491f6c8a847","SequenceNumber":1,"State":"Active","TimeToLive":922337203685.47754}'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - Date: ['Thu, 11 Aug 2016 23:42:15 GMT'] - Location: ['https://fakesbnamespace.servicebus.windows.net/utqueuef8dd18d8/messages/1/41f822ef-0c89-4f17-96e9-1df6c1f1a81e'] - Server: [Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000] - Transfer-Encoding: [chunked] - status: {code: 201, message: Created} -- request: - body: null - headers: - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.2] - method: POST - uri: https://fakesbnamespace.servicebus.windows.net/utqueuef8dd18d8/messages/1/41f822ef-0c89-4f17-96e9-1df6c1f1a81e - response: - body: {string: ''} - headers: - Content-Type: [application/xml; charset=utf-8] - Date: ['Thu, 11 Aug 2016 23:42:15 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000] - Transfer-Encoding: [chunked] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.2] - method: PUT - uri: https://fakesbnamespace.servicebus.windows.net/utqueuef8dd18d8/messages/1/41f822ef-0c89-4f17-96e9-1df6c1f1a81e - response: - body: {string: ''} - headers: - Content-Type: [application/xml; charset=utf-8] - Date: ['Thu, 11 Aug 2016 23:42:15 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000] - Transfer-Encoding: [chunked] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.2] - method: POST - uri: https://fakesbnamespace.servicebus.windows.net/utqueuef8dd18d8/messages/head?timeout=60 - response: - body: {string: peek lock message unlock} - headers: - BrokerProperties: ['{"DeliveryCount":2,"EnqueuedSequenceNumber":0,"EnqueuedTimeUtc":"Thu, - 11 Aug 2016 23:42:15 GMT","LockToken":"5d053743-3928-4c52-84d5-eae0ec9144c4","LockedUntilUtc":"Thu, - 11 Aug 2016 23:43:16 GMT","MessageId":"93dedba50a09441aa3ab1491f6c8a847","SequenceNumber":1,"State":"Active","TimeToLive":922337203685.47754}'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - Date: ['Thu, 11 Aug 2016 23:42:15 GMT'] - Location: ['https://fakesbnamespace.servicebus.windows.net/utqueuef8dd18d8/messages/1/5d053743-3928-4c52-84d5-eae0ec9144c4'] - Server: [Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000] - Transfer-Encoding: [chunked] - status: {code: 201, message: Created} -- request: - body: null - headers: - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.2] - method: DELETE - uri: https://fakesbnamespace.servicebus.windows.net/utqueuef8dd18d8/messages/1/5d053743-3928-4c52-84d5-eae0ec9144c4 - response: - body: {string: ''} - headers: - Content-Type: [application/xml; charset=utf-8] - Date: ['Thu, 11 Aug 2016 23:42:16 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000] - Transfer-Encoding: [chunked] - status: {code: 200, message: OK} -version: 1 diff --git a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_receive_queue_message_with_broker_properties.yaml b/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_receive_queue_message_with_broker_properties.yaml deleted file mode 100644 index 83d7c1ea21ab..000000000000 --- a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_receive_queue_message_with_broker_properties.yaml +++ /dev/null @@ -1,77 +0,0 @@ -interactions: -- request: - body: !!binary | - PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiIHN0YW5kYWxvbmU9InllcyI/Pjxl - bnRyeSB4bWxuczpkPSJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL2Fkby8yMDA3LzA4L2Rh - dGFzZXJ2aWNlcyIgeG1sbnM6bT0iaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9hZG8vMjAw - Ny8wOC9kYXRhc2VydmljZXMvbWV0YWRhdGEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDA1 - L0F0b20iPjx0aXRsZT48L3RpdGxlPjx1cGRhdGVkPjIwMTUtMDYtMzBUMjA6NTI6NTkuNTQwMDk5 - KzAwOjAwPC91cGRhdGVkPjxhdXRob3I+PG5hbWU+PC9uYW1lPjwvYXV0aG9yPjxpZD48L2lkPjxj - b250ZW50IHR5cGU9ImFwcGxpY2F0aW9uL3htbCI+PFF1ZXVlRGVzY3JpcHRpb24geG1sbnM6aT0i - aHR0cDovL3d3dy53My5vcmcvMjAwMS9YTUxTY2hlbWEtaW5zdGFuY2UiIHhtbG5zPSJodHRwOi8v - c2NoZW1hcy5taWNyb3NvZnQuY29tL25ldHNlcnZpY2VzLzIwMTAvMTAvc2VydmljZWJ1cy9jb25u - ZWN0Ij48L1F1ZXVlRGVzY3JpcHRpb24+PC9jb250ZW50PjwvZW50cnk+ - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['555'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: PUT - uri: https://fakesbnamespace.servicebus.windows.net/utqueuebf4b1f98 - response: - body: {string: 'https://fakesbnamespace.servicebus.windows.net/utqueuebf4b1f98utqueuebf4b1f982015-06-30T20:53:02Z2015-06-30T20:53:02ZfakesbnamespacePT1M1024falsefalseP10675199DT2H48M5.4775807SfalsePT10M10true002015-06-30T20:53:02.0872015-06-30T20:53:02.277'} - headers: - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:53:02 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 201, message: Created} -- request: - body: !!binary | - cmVjZWl2ZSBtZXNzYWdl - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - BrokerProperties: ['{"ForcePersistence": false, "Label": "My label" }'] - Connection: [keep-alive] - Content-Length: ['15'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: POST - uri: https://fakesbnamespace.servicebus.windows.net/utqueuebf4b1f98/messages - response: - body: {string: ''} - headers: - Content-Type: [application/xml; charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:53:02 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 201, message: Created} -- request: - body: null - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: DELETE - uri: https://fakesbnamespace.servicebus.windows.net/utqueuebf4b1f98/messages/head?timeout=60 - response: - body: {string: receive message} - headers: - BrokerProperties: ['{"DeliveryCount":1,"EnqueuedSequenceNumber":0,"EnqueuedTimeUtc":"Tue, - 30 Jun 2015 20:53:02 GMT","ForcePersistence":false,"Label":"My label","MessageId":"4ef2ee9c7ea64e419669f012af79fa88","SequenceNumber":1,"State":"Active","TimeToLive":922337203685.47754}'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:53:02 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 200, message: OK} -version: 1 diff --git a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_receive_queue_message_with_broker_properties_as_a_dict.yaml b/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_receive_queue_message_with_broker_properties_as_a_dict.yaml deleted file mode 100644 index 344c95693893..000000000000 --- a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_receive_queue_message_with_broker_properties_as_a_dict.yaml +++ /dev/null @@ -1,69 +0,0 @@ -interactions: -- request: - body: 2017-01-11T22:51:03.232310+00:00 - headers: - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['555'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.3] - method: PUT - uri: https://fakesbnamespace.servicebus.windows.net/utqueue10cf238e - response: - body: {string: 'https://fakesbnamespace.servicebus.windows.net/utqueue10cf238eutqueue10cf238e2017-01-11T22:51:05Z2017-01-11T22:51:05ZfakesbnamespacePT1M1024falsefalseP10675199DT2H48M5.4775807SfalsePT10M10true002017-01-11T22:51:05.0832017-01-11T22:51:05.113'} - headers: - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - Date: ['Wed, 11 Jan 2017 22:51:03 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000] - Transfer-Encoding: [chunked] - status: {code: 201, message: Created} -- request: - body: receive message - headers: - Accept-Encoding: ['gzip, deflate'] - BrokerProperties: ['{"Label": "My label", "ForcePersistence": "false"}'] - Connection: [keep-alive] - Content-Length: ['15'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.3] - method: POST - uri: https://fakesbnamespace.servicebus.windows.net/utqueue10cf238e/messages - response: - body: {string: ''} - headers: - Content-Type: [application/xml; charset=utf-8] - Date: ['Wed, 11 Jan 2017 22:51:03 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000] - Transfer-Encoding: [chunked] - status: {code: 201, message: Created} -- request: - body: null - headers: - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.3] - method: DELETE - uri: https://fakesbnamespace.servicebus.windows.net/utqueue10cf238e/messages/head?timeout=60 - response: - body: {string: receive message} - headers: - BrokerProperties: ['{"DeliveryCount":1,"EnqueuedSequenceNumber":0,"EnqueuedTimeUtc":"Wed, - 11 Jan 2017 22:51:04 GMT","ForcePersistence":false,"Label":"My label","MessageId":"0619cba89eb848e9b0d8382fe70bdbf5","SequenceNumber":1,"State":"Active","TimeToLive":922337203685.47754}'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - Date: ['Wed, 11 Jan 2017 22:51:03 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000] - Transfer-Encoding: [chunked] - status: {code: 200, message: OK} -version: 1 diff --git a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_receive_subscription_message_delete.yaml b/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_receive_subscription_message_delete.yaml deleted file mode 100644 index 530bf608b1d0..000000000000 --- a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_receive_subscription_message_delete.yaml +++ /dev/null @@ -1,130 +0,0 @@ -interactions: -- request: - body: !!binary | - PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiIHN0YW5kYWxvbmU9InllcyI/Pjxl - bnRyeSB4bWxuczpkPSJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL2Fkby8yMDA3LzA4L2Rh - dGFzZXJ2aWNlcyIgeG1sbnM6bT0iaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9hZG8vMjAw - Ny8wOC9kYXRhc2VydmljZXMvbWV0YWRhdGEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDA1 - L0F0b20iPjx0aXRsZT48L3RpdGxlPjx1cGRhdGVkPjIwMTUtMDYtMzBUMjA6NTE6NTEuMzA0NTky - KzAwOjAwPC91cGRhdGVkPjxhdXRob3I+PG5hbWU+PC9uYW1lPjwvYXV0aG9yPjxpZD48L2lkPjxj - b250ZW50IHR5cGU9ImFwcGxpY2F0aW9uL3htbCI+PFRvcGljRGVzY3JpcHRpb24geG1sbnM6aT0i - aHR0cDovL3d3dy53My5vcmcvMjAwMS9YTUxTY2hlbWEtaW5zdGFuY2UiIHhtbG5zPSJodHRwOi8v - c2NoZW1hcy5taWNyb3NvZnQuY29tL25ldHNlcnZpY2VzLzIwMTAvMTAvc2VydmljZWJ1cy9jb25u - ZWN0Ij48L1RvcGljRGVzY3JpcHRpb24+PC9jb250ZW50PjwvZW50cnk+ - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['555'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: PUT - uri: https://fakesbnamespace.servicebus.windows.net/uttopicb3e91bbf - response: - body: {string: 'https://fakesbnamespace.servicebus.windows.net/uttopicb3e91bbfuttopicb3e91bbf2015-06-30T20:51:53Z2015-06-30T20:51:53ZfakesbnamespaceP10675199DT2H48M5.4775807S1024falsePT10Mtrue02015-06-30T20:51:53.6172015-06-30T20:51:53.707'} - headers: - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:51:52 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 201, message: Created} -- request: - body: !!binary | - PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiIHN0YW5kYWxvbmU9InllcyI/Pjxl - bnRyeSB4bWxuczpkPSJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL2Fkby8yMDA3LzA4L2Rh - dGFzZXJ2aWNlcyIgeG1sbnM6bT0iaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9hZG8vMjAw - Ny8wOC9kYXRhc2VydmljZXMvbWV0YWRhdGEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDA1 - L0F0b20iPjx0aXRsZT48L3RpdGxlPjx1cGRhdGVkPjIwMTUtMDYtMzBUMjA6NTE6NTIuNzk4ODUy - KzAwOjAwPC91cGRhdGVkPjxhdXRob3I+PG5hbWU+PC9uYW1lPjwvYXV0aG9yPjxpZD48L2lkPjxj - b250ZW50IHR5cGU9ImFwcGxpY2F0aW9uL3htbCI+PFN1YnNjcmlwdGlvbkRlc2NyaXB0aW9uIHht - bG5zOmk9Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvWE1MU2NoZW1hLWluc3RhbmNlIiB4bWxucz0i - aHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9uZXRzZXJ2aWNlcy8yMDEwLzEwL3NlcnZpY2Vi - dXMvY29ubmVjdCI+PC9TdWJzY3JpcHRpb25EZXNjcmlwdGlvbj48L2NvbnRlbnQ+PC9lbnRyeT4= - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['569'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: PUT - uri: https://fakesbnamespace.servicebus.windows.net/uttopicb3e91bbf/subscriptions/MySubscription - response: - body: {string: 'https://fakesbnamespace.servicebus.windows.net/uttopicb3e91bbf/subscriptions/MySubscriptionMySubscription2015-06-30T20:51:53Z2015-06-30T20:51:53ZPT1MfalseP10675199DT2H48M5.4775807Sfalsetrue010true'} - headers: - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:51:53 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 201, message: Created} -- request: - body: !!binary | - c3Vic2NyaXB0aW9uIG1lc3NhZ2U= - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['20'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: POST - uri: https://fakesbnamespace.servicebus.windows.net/uttopicb3e91bbf/messages - response: - body: {string: ''} - headers: - Content-Type: [application/xml; charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:51:53 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 201, message: Created} -- request: - body: null - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: POST - uri: https://fakesbnamespace.servicebus.windows.net/uttopicb3e91bbf/subscriptions/MySubscription/messages/head?timeout=5 - response: - body: {string: subscription message} - headers: - BrokerProperties: ['{"DeliveryCount":1,"EnqueuedSequenceNumber":1,"EnqueuedTimeUtc":"Tue, - 30 Jun 2015 20:51:54 GMT","LockToken":"341e80a0-b0bb-4d33-82e2-7cfb3ec3df17","LockedUntilUtc":"Tue, - 30 Jun 2015 20:52:54 GMT","MessageId":"ace384b9ebc244f3944bab122875c0a1","SequenceNumber":1,"State":"Active","TimeToLive":922337203685.47754}'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:51:54 GMT'] - Location: ['https://fakesbnamespace.servicebus.windows.net/uttopicb3e91bbf/subscriptions/MySubscription/messages/1/341e80a0-b0bb-4d33-82e2-7cfb3ec3df17'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 201, message: Created} -- request: - body: null - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: DELETE - uri: https://fakesbnamespace.servicebus.windows.net/uttopicb3e91bbf/subscriptions/MySubscription/messages/1/341e80a0-b0bb-4d33-82e2-7cfb3ec3df17 - response: - body: {string: ''} - headers: - Content-Type: [application/xml; charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:51:54 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 200, message: OK} -version: 1 diff --git a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_receive_subscription_message_delete_with_slash.yaml b/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_receive_subscription_message_delete_with_slash.yaml deleted file mode 100644 index 4731cad6d8a9..000000000000 --- a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_receive_subscription_message_delete_with_slash.yaml +++ /dev/null @@ -1,130 +0,0 @@ -interactions: -- request: - body: !!binary | - PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiIHN0YW5kYWxvbmU9InllcyI/Pjxl - bnRyeSB4bWxuczpkPSJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL2Fkby8yMDA3LzA4L2Rh - dGFzZXJ2aWNlcyIgeG1sbnM6bT0iaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9hZG8vMjAw - Ny8wOC9kYXRhc2VydmljZXMvbWV0YWRhdGEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDA1 - L0F0b20iPjx0aXRsZT48L3RpdGxlPjx1cGRhdGVkPjIwMTUtMDYtMzBUMjA6NTA6NDQuMzM2MjM3 - KzAwOjAwPC91cGRhdGVkPjxhdXRob3I+PG5hbWU+PC9uYW1lPjwvYXV0aG9yPjxpZD48L2lkPjxj - b250ZW50IHR5cGU9ImFwcGxpY2F0aW9uL3htbCI+PFRvcGljRGVzY3JpcHRpb24geG1sbnM6aT0i - aHR0cDovL3d3dy53My5vcmcvMjAwMS9YTUxTY2hlbWEtaW5zdGFuY2UiIHhtbG5zPSJodHRwOi8v - c2NoZW1hcy5taWNyb3NvZnQuY29tL25ldHNlcnZpY2VzLzIwMTAvMTAvc2VydmljZWJ1cy9jb25u - ZWN0Ij48L1RvcGljRGVzY3JpcHRpb24+PC9jb250ZW50PjwvZW50cnk+ - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['555'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: PUT - uri: https://fakesbnamespace.servicebus.windows.net/ut/topicba2054 - response: - body: {string: 'https://fakesbnamespace.servicebus.windows.net/ut/topicba2054ut/topicba20542015-06-30T20:50:46Z2015-06-30T20:50:46ZfakesbnamespaceP10675199DT2H48M5.4775807S1024falsePT10Mtrue02015-06-30T20:50:46.6632015-06-30T20:50:46.76'} - headers: - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:50:46 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 201, message: Created} -- request: - body: !!binary | - PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiIHN0YW5kYWxvbmU9InllcyI/Pjxl - bnRyeSB4bWxuczpkPSJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL2Fkby8yMDA3LzA4L2Rh - dGFzZXJ2aWNlcyIgeG1sbnM6bT0iaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9hZG8vMjAw - Ny8wOC9kYXRhc2VydmljZXMvbWV0YWRhdGEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDA1 - L0F0b20iPjx0aXRsZT48L3RpdGxlPjx1cGRhdGVkPjIwMTUtMDYtMzBUMjA6NTA6NDUuODc5MzI0 - KzAwOjAwPC91cGRhdGVkPjxhdXRob3I+PG5hbWU+PC9uYW1lPjwvYXV0aG9yPjxpZD48L2lkPjxj - b250ZW50IHR5cGU9ImFwcGxpY2F0aW9uL3htbCI+PFN1YnNjcmlwdGlvbkRlc2NyaXB0aW9uIHht - bG5zOmk9Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvWE1MU2NoZW1hLWluc3RhbmNlIiB4bWxucz0i - aHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9uZXRzZXJ2aWNlcy8yMDEwLzEwL3NlcnZpY2Vi - dXMvY29ubmVjdCI+PC9TdWJzY3JpcHRpb25EZXNjcmlwdGlvbj48L2NvbnRlbnQ+PC9lbnRyeT4= - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['569'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: PUT - uri: https://fakesbnamespace.servicebus.windows.net/ut/topicba2054/subscriptions/MySubscription - response: - body: {string: 'https://fakesbnamespace.servicebus.windows.net/ut/topicba2054/subscriptions/MySubscriptionMySubscription2015-06-30T20:50:47Z2015-06-30T20:50:47ZPT1MfalseP10675199DT2H48M5.4775807Sfalsetrue010true'} - headers: - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:50:46 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 201, message: Created} -- request: - body: !!binary | - c3Vic2NyaXB0aW9uIG1lc3NhZ2U= - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['20'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: POST - uri: https://fakesbnamespace.servicebus.windows.net/ut/topicba2054/messages - response: - body: {string: ''} - headers: - Content-Type: [application/xml; charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:50:47 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 201, message: Created} -- request: - body: null - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: POST - uri: https://fakesbnamespace.servicebus.windows.net/ut/topicba2054/subscriptions/MySubscription/messages/head?timeout=5 - response: - body: {string: subscription message} - headers: - BrokerProperties: ['{"DeliveryCount":1,"EnqueuedSequenceNumber":1,"EnqueuedTimeUtc":"Tue, - 30 Jun 2015 20:50:47 GMT","LockToken":"6b368e12-264e-437c-8235-af4e5e057d4f","LockedUntilUtc":"Tue, - 30 Jun 2015 20:51:47 GMT","MessageId":"38b1565bf93645958cc354e2916c7f48","SequenceNumber":1,"State":"Active","TimeToLive":922337203685.47754}'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:50:47 GMT'] - Location: ['https://fakesbnamespace.servicebus.windows.net/ut/topicba2054/subscriptions/MySubscription/messages/1/6b368e12-264e-437c-8235-af4e5e057d4f'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 201, message: Created} -- request: - body: null - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: DELETE - uri: https://fakesbnamespace.servicebus.windows.net/ut/topicba2054/subscriptions/MySubscription/messages/1/6b368e12-264e-437c-8235-af4e5e057d4f - response: - body: {string: ''} - headers: - Content-Type: [application/xml; charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:50:47 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 200, message: OK} -version: 1 diff --git a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_receive_subscription_message_peek_lock_mode.yaml b/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_receive_subscription_message_peek_lock_mode.yaml deleted file mode 100644 index 709b186d8ce6..000000000000 --- a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_receive_subscription_message_peek_lock_mode.yaml +++ /dev/null @@ -1,111 +0,0 @@ -interactions: -- request: - body: !!binary | - PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiIHN0YW5kYWxvbmU9InllcyI/Pjxl - bnRyeSB4bWxuczpkPSJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL2Fkby8yMDA3LzA4L2Rh - dGFzZXJ2aWNlcyIgeG1sbnM6bT0iaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9hZG8vMjAw - Ny8wOC9kYXRhc2VydmljZXMvbWV0YWRhdGEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDA1 - L0F0b20iPjx0aXRsZT48L3RpdGxlPjx1cGRhdGVkPjIwMTUtMDYtMzBUMjA6NTQ6MzcuMTgxOTUy - KzAwOjAwPC91cGRhdGVkPjxhdXRob3I+PG5hbWU+PC9uYW1lPjwvYXV0aG9yPjxpZD48L2lkPjxj - b250ZW50IHR5cGU9ImFwcGxpY2F0aW9uL3htbCI+PFRvcGljRGVzY3JpcHRpb24geG1sbnM6aT0i - aHR0cDovL3d3dy53My5vcmcvMjAwMS9YTUxTY2hlbWEtaW5zdGFuY2UiIHhtbG5zPSJodHRwOi8v - c2NoZW1hcy5taWNyb3NvZnQuY29tL25ldHNlcnZpY2VzLzIwMTAvMTAvc2VydmljZWJ1cy9jb25u - ZWN0Ij48L1RvcGljRGVzY3JpcHRpb24+PC9jb250ZW50PjwvZW50cnk+ - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['555'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: PUT - uri: https://fakesbnamespace.servicebus.windows.net/uttopica0ab1efd - response: - body: {string: 'https://fakesbnamespace.servicebus.windows.net/uttopica0ab1efduttopica0ab1efd2015-06-30T20:54:39Z2015-06-30T20:54:39ZfakesbnamespaceP10675199DT2H48M5.4775807S1024falsePT10Mtrue02015-06-30T20:54:39.4832015-06-30T20:54:39.563'} - headers: - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:54:38 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 201, message: Created} -- request: - body: !!binary | - PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiIHN0YW5kYWxvbmU9InllcyI/Pjxl - bnRyeSB4bWxuczpkPSJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL2Fkby8yMDA3LzA4L2Rh - dGFzZXJ2aWNlcyIgeG1sbnM6bT0iaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9hZG8vMjAw - Ny8wOC9kYXRhc2VydmljZXMvbWV0YWRhdGEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDA1 - L0F0b20iPjx0aXRsZT48L3RpdGxlPjx1cGRhdGVkPjIwMTUtMDYtMzBUMjA6NTQ6MzguNjUwNzY3 - KzAwOjAwPC91cGRhdGVkPjxhdXRob3I+PG5hbWU+PC9uYW1lPjwvYXV0aG9yPjxpZD48L2lkPjxj - b250ZW50IHR5cGU9ImFwcGxpY2F0aW9uL3htbCI+PFN1YnNjcmlwdGlvbkRlc2NyaXB0aW9uIHht - bG5zOmk9Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvWE1MU2NoZW1hLWluc3RhbmNlIiB4bWxucz0i - aHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9uZXRzZXJ2aWNlcy8yMDEwLzEwL3NlcnZpY2Vi - dXMvY29ubmVjdCI+PC9TdWJzY3JpcHRpb25EZXNjcmlwdGlvbj48L2NvbnRlbnQ+PC9lbnRyeT4= - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['569'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: PUT - uri: https://fakesbnamespace.servicebus.windows.net/uttopica0ab1efd/subscriptions/MySubscription - response: - body: {string: 'https://fakesbnamespace.servicebus.windows.net/uttopica0ab1efd/subscriptions/MySubscriptionMySubscription2015-06-30T20:54:39Z2015-06-30T20:54:39ZPT1MfalseP10675199DT2H48M5.4775807Sfalsetrue010true'} - headers: - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:54:39 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 201, message: Created} -- request: - body: !!binary | - c3Vic2NyaXB0aW9uIG1lc3NhZ2U= - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['20'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: POST - uri: https://fakesbnamespace.servicebus.windows.net/uttopica0ab1efd/messages - response: - body: {string: ''} - headers: - Content-Type: [application/xml; charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:54:39 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 201, message: Created} -- request: - body: null - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: POST - uri: https://fakesbnamespace.servicebus.windows.net/uttopica0ab1efd/subscriptions/MySubscription/messages/head?timeout=5 - response: - body: {string: subscription message} - headers: - BrokerProperties: ['{"DeliveryCount":1,"EnqueuedSequenceNumber":1,"EnqueuedTimeUtc":"Tue, - 30 Jun 2015 20:54:40 GMT","LockToken":"c36207f3-8a3c-49b9-ab41-74f45e9fc707","LockedUntilUtc":"Tue, - 30 Jun 2015 20:55:40 GMT","MessageId":"eb2ec461baab4dc798b9c824687812dc","SequenceNumber":1,"State":"Active","TimeToLive":922337203685.47754}'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:54:39 GMT'] - Location: ['https://fakesbnamespace.servicebus.windows.net/uttopica0ab1efd/subscriptions/MySubscription/messages/1/c36207f3-8a3c-49b9-ab41-74f45e9fc707'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 201, message: Created} -version: 1 diff --git a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_receive_subscription_message_read_delete_mode.yaml b/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_receive_subscription_message_read_delete_mode.yaml deleted file mode 100644 index cc79349aa90c..000000000000 --- a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_receive_subscription_message_read_delete_mode.yaml +++ /dev/null @@ -1,109 +0,0 @@ -interactions: -- request: - body: !!binary | - PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiIHN0YW5kYWxvbmU9InllcyI/Pjxl - bnRyeSB4bWxuczpkPSJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL2Fkby8yMDA3LzA4L2Rh - dGFzZXJ2aWNlcyIgeG1sbnM6bT0iaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9hZG8vMjAw - Ny8wOC9kYXRhc2VydmljZXMvbWV0YWRhdGEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDA1 - L0F0b20iPjx0aXRsZT48L3RpdGxlPjx1cGRhdGVkPjIwMTUtMDYtMzBUMjA6NTU6MzYuMTQ0MTc2 - KzAwOjAwPC91cGRhdGVkPjxhdXRob3I+PG5hbWU+PC9uYW1lPjwvYXV0aG9yPjxpZD48L2lkPjxj - b250ZW50IHR5cGU9ImFwcGxpY2F0aW9uL3htbCI+PFRvcGljRGVzY3JpcHRpb24geG1sbnM6aT0i - aHR0cDovL3d3dy53My5vcmcvMjAwMS9YTUxTY2hlbWEtaW5zdGFuY2UiIHhtbG5zPSJodHRwOi8v - c2NoZW1hcy5taWNyb3NvZnQuY29tL25ldHNlcnZpY2VzLzIwMTAvMTAvc2VydmljZWJ1cy9jb25u - ZWN0Ij48L1RvcGljRGVzY3JpcHRpb24+PC9jb250ZW50PjwvZW50cnk+ - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['555'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: PUT - uri: https://fakesbnamespace.servicebus.windows.net/uttopicdf191fbe - response: - body: {string: 'https://fakesbnamespace.servicebus.windows.net/uttopicdf191fbeuttopicdf191fbe2015-06-30T20:55:38Z2015-06-30T20:55:38ZfakesbnamespaceP10675199DT2H48M5.4775807S1024falsePT10Mtrue02015-06-30T20:55:38.5272015-06-30T20:55:38.61'} - headers: - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:55:37 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 201, message: Created} -- request: - body: !!binary | - PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiIHN0YW5kYWxvbmU9InllcyI/Pjxl - bnRyeSB4bWxuczpkPSJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL2Fkby8yMDA3LzA4L2Rh - dGFzZXJ2aWNlcyIgeG1sbnM6bT0iaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9hZG8vMjAw - Ny8wOC9kYXRhc2VydmljZXMvbWV0YWRhdGEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDA1 - L0F0b20iPjx0aXRsZT48L3RpdGxlPjx1cGRhdGVkPjIwMTUtMDYtMzBUMjA6NTU6MzcuNjk1MTEx - KzAwOjAwPC91cGRhdGVkPjxhdXRob3I+PG5hbWU+PC9uYW1lPjwvYXV0aG9yPjxpZD48L2lkPjxj - b250ZW50IHR5cGU9ImFwcGxpY2F0aW9uL3htbCI+PFN1YnNjcmlwdGlvbkRlc2NyaXB0aW9uIHht - bG5zOmk9Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvWE1MU2NoZW1hLWluc3RhbmNlIiB4bWxucz0i - aHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9uZXRzZXJ2aWNlcy8yMDEwLzEwL3NlcnZpY2Vi - dXMvY29ubmVjdCI+PC9TdWJzY3JpcHRpb25EZXNjcmlwdGlvbj48L2NvbnRlbnQ+PC9lbnRyeT4= - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['569'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: PUT - uri: https://fakesbnamespace.servicebus.windows.net/uttopicdf191fbe/subscriptions/MySubscription - response: - body: {string: 'https://fakesbnamespace.servicebus.windows.net/uttopicdf191fbe/subscriptions/MySubscriptionMySubscription2015-06-30T20:55:38Z2015-06-30T20:55:38ZPT1MfalseP10675199DT2H48M5.4775807Sfalsetrue010true'} - headers: - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:55:38 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 201, message: Created} -- request: - body: !!binary | - c3Vic2NyaXB0aW9uIG1lc3NhZ2U= - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['20'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: POST - uri: https://fakesbnamespace.servicebus.windows.net/uttopicdf191fbe/messages - response: - body: {string: ''} - headers: - Content-Type: [application/xml; charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:55:38 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 201, message: Created} -- request: - body: null - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: DELETE - uri: https://fakesbnamespace.servicebus.windows.net/uttopicdf191fbe/subscriptions/MySubscription/messages/head?timeout=60 - response: - body: {string: subscription message} - headers: - BrokerProperties: ['{"DeliveryCount":1,"EnqueuedSequenceNumber":1,"EnqueuedTimeUtc":"Tue, - 30 Jun 2015 20:55:40 GMT","MessageId":"ef3b299632d843739359ce7cb23d6944","SequenceNumber":1,"State":"Active","TimeToLive":922337203685.47754}'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:55:39 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 200, message: OK} -version: 1 diff --git a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_receive_subscription_message_read_delete_mode_throws_on_delete.yaml b/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_receive_subscription_message_read_delete_mode_throws_on_delete.yaml deleted file mode 100644 index b4eb478ff078..000000000000 --- a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_receive_subscription_message_read_delete_mode_throws_on_delete.yaml +++ /dev/null @@ -1,109 +0,0 @@ -interactions: -- request: - body: !!binary | - PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiIHN0YW5kYWxvbmU9InllcyI/Pjxl - bnRyeSB4bWxuczpkPSJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL2Fkby8yMDA3LzA4L2Rh - dGFzZXJ2aWNlcyIgeG1sbnM6bT0iaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9hZG8vMjAw - Ny8wOC9kYXRhc2VydmljZXMvbWV0YWRhdGEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDA1 - L0F0b20iPjx0aXRsZT48L3RpdGxlPjx1cGRhdGVkPjIwMTUtMDYtMzBUMjA6NTI6NDkuNDQ4MzE3 - KzAwOjAwPC91cGRhdGVkPjxhdXRob3I+PG5hbWU+PC9uYW1lPjwvYXV0aG9yPjxpZD48L2lkPjxj - b250ZW50IHR5cGU9ImFwcGxpY2F0aW9uL3htbCI+PFRvcGljRGVzY3JpcHRpb24geG1sbnM6aT0i - aHR0cDovL3d3dy53My5vcmcvMjAwMS9YTUxTY2hlbWEtaW5zdGFuY2UiIHhtbG5zPSJodHRwOi8v - c2NoZW1hcy5taWNyb3NvZnQuY29tL25ldHNlcnZpY2VzLzIwMTAvMTAvc2VydmljZWJ1cy9jb25u - ZWN0Ij48L1RvcGljRGVzY3JpcHRpb24+PC9jb250ZW50PjwvZW50cnk+ - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['555'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: PUT - uri: https://fakesbnamespace.servicebus.windows.net/uttopic3b1226d2 - response: - body: {string: 'https://fakesbnamespace.servicebus.windows.net/uttopic3b1226d2uttopic3b1226d22015-06-30T20:52:51Z2015-06-30T20:52:52ZfakesbnamespaceP10675199DT2H48M5.4775807S1024falsePT10Mtrue02015-06-30T20:52:51.9732015-06-30T20:52:52.163'} - headers: - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:52:52 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 201, message: Created} -- request: - body: !!binary | - PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiIHN0YW5kYWxvbmU9InllcyI/Pjxl - bnRyeSB4bWxuczpkPSJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL2Fkby8yMDA3LzA4L2Rh - dGFzZXJ2aWNlcyIgeG1sbnM6bT0iaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9hZG8vMjAw - Ny8wOC9kYXRhc2VydmljZXMvbWV0YWRhdGEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDA1 - L0F0b20iPjx0aXRsZT48L3RpdGxlPjx1cGRhdGVkPjIwMTUtMDYtMzBUMjA6NTI6NTEuMjU0OTYy - KzAwOjAwPC91cGRhdGVkPjxhdXRob3I+PG5hbWU+PC9uYW1lPjwvYXV0aG9yPjxpZD48L2lkPjxj - b250ZW50IHR5cGU9ImFwcGxpY2F0aW9uL3htbCI+PFN1YnNjcmlwdGlvbkRlc2NyaXB0aW9uIHht - bG5zOmk9Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvWE1MU2NoZW1hLWluc3RhbmNlIiB4bWxucz0i - aHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9uZXRzZXJ2aWNlcy8yMDEwLzEwL3NlcnZpY2Vi - dXMvY29ubmVjdCI+PC9TdWJzY3JpcHRpb25EZXNjcmlwdGlvbj48L2NvbnRlbnQ+PC9lbnRyeT4= - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['569'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: PUT - uri: https://fakesbnamespace.servicebus.windows.net/uttopic3b1226d2/subscriptions/MySubscription - response: - body: {string: 'https://fakesbnamespace.servicebus.windows.net/uttopic3b1226d2/subscriptions/MySubscriptionMySubscription2015-06-30T20:52:52Z2015-06-30T20:52:52ZPT1MfalseP10675199DT2H48M5.4775807Sfalsetrue010true'} - headers: - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:52:52 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 201, message: Created} -- request: - body: !!binary | - c3Vic2NyaXB0aW9uIG1lc3NhZ2U= - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['20'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: POST - uri: https://fakesbnamespace.servicebus.windows.net/uttopic3b1226d2/messages - response: - body: {string: ''} - headers: - Content-Type: [application/xml; charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:52:53 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 201, message: Created} -- request: - body: null - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: DELETE - uri: https://fakesbnamespace.servicebus.windows.net/uttopic3b1226d2/subscriptions/MySubscription/messages/head?timeout=60 - response: - body: {string: subscription message} - headers: - BrokerProperties: ['{"DeliveryCount":1,"EnqueuedSequenceNumber":1,"EnqueuedTimeUtc":"Tue, - 30 Jun 2015 20:52:53 GMT","MessageId":"97dbd4748fd544e6b2d9c628c087afb4","SequenceNumber":1,"State":"Active","TimeToLive":922337203685.47754}'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:52:53 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 200, message: OK} -version: 1 diff --git a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_receive_subscription_message_read_delete_mode_throws_on_unlock.yaml b/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_receive_subscription_message_read_delete_mode_throws_on_unlock.yaml deleted file mode 100644 index c9b50cee4f60..000000000000 --- a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_receive_subscription_message_read_delete_mode_throws_on_unlock.yaml +++ /dev/null @@ -1,94 +0,0 @@ -interactions: -- request: - body: 2016-08-11T23:42:10.212011+00:00 - headers: - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['555'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.2] - method: PUT - uri: https://fakesbnamespace.servicebus.windows.net/uttopic3ba726eb - response: - body: {string: 'https://fakesbnamespace.servicebus.windows.net/uttopic3ba726ebuttopic3ba726eb2016-08-11T23:42:11Z2016-08-11T23:42:11ZfakesbnamespaceP10675199DT2H48M5.4775807S1024falsePT10Mtrue02016-08-11T23:42:11.7472016-08-11T23:42:11.82'} - headers: - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - Date: ['Thu, 11 Aug 2016 23:42:10 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000] - Transfer-Encoding: [chunked] - status: {code: 201, message: Created} -- request: - body: 2016-08-11T23:42:11.505004+00:00 - headers: - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['569'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.2] - method: PUT - uri: https://fakesbnamespace.servicebus.windows.net/uttopic3ba726eb/subscriptions/MySubscription - response: - body: {string: 'https://fakesbnamespace.servicebus.windows.net/uttopic3ba726eb/subscriptions/MySubscriptionMySubscription2016-08-11T23:42:10Z2016-08-11T23:42:10ZPT1MfalseP10675199DT2H48M5.4775807Sfalsetrue010true'} - headers: - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - Date: ['Thu, 11 Aug 2016 23:42:11 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000] - Transfer-Encoding: [chunked] - status: {code: 201, message: Created} -- request: - body: subscription message - headers: - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['20'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.2] - method: POST - uri: https://fakesbnamespace.servicebus.windows.net/uttopic3ba726eb/messages - response: - body: {string: ''} - headers: - Content-Type: [application/xml; charset=utf-8] - Date: ['Thu, 11 Aug 2016 23:42:11 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000] - Transfer-Encoding: [chunked] - status: {code: 201, message: Created} -- request: - body: null - headers: - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.2] - method: DELETE - uri: https://fakesbnamespace.servicebus.windows.net/uttopic3ba726eb/subscriptions/MySubscription/messages/head?timeout=60 - response: - body: {string: subscription message} - headers: - BrokerProperties: ['{"DeliveryCount":1,"EnqueuedSequenceNumber":1,"EnqueuedTimeUtc":"Thu, - 11 Aug 2016 23:42:11 GMT","MessageId":"41a8c5b8447e4c7d896807d368336ac4","SequenceNumber":1,"State":"Active","TimeToLive":922337203685.47754}'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - Date: ['Thu, 11 Aug 2016 23:42:11 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000] - Transfer-Encoding: [chunked] - status: {code: 200, message: OK} -version: 1 diff --git a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_receive_subscription_message_unlock.yaml b/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_receive_subscription_message_unlock.yaml deleted file mode 100644 index 6791dcb63133..000000000000 --- a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_receive_subscription_message_unlock.yaml +++ /dev/null @@ -1,176 +0,0 @@ -interactions: -- request: - body: 2016-08-11T23:42:19.452956+00:00 - headers: - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['555'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.2] - method: PUT - uri: https://fakesbnamespace.servicebus.windows.net/uttopicb47e1bd8 - response: - body: {string: 'https://fakesbnamespace.servicebus.windows.net/uttopicb47e1bd8uttopicb47e1bd82016-08-11T23:42:20Z2016-08-11T23:42:21ZfakesbnamespaceP10675199DT2H48M5.4775807S1024falsePT10Mtrue02016-08-11T23:42:20.932016-08-11T23:42:21.093'} - headers: - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - Date: ['Thu, 11 Aug 2016 23:42:20 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000] - Transfer-Encoding: [chunked] - status: {code: 201, message: Created} -- request: - body: 2016-08-11T23:42:20.825917+00:00 - headers: - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['569'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.2] - method: PUT - uri: https://fakesbnamespace.servicebus.windows.net/uttopicb47e1bd8/subscriptions/MySubscription - response: - body: {string: 'https://fakesbnamespace.servicebus.windows.net/uttopicb47e1bd8/subscriptions/MySubscriptionMySubscription2016-08-11T23:42:20Z2016-08-11T23:42:20ZPT1MfalseP10675199DT2H48M5.4775807Sfalsetrue010true'} - headers: - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - Date: ['Thu, 11 Aug 2016 23:42:20 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000] - Transfer-Encoding: [chunked] - status: {code: 201, message: Created} -- request: - body: subscription message - headers: - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['20'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.2] - method: POST - uri: https://fakesbnamespace.servicebus.windows.net/uttopicb47e1bd8/messages - response: - body: {string: ''} - headers: - Content-Type: [application/xml; charset=utf-8] - Date: ['Thu, 11 Aug 2016 23:42:20 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000] - Transfer-Encoding: [chunked] - status: {code: 201, message: Created} -- request: - body: null - headers: - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.2] - method: POST - uri: https://fakesbnamespace.servicebus.windows.net/uttopicb47e1bd8/subscriptions/MySubscription/messages/head?timeout=60 - response: - body: {string: subscription message} - headers: - BrokerProperties: ['{"DeliveryCount":1,"EnqueuedSequenceNumber":1,"EnqueuedTimeUtc":"Thu, - 11 Aug 2016 23:42:20 GMT","LockToken":"19091a22-6715-4b21-95e0-6d54ce45c9fa","LockedUntilUtc":"Thu, - 11 Aug 2016 23:43:20 GMT","MessageId":"5095313c8cef4d8e998a98863824b2b3","SequenceNumber":1,"State":"Active","TimeToLive":922337203685.47754}'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - Date: ['Thu, 11 Aug 2016 23:42:20 GMT'] - Location: ['https://fakesbnamespace.servicebus.windows.net/uttopicb47e1bd8/subscriptions/MySubscription/messages/1/19091a22-6715-4b21-95e0-6d54ce45c9fa'] - Server: [Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000] - Transfer-Encoding: [chunked] - status: {code: 201, message: Created} -- request: - body: null - headers: - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.2] - method: POST - uri: https://fakesbnamespace.servicebus.windows.net/uttopicb47e1bd8/subscriptions/MySubscription/messages/1/19091a22-6715-4b21-95e0-6d54ce45c9fa - response: - body: {string: ''} - headers: - Content-Type: [application/xml; charset=utf-8] - Date: ['Thu, 11 Aug 2016 23:42:20 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000] - Transfer-Encoding: [chunked] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.2] - method: PUT - uri: https://fakesbnamespace.servicebus.windows.net/uttopicb47e1bd8/subscriptions/MySubscription/messages/1/19091a22-6715-4b21-95e0-6d54ce45c9fa - response: - body: {string: ''} - headers: - Content-Type: [application/xml; charset=utf-8] - Date: ['Thu, 11 Aug 2016 23:42:20 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000] - Transfer-Encoding: [chunked] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.2] - method: POST - uri: https://fakesbnamespace.servicebus.windows.net/uttopicb47e1bd8/subscriptions/MySubscription/messages/head?timeout=60 - response: - body: {string: subscription message} - headers: - BrokerProperties: ['{"DeliveryCount":2,"EnqueuedSequenceNumber":1,"EnqueuedTimeUtc":"Thu, - 11 Aug 2016 23:42:20 GMT","LockToken":"50b362c9-cff0-4a89-bd65-ff2a98368327","LockedUntilUtc":"Thu, - 11 Aug 2016 23:43:20 GMT","MessageId":"5095313c8cef4d8e998a98863824b2b3","SequenceNumber":1,"State":"Active","TimeToLive":922337203685.47754}'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - Date: ['Thu, 11 Aug 2016 23:42:20 GMT'] - Location: ['https://fakesbnamespace.servicebus.windows.net/uttopicb47e1bd8/subscriptions/MySubscription/messages/1/50b362c9-cff0-4a89-bd65-ff2a98368327'] - Server: [Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000] - Transfer-Encoding: [chunked] - status: {code: 201, message: Created} -- request: - body: null - headers: - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.2] - method: DELETE - uri: https://fakesbnamespace.servicebus.windows.net/uttopicb47e1bd8/subscriptions/MySubscription/messages/1/50b362c9-cff0-4a89-bd65-ff2a98368327 - response: - body: {string: ''} - headers: - Content-Type: [application/xml; charset=utf-8] - Date: ['Thu, 11 Aug 2016 23:42:21 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000] - Transfer-Encoding: [chunked] - status: {code: 200, message: OK} -version: 1 diff --git a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_send_queue_message.yaml b/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_send_queue_message.yaml deleted file mode 100644 index 00e3df39b759..000000000000 --- a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_send_queue_message.yaml +++ /dev/null @@ -1,55 +0,0 @@ -interactions: -- request: - body: !!binary | - PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiIHN0YW5kYWxvbmU9InllcyI/Pjxl - bnRyeSB4bWxuczpkPSJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL2Fkby8yMDA3LzA4L2Rh - dGFzZXJ2aWNlcyIgeG1sbnM6bT0iaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9hZG8vMjAw - Ny8wOC9kYXRhc2VydmljZXMvbWV0YWRhdGEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDA1 - L0F0b20iPjx0aXRsZT48L3RpdGxlPjx1cGRhdGVkPjIwMTUtMDYtMzBUMjA6NTM6MzEuMTk1Mzgw - KzAwOjAwPC91cGRhdGVkPjxhdXRob3I+PG5hbWU+PC9uYW1lPjwvYXV0aG9yPjxpZD48L2lkPjxj - b250ZW50IHR5cGU9ImFwcGxpY2F0aW9uL3htbCI+PFF1ZXVlRGVzY3JpcHRpb24geG1sbnM6aT0i - aHR0cDovL3d3dy53My5vcmcvMjAwMS9YTUxTY2hlbWEtaW5zdGFuY2UiIHhtbG5zPSJodHRwOi8v - c2NoZW1hcy5taWNyb3NvZnQuY29tL25ldHNlcnZpY2VzLzIwMTAvMTAvc2VydmljZWJ1cy9jb25u - ZWN0Ij48L1F1ZXVlRGVzY3JpcHRpb24+PC9jb250ZW50PjwvZW50cnk+ - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['555'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: PUT - uri: https://fakesbnamespace.servicebus.windows.net/utqueue138314b4 - response: - body: {string: 'https://fakesbnamespace.servicebus.windows.net/utqueue138314b4utqueue138314b42015-06-30T20:53:34Z2015-06-30T20:53:34ZfakesbnamespacePT1M1024falsefalseP10675199DT2H48M5.4775807SfalsePT10M10true002015-06-30T20:53:34.312015-06-30T20:53:34.403'} - headers: - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:53:33 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 201, message: Created} -- request: - body: !!binary | - c2VuZCBtZXNzYWdl - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['12'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: POST - uri: https://fakesbnamespace.servicebus.windows.net/utqueue138314b4/messages - response: - body: {string: ''} - headers: - Content-Type: [application/xml; charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:53:34 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 201, message: Created} -version: 1 diff --git a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_send_queue_message_batch.yaml b/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_send_queue_message_batch.yaml deleted file mode 100644 index 02578b1c8e56..000000000000 --- a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_send_queue_message_batch.yaml +++ /dev/null @@ -1,117 +0,0 @@ -interactions: -- request: - body: 2017-01-12T00:03:01.811134+00:00 - headers: - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['555'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.3] - method: PUT - uri: https://fakesbnamespace.servicebus.windows.net/utqueue97ed1715 - response: - body: {string: 'https://fakesbnamespace.servicebus.windows.net/utqueue97ed1715utqueue97ed17152017-01-12T00:03:03Z2017-01-12T00:03:03ZfakesbnamespacePT1M1024falsefalseP10675199DT2H48M5.4775807SfalsePT10M10true002017-01-12T00:03:03.5072017-01-12T00:03:03.553'} - headers: - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - Date: ['Thu, 12 Jan 2017 00:03:02 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000] - Transfer-Encoding: [chunked] - status: {code: 201, message: Created} -- request: - body: '[{"BrokerProperties": {"Label": "M1", "TimeToLiveTimeSpan": "0.00:00:40"}, - "Body": "This is the first message"}, {"BrokerProperties": {"Label": "M2"}, - "UserProperties": {"Priority": "Low"}, "Body": "This is the second message"}, - {"BrokerProperties": {"Label": "M3"}, "UserProperties": {"Customer": "ABC", - "Priority": "Medium"}, "Body": "This is the third message"}]' - headers: - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['365'] - Content-Type: [application/vnd.microsoft.servicebus.json] - User-Agent: [pyazure/0.20.3] - method: POST - uri: https://fakesbnamespace.servicebus.windows.net/utqueue97ed1715/messages - response: - body: {string: ''} - headers: - Content-Type: [application/xml; charset=utf-8] - Date: ['Thu, 12 Jan 2017 00:03:02 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000] - Transfer-Encoding: [chunked] - status: {code: 201, message: Created} -- request: - body: null - headers: - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.3] - method: DELETE - uri: https://fakesbnamespace.servicebus.windows.net/utqueue97ed1715/messages/head?timeout=60 - response: - body: {string: This is the first message} - headers: - BrokerProperties: ['{"DeliveryCount":1,"EnqueuedSequenceNumber":0,"EnqueuedTimeUtc":"Thu, - 12 Jan 2017 00:03:02 GMT","Label":"M1","MessageId":"d44c5dfd06394b59bdf39d1efb17c467","SequenceNumber":1,"State":"Active","TimeToLive":40}'] - Content-Type: [application/xml; charset=utf-8] - Date: ['Thu, 12 Jan 2017 00:03:02 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000] - Transfer-Encoding: [chunked] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.3] - method: DELETE - uri: https://fakesbnamespace.servicebus.windows.net/utqueue97ed1715/messages/head?timeout=60 - response: - body: {string: This is the second message} - headers: - BrokerProperties: ['{"DeliveryCount":1,"EnqueuedSequenceNumber":0,"EnqueuedTimeUtc":"Thu, - 12 Jan 2017 00:03:02 GMT","Label":"M2","MessageId":"6754352881264e7c84f6ce45c41dbc36","SequenceNumber":2,"State":"Active","TimeToLive":922337203685.47754}'] - Content-Type: [application/xml; charset=utf-8] - Date: ['Thu, 12 Jan 2017 00:03:02 GMT'] - Priority: ['"Low"'] - Server: [Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000] - Transfer-Encoding: [chunked] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.3] - method: DELETE - uri: https://fakesbnamespace.servicebus.windows.net/utqueue97ed1715/messages/head?timeout=60 - response: - body: {string: This is the third message} - headers: - BrokerProperties: ['{"DeliveryCount":1,"EnqueuedSequenceNumber":0,"EnqueuedTimeUtc":"Thu, - 12 Jan 2017 00:03:02 GMT","Label":"M3","MessageId":"cb8203000b8c4f26a91b7f35d4326a8c","SequenceNumber":3,"State":"Active","TimeToLive":922337203685.47754}'] - Content-Type: [application/xml; charset=utf-8] - Customer: ['"ABC"'] - Date: ['Thu, 12 Jan 2017 00:03:02 GMT'] - Priority: ['"Medium"'] - Server: [Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000] - Transfer-Encoding: [chunked] - status: {code: 200, message: OK} -version: 1 diff --git a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_send_queue_message_unicode.yaml b/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_send_queue_message_unicode.yaml deleted file mode 100644 index 1a930e52e16b..000000000000 --- a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_send_queue_message_unicode.yaml +++ /dev/null @@ -1,68 +0,0 @@ -interactions: -- request: - body: 2017-01-12T00:27:52.467928+00:00 - headers: - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['555'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.3] - method: PUT - uri: https://fakesbnamespace.servicebus.windows.net/utqueuec7f517fa - response: - body: {string: 'https://fakesbnamespace.servicebus.windows.net/utqueuec7f517fautqueuec7f517fa2017-01-12T00:27:54Z2017-01-12T00:27:54ZfakesbnamespacePT1M1024falsefalseP10675199DT2H48M5.4775807SfalsePT10M10true002017-01-12T00:27:54.4132017-01-12T00:27:54.507'} - headers: - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - Date: ['Thu, 12 Jan 2017 00:27:52 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000] - Transfer-Encoding: [chunked] - status: {code: 201, message: Created} -- request: - body: "receive message\u554A\u9F44\u4E02\u72DB\u72DC" - headers: - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['30'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.3] - method: POST - uri: https://fakesbnamespace.servicebus.windows.net/utqueuec7f517fa/messages - response: - body: {string: ''} - headers: - Content-Type: [application/xml; charset=utf-8] - Date: ['Thu, 12 Jan 2017 00:27:52 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000] - Transfer-Encoding: [chunked] - status: {code: 201, message: Created} -- request: - body: null - headers: - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.3] - method: DELETE - uri: https://fakesbnamespace.servicebus.windows.net/utqueuec7f517fa/messages/head?timeout=60 - response: - body: {string: "receive message\u554A\u9F44\u4E02\u72DB\u72DC"} - headers: - BrokerProperties: ['{"DeliveryCount":1,"EnqueuedSequenceNumber":0,"EnqueuedTimeUtc":"Thu, - 12 Jan 2017 00:27:53 GMT","MessageId":"513a6c095d30400f83915d2c0e6e5116","SequenceNumber":1,"State":"Active","TimeToLive":922337203685.47754}'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - Date: ['Thu, 12 Jan 2017 00:27:52 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000] - Transfer-Encoding: [chunked] - status: {code: 200, message: OK} -version: 1 diff --git a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_send_queue_message_with_custom_message_properties.yaml b/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_send_queue_message_with_custom_message_properties.yaml deleted file mode 100644 index 26af8d0e06cf..000000000000 --- a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_send_queue_message_with_custom_message_properties.yaml +++ /dev/null @@ -1,107 +0,0 @@ -interactions: -- request: - body: 2016-08-11T21:34:57.204182+00:00 - headers: - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['555'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.2] - method: PUT - uri: https://fakesbnamespace.servicebus.windows.net/utqueue652e21b9 - response: - body: {string: 'https://fakesbnamespace.servicebus.windows.net/utqueue652e21b9utqueue652e21b92016-08-11T21:34:58Z2016-08-11T21:34:58ZfakesbnamespacePT1M1024falsefalseP10675199DT2H48M5.4775807SfalsePT10M10true002016-08-11T21:34:58.6932016-08-11T21:34:58.757'} - headers: - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - Date: ['Thu, 11 Aug 2016 21:34:58 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000] - Transfer-Encoding: [chunked] - status: {code: 201, message: Created} -- request: - body: message with properties - headers: - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['23'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.2] - active: ['true'] - deceased: ['false'] - dob: ['"Wed, 14 Dec 2011 00:00:00 GMT"'] - double_quote_message: ['"This \"should\" work fine"'] - floating: ['3.14'] - hello: ['"world"'] - large: ['8555111000'] - number: ['42'] - quote_message: ['"This ''should'' work fine"'] - method: POST - uri: https://fakesbnamespace.servicebus.windows.net/utqueue652e21b9/messages - response: - body: {string: ''} - headers: - Content-Type: [application/xml; charset=utf-8] - Date: ['Thu, 11 Aug 2016 21:34:58 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000] - Transfer-Encoding: [chunked] - status: {code: 201, message: Created} -- request: - body: null - headers: - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.2] - method: POST - uri: https://fakesbnamespace.servicebus.windows.net/utqueue652e21b9/messages/head?timeout=5 - response: - body: {string: message with properties} - headers: - BrokerProperties: ['{"DeliveryCount":1,"EnqueuedSequenceNumber":0,"EnqueuedTimeUtc":"Thu, - 11 Aug 2016 21:34:58 GMT","LockToken":"d4d2ca6d-7e59-4947-8c5e-4820ca342e60","LockedUntilUtc":"Thu, - 11 Aug 2016 21:35:58 GMT","MessageId":"820dba4dfd7e40758d465f7ed7eeefee","SequenceNumber":1,"State":"Active","TimeToLive":922337203685.47754}'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - Date: ['Thu, 11 Aug 2016 21:34:58 GMT'] - Location: ['https://fakesbnamespace.servicebus.windows.net/utqueue652e21b9/messages/1/d4d2ca6d-7e59-4947-8c5e-4820ca342e60'] - Server: [Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000] - Transfer-Encoding: [chunked] - active: ['true'] - deceased: ['false'] - dob: ['"Wed, 14 Dec 2011 00:00:00 GMT"'] - double_quote_message: ['"This \"should\" work fine"'] - floating: ['3.14'] - hello: ['"world"'] - large: ['8555111000'] - number: ['42'] - quote_message: ['"This ''should'' work fine"'] - status: {code: 201, message: Created} -- request: - body: null - headers: - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.2] - method: DELETE - uri: https://fakesbnamespace.servicebus.windows.net/utqueue652e21b9/messages/1/d4d2ca6d-7e59-4947-8c5e-4820ca342e60 - response: - body: {string: ''} - headers: - Content-Type: [application/xml; charset=utf-8] - Date: ['Thu, 11 Aug 2016 21:34:58 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000] - Transfer-Encoding: [chunked] - status: {code: 200, message: OK} -version: 1 diff --git a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_send_queue_message_with_custom_message_type.yaml b/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_send_queue_message_with_custom_message_type.yaml deleted file mode 100644 index e21a09787f72..000000000000 --- a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_send_queue_message_with_custom_message_type.yaml +++ /dev/null @@ -1,97 +0,0 @@ -interactions: -- request: - body: !!binary | - PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiIHN0YW5kYWxvbmU9InllcyI/Pjxl - bnRyeSB4bWxuczpkPSJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL2Fkby8yMDA3LzA4L2Rh - dGFzZXJ2aWNlcyIgeG1sbnM6bT0iaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9hZG8vMjAw - Ny8wOC9kYXRhc2VydmljZXMvbWV0YWRhdGEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDA1 - L0F0b20iPjx0aXRsZT48L3RpdGxlPjx1cGRhdGVkPjIwMTUtMDYtMzBUMjA6NTM6NTguMzcwNDk5 - KzAwOjAwPC91cGRhdGVkPjxhdXRob3I+PG5hbWU+PC9uYW1lPjwvYXV0aG9yPjxpZD48L2lkPjxj - b250ZW50IHR5cGU9ImFwcGxpY2F0aW9uL3htbCI+PFF1ZXVlRGVzY3JpcHRpb24geG1sbnM6aT0i - aHR0cDovL3d3dy53My5vcmcvMjAwMS9YTUxTY2hlbWEtaW5zdGFuY2UiIHhtbG5zPSJodHRwOi8v - c2NoZW1hcy5taWNyb3NvZnQuY29tL25ldHNlcnZpY2VzLzIwMTAvMTAvc2VydmljZWJ1cy9jb25u - ZWN0Ij48L1F1ZXVlRGVzY3JpcHRpb24+PC9jb250ZW50PjwvZW50cnk+ - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['555'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: PUT - uri: https://fakesbnamespace.servicebus.windows.net/utqueuea14d1f2e - response: - body: {string: 'https://fakesbnamespace.servicebus.windows.net/utqueuea14d1f2eutqueuea14d1f2e2015-06-30T20:54:00Z2015-06-30T20:54:00ZfakesbnamespacePT1M1024falsefalseP10675199DT2H48M5.4775807SfalsePT10M10true002015-06-30T20:54:00.832015-06-30T20:54:00.933'} - headers: - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:54:00 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 201, message: Created} -- request: - body: !!binary | - PHRleHQ+cGVlayBsb2NrIG1lc3NhZ2UgY3VzdG9tIG1lc3NhZ2UgdHlwZTwvdGV4dD4= - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['50'] - Content-Type: [text/xml] - User-Agent: [pyazure/0.20.0] - method: POST - uri: https://fakesbnamespace.servicebus.windows.net/utqueuea14d1f2e/messages - response: - body: {string: ''} - headers: - Content-Type: [application/xml; charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:54:00 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 201, message: Created} -- request: - body: null - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: POST - uri: https://fakesbnamespace.servicebus.windows.net/utqueuea14d1f2e/messages/head?timeout=5 - response: - body: {string: peek lock message custom message type} - headers: - BrokerProperties: ['{"DeliveryCount":1,"EnqueuedSequenceNumber":0,"EnqueuedTimeUtc":"Tue, - 30 Jun 2015 20:54:01 GMT","LockToken":"ae017ce4-a847-4711-8207-9a8484e13709","LockedUntilUtc":"Tue, - 30 Jun 2015 20:55:02 GMT","MessageId":"f0cf2548ab324885b901fa830df19ef9","SequenceNumber":1,"State":"Active","TimeToLive":922337203685.47754}'] - Content-Type: [text/xml] - Date: ['Tue, 30 Jun 2015 20:54:00 GMT'] - Location: ['https://fakesbnamespace.servicebus.windows.net/utqueuea14d1f2e/messages/1/ae017ce4-a847-4711-8207-9a8484e13709'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 201, message: Created} -- request: - body: null - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: DELETE - uri: https://fakesbnamespace.servicebus.windows.net/utqueuea14d1f2e/messages/1/ae017ce4-a847-4711-8207-9a8484e13709 - response: - body: {string: ''} - headers: - Content-Type: [application/xml; charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:54:01 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 200, message: OK} -version: 1 diff --git a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_send_topic_message.yaml b/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_send_topic_message.yaml deleted file mode 100644 index 62d792a6b761..000000000000 --- a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_send_topic_message.yaml +++ /dev/null @@ -1,88 +0,0 @@ -interactions: -- request: - body: !!binary | - PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiIHN0YW5kYWxvbmU9InllcyI/Pjxl - bnRyeSB4bWxuczpkPSJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL2Fkby8yMDA3LzA4L2Rh - dGFzZXJ2aWNlcyIgeG1sbnM6bT0iaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9hZG8vMjAw - Ny8wOC9kYXRhc2VydmljZXMvbWV0YWRhdGEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDA1 - L0F0b20iPjx0aXRsZT48L3RpdGxlPjx1cGRhdGVkPjIwMTUtMDYtMzBUMjA6NTI6NTQuNjkxMDQy - KzAwOjAwPC91cGRhdGVkPjxhdXRob3I+PG5hbWU+PC9uYW1lPjwvYXV0aG9yPjxpZD48L2lkPjxj - b250ZW50IHR5cGU9ImFwcGxpY2F0aW9uL3htbCI+PFRvcGljRGVzY3JpcHRpb24geG1sbnM6aT0i - aHR0cDovL3d3dy53My5vcmcvMjAwMS9YTUxTY2hlbWEtaW5zdGFuY2UiIHhtbG5zPSJodHRwOi8v - c2NoZW1hcy5taWNyb3NvZnQuY29tL25ldHNlcnZpY2VzLzIwMTAvMTAvc2VydmljZWJ1cy9jb25u - ZWN0Ij48L1RvcGljRGVzY3JpcHRpb24+PC9jb250ZW50PjwvZW50cnk+ - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['555'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: PUT - uri: https://fakesbnamespace.servicebus.windows.net/uttopic135114ae - response: - body: {string: 'https://fakesbnamespace.servicebus.windows.net/uttopic135114aeuttopic135114ae2015-06-30T20:52:57Z2015-06-30T20:52:57ZfakesbnamespaceP10675199DT2H48M5.4775807S1024falsePT10Mtrue02015-06-30T20:52:57.1172015-06-30T20:52:57.497'} - headers: - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:52:57 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 201, message: Created} -- request: - body: !!binary | - PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiIHN0YW5kYWxvbmU9InllcyI/Pjxl - bnRyeSB4bWxuczpkPSJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL2Fkby8yMDA3LzA4L2Rh - dGFzZXJ2aWNlcyIgeG1sbnM6bT0iaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9hZG8vMjAw - Ny8wOC9kYXRhc2VydmljZXMvbWV0YWRhdGEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDA1 - L0F0b20iPjx0aXRsZT48L3RpdGxlPjx1cGRhdGVkPjIwMTUtMDYtMzBUMjA6NTI6NTYuNjIyMDk4 - KzAwOjAwPC91cGRhdGVkPjxhdXRob3I+PG5hbWU+PC9uYW1lPjwvYXV0aG9yPjxpZD48L2lkPjxj - b250ZW50IHR5cGU9ImFwcGxpY2F0aW9uL3htbCI+PFN1YnNjcmlwdGlvbkRlc2NyaXB0aW9uIHht - bG5zOmk9Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvWE1MU2NoZW1hLWluc3RhbmNlIiB4bWxucz0i - aHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9uZXRzZXJ2aWNlcy8yMDEwLzEwL3NlcnZpY2Vi - dXMvY29ubmVjdCI+PC9TdWJzY3JpcHRpb25EZXNjcmlwdGlvbj48L2NvbnRlbnQ+PC9lbnRyeT4= - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['569'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: PUT - uri: https://fakesbnamespace.servicebus.windows.net/uttopic135114ae/subscriptions/MySubscription - response: - body: {string: 'https://fakesbnamespace.servicebus.windows.net/uttopic135114ae/subscriptions/MySubscriptionMySubscription2015-06-30T20:52:57Z2015-06-30T20:52:57ZPT1MfalseP10675199DT2H48M5.4775807Sfalsetrue010true'} - headers: - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:52:57 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 201, message: Created} -- request: - body: !!binary | - c3Vic2NyaXB0aW9uIG1lc3NhZ2U= - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['20'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: POST - uri: https://fakesbnamespace.servicebus.windows.net/uttopic135114ae/messages - response: - body: {string: ''} - headers: - Content-Type: [application/xml; charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:52:58 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 201, message: Created} -version: 1 diff --git a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_send_topic_message_batch.yaml b/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_send_topic_message_batch.yaml deleted file mode 100644 index 268d178ca12d..000000000000 --- a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_send_topic_message_batch.yaml +++ /dev/null @@ -1,143 +0,0 @@ -interactions: -- request: - body: 2017-01-12T00:11:57.418988+00:00 - headers: - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['555'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.3] - method: PUT - uri: https://fakesbnamespace.servicebus.windows.net/uttopic9797170f - response: - body: {string: 'https://fakesbnamespace.servicebus.windows.net/uttopic9797170futtopic9797170f2017-01-12T00:11:59Z2017-01-12T00:11:59ZfakesbnamespaceP10675199DT2H48M5.4775807S1024falsePT10Mtrue02017-01-12T00:11:59.1872017-01-12T00:11:59.217'} - headers: - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - Date: ['Thu, 12 Jan 2017 00:11:57 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000] - Transfer-Encoding: [chunked] - status: {code: 201, message: Created} -- request: - body: 2017-01-12T00:11:58.462997+00:00 - headers: - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['569'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.3] - method: PUT - uri: https://fakesbnamespace.servicebus.windows.net/uttopic9797170f/subscriptions/MySubscription - response: - body: {string: 'https://fakesbnamespace.servicebus.windows.net/uttopic9797170f/subscriptions/MySubscriptionMySubscription2017-01-12T00:11:58Z2017-01-12T00:11:58ZPT1MfalseP10675199DT2H48M5.4775807Sfalsetrue010true'} - headers: - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - Date: ['Thu, 12 Jan 2017 00:11:57 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000] - Transfer-Encoding: [chunked] - status: {code: 201, message: Created} -- request: - body: '[{"BrokerProperties": {"Label": "M1", "TimeToLiveTimeSpan": "0.00:00:40"}, - "Body": "This is the first message"}, {"UserProperties": {"Priority": "Low"}, - "BrokerProperties": {"Label": "M2"}, "Body": "This is the second message"}, - {"UserProperties": {"Priority": "Medium", "Customer": "ABC"}, "BrokerProperties": - {"Label": "M3"}, "Body": "This is the third message"}]' - headers: - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['365'] - Content-Type: [application/vnd.microsoft.servicebus.json] - User-Agent: [pyazure/0.20.3] - method: POST - uri: https://fakesbnamespace.servicebus.windows.net/uttopic9797170f/messages - response: - body: {string: ''} - headers: - Content-Type: [application/xml; charset=utf-8] - Date: ['Thu, 12 Jan 2017 00:11:58 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000] - Transfer-Encoding: [chunked] - status: {code: 201, message: Created} -- request: - body: null - headers: - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.3] - method: DELETE - uri: https://fakesbnamespace.servicebus.windows.net/uttopic9797170f/subscriptions/MySubscription/messages/head?timeout=60 - response: - body: {string: This is the first message} - headers: - BrokerProperties: ['{"DeliveryCount":1,"EnqueuedSequenceNumber":1,"EnqueuedTimeUtc":"Thu, - 12 Jan 2017 00:11:57 GMT","Label":"M1","MessageId":"152222cc675d4351b5a9182f7f67be38","SequenceNumber":1,"State":"Active","TimeToLive":40}'] - Content-Type: [application/xml; charset=utf-8] - Date: ['Thu, 12 Jan 2017 00:11:58 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000] - Transfer-Encoding: [chunked] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.3] - method: DELETE - uri: https://fakesbnamespace.servicebus.windows.net/uttopic9797170f/subscriptions/MySubscription/messages/head?timeout=60 - response: - body: {string: This is the second message} - headers: - BrokerProperties: ['{"DeliveryCount":1,"EnqueuedSequenceNumber":2,"EnqueuedTimeUtc":"Thu, - 12 Jan 2017 00:11:57 GMT","Label":"M2","MessageId":"c98d214ef1cd489ab26d5b4b3dc86ea7","SequenceNumber":2,"State":"Active","TimeToLive":922337203685.47754}'] - Content-Type: [application/xml; charset=utf-8] - Date: ['Thu, 12 Jan 2017 00:11:58 GMT'] - Priority: ['"Low"'] - Server: [Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000] - Transfer-Encoding: [chunked] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.3] - method: DELETE - uri: https://fakesbnamespace.servicebus.windows.net/uttopic9797170f/subscriptions/MySubscription/messages/head?timeout=60 - response: - body: {string: This is the third message} - headers: - BrokerProperties: ['{"DeliveryCount":1,"EnqueuedSequenceNumber":3,"EnqueuedTimeUtc":"Thu, - 12 Jan 2017 00:11:57 GMT","Label":"M3","MessageId":"74ada69b2f004e36959ee6693a587bba","SequenceNumber":3,"State":"Active","TimeToLive":922337203685.47754}'] - Content-Type: [application/xml; charset=utf-8] - Customer: ['"ABC"'] - Date: ['Thu, 12 Jan 2017 00:11:58 GMT'] - Priority: ['"Medium"'] - Server: [Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000] - Transfer-Encoding: [chunked] - status: {code: 200, message: OK} -version: 1 diff --git a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_send_topic_message_unicode.yaml b/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_send_topic_message_unicode.yaml deleted file mode 100644 index 8f487b909657..000000000000 --- a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_send_topic_message_unicode.yaml +++ /dev/null @@ -1,94 +0,0 @@ -interactions: -- request: - body: 2017-01-12T00:43:40.919154+00:00 - headers: - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['555'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.3] - method: PUT - uri: https://fakesbnamespace.servicebus.windows.net/uttopicc79317f4 - response: - body: {string: 'https://fakesbnamespace.servicebus.windows.net/uttopicc79317f4uttopicc79317f42017-01-12T00:43:42Z2017-01-12T00:43:42ZfakesbnamespaceP10675199DT2H48M5.4775807S1024falsePT10Mtrue02017-01-12T00:43:42.6772017-01-12T00:43:42.74'} - headers: - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - Date: ['Thu, 12 Jan 2017 00:43:41 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000] - Transfer-Encoding: [chunked] - status: {code: 201, message: Created} -- request: - body: 2017-01-12T00:43:41.975527+00:00 - headers: - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['569'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.3] - method: PUT - uri: https://fakesbnamespace.servicebus.windows.net/uttopicc79317f4/subscriptions/MySubscription - response: - body: {string: 'https://fakesbnamespace.servicebus.windows.net/uttopicc79317f4/subscriptions/MySubscriptionMySubscription2017-01-12T00:43:41Z2017-01-12T00:43:41ZPT1MfalseP10675199DT2H48M5.4775807Sfalsetrue010true'} - headers: - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - Date: ['Thu, 12 Jan 2017 00:43:41 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000] - Transfer-Encoding: [chunked] - status: {code: 201, message: Created} -- request: - body: "receive message\u554A\u9F44\u4E02\u72DB\u72DC" - headers: - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['30'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.3] - method: POST - uri: https://fakesbnamespace.servicebus.windows.net/uttopicc79317f4/messages - response: - body: {string: ''} - headers: - Content-Type: [application/xml; charset=utf-8] - Date: ['Thu, 12 Jan 2017 00:43:41 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000] - Transfer-Encoding: [chunked] - status: {code: 201, message: Created} -- request: - body: null - headers: - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.3] - method: DELETE - uri: https://fakesbnamespace.servicebus.windows.net/uttopicc79317f4/subscriptions/MySubscription/messages/head?timeout=60 - response: - body: {string: "receive message\u554A\u9F44\u4E02\u72DB\u72DC"} - headers: - BrokerProperties: ['{"DeliveryCount":1,"EnqueuedSequenceNumber":1,"EnqueuedTimeUtc":"Thu, - 12 Jan 2017 00:43:40 GMT","MessageId":"a15d42347c704e56a018ba578552a068","SequenceNumber":1,"State":"Active","TimeToLive":922337203685.47754}'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - Date: ['Thu, 12 Jan 2017 00:43:41 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000] - Transfer-Encoding: [chunked] - status: {code: 200, message: OK} -version: 1 diff --git a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_unicode_create_queue_unicode_name.yaml b/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_unicode_create_queue_unicode_name.yaml deleted file mode 100644 index 2f5f16a7a4d6..000000000000 --- a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_unicode_create_queue_unicode_name.yaml +++ /dev/null @@ -1,32 +0,0 @@ -interactions: -- request: - body: !!binary | - PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiIHN0YW5kYWxvbmU9InllcyI/Pjxl - bnRyeSB4bWxuczpkPSJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL2Fkby8yMDA3LzA4L2Rh - dGFzZXJ2aWNlcyIgeG1sbnM6bT0iaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9hZG8vMjAw - Ny8wOC9kYXRhc2VydmljZXMvbWV0YWRhdGEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDA1 - L0F0b20iPjx0aXRsZT48L3RpdGxlPjx1cGRhdGVkPjIwMTUtMDYtMzBUMjA6NTM6NDYuNzM1MDk2 - KzAwOjAwPC91cGRhdGVkPjxhdXRob3I+PG5hbWU+PC9uYW1lPjwvYXV0aG9yPjxpZD48L2lkPjxj - b250ZW50IHR5cGU9ImFwcGxpY2F0aW9uL3htbCI+PFF1ZXVlRGVzY3JpcHRpb24geG1sbnM6aT0i - aHR0cDovL3d3dy53My5vcmcvMjAwMS9YTUxTY2hlbWEtaW5zdGFuY2UiIHhtbG5zPSJodHRwOi8v - c2NoZW1hcy5taWNyb3NvZnQuY29tL25ldHNlcnZpY2VzLzIwMTAvMTAvc2VydmljZWJ1cy9jb25u - ZWN0Ij48L1F1ZXVlRGVzY3JpcHRpb24+PC9jb250ZW50PjwvZW50cnk+ - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['555'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: PUT - uri: https://fakesbnamespace.servicebus.windows.net/utqueue7a121ac6%E5%95%8A%E9%BD%84%E4%B8%82%E7%8B%9B%E7%8B%9C - response: - body: {string: '400Incorrect request Uri format. TrackingId:a27a9087-9994-4db9-aaf5-4a1146dcdbfe_G18,TimeStamp:6/30/2015 - 8:53:49 PM'} - headers: - Content-Type: [application/xml; charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:53:48 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 400, message: Bad Request} -version: 1 diff --git a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_unicode_create_rule_unicode_name.yaml b/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_unicode_create_rule_unicode_name.yaml deleted file mode 100644 index ecbdb0cd7429..000000000000 --- a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_unicode_create_rule_unicode_name.yaml +++ /dev/null @@ -1,101 +0,0 @@ -interactions: -- request: - body: !!binary | - PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiIHN0YW5kYWxvbmU9InllcyI/Pjxl - bnRyeSB4bWxuczpkPSJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL2Fkby8yMDA3LzA4L2Rh - dGFzZXJ2aWNlcyIgeG1sbnM6bT0iaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9hZG8vMjAw - Ny8wOC9kYXRhc2VydmljZXMvbWV0YWRhdGEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDA1 - L0F0b20iPjx0aXRsZT48L3RpdGxlPjx1cGRhdGVkPjIwMTUtMDYtMzBUMjA6NTU6MTUuNjIxNzcw - KzAwOjAwPC91cGRhdGVkPjxhdXRob3I+PG5hbWU+PC9uYW1lPjwvYXV0aG9yPjxpZD48L2lkPjxj - b250ZW50IHR5cGU9ImFwcGxpY2F0aW9uL3htbCI+PFRvcGljRGVzY3JpcHRpb24geG1sbnM6aT0i - aHR0cDovL3d3dy53My5vcmcvMjAwMS9YTUxTY2hlbWEtaW5zdGFuY2UiIHhtbG5zPSJodHRwOi8v - c2NoZW1hcy5taWNyb3NvZnQuY29tL25ldHNlcnZpY2VzLzIwMTAvMTAvc2VydmljZWJ1cy9jb25u - ZWN0Ij48L1RvcGljRGVzY3JpcHRpb24+PC9jb250ZW50PjwvZW50cnk+ - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['555'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: PUT - uri: https://fakesbnamespace.servicebus.windows.net/uttopic5f0b1a59 - response: - body: {string: 'https://fakesbnamespace.servicebus.windows.net/uttopic5f0b1a59uttopic5f0b1a592015-06-30T20:55:17Z2015-06-30T20:55:17ZfakesbnamespaceP10675199DT2H48M5.4775807S1024falsePT10Mtrue02015-06-30T20:55:17.8372015-06-30T20:55:17.93'} - headers: - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:55:17 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 201, message: Created} -- request: - body: !!binary | - PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiIHN0YW5kYWxvbmU9InllcyI/Pjxl - bnRyeSB4bWxuczpkPSJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL2Fkby8yMDA3LzA4L2Rh - dGFzZXJ2aWNlcyIgeG1sbnM6bT0iaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9hZG8vMjAw - Ny8wOC9kYXRhc2VydmljZXMvbWV0YWRhdGEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDA1 - L0F0b20iPjx0aXRsZT48L3RpdGxlPjx1cGRhdGVkPjIwMTUtMDYtMzBUMjA6NTU6MTcuMDA4MTIz - KzAwOjAwPC91cGRhdGVkPjxhdXRob3I+PG5hbWU+PC9uYW1lPjwvYXV0aG9yPjxpZD48L2lkPjxj - b250ZW50IHR5cGU9ImFwcGxpY2F0aW9uL3htbCI+PFN1YnNjcmlwdGlvbkRlc2NyaXB0aW9uIHht - bG5zOmk9Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvWE1MU2NoZW1hLWluc3RhbmNlIiB4bWxucz0i - aHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9uZXRzZXJ2aWNlcy8yMDEwLzEwL3NlcnZpY2Vi - dXMvY29ubmVjdCI+PC9TdWJzY3JpcHRpb25EZXNjcmlwdGlvbj48L2NvbnRlbnQ+PC9lbnRyeT4= - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['569'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: PUT - uri: https://fakesbnamespace.servicebus.windows.net/uttopic5f0b1a59/subscriptions/MySubscription - response: - body: {string: 'https://fakesbnamespace.servicebus.windows.net/uttopic5f0b1a59/subscriptions/MySubscriptionMySubscription2015-06-30T20:55:18Z2015-06-30T20:55:18ZPT1MfalseP10675199DT2H48M5.4775807Sfalsetrue010true'} - headers: - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:55:17 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 201, message: Created} -- request: - body: !!binary | - PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiIHN0YW5kYWxvbmU9InllcyI/Pjxl - bnRyeSB4bWxuczpkPSJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL2Fkby8yMDA3LzA4L2Rh - dGFzZXJ2aWNlcyIgeG1sbnM6bT0iaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9hZG8vMjAw - Ny8wOC9kYXRhc2VydmljZXMvbWV0YWRhdGEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDA1 - L0F0b20iPjx0aXRsZT48L3RpdGxlPjx1cGRhdGVkPjIwMTUtMDYtMzBUMjA6NTU6MTcuNjY1NTYw - KzAwOjAwPC91cGRhdGVkPjxhdXRob3I+PG5hbWU+PC9uYW1lPjwvYXV0aG9yPjxpZD48L2lkPjxj - b250ZW50IHR5cGU9ImFwcGxpY2F0aW9uL3htbCI+PFJ1bGVEZXNjcmlwdGlvbiB4bWxuczppPSJo - dHRwOi8vd3d3LnczLm9yZy8yMDAxL1hNTFNjaGVtYS1pbnN0YW5jZSIgeG1sbnM9Imh0dHA6Ly9z - Y2hlbWFzLm1pY3Jvc29mdC5jb20vbmV0c2VydmljZXMvMjAxMC8xMC9zZXJ2aWNlYnVzL2Nvbm5l - Y3QiPjwvUnVsZURlc2NyaXB0aW9uPjwvY29udGVudD48L2VudHJ5Pg== - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['553'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: PUT - uri: https://fakesbnamespace.servicebus.windows.net/uttopic5f0b1a59/subscriptions/MySubscription/rules/MyRule%E5%95%8A%E9%BD%84%E4%B8%82%E7%8B%9B%E7%8B%9C - response: - body: {string: '400''sb://fakesbnamespace.servicebus.windows.net/uttopic5f0b1a59/subscriptions/MySubscription/rules/MyRule%E5%95%8A%E9%BD%84%E4%B8%82%E7%8B%9B%E7%8B%9C'' - contains character(s) that is not allowed by Service Bus. Entity segments - can contain only letters, numbers, periods (.), hyphens (-), and underscores - (_). TrackingId:472a6105-8e72-4306-b1b8-1220d7e6ec88_G41,TimeStamp:6/30/2015 - 8:55:18 PM'} - headers: - Content-Type: [application/xml; charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:55:18 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 400, message: Bad Request} -version: 1 diff --git a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_unicode_create_subscription_unicode_name.yaml b/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_unicode_create_subscription_unicode_name.yaml deleted file mode 100644 index e6d4c59ce60c..000000000000 --- a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_unicode_create_subscription_unicode_name.yaml +++ /dev/null @@ -1,68 +0,0 @@ -interactions: -- request: - body: !!binary | - PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiIHN0YW5kYWxvbmU9InllcyI/Pjxl - bnRyeSB4bWxuczpkPSJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL2Fkby8yMDA3LzA4L2Rh - dGFzZXJ2aWNlcyIgeG1sbnM6bT0iaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9hZG8vMjAw - Ny8wOC9kYXRhc2VydmljZXMvbWV0YWRhdGEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDA1 - L0F0b20iPjx0aXRsZT48L3RpdGxlPjx1cGRhdGVkPjIwMTUtMDYtMzBUMjA6NTE6MzIuNDg3NTk3 - KzAwOjAwPC91cGRhdGVkPjxhdXRob3I+PG5hbWU+PC9uYW1lPjwvYXV0aG9yPjxpZD48L2lkPjxj - b250ZW50IHR5cGU9ImFwcGxpY2F0aW9uL3htbCI+PFRvcGljRGVzY3JpcHRpb24geG1sbnM6aT0i - aHR0cDovL3d3dy53My5vcmcvMjAwMS9YTUxTY2hlbWEtaW5zdGFuY2UiIHhtbG5zPSJodHRwOi8v - c2NoZW1hcy5taWNyb3NvZnQuY29tL25ldHNlcnZpY2VzLzIwMTAvMTAvc2VydmljZWJ1cy9jb25u - ZWN0Ij48L1RvcGljRGVzY3JpcHRpb24+PC9jb250ZW50PjwvZW50cnk+ - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['555'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: PUT - uri: https://fakesbnamespace.servicebus.windows.net/uttopic43941dc6 - response: - body: {string: 'https://fakesbnamespace.servicebus.windows.net/uttopic43941dc6uttopic43941dc62015-06-30T20:51:34Z2015-06-30T20:51:34ZfakesbnamespaceP10675199DT2H48M5.4775807S1024falsePT10Mtrue02015-06-30T20:51:34.6872015-06-30T20:51:34.88'} - headers: - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:51:33 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 201, message: Created} -- request: - body: !!binary | - PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiIHN0YW5kYWxvbmU9InllcyI/Pjxl - bnRyeSB4bWxuczpkPSJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL2Fkby8yMDA3LzA4L2Rh - dGFzZXJ2aWNlcyIgeG1sbnM6bT0iaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9hZG8vMjAw - Ny8wOC9kYXRhc2VydmljZXMvbWV0YWRhdGEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDA1 - L0F0b20iPjx0aXRsZT48L3RpdGxlPjx1cGRhdGVkPjIwMTUtMDYtMzBUMjA6NTE6MzMuOTUyMzA5 - KzAwOjAwPC91cGRhdGVkPjxhdXRob3I+PG5hbWU+PC9uYW1lPjwvYXV0aG9yPjxpZD48L2lkPjxj - b250ZW50IHR5cGU9ImFwcGxpY2F0aW9uL3htbCI+PFN1YnNjcmlwdGlvbkRlc2NyaXB0aW9uIHht - bG5zOmk9Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvWE1MU2NoZW1hLWluc3RhbmNlIiB4bWxucz0i - aHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9uZXRzZXJ2aWNlcy8yMDEwLzEwL3NlcnZpY2Vi - dXMvY29ubmVjdCI+PC9TdWJzY3JpcHRpb25EZXNjcmlwdGlvbj48L2NvbnRlbnQ+PC9lbnRyeT4= - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['569'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: PUT - uri: https://fakesbnamespace.servicebus.windows.net/uttopic43941dc6/subscriptions/MySubscription%E5%95%8A%E9%BD%84%E4%B8%82%E7%8B%9B%E7%8B%9C - response: - body: {string: '400''sb://fakesbnamespace.servicebus.windows.net/uttopic43941dc6/subscriptions/MySubscription%E5%95%8A%E9%BD%84%E4%B8%82%E7%8B%9B%E7%8B%9C'' - contains character(s) that is not allowed by Service Bus. Entity segments - can contain only letters, numbers, periods (.), hyphens (-), and underscores - (_). TrackingId:0f0ec032-9a77-40c1-89a3-12de818a49f5_G46,TimeStamp:6/30/2015 - 8:51:35 PM'} - headers: - Content-Type: [application/xml; charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:51:35 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 400, message: Bad Request} -version: 1 diff --git a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_unicode_receive_queue_message_binary_data.yaml b/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_unicode_receive_queue_message_binary_data.yaml deleted file mode 100644 index c1d93fd16def..000000000000 --- a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_unicode_receive_queue_message_binary_data.yaml +++ /dev/null @@ -1,112 +0,0 @@ -interactions: -- request: - body: !!binary | - PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiIHN0YW5kYWxvbmU9InllcyI/Pjxl - bnRyeSB4bWxuczpkPSJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL2Fkby8yMDA3LzA4L2Rh - dGFzZXJ2aWNlcyIgeG1sbnM6bT0iaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9hZG8vMjAw - Ny8wOC9kYXRhc2VydmljZXMvbWV0YWRhdGEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDA1 - L0F0b20iPjx0aXRsZT48L3RpdGxlPjx1cGRhdGVkPjIwMTUtMDYtMzBUMjA6NTc6MDMuMjg1MzE4 - KzAwOjAwPC91cGRhdGVkPjxhdXRob3I+PG5hbWU+PC9uYW1lPjwvYXV0aG9yPjxpZD48L2lkPjxj - b250ZW50IHR5cGU9ImFwcGxpY2F0aW9uL3htbCI+PFF1ZXVlRGVzY3JpcHRpb24geG1sbnM6aT0i - aHR0cDovL3d3dy53My5vcmcvMjAwMS9YTUxTY2hlbWEtaW5zdGFuY2UiIHhtbG5zPSJodHRwOi8v - c2NoZW1hcy5taWNyb3NvZnQuY29tL25ldHNlcnZpY2VzLzIwMTAvMTAvc2VydmljZWJ1cy9jb25u - ZWN0Ij48L1F1ZXVlRGVzY3JpcHRpb24+PC9jb250ZW50PjwvZW50cnk+ - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['555'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: PUT - uri: https://fakesbnamespace.servicebus.windows.net/utqueue5f9c1e10 - response: - body: {string: 'https://fakesbnamespace.servicebus.windows.net/utqueue5f9c1e10utqueue5f9c1e102015-06-30T20:57:05Z2015-06-30T20:57:05ZfakesbnamespacePT1M1024falsefalseP10675199DT2H48M5.4775807SfalsePT10M10true002015-06-30T20:57:05.5432015-06-30T20:57:05.643'} - headers: - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:57:05 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 201, message: Created} -- request: - body: !!binary | - AAECAwQFBgcICQoLDA0ODxAREhMUFRYXGBkaGxwdHh8gISIjJCUmJygpKissLS4vMDEyMzQ1Njc4 - OTo7PD0+P0BBQkNERUZHSElKS0xNTk9QUVJTVFVWV1hZWltcXV5fYGFiY2RlZmdoaWprbG1ub3Bx - cnN0dXZ3eHl6e3x9fn+AgYKDhIWGh4iJiouMjY6PkJGSk5SVlpeYmZqbnJ2en6ChoqOkpaanqKmq - q6ytrq+wsbKztLW2t7i5uru8vb6/wMHCw8TFxsfIycrLzM3Oz9DR0tPU1dbX2Nna29zd3t/g4eLj - 5OXm5+jp6uvs7e7v8PHy8/T19vf4+fr7/P3+/wABAgMEBQYHCAkKCwwNDg8QERITFBUWFxgZGhsc - HR4fICEiIyQlJicoKSorLC0uLzAxMjM0NTY3ODk6Ozw9Pj9AQUJDREVGR0hJSktMTU5PUFFSU1RV - VldYWVpbXF1eX2BhYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ent8fX5/gIGCg4SFhoeIiYqLjI2O - j5CRkpOUlZaXmJmam5ydnp+goaKjpKWmp6ipqqusra6vsLGys7S1tre4ubq7vL2+v8DBwsPExcbH - yMnKy8zNzs/Q0dLT1NXW19jZ2tvc3d7f4OHi4+Tl5ufo6err7O3u7/Dx8vP09fb3+Pn6+/z9/v8A - AQIDBAUGBwgJCgsMDQ4PEBESExQVFhcYGRobHB0eHyAhIiMkJSYnKCkqKywtLi8wMTIzNDU2Nzg5 - Ojs8PT4/QEFCQ0RFRkdISUpLTE1OT1BRUlNUVVZXWFlaW1xdXl9gYWJjZGVmZ2hpamtsbW5vcHFy - c3R1dnd4eXp7fH1+f4CBgoOEhYaHiImKi4yNjo+QkZKTlJWWl5iZmpucnZ6foKGio6Slpqeoqaqr - rK2ur7CxsrO0tba3uLm6u7y9vr/AwcLDxMXGx8jJysvMzc7P0NHS09TV1tfY2drb3N3e3+Dh4uPk - 5ebn6Onq6+zt7u/w8fLz9PX29/j5+vv8/f7/AAECAwQFBgcICQoLDA0ODxAREhMUFRYXGBkaGxwd - Hh8gISIjJCUmJygpKissLS4vMDEyMzQ1Njc4OTo7PD0+P0BBQkNERUZHSElKS0xNTk9QUVJTVFVW - V1hZWltcXV5fYGFiY2RlZmdoaWprbG1ub3BxcnN0dXZ3eHl6e3x9fn+AgYKDhIWGh4iJiouMjY6P - kJGSk5SVlpeYmZqbnJ2en6ChoqOkpaanqKmqq6ytrq+wsbKztLW2t7i5uru8vb6/wMHCw8TFxsfI - ycrLzM3Oz9DR0tPU1dbX2Nna29zd3t/g4eLj5OXm5+jp6uvs7e7v8PHy8/T19vf4+fr7/P3+/w== - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['1024'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: POST - uri: https://fakesbnamespace.servicebus.windows.net/utqueue5f9c1e10/messages - response: - body: {string: ''} - headers: - Content-Type: [application/xml; charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:57:05 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 201, message: Created} -- request: - body: null - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: DELETE - uri: https://fakesbnamespace.servicebus.windows.net/utqueue5f9c1e10/messages/head?timeout=60 - response: - body: - string: !!binary | - AAECAwQFBgcICQoLDA0ODxAREhMUFRYXGBkaGxwdHh8gISIjJCUmJygpKissLS4vMDEyMzQ1Njc4 - OTo7PD0+P0BBQkNERUZHSElKS0xNTk9QUVJTVFVWV1hZWltcXV5fYGFiY2RlZmdoaWprbG1ub3Bx - cnN0dXZ3eHl6e3x9fn+AgYKDhIWGh4iJiouMjY6PkJGSk5SVlpeYmZqbnJ2en6ChoqOkpaanqKmq - q6ytrq+wsbKztLW2t7i5uru8vb6/wMHCw8TFxsfIycrLzM3Oz9DR0tPU1dbX2Nna29zd3t/g4eLj - 5OXm5+jp6uvs7e7v8PHy8/T19vf4+fr7/P3+/wABAgMEBQYHCAkKCwwNDg8QERITFBUWFxgZGhsc - HR4fICEiIyQlJicoKSorLC0uLzAxMjM0NTY3ODk6Ozw9Pj9AQUJDREVGR0hJSktMTU5PUFFSU1RV - VldYWVpbXF1eX2BhYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ent8fX5/gIGCg4SFhoeIiYqLjI2O - j5CRkpOUlZaXmJmam5ydnp+goaKjpKWmp6ipqqusra6vsLGys7S1tre4ubq7vL2+v8DBwsPExcbH - yMnKy8zNzs/Q0dLT1NXW19jZ2tvc3d7f4OHi4+Tl5ufo6err7O3u7/Dx8vP09fb3+Pn6+/z9/v8A - AQIDBAUGBwgJCgsMDQ4PEBESExQVFhcYGRobHB0eHyAhIiMkJSYnKCkqKywtLi8wMTIzNDU2Nzg5 - Ojs8PT4/QEFCQ0RFRkdISUpLTE1OT1BRUlNUVVZXWFlaW1xdXl9gYWJjZGVmZ2hpamtsbW5vcHFy - c3R1dnd4eXp7fH1+f4CBgoOEhYaHiImKi4yNjo+QkZKTlJWWl5iZmpucnZ6foKGio6Slpqeoqaqr - rK2ur7CxsrO0tba3uLm6u7y9vr/AwcLDxMXGx8jJysvMzc7P0NHS09TV1tfY2drb3N3e3+Dh4uPk - 5ebn6Onq6+zt7u/w8fLz9PX29/j5+vv8/f7/AAECAwQFBgcICQoLDA0ODxAREhMUFRYXGBkaGxwd - Hh8gISIjJCUmJygpKissLS4vMDEyMzQ1Njc4OTo7PD0+P0BBQkNERUZHSElKS0xNTk9QUVJTVFVW - V1hZWltcXV5fYGFiY2RlZmdoaWprbG1ub3BxcnN0dXZ3eHl6e3x9fn+AgYKDhIWGh4iJiouMjY6P - kJGSk5SVlpeYmZqbnJ2en6ChoqOkpaanqKmqq6ytrq+wsbKztLW2t7i5uru8vb6/wMHCw8TFxsfI - ycrLzM3Oz9DR0tPU1dbX2Nna29zd3t/g4eLj5OXm5+jp6uvs7e7v8PHy8/T19vf4+fr7/P3+/w== - headers: - BrokerProperties: ['{"DeliveryCount":1,"EnqueuedSequenceNumber":0,"EnqueuedTimeUtc":"Tue, - 30 Jun 2015 20:57:05 GMT","MessageId":"e266353222ef409984fd78047f05b1db","SequenceNumber":1,"State":"Active","TimeToLive":922337203685.47754}'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:57:05 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 200, message: OK} -version: 1 diff --git a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_unicode_receive_queue_message_unicode_data.yaml b/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_unicode_receive_queue_message_unicode_data.yaml deleted file mode 100644 index c187b55a85fb..000000000000 --- a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_unicode_receive_queue_message_unicode_data.yaml +++ /dev/null @@ -1,76 +0,0 @@ -interactions: -- request: - body: !!binary | - PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiIHN0YW5kYWxvbmU9InllcyI/Pjxl - bnRyeSB4bWxuczpkPSJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL2Fkby8yMDA3LzA4L2Rh - dGFzZXJ2aWNlcyIgeG1sbnM6bT0iaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9hZG8vMjAw - Ny8wOC9kYXRhc2VydmljZXMvbWV0YWRhdGEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDA1 - L0F0b20iPjx0aXRsZT48L3RpdGxlPjx1cGRhdGVkPjIwMTUtMDYtMzBUMjA6NTA6NTMuOTQzOTYx - KzAwOjAwPC91cGRhdGVkPjxhdXRob3I+PG5hbWU+PC9uYW1lPjwvYXV0aG9yPjxpZD48L2lkPjxj - b250ZW50IHR5cGU9ImFwcGxpY2F0aW9uL3htbCI+PFF1ZXVlRGVzY3JpcHRpb24geG1sbnM6aT0i - aHR0cDovL3d3dy53My5vcmcvMjAwMS9YTUxTY2hlbWEtaW5zdGFuY2UiIHhtbG5zPSJodHRwOi8v - c2NoZW1hcy5taWNyb3NvZnQuY29tL25ldHNlcnZpY2VzLzIwMTAvMTAvc2VydmljZWJ1cy9jb25u - ZWN0Ij48L1F1ZXVlRGVzY3JpcHRpb24+PC9jb250ZW50PjwvZW50cnk+ - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['555'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: PUT - uri: https://fakesbnamespace.servicebus.windows.net/utqueue7e611e72 - response: - body: {string: 'https://fakesbnamespace.servicebus.windows.net/utqueue7e611e72utqueue7e611e722015-06-30T20:50:56Z2015-06-30T20:50:56ZfakesbnamespacePT1M1024falsefalseP10675199DT2H48M5.4775807SfalsePT10M10true002015-06-30T20:50:56.032015-06-30T20:50:56.12'} - headers: - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:50:55 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 201, message: Created} -- request: - body: !!binary | - cmVjZWl2ZSBtZXNzYWdl5ZWK6b2E5LiC54ub54uc - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['30'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: POST - uri: https://fakesbnamespace.servicebus.windows.net/utqueue7e611e72/messages - response: - body: {string: ''} - headers: - Content-Type: [application/xml; charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:50:56 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 201, message: Created} -- request: - body: null - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: DELETE - uri: https://fakesbnamespace.servicebus.windows.net/utqueue7e611e72/messages/head?timeout=60 - response: - body: {string: "receive message\u554A\u9F44\u4E02\u72DB\u72DC"} - headers: - BrokerProperties: ['{"DeliveryCount":1,"EnqueuedSequenceNumber":0,"EnqueuedTimeUtc":"Tue, - 30 Jun 2015 20:50:56 GMT","MessageId":"802f109effc94949850a142221828020","SequenceNumber":1,"State":"Active","TimeToLive":922337203685.47754}'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:50:56 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 200, message: OK} -version: 1 diff --git a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_unicode_receive_subscription_message_binary_data.yaml b/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_unicode_receive_subscription_message_binary_data.yaml deleted file mode 100644 index 9dcabc05a700..000000000000 --- a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_unicode_receive_subscription_message_binary_data.yaml +++ /dev/null @@ -1,145 +0,0 @@ -interactions: -- request: - body: !!binary | - PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiIHN0YW5kYWxvbmU9InllcyI/Pjxl - bnRyeSB4bWxuczpkPSJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL2Fkby8yMDA3LzA4L2Rh - dGFzZXJ2aWNlcyIgeG1sbnM6bT0iaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9hZG8vMjAw - Ny8wOC9kYXRhc2VydmljZXMvbWV0YWRhdGEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDA1 - L0F0b20iPjx0aXRsZT48L3RpdGxlPjx1cGRhdGVkPjIwMTUtMDYtMzBUMjA6NTc6MTUuMDMyMTAy - KzAwOjAwPC91cGRhdGVkPjxhdXRob3I+PG5hbWU+PC9uYW1lPjwvYXV0aG9yPjxpZD48L2lkPjxj - b250ZW50IHR5cGU9ImFwcGxpY2F0aW9uL3htbCI+PFRvcGljRGVzY3JpcHRpb24geG1sbnM6aT0i - aHR0cDovL3d3dy53My5vcmcvMjAwMS9YTUxTY2hlbWEtaW5zdGFuY2UiIHhtbG5zPSJodHRwOi8v - c2NoZW1hcy5taWNyb3NvZnQuY29tL25ldHNlcnZpY2VzLzIwMTAvMTAvc2VydmljZWJ1cy9jb25u - ZWN0Ij48L1RvcGljRGVzY3JpcHRpb24+PC9jb250ZW50PjwvZW50cnk+ - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['555'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: PUT - uri: https://fakesbnamespace.servicebus.windows.net/uttopic41272110 - response: - body: {string: 'https://fakesbnamespace.servicebus.windows.net/uttopic41272110uttopic412721102015-06-30T20:57:17Z2015-06-30T20:57:17ZfakesbnamespaceP10675199DT2H48M5.4775807S1024falsePT10Mtrue02015-06-30T20:57:17.252015-06-30T20:57:17.49'} - headers: - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:57:17 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 201, message: Created} -- request: - body: !!binary | - PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiIHN0YW5kYWxvbmU9InllcyI/Pjxl - bnRyeSB4bWxuczpkPSJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL2Fkby8yMDA3LzA4L2Rh - dGFzZXJ2aWNlcyIgeG1sbnM6bT0iaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9hZG8vMjAw - Ny8wOC9kYXRhc2VydmljZXMvbWV0YWRhdGEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDA1 - L0F0b20iPjx0aXRsZT48L3RpdGxlPjx1cGRhdGVkPjIwMTUtMDYtMzBUMjA6NTc6MTYuNTc5MDIz - KzAwOjAwPC91cGRhdGVkPjxhdXRob3I+PG5hbWU+PC9uYW1lPjwvYXV0aG9yPjxpZD48L2lkPjxj - b250ZW50IHR5cGU9ImFwcGxpY2F0aW9uL3htbCI+PFN1YnNjcmlwdGlvbkRlc2NyaXB0aW9uIHht - bG5zOmk9Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvWE1MU2NoZW1hLWluc3RhbmNlIiB4bWxucz0i - aHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9uZXRzZXJ2aWNlcy8yMDEwLzEwL3NlcnZpY2Vi - dXMvY29ubmVjdCI+PC9TdWJzY3JpcHRpb25EZXNjcmlwdGlvbj48L2NvbnRlbnQ+PC9lbnRyeT4= - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['569'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: PUT - uri: https://fakesbnamespace.servicebus.windows.net/uttopic41272110/subscriptions/MySubscription - response: - body: {string: 'https://fakesbnamespace.servicebus.windows.net/uttopic41272110/subscriptions/MySubscriptionMySubscription2015-06-30T20:57:18Z2015-06-30T20:57:18ZPT1MfalseP10675199DT2H48M5.4775807Sfalsetrue010true'} - headers: - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:57:17 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 201, message: Created} -- request: - body: !!binary | - AAECAwQFBgcICQoLDA0ODxAREhMUFRYXGBkaGxwdHh8gISIjJCUmJygpKissLS4vMDEyMzQ1Njc4 - OTo7PD0+P0BBQkNERUZHSElKS0xNTk9QUVJTVFVWV1hZWltcXV5fYGFiY2RlZmdoaWprbG1ub3Bx - cnN0dXZ3eHl6e3x9fn+AgYKDhIWGh4iJiouMjY6PkJGSk5SVlpeYmZqbnJ2en6ChoqOkpaanqKmq - q6ytrq+wsbKztLW2t7i5uru8vb6/wMHCw8TFxsfIycrLzM3Oz9DR0tPU1dbX2Nna29zd3t/g4eLj - 5OXm5+jp6uvs7e7v8PHy8/T19vf4+fr7/P3+/wABAgMEBQYHCAkKCwwNDg8QERITFBUWFxgZGhsc - HR4fICEiIyQlJicoKSorLC0uLzAxMjM0NTY3ODk6Ozw9Pj9AQUJDREVGR0hJSktMTU5PUFFSU1RV - VldYWVpbXF1eX2BhYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ent8fX5/gIGCg4SFhoeIiYqLjI2O - j5CRkpOUlZaXmJmam5ydnp+goaKjpKWmp6ipqqusra6vsLGys7S1tre4ubq7vL2+v8DBwsPExcbH - yMnKy8zNzs/Q0dLT1NXW19jZ2tvc3d7f4OHi4+Tl5ufo6err7O3u7/Dx8vP09fb3+Pn6+/z9/v8A - AQIDBAUGBwgJCgsMDQ4PEBESExQVFhcYGRobHB0eHyAhIiMkJSYnKCkqKywtLi8wMTIzNDU2Nzg5 - Ojs8PT4/QEFCQ0RFRkdISUpLTE1OT1BRUlNUVVZXWFlaW1xdXl9gYWJjZGVmZ2hpamtsbW5vcHFy - c3R1dnd4eXp7fH1+f4CBgoOEhYaHiImKi4yNjo+QkZKTlJWWl5iZmpucnZ6foKGio6Slpqeoqaqr - rK2ur7CxsrO0tba3uLm6u7y9vr/AwcLDxMXGx8jJysvMzc7P0NHS09TV1tfY2drb3N3e3+Dh4uPk - 5ebn6Onq6+zt7u/w8fLz9PX29/j5+vv8/f7/AAECAwQFBgcICQoLDA0ODxAREhMUFRYXGBkaGxwd - Hh8gISIjJCUmJygpKissLS4vMDEyMzQ1Njc4OTo7PD0+P0BBQkNERUZHSElKS0xNTk9QUVJTVFVW - V1hZWltcXV5fYGFiY2RlZmdoaWprbG1ub3BxcnN0dXZ3eHl6e3x9fn+AgYKDhIWGh4iJiouMjY6P - kJGSk5SVlpeYmZqbnJ2en6ChoqOkpaanqKmqq6ytrq+wsbKztLW2t7i5uru8vb6/wMHCw8TFxsfI - ycrLzM3Oz9DR0tPU1dbX2Nna29zd3t/g4eLj5OXm5+jp6uvs7e7v8PHy8/T19vf4+fr7/P3+/w== - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['1024'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: POST - uri: https://fakesbnamespace.servicebus.windows.net/uttopic41272110/messages - response: - body: {string: ''} - headers: - Content-Type: [application/xml; charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:57:17 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 201, message: Created} -- request: - body: null - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: DELETE - uri: https://fakesbnamespace.servicebus.windows.net/uttopic41272110/subscriptions/MySubscription/messages/head?timeout=60 - response: - body: - string: !!binary | - AAECAwQFBgcICQoLDA0ODxAREhMUFRYXGBkaGxwdHh8gISIjJCUmJygpKissLS4vMDEyMzQ1Njc4 - OTo7PD0+P0BBQkNERUZHSElKS0xNTk9QUVJTVFVWV1hZWltcXV5fYGFiY2RlZmdoaWprbG1ub3Bx - cnN0dXZ3eHl6e3x9fn+AgYKDhIWGh4iJiouMjY6PkJGSk5SVlpeYmZqbnJ2en6ChoqOkpaanqKmq - q6ytrq+wsbKztLW2t7i5uru8vb6/wMHCw8TFxsfIycrLzM3Oz9DR0tPU1dbX2Nna29zd3t/g4eLj - 5OXm5+jp6uvs7e7v8PHy8/T19vf4+fr7/P3+/wABAgMEBQYHCAkKCwwNDg8QERITFBUWFxgZGhsc - HR4fICEiIyQlJicoKSorLC0uLzAxMjM0NTY3ODk6Ozw9Pj9AQUJDREVGR0hJSktMTU5PUFFSU1RV - VldYWVpbXF1eX2BhYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ent8fX5/gIGCg4SFhoeIiYqLjI2O - j5CRkpOUlZaXmJmam5ydnp+goaKjpKWmp6ipqqusra6vsLGys7S1tre4ubq7vL2+v8DBwsPExcbH - yMnKy8zNzs/Q0dLT1NXW19jZ2tvc3d7f4OHi4+Tl5ufo6err7O3u7/Dx8vP09fb3+Pn6+/z9/v8A - AQIDBAUGBwgJCgsMDQ4PEBESExQVFhcYGRobHB0eHyAhIiMkJSYnKCkqKywtLi8wMTIzNDU2Nzg5 - Ojs8PT4/QEFCQ0RFRkdISUpLTE1OT1BRUlNUVVZXWFlaW1xdXl9gYWJjZGVmZ2hpamtsbW5vcHFy - c3R1dnd4eXp7fH1+f4CBgoOEhYaHiImKi4yNjo+QkZKTlJWWl5iZmpucnZ6foKGio6Slpqeoqaqr - rK2ur7CxsrO0tba3uLm6u7y9vr/AwcLDxMXGx8jJysvMzc7P0NHS09TV1tfY2drb3N3e3+Dh4uPk - 5ebn6Onq6+zt7u/w8fLz9PX29/j5+vv8/f7/AAECAwQFBgcICQoLDA0ODxAREhMUFRYXGBkaGxwd - Hh8gISIjJCUmJygpKissLS4vMDEyMzQ1Njc4OTo7PD0+P0BBQkNERUZHSElKS0xNTk9QUVJTVFVW - V1hZWltcXV5fYGFiY2RlZmdoaWprbG1ub3BxcnN0dXZ3eHl6e3x9fn+AgYKDhIWGh4iJiouMjY6P - kJGSk5SVlpeYmZqbnJ2en6ChoqOkpaanqKmqq6ytrq+wsbKztLW2t7i5uru8vb6/wMHCw8TFxsfI - ycrLzM3Oz9DR0tPU1dbX2Nna29zd3t/g4eLj5OXm5+jp6uvs7e7v8PHy8/T19vf4+fr7/P3+/w== - headers: - BrokerProperties: ['{"DeliveryCount":1,"EnqueuedSequenceNumber":1,"EnqueuedTimeUtc":"Tue, - 30 Jun 2015 20:57:18 GMT","MessageId":"5b4142d019de400f85ce1ec023cd9fb2","SequenceNumber":1,"State":"Active","TimeToLive":922337203685.47754}'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:57:17 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 200, message: OK} -version: 1 diff --git a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_unicode_receive_subscription_message_unicode_data.yaml b/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_unicode_receive_subscription_message_unicode_data.yaml deleted file mode 100644 index 583368ec3c1a..000000000000 --- a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_unicode_receive_subscription_message_unicode_data.yaml +++ /dev/null @@ -1,109 +0,0 @@ -interactions: -- request: - body: !!binary | - PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiIHN0YW5kYWxvbmU9InllcyI/Pjxl - bnRyeSB4bWxuczpkPSJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL2Fkby8yMDA3LzA4L2Rh - dGFzZXJ2aWNlcyIgeG1sbnM6bT0iaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9hZG8vMjAw - Ny8wOC9kYXRhc2VydmljZXMvbWV0YWRhdGEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDA1 - L0F0b20iPjx0aXRsZT48L3RpdGxlPjx1cGRhdGVkPjIwMTUtMDYtMzBUMjA6NTM6MjUuNTg5Mjk4 - KzAwOjAwPC91cGRhdGVkPjxhdXRob3I+PG5hbWU+PC9uYW1lPjwvYXV0aG9yPjxpZD48L2lkPjxj - b250ZW50IHR5cGU9ImFwcGxpY2F0aW9uL3htbCI+PFRvcGljRGVzY3JpcHRpb24geG1sbnM6aT0i - aHR0cDovL3d3dy53My5vcmcvMjAwMS9YTUxTY2hlbWEtaW5zdGFuY2UiIHhtbG5zPSJodHRwOi8v - c2NoZW1hcy5taWNyb3NvZnQuY29tL25ldHNlcnZpY2VzLzIwMTAvMTAvc2VydmljZWJ1cy9jb25u - ZWN0Ij48L1RvcGljRGVzY3JpcHRpb24+PC9jb250ZW50PjwvZW50cnk+ - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['555'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: PUT - uri: https://fakesbnamespace.servicebus.windows.net/uttopic62ec2172 - response: - body: {string: 'https://fakesbnamespace.servicebus.windows.net/uttopic62ec2172uttopic62ec21722015-06-30T20:53:28Z2015-06-30T20:53:28ZfakesbnamespaceP10675199DT2H48M5.4775807S1024falsePT10Mtrue02015-06-30T20:53:28.1332015-06-30T20:53:28.257'} - headers: - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:53:28 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 201, message: Created} -- request: - body: !!binary | - PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiIHN0YW5kYWxvbmU9InllcyI/Pjxl - bnRyeSB4bWxuczpkPSJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL2Fkby8yMDA3LzA4L2Rh - dGFzZXJ2aWNlcyIgeG1sbnM6bT0iaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9hZG8vMjAw - Ny8wOC9kYXRhc2VydmljZXMvbWV0YWRhdGEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDA1 - L0F0b20iPjx0aXRsZT48L3RpdGxlPjx1cGRhdGVkPjIwMTUtMDYtMzBUMjA6NTM6MjcuMzQ1NDcw - KzAwOjAwPC91cGRhdGVkPjxhdXRob3I+PG5hbWU+PC9uYW1lPjwvYXV0aG9yPjxpZD48L2lkPjxj - b250ZW50IHR5cGU9ImFwcGxpY2F0aW9uL3htbCI+PFN1YnNjcmlwdGlvbkRlc2NyaXB0aW9uIHht - bG5zOmk9Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvWE1MU2NoZW1hLWluc3RhbmNlIiB4bWxucz0i - aHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9uZXRzZXJ2aWNlcy8yMDEwLzEwL3NlcnZpY2Vi - dXMvY29ubmVjdCI+PC9TdWJzY3JpcHRpb25EZXNjcmlwdGlvbj48L2NvbnRlbnQ+PC9lbnRyeT4= - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['569'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: PUT - uri: https://fakesbnamespace.servicebus.windows.net/uttopic62ec2172/subscriptions/MySubscription - response: - body: {string: 'https://fakesbnamespace.servicebus.windows.net/uttopic62ec2172/subscriptions/MySubscriptionMySubscription2015-06-30T20:53:28Z2015-06-30T20:53:28ZPT1MfalseP10675199DT2H48M5.4775807Sfalsetrue010true'} - headers: - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:53:28 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 201, message: Created} -- request: - body: !!binary | - c3Vic2NyaXB0aW9uIG1lc3NhZ2XllYrpvYTkuILni5vni5w= - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['35'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: POST - uri: https://fakesbnamespace.servicebus.windows.net/uttopic62ec2172/messages - response: - body: {string: ''} - headers: - Content-Type: [application/xml; charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:53:29 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 201, message: Created} -- request: - body: null - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: DELETE - uri: https://fakesbnamespace.servicebus.windows.net/uttopic62ec2172/subscriptions/MySubscription/messages/head?timeout=60 - response: - body: {string: "subscription message\u554A\u9F44\u4E02\u72DB\u72DC"} - headers: - BrokerProperties: ['{"DeliveryCount":1,"EnqueuedSequenceNumber":1,"EnqueuedTimeUtc":"Tue, - 30 Jun 2015 20:53:29 GMT","MessageId":"4998d926a6024e05ba00d5e46b101e89","SequenceNumber":1,"State":"Active","TimeToLive":922337203685.47754}'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:53:29 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 200, message: OK} -version: 1 diff --git a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_with_filter.yaml b/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_with_filter.yaml deleted file mode 100644 index f5bf593b92d4..000000000000 --- a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/recordings/test_servicebus_servicebus.test_with_filter.yaml +++ /dev/null @@ -1,104 +0,0 @@ -interactions: -- request: - body: !!binary | - PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiIHN0YW5kYWxvbmU9InllcyI/Pjxl - bnRyeSB4bWxuczpkPSJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL2Fkby8yMDA3LzA4L2Rh - dGFzZXJ2aWNlcyIgeG1sbnM6bT0iaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9hZG8vMjAw - Ny8wOC9kYXRhc2VydmljZXMvbWV0YWRhdGEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDA1 - L0F0b20iPjx0aXRsZT48L3RpdGxlPjx1cGRhdGVkPjIwMTUtMDYtMzBUMjA6NTI6MDMuMjgxNzkz - KzAwOjAwPC91cGRhdGVkPjxhdXRob3I+PG5hbWU+PC9uYW1lPjwvYXV0aG9yPjxpZD48L2lkPjxj - b250ZW50IHR5cGU9ImFwcGxpY2F0aW9uL3htbCI+PFRvcGljRGVzY3JpcHRpb24geG1sbnM6aT0i - aHR0cDovL3d3dy53My5vcmcvMjAwMS9YTUxTY2hlbWEtaW5zdGFuY2UiIHhtbG5zPSJodHRwOi8v - c2NoZW1hcy5taWNyb3NvZnQuY29tL25ldHNlcnZpY2VzLzIwMTAvMTAvc2VydmljZWJ1cy9jb25u - ZWN0Ij48L1RvcGljRGVzY3JpcHRpb24+PC9jb250ZW50PjwvZW50cnk+ - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['555'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: PUT - uri: https://fakesbnamespace.servicebus.windows.net/uttopic8b6911e30 - response: - body: {string: 'https://fakesbnamespace.servicebus.windows.net/uttopic8b6911e30uttopic8b6911e302015-06-30T20:52:05Z2015-06-30T20:52:05ZfakesbnamespaceP10675199DT2H48M5.4775807S1024falsePT10Mtrue02015-06-30T20:52:05.4272015-06-30T20:52:05.567'} - headers: - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:52:04 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 201, message: Created} -- request: - body: null - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: DELETE - uri: https://fakesbnamespace.servicebus.windows.net/uttopic8b6911e30 - response: - body: {string: ''} - headers: - Content-Length: ['0'] - Date: ['Tue, 30 Jun 2015 20:52:05 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - status: {code: 200, message: OK} -- request: - body: !!binary | - PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiIHN0YW5kYWxvbmU9InllcyI/Pjxl - bnRyeSB4bWxuczpkPSJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL2Fkby8yMDA3LzA4L2Rh - dGFzZXJ2aWNlcyIgeG1sbnM6bT0iaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9hZG8vMjAw - Ny8wOC9kYXRhc2VydmljZXMvbWV0YWRhdGEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDA1 - L0F0b20iPjx0aXRsZT48L3RpdGxlPjx1cGRhdGVkPjIwMTUtMDYtMzBUMjA6NTI6MDUuNTE1OTIz - KzAwOjAwPC91cGRhdGVkPjxhdXRob3I+PG5hbWU+PC9uYW1lPjwvYXV0aG9yPjxpZD48L2lkPjxj - b250ZW50IHR5cGU9ImFwcGxpY2F0aW9uL3htbCI+PFRvcGljRGVzY3JpcHRpb24geG1sbnM6aT0i - aHR0cDovL3d3dy53My5vcmcvMjAwMS9YTUxTY2hlbWEtaW5zdGFuY2UiIHhtbG5zPSJodHRwOi8v - c2NoZW1hcy5taWNyb3NvZnQuY29tL25ldHNlcnZpY2VzLzIwMTAvMTAvc2VydmljZWJ1cy9jb25u - ZWN0Ij48L1RvcGljRGVzY3JpcHRpb24+PC9jb250ZW50PjwvZW50cnk+ - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['555'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: PUT - uri: https://fakesbnamespace.servicebus.windows.net/uttopic8b6911e30 - response: - body: {string: 'https://fakesbnamespace.servicebus.windows.net/uttopic8b6911e30uttopic8b6911e302015-06-30T20:52:07Z2015-06-30T20:52:07ZfakesbnamespaceP10675199DT2H48M5.4775807S1024falsePT10Mtrue02015-06-30T20:52:07.0332015-06-30T20:52:07.103'} - headers: - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - Date: ['Tue, 30 Jun 2015 20:52:06 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - status: {code: 201, message: Created} -- request: - body: null - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/atom+xml;type=entry;charset=utf-8] - User-Agent: [pyazure/0.20.0] - method: DELETE - uri: https://fakesbnamespace.servicebus.windows.net/uttopic8b6911e30 - response: - body: {string: ''} - headers: - Content-Length: ['0'] - Date: ['Tue, 30 Jun 2015 20:52:07 GMT'] - Server: [Microsoft-HTTPAPI/2.0] - status: {code: 200, message: OK} -version: 1 diff --git a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/servicebus_settings_fake.py b/sdk/servicebus/azure-servicebus/tests/control_plane_tests/servicebus_settings_fake.py deleted file mode 100644 index 722c82faff55..000000000000 --- a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/servicebus_settings_fake.py +++ /dev/null @@ -1,22 +0,0 @@ -#------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -#-------------------------------------------------------------------------- - -# NOTE: these keys are fake, but valid base-64 data, they were generated using: -# base64.b64encode(os.urandom(32)) - -SERVICEBUS_NAME = "fakesbnamespace" -SERVICEBUS_SAS_KEY_NAME = "RootManageSharedAccessKey" -SERVICEBUS_SAS_KEY_VALUE = "WnFy94qL+8MHkWyb2vxnIIh3SomfV97F+u7sl2ULW7Q=" - -EVENTHUB_NAME = "fakehubnamespace" -EVENTHUB_SAS_KEY_NAME = "RootManageSharedAccessKey" -EVENTHUB_SAS_KEY_VALUE = "ELT4OCAZT5jgnsKts1vvHZXSevv5uXf8yACEiqEhFH4=" - -USE_PROXY = False -PROXY_HOST = "192.168.15.116" -PROXY_PORT = "8118" -PROXY_USER = "" -PROXY_PASSWORD = "" diff --git a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/servicebus_testcase.py b/sdk/servicebus/azure-servicebus/tests/control_plane_tests/servicebus_testcase.py deleted file mode 100644 index 1be5b3453a84..000000000000 --- a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/servicebus_testcase.py +++ /dev/null @@ -1,47 +0,0 @@ -# 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. -#-------------------------------------------------------------------------- - -import os.path -from testutils.common_recordingtestcase import ( - RecordingTestCase, - TestMode, -) -from . import servicebus_settings_fake as fake_settings - - -class ServiceBusTestCase(RecordingTestCase): - - def setUp(self): - self.working_folder = os.path.dirname(__file__) - - super(ServiceBusTestCase, self).setUp() - - self.fake_settings = fake_settings - if TestMode.is_playback(self.test_mode): - self.settings = self.fake_settings - else: - import tests.servicebus_settings_real as real_settings # pylint: disable=import-error,no-name-in-module - self.settings = real_settings - - def _set_service_options(self, service, settings): # pylint: disable=no-self-use - if settings.USE_PROXY: - service.set_proxy( - settings.PROXY_HOST, - settings.PROXY_PORT, - settings.PROXY_USER, - settings.PROXY_PASSWORD, - ) - - def _scrub(self, val): - val = super(ServiceBusTestCase, self)._scrub(val) - real_to_fake_dict = { - self.settings.SERVICEBUS_NAME: self.fake_settings.SERVICEBUS_NAME, - self.settings.EVENTHUB_NAME: self.fake_settings.EVENTHUB_NAME, - } - val = self._scrub_using_dict(val, real_to_fake_dict) - return val diff --git a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/test_servicebus_eventhub.py b/sdk/servicebus/azure-servicebus/tests/control_plane_tests/test_servicebus_eventhub.py deleted file mode 100644 index 9544d03ee9bf..000000000000 --- a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/test_servicebus_eventhub.py +++ /dev/null @@ -1,274 +0,0 @@ -# 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. -#-------------------------------------------------------------------------- - -import base64 -import os -import random -import sys -import time -import unittest - -from datetime import datetime -from requests import Session -from azure.common import ( - AzureMissingResourceHttpError, -) -from azure.servicebus._control_client import ( - AuthorizationRule, - EventHub, - ServiceBusService, - AzureServiceBusResourceNotFound, -) -from testutils.common_recordingtestcase import ( - TestMode, - record, -) -from .servicebus_testcase import ServiceBusTestCase - - -class ServiceBusEventHubTest(ServiceBusTestCase): - - def setUp(self): - super(ServiceBusEventHubTest, self).setUp() - - self.sbs = ServiceBusService( - self.settings.EVENTHUB_NAME, - shared_access_key_name=self.settings.EVENTHUB_SAS_KEY_NAME, - shared_access_key_value=self.settings.EVENTHUB_SAS_KEY_VALUE, - request_session=Session(), - ) - - self._set_service_options(self.sbs, self.settings) - - self.event_hub_name = self.get_resource_name('uthub') - - def tearDown(self): - if not self.is_playback(): - try: - self.sbs.delete_event_hub(self.event_hub_name) - except: - pass - - return super(ServiceBusEventHubTest, self).tearDown() - - #--Helpers----------------------------------------------------------------- - def _create_event_hub(self, hub_name): - self.sbs.create_event_hub(hub_name, None, True) - - #--Test cases for event hubs ---------------------------------------------- - @record - def test_create_event_hub_no_options(self): - # Arrange - - # Act - created = self.sbs.create_event_hub(self.event_hub_name) - - # Assert - self.assertTrue(created) - - @record - def test_create_event_hub_no_options_fail_on_exist(self): - # Arrange - - # Act - created = self.sbs.create_event_hub(self.event_hub_name, None, True) - - # Assert - self.assertTrue(created) - - @record - def test_create_event_hub_with_options(self): - # Arrange - - # Act - hub = EventHub() - hub.message_retention_in_days = 5 - hub.status = 'Active' - hub.user_metadata = 'hello world' - hub.partition_count = 32 - created = self.sbs.create_event_hub(self.event_hub_name, hub) - - # Assert - self.assertTrue(created) - created_hub = self.sbs.get_event_hub(self.event_hub_name) - self.assertEqual(created_hub.name, self.event_hub_name) - self.assertEqual(created_hub.message_retention_in_days, - hub.message_retention_in_days) - self.assertEqual(created_hub.status, hub.status) - self.assertEqual(created_hub.partition_count, hub.partition_count) - self.assertEqual(created_hub.user_metadata, hub.user_metadata) - self.assertEqual(len(created_hub.partition_ids), hub.partition_count) - - @record - def test_create_event_hub_with_authorization(self): - # Arrange - - # Act - hub = EventHub() - hub.authorization_rules.append( - AuthorizationRule( - claim_type='SharedAccessKey', - claim_value='None', - rights=['Manage', 'Send', 'Listen'], - key_name='Key1', - primary_key='Wli4rewPGuEsLam95nQEwGR+e8b+ynlupZQ7VfjbQnw=', - secondary_key='jS+lERPBmbBVGJ5JzIwVRtSGYoFUeunRoADNTjwU3jU=', - ) - ) - - created = self.sbs.create_event_hub(self.event_hub_name, hub) - - # Assert - self.assertTrue(created) - created_hub = self.sbs.get_event_hub(self.event_hub_name) - self.assertEqual(created_hub.name, self.event_hub_name) - self.assertEqual(len(created_hub.authorization_rules), 1) - self.assertEqual(created_hub.authorization_rules[0].claim_type, - hub.authorization_rules[0].claim_type) - self.assertEqual(created_hub.authorization_rules[0].claim_value, - hub.authorization_rules[0].claim_value) - self.assertEqual(created_hub.authorization_rules[0].key_name, - hub.authorization_rules[0].key_name) - self.assertEqual(created_hub.authorization_rules[0].primary_key, - hub.authorization_rules[0].primary_key) - self.assertEqual(created_hub.authorization_rules[0].secondary_key, - hub.authorization_rules[0].secondary_key) - - @record - def test_update_event_hub(self): - # Arrange - self._create_event_hub(self.event_hub_name) - - # Act - hub = EventHub(message_retention_in_days=3) - result = self.sbs.update_event_hub(self.event_hub_name, hub) - - # Assert - self.assertIsNotNone(result) - self.assertEqual(result.name, self.event_hub_name) - self.assertEqual(result.message_retention_in_days, - hub.message_retention_in_days) - - @record - def test_update_event_hub_with_authorization(self): - # Arrange - self._create_event_hub(self.event_hub_name) - - # Act - hub = EventHub() - hub.authorization_rules.append( - AuthorizationRule( - claim_type='SharedAccessKey', - claim_value='None', - rights=['Manage', 'Send', 'Listen'], - key_name='Key1', - primary_key='Wli4rewPGuEsLam95nQEwGR+e8b+ynlupZQ7VfjbQnw=', - secondary_key='jS+lERPBmbBVGJ5JzIwVRtSGYoFUeunRoADNTjwU3jU=', - ) - ) - result = self.sbs.update_event_hub(self.event_hub_name, hub) - - # Assert - self.assertIsNotNone(result) - self.assertEqual(result.name, self.event_hub_name) - self.assertEqual(len(result.authorization_rules), 1) - self.assertEqual(result.authorization_rules[0].claim_type, - hub.authorization_rules[0].claim_type) - self.assertEqual(result.authorization_rules[0].claim_value, - hub.authorization_rules[0].claim_value) - self.assertEqual(result.authorization_rules[0].key_name, - hub.authorization_rules[0].key_name) - self.assertEqual(result.authorization_rules[0].primary_key, - hub.authorization_rules[0].primary_key) - self.assertEqual(result.authorization_rules[0].secondary_key, - hub.authorization_rules[0].secondary_key) - - @record - def test_get_event_hub_with_existing_event_hub(self): - # Arrange - self._create_event_hub(self.event_hub_name) - - # Act - event_hub = self.sbs.get_event_hub(self.event_hub_name) - - # Assert - self.assertIsNotNone(event_hub) - self.assertEqual(event_hub.name, self.event_hub_name) - - @record - def test_get_event_hub_with_non_existing_event_hub(self): - # Arrange - - # Act - with self.assertRaises(AzureServiceBusResourceNotFound): - resp = self.sbs.get_event_hub(self.event_hub_name) - - # Assert - - @record - def test_delete_event_hub_with_existing_event_hub(self): - # Arrange - self._create_event_hub(self.event_hub_name) - - # Act - deleted = self.sbs.delete_event_hub(self.event_hub_name) - - # Assert - self.assertTrue(deleted) - - @record - def test_delete_event_hub_with_existing_event_hub_fail_not_exist(self): - # Arrange - self._create_event_hub(self.event_hub_name) - - # Act - deleted = self.sbs.delete_event_hub(self.event_hub_name, True) - - # Assert - self.assertTrue(deleted) - - @record - def test_delete_event_hub_with_non_existing_event_hub(self): - # Arrange - - # Act - deleted = self.sbs.delete_event_hub(self.event_hub_name) - - # Assert - self.assertFalse(deleted) - - @record - def test_delete_event_hub_with_non_existing_event_hub_fail_not_exist(self): - # Arrange - - # Act - with self.assertRaises(AzureMissingResourceHttpError): - self.sbs.delete_event_hub(self.event_hub_name, True) - - # Assert - - @record - def test_send_event(self): - # Arrange - self._create_event_hub(self.event_hub_name) - - # Act - result = self.sbs.send_event(self.event_hub_name, - 'hello world') - result = self.sbs.send_event(self.event_hub_name, - 'wake up world') - result = self.sbs.send_event(self.event_hub_name, - 'goodbye!') - - # Assert - self.assertIsNone(result) - - -#------------------------------------------------------------------------------ -if __name__ == '__main__': - unittest.main() diff --git a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/test_servicebus_servicebus.py b/sdk/servicebus/azure-servicebus/tests/control_plane_tests/test_servicebus_servicebus.py deleted file mode 100644 index ef3feb36ced5..000000000000 --- a/sdk/servicebus/azure-servicebus/tests/control_plane_tests/test_servicebus_servicebus.py +++ /dev/null @@ -1,1680 +0,0 @@ -# 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. -#-------------------------------------------------------------------------- - -import base64 -import os -import random -import sys -import time -import unittest - -from datetime import datetime -from azure.common import ( - AzureHttpError, - AzureMissingResourceHttpError, - AzureConflictHttpError, -) -from azure.servicebus._control_client._http import HTTPError -from azure.servicebus._control_client import ( - AZURE_SERVICEBUS_NAMESPACE, - AZURE_SERVICEBUS_ACCESS_KEY, - AZURE_SERVICEBUS_ISSUER, - AzureServiceBusPeekLockError, - AzureServiceBusResourceNotFound, - Message, - Queue, - Rule, - ServiceBusService, - Subscription, - Topic, -) -from testutils.common_recordingtestcase import ( - TestMode, - record, -) -from .servicebus_testcase import ServiceBusTestCase - - -class ServiceBusServiceBusTest(ServiceBusTestCase): - - def setUp(self): - super(ServiceBusServiceBusTest, self).setUp() - - self.sbs = ServiceBusService( - self.settings.SERVICEBUS_NAME, - shared_access_key_name=self.settings.SERVICEBUS_SAS_KEY_NAME, - shared_access_key_value=self.settings.SERVICEBUS_SAS_KEY_VALUE, - ) - - self._set_service_options(self.sbs, self.settings) - - self.queue_name = self.get_resource_name('utqueue') - self.topic_name = self.get_resource_name('uttopic') - - self.additional_queue_names = [] - self.additional_topic_names = [] - - def tearDown(self): - if not self.is_playback(): - try: - self.sbs.delete_queue(self.queue_name) - except: - pass - - for name in self.additional_queue_names: - try: - self.sbs.delete_queue(name) - except: - pass - - try: - self.sbs.delete_topic(self.topic_name) - except: - pass - - for name in self.additional_topic_names: - try: - self.sbs.delete_topic(name) - except: - pass - - return super(ServiceBusServiceBusTest, self).tearDown() - - #--Helpers----------------------------------------------------------------- - def _create_queue(self, queue_name): - self.sbs.create_queue(queue_name, None, True) - - def _create_queue_and_send_msg(self, queue_name, msg): - self._create_queue(queue_name) - self.sbs.send_queue_message(queue_name, msg) - - def _create_topic(self, topic_name): - self.sbs.create_topic(topic_name, None, True) - - def _create_topic_and_subscription(self, topic_name, subscription_name): - self._create_topic(topic_name) - self._create_subscription(topic_name, subscription_name) - - def _create_subscription(self, topic_name, subscription_name): - self.sbs.create_subscription(topic_name, subscription_name, None, True) - - #--Test cases for service bus service ------------------------------------- - - def test_create_service_bus_missing_arguments(self): - # Arrange - if AZURE_SERVICEBUS_NAMESPACE in os.environ: - del os.environ[AZURE_SERVICEBUS_NAMESPACE] - if AZURE_SERVICEBUS_ACCESS_KEY in os.environ: - del os.environ[AZURE_SERVICEBUS_ACCESS_KEY] - if AZURE_SERVICEBUS_ISSUER in os.environ: - del os.environ[AZURE_SERVICEBUS_ISSUER] - - # Act - with self.assertRaises(ValueError): - sbs = ServiceBusService() - - # Assert - - @unittest.skip('ACS is deprecated and this test cannot be run live anymore') - def test_create_service_bus_env_variables(self): - # Arrange - os.environ[AZURE_SERVICEBUS_NAMESPACE] = self.settings.SERVICEBUS_NAME - os.environ[AZURE_SERVICEBUS_ACCESS_KEY] = self.settings.SERVICEBUS_ACS_KEY - os.environ[AZURE_SERVICEBUS_ISSUER] = 'owner' - - # Act - sbs = ServiceBusService() - - if AZURE_SERVICEBUS_NAMESPACE in os.environ: - del os.environ[AZURE_SERVICEBUS_NAMESPACE] - if AZURE_SERVICEBUS_ACCESS_KEY in os.environ: - del os.environ[AZURE_SERVICEBUS_ACCESS_KEY] - if AZURE_SERVICEBUS_ISSUER in os.environ: - del os.environ[AZURE_SERVICEBUS_ISSUER] - - # Assert - self.assertIsNotNone(sbs) - self.assertEqual(sbs.service_namespace, self.settings.SERVICEBUS_NAME) - self.assertEqual(sbs.account_key, self.settings.SERVICEBUS_ACS_KEY) - self.assertEqual(sbs.issuer, 'owner') - - #--Test cases for queues -------------------------------------------------- - @record - def test_create_queue_no_options(self): - # Arrange - - # Act - created = self.sbs.create_queue(self.queue_name) - - # Assert - self.assertTrue(created) - - @record - def test_create_queue_no_options_fail_on_exist(self): - # Arrange - - # Act - created = self.sbs.create_queue(self.queue_name, None, True) - - # Assert - self.assertTrue(created) - - @record - def test_create_queue_with_options(self): - # Arrange - - # Act - queue_options = Queue() - queue_options.default_message_time_to_live = 'PT1M' - queue_options.duplicate_detection_history_time_window = 'PT5M' - queue_options.enable_batched_operations = False - queue_options.dead_lettering_on_message_expiration = False - queue_options.lock_duration = 'PT1M' - queue_options.max_delivery_count = 15 - queue_options.max_size_in_megabytes = 5120 - queue_options.message_count = 0 - queue_options.requires_duplicate_detection = False - queue_options.requires_session = False - queue_options.size_in_bytes = 0 - created = self.sbs.create_queue(self.queue_name, queue_options) - - # Assert - self.assertTrue(created) - queue = self.sbs.get_queue(self.queue_name) - self.assertEqual('PT1M', queue.default_message_time_to_live) - self.assertEqual('PT5M', queue.duplicate_detection_history_time_window) - self.assertEqual(False, queue.enable_batched_operations) - self.assertEqual(False, queue.dead_lettering_on_message_expiration) - self.assertEqual('PT1M', queue.lock_duration) - self.assertEqual(15, queue.max_delivery_count) - self.assertEqual(5120, queue.max_size_in_megabytes) - self.assertEqual(0, queue.message_count) - self.assertEqual(False, queue.requires_duplicate_detection) - self.assertEqual(False, queue.requires_session) - self.assertEqual(0, queue.size_in_bytes) - - @record - def test_create_queue_with_already_existing_queue(self): - # Arrange - - # Act - created1 = self.sbs.create_queue(self.queue_name) - created2 = self.sbs.create_queue(self.queue_name) - - # Assert - self.assertTrue(created1) - self.assertFalse(created2) - - @record - def test_create_queue_with_already_existing_queue_fail_on_exist(self): - # Arrange - - # Act - created = self.sbs.create_queue(self.queue_name) - with self.assertRaises(AzureConflictHttpError): - self.sbs.create_queue(self.queue_name, None, True) - - # Assert - self.assertTrue(created) - - @record - def test_get_queue_with_existing_queue(self): - # Arrange - self._create_queue(self.queue_name) - - # Act - queue = self.sbs.get_queue(self.queue_name) - - # Assert - self.assertIsNotNone(queue) - self.assertEqual(queue.name, self.queue_name) - - @record - def test_get_queue_with_non_existing_queue(self): - # Arrange - - # Act - with self.assertRaises(AzureServiceBusResourceNotFound): - resp = self.sbs.get_queue(self.queue_name) - - # Assert - - @record - def test_list_queues(self): - # Arrange - self._create_queue(self.queue_name) - - # Act - queues = self.sbs.list_queues() - for queue in queues: - name = queue.name - - # Assert - self.assertIsNotNone(queues) - self.assertNamedItemInContainer(queues, self.queue_name) - - @record - def test_list_queues_with_special_chars(self): - # Arrange - # Name must start and end with an alphanumeric and can only contain - # letters, numbers, periods, hyphens, forward slashes and underscores. - other_queue_name = self.queue_name + 'txt/.-_123' - self.additional_queue_names = [other_queue_name] - self._create_queue(other_queue_name) - - # Act - queues = self.sbs.list_queues() - - # Assert - self.assertIsNotNone(queues) - self.assertNamedItemInContainer(queues, other_queue_name) - - @record - def test_delete_queue_with_existing_queue(self): - # Arrange - self._create_queue(self.queue_name) - - # Act - deleted = self.sbs.delete_queue(self.queue_name) - - # Assert - self.assertTrue(deleted) - queues = self.sbs.list_queues() - self.assertNamedItemNotInContainer(queues, self.queue_name) - - @record - def test_delete_queue_with_existing_queue_fail_not_exist(self): - # Arrange - self._create_queue(self.queue_name) - - # Act - deleted = self.sbs.delete_queue(self.queue_name, True) - - # Assert - self.assertTrue(deleted) - queues = self.sbs.list_queues() - self.assertNamedItemNotInContainer(queues, self.queue_name) - - @record - def test_delete_queue_with_non_existing_queue(self): - # Arrange - - # Act - deleted = self.sbs.delete_queue(self.queue_name) - - # Assert - self.assertFalse(deleted) - - @record - def test_delete_queue_with_non_existing_queue_fail_not_exist(self): - # Arrange - - # Act - with self.assertRaises(AzureMissingResourceHttpError): - self.sbs.delete_queue(self.queue_name, True) - - # Assert - - @record - def test_send_queue_message(self): - # Arrange - self._create_queue(self.queue_name) - sent_msg = Message(b'send message') - - # Act - self.sbs.send_queue_message(self.queue_name, sent_msg) - - # Assert - - @record - def test_send_queue_message_batch(self): - # https://docs.microsoft.com/rest/api/servicebus/send-message-batch - - # Arrange - self._create_queue(self.queue_name) - sent_msg_1 = Message(b'This is the first message', - broker_properties={'Label': 'M1', - 'TimeToLiveTimeSpan': '0.00:00:40'} - ) - sent_msg_2 = Message(b'This is the second message', - broker_properties={'Label': 'M2'}, - custom_properties={'Priority': 'Low'} - ) - sent_msg_3 = Message(b'This is the third message', - broker_properties={'Label': 'M3'}, - custom_properties={'Priority': 'Medium', - 'Customer': 'ABC'} - ) - - # Act - self.sbs.send_queue_message_batch(self.queue_name, [sent_msg_1, sent_msg_2, sent_msg_3]) - received_msg_1 = self.sbs.receive_queue_message(self.queue_name, False) - received_msg_2 = self.sbs.receive_queue_message(self.queue_name, False) - received_msg_3 = self.sbs.receive_queue_message(self.queue_name, False) - - # Assert - self.assertEqual(sent_msg_1.body, received_msg_1.body) - self.assertEqual(sent_msg_2.body, received_msg_2.body) - self.assertEqual(sent_msg_3.body, received_msg_3.body) - - @record - def test_receive_queue_message_read_delete_mode(self): - # Assert - sent_msg = Message(b'receive message') - self._create_queue_and_send_msg(self.queue_name, sent_msg) - - # Act - received_msg = self.sbs.receive_queue_message(self.queue_name, False) - - # Assert - self.assertIsNotNone(received_msg) - self.assertEqual(sent_msg.body, received_msg.body) - - @record - def test_receive_queue_message_with_broker_properties(self): - # Assert - sent_msg = Message(b'receive message') - sent_msg.broker_properties = \ - '{"ForcePersistence": false, "Label": "My label" }' - self._create_queue_and_send_msg(self.queue_name, sent_msg) - - # Act - received_msg = self.sbs.receive_queue_message(self.queue_name, False) - - # Assert - self.assertIsNotNone(received_msg) - self.assertEqual(sent_msg.body, received_msg.body) - self.assertEqual("My label", received_msg.broker_properties['Label']) - self.assertEqual(False, received_msg.broker_properties['ForcePersistence']) - - @record - def test_receive_queue_message_with_broker_properties_as_a_dict(self): - # Assert - sent_msg = Message(b'receive message') - sent_msg.broker_properties = \ - {"ForcePersistence": False, "Label": "My label"} - self._create_queue_and_send_msg(self.queue_name, sent_msg) - - # Act - received_msg = self.sbs.receive_queue_message(self.queue_name, False) - - # Assert - self.assertIsNotNone(received_msg) - self.assertEqual(sent_msg.body, received_msg.body) - self.assertEqual("My label", received_msg.broker_properties['Label']) - self.assertEqual(False, received_msg.broker_properties['ForcePersistence']) - - @record - def test_receive_queue_message_read_delete_mode_throws_on_delete(self): - # Assert - sent_msg = Message(b'receive message') - self._create_queue_and_send_msg(self.queue_name, sent_msg) - - # Act - received_msg = self.sbs.receive_queue_message(self.queue_name, False) - with self.assertRaises(AzureServiceBusPeekLockError): - received_msg.delete() - - # Assert - - @record - def test_receive_queue_message_read_delete_mode_throws_on_unlock(self): - # Assert - sent_msg = Message(b'receive message') - self._create_queue_and_send_msg(self.queue_name, sent_msg) - - # Act - received_msg = self.sbs.receive_queue_message(self.queue_name, False) - with self.assertRaises(AzureServiceBusPeekLockError): - received_msg.renew_lock() - with self.assertRaises(AzureServiceBusPeekLockError): - received_msg.unlock() - - # Assert - - @record - def test_receive_queue_message_peek_lock_mode(self): - # Arrange - sent_msg = Message(b'peek lock message') - self._create_queue_and_send_msg(self.queue_name, sent_msg) - - # Act - received_msg = self.sbs.receive_queue_message(self.queue_name, True) - - # Assert - self.assertIsNotNone(received_msg) - self.assertEqual(sent_msg.body, received_msg.body) - - @record - def test_receive_queue_message_delete(self): - # Arrange - sent_msg = Message(b'peek lock message delete') - self._create_queue_and_send_msg(self.queue_name, sent_msg) - - # Act - received_msg = self.sbs.receive_queue_message(self.queue_name, True) - received_msg.delete() - - # Assert - self.assertIsNotNone(received_msg) - self.assertEqual(sent_msg.body, received_msg.body) - - @record - def test_receive_queue_message_delete_with_slash(self): - # Arrange - self.queue_name = self.get_resource_name('ut/queue') - sent_msg = Message(b'peek lock message delete') - self._create_queue_and_send_msg(self.queue_name, sent_msg) - - # Act - received_msg = self.sbs.receive_queue_message(self.queue_name, True) - received_msg.delete() - - # Assert - self.assertIsNotNone(received_msg) - self.assertEqual(sent_msg.body, received_msg.body) - - @record - def test_receive_queue_message_unlock(self): - # Arrange - sent_msg = Message(b'peek lock message unlock') - self._create_queue_and_send_msg(self.queue_name, sent_msg) - - # Act - received_msg = self.sbs.receive_queue_message(self.queue_name, True) - received_msg.renew_lock() - received_msg.unlock() - - # Assert - received_again_msg = self.sbs.receive_queue_message( - self.queue_name, True) - received_again_msg.delete() - self.assertIsNotNone(received_msg) - self.assertIsNotNone(received_again_msg) - self.assertEqual(sent_msg.body, received_msg.body) - self.assertEqual(received_again_msg.body, received_msg.body) - - @record - def test_get_dead_letter_queue(self): - # Arrange - self._create_queue(self.queue_name) - - # Act - dead_letter_name = ServiceBusService.format_dead_letter_queue_name( - self.queue_name) - try: - self.sbs.receive_queue_message(dead_letter_name, timeout=2) - except Exception: - # Assert - self.fail("Dead Letter queue not found") - - @record - def test_send_queue_message_with_custom_message_type(self): - # Arrange - self._create_queue(self.queue_name) - - # Act - sent_msg = Message( - b'peek lock message custom message type', - type='text/xml') - self.sbs.send_queue_message(self.queue_name, sent_msg) - received_msg = self.sbs.receive_queue_message(self.queue_name, True, 5) - received_msg.delete() - - # Assert - self.assertIsNotNone(received_msg) - self.assertEqual('text/xml', received_msg.type) - - @record - def test_send_queue_message_with_custom_message_properties(self): - # Arrange - self._create_queue(self.queue_name) - - # Act - props = {'hello': 'world', - 'number': 42, - 'active': True, - 'deceased': False, - 'large': 8555111000, - 'floating': 3.14, - 'dob': datetime(2011, 12, 14), - 'double_quote_message': 'This "should" work fine', - 'quote_message': "This 'should' work fine"} - sent_msg = Message(b'message with properties', custom_properties=props) - self.sbs.send_queue_message(self.queue_name, sent_msg) - received_msg = self.sbs.receive_queue_message(self.queue_name, True, 5) - received_msg.delete() - - # Assert - self.assertIsNotNone(received_msg) - self.assertEqual(received_msg.custom_properties['hello'], 'world') - self.assertEqual(received_msg.custom_properties['number'], 42) - self.assertEqual(received_msg.custom_properties['active'], True) - self.assertEqual(received_msg.custom_properties['deceased'], False) - self.assertEqual(received_msg.custom_properties['large'], 8555111000) - self.assertEqual(received_msg.custom_properties['floating'], 3.14) - self.assertEqual( - received_msg.custom_properties['dob'], datetime(2011, 12, 14)) - self.assertEqual( - received_msg.custom_properties['double_quote_message'], 'This "should" work fine') - self.assertEqual( - received_msg.custom_properties['quote_message'], "This 'should' work fine") - - @unittest.skip('flaky') - def test_receive_queue_message_timeout_5(self): - # Arrange - self._create_queue(self.queue_name) - - # Act - start = datetime.now() - received_msg = self.sbs.receive_queue_message(self.queue_name, True, 5) - duration = datetime.now() - start - - # Assert - self.assertGreater(duration.total_seconds(), 3) - self.assertLess(duration.total_seconds(), 10) - self.assertIsNotNone(received_msg) - self.assertIsNone(received_msg.body) - - @unittest.skip('flaky') - def test_receive_queue_message_timeout_50(self): - # Arrange - self._create_queue(self.queue_name) - - # Act - start = datetime.now() - received_msg = self.sbs.receive_queue_message( - self.queue_name, True, 50) - duration = datetime.now() - start - - # Assert - self.assertGreater(duration.total_seconds(), 48) - self.assertLess(duration.total_seconds(), 55) - self.assertIsNotNone(received_msg) - self.assertIsNone(received_msg.body) - - @unittest.skip('flaky') - def test_receive_queue_message_timeout_50_http_timeout(self): - # Arrange - self._create_queue(self.queue_name) - - # Act - self.sbs.timeout = 10 - try: - received_msg = self.sbs.receive_queue_message( - self.queue_name, True, 50) - self.assertTrue(False, 'Failed to trigger an HTTP timeout') - except: - pass - - # Assert - - #--Test cases for topics/subscriptions ------------------------------------ - @record - def test_create_topic_no_options(self): - # Arrange - - # Act - created = self.sbs.create_topic(self.topic_name) - - # Assert - self.assertTrue(created) - - @record - def test_create_topic_no_options_fail_on_exist(self): - # Arrange - - # Act - created = self.sbs.create_topic(self.topic_name, None, True) - - # Assert - self.assertTrue(created) - - @record - def test_create_topic_with_options(self): - # Arrange - - # Act - topic_options = Topic() - topic_options.default_message_time_to_live = 'PT1M' - topic_options.duplicate_detection_history_time_window = 'PT5M' - topic_options.enable_batched_operations = False - topic_options.max_size_in_megabytes = 5120 - topic_options.requires_duplicate_detection = False - topic_options.size_in_bytes = 0 - # TODO: MaximumNumberOfSubscriptions is not supported? - created = self.sbs.create_topic(self.topic_name, topic_options) - - # Assert - self.assertTrue(created) - topic = self.sbs.get_topic(self.topic_name) - self.assertEqual('PT1M', topic.default_message_time_to_live) - self.assertEqual('PT5M', topic.duplicate_detection_history_time_window) - self.assertEqual(False, topic.enable_batched_operations) - self.assertEqual(5120, topic.max_size_in_megabytes) - self.assertEqual(False, topic.requires_duplicate_detection) - self.assertEqual(0, topic.size_in_bytes) - - @record - def test_create_topic_with_already_existing_topic(self): - # Arrange - - # Act - created1 = self.sbs.create_topic(self.topic_name) - created2 = self.sbs.create_topic(self.topic_name) - - # Assert - self.assertTrue(created1) - self.assertFalse(created2) - - @record - def test_create_topic_with_already_existing_topic_fail_on_exist(self): - # Arrange - - # Act - created = self.sbs.create_topic(self.topic_name) - with self.assertRaises(AzureConflictHttpError): - self.sbs.create_topic(self.topic_name, None, True) - - # Assert - self.assertTrue(created) - - @record - @unittest.skip('undesirable output, this is old enough, backwards compatibility can be deleted') - def test_topic_backwards_compatibility_warning(self): - # Arrange - topic_options = Topic() - topic_options.max_size_in_megabytes = 5120 - - # Act - val = topic_options.max_size_in_mega_bytes - - # Assert - self.assertEqual(val, 5120) - - # Act - topic_options.max_size_in_mega_bytes = 1024 - - # Assert - self.assertEqual(topic_options.max_size_in_megabytes, 1024) - - @record - def test_get_topic_with_existing_topic(self): - # Arrange - self._create_topic(self.topic_name) - - # Act - topic = self.sbs.get_topic(self.topic_name) - - # Assert - self.assertIsNotNone(topic) - self.assertEqual(topic.name, self.topic_name) - - @record - def test_get_topic_with_non_existing_topic(self): - # Arrange - - # Act - with self.assertRaises(AzureServiceBusResourceNotFound): - self.sbs.get_topic(self.topic_name) - - # Assert - - @record - def test_list_topics(self): - # Arrange - self._create_topic(self.topic_name) - - # Act - topics = self.sbs.list_topics() - for topic in topics: - name = topic.name - - # Assert - self.assertIsNotNone(topics) - self.assertNamedItemInContainer(topics, self.topic_name) - - @record - def test_list_topics_with_special_chars(self): - # Arrange - # Name must start and end with an alphanumeric and can only contain - # letters, numbers, periods, hyphens, forward slashes and underscores. - other_topic_name = self.topic_name + 'txt/.-_123' - self.additional_topic_names = [other_topic_name] - self._create_topic(other_topic_name) - - # Act - topics = self.sbs.list_topics() - - # Assert - self.assertIsNotNone(topics) - self.assertNamedItemInContainer(topics, other_topic_name) - - @record - def test_delete_topic_with_existing_topic(self): - # Arrange - self._create_topic(self.topic_name) - - # Act - deleted = self.sbs.delete_topic(self.topic_name) - - # Assert - self.assertTrue(deleted) - topics = self.sbs.list_topics() - self.assertNamedItemNotInContainer(topics, self.topic_name) - - @record - def test_delete_topic_with_existing_topic_fail_not_exist(self): - # Arrange - self._create_topic(self.topic_name) - - # Act - deleted = self.sbs.delete_topic(self.topic_name, True) - - # Assert - self.assertTrue(deleted) - topics = self.sbs.list_topics() - self.assertNamedItemNotInContainer(topics, self.topic_name) - - @record - def test_delete_topic_with_non_existing_topic(self): - # Arrange - - # Act - deleted = self.sbs.delete_topic(self.topic_name) - - # Assert - self.assertFalse(deleted) - - @record - def test_delete_topic_with_non_existing_topic_fail_not_exist(self): - # Arrange - - # Act - with self.assertRaises(AzureMissingResourceHttpError): - self.sbs.delete_topic(self.topic_name, True) - - # Assert - - @record - def test_create_subscription(self): - # Arrange - self._create_topic(self.topic_name) - - # Act - created = self.sbs.create_subscription( - self.topic_name, 'MySubscription') - - # Assert - self.assertTrue(created) - - @record - def test_create_subscription_with_options(self): - # Arrange - self._create_topic(self.topic_name) - - # Act - subscription_options = Subscription() - subscription_options.dead_lettering_on_filter_evaluation_exceptions = False - subscription_options.dead_lettering_on_message_expiration = False - subscription_options.default_message_time_to_live = 'PT15M' - subscription_options.enable_batched_operations = False - subscription_options.lock_duration = 'PT1M' - subscription_options.max_delivery_count = 15 - #message_count is read-only - subscription_options.message_count = 0 - subscription_options.requires_session = False - created = self.sbs.create_subscription( - self.topic_name, 'MySubscription', subscription_options) - - # Assert - self.assertTrue(created) - subscription = self.sbs.get_subscription( - self.topic_name, 'MySubscription') - self.assertEqual( - False, subscription.dead_lettering_on_filter_evaluation_exceptions) - self.assertEqual( - False, subscription.dead_lettering_on_message_expiration) - self.assertEqual('PT15M', subscription.default_message_time_to_live) - self.assertEqual(False, subscription.enable_batched_operations) - self.assertEqual('PT1M', subscription.lock_duration) - # self.assertEqual(15, subscription.max_delivery_count) #no idea why - # max_delivery_count is always 10 - self.assertEqual(0, subscription.message_count) - self.assertEqual(False, subscription.requires_session) - - @record - def test_create_subscription_fail_on_exist(self): - # Arrange - self._create_topic(self.topic_name) - - # Act - created = self.sbs.create_subscription( - self.topic_name, 'MySubscription', None, True) - - # Assert - self.assertTrue(created) - - @record - def test_create_subscription_with_already_existing_subscription(self): - # Arrange - self._create_topic(self.topic_name) - - # Act - created1 = self.sbs.create_subscription( - self.topic_name, 'MySubscription') - created2 = self.sbs.create_subscription( - self.topic_name, 'MySubscription') - - # Assert - self.assertTrue(created1) - self.assertFalse(created2) - - @record - def test_create_subscription_with_already_existing_subscription_fail_on_exist(self): - # Arrange - self._create_topic(self.topic_name) - - # Act - created = self.sbs.create_subscription( - self.topic_name, 'MySubscription') - with self.assertRaises(AzureConflictHttpError): - self.sbs.create_subscription( - self.topic_name, 'MySubscription', None, True) - - # Assert - self.assertTrue(created) - - @record - def test_list_subscriptions(self): - # Arrange - self._create_topic_and_subscription(self.topic_name, 'MySubscription2') - - # Act - subscriptions = self.sbs.list_subscriptions(self.topic_name) - - # Assert - self.assertIsNotNone(subscriptions) - self.assertEqual(len(subscriptions), 1) - self.assertEqual(subscriptions[0].name, 'MySubscription2') - - @record - def test_get_subscription_with_existing_subscription(self): - # Arrange - self._create_topic_and_subscription(self.topic_name, 'MySubscription3') - - # Act - subscription = self.sbs.get_subscription( - self.topic_name, 'MySubscription3') - - # Assert - self.assertIsNotNone(subscription) - self.assertEqual(subscription.name, 'MySubscription3') - - @record - def test_get_subscription_with_non_existing_subscription(self): - # Arrange - self._create_topic_and_subscription(self.topic_name, 'MySubscription3') - - # Act - with self.assertRaises(AzureMissingResourceHttpError): - self.sbs.get_subscription(self.topic_name, 'MySubscription4') - - # Assert - - @record - def test_delete_subscription_with_existing_subscription(self): - # Arrange - self._create_topic(self.topic_name) - self._create_subscription(self.topic_name, 'MySubscription4') - self._create_subscription(self.topic_name, 'MySubscription5') - - # Act - deleted = self.sbs.delete_subscription( - self.topic_name, 'MySubscription4') - - # Assert - self.assertTrue(deleted) - subscriptions = self.sbs.list_subscriptions(self.topic_name) - self.assertIsNotNone(subscriptions) - self.assertEqual(len(subscriptions), 1) - self.assertEqual(subscriptions[0].name, 'MySubscription5') - - @record - def test_delete_subscription_with_existing_subscription_fail_not_exist(self): - # Arrange - self._create_topic(self.topic_name) - self._create_subscription(self.topic_name, 'MySubscription4') - self._create_subscription(self.topic_name, 'MySubscription5') - - # Act - deleted = self.sbs.delete_subscription( - self.topic_name, 'MySubscription4', True) - - # Assert - self.assertTrue(deleted) - subscriptions = self.sbs.list_subscriptions(self.topic_name) - self.assertIsNotNone(subscriptions) - self.assertEqual(len(subscriptions), 1) - self.assertEqual(subscriptions[0].name, 'MySubscription5') - - @record - def test_delete_subscription_with_non_existing_subscription(self): - # Arrange - self._create_topic(self.topic_name) - - # Act - deleted = self.sbs.delete_subscription( - self.topic_name, 'MySubscription') - - # Assert - self.assertFalse(deleted) - - @record - def test_delete_subscription_with_non_existing_subscription_fail_not_exist(self): - # Arrange - self._create_topic(self.topic_name) - - # Act - with self.assertRaises(AzureMissingResourceHttpError): - self.sbs.delete_subscription( - self.topic_name, 'MySubscription', True) - - # Assert - - @record - def test_create_rule_no_options(self): - # Arrange - self._create_topic_and_subscription(self.topic_name, 'MySubscription') - - # Act - created = self.sbs.create_rule( - self.topic_name, 'MySubscription', 'MyRule1') - - # Assert - self.assertTrue(created) - - @record - def test_create_rule_no_options_fail_on_exist(self): - # Arrange - self._create_topic_and_subscription(self.topic_name, 'MySubscription') - - # Act - created = self.sbs.create_rule( - self.topic_name, 'MySubscription', 'MyRule1', None, True) - - # Assert - self.assertTrue(created) - - @record - def test_create_rule_with_already_existing_rule(self): - # Arrange - self._create_topic_and_subscription(self.topic_name, 'MySubscription') - - # Act - created1 = self.sbs.create_rule( - self.topic_name, 'MySubscription', 'MyRule1') - created2 = self.sbs.create_rule( - self.topic_name, 'MySubscription', 'MyRule1') - - # Assert - self.assertTrue(created1) - self.assertFalse(created2) - - @record - def test_create_rule_with_already_existing_rule_fail_on_exist(self): - # Arrange - self._create_topic_and_subscription(self.topic_name, 'MySubscription') - - # Act - created = self.sbs.create_rule( - self.topic_name, 'MySubscription', 'MyRule1') - with self.assertRaises(AzureConflictHttpError): - self.sbs.create_rule( - self.topic_name, 'MySubscription', 'MyRule1', None, True) - - # Assert - self.assertTrue(created) - - @record - def test_create_rule_with_options_sql_filter(self): - # Arrange - self._create_topic_and_subscription(self.topic_name, 'MySubscription') - - # Act - rule1 = Rule() - rule1.filter_type = 'SqlFilter' - rule1.filter_expression = 'number > 40' - created = self.sbs.create_rule( - self.topic_name, 'MySubscription', 'MyRule1', rule1) - - # Assert - self.assertTrue(created) - - @record - def test_create_rule_with_options_true_filter(self): - # Arrange - self._create_topic_and_subscription(self.topic_name, 'MySubscription') - - # Act - rule1 = Rule() - rule1.filter_type = 'TrueFilter' - rule1.filter_expression = '1=1' - created = self.sbs.create_rule( - self.topic_name, 'MySubscription', 'MyRule1', rule1) - - # Assert - self.assertTrue(created) - - @record - def test_create_rule_with_options_false_filter(self): - # Arrange - self._create_topic_and_subscription(self.topic_name, 'MySubscription') - - # Act - rule1 = Rule() - rule1.filter_type = 'FalseFilter' - rule1.filter_expression = '1=0' - created = self.sbs.create_rule( - self.topic_name, 'MySubscription', 'MyRule1', rule1) - - # Assert - self.assertTrue(created) - - @record - def test_create_rule_with_options_correlation_filter(self): - # Arrange - self._create_topic_and_subscription(self.topic_name, 'MySubscription') - - # Act - rule1 = Rule() - rule1.filter_type = 'CorrelationFilter' - rule1.filter_expression = 'myid' - created = self.sbs.create_rule( - self.topic_name, 'MySubscription', 'MyRule1', rule1) - - # Assert - self.assertTrue(created) - - @record - def test_create_rule_with_options_empty_rule_action(self): - # Arrange - self._create_topic_and_subscription(self.topic_name, 'MySubscription') - - # Act - rule1 = Rule() - rule1.action_type = 'EmptyRuleAction' - rule1.action_expression = '' - created = self.sbs.create_rule( - self.topic_name, 'MySubscription', 'MyRule1', rule1) - - # Assert - self.assertTrue(created) - - @record - def test_create_rule_with_options_sql_rule_action(self): - # Arrange - self._create_topic_and_subscription(self.topic_name, 'MySubscription') - - # Act - rule1 = Rule() - rule1.action_type = 'SqlRuleAction' - rule1.action_expression = "SET number = 5" - created = self.sbs.create_rule( - self.topic_name, 'MySubscription', 'MyRule1', rule1) - - # Assert - self.assertTrue(created) - - @record - def test_list_rules(self): - # Arrange - self._create_topic_and_subscription(self.topic_name, 'MySubscription') - resp = self.sbs.create_rule( - self.topic_name, 'MySubscription', 'MyRule2') - - # Act - rules = self.sbs.list_rules(self.topic_name, 'MySubscription') - - # Assert - self.assertEqual(len(rules), 2) - - @record - def test_get_rule_with_existing_rule(self): - # Arrange - self._create_topic_and_subscription(self.topic_name, 'MySubscription') - - # Act - rule = self.sbs.get_rule(self.topic_name, 'MySubscription', '$Default') - - # Assert - self.assertIsNotNone(rule) - self.assertEqual(rule.name, '$Default') - - @record - def test_get_rule_with_non_existing_rule(self): - # Arrange - self._create_topic_and_subscription(self.topic_name, 'MySubscription') - - # Act - with self.assertRaises(AzureMissingResourceHttpError): - self.sbs.get_rule(self.topic_name, - 'MySubscription', 'NonExistingRule') - - # Assert - - @record - def test_get_rule_with_existing_rule_with_options(self): - # Arrange - self._create_topic_and_subscription(self.topic_name, 'MySubscription') - sent_rule = Rule() - sent_rule.filter_type = 'SqlFilter' - sent_rule.filter_expression = 'number > 40' - sent_rule.action_type = 'SqlRuleAction' - sent_rule.action_expression = 'SET number = 5' - self.sbs.create_rule( - self.topic_name, 'MySubscription', 'MyRule1', sent_rule) - - # Act - received_rule = self.sbs.get_rule( - self.topic_name, 'MySubscription', 'MyRule1') - - # Assert - self.assertIsNotNone(received_rule) - self.assertEqual(received_rule.name, 'MyRule1') - self.assertEqual(received_rule.filter_type, sent_rule.filter_type) - self.assertEqual(received_rule.filter_expression, - sent_rule.filter_expression) - self.assertEqual(received_rule.action_type, sent_rule.action_type) - self.assertEqual(received_rule.action_expression, - sent_rule.action_expression) - - @record - def test_delete_rule_with_existing_rule(self): - # Arrange - self._create_topic_and_subscription(self.topic_name, 'MySubscription') - resp = self.sbs.create_rule( - self.topic_name, 'MySubscription', 'MyRule3') - resp = self.sbs.create_rule( - self.topic_name, 'MySubscription', 'MyRule4') - - # Act - deleted1 = self.sbs.delete_rule( - self.topic_name, 'MySubscription', 'MyRule4') - deleted2 = self.sbs.delete_rule( - self.topic_name, 'MySubscription', '$Default') - - # Assert - self.assertTrue(deleted1) - self.assertTrue(deleted2) - rules = self.sbs.list_rules(self.topic_name, 'MySubscription') - self.assertIsNotNone(rules) - self.assertEqual(len(rules), 1) - self.assertEqual(rules[0].name, 'MyRule3') - - @record - def test_delete_rule_with_existing_rule_fail_not_exist(self): - # Arrange - self._create_topic_and_subscription(self.topic_name, 'MySubscription') - resp = self.sbs.create_rule( - self.topic_name, 'MySubscription', 'MyRule3') - resp = self.sbs.create_rule( - self.topic_name, 'MySubscription', 'MyRule4') - - # Act - deleted1 = self.sbs.delete_rule( - self.topic_name, 'MySubscription', 'MyRule4', True) - deleted2 = self.sbs.delete_rule( - self.topic_name, 'MySubscription', '$Default', True) - - # Assert - self.assertTrue(deleted1) - self.assertTrue(deleted2) - rules = self.sbs.list_rules(self.topic_name, 'MySubscription') - self.assertIsNotNone(rules) - self.assertEqual(len(rules), 1) - self.assertEqual(rules[0].name, 'MyRule3') - - @record - def test_delete_rule_with_non_existing_rule(self): - # Arrange - self._create_topic_and_subscription(self.topic_name, 'MySubscription') - - # Act - deleted = self.sbs.delete_rule( - self.topic_name, 'MySubscription', 'NonExistingRule') - - # Assert - self.assertFalse(deleted) - - @record - def test_delete_rule_with_non_existing_rule_fail_not_exist(self): - # Arrange - self._create_topic_and_subscription(self.topic_name, 'MySubscription') - - # Act - with self.assertRaises(AzureMissingResourceHttpError): - self.sbs.delete_rule( - self.topic_name, 'MySubscription', 'NonExistingRule', True) - - # Assert - - @record - def test_send_topic_message(self): - # Arrange - self._create_topic_and_subscription(self.topic_name, 'MySubscription') - sent_msg = Message(b'subscription message') - - # Act - self.sbs.send_topic_message(self.topic_name, sent_msg) - - # Assert - - @record - def test_send_topic_message_batch(self): - # https://docs.microsoft.com/rest/api/servicebus/send-message-batch - - # Arrange - self._create_topic_and_subscription(self.topic_name, 'MySubscription') - sent_msg_1 = Message(b'This is the first message', - broker_properties={'Label': 'M1', - 'TimeToLiveTimeSpan': '0.00:00:40'} - ) - sent_msg_2 = Message(b'This is the second message', - broker_properties={'Label': 'M2'}, - custom_properties={'Priority': 'Low'} - ) - sent_msg_3 = Message(b'This is the third message', - broker_properties={'Label': 'M3'}, - custom_properties={'Priority': 'Medium', - 'Customer': 'ABC'} - ) - - # Act - self.sbs.send_topic_message_batch(self.topic_name, [sent_msg_1, sent_msg_2, sent_msg_3]) - received_msg_1 = self.sbs.receive_subscription_message( - self.topic_name, 'MySubscription', False) - received_msg_2 = self.sbs.receive_subscription_message( - self.topic_name, 'MySubscription', False) - received_msg_3 = self.sbs.receive_subscription_message( - self.topic_name, 'MySubscription', False) - - # Assert - self.assertEqual(sent_msg_1.body, received_msg_1.body) - self.assertEqual(sent_msg_2.body, received_msg_2.body) - self.assertEqual(sent_msg_3.body, received_msg_3.body) - - @record - def test_receive_subscription_message_read_delete_mode(self): - # Arrange - self._create_topic_and_subscription(self.topic_name, 'MySubscription') - sent_msg = Message(b'subscription message') - self.sbs.send_topic_message(self.topic_name, sent_msg) - - # Act - received_msg = self.sbs.receive_subscription_message( - self.topic_name, 'MySubscription', False) - - # Assert - self.assertIsNotNone(received_msg) - self.assertEqual(sent_msg.body, received_msg.body) - - @record - def test_receive_subscription_message_read_delete_mode_throws_on_delete(self): - # Arrange - self._create_topic_and_subscription(self.topic_name, 'MySubscription') - sent_msg = Message(b'subscription message') - self.sbs.send_topic_message(self.topic_name, sent_msg) - - # Act - received_msg = self.sbs.receive_subscription_message( - self.topic_name, 'MySubscription', False) - with self.assertRaises(AzureServiceBusPeekLockError): - received_msg.delete() - - # Assert - - @record - def test_receive_subscription_message_read_delete_mode_throws_on_unlock(self): - # Arrange - self._create_topic_and_subscription(self.topic_name, 'MySubscription') - sent_msg = Message(b'subscription message') - self.sbs.send_topic_message(self.topic_name, sent_msg) - - # Act - received_msg = self.sbs.receive_subscription_message( - self.topic_name, 'MySubscription', False) - with self.assertRaises(AzureServiceBusPeekLockError): - received_msg.renew_lock() - with self.assertRaises(AzureServiceBusPeekLockError): - received_msg.unlock() - - # Assert - - @record - def test_receive_subscription_message_peek_lock_mode(self): - # Arrange - self._create_topic_and_subscription(self.topic_name, 'MySubscription') - sent_msg = Message(b'subscription message') - self.sbs.send_topic_message(self.topic_name, sent_msg) - - # Act - received_msg = self.sbs.receive_subscription_message( - self.topic_name, 'MySubscription', True, 5) - - # Assert - self.assertIsNotNone(received_msg) - self.assertEqual(sent_msg.body, received_msg.body) - - @record - def test_get_dead_letter_subscription(self): - # Arrange - self._create_topic_and_subscription(self.topic_name, 'MySubscription') - - # Act - dead_letter_name = ServiceBusService.format_dead_letter_subscription_name( - 'MySubscription') - try: - self.sbs.receive_subscription_message( - self.topic_name, dead_letter_name, timeout=2) - except Exception: - # Assert - self.fail("Dead Letter subscription not found") - - @record - def test_receive_subscription_message_delete(self): - # Arrange - self._create_topic_and_subscription(self.topic_name, 'MySubscription') - sent_msg = Message(b'subscription message') - self.sbs.send_topic_message(self.topic_name, sent_msg) - - # Act - received_msg = self.sbs.receive_subscription_message( - self.topic_name, 'MySubscription', True, 5) - received_msg.delete() - - # Assert - self.assertIsNotNone(received_msg) - self.assertEqual(sent_msg.body, received_msg.body) - - @record - def test_receive_subscription_message_delete_with_slash(self): - # Arrange - self.topic_name = self.get_resource_name('ut/topic') - self._create_topic_and_subscription(self.topic_name, 'MySubscription') - sent_msg = Message(b'subscription message') - self.sbs.send_topic_message(self.topic_name, sent_msg) - - # Act - received_msg = self.sbs.receive_subscription_message( - self.topic_name, 'MySubscription', True, 5) - received_msg.delete() - - # Assert - self.assertIsNotNone(received_msg) - self.assertEqual(sent_msg.body, received_msg.body) - - @record - def test_receive_subscription_message_unlock(self): - # Arrange - self._create_topic_and_subscription(self.topic_name, 'MySubscription') - sent_msg = Message(b'subscription message') - self.sbs.send_topic_message(self.topic_name, sent_msg) - - # Act - received_msg = self.sbs.receive_subscription_message( - self.topic_name, 'MySubscription', True) - received_msg.renew_lock() - received_msg.unlock() - - # Assert - received_again_msg = self.sbs.receive_subscription_message( - self.topic_name, 'MySubscription', True) - received_again_msg.delete() - self.assertIsNotNone(received_msg) - self.assertIsNotNone(received_again_msg) - self.assertEqual(sent_msg.body, received_msg.body) - self.assertEqual(received_again_msg.body, received_msg.body) - - @record - def test_with_filter(self): - # Single filter - called = [] - - def my_filter(request, next): - called.append(True) - return next(request) - - sbs = self.sbs.with_filter(my_filter) - sbs.create_topic(self.topic_name + '0', None, True) - - self.assertTrue(called) - - del called[:] - - sbs.delete_topic(self.topic_name + '0') - - self.assertTrue(called) - del called[:] - - # Chained filters - def filter_a(request, next): - called.append('a') - return next(request) - - def filter_b(request, next): - called.append('b') - return next(request) - - sbs = self.sbs.with_filter(filter_a).with_filter(filter_b) - sbs.create_topic(self.topic_name + '0', None, True) - - self.assertEqual(called, ['b', 'a']) - - sbs.delete_topic(self.topic_name + '0') - - self.assertEqual(called, ['b', 'a', 'b', 'a']) - - @unittest.skip('requires extra setup') - def test_two_identities(self): - # In order to run this test, 2 service bus service identities are - # created using the sbaztool available at: - # http://code.msdn.microsoft.com/windowsazure/Authorization-SBAzTool-6fd76d93 - # - # Use the following commands to create 2 identities and grant access - # rights. - # Replace with the namespace specified in the - # test .json file - # Replace with the key specified in the test .json file - # This only needs to be executed once, after the service bus namespace - # is created. - # - # sbaztool makeid user1 NoHEoD6snlvlhZm7yek9Etxca3l0CYjfc19ICIJZoUg= -n -k - # sbaztool grant Send /path1 user1 -n -k - # sbaztool grant Listen /path1 user1 -n -k - # sbaztool grant Manage /path1 user1 -n -k - # - - # sbaztool makeid user2 Tb6K5qEgstyRBwp86JEjUezKj/a+fnkLFnibfgvxvdg= -n -k - # sbaztool grant Send /path2 user2 -n -k - # sbaztool grant Listen /path2 user2 -n -k - # sbaztool grant Manage /path2 user2 -n -k - # - - sbs1 = ServiceBusService(self.settings.SERVICEBUS_NAME, - 'NoHEoD6snlvlhZm7yek9Etxca3l0CYjfc19ICIJZoUg=', - 'user1') - sbs2 = ServiceBusService(self.settings.SERVICEBUS_NAME, - 'Tb6K5qEgstyRBwp86JEjUezKj/a+fnkLFnibfgvxvdg=', - 'user2') - - queue1_name = 'path1/queue' + str(random.randint(1, 10000000)) - queue2_name = 'path2/queue' + str(random.randint(1, 10000000)) - - try: - # Create queues, success - sbs1.create_queue(queue1_name) - sbs2.create_queue(queue2_name) - - # Receive messages, success - msg = sbs1.receive_queue_message(queue1_name, True, 1) - self.assertIsNone(msg.body) - msg = sbs1.receive_queue_message(queue1_name, True, 1) - self.assertIsNone(msg.body) - msg = sbs2.receive_queue_message(queue2_name, True, 1) - self.assertIsNone(msg.body) - msg = sbs2.receive_queue_message(queue2_name, True, 1) - self.assertIsNone(msg.body) - - # Receive messages, failure - with self.assertRaises(AzureHttpError): - msg = sbs1.receive_queue_message(queue2_name, True, 1) - with self.assertRaises(AzureHttpError): - msg = sbs2.receive_queue_message(queue1_name, True, 1) - finally: - try: - sbs1.delete_queue(queue1_name) - except: - pass - try: - sbs2.delete_queue(queue2_name) - except: - pass - - @record - def test_unicode_create_queue_unicode_name(self): - # Arrange - self.queue_name = self.queue_name + u'啊齄丂狛狜' - - # Act - with self.assertRaises(AzureHttpError): - created = self.sbs.create_queue(self.queue_name) - - # Assert - - @record - def test_send_queue_message_unicode(self): - '''Test for auto-encoding of unicode text''' - - # Arrange - data = u'receive message啊齄丂狛狜' - sent_msg = Message(data) - self._create_queue(self.queue_name) - - # Act - self.sbs.send_queue_message(self.queue_name, sent_msg) - - # Assert - received_msg = self.sbs.receive_queue_message(self.queue_name, False) - self.assertIsNotNone(received_msg) - self.assertEqual(received_msg.body, data.encode('utf-8')) - - @record - def test_unicode_receive_queue_message_unicode_data(self): - # Assert - sent_msg = Message(u'receive message啊齄丂狛狜'.encode('utf-8')) - self._create_queue_and_send_msg(self.queue_name, sent_msg) - - # Act - received_msg = self.sbs.receive_queue_message(self.queue_name, False) - - # Assert - self.assertIsNotNone(received_msg) - self.assertEqual(sent_msg.body, received_msg.body) - - @record - def test_unicode_receive_queue_message_binary_data(self): - # Arrange - base64_data = 'AAECAwQFBgcICQoLDA0ODxAREhMUFRYXGBkaGxwdHh8gISIjJCUmJygpKissLS4vMDEyMzQ1Njc4OTo7PD0+P0BBQkNERUZHSElKS0xNTk9QUVJTVFVWV1hZWltcXV5fYGFiY2RlZmdoaWprbG1ub3BxcnN0dXZ3eHl6e3x9fn+AgYKDhIWGh4iJiouMjY6PkJGSk5SVlpeYmZqbnJ2en6ChoqOkpaanqKmqq6ytrq+wsbKztLW2t7i5uru8vb6/wMHCw8TFxsfIycrLzM3Oz9DR0tPU1dbX2Nna29zd3t/g4eLj5OXm5+jp6uvs7e7v8PHy8/T19vf4+fr7/P3+/wABAgMEBQYHCAkKCwwNDg8QERITFBUWFxgZGhscHR4fICEiIyQlJicoKSorLC0uLzAxMjM0NTY3ODk6Ozw9Pj9AQUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVpbXF1eX2BhYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ent8fX5/gIGCg4SFhoeIiYqLjI2Oj5CRkpOUlZaXmJmam5ydnp+goaKjpKWmp6ipqqusra6vsLGys7S1tre4ubq7vL2+v8DBwsPExcbHyMnKy8zNzs/Q0dLT1NXW19jZ2tvc3d7f4OHi4+Tl5ufo6err7O3u7/Dx8vP09fb3+Pn6+/z9/v8AAQIDBAUGBwgJCgsMDQ4PEBESExQVFhcYGRobHB0eHyAhIiMkJSYnKCkqKywtLi8wMTIzNDU2Nzg5Ojs8PT4/QEFCQ0RFRkdISUpLTE1OT1BRUlNUVVZXWFlaW1xdXl9gYWJjZGVmZ2hpamtsbW5vcHFyc3R1dnd4eXp7fH1+f4CBgoOEhYaHiImKi4yNjo+QkZKTlJWWl5iZmpucnZ6foKGio6SlpqeoqaqrrK2ur7CxsrO0tba3uLm6u7y9vr/AwcLDxMXGx8jJysvMzc7P0NHS09TV1tfY2drb3N3e3+Dh4uPk5ebn6Onq6+zt7u/w8fLz9PX29/j5+vv8/f7/AAECAwQFBgcICQoLDA0ODxAREhMUFRYXGBkaGxwdHh8gISIjJCUmJygpKissLS4vMDEyMzQ1Njc4OTo7PD0+P0BBQkNERUZHSElKS0xNTk9QUVJTVFVWV1hZWltcXV5fYGFiY2RlZmdoaWprbG1ub3BxcnN0dXZ3eHl6e3x9fn+AgYKDhIWGh4iJiouMjY6PkJGSk5SVlpeYmZqbnJ2en6ChoqOkpaanqKmqq6ytrq+wsbKztLW2t7i5uru8vb6/wMHCw8TFxsfIycrLzM3Oz9DR0tPU1dbX2Nna29zd3t/g4eLj5OXm5+jp6uvs7e7v8PHy8/T19vf4+fr7/P3+/w==' - binary_data = base64.b64decode(base64_data) - sent_msg = Message(binary_data) - self._create_queue_and_send_msg(self.queue_name, sent_msg) - - # Act - received_msg = self.sbs.receive_queue_message(self.queue_name, False) - - # Assert - self.assertIsNotNone(received_msg) - self.assertEqual(sent_msg.body, received_msg.body) - - @record - def test_unicode_create_subscription_unicode_name(self): - # Arrange - self._create_topic(self.topic_name) - - # Act - with self.assertRaises(AzureHttpError): - created = self.sbs.create_subscription( - self.topic_name, u'MySubscription啊齄丂狛狜') - - # Assert - - @record - def test_unicode_create_rule_unicode_name(self): - # Arrange - self._create_topic_and_subscription(self.topic_name, 'MySubscription') - - # Act - with self.assertRaises(AzureHttpError): - created = self.sbs.create_rule( - self.topic_name, 'MySubscription', 'MyRule啊齄丂狛狜') - - # Assert - - @record - def test_send_topic_message_unicode(self): - '''Test for auto-encoding of unicode text.''' - # Arrange - data = u'receive message啊齄丂狛狜' - sent_msg = Message(data) - self._create_topic_and_subscription(self.topic_name, 'MySubscription') - - # Act - self.sbs.send_topic_message(self.topic_name, sent_msg) - - # Assert - received_msg = self.sbs.receive_subscription_message( - self.topic_name, 'MySubscription', False) - self.assertIsNotNone(received_msg) - self.assertEqual(received_msg.body, data.encode('utf-8')) - - @record - def test_unicode_receive_subscription_message_unicode_data(self): - # Arrange - self._create_topic_and_subscription(self.topic_name, 'MySubscription') - sent_msg = Message(u'subscription message啊齄丂狛狜'.encode('utf-8')) - self.sbs.send_topic_message(self.topic_name, sent_msg) - - # Act - received_msg = self.sbs.receive_subscription_message( - self.topic_name, 'MySubscription', False) - - # Assert - self.assertIsNotNone(received_msg) - self.assertEqual(sent_msg.body, received_msg.body) - - @record - def test_unicode_receive_subscription_message_binary_data(self): - # Arrange - base64_data = 'AAECAwQFBgcICQoLDA0ODxAREhMUFRYXGBkaGxwdHh8gISIjJCUmJygpKissLS4vMDEyMzQ1Njc4OTo7PD0+P0BBQkNERUZHSElKS0xNTk9QUVJTVFVWV1hZWltcXV5fYGFiY2RlZmdoaWprbG1ub3BxcnN0dXZ3eHl6e3x9fn+AgYKDhIWGh4iJiouMjY6PkJGSk5SVlpeYmZqbnJ2en6ChoqOkpaanqKmqq6ytrq+wsbKztLW2t7i5uru8vb6/wMHCw8TFxsfIycrLzM3Oz9DR0tPU1dbX2Nna29zd3t/g4eLj5OXm5+jp6uvs7e7v8PHy8/T19vf4+fr7/P3+/wABAgMEBQYHCAkKCwwNDg8QERITFBUWFxgZGhscHR4fICEiIyQlJicoKSorLC0uLzAxMjM0NTY3ODk6Ozw9Pj9AQUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVpbXF1eX2BhYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ent8fX5/gIGCg4SFhoeIiYqLjI2Oj5CRkpOUlZaXmJmam5ydnp+goaKjpKWmp6ipqqusra6vsLGys7S1tre4ubq7vL2+v8DBwsPExcbHyMnKy8zNzs/Q0dLT1NXW19jZ2tvc3d7f4OHi4+Tl5ufo6err7O3u7/Dx8vP09fb3+Pn6+/z9/v8AAQIDBAUGBwgJCgsMDQ4PEBESExQVFhcYGRobHB0eHyAhIiMkJSYnKCkqKywtLi8wMTIzNDU2Nzg5Ojs8PT4/QEFCQ0RFRkdISUpLTE1OT1BRUlNUVVZXWFlaW1xdXl9gYWJjZGVmZ2hpamtsbW5vcHFyc3R1dnd4eXp7fH1+f4CBgoOEhYaHiImKi4yNjo+QkZKTlJWWl5iZmpucnZ6foKGio6SlpqeoqaqrrK2ur7CxsrO0tba3uLm6u7y9vr/AwcLDxMXGx8jJysvMzc7P0NHS09TV1tfY2drb3N3e3+Dh4uPk5ebn6Onq6+zt7u/w8fLz9PX29/j5+vv8/f7/AAECAwQFBgcICQoLDA0ODxAREhMUFRYXGBkaGxwdHh8gISIjJCUmJygpKissLS4vMDEyMzQ1Njc4OTo7PD0+P0BBQkNERUZHSElKS0xNTk9QUVJTVFVWV1hZWltcXV5fYGFiY2RlZmdoaWprbG1ub3BxcnN0dXZ3eHl6e3x9fn+AgYKDhIWGh4iJiouMjY6PkJGSk5SVlpeYmZqbnJ2en6ChoqOkpaanqKmqq6ytrq+wsbKztLW2t7i5uru8vb6/wMHCw8TFxsfIycrLzM3Oz9DR0tPU1dbX2Nna29zd3t/g4eLj5OXm5+jp6uvs7e7v8PHy8/T19vf4+fr7/P3+/w==' - binary_data = base64.b64decode(base64_data) - self._create_topic_and_subscription(self.topic_name, 'MySubscription') - sent_msg = Message(binary_data) - self.sbs.send_topic_message(self.topic_name, sent_msg) - - # Act - received_msg = self.sbs.receive_subscription_message( - self.topic_name, 'MySubscription', False) - - # Assert - self.assertIsNotNone(received_msg) - self.assertEqual(sent_msg.body, received_msg.body) - -#------------------------------------------------------------------------------ -if __name__ == '__main__': - unittest.main()