From fe6fcdccf12d42eb08e4c312dd0c34fcba90c2e2 Mon Sep 17 00:00:00 2001 From: bradleydamato Date: Tue, 20 Oct 2020 17:57:03 -0400 Subject: [PATCH 01/30] Adding kwarg update line to update_* functions --- .../azure/servicebus/management/_management_client.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sdk/servicebus/azure-servicebus/azure/servicebus/management/_management_client.py b/sdk/servicebus/azure-servicebus/azure/servicebus/management/_management_client.py index 18d2ae0268d3..58b0223d2ccb 100644 --- a/sdk/servicebus/azure-servicebus/azure/servicebus/management/_management_client.py +++ b/sdk/servicebus/azure-servicebus/azure/servicebus/management/_management_client.py @@ -282,6 +282,7 @@ def update_queue(self, queue, **kwargs): """ to_update = queue._to_internal_entity() + to_update.__dict__.update((k, v) for k, v in kwargs.items() if k in to_update.__dict__.keys()) to_update.default_message_time_to_live = avoid_timedelta_overflow(to_update.default_message_time_to_live) to_update.auto_delete_on_idle = avoid_timedelta_overflow(to_update.auto_delete_on_idle) @@ -484,7 +485,7 @@ def update_topic(self, topic, **kwargs): """ to_update = topic._to_internal_entity() - + to_update.__dict__.update((k, v) for k, v in kwargs.items() if k in to_update.__dict__.keys()) to_update.default_message_time_to_live = kwargs.get( "default_message_time_to_live") or topic.default_message_time_to_live to_update.duplicate_detection_history_time_window = kwargs.get( @@ -694,6 +695,7 @@ def update_subscription(self, topic_name, subscription, **kwargs): _validate_entity_name_type(topic_name, display_name='topic_name') to_update = subscription._to_internal_entity() + to_update.__dict__.update((k, v) for k, v in kwargs.items() if k in to_update.__dict__.keys()) to_update.default_message_time_to_live = avoid_timedelta_overflow(to_update.default_message_time_to_live) to_update.auto_delete_on_idle = avoid_timedelta_overflow(to_update.auto_delete_on_idle) @@ -858,6 +860,7 @@ def update_rule(self, topic_name, subscription_name, rule, **kwargs): _validate_topic_and_subscription_types(topic_name, subscription_name) to_update = rule._to_internal_entity() + to_update.__dict__.update((k, v) for k, v in kwargs.items() if k in to_update.__dict__.keys()) create_entity_body = CreateRuleBody( content=CreateRuleBodyContent( From b65f309217dfd159b6994e10b521b8dd17d55ceb Mon Sep 17 00:00:00 2001 From: bradleydamato Date: Mon, 26 Oct 2020 18:30:29 -0400 Subject: [PATCH 02/30] ServiceBusAdministrationClient update_* methods now accept dictionary representations --- .../management/_management_client.py | 28 +++++++++++++------ 1 file changed, 20 insertions(+), 8 deletions(-) diff --git a/sdk/servicebus/azure-servicebus/azure/servicebus/management/_management_client.py b/sdk/servicebus/azure-servicebus/azure/servicebus/management/_management_client.py index 58b0223d2ccb..920f799cd7b4 100644 --- a/sdk/servicebus/azure-servicebus/azure/servicebus/management/_management_client.py +++ b/sdk/servicebus/azure-servicebus/azure/servicebus/management/_management_client.py @@ -280,8 +280,11 @@ def update_queue(self, queue, **kwargs): :type queue: ~azure.servicebus.management.QueueProperties :rtype: None """ - - to_update = queue._to_internal_entity() + if isinstance(queue,dict): + dict_to_queue_props = QueueProperties(queue.pop('name'),**queue) + to_update=dict_to_queue_props._to_internal_entity() + else: + to_update = queue._to_internal_entity() to_update.__dict__.update((k, v) for k, v in kwargs.items() if k in to_update.__dict__.keys()) to_update.default_message_time_to_live = avoid_timedelta_overflow(to_update.default_message_time_to_live) @@ -483,8 +486,11 @@ def update_topic(self, topic, **kwargs): :type topic: ~azure.servicebus.management.TopicProperties :rtype: None """ - - to_update = topic._to_internal_entity() + if isinstance(topic,dict): + dict_to_topic_props = TopicProperties(topic.pop('name'),**topic) + to_update = dict_to_topic_props._to_internal_entity() + else: + to_update = topic._to_internal_entity() to_update.__dict__.update((k, v) for k, v in kwargs.items() if k in to_update.__dict__.keys()) to_update.default_message_time_to_live = kwargs.get( "default_message_time_to_live") or topic.default_message_time_to_live @@ -693,8 +699,11 @@ def update_subscription(self, topic_name, subscription, **kwargs): :rtype: None """ _validate_entity_name_type(topic_name, display_name='topic_name') - - to_update = subscription._to_internal_entity() + if isinstance(subscription,dict): + dict_to_subscription_props = SubscriptionProperties(subscription.pop('name'),**subscription) + to_update = dict_to_subscription_props._to_internal_entity() + else: + to_update = subscription._to_internal_entity() to_update.__dict__.update((k, v) for k, v in kwargs.items() if k in to_update.__dict__.keys()) to_update.default_message_time_to_live = avoid_timedelta_overflow(to_update.default_message_time_to_live) @@ -858,8 +867,11 @@ def update_rule(self, topic_name, subscription_name, rule, **kwargs): :rtype: None """ _validate_topic_and_subscription_types(topic_name, subscription_name) - - to_update = rule._to_internal_entity() + if isinstance(rule,dict): + dict_to_rule_props = RuleProperties(rule.pop("name"),**rule) + to_update = dict_to_rule_props._to_internal_entity() + else: + to_update = rule._to_internal_entity() to_update.__dict__.update((k, v) for k, v in kwargs.items() if k in to_update.__dict__.keys()) create_entity_body = CreateRuleBody( From 30d694860d4b4bb1a4cf788b1dd1abf1dffed3cb Mon Sep 17 00:00:00 2001 From: bradleydamato Date: Mon, 26 Oct 2020 19:07:35 -0400 Subject: [PATCH 03/30] ServiceBusSender methods now accept dict-representation --- .../azure/servicebus/_servicebus_sender.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/sdk/servicebus/azure-servicebus/azure/servicebus/_servicebus_sender.py b/sdk/servicebus/azure-servicebus/azure/servicebus/_servicebus_sender.py index a7eb179d009b..2a2b55d96039 100644 --- a/sdk/servicebus/azure-servicebus/azure/servicebus/_servicebus_sender.py +++ b/sdk/servicebus/azure-servicebus/azure/servicebus/_servicebus_sender.py @@ -217,7 +217,10 @@ def schedule_messages(self, messages, schedule_time_utc, **kwargs): :caption: Schedule a message to be sent in future """ # pylint: disable=protected-access - self._open() + self. + if isinstance(messages,dict): + temporary_message = Message(messages.pop('body'),**messages) + messages = temporary_message timeout = kwargs.pop("timeout", None) if timeout is not None and timeout <= 0: raise ValueError("The timeout must be greater than 0.") @@ -346,6 +349,9 @@ def send_messages(self, message, **kwargs): :caption: Send message. """ + if isinstance(message,dict): + temporary_message = Message(message.pop('body'),**message) + message = temporary_message timeout = kwargs.pop("timeout", None) if timeout is not None and timeout <= 0: raise ValueError("The timeout must be greater than 0.") From d6686f12ac21d6bf18d2c7d5c6ce6b44b9b6a8ab Mon Sep 17 00:00:00 2001 From: bradleydamato Date: Mon, 26 Oct 2020 20:06:39 -0400 Subject: [PATCH 04/30] ServiceBusSender methods now accept list of dict-representations in some cases --- .../azure/servicebus/_servicebus_sender.py | 20 ++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/sdk/servicebus/azure-servicebus/azure/servicebus/_servicebus_sender.py b/sdk/servicebus/azure-servicebus/azure/servicebus/_servicebus_sender.py index 2a2b55d96039..be995400d6a7 100644 --- a/sdk/servicebus/azure-servicebus/azure/servicebus/_servicebus_sender.py +++ b/sdk/servicebus/azure-servicebus/azure/servicebus/_servicebus_sender.py @@ -217,10 +217,18 @@ def schedule_messages(self, messages, schedule_time_utc, **kwargs): :caption: Schedule a message to be sent in future """ # pylint: disable=protected-access - self. + self._open() + if isinstance(messages,list): + for index,each in enumerate(messages): + if isinstance(each,dict): + messages[index] = Message(each.pop("body"),**each) + else: + pass + if isinstance(messages,dict): - temporary_message = Message(messages.pop('body'),**messages) - messages = temporary_message + temp_messages = Message(messages.pop("body"),**messages) + messages = temp_messages + timeout = kwargs.pop("timeout", None) if timeout is not None and timeout <= 0: raise ValueError("The timeout must be greater than 0.") @@ -349,6 +357,12 @@ def send_messages(self, message, **kwargs): :caption: Send message. """ + if isinstance(message,list): + for index,each in enumerate(message): + if isinstance(each,dict): + message[index] = Message(each.pop("body"),**each) + else: + pass if isinstance(message,dict): temporary_message = Message(message.pop('body'),**message) message = temporary_message From ea060e29479d04d28215178250e6a28df7ae4d4f Mon Sep 17 00:00:00 2001 From: bradleydamato Date: Mon, 26 Oct 2020 21:40:12 -0400 Subject: [PATCH 05/30] Message, Async ServiceBusSender, and Async ServiceBusAdministrationClient methods now accept dict-representation --- .../azure/servicebus/_common/message.py | 9 ++++++ .../aio/_servicebus_sender_async.py | 21 ++++++++++++++ .../management/_management_client_async.py | 28 ++++++++++++++----- 3 files changed, 51 insertions(+), 7 deletions(-) diff --git a/sdk/servicebus/azure-servicebus/azure/servicebus/_common/message.py b/sdk/servicebus/azure-servicebus/azure/servicebus/_common/message.py index 67e79f9bb575..357b1f3a205a 100644 --- a/sdk/servicebus/azure-servicebus/azure/servicebus/_common/message.py +++ b/sdk/servicebus/azure-servicebus/azure/servicebus/_common/message.py @@ -526,6 +526,9 @@ def __len__(self): return self._count def _from_list(self, messages): + if isinstance(messages,dict): + temp_messages = Message(temp_messages.pop('body'),**messages) + messages = temp_messages for each in messages: if not isinstance(each, Message): raise TypeError("Only Message or an iterable object containing Message objects are accepted." @@ -554,6 +557,9 @@ def add(self, message): :rtype: None :raises: :class: ~azure.servicebus.exceptions.MessageContentTooLarge, when exceeding the size limit. """ + if isinstance(message,dict): + temp_message = Message(message.pop('body'),**message) + message = temp_message message = transform_messages_to_sendable_if_needed(message) message_size = message.message.get_message_encoded_size() @@ -588,6 +594,9 @@ class PeekedMessage(Message): def __init__(self, message): # type: (uamqp.message.Message) -> None + if isinstance(message,dict): + temp_message = Message(message.pop('body'),**message) + message = temp_message super(PeekedMessage, self).__init__(None, message=message) # type: ignore def _to_outgoing_message(self): diff --git a/sdk/servicebus/azure-servicebus/azure/servicebus/aio/_servicebus_sender_async.py b/sdk/servicebus/azure-servicebus/azure/servicebus/aio/_servicebus_sender_async.py index 8be03f17a8e7..1fe93035c261 100644 --- a/sdk/servicebus/azure-servicebus/azure/servicebus/aio/_servicebus_sender_async.py +++ b/sdk/servicebus/azure-servicebus/azure/servicebus/aio/_servicebus_sender_async.py @@ -132,6 +132,9 @@ async def _open(self): async def _send(self, message, timeout=None, last_exception=None): await self._open() default_timeout = self._handler._msg_timeout # pylint: disable=protected-access + if isinstance(message,dict): + temp_message = Message(message.pop("body"),**message) + message = temp_message try: self._set_msg_timeout(timeout, last_exception) await self._handler.send_message_async(message.message) @@ -165,6 +168,15 @@ async def schedule_messages( """ # pylint: disable=protected-access await self._open() + if isinstance(messages,list): + for index,each in messages: + if isinstance(each,dict): + messages[index] = Message(each.pop("body"),**each) + else: + pass + if isinstance(messages,dict): + temp_message = Message(messages.pop("body"),**messages) + messages = temp_message timeout = kwargs.pop("timeout", None) if timeout is not None and timeout <= 0: raise ValueError("The timeout must be greater than 0.") @@ -286,6 +298,15 @@ async def send_messages(self, message: Union[Message, BatchMessage, List[Message :caption: Send message. """ + if isinstance(message,list): + for index,each in message: + if isinstance(each,dict): + message[index] = Message(each.pop("body"),**each) + else: + pass + if isinstance(message,dict): + temp_message = Message(message.pop("body"),**message) + message = temp_message timeout = kwargs.pop("timeout", None) if timeout is not None and timeout <= 0: raise ValueError("The timeout must be greater than 0.") diff --git a/sdk/servicebus/azure-servicebus/azure/servicebus/aio/management/_management_client_async.py b/sdk/servicebus/azure-servicebus/azure/servicebus/aio/management/_management_client_async.py index bb7b841234e6..4e60207671ed 100644 --- a/sdk/servicebus/azure-servicebus/azure/servicebus/aio/management/_management_client_async.py +++ b/sdk/servicebus/azure-servicebus/azure/servicebus/aio/management/_management_client_async.py @@ -286,8 +286,12 @@ async def update_queue(self, queue: QueueProperties, **kwargs) -> None: :type queue: ~azure.servicebus.management.QueueProperties :rtype: None """ + if isinstance(queue,dict): + dict_to_queue_props = QueueProperties(queue.pop("name"),**queue) + to_update = dict_to_queue_props._to_internal_entity() + else: + to_update = queue._to_internal_entity() - to_update = queue._to_internal_entity() to_update.default_message_time_to_live = avoid_timedelta_overflow(to_update.default_message_time_to_live) to_update.auto_delete_on_idle = avoid_timedelta_overflow(to_update.auto_delete_on_idle) @@ -479,8 +483,11 @@ async def update_topic(self, topic: TopicProperties, **kwargs) -> None: :type topic: ~azure.servicebus.management.TopicProperties :rtype: None """ - - to_update = topic._to_internal_entity() + if isinstance(topic,dict): + dict_to_topic_props = TopicProperties(topic.pop("name"),**topic) + to_update = dict_to_topic_props._to_internal_entity() + else: + to_update = topic._to_internal_entity() to_update.default_message_time_to_live = avoid_timedelta_overflow(to_update.default_message_time_to_live) to_update.auto_delete_on_idle = avoid_timedelta_overflow(to_update.auto_delete_on_idle) @@ -685,8 +692,11 @@ async def update_subscription( :rtype: None """ _validate_entity_name_type(topic_name, display_name='topic_name') - - to_update = subscription._to_internal_entity() + if isinstance(subscription,dict): + dict_to_subscription_props = SubscriptionProperties(subscription.pop("name"),**subscription) + to_update = dict_to_subscription_props._to_internal_entity() + else: + to_update = subscription._to_internal_entity() to_update.default_message_time_to_live = avoid_timedelta_overflow(to_update.default_message_time_to_live) to_update.auto_delete_on_idle = avoid_timedelta_overflow(to_update.auto_delete_on_idle) @@ -853,8 +863,12 @@ async def update_rule( :rtype: None """ _validate_topic_and_subscription_types(topic_name, subscription_name) - - to_update = rule._to_internal_entity() + + if isinstance(rule,dict): + dict_to_rule_props = RuleProperties(rule.pop('name'),**rule) + to_update = dict_to_rule_props._to_internal_entity() + else: + to_update = rule._to_internal_entity() create_entity_body = CreateRuleBody( content=CreateRuleBodyContent( From 0f9fc564e25f8a77e3ca01d5bcaf73d5bb641253 Mon Sep 17 00:00:00 2001 From: bradleydamato Date: Tue, 27 Oct 2020 08:43:51 -0400 Subject: [PATCH 06/30] Reverting change made to Message._from_list() method --- .../azure-servicebus/azure/servicebus/_common/message.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/sdk/servicebus/azure-servicebus/azure/servicebus/_common/message.py b/sdk/servicebus/azure-servicebus/azure/servicebus/_common/message.py index 357b1f3a205a..8c14a2312551 100644 --- a/sdk/servicebus/azure-servicebus/azure/servicebus/_common/message.py +++ b/sdk/servicebus/azure-servicebus/azure/servicebus/_common/message.py @@ -526,9 +526,6 @@ def __len__(self): return self._count def _from_list(self, messages): - if isinstance(messages,dict): - temp_messages = Message(temp_messages.pop('body'),**messages) - messages = temp_messages for each in messages: if not isinstance(each, Message): raise TypeError("Only Message or an iterable object containing Message objects are accepted." From 34e41eb3aa0f2173671353d1b65b69c4314df3b4 Mon Sep 17 00:00:00 2001 From: bradleydamato Date: Tue, 27 Oct 2020 09:13:16 -0400 Subject: [PATCH 07/30] Fixing indent size --- .../azure-servicebus/azure/servicebus/_servicebus_sender.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sdk/servicebus/azure-servicebus/azure/servicebus/_servicebus_sender.py b/sdk/servicebus/azure-servicebus/azure/servicebus/_servicebus_sender.py index be995400d6a7..f4124e734bcd 100644 --- a/sdk/servicebus/azure-servicebus/azure/servicebus/_servicebus_sender.py +++ b/sdk/servicebus/azure-servicebus/azure/servicebus/_servicebus_sender.py @@ -327,6 +327,7 @@ def from_connection_string( return cls(**constructor_args) def send_messages(self, message, **kwargs): + # type: (Union[Message, BatchMessage, List[Message]], Any) -> None """Sends message and blocks until acknowledgement is received or operation times out. @@ -357,7 +358,7 @@ def send_messages(self, message, **kwargs): :caption: Send message. """ - if isinstance(message,list): + if isinstance(message,list): for index,each in enumerate(message): if isinstance(each,dict): message[index] = Message(each.pop("body"),**each) From ff63098da195b4129ed45b1e97ffff2592d481ba Mon Sep 17 00:00:00 2001 From: bradleydamato Date: Tue, 27 Oct 2020 11:16:33 -0400 Subject: [PATCH 08/30] fixing Pylint errors --- .../azure/servicebus/_common/message.py | 8 +++--- .../azure/servicebus/_servicebus_sender.py | 24 ++++++++-------- .../aio/_servicebus_sender_async.py | 28 +++++++++---------- .../management/_management_client_async.py | 17 ++++++----- .../management/_management_client.py | 26 ++++++++--------- 5 files changed, 50 insertions(+), 53 deletions(-) diff --git a/sdk/servicebus/azure-servicebus/azure/servicebus/_common/message.py b/sdk/servicebus/azure-servicebus/azure/servicebus/_common/message.py index 8c14a2312551..367e77028946 100644 --- a/sdk/servicebus/azure-servicebus/azure/servicebus/_common/message.py +++ b/sdk/servicebus/azure-servicebus/azure/servicebus/_common/message.py @@ -554,8 +554,8 @@ def add(self, message): :rtype: None :raises: :class: ~azure.servicebus.exceptions.MessageContentTooLarge, when exceeding the size limit. """ - if isinstance(message,dict): - temp_message = Message(message.pop('body'),**message) + if isinstance(message, dict): + temp_message = Message(message.pop('body'), **message) message = temp_message message = transform_messages_to_sendable_if_needed(message) message_size = message.message.get_message_encoded_size() @@ -591,8 +591,8 @@ class PeekedMessage(Message): def __init__(self, message): # type: (uamqp.message.Message) -> None - if isinstance(message,dict): - temp_message = Message(message.pop('body'),**message) + if isinstance(message, dict): + temp_message = Message(message.pop('body'), **message) message = temp_message super(PeekedMessage, self).__init__(None, message=message) # type: ignore diff --git a/sdk/servicebus/azure-servicebus/azure/servicebus/_servicebus_sender.py b/sdk/servicebus/azure-servicebus/azure/servicebus/_servicebus_sender.py index f4124e734bcd..f86fa0b225b9 100644 --- a/sdk/servicebus/azure-servicebus/azure/servicebus/_servicebus_sender.py +++ b/sdk/servicebus/azure-servicebus/azure/servicebus/_servicebus_sender.py @@ -218,15 +218,15 @@ def schedule_messages(self, messages, schedule_time_utc, **kwargs): """ # pylint: disable=protected-access self._open() - if isinstance(messages,list): - for index,each in enumerate(messages): - if isinstance(each,dict): - messages[index] = Message(each.pop("body"),**each) + if isinstance(messages, list): + for index, each in enumerate(messages): + if isinstance(each, dict): + messages[index] = Message(each.pop("body"), **each) else: pass - if isinstance(messages,dict): - temp_messages = Message(messages.pop("body"),**messages) + if isinstance(messages, dict): + temp_messages = Message(messages.pop("body"), **messages) messages = temp_messages timeout = kwargs.pop("timeout", None) @@ -358,14 +358,14 @@ def send_messages(self, message, **kwargs): :caption: Send message. """ - if isinstance(message,list): - for index,each in enumerate(message): - if isinstance(each,dict): - message[index] = Message(each.pop("body"),**each) + if isinstance(message, list): + for index, each in enumerate(message): + if isinstance(each, dict): + message[index] = Message(each.pop("body"), **each) else: pass - if isinstance(message,dict): - temporary_message = Message(message.pop('body'),**message) + if isinstance(message, dict): + temporary_message = Message(message.pop('body'), **message) message = temporary_message timeout = kwargs.pop("timeout", None) if timeout is not None and timeout <= 0: diff --git a/sdk/servicebus/azure-servicebus/azure/servicebus/aio/_servicebus_sender_async.py b/sdk/servicebus/azure-servicebus/azure/servicebus/aio/_servicebus_sender_async.py index 1fe93035c261..9917fd477d7c 100644 --- a/sdk/servicebus/azure-servicebus/azure/servicebus/aio/_servicebus_sender_async.py +++ b/sdk/servicebus/azure-servicebus/azure/servicebus/aio/_servicebus_sender_async.py @@ -132,8 +132,8 @@ async def _open(self): async def _send(self, message, timeout=None, last_exception=None): await self._open() default_timeout = self._handler._msg_timeout # pylint: disable=protected-access - if isinstance(message,dict): - temp_message = Message(message.pop("body"),**message) + if isinstance(message, dict): + temp_message = Message(message.pop("body"), **message) message = temp_message try: self._set_msg_timeout(timeout, last_exception) @@ -168,14 +168,14 @@ async def schedule_messages( """ # pylint: disable=protected-access await self._open() - if isinstance(messages,list): - for index,each in messages: - if isinstance(each,dict): - messages[index] = Message(each.pop("body"),**each) + if isinstance(messages, list): + for index, each in messages: + if isinstance(each, dict): + messages[index] = Message(each.pop("body"), **each) else: pass - if isinstance(messages,dict): - temp_message = Message(messages.pop("body"),**messages) + if isinstance(messages, dict): + temp_message = Message(messages.pop("body"), **messages) messages = temp_message timeout = kwargs.pop("timeout", None) if timeout is not None and timeout <= 0: @@ -298,14 +298,14 @@ async def send_messages(self, message: Union[Message, BatchMessage, List[Message :caption: Send message. """ - if isinstance(message,list): - for index,each in message: - if isinstance(each,dict): - message[index] = Message(each.pop("body"),**each) + if isinstance(message, list): + for index, each in message: + if isinstance(each, dict): + message[index] = Message(each.pop("body"), **each) else: pass - if isinstance(message,dict): - temp_message = Message(message.pop("body"),**message) + if isinstance(message, dict): + temp_message = Message(message.pop("body"), **message) message = temp_message timeout = kwargs.pop("timeout", None) if timeout is not None and timeout <= 0: diff --git a/sdk/servicebus/azure-servicebus/azure/servicebus/aio/management/_management_client_async.py b/sdk/servicebus/azure-servicebus/azure/servicebus/aio/management/_management_client_async.py index 4e60207671ed..480b9a9d6e82 100644 --- a/sdk/servicebus/azure-servicebus/azure/servicebus/aio/management/_management_client_async.py +++ b/sdk/servicebus/azure-servicebus/azure/servicebus/aio/management/_management_client_async.py @@ -286,8 +286,8 @@ async def update_queue(self, queue: QueueProperties, **kwargs) -> None: :type queue: ~azure.servicebus.management.QueueProperties :rtype: None """ - if isinstance(queue,dict): - dict_to_queue_props = QueueProperties(queue.pop("name"),**queue) + if isinstance(queue, dict): + dict_to_queue_props = QueueProperties(queue.pop("name"), **queue) to_update = dict_to_queue_props._to_internal_entity() else: to_update = queue._to_internal_entity() @@ -483,8 +483,8 @@ async def update_topic(self, topic: TopicProperties, **kwargs) -> None: :type topic: ~azure.servicebus.management.TopicProperties :rtype: None """ - if isinstance(topic,dict): - dict_to_topic_props = TopicProperties(topic.pop("name"),**topic) + if isinstance(topic, dict): + dict_to_topic_props = TopicProperties(topic.pop("name"), **topic) to_update = dict_to_topic_props._to_internal_entity() else: to_update = topic._to_internal_entity() @@ -692,8 +692,8 @@ async def update_subscription( :rtype: None """ _validate_entity_name_type(topic_name, display_name='topic_name') - if isinstance(subscription,dict): - dict_to_subscription_props = SubscriptionProperties(subscription.pop("name"),**subscription) + if isinstance(subscription, dict): + dict_to_subscription_props = SubscriptionProperties(subscription.pop("name"), **subscription) to_update = dict_to_subscription_props._to_internal_entity() else: to_update = subscription._to_internal_entity() @@ -863,9 +863,8 @@ async def update_rule( :rtype: None """ _validate_topic_and_subscription_types(topic_name, subscription_name) - - if isinstance(rule,dict): - dict_to_rule_props = RuleProperties(rule.pop('name'),**rule) + if isinstance(rule, dict): + dict_to_rule_props = RuleProperties(rule.pop('name'), **rule) to_update = dict_to_rule_props._to_internal_entity() else: to_update = rule._to_internal_entity() diff --git a/sdk/servicebus/azure-servicebus/azure/servicebus/management/_management_client.py b/sdk/servicebus/azure-servicebus/azure/servicebus/management/_management_client.py index 920f799cd7b4..3e6a4ec376a4 100644 --- a/sdk/servicebus/azure-servicebus/azure/servicebus/management/_management_client.py +++ b/sdk/servicebus/azure-servicebus/azure/servicebus/management/_management_client.py @@ -280,13 +280,12 @@ def update_queue(self, queue, **kwargs): :type queue: ~azure.servicebus.management.QueueProperties :rtype: None """ - if isinstance(queue,dict): - dict_to_queue_props = QueueProperties(queue.pop('name'),**queue) - to_update=dict_to_queue_props._to_internal_entity() + if isinstance(queue, dict): + dict_to_queue_props = QueueProperties(queue.pop('name'), **queue) + to_update = dict_to_queue_props._to_internal_entity() else: to_update = queue._to_internal_entity() to_update.__dict__.update((k, v) for k, v in kwargs.items() if k in to_update.__dict__.keys()) - to_update.default_message_time_to_live = avoid_timedelta_overflow(to_update.default_message_time_to_live) to_update.auto_delete_on_idle = avoid_timedelta_overflow(to_update.auto_delete_on_idle) @@ -486,12 +485,12 @@ def update_topic(self, topic, **kwargs): :type topic: ~azure.servicebus.management.TopicProperties :rtype: None """ - if isinstance(topic,dict): - dict_to_topic_props = TopicProperties(topic.pop('name'),**topic) + if isinstance(topic, dict): + dict_to_topic_props = TopicProperties(topic.pop('name'), **topic) to_update = dict_to_topic_props._to_internal_entity() else: to_update = topic._to_internal_entity() - to_update.__dict__.update((k, v) for k, v in kwargs.items() if k in to_update.__dict__.keys()) + to_update.__dict__.update((k, v) for k, v in kwargs.items() if k in to_update.__dict__.keys()) to_update.default_message_time_to_live = kwargs.get( "default_message_time_to_live") or topic.default_message_time_to_live to_update.duplicate_detection_history_time_window = kwargs.get( @@ -699,13 +698,12 @@ def update_subscription(self, topic_name, subscription, **kwargs): :rtype: None """ _validate_entity_name_type(topic_name, display_name='topic_name') - if isinstance(subscription,dict): - dict_to_subscription_props = SubscriptionProperties(subscription.pop('name'),**subscription) + if isinstance(subscription, dict): + dict_to_subscription_props = SubscriptionProperties(subscription.pop('name'), **subscription) to_update = dict_to_subscription_props._to_internal_entity() else: to_update = subscription._to_internal_entity() - to_update.__dict__.update((k, v) for k, v in kwargs.items() if k in to_update.__dict__.keys()) - + to_update.__dict__.update((k, v) for k, v in kwargs.items() if k in to_update.__dict__.keys()) to_update.default_message_time_to_live = avoid_timedelta_overflow(to_update.default_message_time_to_live) to_update.auto_delete_on_idle = avoid_timedelta_overflow(to_update.auto_delete_on_idle) @@ -867,12 +865,12 @@ def update_rule(self, topic_name, subscription_name, rule, **kwargs): :rtype: None """ _validate_topic_and_subscription_types(topic_name, subscription_name) - if isinstance(rule,dict): - dict_to_rule_props = RuleProperties(rule.pop("name"),**rule) + if isinstance(rule, dict): + dict_to_rule_props = RuleProperties(rule.pop("name"), **rule) to_update = dict_to_rule_props._to_internal_entity() else: to_update = rule._to_internal_entity() - to_update.__dict__.update((k, v) for k, v in kwargs.items() if k in to_update.__dict__.keys()) + to_update.__dict__.update((k, v) for k, v in kwargs.items() if k in to_update.__dict__.keys()) create_entity_body = CreateRuleBody( content=CreateRuleBodyContent( From 260b94044d2d327828f9b88059aa2aee46c2982f Mon Sep 17 00:00:00 2001 From: bradleydamato Date: Wed, 28 Oct 2020 19:15:03 -0400 Subject: [PATCH 09/30] Fixing update_* kwarg update logic --- .../management/_management_client.py | 23 +++++++++++++++---- 1 file changed, 18 insertions(+), 5 deletions(-) diff --git a/sdk/servicebus/azure-servicebus/azure/servicebus/management/_management_client.py b/sdk/servicebus/azure-servicebus/azure/servicebus/management/_management_client.py index 3e6a4ec376a4..1a4ec1dccac7 100644 --- a/sdk/servicebus/azure-servicebus/azure/servicebus/management/_management_client.py +++ b/sdk/servicebus/azure-servicebus/azure/servicebus/management/_management_client.py @@ -280,12 +280,15 @@ def update_queue(self, queue, **kwargs): :type queue: ~azure.servicebus.management.QueueProperties :rtype: None """ + if kwargs: + queue._internal_qd = None + queue.__dict__.update([(key, kwargs.pop(key)) for key in kwargs.copy() if key in queue.__dict__.keys()]) + if isinstance(queue, dict): dict_to_queue_props = QueueProperties(queue.pop('name'), **queue) to_update = dict_to_queue_props._to_internal_entity() else: - to_update = queue._to_internal_entity() - to_update.__dict__.update((k, v) for k, v in kwargs.items() if k in to_update.__dict__.keys()) + to_update = queue._to_internal_entity() to_update.default_message_time_to_live = avoid_timedelta_overflow(to_update.default_message_time_to_live) to_update.auto_delete_on_idle = avoid_timedelta_overflow(to_update.auto_delete_on_idle) @@ -485,12 +488,15 @@ def update_topic(self, topic, **kwargs): :type topic: ~azure.servicebus.management.TopicProperties :rtype: None """ + if kwargs: + topic._internal_qd = None + topic.__dict__.update([(key, kwargs.pop(key)) for key in kwargs.copy() if key in topic.__dict__.keys()]) + if isinstance(topic, dict): dict_to_topic_props = TopicProperties(topic.pop('name'), **topic) to_update = dict_to_topic_props._to_internal_entity() else: to_update = topic._to_internal_entity() - to_update.__dict__.update((k, v) for k, v in kwargs.items() if k in to_update.__dict__.keys()) to_update.default_message_time_to_live = kwargs.get( "default_message_time_to_live") or topic.default_message_time_to_live to_update.duplicate_detection_history_time_window = kwargs.get( @@ -698,12 +704,16 @@ def update_subscription(self, topic_name, subscription, **kwargs): :rtype: None """ _validate_entity_name_type(topic_name, display_name='topic_name') + + if kwargs: + subscription._internal_qd = None + subscription.__dict__.update([(key, kwargs.pop(key)) for key in kwargs.copy() if key in subscription.__dict__.keys()]) if isinstance(subscription, dict): dict_to_subscription_props = SubscriptionProperties(subscription.pop('name'), **subscription) to_update = dict_to_subscription_props._to_internal_entity() else: to_update = subscription._to_internal_entity() - to_update.__dict__.update((k, v) for k, v in kwargs.items() if k in to_update.__dict__.keys()) + to_update.default_message_time_to_live = avoid_timedelta_overflow(to_update.default_message_time_to_live) to_update.auto_delete_on_idle = avoid_timedelta_overflow(to_update.auto_delete_on_idle) @@ -865,12 +875,15 @@ def update_rule(self, topic_name, subscription_name, rule, **kwargs): :rtype: None """ _validate_topic_and_subscription_types(topic_name, subscription_name) + if kwargs: + rule._internal_qd = None + rule.__dict__.update([(key, kwargs.pop(key)) for key in kwargs.copy() if key in rule.__dict__.keys()]) if isinstance(rule, dict): dict_to_rule_props = RuleProperties(rule.pop("name"), **rule) to_update = dict_to_rule_props._to_internal_entity() else: to_update = rule._to_internal_entity() - to_update.__dict__.update((k, v) for k, v in kwargs.items() if k in to_update.__dict__.keys()) + create_entity_body = CreateRuleBody( content=CreateRuleBodyContent( From 881d13d2f5d4e3ee5f7d3bccd7c51feebe849ab4 Mon Sep 17 00:00:00 2001 From: Swathi Pillalamarri Date: Wed, 17 Feb 2021 21:02:14 -0600 Subject: [PATCH 10/30] added util generic functions to take in dicts and create objects + added tests --- .../azure/servicebus/_common/message.py | 15 +- .../azure/servicebus/_common/utils.py | 36 ++++ .../azure/servicebus/_servicebus_sender.py | 25 +-- .../aio/_servicebus_sender_async.py | 27 +-- .../management/_management_client_async.py | 40 ++-- .../management/_management_client.py | 51 ++---- .../azure/servicebus/management/_utils.py | 42 ++++- .../mgmt_tests/test_mgmt_queues_async.py | 67 +++++++ .../mgmt_tests/test_mgmt_rules_async.py | 65 +++++++ .../test_mgmt_subscriptions_async.py | 65 +++++++ .../mgmt_tests/test_mgmt_topics_async.py | 63 +++++++ .../tests/async_tests/test_queues_async.py | 145 +++++++++++++++ .../tests/mgmt_tests/test_mgmt_queues.py | 65 +++++++ .../tests/mgmt_tests/test_mgmt_rules.py | 62 +++++++ .../mgmt_tests/test_mgmt_subscriptions.py | 62 +++++++ .../tests/mgmt_tests/test_mgmt_topics.py | 61 +++++++ .../azure-servicebus/tests/test_queues.py | 171 ++++++++++++++++++ 17 files changed, 939 insertions(+), 123 deletions(-) diff --git a/sdk/servicebus/azure-servicebus/azure/servicebus/_common/message.py b/sdk/servicebus/azure-servicebus/azure/servicebus/_common/message.py index 367e77028946..87ae7165915c 100644 --- a/sdk/servicebus/azure-servicebus/azure/servicebus/_common/message.py +++ b/sdk/servicebus/azure-servicebus/azure/servicebus/_common/message.py @@ -56,7 +56,7 @@ MessageSettleFailed, MessageContentTooLarge, ServiceBusError) -from .utils import utc_from_timestamp, utc_now, transform_messages_to_sendable_if_needed +from .utils import utc_from_timestamp, utc_now, transform_messages_to_sendable_if_needed, create_messages_from_dicts_if_needed if TYPE_CHECKING: from .._servicebus_receiver import ServiceBusReceiver from .._servicebus_session_receiver import ServiceBusSessionReceiver @@ -527,7 +527,7 @@ def __len__(self): def _from_list(self, messages): for each in messages: - if not isinstance(each, Message): + if not isinstance(each, Message) and not isinstance(each, dict): raise TypeError("Only Message or an iterable object containing Message objects are accepted." "Received instead: {}".format(each.__class__.__name__)) self.add(each) @@ -554,10 +554,9 @@ def add(self, message): :rtype: None :raises: :class: ~azure.servicebus.exceptions.MessageContentTooLarge, when exceeding the size limit. """ - if isinstance(message, dict): - temp_message = Message(message.pop('body'), **message) - message = temp_message - message = transform_messages_to_sendable_if_needed(message) + + messages = create_messages_from_dicts_if_needed(message, Message)[0] + message = transform_messages_to_sendable_if_needed(messages) message_size = message.message.get_message_encoded_size() # For a BatchMessage, if the encoded_message_size of event_data is < 256, then the overhead cost to encode that @@ -591,9 +590,7 @@ class PeekedMessage(Message): def __init__(self, message): # type: (uamqp.message.Message) -> None - if isinstance(message, dict): - temp_message = Message(message.pop('body'), **message) - message = temp_message + message = create_messages_from_dicts_if_needed(message, Message) super(PeekedMessage, self).__init__(None, message=message) # type: ignore def _to_outgoing_message(self): diff --git a/sdk/servicebus/azure-servicebus/azure/servicebus/_common/utils.py b/sdk/servicebus/azure-servicebus/azure/servicebus/_common/utils.py index 25e5c82cffb1..742e2745c118 100644 --- a/sdk/servicebus/azure-servicebus/azure/servicebus/_common/utils.py +++ b/sdk/servicebus/azure-servicebus/azure/servicebus/_common/utils.py @@ -29,6 +29,18 @@ USER_AGENT_PREFIX, ) +from typing import TYPE_CHECKING, Dict, List, Union +if TYPE_CHECKING: + # pylint: disable=unused-import, ungrouped-imports + from .message import BatchMessage, Message + DictMessageType = Union[ + Dict, + Message, + List[Dict], + List[Message], + BatchMessage + ] + _log = logging.getLogger(__name__) @@ -159,3 +171,27 @@ def transform_messages_to_sendable_if_needed(messages): return messages._to_outgoing_message() except AttributeError: return messages + +def create_messages_from_dicts_if_needed(messages, message_type): + """ + This method is used to convert dict representations + of messages and to Message objects. + """ + # type: (DictMessageType) -> Union[List[azure.servicebus.Message], azure.servicebus.BatchMessage] + try: + if isinstance(messages, list): + for index, message in enumerate(messages): + if isinstance(message, dict): + messages[index] = message_type(**message) + + if isinstance(messages, dict): + temp_messages = message_type(**messages) + messages = [temp_messages] + + if isinstance(messages, message_type): + messages = [messages] + + return messages + except TypeError as e: + _log.error("Dict must include 'body' key. Message is incorrectly formatted:") + _log.error(e) diff --git a/sdk/servicebus/azure-servicebus/azure/servicebus/_servicebus_sender.py b/sdk/servicebus/azure-servicebus/azure/servicebus/_servicebus_sender.py index f86fa0b225b9..37c4bf15b274 100644 --- a/sdk/servicebus/azure-servicebus/azure/servicebus/_servicebus_sender.py +++ b/sdk/servicebus/azure-servicebus/azure/servicebus/_servicebus_sender.py @@ -18,7 +18,7 @@ OperationTimeoutError, _ServiceBusErrorPolicy, ) -from ._common.utils import create_authentication, transform_messages_to_sendable_if_needed +from ._common.utils import create_authentication, transform_messages_to_sendable_if_needed, create_messages_from_dicts_if_needed from ._common.constants import ( REQUEST_RESPONSE_CANCEL_SCHEDULED_MESSAGE_OPERATION, REQUEST_RESPONSE_SCHEDULE_MESSAGE_OPERATION, @@ -218,16 +218,7 @@ def schedule_messages(self, messages, schedule_time_utc, **kwargs): """ # pylint: disable=protected-access self._open() - if isinstance(messages, list): - for index, each in enumerate(messages): - if isinstance(each, dict): - messages[index] = Message(each.pop("body"), **each) - else: - pass - - if isinstance(messages, dict): - temp_messages = Message(messages.pop("body"), **messages) - messages = temp_messages + messages = create_messages_from_dicts_if_needed(messages, Message) timeout = kwargs.pop("timeout", None) if timeout is not None and timeout <= 0: @@ -358,19 +349,11 @@ def send_messages(self, message, **kwargs): :caption: Send message. """ - if isinstance(message, list): - for index, each in enumerate(message): - if isinstance(each, dict): - message[index] = Message(each.pop("body"), **each) - else: - pass - if isinstance(message, dict): - temporary_message = Message(message.pop('body'), **message) - message = temporary_message + messages = create_messages_from_dicts_if_needed(message, Message) timeout = kwargs.pop("timeout", None) if timeout is not None and timeout <= 0: raise ValueError("The timeout must be greater than 0.") - message = transform_messages_to_sendable_if_needed(message) + message = transform_messages_to_sendable_if_needed(messages) try: batch = self.create_batch() batch._from_list(message) # pylint: disable=protected-access diff --git a/sdk/servicebus/azure-servicebus/azure/servicebus/aio/_servicebus_sender_async.py b/sdk/servicebus/azure-servicebus/azure/servicebus/aio/_servicebus_sender_async.py index 9917fd477d7c..4c0854bbac59 100644 --- a/sdk/servicebus/azure-servicebus/azure/servicebus/aio/_servicebus_sender_async.py +++ b/sdk/servicebus/azure-servicebus/azure/servicebus/aio/_servicebus_sender_async.py @@ -19,7 +19,7 @@ MGMT_REQUEST_SEQUENCE_NUMBERS ) from .._common import mgmt_handlers -from .._common.utils import transform_messages_to_sendable_if_needed +from .._common.utils import transform_messages_to_sendable_if_needed, create_messages_from_dicts_if_needed from ._async_utils import create_authentication if TYPE_CHECKING: @@ -132,9 +132,6 @@ async def _open(self): async def _send(self, message, timeout=None, last_exception=None): await self._open() default_timeout = self._handler._msg_timeout # pylint: disable=protected-access - if isinstance(message, dict): - temp_message = Message(message.pop("body"), **message) - message = temp_message try: self._set_msg_timeout(timeout, last_exception) await self._handler.send_message_async(message.message) @@ -168,15 +165,7 @@ async def schedule_messages( """ # pylint: disable=protected-access await self._open() - if isinstance(messages, list): - for index, each in messages: - if isinstance(each, dict): - messages[index] = Message(each.pop("body"), **each) - else: - pass - if isinstance(messages, dict): - temp_message = Message(messages.pop("body"), **messages) - messages = temp_message + messages = create_messages_from_dicts_if_needed(messages, Message) timeout = kwargs.pop("timeout", None) if timeout is not None and timeout <= 0: raise ValueError("The timeout must be greater than 0.") @@ -298,19 +287,11 @@ async def send_messages(self, message: Union[Message, BatchMessage, List[Message :caption: Send message. """ - if isinstance(message, list): - for index, each in message: - if isinstance(each, dict): - message[index] = Message(each.pop("body"), **each) - else: - pass - if isinstance(message, dict): - temp_message = Message(message.pop("body"), **message) - message = temp_message + messages = create_messages_from_dicts_if_needed(message, Message) timeout = kwargs.pop("timeout", None) if timeout is not None and timeout <= 0: raise ValueError("The timeout must be greater than 0.") - message = transform_messages_to_sendable_if_needed(message) + message = transform_messages_to_sendable_if_needed(messages) try: batch = await self.create_batch() batch._from_list(message) # pylint: disable=protected-access diff --git a/sdk/servicebus/azure-servicebus/azure/servicebus/aio/management/_management_client_async.py b/sdk/servicebus/azure-servicebus/azure/servicebus/aio/management/_management_client_async.py index 480b9a9d6e82..e3e1024c2570 100644 --- a/sdk/servicebus/azure-servicebus/azure/servicebus/aio/management/_management_client_async.py +++ b/sdk/servicebus/azure-servicebus/azure/servicebus/aio/management/_management_client_async.py @@ -37,8 +37,8 @@ from ...management._model_workaround import avoid_timedelta_overflow from ._utils import extract_data_template, extract_rule_data_template, get_next_template from ...management._utils import deserialize_rule_key_values, serialize_rule_key_values, \ - _validate_entity_name_type, _validate_topic_and_subscription_types, _validate_topic_subscription_and_rule_types - + _validate_entity_name_type, _validate_topic_and_subscription_types, _validate_topic_subscription_and_rule_types, \ + create_properties_from_list_of_dicts_if_needed if TYPE_CHECKING: from azure.core.credentials_async import AsyncTokenCredential # pylint:disable=ungrouped-imports @@ -286,12 +286,7 @@ async def update_queue(self, queue: QueueProperties, **kwargs) -> None: :type queue: ~azure.servicebus.management.QueueProperties :rtype: None """ - if isinstance(queue, dict): - dict_to_queue_props = QueueProperties(queue.pop("name"), **queue) - to_update = dict_to_queue_props._to_internal_entity() - else: - to_update = queue._to_internal_entity() - + queue_name, to_update = create_properties_from_list_of_dicts_if_needed(queue, QueueProperties) to_update.default_message_time_to_live = avoid_timedelta_overflow(to_update.default_message_time_to_live) to_update.auto_delete_on_idle = avoid_timedelta_overflow(to_update.auto_delete_on_idle) @@ -303,7 +298,7 @@ async def update_queue(self, queue: QueueProperties, **kwargs) -> None: request_body = create_entity_body.serialize(is_xml=True) with _handle_response_error(): await self._impl.entity.put( - queue.name, # type: ignore + queue_name, # type: ignore request_body, api_version=constants.API_VERSION, if_match="*", @@ -483,12 +478,7 @@ async def update_topic(self, topic: TopicProperties, **kwargs) -> None: :type topic: ~azure.servicebus.management.TopicProperties :rtype: None """ - if isinstance(topic, dict): - dict_to_topic_props = TopicProperties(topic.pop("name"), **topic) - to_update = dict_to_topic_props._to_internal_entity() - else: - to_update = topic._to_internal_entity() - + topic_name, to_update = create_properties_from_list_of_dicts_if_needed(topic, TopicProperties) to_update.default_message_time_to_live = avoid_timedelta_overflow(to_update.default_message_time_to_live) to_update.auto_delete_on_idle = avoid_timedelta_overflow(to_update.auto_delete_on_idle) @@ -500,7 +490,7 @@ async def update_topic(self, topic: TopicProperties, **kwargs) -> None: request_body = create_entity_body.serialize(is_xml=True) with _handle_response_error(): await self._impl.entity.put( - topic.name, # type: ignore + topic_name, # type: ignore request_body, api_version=constants.API_VERSION, if_match="*", @@ -692,12 +682,7 @@ async def update_subscription( :rtype: None """ _validate_entity_name_type(topic_name, display_name='topic_name') - if isinstance(subscription, dict): - dict_to_subscription_props = SubscriptionProperties(subscription.pop("name"), **subscription) - to_update = dict_to_subscription_props._to_internal_entity() - else: - to_update = subscription._to_internal_entity() - + subscription_name, to_update = create_properties_from_list_of_dicts_if_needed(subscription, SubscriptionProperties) to_update.default_message_time_to_live = avoid_timedelta_overflow(to_update.default_message_time_to_live) to_update.auto_delete_on_idle = avoid_timedelta_overflow(to_update.auto_delete_on_idle) @@ -710,7 +695,7 @@ async def update_subscription( with _handle_response_error(): await self._impl.subscription.put( topic_name, - subscription.name, + subscription_name, request_body, api_version=constants.API_VERSION, if_match="*", @@ -863,11 +848,8 @@ async def update_rule( :rtype: None """ _validate_topic_and_subscription_types(topic_name, subscription_name) - if isinstance(rule, dict): - dict_to_rule_props = RuleProperties(rule.pop('name'), **rule) - to_update = dict_to_rule_props._to_internal_entity() - else: - to_update = rule._to_internal_entity() + + rule_name, to_update = create_properties_from_list_of_dicts_if_needed(rule, RuleProperties) create_entity_body = CreateRuleBody( content=CreateRuleBodyContent( @@ -880,7 +862,7 @@ async def update_rule( await self._impl.rule.put( topic_name, subscription_name, - rule.name, + rule_name, request_body, api_version=constants.API_VERSION, if_match="*", diff --git a/sdk/servicebus/azure-servicebus/azure/servicebus/management/_management_client.py b/sdk/servicebus/azure-servicebus/azure/servicebus/management/_management_client.py index 1a4ec1dccac7..7857aa2c03af 100644 --- a/sdk/servicebus/azure-servicebus/azure/servicebus/management/_management_client.py +++ b/sdk/servicebus/azure-servicebus/azure/servicebus/management/_management_client.py @@ -23,7 +23,7 @@ CreateRuleBodyContent, CreateQueueBody, CreateQueueBodyContent from ._utils import extract_data_template, get_next_template, deserialize_rule_key_values, serialize_rule_key_values, \ extract_rule_data_template, _validate_entity_name_type, _validate_topic_and_subscription_types, \ - _validate_topic_subscription_and_rule_types + _validate_topic_subscription_and_rule_types, create_properties_from_list_of_dicts_if_needed from ._xml_workaround_policy import ServiceBusXMLWorkaroundPolicy from .._common.constants import JWT_TOKEN_SCOPE @@ -280,15 +280,8 @@ def update_queue(self, queue, **kwargs): :type queue: ~azure.servicebus.management.QueueProperties :rtype: None """ - if kwargs: - queue._internal_qd = None - queue.__dict__.update([(key, kwargs.pop(key)) for key in kwargs.copy() if key in queue.__dict__.keys()]) - - if isinstance(queue, dict): - dict_to_queue_props = QueueProperties(queue.pop('name'), **queue) - to_update = dict_to_queue_props._to_internal_entity() - else: - to_update = queue._to_internal_entity() + + queue_name, to_update = create_properties_from_list_of_dicts_if_needed(queue, QueueProperties) to_update.default_message_time_to_live = avoid_timedelta_overflow(to_update.default_message_time_to_live) to_update.auto_delete_on_idle = avoid_timedelta_overflow(to_update.auto_delete_on_idle) @@ -300,7 +293,7 @@ def update_queue(self, queue, **kwargs): request_body = create_entity_body.serialize(is_xml=True) with _handle_response_error(): self._impl.entity.put( - queue.name, # type: ignore + queue_name, # type: ignore request_body, api_version=constants.API_VERSION, if_match="*", @@ -488,15 +481,8 @@ def update_topic(self, topic, **kwargs): :type topic: ~azure.servicebus.management.TopicProperties :rtype: None """ - if kwargs: - topic._internal_qd = None - topic.__dict__.update([(key, kwargs.pop(key)) for key in kwargs.copy() if key in topic.__dict__.keys()]) - - if isinstance(topic, dict): - dict_to_topic_props = TopicProperties(topic.pop('name'), **topic) - to_update = dict_to_topic_props._to_internal_entity() - else: - to_update = topic._to_internal_entity() + + topic_name, to_update = create_properties_from_list_of_dicts_if_needed(topic, TopicProperties) to_update.default_message_time_to_live = kwargs.get( "default_message_time_to_live") or topic.default_message_time_to_live to_update.duplicate_detection_history_time_window = kwargs.get( @@ -513,7 +499,7 @@ def update_topic(self, topic, **kwargs): request_body = create_entity_body.serialize(is_xml=True) with _handle_response_error(): self._impl.entity.put( - topic.name, # type: ignore + topic_name, # type: ignore request_body, api_version=constants.API_VERSION, if_match="*", @@ -705,15 +691,7 @@ def update_subscription(self, topic_name, subscription, **kwargs): """ _validate_entity_name_type(topic_name, display_name='topic_name') - if kwargs: - subscription._internal_qd = None - subscription.__dict__.update([(key, kwargs.pop(key)) for key in kwargs.copy() if key in subscription.__dict__.keys()]) - if isinstance(subscription, dict): - dict_to_subscription_props = SubscriptionProperties(subscription.pop('name'), **subscription) - to_update = dict_to_subscription_props._to_internal_entity() - else: - to_update = subscription._to_internal_entity() - + subscription_name, to_update = create_properties_from_list_of_dicts_if_needed(subscription, SubscriptionProperties) to_update.default_message_time_to_live = avoid_timedelta_overflow(to_update.default_message_time_to_live) to_update.auto_delete_on_idle = avoid_timedelta_overflow(to_update.auto_delete_on_idle) @@ -726,7 +704,7 @@ def update_subscription(self, topic_name, subscription, **kwargs): with _handle_response_error(): self._impl.subscription.put( topic_name, - subscription.name, + subscription_name, request_body, api_version=constants.API_VERSION, if_match="*", @@ -875,15 +853,8 @@ def update_rule(self, topic_name, subscription_name, rule, **kwargs): :rtype: None """ _validate_topic_and_subscription_types(topic_name, subscription_name) - if kwargs: - rule._internal_qd = None - rule.__dict__.update([(key, kwargs.pop(key)) for key in kwargs.copy() if key in rule.__dict__.keys()]) - if isinstance(rule, dict): - dict_to_rule_props = RuleProperties(rule.pop("name"), **rule) - to_update = dict_to_rule_props._to_internal_entity() - else: - to_update = rule._to_internal_entity() + rule_name, to_update = create_properties_from_list_of_dicts_if_needed(rule, RuleProperties) create_entity_body = CreateRuleBody( content=CreateRuleBodyContent( @@ -896,7 +867,7 @@ def update_rule(self, topic_name, subscription_name, rule, **kwargs): self._impl.rule.put( topic_name, subscription_name, - rule.name, + rule_name, request_body, api_version=constants.API_VERSION, if_match="*", diff --git a/sdk/servicebus/azure-servicebus/azure/servicebus/management/_utils.py b/sdk/servicebus/azure-servicebus/azure/servicebus/management/_utils.py index 7507ba9d2f0b..4b028d149e50 100644 --- a/sdk/servicebus/azure-servicebus/azure/servicebus/management/_utils.py +++ b/sdk/servicebus/azure-servicebus/azure/servicebus/management/_utils.py @@ -3,10 +3,28 @@ # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- from datetime import datetime, timedelta -from typing import cast +from typing import TYPE_CHECKING, cast, Dict, List, Union from xml.etree.ElementTree import ElementTree, SubElement, QName import isodate import six +import logging +if TYPE_CHECKING: + # pylint: disable=unused-import, ungrouped-imports + from ._models import QueueProperties, TopicProperties, \ + SubscriptionProperties, RuleProperties, InternalQueueDescription, InternalTopicDescription, \ + InternalSubscriptionDescription, InternalRuleDescription + DictPropertiesType = Union[ + QueueProperties, + TopicProperties, + SubscriptionProperties, + RuleProperties + ] + DictPropertiesReturnType = Union[ + InternalQueueDescription, + InternalTopicDescription, + InternalSubscriptionDescription, + InternalRuleDescription + ] # Refer to the async version of this module under ..\aio\management\_utils.py for detailed explanation. @@ -18,6 +36,7 @@ from azure.servicebus.management import _constants as constants from ._handle_response_error import _handle_response_error +_log = logging.getLogger(__name__) def extract_rule_data_template(feed_class, convert, feed_element): """Special version of function extrat_data_template for Rule. @@ -260,3 +279,24 @@ def _validate_topic_subscription_and_rule_types(topic_name, subscription_name, r if not isinstance(topic_name, str) or not isinstance(subscription_name, str) or not isinstance(rule_name, str): raise TypeError("topic name, subscription name and rule name must be strings, not {} {} and {}".format( type(topic_name), type(subscription_name), type(rule_name))) + +def create_properties_from_list_of_dicts_if_needed(properties, sb_resource_type): + """ + This method is used to create internal resource objects given their + corresponding dict representations of resource properties. + """ + # type: (dict, DictPropertiesType) -> (str, DictPropertiesReturnType) + try: + if isinstance(properties, dict): + resource_property_name = properties["name"] + dict_to_props = sb_resource_type(**properties) + to_update = dict_to_props._to_internal_entity() # pylint: disable=protected-access + else: + resource_property_name = properties.name + to_update = properties._to_internal_entity() # pylint: disable=protected-access + + return (resource_property_name, to_update) + except KeyError as e: + _log.error("{} dict is missing required key: {}".format(sb_resource_type, e)) + except TypeError as e: + _log.error(e) diff --git a/sdk/servicebus/azure-servicebus/tests/async_tests/mgmt_tests/test_mgmt_queues_async.py b/sdk/servicebus/azure-servicebus/tests/async_tests/mgmt_tests/test_mgmt_queues_async.py index af1a156c445b..d3ea3827e9e4 100644 --- a/sdk/servicebus/azure-servicebus/tests/async_tests/mgmt_tests/test_mgmt_queues_async.py +++ b/sdk/servicebus/azure-servicebus/tests/async_tests/mgmt_tests/test_mgmt_queues_async.py @@ -441,3 +441,70 @@ async def test_async_mgmt_queue_get_runtime_properties_negative(self, servicebus with pytest.raises(ResourceNotFoundError): await mgmt_service.get_queue_runtime_properties("non_existing_queue") + + @pytest.mark.liveTest + @CachedResourceGroupPreparer(name_prefix='servicebustest') + @CachedServiceBusNamespacePreparer(name_prefix='servicebustest') + async def test_mgmt_queue_async_update_dict_success(self, servicebus_namespace_connection_string, **kwargs): + mgmt_service = ServiceBusAdministrationClient.from_connection_string(servicebus_namespace_connection_string) + await clear_queues(mgmt_service) + queue_name = "fjruid" + queue_description = await mgmt_service.create_queue(queue_name) + queue_description_dict = dict(queue_description) + try: + # Try updating one setting. + queue_description_dict["lock_duration"] = datetime.timedelta(minutes=2) + await mgmt_service.update_queue(queue_description_dict) + + queue_description = await mgmt_service.get_queue(queue_name) + assert queue_description.lock_duration == datetime.timedelta(minutes=2) + + # Now try updating all settings. + queue_description_dict = dict(queue_description) + queue_description_dict["auto_delete_on_idle"] = datetime.timedelta(minutes=10) + queue_description_dict["dead_lettering_on_message_expiration"] = True + queue_description_dict["default_message_time_to_live"] = datetime.timedelta(minutes=11) + queue_description_dict["duplicate_detection_history_time_window"] = datetime.timedelta(minutes=12) + queue_description_dict["enable_batched_operations"] = True + queue_description_dict["enable_express"] = True + #queue_description_dict["enable_partitioning"] = True # Cannot be changed after creation + queue_description_dict["lock_duration"] = datetime.timedelta(seconds=13) + queue_description_dict["max_delivery_count"] = 14 + queue_description_dict["max_size_in_megabytes"] = 3072 + #queue_description_dict["requires_duplicate_detection"] = True # Read only + #queue_description_dict["requires_session"] = True # Cannot be changed after creation + + await mgmt_service.update_queue(queue_description_dict) + queue_description = await mgmt_service.get_queue(queue_name) + + assert queue_description.auto_delete_on_idle == datetime.timedelta(minutes=10) + assert queue_description.dead_lettering_on_message_expiration == True + assert queue_description.default_message_time_to_live == datetime.timedelta(minutes=11) + assert queue_description.duplicate_detection_history_time_window == datetime.timedelta(minutes=12) + assert queue_description.enable_batched_operations == True + assert queue_description.enable_express == True + #assert queue_description.enable_partitioning == True + assert queue_description.lock_duration == datetime.timedelta(seconds=13) + assert queue_description.max_delivery_count == 14 + assert queue_description.max_size_in_megabytes == 3072 + #assert queue_description.requires_duplicate_detection == True + #assert queue_description.requires_session == True + finally: + await mgmt_service.delete_queue(queue_name) + await mgmt_service.close() + + @pytest.mark.liveTest + @CachedResourceGroupPreparer(name_prefix='servicebustest') + @CachedServiceBusNamespacePreparer(name_prefix='servicebustest') + async def test_mgmt_queue_async_update_dict_error(self, servicebus_namespace_connection_string, **kwargs): + mgmt_service = ServiceBusAdministrationClient.from_connection_string(servicebus_namespace_connection_string) + await clear_queues(mgmt_service) + queue_name = "fjruid" + queue_description = await mgmt_service.create_queue(queue_name) + # send in queue dict without non-name keyword args + queue_description_only_name = {"name": queue_name} + with pytest.raises(TypeError): + await mgmt_service.update_queue(queue_description_only_name) + + await mgmt_service.delete_queue(queue_name) + await mgmt_service.close() diff --git a/sdk/servicebus/azure-servicebus/tests/async_tests/mgmt_tests/test_mgmt_rules_async.py b/sdk/servicebus/azure-servicebus/tests/async_tests/mgmt_tests/test_mgmt_rules_async.py index 093d209485ac..3253a0ce8fed 100644 --- a/sdk/servicebus/azure-servicebus/tests/async_tests/mgmt_tests/test_mgmt_rules_async.py +++ b/sdk/servicebus/azure-servicebus/tests/async_tests/mgmt_tests/test_mgmt_rules_async.py @@ -238,3 +238,68 @@ async def test_async_mgmt_rule_list_and_delete(self, servicebus_namespace_connec finally: await mgmt_service.delete_subscription(topic_name, subscription_name) await mgmt_service.delete_topic(topic_name) + + @CachedResourceGroupPreparer(name_prefix='servicebustest') + @CachedServiceBusNamespacePreparer(name_prefix='servicebustest') + async def test_mgmt_rule_async_update_dict_success(self, servicebus_namespace_connection_string, **kwargs): + mgmt_service = ServiceBusAdministrationClient.from_connection_string(servicebus_namespace_connection_string) + await clear_topics(mgmt_service) + topic_name = "fjrui" + subscription_name = "eqkovc" + rule_name = 'rule' + sql_filter = SqlRuleFilter("Priority = 'low'") + + try: + topic_description = await mgmt_service.create_topic(topic_name) + subscription_description = await mgmt_service.create_subscription(topic_description.name, subscription_name) + await mgmt_service.create_rule(topic_name, subscription_name, rule_name, filter=sql_filter) + + rule_desc = await mgmt_service.get_rule(topic_name, subscription_name, rule_name) + + assert type(rule_desc.filter) == SqlRuleFilter + assert rule_desc.filter.sql_expression == "Priority = 'low'" + + correlation_fitler = CorrelationRuleFilter(correlation_id='testcid') + sql_rule_action = SqlRuleAction(sql_expression="SET Priority = 'low'") + + rule_desc.filter = correlation_fitler + rule_desc.action = sql_rule_action + rule_desc_dict = dict(rule_desc) + await mgmt_service.update_rule(topic_description.name, subscription_description.name, rule_desc_dict) + + rule_desc = await mgmt_service.get_rule(topic_name, subscription_name, rule_name) + assert type(rule_desc.filter) == CorrelationRuleFilter + assert rule_desc.filter.correlation_id == 'testcid' + assert rule_desc.action.sql_expression == "SET Priority = 'low'" + + finally: + await mgmt_service.delete_rule(topic_name, subscription_name, rule_name) + await mgmt_service.delete_subscription(topic_name, subscription_name) + await mgmt_service.delete_topic(topic_name) + + await mgmt_service.close() + + @pytest.mark.liveTest + @CachedResourceGroupPreparer(name_prefix='servicebustest') + @CachedServiceBusNamespacePreparer(name_prefix='servicebustest') + async def test_mgmt_rule_async_update_dict_error(self, servicebus_namespace_connection_string, **kwargs): + mgmt_service = ServiceBusAdministrationClient.from_connection_string(servicebus_namespace_connection_string) + await clear_topics(mgmt_service) + topic_name = "fjrui" + subscription_name = "eqkovc" + rule_name = 'rule' + sql_filter = SqlRuleFilter("Priority = 'low'") + + topic_description = await mgmt_service.create_topic(topic_name) + subscription_description = await mgmt_service.create_subscription(topic_description.name, subscription_name) + await mgmt_service.create_rule(topic_name, subscription_name, rule_name, filter=sql_filter) + + # send in rule dict without non-name keyword args + rule_description_only_name = {"name": topic_name} + with pytest.raises(TypeError): + await mgmt_service.update_rule(topic_description.name, subscription_description.name, rule_description_only_name) + + await mgmt_service.delete_rule(topic_name, subscription_name, rule_name) + await mgmt_service.delete_subscription(topic_name, subscription_name) + await mgmt_service.delete_topic(topic_name) + await mgmt_service.close() \ No newline at end of file diff --git a/sdk/servicebus/azure-servicebus/tests/async_tests/mgmt_tests/test_mgmt_subscriptions_async.py b/sdk/servicebus/azure-servicebus/tests/async_tests/mgmt_tests/test_mgmt_subscriptions_async.py index ca6516174661..14c652ee0ee8 100644 --- a/sdk/servicebus/azure-servicebus/tests/async_tests/mgmt_tests/test_mgmt_subscriptions_async.py +++ b/sdk/servicebus/azure-servicebus/tests/async_tests/mgmt_tests/test_mgmt_subscriptions_async.py @@ -293,3 +293,68 @@ async def test_async_mgmt_subscription_get_runtime_properties_basic(self, servic await mgmt_service.delete_subscription(topic_name, subscription_name) await mgmt_service.delete_topic(topic_name) + + @CachedResourceGroupPreparer(name_prefix='servicebustest') + @CachedServiceBusNamespacePreparer(name_prefix='servicebustest') + async def test_mgmt_subscription_async_update_dict_success(self, servicebus_namespace_connection_string, **kwargs): + mgmt_service = ServiceBusAdministrationClient.from_connection_string(servicebus_namespace_connection_string) + await clear_topics(mgmt_service) + topic_name = "fjrui" + subscription_name = "eqkovc" + + try: + topic_description = await mgmt_service.create_topic(topic_name) + subscription_description = await mgmt_service.create_subscription(topic_description.name, subscription_name) + subscription_description_dict = dict(subscription_description) + + # Try updating one setting. + subscription_description_dict["lock_duration"] = datetime.timedelta(minutes=2) + await mgmt_service.update_subscription(topic_description.name, subscription_description_dict) + subscription_description = await mgmt_service.get_subscription(topic_name, subscription_name) + assert subscription_description.lock_duration == datetime.timedelta(minutes=2) + + # Now try updating all settings. + subscription_description_dict = dict(subscription_description) + subscription_description_dict["auto_delete_on_idle"] = datetime.timedelta(minutes=10) + subscription_description_dict["dead_lettering_on_message_expiration"] = True + subscription_description_dict["default_message_time_to_live"] = datetime.timedelta(minutes=11) + subscription_description_dict["lock_duration"] = datetime.timedelta(seconds=12) + subscription_description_dict["max_delivery_count"] = 14 + # topic_description.enable_partitioning = True # Cannot be changed after creation + # topic_description.requires_session = True # Cannot be changed after creation + + await mgmt_service.update_subscription(topic_description.name, subscription_description_dict) + subscription_description = await mgmt_service.get_subscription(topic_description.name, subscription_name) + + assert subscription_description.auto_delete_on_idle == datetime.timedelta(minutes=10) + assert subscription_description.dead_lettering_on_message_expiration == True + assert subscription_description.default_message_time_to_live == datetime.timedelta(minutes=11) + assert subscription_description.max_delivery_count == 14 + assert subscription_description.lock_duration == datetime.timedelta(seconds=12) + # assert topic_description.enable_partitioning == True + # assert topic_description.requires_session == True + finally: + await mgmt_service.delete_subscription(topic_name, subscription_name) + await mgmt_service.delete_topic(topic_name) + + await mgmt_service.close() + + @pytest.mark.liveTest + @CachedResourceGroupPreparer(name_prefix='servicebustest') + @CachedServiceBusNamespacePreparer(name_prefix='servicebustest') + async def test_mgmt_subscription_async_update_dict_error(self, servicebus_namespace_connection_string, **kwargs): + mgmt_service = ServiceBusAdministrationClient.from_connection_string(servicebus_namespace_connection_string) + await clear_topics(mgmt_service) + topic_name = "fjrui" + subscription_name = "eqkovc" + + topic_description = await mgmt_service.create_topic(topic_name) + subscription_description = await mgmt_service.create_subscription(topic_description.name, subscription_name) + # send in subscription dict without non-name keyword args + subscription_description_only_name = {"name": topic_name} + with pytest.raises(TypeError): + await mgmt_service.update_subscription(topic_description.name, subscription_description_only_name) + + await mgmt_service.delete_subscription(topic_name, subscription_name) + await mgmt_service.delete_topic(topic_name) + await mgmt_service.close() \ No newline at end of file diff --git a/sdk/servicebus/azure-servicebus/tests/async_tests/mgmt_tests/test_mgmt_topics_async.py b/sdk/servicebus/azure-servicebus/tests/async_tests/mgmt_tests/test_mgmt_topics_async.py index bc2991f798a7..1e1e1b474085 100644 --- a/sdk/servicebus/azure-servicebus/tests/async_tests/mgmt_tests/test_mgmt_topics_async.py +++ b/sdk/servicebus/azure-servicebus/tests/async_tests/mgmt_tests/test_mgmt_topics_async.py @@ -256,3 +256,66 @@ async def test_async_mgmt_topic_get_runtime_properties_basic(self, servicebus_na assert topic_runtime_properties.scheduled_message_count == 0 finally: await mgmt_service.delete_topic("test_topic") + + @CachedResourceGroupPreparer(name_prefix='servicebustest') + @CachedServiceBusNamespacePreparer(name_prefix='servicebustest') + async def test_mgmt_topic_async_update_dict_success(self, servicebus_namespace_connection_string, **kwargs): + mgmt_service = ServiceBusAdministrationClient.from_connection_string(servicebus_namespace_connection_string) + await clear_topics(mgmt_service) + topic_name = "fjrui" + + try: + topic_description = await mgmt_service.create_topic(topic_name) + topic_description_dict = dict(topic_description) + + # Try updating one setting. + topic_description_dict["default_message_time_to_live"] = datetime.timedelta(minutes=2) + await mgmt_service.update_topic(topic_description_dict) + topic_description = await mgmt_service.get_topic(topic_name) + assert topic_description.default_message_time_to_live == datetime.timedelta(minutes=2) + + # Now try updating all settings. + topic_description_dict = dict(topic_description) + topic_description_dict["auto_delete_on_idle"] = datetime.timedelta(minutes=10) + topic_description_dict["default_message_time_to_live"] = datetime.timedelta(minutes=11) + topic_description_dict["duplicate_detection_history_time_window"] = datetime.timedelta(minutes=12) + topic_description_dict["enable_batched_operations"] = True + topic_description_dict["enable_express"] = True + # topic_description_dict["enable_partitioning"] = True # Cannot be changed after creation + topic_description_dict["max_size_in_megabytes"] = 3072 + # topic_description_dict["requires_duplicate_detection"] = True # Read only + # topic_description_dict["requires_session"] = True # Cannot be changed after creation + topic_description_dict["support_ordering"] = True + + await mgmt_service.update_topic(topic_description_dict) + topic_description = await mgmt_service.get_topic(topic_name) + + assert topic_description.auto_delete_on_idle == datetime.timedelta(minutes=10) + assert topic_description.default_message_time_to_live == datetime.timedelta(minutes=11) + assert topic_description.duplicate_detection_history_time_window == datetime.timedelta(minutes=12) + assert topic_description.enable_batched_operations == True + assert topic_description.enable_express == True + # assert topic_description.enable_partitioning == True + assert topic_description.max_size_in_megabytes == 3072 + # assert topic_description.requires_duplicate_detection == True + # assert topic_description.requires_session == True + assert topic_description.support_ordering == True + finally: + await mgmt_service.delete_topic(topic_name) + await mgmt_service.close() + + @pytest.mark.liveTest + @CachedResourceGroupPreparer(name_prefix='servicebustest') + @CachedServiceBusNamespacePreparer(name_prefix='servicebustest') + async def test_mgmt_topic_async_update_dict_error(self, servicebus_namespace_connection_string, **kwargs): + mgmt_service = ServiceBusAdministrationClient.from_connection_string(servicebus_namespace_connection_string) + await clear_topics(mgmt_service) + topic_name = "fjruid" + topic_description = await mgmt_service.create_topic(topic_name) + # send in topic dict without non-name keyword args + topic_description_only_name = {"name": topic_name} + with pytest.raises(TypeError): + await mgmt_service.update_topic(topic_description_only_name) + + await mgmt_service.delete_topic(topic_name) + await mgmt_service.close() diff --git a/sdk/servicebus/azure-servicebus/tests/async_tests/test_queues_async.py b/sdk/servicebus/azure-servicebus/tests/async_tests/test_queues_async.py index ed2f4c4b6245..d4c6581d6d05 100644 --- a/sdk/servicebus/azure-servicebus/tests/async_tests/test_queues_async.py +++ b/sdk/servicebus/azure-servicebus/tests/async_tests/test_queues_async.py @@ -1512,3 +1512,148 @@ async def hack_mgmt_execute_async(self, operation, op_type, message, timeout=0): finally: # must reset the mgmt execute method, otherwise other test cases would use the hacked execute method, leading to timeout error uamqp.async_ops.mgmt_operation_async.MgmtOperationAsync.execute_async = original_execute_method + + @pytest.mark.liveTest + @pytest.mark.live_test_only + @CachedResourceGroupPreparer(name_prefix='servicebustest') + @CachedServiceBusNamespacePreparer(name_prefix='servicebustest') + @ServiceBusQueuePreparer(name_prefix='servicebustest') + async def test_queue_async_send_dicts_messages(self, servicebus_namespace_connection_string, servicebus_queue, **kwargs): + async with ServiceBusClient.from_connection_string( + servicebus_namespace_connection_string, logging_enable=False) as sb_client: + + async with sb_client.get_queue_sender(servicebus_queue.name) as sender: + + message_dict = {"body": "Message"} + message2_dict = {"body": "Message2"} + list_message_dicts = [message_dict, message2_dict] + + # send single dict + await sender.send_messages(message_dict) + + # send list of dicts + await sender.send_messages(list_message_dicts) + + # create and send BatchMessage with dicts + batch_message = await sender.create_batch() + batch_message._from_list(list_message_dicts) # pylint: disable=protected-access + await sender.send_messages(batch_message) + + received_messages = [] + async with sb_client.get_queue_receiver(servicebus_queue.name, max_wait_time=5) as receiver: + async for message in receiver: + received_messages.append(message) + assert len(received_messages) == 5 + + @pytest.mark.liveTest + @pytest.mark.live_test_only + @CachedResourceGroupPreparer(name_prefix='servicebustest') + @CachedServiceBusNamespacePreparer(name_prefix='servicebustest') + @ServiceBusQueuePreparer(name_prefix='servicebustest') + async def test_queue_async_send_dict_messages_error_badly_formatted_dicts(self, servicebus_namespace_connection_string, servicebus_queue, **kwargs): + async with ServiceBusClient.from_connection_string( + servicebus_namespace_connection_string, logging_enable=False) as sb_client: + + async with sb_client.get_queue_sender(servicebus_queue.name) as sender: + + message_dict = {"bad_key": "Message"} + message2_dict = {"bad_key": "Message2"} + list_message_dicts = [message_dict, message2_dict] + + # send single dict + with pytest.raises(TypeError): + await sender.send_messages(message_dict) + + # send list of dicts + with pytest.raises(TypeError): + await sender.send_messages(list_message_dicts) + + # create and send BatchMessage with dicts + batch_message = await sender.create_batch() + with pytest.raises(TypeError): + batch_message._from_list(list_message_dicts) # pylint: disable=protected-access + + @pytest.mark.liveTest + @pytest.mark.live_test_only + @CachedResourceGroupPreparer(name_prefix='servicebustest') + @CachedServiceBusNamespacePreparer(name_prefix='servicebustest') + @ServiceBusQueuePreparer(name_prefix='servicebustest', dead_lettering_on_message_expiration=True) + async def test_queue_async_send_dict_messages_scheduled(self, servicebus_namespace_connection_string, servicebus_queue, **kwargs): + + async with ServiceBusClient.from_connection_string( + servicebus_namespace_connection_string, logging_enable=False) as sb_client: + content = "Test scheduled message" + message_id = uuid.uuid4() + message_id2 = uuid.uuid4() + scheduled_enqueue_time = (utc_now() + timedelta(minutes=0.05)).replace(microsecond=0) + message_dict = {"message_id": message_id, "body": content} + message2_dict = {"message_id": message_id2, "body": content} + list_message_dicts = [message_dict, message2_dict] + + # send single dict + async with sb_client.get_queue_receiver(servicebus_queue.name) as receiver: + async with sb_client.get_queue_sender(servicebus_queue.name) as sender: + tokens = await sender.schedule_messages(message_dict, scheduled_enqueue_time) + assert len(tokens) == 1 + + messages = await receiver.receive_messages(max_wait_time=20) + if messages: + try: + data = str(messages[0]) + assert data == content + assert messages[0].message_id == message_id + assert messages[0].scheduled_enqueue_time_utc == scheduled_enqueue_time + assert messages[0].scheduled_enqueue_time_utc <= messages[0].enqueued_time_utc.replace(microsecond=0) + assert len(messages) == 1 + finally: + for m in messages: + await m.complete() + else: + raise Exception("Failed to receive schdeduled message.") + + # send list of dicts + async with sb_client.get_queue_receiver(servicebus_queue.name, prefetch_count=20) as receiver: + async with sb_client.get_queue_sender(servicebus_queue.name) as sender: + tokens = await sender.schedule_messages(list_message_dicts, scheduled_enqueue_time) + assert len(tokens) == 2 + + messages = await receiver.receive_messages(max_wait_time=20) + messages.extend(await receiver.receive_messages(max_wait_time=5)) + if messages: + try: + data = str(messages[0]) + print(messages) + assert data == content + assert messages[0].message_id == message_id + assert messages[0].scheduled_enqueue_time_utc == scheduled_enqueue_time + assert messages[0].scheduled_enqueue_time_utc <= messages[0].enqueued_time_utc.replace(microsecond=0) + assert len(messages) == 2 + finally: + for m in messages: + await m.complete() + else: + raise Exception("Failed to receive schdeduled message.") + + @pytest.mark.liveTest + @pytest.mark.live_test_only + @CachedResourceGroupPreparer(name_prefix='servicebustest') + @CachedServiceBusNamespacePreparer(name_prefix='servicebustest') + @ServiceBusQueuePreparer(name_prefix='servicebustest', dead_lettering_on_message_expiration=True) + async def test_queue_async_send_dict_messages_scheduled_error_badly_formatted_dicts(self, servicebus_namespace_connection_string, servicebus_queue, **kwargs): + + async with ServiceBusClient.from_connection_string( + servicebus_namespace_connection_string, logging_enable=False) as sb_client: + content = "Test scheduled message" + message_id = uuid.uuid4() + message_id2 = uuid.uuid4() + scheduled_enqueue_time = (utc_now() + timedelta(minutes=0.1)).replace(microsecond=0) + async with sb_client.get_queue_receiver(servicebus_queue.name) as receiver: + async with sb_client.get_queue_sender(servicebus_queue.name) as sender: + message_dict = {"message_id": message_id, "bad_key": content} + message2_dict = {"message_id": message_id2, "bad_key": content} + list_message_dicts = [message_dict, message2_dict] + with pytest.raises(TypeError): + await sender.schedule_messages(message_dict, scheduled_enqueue_time) + with pytest.raises(TypeError): + await sender.schedule_messages(list_message_dicts, scheduled_enqueue_time) + \ No newline at end of file diff --git a/sdk/servicebus/azure-servicebus/tests/mgmt_tests/test_mgmt_queues.py b/sdk/servicebus/azure-servicebus/tests/mgmt_tests/test_mgmt_queues.py index 505a94aaaaec..9f2688132606 100644 --- a/sdk/servicebus/azure-servicebus/tests/mgmt_tests/test_mgmt_queues.py +++ b/sdk/servicebus/azure-servicebus/tests/mgmt_tests/test_mgmt_queues.py @@ -468,3 +468,68 @@ def test_mgmt_queue_get_runtime_properties_negative(self, servicebus_namespace_c def test_queue_properties_constructor(self): with pytest.raises(TypeError): QueueProperties("randomname") + + @pytest.mark.liveTest + @CachedResourceGroupPreparer(name_prefix='servicebustest') + @CachedServiceBusNamespacePreparer(name_prefix='servicebustest') + def test_mgmt_queue_update_dict_success(self, servicebus_namespace_connection_string, **kwargs): + mgmt_service = ServiceBusAdministrationClient.from_connection_string(servicebus_namespace_connection_string) + clear_queues(mgmt_service) + queue_name = "fjruid" + queue_description = mgmt_service.create_queue(queue_name) + queue_description_dict = dict(queue_description) + try: + # Try updating one setting. + queue_description_dict["lock_duration"] = datetime.timedelta(minutes=2) + mgmt_service.update_queue(queue_description_dict) + + queue_description = mgmt_service.get_queue(queue_name) + assert queue_description.lock_duration == datetime.timedelta(minutes=2) + + # Now try updating all settings. + queue_description_dict = dict(queue_description) + queue_description_dict["auto_delete_on_idle"] = datetime.timedelta(minutes=10) + queue_description_dict["dead_lettering_on_message_expiration"] = True + queue_description_dict["default_message_time_to_live"] = datetime.timedelta(minutes=11) + queue_description_dict["duplicate_detection_history_time_window"] = datetime.timedelta(minutes=12) + queue_description_dict["enable_batched_operations"] = True + queue_description_dict["enable_express"] = True + #queue_description_dict["enable_partitioning"] = True # Cannot be changed after creation + queue_description_dict["lock_duration"] = datetime.timedelta(seconds=13) + queue_description_dict["max_delivery_count"] = 14 + queue_description_dict["max_size_in_megabytes"] = 3072 + #queue_description_dict["requires_duplicate_detection"] = True # Read only + #queue_description_dict["requires_session"] = True # Cannot be changed after creation + + mgmt_service.update_queue(queue_description_dict) + queue_description = mgmt_service.get_queue(queue_name) + + assert queue_description.auto_delete_on_idle == datetime.timedelta(minutes=10) + assert queue_description.dead_lettering_on_message_expiration == True + assert queue_description.default_message_time_to_live == datetime.timedelta(minutes=11) + assert queue_description.duplicate_detection_history_time_window == datetime.timedelta(minutes=12) + assert queue_description.enable_batched_operations == True + assert queue_description.enable_express == True + #assert queue_description.enable_partitioning == True + assert queue_description.lock_duration == datetime.timedelta(seconds=13) + assert queue_description.max_delivery_count == 14 + assert queue_description.max_size_in_megabytes == 3072 + #assert queue_description.requires_duplicate_detection == True + #assert queue_description.requires_session == True + finally: + mgmt_service.delete_queue(queue_name) + + @pytest.mark.liveTest + @CachedResourceGroupPreparer(name_prefix='servicebustest') + @CachedServiceBusNamespacePreparer(name_prefix='servicebustest') + def test_mgmt_queue_update_dict_error(self, servicebus_namespace_connection_string, **kwargs): + mgmt_service = ServiceBusAdministrationClient.from_connection_string(servicebus_namespace_connection_string) + clear_queues(mgmt_service) + queue_name = "fjruid" + queue_description = mgmt_service.create_queue(queue_name) + # send in queue dict without non-name keyword args + queue_description_only_name = {"name": queue_name} + with pytest.raises(TypeError): + mgmt_service.update_queue(queue_description_only_name) + + mgmt_service.delete_queue(queue_name) diff --git a/sdk/servicebus/azure-servicebus/tests/mgmt_tests/test_mgmt_rules.py b/sdk/servicebus/azure-servicebus/tests/mgmt_tests/test_mgmt_rules.py index 40b4a4cd82d0..e5ec9ed5d74a 100644 --- a/sdk/servicebus/azure-servicebus/tests/mgmt_tests/test_mgmt_rules.py +++ b/sdk/servicebus/azure-servicebus/tests/mgmt_tests/test_mgmt_rules.py @@ -257,3 +257,65 @@ def test_mgmt_rule_list_and_delete(self, servicebus_namespace_connection_string) def test_rule_properties_constructor(self): with pytest.raises(TypeError): RuleProperties("randomname") + + @CachedResourceGroupPreparer(name_prefix='servicebustest') + @CachedServiceBusNamespacePreparer(name_prefix='servicebustest') + def test_mgmt_rule_update_dict_success(self, servicebus_namespace_connection_string, **kwargs): + mgmt_service = ServiceBusAdministrationClient.from_connection_string(servicebus_namespace_connection_string) + clear_topics(mgmt_service) + topic_name = "fjrui" + subscription_name = "eqkovc" + rule_name = 'rule' + sql_filter = SqlRuleFilter("Priority = 'low'") + + try: + topic_description = mgmt_service.create_topic(topic_name) + subscription_description = mgmt_service.create_subscription(topic_description.name, subscription_name) + mgmt_service.create_rule(topic_name, subscription_name, rule_name, filter=sql_filter) + + rule_desc = mgmt_service.get_rule(topic_name, subscription_name, rule_name) + + assert type(rule_desc.filter) == SqlRuleFilter + assert rule_desc.filter.sql_expression == "Priority = 'low'" + + correlation_fitler = CorrelationRuleFilter(correlation_id='testcid') + sql_rule_action = SqlRuleAction(sql_expression="SET Priority = 'low'") + + rule_desc.filter = correlation_fitler + rule_desc.action = sql_rule_action + rule_desc_dict = dict(rule_desc) + mgmt_service.update_rule(topic_description.name, subscription_description.name, rule_desc_dict) + + rule_desc = mgmt_service.get_rule(topic_name, subscription_name, rule_name) + assert type(rule_desc.filter) == CorrelationRuleFilter + assert rule_desc.filter.correlation_id == 'testcid' + assert rule_desc.action.sql_expression == "SET Priority = 'low'" + + finally: + mgmt_service.delete_rule(topic_name, subscription_name, rule_name) + mgmt_service.delete_subscription(topic_name, subscription_name) + mgmt_service.delete_topic(topic_name) + + @pytest.mark.liveTest + @CachedResourceGroupPreparer(name_prefix='servicebustest') + @CachedServiceBusNamespacePreparer(name_prefix='servicebustest') + def test_mgmt_rule_update_dict_error(self, servicebus_namespace_connection_string, **kwargs): + mgmt_service = ServiceBusAdministrationClient.from_connection_string(servicebus_namespace_connection_string) + clear_topics(mgmt_service) + topic_name = "fjrui" + subscription_name = "eqkovc" + rule_name = 'rule' + sql_filter = SqlRuleFilter("Priority = 'low'") + + topic_description = mgmt_service.create_topic(topic_name) + subscription_description = mgmt_service.create_subscription(topic_description.name, subscription_name) + mgmt_service.create_rule(topic_name, subscription_name, rule_name, filter=sql_filter) + + # send in rule dict without non-name keyword args + rule_description_only_name = {"name": topic_name} + with pytest.raises(TypeError): + mgmt_service.update_rule(topic_description.name, subscription_description.name, rule_description_only_name) + + mgmt_service.delete_rule(topic_name, subscription_name, rule_name) + mgmt_service.delete_subscription(topic_name, subscription_name) + mgmt_service.delete_topic(topic_name) diff --git a/sdk/servicebus/azure-servicebus/tests/mgmt_tests/test_mgmt_subscriptions.py b/sdk/servicebus/azure-servicebus/tests/mgmt_tests/test_mgmt_subscriptions.py index 4d64962b000f..0fe395e5591d 100644 --- a/sdk/servicebus/azure-servicebus/tests/mgmt_tests/test_mgmt_subscriptions.py +++ b/sdk/servicebus/azure-servicebus/tests/mgmt_tests/test_mgmt_subscriptions.py @@ -295,3 +295,65 @@ def test_mgmt_subscription_get_runtime_properties_basic(self, servicebus_namespa def test_subscription_properties_constructor(self): with pytest.raises(TypeError): SubscriptionProperties("randomname") + + @CachedResourceGroupPreparer(name_prefix='servicebustest') + @CachedServiceBusNamespacePreparer(name_prefix='servicebustest') + def test_mgmt_subscription_update_dict_success(self, servicebus_namespace_connection_string, **kwargs): + mgmt_service = ServiceBusAdministrationClient.from_connection_string(servicebus_namespace_connection_string) + clear_topics(mgmt_service) + topic_name = "fjrui" + subscription_name = "eqkovc" + + try: + topic_description = mgmt_service.create_topic(topic_name) + subscription_description = mgmt_service.create_subscription(topic_description.name, subscription_name) + subscription_description_dict = dict(subscription_description) + + # Try updating one setting. + subscription_description_dict["lock_duration"] = datetime.timedelta(minutes=2) + mgmt_service.update_subscription(topic_description.name, subscription_description_dict) + subscription_description = mgmt_service.get_subscription(topic_name, subscription_name) + assert subscription_description.lock_duration == datetime.timedelta(minutes=2) + + # Now try updating all settings. + subscription_description_dict = dict(subscription_description) + subscription_description_dict["auto_delete_on_idle"] = datetime.timedelta(minutes=10) + subscription_description_dict["dead_lettering_on_message_expiration"] = True + subscription_description_dict["default_message_time_to_live"] = datetime.timedelta(minutes=11) + subscription_description_dict["lock_duration"] = datetime.timedelta(seconds=12) + subscription_description_dict["max_delivery_count"] = 14 + # topic_description.enable_partitioning = True # Cannot be changed after creation + # topic_description.requires_session = True # Cannot be changed after creation + + mgmt_service.update_subscription(topic_description.name, subscription_description_dict) + subscription_description = mgmt_service.get_subscription(topic_description.name, subscription_name) + + assert subscription_description.auto_delete_on_idle == datetime.timedelta(minutes=10) + assert subscription_description.dead_lettering_on_message_expiration == True + assert subscription_description.default_message_time_to_live == datetime.timedelta(minutes=11) + assert subscription_description.max_delivery_count == 14 + assert subscription_description.lock_duration == datetime.timedelta(seconds=12) + # assert topic_description.enable_partitioning == True + # assert topic_description.requires_session == True + finally: + mgmt_service.delete_subscription(topic_name, subscription_name) + mgmt_service.delete_topic(topic_name) + + @pytest.mark.liveTest + @CachedResourceGroupPreparer(name_prefix='servicebustest') + @CachedServiceBusNamespacePreparer(name_prefix='servicebustest') + def test_mgmt_subscription_update_dict_error(self, servicebus_namespace_connection_string, **kwargs): + mgmt_service = ServiceBusAdministrationClient.from_connection_string(servicebus_namespace_connection_string) + clear_topics(mgmt_service) + topic_name = "fjrui" + subscription_name = "eqkovc" + + topic_description = mgmt_service.create_topic(topic_name) + subscription_description = mgmt_service.create_subscription(topic_description.name, subscription_name) + # send in subscription dict without non-name keyword args + subscription_description_only_name = {"name": topic_name} + with pytest.raises(TypeError): + mgmt_service.update_subscription(topic_description.name, subscription_description_only_name) + + mgmt_service.delete_subscription(topic_name, subscription_name) + mgmt_service.delete_topic(topic_name) \ No newline at end of file diff --git a/sdk/servicebus/azure-servicebus/tests/mgmt_tests/test_mgmt_topics.py b/sdk/servicebus/azure-servicebus/tests/mgmt_tests/test_mgmt_topics.py index 99495a94c4d3..a2530c8e2838 100644 --- a/sdk/servicebus/azure-servicebus/tests/mgmt_tests/test_mgmt_topics.py +++ b/sdk/servicebus/azure-servicebus/tests/mgmt_tests/test_mgmt_topics.py @@ -259,3 +259,64 @@ def test_mgmt_topic_get_runtime_properties_basic(self, servicebus_namespace_conn def test_topic_properties_constructor(self): with pytest.raises(TypeError): TopicProperties("randomname") + + @CachedResourceGroupPreparer(name_prefix='servicebustest') + @CachedServiceBusNamespacePreparer(name_prefix='servicebustest') + def test_mgmt_topic_update_dict_success(self, servicebus_namespace_connection_string, **kwargs): + mgmt_service = ServiceBusAdministrationClient.from_connection_string(servicebus_namespace_connection_string) + clear_topics(mgmt_service) + topic_name = "fjrui" + + try: + topic_description = mgmt_service.create_topic(topic_name) + topic_description_dict = dict(topic_description) + + # Try updating one setting. + topic_description_dict["default_message_time_to_live"] = datetime.timedelta(minutes=2) + mgmt_service.update_topic(topic_description_dict) + topic_description = mgmt_service.get_topic(topic_name) + assert topic_description.default_message_time_to_live == datetime.timedelta(minutes=2) + + # Now try updating all settings. + topic_description_dict = dict(topic_description) + topic_description_dict["auto_delete_on_idle"] = datetime.timedelta(minutes=10) + topic_description_dict["default_message_time_to_live"] = datetime.timedelta(minutes=11) + topic_description_dict["duplicate_detection_history_time_window"] = datetime.timedelta(minutes=12) + topic_description_dict["enable_batched_operations"] = True + topic_description_dict["enable_express"] = True + # topic_description_dict["enable_partitioning"] = True # Cannot be changed after creation + topic_description_dict["max_size_in_megabytes"] = 3072 + # topic_description_dict["requires_duplicate_detection"] = True # Read only + # topic_description_dict["requires_session"] = True # Cannot be changed after creation + topic_description_dict["support_ordering"] = True + + mgmt_service.update_topic(topic_description_dict) + topic_description = mgmt_service.get_topic(topic_name) + + assert topic_description.auto_delete_on_idle == datetime.timedelta(minutes=10) + assert topic_description.default_message_time_to_live == datetime.timedelta(minutes=11) + assert topic_description.duplicate_detection_history_time_window == datetime.timedelta(minutes=12) + assert topic_description.enable_batched_operations == True + assert topic_description.enable_express == True + # assert topic_description.enable_partitioning == True + assert topic_description.max_size_in_megabytes == 3072 + # assert topic_description.requires_duplicate_detection == True + # assert topic_description.requires_session == True + assert topic_description.support_ordering == True + finally: + mgmt_service.delete_topic(topic_name) + + @pytest.mark.liveTest + @CachedResourceGroupPreparer(name_prefix='servicebustest') + @CachedServiceBusNamespacePreparer(name_prefix='servicebustest') + def test_mgmt_topic_update_dict_error(self, servicebus_namespace_connection_string, **kwargs): + mgmt_service = ServiceBusAdministrationClient.from_connection_string(servicebus_namespace_connection_string) + clear_topics(mgmt_service) + topic_name = "fjruid" + topic_description = mgmt_service.create_topic(topic_name) + # send in topic dict without non-name keyword args + topic_description_only_name = {"name": topic_name} + with pytest.raises(TypeError): + mgmt_service.update_topic(topic_description_only_name) + + mgmt_service.delete_topic(topic_name) diff --git a/sdk/servicebus/azure-servicebus/tests/test_queues.py b/sdk/servicebus/azure-servicebus/tests/test_queues.py index fd09ec4ab5eb..88cedc06a4e8 100644 --- a/sdk/servicebus/azure-servicebus/tests/test_queues.py +++ b/sdk/servicebus/azure-servicebus/tests/test_queues.py @@ -1979,3 +1979,174 @@ def hack_mgmt_execute(self, operation, op_type, message, timeout=0): finally: # must reset the mgmt execute method, otherwise other test cases would use the hacked execute method, leading to timeout error uamqp.mgmt_operation.MgmtOperation.execute = original_execute_method + + @pytest.mark.liveTest + @pytest.mark.live_test_only + @CachedResourceGroupPreparer(name_prefix='servicebustest') + @CachedServiceBusNamespacePreparer(name_prefix='servicebustest') + @CachedServiceBusQueuePreparer(name_prefix='servicebustest', dead_lettering_on_message_expiration=True) + def test_queue_send_timeout(self, servicebus_namespace_connection_string, servicebus_queue, **kwargs): + def _hack_amqp_sender_run(cls): + time.sleep(6) # sleep until timeout + cls.message_handler.work() + cls._waiting_messages = 0 + cls._pending_messages = cls._filter_pending() + if cls._backoff and not cls._waiting_messages: + _logger.info("Client told to backoff - sleeping for %r seconds", cls._backoff) + cls._connection.sleep(cls._backoff) + cls._backoff = 0 + cls._connection.work() + return True + + with ServiceBusClient.from_connection_string( + servicebus_namespace_connection_string, logging_enable=False) as sb_client: + with sb_client.get_queue_sender(servicebus_queue.name) as sender: + # this one doesn't need to reset the method, as it's hacking the method on the instance + sender._handler._client_run = types.MethodType(_hack_amqp_sender_run, sender._handler) + with pytest.raises(OperationTimeoutError): + sender.send_messages(Message("body"), timeout=5) + + @pytest.mark.liveTest + @pytest.mark.live_test_only + @CachedResourceGroupPreparer(name_prefix='servicebustest') + @CachedServiceBusNamespacePreparer(name_prefix='servicebustest') + @ServiceBusQueuePreparer(name_prefix='servicebustest') + def test_queue_send_dicts_messages(self, servicebus_namespace_connection_string, servicebus_queue, **kwargs): + with ServiceBusClient.from_connection_string( + servicebus_namespace_connection_string, logging_enable=False) as sb_client: + + with sb_client.get_queue_sender(servicebus_queue.name) as sender: + + message_dict = {"body": "Message"} + message2_dict = {"body": "Message2"} + list_message_dicts = [message_dict, message2_dict] + + # send single dict + sender.send_messages(message_dict) + + # send list of dicts + sender.send_messages(list_message_dicts) + + # create and send BatchMessage with dicts + batch_message = sender.create_batch() + batch_message._from_list(list_message_dicts) # pylint: disable=protected-access + sender.send_messages(batch_message) + + received_messages = [] + with sb_client.get_queue_receiver(servicebus_queue.name, max_wait_time=5) as receiver: + for message in receiver: + received_messages.append(message) + assert len(received_messages) == 5 + + @pytest.mark.liveTest + @pytest.mark.live_test_only + @CachedResourceGroupPreparer(name_prefix='servicebustest') + @CachedServiceBusNamespacePreparer(name_prefix='servicebustest') + @ServiceBusQueuePreparer(name_prefix='servicebustest') + def test_queue_send_dict_messages_error_badly_formatted_dicts(self, servicebus_namespace_connection_string, servicebus_queue, **kwargs): + with ServiceBusClient.from_connection_string( + servicebus_namespace_connection_string, logging_enable=False) as sb_client: + + with sb_client.get_queue_sender(servicebus_queue.name) as sender: + + message_dict = {"bad_key": "Message"} + message2_dict = {"bad_key": "Message2"} + list_message_dicts = [message_dict, message2_dict] + + # send single dict + with pytest.raises(TypeError): + sender.send_messages(message_dict) + + # send list of dicts + with pytest.raises(TypeError): + sender.send_messages(list_message_dicts) + + # create and send BatchMessage with dicts + batch_message = sender.create_batch() + with pytest.raises(TypeError): + batch_message._from_list(list_message_dicts) # pylint: disable=protected-access + + @pytest.mark.liveTest + @pytest.mark.live_test_only + @CachedResourceGroupPreparer(name_prefix='servicebustest') + @CachedServiceBusNamespacePreparer(name_prefix='servicebustest') + @ServiceBusQueuePreparer(name_prefix='servicebustest', dead_lettering_on_message_expiration=True) + def test_queue_send_dict_messages_scheduled(self, servicebus_namespace_connection_string, servicebus_queue, **kwargs): + + with ServiceBusClient.from_connection_string( + servicebus_namespace_connection_string, logging_enable=False) as sb_client: + content = "Test scheduled message" + message_id = uuid.uuid4() + message_id2 = uuid.uuid4() + scheduled_enqueue_time = (utc_now() + timedelta(minutes=0.05)).replace(microsecond=0) + message_dict = {"message_id": message_id, "body": content} + message2_dict = {"message_id": message_id2, "body": content} + list_message_dicts = [message_dict, message2_dict] + + # send single dict + with sb_client.get_queue_receiver(servicebus_queue.name) as receiver: + with sb_client.get_queue_sender(servicebus_queue.name) as sender: + tokens = sender.schedule_messages(message_dict, scheduled_enqueue_time) + assert len(tokens) == 1 + + messages = receiver.receive_messages(max_wait_time=20) + if messages: + try: + data = str(messages[0]) + assert data == content + assert messages[0].message_id == message_id + assert messages[0].scheduled_enqueue_time_utc == scheduled_enqueue_time + assert messages[0].scheduled_enqueue_time_utc <= messages[0].enqueued_time_utc.replace(microsecond=0) + assert len(messages) == 1 + finally: + for m in messages: + m.complete() + else: + raise Exception("Failed to receive schdeduled message.") + + # send list of dicts + with sb_client.get_queue_receiver(servicebus_queue.name, prefetch_count=20) as receiver: + with sb_client.get_queue_sender(servicebus_queue.name) as sender: + tokens = sender.schedule_messages(list_message_dicts, scheduled_enqueue_time) + assert len(tokens) == 2 + + messages = receiver.receive_messages(max_wait_time=20) + messages.extend(receiver.receive_messages(max_wait_time=5)) + if messages: + try: + data = str(messages[0]) + print(messages) + assert data == content + assert messages[0].message_id == message_id + assert messages[0].scheduled_enqueue_time_utc == scheduled_enqueue_time + assert messages[0].scheduled_enqueue_time_utc <= messages[0].enqueued_time_utc.replace(microsecond=0) + assert len(messages) == 2 + finally: + for m in messages: + m.complete() + else: + raise Exception("Failed to receive schdeduled message.") + + @pytest.mark.liveTest + @pytest.mark.live_test_only + @CachedResourceGroupPreparer(name_prefix='servicebustest') + @CachedServiceBusNamespacePreparer(name_prefix='servicebustest') + @ServiceBusQueuePreparer(name_prefix='servicebustest', dead_lettering_on_message_expiration=True) + def test_queue_send_dict_messages_scheduled_error_badly_formatted_dicts(self, servicebus_namespace_connection_string, servicebus_queue, **kwargs): + + with ServiceBusClient.from_connection_string( + servicebus_namespace_connection_string, logging_enable=False) as sb_client: + content = "Test scheduled message" + message_id = uuid.uuid4() + message_id2 = uuid.uuid4() + scheduled_enqueue_time = (utc_now() + timedelta(minutes=0.1)).replace(microsecond=0) + with sb_client.get_queue_receiver(servicebus_queue.name) as receiver: + with sb_client.get_queue_sender(servicebus_queue.name) as sender: + message_dict = {"message_id": message_id, "bad_key": content} + message2_dict = {"message_id": message_id2, "bad_key": content} + list_message_dicts = [message_dict, message2_dict] + with pytest.raises(TypeError): + sender.schedule_messages(message_dict, scheduled_enqueue_time) + with pytest.raises(TypeError): + sender.schedule_messages(list_message_dicts, scheduled_enqueue_time) + \ No newline at end of file From 9462f2218693f1516cb740d6024fdcc9dd8f0393 Mon Sep 17 00:00:00 2001 From: Swathi Pillalamarri Date: Wed, 17 Feb 2021 21:03:39 -0600 Subject: [PATCH 11/30] updated error messages for mgmt client --- .../azure/servicebus/management/_management_client.py | 4 ++++ .../azure-servicebus/azure/servicebus/management/_utils.py | 6 +++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/sdk/servicebus/azure-servicebus/azure/servicebus/management/_management_client.py b/sdk/servicebus/azure-servicebus/azure/servicebus/management/_management_client.py index 7857aa2c03af..2856a8b74cac 100644 --- a/sdk/servicebus/azure-servicebus/azure/servicebus/management/_management_client.py +++ b/sdk/servicebus/azure-servicebus/azure/servicebus/management/_management_client.py @@ -483,6 +483,10 @@ def update_topic(self, topic, **kwargs): """ topic_name, to_update = create_properties_from_list_of_dicts_if_needed(topic, TopicProperties) + # is the below needed 6 lines? --> it's not in the management async client + if isinstance(topic, dict): + topic = to_update + to_update.default_message_time_to_live = kwargs.get( "default_message_time_to_live") or topic.default_message_time_to_live to_update.duplicate_detection_history_time_window = kwargs.get( diff --git a/sdk/servicebus/azure-servicebus/azure/servicebus/management/_utils.py b/sdk/servicebus/azure-servicebus/azure/servicebus/management/_utils.py index 4b028d149e50..42302731ec10 100644 --- a/sdk/servicebus/azure-servicebus/azure/servicebus/management/_utils.py +++ b/sdk/servicebus/azure-servicebus/azure/servicebus/management/_utils.py @@ -296,7 +296,7 @@ def create_properties_from_list_of_dicts_if_needed(properties, sb_resource_type) to_update = properties._to_internal_entity() # pylint: disable=protected-access return (resource_property_name, to_update) - except KeyError as e: - _log.error("{} dict is missing required key: {}".format(sb_resource_type, e)) - except TypeError as e: + except (AttributeError, TypeError) as e: _log.error(e) + except KeyError as e: + raise AttributeError("{} dict is missing required key: {}".format(sb_resource_type, e)) From e39482494984a5ef0150bd32cd890e496bee8d13 Mon Sep 17 00:00:00 2001 From: Swathi Pillalamarri Date: Thu, 18 Feb 2021 09:57:14 -0600 Subject: [PATCH 12/30] remove unnecessary kwarg check in update_topic --- .../azure/servicebus/management/_management_client.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/sdk/servicebus/azure-servicebus/azure/servicebus/management/_management_client.py b/sdk/servicebus/azure-servicebus/azure/servicebus/management/_management_client.py index 2856a8b74cac..28163bc537a8 100644 --- a/sdk/servicebus/azure-servicebus/azure/servicebus/management/_management_client.py +++ b/sdk/servicebus/azure-servicebus/azure/servicebus/management/_management_client.py @@ -483,14 +483,6 @@ def update_topic(self, topic, **kwargs): """ topic_name, to_update = create_properties_from_list_of_dicts_if_needed(topic, TopicProperties) - # is the below needed 6 lines? --> it's not in the management async client - if isinstance(topic, dict): - topic = to_update - - to_update.default_message_time_to_live = kwargs.get( - "default_message_time_to_live") or topic.default_message_time_to_live - to_update.duplicate_detection_history_time_window = kwargs.get( - "duplicate_detection_history_time_window") or topic.duplicate_detection_history_time_window to_update.default_message_time_to_live = avoid_timedelta_overflow(to_update.default_message_time_to_live) to_update.auto_delete_on_idle = avoid_timedelta_overflow(to_update.auto_delete_on_idle) From ac171786941bce6b2021282bca4b3ee31ff0954b Mon Sep 17 00:00:00 2001 From: Swathi Pillalamarri Date: Thu, 18 Feb 2021 10:26:03 -0600 Subject: [PATCH 13/30] remove error messages --- .../azure/servicebus/_common/utils.py | 30 ++++++++----------- .../azure/servicebus/management/_utils.py | 23 ++++++-------- 2 files changed, 22 insertions(+), 31 deletions(-) diff --git a/sdk/servicebus/azure-servicebus/azure/servicebus/_common/utils.py b/sdk/servicebus/azure-servicebus/azure/servicebus/_common/utils.py index 742e2745c118..0413987fa1a0 100644 --- a/sdk/servicebus/azure-servicebus/azure/servicebus/_common/utils.py +++ b/sdk/servicebus/azure-servicebus/azure/servicebus/_common/utils.py @@ -178,20 +178,16 @@ def create_messages_from_dicts_if_needed(messages, message_type): of messages and to Message objects. """ # type: (DictMessageType) -> Union[List[azure.servicebus.Message], azure.servicebus.BatchMessage] - try: - if isinstance(messages, list): - for index, message in enumerate(messages): - if isinstance(message, dict): - messages[index] = message_type(**message) - - if isinstance(messages, dict): - temp_messages = message_type(**messages) - messages = [temp_messages] - - if isinstance(messages, message_type): - messages = [messages] - - return messages - except TypeError as e: - _log.error("Dict must include 'body' key. Message is incorrectly formatted:") - _log.error(e) + if isinstance(messages, list): + for index, message in enumerate(messages): + if isinstance(message, dict): + messages[index] = message_type(**message) + + if isinstance(messages, dict): + temp_messages = message_type(**messages) + messages = [temp_messages] + + if isinstance(messages, message_type): + messages = [messages] + + return messages diff --git a/sdk/servicebus/azure-servicebus/azure/servicebus/management/_utils.py b/sdk/servicebus/azure-servicebus/azure/servicebus/management/_utils.py index 42302731ec10..d90b504bc69d 100644 --- a/sdk/servicebus/azure-servicebus/azure/servicebus/management/_utils.py +++ b/sdk/servicebus/azure-servicebus/azure/servicebus/management/_utils.py @@ -286,17 +286,12 @@ def create_properties_from_list_of_dicts_if_needed(properties, sb_resource_type) corresponding dict representations of resource properties. """ # type: (dict, DictPropertiesType) -> (str, DictPropertiesReturnType) - try: - if isinstance(properties, dict): - resource_property_name = properties["name"] - dict_to_props = sb_resource_type(**properties) - to_update = dict_to_props._to_internal_entity() # pylint: disable=protected-access - else: - resource_property_name = properties.name - to_update = properties._to_internal_entity() # pylint: disable=protected-access - - return (resource_property_name, to_update) - except (AttributeError, TypeError) as e: - _log.error(e) - except KeyError as e: - raise AttributeError("{} dict is missing required key: {}".format(sb_resource_type, e)) + if isinstance(properties, dict): + resource_property_name = properties["name"] + dict_to_props = sb_resource_type(**properties) + to_update = dict_to_props._to_internal_entity() # pylint: disable=protected-access + else: + resource_property_name = properties.name + to_update = properties._to_internal_entity() # pylint: disable=protected-access + + return (resource_property_name, to_update) From a81445d49c5aa483200ea597be601b9b76e8b6c8 Mon Sep 17 00:00:00 2001 From: Swathi Pillalamarri Date: Thu, 18 Feb 2021 12:12:31 -0600 Subject: [PATCH 14/30] changed function name --- .../aio/management/_management_client_async.py | 10 +++++----- .../azure/servicebus/management/_management_client.py | 10 +++++----- .../azure/servicebus/management/_utils.py | 2 +- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/sdk/servicebus/azure-servicebus/azure/servicebus/aio/management/_management_client_async.py b/sdk/servicebus/azure-servicebus/azure/servicebus/aio/management/_management_client_async.py index e3e1024c2570..07c99bb49791 100644 --- a/sdk/servicebus/azure-servicebus/azure/servicebus/aio/management/_management_client_async.py +++ b/sdk/servicebus/azure-servicebus/azure/servicebus/aio/management/_management_client_async.py @@ -38,7 +38,7 @@ from ._utils import extract_data_template, extract_rule_data_template, get_next_template from ...management._utils import deserialize_rule_key_values, serialize_rule_key_values, \ _validate_entity_name_type, _validate_topic_and_subscription_types, _validate_topic_subscription_and_rule_types, \ - create_properties_from_list_of_dicts_if_needed + create_properties_from_dicts_if_needed if TYPE_CHECKING: from azure.core.credentials_async import AsyncTokenCredential # pylint:disable=ungrouped-imports @@ -286,7 +286,7 @@ async def update_queue(self, queue: QueueProperties, **kwargs) -> None: :type queue: ~azure.servicebus.management.QueueProperties :rtype: None """ - queue_name, to_update = create_properties_from_list_of_dicts_if_needed(queue, QueueProperties) + queue_name, to_update = create_properties_from_dicts_if_needed(queue, QueueProperties) to_update.default_message_time_to_live = avoid_timedelta_overflow(to_update.default_message_time_to_live) to_update.auto_delete_on_idle = avoid_timedelta_overflow(to_update.auto_delete_on_idle) @@ -478,7 +478,7 @@ async def update_topic(self, topic: TopicProperties, **kwargs) -> None: :type topic: ~azure.servicebus.management.TopicProperties :rtype: None """ - topic_name, to_update = create_properties_from_list_of_dicts_if_needed(topic, TopicProperties) + topic_name, to_update = create_properties_from_dicts_if_needed(topic, TopicProperties) to_update.default_message_time_to_live = avoid_timedelta_overflow(to_update.default_message_time_to_live) to_update.auto_delete_on_idle = avoid_timedelta_overflow(to_update.auto_delete_on_idle) @@ -682,7 +682,7 @@ async def update_subscription( :rtype: None """ _validate_entity_name_type(topic_name, display_name='topic_name') - subscription_name, to_update = create_properties_from_list_of_dicts_if_needed(subscription, SubscriptionProperties) + subscription_name, to_update = create_properties_from_dicts_if_needed(subscription, SubscriptionProperties) to_update.default_message_time_to_live = avoid_timedelta_overflow(to_update.default_message_time_to_live) to_update.auto_delete_on_idle = avoid_timedelta_overflow(to_update.auto_delete_on_idle) @@ -849,7 +849,7 @@ async def update_rule( """ _validate_topic_and_subscription_types(topic_name, subscription_name) - rule_name, to_update = create_properties_from_list_of_dicts_if_needed(rule, RuleProperties) + rule_name, to_update = create_properties_from_dicts_if_needed(rule, RuleProperties) create_entity_body = CreateRuleBody( content=CreateRuleBodyContent( diff --git a/sdk/servicebus/azure-servicebus/azure/servicebus/management/_management_client.py b/sdk/servicebus/azure-servicebus/azure/servicebus/management/_management_client.py index 28163bc537a8..e7b979af6d22 100644 --- a/sdk/servicebus/azure-servicebus/azure/servicebus/management/_management_client.py +++ b/sdk/servicebus/azure-servicebus/azure/servicebus/management/_management_client.py @@ -23,7 +23,7 @@ CreateRuleBodyContent, CreateQueueBody, CreateQueueBodyContent from ._utils import extract_data_template, get_next_template, deserialize_rule_key_values, serialize_rule_key_values, \ extract_rule_data_template, _validate_entity_name_type, _validate_topic_and_subscription_types, \ - _validate_topic_subscription_and_rule_types, create_properties_from_list_of_dicts_if_needed + _validate_topic_subscription_and_rule_types, create_properties_from_dicts_if_needed from ._xml_workaround_policy import ServiceBusXMLWorkaroundPolicy from .._common.constants import JWT_TOKEN_SCOPE @@ -281,7 +281,7 @@ def update_queue(self, queue, **kwargs): :rtype: None """ - queue_name, to_update = create_properties_from_list_of_dicts_if_needed(queue, QueueProperties) + queue_name, to_update = create_properties_from_dicts_if_needed(queue, QueueProperties) to_update.default_message_time_to_live = avoid_timedelta_overflow(to_update.default_message_time_to_live) to_update.auto_delete_on_idle = avoid_timedelta_overflow(to_update.auto_delete_on_idle) @@ -482,7 +482,7 @@ def update_topic(self, topic, **kwargs): :rtype: None """ - topic_name, to_update = create_properties_from_list_of_dicts_if_needed(topic, TopicProperties) + topic_name, to_update = create_properties_from_dicts_if_needed(topic, TopicProperties) to_update.default_message_time_to_live = avoid_timedelta_overflow(to_update.default_message_time_to_live) to_update.auto_delete_on_idle = avoid_timedelta_overflow(to_update.auto_delete_on_idle) @@ -687,7 +687,7 @@ def update_subscription(self, topic_name, subscription, **kwargs): """ _validate_entity_name_type(topic_name, display_name='topic_name') - subscription_name, to_update = create_properties_from_list_of_dicts_if_needed(subscription, SubscriptionProperties) + subscription_name, to_update = create_properties_from_dicts_if_needed(subscription, SubscriptionProperties) to_update.default_message_time_to_live = avoid_timedelta_overflow(to_update.default_message_time_to_live) to_update.auto_delete_on_idle = avoid_timedelta_overflow(to_update.auto_delete_on_idle) @@ -850,7 +850,7 @@ def update_rule(self, topic_name, subscription_name, rule, **kwargs): """ _validate_topic_and_subscription_types(topic_name, subscription_name) - rule_name, to_update = create_properties_from_list_of_dicts_if_needed(rule, RuleProperties) + rule_name, to_update = create_properties_from_dicts_if_needed(rule, RuleProperties) create_entity_body = CreateRuleBody( content=CreateRuleBodyContent( diff --git a/sdk/servicebus/azure-servicebus/azure/servicebus/management/_utils.py b/sdk/servicebus/azure-servicebus/azure/servicebus/management/_utils.py index d90b504bc69d..3de6b26a7517 100644 --- a/sdk/servicebus/azure-servicebus/azure/servicebus/management/_utils.py +++ b/sdk/servicebus/azure-servicebus/azure/servicebus/management/_utils.py @@ -280,7 +280,7 @@ def _validate_topic_subscription_and_rule_types(topic_name, subscription_name, r raise TypeError("topic name, subscription name and rule name must be strings, not {} {} and {}".format( type(topic_name), type(subscription_name), type(rule_name))) -def create_properties_from_list_of_dicts_if_needed(properties, sb_resource_type): +def create_properties_from_dicts_if_needed(properties, sb_resource_type): """ This method is used to create internal resource objects given their corresponding dict representations of resource properties. From 073670ed7b32c8a8cbbbde0a2c2afce43e47cf73 Mon Sep 17 00:00:00 2001 From: Swathi Pillalamarri Date: Thu, 18 Feb 2021 17:06:21 -0600 Subject: [PATCH 15/30] fix merge conflict, exceptions --- .../azure-servicebus/azure/servicebus/_common/message.py | 8 +++----- sdk/servicebus/azure-servicebus/tests/test_queues.py | 4 ++-- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/sdk/servicebus/azure-servicebus/azure/servicebus/_common/message.py b/sdk/servicebus/azure-servicebus/azure/servicebus/_common/message.py index 84143678d55a..3b336553885f 100644 --- a/sdk/servicebus/azure-servicebus/azure/servicebus/_common/message.py +++ b/sdk/servicebus/azure-servicebus/azure/servicebus/_common/message.py @@ -44,13 +44,11 @@ ) from ..exceptions import ( MessageAlreadySettled, - MessageLockExpired, - SessionLockExpired, - MessageSettleFailed, - MessageContentTooLarge, + MessageLockLostError, + SessionLockLostError, + MessageSizeExceededError, ServiceBusError) from .utils import utc_from_timestamp, utc_now, transform_messages_to_sendable_if_needed, create_messages_from_dicts_if_needed -from ..exceptions import MessageSizeExceededError if TYPE_CHECKING: from ..aio._servicebus_receiver_async import ( diff --git a/sdk/servicebus/azure-servicebus/tests/test_queues.py b/sdk/servicebus/azure-servicebus/tests/test_queues.py index e4ea4b630857..4a4f05e5f3d7 100644 --- a/sdk/servicebus/azure-servicebus/tests/test_queues.py +++ b/sdk/servicebus/azure-servicebus/tests/test_queues.py @@ -41,8 +41,7 @@ MessageAlreadySettled, AutoLockRenewTimeout, MessageSizeExceededError, - OperationTimeoutError, - ServiceBusError + OperationTimeoutError ) from devtools_testutils import AzureMgmtTestCase, CachedResourceGroupPreparer @@ -2317,6 +2316,7 @@ def test_queue_send_dict_messages_scheduled(self, servicebus_namespace_connectio m.complete() else: raise Exception("Failed to receive schdeduled message.") + @pytest.mark.liveTest @pytest.mark.live_test_only @CachedResourceGroupPreparer(name_prefix='servicebustest') From 2c1fe1e6c2ae206bfb73b6862e2b002c30573a9c Mon Sep 17 00:00:00 2001 From: Swathi Pillalamarri Date: Thu, 18 Feb 2021 18:45:18 -0600 Subject: [PATCH 16/30] fix test errors from merge conflict --- .../azure/servicebus/_common/utils.py | 2 +- .../management/_management_client_async.py | 21 ++++++++++++------- .../management/_management_client.py | 20 +++++++++++------- .../azure/servicebus/management/_utils.py | 16 ++++++-------- .../tests/async_tests/test_queues_async.py | 13 ++++++++++++ .../azure-servicebus/tests/test_queues.py | 13 ++++++++++++ 6 files changed, 58 insertions(+), 27 deletions(-) diff --git a/sdk/servicebus/azure-servicebus/azure/servicebus/_common/utils.py b/sdk/servicebus/azure-servicebus/azure/servicebus/_common/utils.py index 7bec9a9fa4b3..522b727fab6a 100644 --- a/sdk/servicebus/azure-servicebus/azure/servicebus/_common/utils.py +++ b/sdk/servicebus/azure-servicebus/azure/servicebus/_common/utils.py @@ -208,7 +208,7 @@ def transform_messages_to_sendable_if_needed(messages): def create_messages_from_dicts_if_needed(messages, message_type): """ This method is used to convert dict representations - of messages and to Message objects. + of messages and to a list of ServiceBusMessage objects or ServiceBusBatchMessage. """ # type: (DictMessageType) -> Union[List[azure.servicebus.ServiceBusMessage], azure.servicebus.ServiceBusMessageBatch] if isinstance(messages, list): diff --git a/sdk/servicebus/azure-servicebus/azure/servicebus/aio/management/_management_client_async.py b/sdk/servicebus/azure-servicebus/azure/servicebus/aio/management/_management_client_async.py index 6f77c35b49de..f586987ce560 100644 --- a/sdk/servicebus/azure-servicebus/azure/servicebus/aio/management/_management_client_async.py +++ b/sdk/servicebus/azure-servicebus/azure/servicebus/aio/management/_management_client_async.py @@ -412,7 +412,9 @@ async def update_queue(self, queue: QueueProperties, **kwargs) -> None: :rtype: None """ - queue_name, to_update = create_properties_from_dicts_if_needed(queue, QueueProperties) + queue = create_properties_from_dicts_if_needed(queue, QueueProperties) + to_update = queue._to_internal_entity() + to_update.default_message_time_to_live = avoid_timedelta_overflow( to_update.default_message_time_to_live ) @@ -429,7 +431,7 @@ async def update_queue(self, queue: QueueProperties, **kwargs) -> None: await self._create_forward_to_header_tokens(queue, kwargs) with _handle_response_error(): await self._impl.entity.put( - queue_name, # type: ignore + queue.name, # type: ignore request_body, api_version=constants.API_VERSION, if_match="*", @@ -637,7 +639,8 @@ async def update_topic(self, topic: TopicProperties, **kwargs) -> None: :rtype: None """ - topic_name, to_update = create_properties_from_dicts_if_needed(topic, TopicProperties) + topic = create_properties_from_dicts_if_needed(topic, TopicProperties) + to_update = topic._to_internal_entity() to_update.default_message_time_to_live = avoid_timedelta_overflow( to_update.default_message_time_to_live @@ -654,7 +657,7 @@ async def update_topic(self, topic: TopicProperties, **kwargs) -> None: request_body = create_entity_body.serialize(is_xml=True) with _handle_response_error(): await self._impl.entity.put( - topic_name, # type: ignore + topic.name, # type: ignore request_body, api_version=constants.API_VERSION, if_match="*", @@ -884,7 +887,8 @@ async def update_subscription( _validate_entity_name_type(topic_name, display_name="topic_name") - subscription_name, to_update = create_properties_from_dicts_if_needed(subscription, SubscriptionProperties) + subscription = create_properties_from_dicts_if_needed(subscription, SubscriptionProperties) + to_update = subscription._to_internal_entity() to_update.default_message_time_to_live = avoid_timedelta_overflow( to_update.default_message_time_to_live @@ -903,7 +907,7 @@ async def update_subscription( with _handle_response_error(): await self._impl.subscription.put( topic_name, - subscription_name, + subscription.name, request_body, api_version=constants.API_VERSION, if_match="*", @@ -1081,7 +1085,8 @@ async def update_rule( """ _validate_topic_and_subscription_types(topic_name, subscription_name) - rule_name, to_update = create_properties_from_dicts_if_needed(rule, RuleProperties) + rule = create_properties_from_dicts_if_needed(rule, RuleProperties) + to_update = rule._to_internal_entity() create_entity_body = CreateRuleBody( content=CreateRuleBodyContent( @@ -1094,7 +1099,7 @@ async def update_rule( await self._impl.rule.put( topic_name, subscription_name, - rule_name, + rule.name, request_body, api_version=constants.API_VERSION, if_match="*", diff --git a/sdk/servicebus/azure-servicebus/azure/servicebus/management/_management_client.py b/sdk/servicebus/azure-servicebus/azure/servicebus/management/_management_client.py index 1775876bd416..ea97f578b035 100644 --- a/sdk/servicebus/azure-servicebus/azure/servicebus/management/_management_client.py +++ b/sdk/servicebus/azure-servicebus/azure/servicebus/management/_management_client.py @@ -405,7 +405,8 @@ def update_queue(self, queue, **kwargs): :rtype: None """ - queue_name, to_update = create_properties_from_dicts_if_needed(queue, QueueProperties) + queue = create_properties_from_dicts_if_needed(queue, QueueProperties) + to_update = queue._to_internal_entity() to_update.default_message_time_to_live = avoid_timedelta_overflow( to_update.default_message_time_to_live @@ -423,7 +424,7 @@ def update_queue(self, queue, **kwargs): self._create_forward_to_header_tokens(queue, kwargs) with _handle_response_error(): self._impl.entity.put( - queue_name, # type: ignore + queue.name, # type: ignore request_body, api_version=constants.API_VERSION, if_match="*", @@ -633,7 +634,8 @@ def update_topic(self, topic, **kwargs): :rtype: None """ - topic_name, to_update = create_properties_from_dicts_if_needed(topic, TopicProperties) + topic = create_properties_from_dicts_if_needed(topic, TopicProperties) + to_update = topic._to_internal_entity() to_update.default_message_time_to_live = ( kwargs.get("default_message_time_to_live") @@ -659,7 +661,7 @@ def update_topic(self, topic, **kwargs): request_body = create_entity_body.serialize(is_xml=True) with _handle_response_error(): self._impl.entity.put( - topic_name, # type: ignore + topic.name, # type: ignore request_body, api_version=constants.API_VERSION, if_match="*", @@ -888,7 +890,8 @@ def update_subscription(self, topic_name, subscription, **kwargs): _validate_entity_name_type(topic_name, display_name="topic_name") - subscription_name, to_update = create_properties_from_dicts_if_needed(subscription, SubscriptionProperties) + subscription = create_properties_from_dicts_if_needed(subscription, SubscriptionProperties) + to_update = subscription._to_internal_entity() to_update.default_message_time_to_live = avoid_timedelta_overflow( to_update.default_message_time_to_live @@ -907,7 +910,7 @@ def update_subscription(self, topic_name, subscription, **kwargs): with _handle_response_error(): self._impl.subscription.put( topic_name, - subscription_name, + subscription.name, request_body, api_version=constants.API_VERSION, if_match="*", @@ -1079,7 +1082,8 @@ def update_rule(self, topic_name, subscription_name, rule, **kwargs): """ _validate_topic_and_subscription_types(topic_name, subscription_name) - rule_name, to_update = create_properties_from_dicts_if_needed(rule, RuleProperties) + rule = create_properties_from_dicts_if_needed(rule, RuleProperties) + to_update = rule._to_internal_entity() create_entity_body = CreateRuleBody( content=CreateRuleBodyContent( @@ -1092,7 +1096,7 @@ def update_rule(self, topic_name, subscription_name, rule, **kwargs): self._impl.rule.put( topic_name, subscription_name, - rule_name, + rule.name, request_body, api_version=constants.API_VERSION, if_match="*", diff --git a/sdk/servicebus/azure-servicebus/azure/servicebus/management/_utils.py b/sdk/servicebus/azure-servicebus/azure/servicebus/management/_utils.py index 75b0988c2ddc..7db536280647 100644 --- a/sdk/servicebus/azure-servicebus/azure/servicebus/management/_utils.py +++ b/sdk/servicebus/azure-servicebus/azure/servicebus/management/_utils.py @@ -326,19 +326,15 @@ def _validate_topic_subscription_and_rule_types( type(topic_name), type(subscription_name), type(rule_name) ) ) - + def create_properties_from_dicts_if_needed(properties, sb_resource_type): """ - This method is used to create internal resource objects given their - corresponding dict representations of resource properties. + This method is used to create a properties object given the + resource properties type and its corresponding dict representation. """ - # type: (dict, DictPropertiesType) -> (str, DictPropertiesReturnType) + # type: (dict, DictPropertiesType) -> (DictPropertiesReturnType) if isinstance(properties, dict): - resource_property_name = properties["name"] dict_to_props = sb_resource_type(**properties) - to_update = dict_to_props._to_internal_entity() # pylint: disable=protected-access - else: - resource_property_name = properties.name - to_update = properties._to_internal_entity() # pylint: disable=protected-access + properties = dict_to_props - return (resource_property_name, to_update) + return properties diff --git a/sdk/servicebus/azure-servicebus/tests/async_tests/test_queues_async.py b/sdk/servicebus/azure-servicebus/tests/async_tests/test_queues_async.py index 0027a3142d1b..bd143e57f860 100644 --- a/sdk/servicebus/azure-servicebus/tests/async_tests/test_queues_async.py +++ b/sdk/servicebus/azure-servicebus/tests/async_tests/test_queues_async.py @@ -1658,6 +1658,10 @@ async def hack_mgmt_execute_async(self, operation, op_type, message, timeout=0): # must reset the mgmt execute method, otherwise other test cases would use the hacked execute method, leading to timeout error uamqp.async_ops.mgmt_operation_async.MgmtOperationAsync.execute_async = original_execute_method + @pytest.mark.liveTest + @pytest.mark.live_test_only + @CachedResourceGroupPreparer(name_prefix='servicebustest') + @CachedServiceBusNamespacePreparer(name_prefix='servicebustest') @CachedServiceBusQueuePreparer(name_prefix='servicebustest', lock_duration='PT5S') async def test_async_queue_operation_negative(self, servicebus_namespace_connection_string, servicebus_queue, **kwargs): def _hack_amqp_message_complete(cls): @@ -1701,6 +1705,11 @@ async def _hack_sb_receiver_settle_message(self, settle_operation, dead_letter_r message = (await receiver.receive_messages(max_wait_time=6))[0] await receiver.complete_message(message) + @pytest.mark.liveTest + @pytest.mark.live_test_only + @CachedResourceGroupPreparer(name_prefix='servicebustest') + @CachedServiceBusNamespacePreparer(name_prefix='servicebustest') + @ServiceBusQueuePreparer(name_prefix='servicebustest', dead_lettering_on_message_expiration=True) async def test_async_send_message_no_body(self, servicebus_namespace_connection_string, servicebus_queue, **kwargs): async with ServiceBusClient.from_connection_string( servicebus_namespace_connection_string) as sb_client: @@ -1714,6 +1723,10 @@ async def test_async_send_message_no_body(self, servicebus_namespace_connection_ assert message.body is None await receiver.complete_message(message) + @pytest.mark.liveTest + @pytest.mark.live_test_only + @CachedResourceGroupPreparer(name_prefix='servicebustest') + @CachedServiceBusNamespacePreparer(name_prefix='servicebustest') @CachedServiceBusQueuePreparer(name_prefix='servicebustest') async def test_async_queue_by_servicebus_client_enum_case_sensitivity(self, servicebus_namespace_connection_string, servicebus_queue, **kwargs): # Note: This test is currently intended to enforce case-sensitivity. If we eventually upgrade to the Fancy Enums being used with new autorest, diff --git a/sdk/servicebus/azure-servicebus/tests/test_queues.py b/sdk/servicebus/azure-servicebus/tests/test_queues.py index 4a4f05e5f3d7..c81bce0ab5d8 100644 --- a/sdk/servicebus/azure-servicebus/tests/test_queues.py +++ b/sdk/servicebus/azure-servicebus/tests/test_queues.py @@ -2101,6 +2101,10 @@ def _hack_amqp_sender_run(cls): with pytest.raises(OperationTimeoutError): sender.send_messages(Message("body"), timeout=5) + @pytest.mark.liveTest + @pytest.mark.live_test_only + @CachedResourceGroupPreparer(name_prefix='servicebustest') + @CachedServiceBusNamespacePreparer(name_prefix='servicebustest') @CachedServiceBusQueuePreparer(name_prefix='servicebustest', lock_duration='PT5S') def test_queue_operation_negative(self, servicebus_namespace_connection_string, servicebus_queue, **kwargs): def _hack_amqp_message_complete(cls): @@ -2144,6 +2148,11 @@ def _hack_sb_receiver_settle_message(self, message, settle_operation, dead_lette message = receiver.receive_messages(max_wait_time=6)[0] receiver.complete_message(message) + @pytest.mark.liveTest + @pytest.mark.live_test_only + @CachedResourceGroupPreparer(name_prefix='servicebustest') + @CachedServiceBusNamespacePreparer(name_prefix='servicebustest') + @ServiceBusQueuePreparer(name_prefix='servicebustest', dead_lettering_on_message_expiration=True) def test_send_message_no_body(self, servicebus_namespace_connection_string, servicebus_queue, **kwargs): sb_client = ServiceBusClient.from_connection_string( servicebus_namespace_connection_string) @@ -2171,6 +2180,10 @@ def test_send_message_alternate_body_types(self, **kwargs): with pytest.raises(TypeError): message = ServiceBusMessage(body=Exception()) + @pytest.mark.liveTest + @pytest.mark.live_test_only + @CachedResourceGroupPreparer(name_prefix='servicebustest') + @CachedServiceBusNamespacePreparer(name_prefix='servicebustest') @CachedServiceBusQueuePreparer(name_prefix='servicebustest') def test_queue_by_servicebus_client_enum_case_sensitivity(self, servicebus_namespace_connection_string, servicebus_queue, **kwargs): # Note: This test is currently intended to enforce case-sensitivity. If we eventually upgrade to the Fancy Enums being used with new autorest, From 4d20f93dea3126c250a37a727a70235624e86bfd Mon Sep 17 00:00:00 2001 From: Swathi Pillalamarri Date: Fri, 19 Feb 2021 15:52:34 -0600 Subject: [PATCH 17/30] added test recordings --- ...st_mgmt_queue_async_update_dict_error.yaml | 79 ++++ ..._mgmt_queue_async_update_dict_success.yaml | 213 +++++++++ ...est_mgmt_rule_async_update_dict_error.yaml | 195 ++++++++ ...t_mgmt_rule_async_update_dict_success.yaml | 291 ++++++++++++ ..._subscription_async_update_dict_error.yaml | 135 ++++++ ...ubscription_async_update_dict_success.yaml | 331 ++++++++++++++ ...st_mgmt_topic_async_update_dict_error.yaml | 79 ++++ ..._mgmt_topic_async_update_dict_success.yaml | 209 +++++++++ .../mgmt_tests/test_mgmt_queues_async.py | 23 +- .../mgmt_tests/test_mgmt_rules_async.py | 30 +- .../test_mgmt_subscriptions_async.py | 36 +- .../mgmt_tests/test_mgmt_topics_async.py | 19 +- ...ues.test_mgmt_queue_update_dict_error.yaml | 104 +++++ ...s.test_mgmt_queue_update_dict_success.yaml | 274 +++++++++++ ...ules.test_mgmt_rule_update_dict_error.yaml | 258 +++++++++++ ...es.test_mgmt_rule_update_dict_success.yaml | 381 ++++++++++++++++ ...t_mgmt_subscription_update_dict_error.yaml | 179 ++++++++ ...mgmt_subscription_update_dict_success.yaml | 429 ++++++++++++++++++ ...ics.test_mgmt_topic_update_dict_error.yaml | 104 +++++ ...s.test_mgmt_topic_update_dict_success.yaml | 270 +++++++++++ .../tests/mgmt_tests/test_mgmt_queues.py | 18 +- .../tests/mgmt_tests/test_mgmt_rules.py | 31 +- .../mgmt_tests/test_mgmt_subscriptions.py | 41 +- .../tests/mgmt_tests/test_mgmt_topics.py | 20 +- 24 files changed, 3653 insertions(+), 96 deletions(-) create mode 100644 sdk/servicebus/azure-servicebus/tests/async_tests/mgmt_tests/recordings/test_mgmt_queues_async.test_mgmt_queue_async_update_dict_error.yaml create mode 100644 sdk/servicebus/azure-servicebus/tests/async_tests/mgmt_tests/recordings/test_mgmt_queues_async.test_mgmt_queue_async_update_dict_success.yaml create mode 100644 sdk/servicebus/azure-servicebus/tests/async_tests/mgmt_tests/recordings/test_mgmt_rules_async.test_mgmt_rule_async_update_dict_error.yaml create mode 100644 sdk/servicebus/azure-servicebus/tests/async_tests/mgmt_tests/recordings/test_mgmt_rules_async.test_mgmt_rule_async_update_dict_success.yaml create mode 100644 sdk/servicebus/azure-servicebus/tests/async_tests/mgmt_tests/recordings/test_mgmt_subscriptions_async.test_mgmt_subscription_async_update_dict_error.yaml create mode 100644 sdk/servicebus/azure-servicebus/tests/async_tests/mgmt_tests/recordings/test_mgmt_subscriptions_async.test_mgmt_subscription_async_update_dict_success.yaml create mode 100644 sdk/servicebus/azure-servicebus/tests/async_tests/mgmt_tests/recordings/test_mgmt_topics_async.test_mgmt_topic_async_update_dict_error.yaml create mode 100644 sdk/servicebus/azure-servicebus/tests/async_tests/mgmt_tests/recordings/test_mgmt_topics_async.test_mgmt_topic_async_update_dict_success.yaml create mode 100644 sdk/servicebus/azure-servicebus/tests/mgmt_tests/recordings/test_mgmt_queues.test_mgmt_queue_update_dict_error.yaml create mode 100644 sdk/servicebus/azure-servicebus/tests/mgmt_tests/recordings/test_mgmt_queues.test_mgmt_queue_update_dict_success.yaml create mode 100644 sdk/servicebus/azure-servicebus/tests/mgmt_tests/recordings/test_mgmt_rules.test_mgmt_rule_update_dict_error.yaml create mode 100644 sdk/servicebus/azure-servicebus/tests/mgmt_tests/recordings/test_mgmt_rules.test_mgmt_rule_update_dict_success.yaml create mode 100644 sdk/servicebus/azure-servicebus/tests/mgmt_tests/recordings/test_mgmt_subscriptions.test_mgmt_subscription_update_dict_error.yaml create mode 100644 sdk/servicebus/azure-servicebus/tests/mgmt_tests/recordings/test_mgmt_subscriptions.test_mgmt_subscription_update_dict_success.yaml create mode 100644 sdk/servicebus/azure-servicebus/tests/mgmt_tests/recordings/test_mgmt_topics.test_mgmt_topic_update_dict_error.yaml create mode 100644 sdk/servicebus/azure-servicebus/tests/mgmt_tests/recordings/test_mgmt_topics.test_mgmt_topic_update_dict_success.yaml diff --git a/sdk/servicebus/azure-servicebus/tests/async_tests/mgmt_tests/recordings/test_mgmt_queues_async.test_mgmt_queue_async_update_dict_error.yaml b/sdk/servicebus/azure-servicebus/tests/async_tests/mgmt_tests/recordings/test_mgmt_queues_async.test_mgmt_queue_async_update_dict_error.yaml new file mode 100644 index 000000000000..b03c75c3b2ae --- /dev/null +++ b/sdk/servicebus/azure-servicebus/tests/async_tests/mgmt_tests/recordings/test_mgmt_queues_async.test_mgmt_queue_async_update_dict_error.yaml @@ -0,0 +1,79 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/xml + User-Agent: + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://servicebustestsbname.servicebus.windows.net/$Resources/queues?$skip=0&$top=100&api-version=2017-04 + response: + body: + string: Queueshttps://servicebustestlp3pa4rlgd.servicebus.windows.net/$Resources/queues?$skip=0&$top=100&api-version=2017-042021-02-19T21:38:14Z + headers: + content-type: application/atom+xml;type=feed;charset=utf-8 + date: Fri, 19 Feb 2021 21:38:14 GMT + server: Microsoft-HTTPAPI/2.0 + transfer-encoding: chunked + status: + code: 200 + message: OK + url: https://servicebustestlp3pa4rlgd.servicebus.windows.net/$Resources/queues?$skip=0&$top=100&api-version=2017-04 +- request: + body: ' + + ' + headers: + Accept: + - application/xml + Content-Length: + - '248' + Content-Type: + - application/atom+xml + User-Agent: + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.0 (Windows-10-10.0.19041-SP0) + method: PUT + uri: https://servicebustestsbname.servicebus.windows.net/fjruid?api-version=2017-04 + response: + body: + string: https://servicebustestlp3pa4rlgd.servicebus.windows.net/fjruid?api-version=2017-04fjruid2021-02-19T21:38:15Z2021-02-19T21:38:15Zservicebustestlp3pa4rlgdPT1M1024falsefalseP10675199DT2H48M5.4775807SfalsePT10M10true00falseActive2021-02-19T21:38:15.15Z2021-02-19T21:38:15.187ZtrueP10675199DT2H48M5.4775807SfalseAvailablefalse + headers: + content-type: application/atom+xml;type=entry;charset=utf-8 + date: Fri, 19 Feb 2021 21:38:15 GMT + server: Microsoft-HTTPAPI/2.0 + strict-transport-security: max-age=31536000 + transfer-encoding: chunked + status: + code: 201 + message: Created + url: https://servicebustestlp3pa4rlgd.servicebus.windows.net/fjruid?api-version=2017-04 +- request: + body: null + headers: + Accept: + - application/xml + User-Agent: + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.0 (Windows-10-10.0.19041-SP0) + method: DELETE + uri: https://servicebustestsbname.servicebus.windows.net/fjruid?api-version=2017-04 + response: + body: + string: '' + headers: + content-length: '0' + date: Fri, 19 Feb 2021 21:38:16 GMT + etag: '637493674951870000' + server: Microsoft-HTTPAPI/2.0 + strict-transport-security: max-age=31536000 + status: + code: 200 + message: OK + url: https://servicebustestlp3pa4rlgd.servicebus.windows.net/fjruid?api-version=2017-04 +version: 1 diff --git a/sdk/servicebus/azure-servicebus/tests/async_tests/mgmt_tests/recordings/test_mgmt_queues_async.test_mgmt_queue_async_update_dict_success.yaml b/sdk/servicebus/azure-servicebus/tests/async_tests/mgmt_tests/recordings/test_mgmt_queues_async.test_mgmt_queue_async_update_dict_success.yaml new file mode 100644 index 000000000000..2192b72f9a8d --- /dev/null +++ b/sdk/servicebus/azure-servicebus/tests/async_tests/mgmt_tests/recordings/test_mgmt_queues_async.test_mgmt_queue_async_update_dict_success.yaml @@ -0,0 +1,213 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/xml + User-Agent: + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://servicebustestsbname.servicebus.windows.net/$Resources/queues?$skip=0&$top=100&api-version=2017-04 + response: + body: + string: Queueshttps://servicebustestlp3pa4rlgd.servicebus.windows.net/$Resources/queues?$skip=0&$top=100&api-version=2017-042021-02-19T21:38:16Z + headers: + content-type: application/atom+xml;type=feed;charset=utf-8 + date: Fri, 19 Feb 2021 21:38:15 GMT + server: Microsoft-HTTPAPI/2.0 + transfer-encoding: chunked + status: + code: 200 + message: OK + url: https://servicebustestlp3pa4rlgd.servicebus.windows.net/$Resources/queues?$skip=0&$top=100&api-version=2017-04 +- request: + body: ' + + ' + headers: + Accept: + - application/xml + Content-Length: + - '248' + Content-Type: + - application/atom+xml + User-Agent: + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.0 (Windows-10-10.0.19041-SP0) + method: PUT + uri: https://servicebustestsbname.servicebus.windows.net/fjruid?api-version=2017-04 + response: + body: + string: https://servicebustestlp3pa4rlgd.servicebus.windows.net/fjruid?api-version=2017-04fjruid2021-02-19T21:38:17Z2021-02-19T21:38:17Zservicebustestlp3pa4rlgdPT1M1024falsefalseP10675199DT2H48M5.4775807SfalsePT10M10true00falseActive2021-02-19T21:38:17.253Z2021-02-19T21:38:17.33ZtrueP10675199DT2H48M5.4775807SfalseAvailablefalse + headers: + content-type: application/atom+xml;type=entry;charset=utf-8 + date: Fri, 19 Feb 2021 21:38:16 GMT + server: Microsoft-HTTPAPI/2.0 + strict-transport-security: max-age=31536000 + transfer-encoding: chunked + status: + code: 201 + message: Created + url: https://servicebustestlp3pa4rlgd.servicebus.windows.net/fjruid?api-version=2017-04 +- request: + body: ' + + PT2M1024falsefalseP10675199DT2H48M5.477539SfalsePT10M10trueActiveP10675199DT2H48M5.477539SfalseAvailablefalse' + headers: + Accept: + - application/xml + Content-Length: + - '1022' + Content-Type: + - application/atom+xml + If-Match: + - '*' + User-Agent: + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.0 (Windows-10-10.0.19041-SP0) + method: PUT + uri: https://servicebustestsbname.servicebus.windows.net/fjruid?api-version=2017-04 + response: + body: + string: https://servicebustestlp3pa4rlgd.servicebus.windows.net/fjruid?api-version=2017-04fjruid2021-02-19T21:38:17Zservicebustestlp3pa4rlgdPT2M1024falsefalseP10675199DT2H48M5.477539SfalsePT10M10trueActiveP10675199DT2H48M5.477539SfalseAvailablefalse + headers: + content-type: application/atom+xml;type=entry;charset=utf-8 + date: Fri, 19 Feb 2021 21:38:17 GMT + etag: '637493674973300000' + server: Microsoft-HTTPAPI/2.0 + strict-transport-security: max-age=31536000 + transfer-encoding: chunked + status: + code: 200 + message: OK + url: https://servicebustestlp3pa4rlgd.servicebus.windows.net/fjruid?api-version=2017-04 +- request: + body: null + headers: + Accept: + - application/xml + User-Agent: + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://servicebustestsbname.servicebus.windows.net/fjruid?enrich=false&api-version=2017-04 + response: + body: + string: https://servicebustestlp3pa4rlgd.servicebus.windows.net/fjruid?enrich=false&api-version=2017-04fjruid2021-02-19T21:38:17Z2021-02-19T21:38:17Zservicebustestlp3pa4rlgdPT2M1024falsefalseP10675199DT2H48M5.477539SfalsePT10M10true00falseActive2021-02-19T21:38:17.253Z2021-02-19T21:38:17.913Z0001-01-01T00:00:00Ztrue00000P10675199DT2H48M5.477539SfalseAvailablefalse + headers: + content-type: application/atom+xml;type=entry;charset=utf-8 + date: Fri, 19 Feb 2021 21:38:17 GMT + etag: '637493674979130000' + server: Microsoft-HTTPAPI/2.0 + strict-transport-security: max-age=31536000 + transfer-encoding: chunked + status: + code: 200 + message: OK + url: https://servicebustestlp3pa4rlgd.servicebus.windows.net/fjruid?enrich=false&api-version=2017-04 +- request: + body: ' + + PT13S3072falsefalsePT11MtruePT12M14trueActivePT10MfalseAvailabletruesb://servicebustestlp3pa4rlgd.servicebus.windows.net/fjruidsb://servicebustestlp3pa4rlgd.servicebus.windows.net/fjruid' + headers: + Accept: + - application/xml + Content-Length: + - '1185' + Content-Type: + - application/atom+xml + If-Match: + - '*' + ServiceBusDlqSupplementaryAuthorization: + - SharedAccessSignature sr=sb%3A%2F%2Fservicebustestlp3pa4rlgd.servicebus.windows.net%2Ffjruid&sig=BmFvnE9myuwhF5KaMx5bj0IXvSiSJCdGqQGF9%2ffL2g8%3d&se=1613774298&skn=RootManageSharedAccessKey + ServiceBusSupplementaryAuthorization: + - SharedAccessSignature sr=sb%3A%2F%2Fservicebustestlp3pa4rlgd.servicebus.windows.net%2Ffjruid&sig=BmFvnE9myuwhF5KaMx5bj0IXvSiSJCdGqQGF9%2ffL2g8%3d&se=1613774298&skn=RootManageSharedAccessKey + User-Agent: + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.0 (Windows-10-10.0.19041-SP0) + method: PUT + uri: https://servicebustestsbname.servicebus.windows.net/fjruid?api-version=2017-04 + response: + body: + string: https://servicebustestlp3pa4rlgd.servicebus.windows.net/fjruid?api-version=2017-04fjruid2021-02-19T21:38:18Zservicebustestlp3pa4rlgdPT13S3072falsefalsePT11MtruePT12M14trueActivePT10MfalseAvailabletruesb://servicebustestlp3pa4rlgd.servicebus.windows.net/fjruidsb://servicebustestlp3pa4rlgd.servicebus.windows.net/fjruid + headers: + content-type: application/atom+xml;type=entry;charset=utf-8 + date: Fri, 19 Feb 2021 21:38:17 GMT + etag: '637493674979130000' + server: Microsoft-HTTPAPI/2.0 + strict-transport-security: max-age=31536000 + transfer-encoding: chunked + status: + code: 200 + message: OK + url: https://servicebustestlp3pa4rlgd.servicebus.windows.net/fjruid?api-version=2017-04 +- request: + body: null + headers: + Accept: + - application/xml + User-Agent: + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://servicebustestsbname.servicebus.windows.net/fjruid?enrich=false&api-version=2017-04 + response: + body: + string: https://servicebustestlp3pa4rlgd.servicebus.windows.net/fjruid?enrich=false&api-version=2017-04fjruid2021-02-19T21:38:17Z2021-02-19T21:38:18Zservicebustestlp3pa4rlgdPT13S3072falsefalsePT11MtruePT12M14true00falseActive2021-02-19T21:38:17.253Z2021-02-19T21:38:18.23Z0001-01-01T00:00:00Ztrue00000PT10MfalseAvailabletruesb://servicebustestlp3pa4rlgd.servicebus.windows.net/fjruidsb://servicebustestlp3pa4rlgd.servicebus.windows.net/fjruid + headers: + content-type: application/atom+xml;type=entry;charset=utf-8 + date: Fri, 19 Feb 2021 21:38:17 GMT + etag: '637493674982300000' + server: Microsoft-HTTPAPI/2.0 + strict-transport-security: max-age=31536000 + transfer-encoding: chunked + status: + code: 200 + message: OK + url: https://servicebustestlp3pa4rlgd.servicebus.windows.net/fjruid?enrich=false&api-version=2017-04 +- request: + body: null + headers: + Accept: + - application/xml + User-Agent: + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.0 (Windows-10-10.0.19041-SP0) + method: DELETE + uri: https://servicebustestsbname.servicebus.windows.net/fjruid?api-version=2017-04 + response: + body: + string: '' + headers: + content-length: '0' + date: Fri, 19 Feb 2021 21:38:18 GMT + etag: '637493674982300000' + server: Microsoft-HTTPAPI/2.0 + strict-transport-security: max-age=31536000 + status: + code: 200 + message: OK + url: https://servicebustestlp3pa4rlgd.servicebus.windows.net/fjruid?api-version=2017-04 +version: 1 diff --git a/sdk/servicebus/azure-servicebus/tests/async_tests/mgmt_tests/recordings/test_mgmt_rules_async.test_mgmt_rule_async_update_dict_error.yaml b/sdk/servicebus/azure-servicebus/tests/async_tests/mgmt_tests/recordings/test_mgmt_rules_async.test_mgmt_rule_async_update_dict_error.yaml new file mode 100644 index 000000000000..58360506926a --- /dev/null +++ b/sdk/servicebus/azure-servicebus/tests/async_tests/mgmt_tests/recordings/test_mgmt_rules_async.test_mgmt_rule_async_update_dict_error.yaml @@ -0,0 +1,195 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/xml + User-Agent: + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://servicebustestsbname.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-04 + response: + body: + string: Topicshttps://servicebustest5aomxziacv.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-042021-02-19T21:39:59Z + headers: + content-type: application/atom+xml;type=feed;charset=utf-8 + date: Fri, 19 Feb 2021 21:39:59 GMT + server: Microsoft-HTTPAPI/2.0 + transfer-encoding: chunked + status: + code: 200 + message: OK + url: https://servicebustest5aomxziacv.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-04 +- request: + body: ' + + ' + headers: + Accept: + - application/xml + Content-Length: + - '248' + Content-Type: + - application/atom+xml + User-Agent: + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.0 (Windows-10-10.0.19041-SP0) + method: PUT + uri: https://servicebustestsbname.servicebus.windows.net/fjrui?api-version=2017-04 + response: + body: + string: https://servicebustest5aomxziacv.servicebus.windows.net/fjrui?api-version=2017-04fjrui2021-02-19T21:40:00Z2021-02-19T21:40:00Zservicebustest5aomxziacvP10675199DT2H48M5.4775807S1024falsePT10Mtrue0falsefalseActive2021-02-19T21:40:00.387Z2021-02-19T21:40:00.43ZtrueP10675199DT2H48M5.4775807SfalseAvailablefalsefalse + headers: + content-type: application/atom+xml;type=entry;charset=utf-8 + date: Fri, 19 Feb 2021 21:40:00 GMT + server: Microsoft-HTTPAPI/2.0 + strict-transport-security: max-age=31536000 + transfer-encoding: chunked + status: + code: 201 + message: Created + url: https://servicebustest5aomxziacv.servicebus.windows.net/fjrui?api-version=2017-04 +- request: + body: ' + + ' + headers: + Accept: + - application/xml + Content-Length: + - '255' + Content-Type: + - application/atom+xml + User-Agent: + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.0 (Windows-10-10.0.19041-SP0) + method: PUT + uri: https://servicebustestsbname.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04 + response: + body: + string: https://servicebustest5aomxziacv.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04eqkovc2021-02-19T21:40:00Z2021-02-19T21:40:00ZPT1MfalseP10675199DT2H48M5.4775807Sfalsetrue010trueActive2021-02-19T21:40:00.9347659Z2021-02-19T21:40:00.9347659Z0001-01-01T00:00:00P10675199DT2H48M5.4775807SAvailable + headers: + content-type: application/atom+xml;type=entry;charset=utf-8 + date: Fri, 19 Feb 2021 21:40:00 GMT + etag: '637493676004300000' + server: Microsoft-HTTPAPI/2.0 + strict-transport-security: max-age=31536000 + transfer-encoding: chunked + status: + code: 201 + message: Created + url: https://servicebustest5aomxziacv.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04 +- request: + body: ' + + Priority = ''low''20truerule' + headers: + Accept: + - application/xml + Content-Length: + - '550' + Content-Type: + - application/atom+xml + User-Agent: + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.0 (Windows-10-10.0.19041-SP0) + method: PUT + uri: https://servicebustestsbname.servicebus.windows.net/fjrui/subscriptions/eqkovc/rules/rule?api-version=2017-04 + response: + body: + string: https://servicebustest5aomxziacv.servicebus.windows.net/fjrui/subscriptions/eqkovc/rules/rule?api-version=2017-04rule2021-02-19T21:40:01Z2021-02-19T21:40:01ZPriority + = 'low'20true2021-02-19T21:40:01.2628167Zrule + headers: + content-type: application/atom+xml;type=entry;charset=utf-8 + date: Fri, 19 Feb 2021 21:40:01 GMT + etag: '637493676004300000' + server: Microsoft-HTTPAPI/2.0 + strict-transport-security: max-age=31536000 + transfer-encoding: chunked + status: + code: 201 + message: Created + url: https://servicebustest5aomxziacv.servicebus.windows.net/fjrui/subscriptions/eqkovc/rules/rule?api-version=2017-04 +- request: + body: null + headers: + Accept: + - application/xml + User-Agent: + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.0 (Windows-10-10.0.19041-SP0) + method: DELETE + uri: https://servicebustestsbname.servicebus.windows.net/fjrui/subscriptions/eqkovc/rules/rule?api-version=2017-04 + response: + body: + string: '' + headers: + content-length: '0' + date: Fri, 19 Feb 2021 21:40:01 GMT + etag: '637493676004300000' + server: Microsoft-HTTPAPI/2.0 + strict-transport-security: max-age=31536000 + status: + code: 200 + message: OK + url: https://servicebustest5aomxziacv.servicebus.windows.net/fjrui/subscriptions/eqkovc/rules/rule?api-version=2017-04 +- request: + body: null + headers: + Accept: + - application/xml + User-Agent: + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.0 (Windows-10-10.0.19041-SP0) + method: DELETE + uri: https://servicebustestsbname.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04 + response: + body: + string: '' + headers: + content-length: '0' + date: Fri, 19 Feb 2021 21:40:01 GMT + etag: '637493676004300000' + server: Microsoft-HTTPAPI/2.0 + strict-transport-security: max-age=31536000 + status: + code: 200 + message: OK + url: https://servicebustest5aomxziacv.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04 +- request: + body: null + headers: + Accept: + - application/xml + User-Agent: + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.0 (Windows-10-10.0.19041-SP0) + method: DELETE + uri: https://servicebustestsbname.servicebus.windows.net/fjrui?api-version=2017-04 + response: + body: + string: '' + headers: + content-length: '0' + date: Fri, 19 Feb 2021 21:40:01 GMT + etag: '637493676004300000' + server: Microsoft-HTTPAPI/2.0 + strict-transport-security: max-age=31536000 + status: + code: 200 + message: OK + url: https://servicebustest5aomxziacv.servicebus.windows.net/fjrui?api-version=2017-04 +version: 1 diff --git a/sdk/servicebus/azure-servicebus/tests/async_tests/mgmt_tests/recordings/test_mgmt_rules_async.test_mgmt_rule_async_update_dict_success.yaml b/sdk/servicebus/azure-servicebus/tests/async_tests/mgmt_tests/recordings/test_mgmt_rules_async.test_mgmt_rule_async_update_dict_success.yaml new file mode 100644 index 000000000000..d15ecc4f1a79 --- /dev/null +++ b/sdk/servicebus/azure-servicebus/tests/async_tests/mgmt_tests/recordings/test_mgmt_rules_async.test_mgmt_rule_async_update_dict_success.yaml @@ -0,0 +1,291 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/xml + User-Agent: + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://servicebustestsbname.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-04 + response: + body: + string: Topicshttps://servicebustest5aomxziacv.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-042021-02-19T21:40:02Z + headers: + content-type: application/atom+xml;type=feed;charset=utf-8 + date: Fri, 19 Feb 2021 21:40:02 GMT + server: Microsoft-HTTPAPI/2.0 + transfer-encoding: chunked + status: + code: 200 + message: OK + url: https://servicebustest5aomxziacv.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-04 +- request: + body: ' + + ' + headers: + Accept: + - application/xml + Content-Length: + - '248' + Content-Type: + - application/atom+xml + User-Agent: + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.0 (Windows-10-10.0.19041-SP0) + method: PUT + uri: https://servicebustestsbname.servicebus.windows.net/fjruid?api-version=2017-04 + response: + body: + string: https://servicebustest5aomxziacv.servicebus.windows.net/fjruid?api-version=2017-04fjruid2021-02-19T21:40:03Z2021-02-19T21:40:03Zservicebustest5aomxziacvP10675199DT2H48M5.4775807S1024falsePT10Mtrue0falsefalseActive2021-02-19T21:40:03.303Z2021-02-19T21:40:03.34ZtrueP10675199DT2H48M5.4775807SfalseAvailablefalsefalse + headers: + content-type: application/atom+xml;type=entry;charset=utf-8 + date: Fri, 19 Feb 2021 21:40:03 GMT + server: Microsoft-HTTPAPI/2.0 + strict-transport-security: max-age=31536000 + transfer-encoding: chunked + status: + code: 201 + message: Created + url: https://servicebustest5aomxziacv.servicebus.windows.net/fjruid?api-version=2017-04 +- request: + body: ' + + ' + headers: + Accept: + - application/xml + Content-Length: + - '255' + Content-Type: + - application/atom+xml + User-Agent: + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.0 (Windows-10-10.0.19041-SP0) + method: PUT + uri: https://servicebustestsbname.servicebus.windows.net/fjruid/subscriptions/eqkovcd?api-version=2017-04 + response: + body: + string: https://servicebustest5aomxziacv.servicebus.windows.net/fjruid/subscriptions/eqkovcd?api-version=2017-04eqkovcd2021-02-19T21:40:03Z2021-02-19T21:40:03ZPT1MfalseP10675199DT2H48M5.4775807Sfalsetrue010trueActive2021-02-19T21:40:03.8482948Z2021-02-19T21:40:03.8482948Z0001-01-01T00:00:00P10675199DT2H48M5.4775807SAvailable + headers: + content-type: application/atom+xml;type=entry;charset=utf-8 + date: Fri, 19 Feb 2021 21:40:03 GMT + etag: '637493676033400000' + server: Microsoft-HTTPAPI/2.0 + strict-transport-security: max-age=31536000 + transfer-encoding: chunked + status: + code: 201 + message: Created + url: https://servicebustest5aomxziacv.servicebus.windows.net/fjruid/subscriptions/eqkovcd?api-version=2017-04 +- request: + body: ' + + Priority = ''low''20truerule' + headers: + Accept: + - application/xml + Content-Length: + - '550' + Content-Type: + - application/atom+xml + User-Agent: + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.0 (Windows-10-10.0.19041-SP0) + method: PUT + uri: https://servicebustestsbname.servicebus.windows.net/fjruid/subscriptions/eqkovcd/rules/rule?api-version=2017-04 + response: + body: + string: https://servicebustest5aomxziacv.servicebus.windows.net/fjruid/subscriptions/eqkovcd/rules/rule?api-version=2017-04rule2021-02-19T21:40:04Z2021-02-19T21:40:04ZPriority + = 'low'20true2021-02-19T21:40:04.0826689Zrule + headers: + content-type: application/atom+xml;type=entry;charset=utf-8 + date: Fri, 19 Feb 2021 21:40:03 GMT + etag: '637493676033400000' + server: Microsoft-HTTPAPI/2.0 + strict-transport-security: max-age=31536000 + transfer-encoding: chunked + status: + code: 201 + message: Created + url: https://servicebustest5aomxziacv.servicebus.windows.net/fjruid/subscriptions/eqkovcd/rules/rule?api-version=2017-04 +- request: + body: null + headers: + Accept: + - application/xml + User-Agent: + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://servicebustestsbname.servicebus.windows.net/fjruid/subscriptions/eqkovcd/rules/rule?enrich=false&api-version=2017-04 + response: + body: + string: sb://servicebustest5aomxziacv.servicebus.windows.net/fjruid/subscriptions/eqkovcd/rules/rule?enrich=false&api-version=2017-04rule2021-02-19T21:40:04Z2021-02-19T21:40:04ZPriority + = 'low'20true2021-02-19T21:40:04.06864Zrule + headers: + content-type: application/atom+xml;type=entry;charset=utf-8 + date: Fri, 19 Feb 2021 21:40:04 GMT + etag: '637493676033400000' + server: Microsoft-HTTPAPI/2.0 + strict-transport-security: max-age=31536000 + transfer-encoding: chunked + status: + code: 200 + message: OK + url: https://servicebustest5aomxziacv.servicebus.windows.net/fjruid/subscriptions/eqkovcd/rules/rule?enrich=false&api-version=2017-04 +- request: + body: ' + + testcidSET Priority = ''low''20true2021-02-19T21:40:04.06864Zrule' + headers: + Accept: + - application/xml + Content-Length: + - '654' + Content-Type: + - application/atom+xml + If-Match: + - '*' + User-Agent: + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.0 (Windows-10-10.0.19041-SP0) + method: PUT + uri: https://servicebustestsbname.servicebus.windows.net/fjruid/subscriptions/eqkovcd/rules/rule?api-version=2017-04 + response: + body: + string: https://servicebustest5aomxziacv.servicebus.windows.net/fjruid/subscriptions/eqkovcd/rules/rule?api-version=2017-04rule2021-02-19T21:40:04Z2021-02-19T21:40:04ZtestcidSET Priority = 'low'20true2021-02-19T21:40:04.301418Zrule + headers: + content-type: application/atom+xml;type=entry;charset=utf-8 + date: Fri, 19 Feb 2021 21:40:04 GMT + etag: '637493676033400000' + server: Microsoft-HTTPAPI/2.0 + strict-transport-security: max-age=31536000 + transfer-encoding: chunked + status: + code: 200 + message: OK + url: https://servicebustest5aomxziacv.servicebus.windows.net/fjruid/subscriptions/eqkovcd/rules/rule?api-version=2017-04 +- request: + body: null + headers: + Accept: + - application/xml + User-Agent: + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://servicebustestsbname.servicebus.windows.net/fjruid/subscriptions/eqkovcd/rules/rule?enrich=false&api-version=2017-04 + response: + body: + string: sb://servicebustest5aomxziacv.servicebus.windows.net/fjruid/subscriptions/eqkovcd/rules/rule?enrich=false&api-version=2017-04rule2021-02-19T21:40:04Z2021-02-19T21:40:04ZtestcidSET Priority = 'low'20true2021-02-19T21:40:04.06864Zrule + headers: + content-type: application/atom+xml;type=entry;charset=utf-8 + date: Fri, 19 Feb 2021 21:40:04 GMT + etag: '637493676033400000' + server: Microsoft-HTTPAPI/2.0 + strict-transport-security: max-age=31536000 + transfer-encoding: chunked + status: + code: 200 + message: OK + url: https://servicebustest5aomxziacv.servicebus.windows.net/fjruid/subscriptions/eqkovcd/rules/rule?enrich=false&api-version=2017-04 +- request: + body: null + headers: + Accept: + - application/xml + User-Agent: + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.0 (Windows-10-10.0.19041-SP0) + method: DELETE + uri: https://servicebustestsbname.servicebus.windows.net/fjruid/subscriptions/eqkovcd/rules/rule?api-version=2017-04 + response: + body: + string: '' + headers: + content-length: '0' + date: Fri, 19 Feb 2021 21:40:04 GMT + etag: '637493676033400000' + server: Microsoft-HTTPAPI/2.0 + strict-transport-security: max-age=31536000 + status: + code: 200 + message: OK + url: https://servicebustest5aomxziacv.servicebus.windows.net/fjruid/subscriptions/eqkovcd/rules/rule?api-version=2017-04 +- request: + body: null + headers: + Accept: + - application/xml + User-Agent: + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.0 (Windows-10-10.0.19041-SP0) + method: DELETE + uri: https://servicebustestsbname.servicebus.windows.net/fjruid/subscriptions/eqkovcd?api-version=2017-04 + response: + body: + string: '' + headers: + content-length: '0' + date: Fri, 19 Feb 2021 21:40:04 GMT + etag: '637493676033400000' + server: Microsoft-HTTPAPI/2.0 + strict-transport-security: max-age=31536000 + status: + code: 200 + message: OK + url: https://servicebustest5aomxziacv.servicebus.windows.net/fjruid/subscriptions/eqkovcd?api-version=2017-04 +- request: + body: null + headers: + Accept: + - application/xml + User-Agent: + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.0 (Windows-10-10.0.19041-SP0) + method: DELETE + uri: https://servicebustestsbname.servicebus.windows.net/fjruid?api-version=2017-04 + response: + body: + string: '' + headers: + content-length: '0' + date: Fri, 19 Feb 2021 21:40:05 GMT + etag: '637493676033400000' + server: Microsoft-HTTPAPI/2.0 + strict-transport-security: max-age=31536000 + status: + code: 200 + message: OK + url: https://servicebustest5aomxziacv.servicebus.windows.net/fjruid?api-version=2017-04 +version: 1 diff --git a/sdk/servicebus/azure-servicebus/tests/async_tests/mgmt_tests/recordings/test_mgmt_subscriptions_async.test_mgmt_subscription_async_update_dict_error.yaml b/sdk/servicebus/azure-servicebus/tests/async_tests/mgmt_tests/recordings/test_mgmt_subscriptions_async.test_mgmt_subscription_async_update_dict_error.yaml new file mode 100644 index 000000000000..5f8a57894ca3 --- /dev/null +++ b/sdk/servicebus/azure-servicebus/tests/async_tests/mgmt_tests/recordings/test_mgmt_subscriptions_async.test_mgmt_subscription_async_update_dict_error.yaml @@ -0,0 +1,135 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/xml + User-Agent: + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://servicebustestsbname.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-04 + response: + body: + string: Topicshttps://servicebustest72zoif6ask.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-042021-02-19T21:49:01Z + headers: + content-type: application/atom+xml;type=feed;charset=utf-8 + date: Fri, 19 Feb 2021 21:49:00 GMT + server: Microsoft-HTTPAPI/2.0 + transfer-encoding: chunked + status: + code: 200 + message: OK + url: https://servicebustest72zoif6ask.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-04 +- request: + body: ' + + ' + headers: + Accept: + - application/xml + Content-Length: + - '248' + Content-Type: + - application/atom+xml + User-Agent: + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.0 (Windows-10-10.0.19041-SP0) + method: PUT + uri: https://servicebustestsbname.servicebus.windows.net/fjrui?api-version=2017-04 + response: + body: + string: https://servicebustest72zoif6ask.servicebus.windows.net/fjrui?api-version=2017-04fjrui2021-02-19T21:49:01Z2021-02-19T21:49:01Zservicebustest72zoif6askP10675199DT2H48M5.4775807S1024falsePT10Mtrue0falsefalseActive2021-02-19T21:49:01.453Z2021-02-19T21:49:01.533ZtrueP10675199DT2H48M5.4775807SfalseAvailablefalsefalse + headers: + content-type: application/atom+xml;type=entry;charset=utf-8 + date: Fri, 19 Feb 2021 21:49:01 GMT + server: Microsoft-HTTPAPI/2.0 + strict-transport-security: max-age=31536000 + transfer-encoding: chunked + status: + code: 201 + message: Created + url: https://servicebustest72zoif6ask.servicebus.windows.net/fjrui?api-version=2017-04 +- request: + body: ' + + ' + headers: + Accept: + - application/xml + Content-Length: + - '255' + Content-Type: + - application/atom+xml + User-Agent: + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.0 (Windows-10-10.0.19041-SP0) + method: PUT + uri: https://servicebustestsbname.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04 + response: + body: + string: https://servicebustest72zoif6ask.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04eqkovc2021-02-19T21:49:02Z2021-02-19T21:49:02ZPT1MfalseP10675199DT2H48M5.4775807Sfalsetrue010trueActive2021-02-19T21:49:02.0927699Z2021-02-19T21:49:02.0927699Z0001-01-01T00:00:00P10675199DT2H48M5.4775807SAvailable + headers: + content-type: application/atom+xml;type=entry;charset=utf-8 + date: Fri, 19 Feb 2021 21:49:01 GMT + etag: '637493681415330000' + server: Microsoft-HTTPAPI/2.0 + strict-transport-security: max-age=31536000 + transfer-encoding: chunked + status: + code: 201 + message: Created + url: https://servicebustest72zoif6ask.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04 +- request: + body: null + headers: + Accept: + - application/xml + User-Agent: + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.0 (Windows-10-10.0.19041-SP0) + method: DELETE + uri: https://servicebustestsbname.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04 + response: + body: + string: '' + headers: + content-length: '0' + date: Fri, 19 Feb 2021 21:49:01 GMT + etag: '637493681415330000' + server: Microsoft-HTTPAPI/2.0 + strict-transport-security: max-age=31536000 + status: + code: 200 + message: OK + url: https://servicebustest72zoif6ask.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04 +- request: + body: null + headers: + Accept: + - application/xml + User-Agent: + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.0 (Windows-10-10.0.19041-SP0) + method: DELETE + uri: https://servicebustestsbname.servicebus.windows.net/fjrui?api-version=2017-04 + response: + body: + string: '' + headers: + content-length: '0' + date: Fri, 19 Feb 2021 21:49:01 GMT + etag: '637493681415330000' + server: Microsoft-HTTPAPI/2.0 + strict-transport-security: max-age=31536000 + status: + code: 200 + message: OK + url: https://servicebustest72zoif6ask.servicebus.windows.net/fjrui?api-version=2017-04 +version: 1 diff --git a/sdk/servicebus/azure-servicebus/tests/async_tests/mgmt_tests/recordings/test_mgmt_subscriptions_async.test_mgmt_subscription_async_update_dict_success.yaml b/sdk/servicebus/azure-servicebus/tests/async_tests/mgmt_tests/recordings/test_mgmt_subscriptions_async.test_mgmt_subscription_async_update_dict_success.yaml new file mode 100644 index 000000000000..790c4174e12b --- /dev/null +++ b/sdk/servicebus/azure-servicebus/tests/async_tests/mgmt_tests/recordings/test_mgmt_subscriptions_async.test_mgmt_subscription_async_update_dict_success.yaml @@ -0,0 +1,331 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/xml + User-Agent: + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://servicebustestsbname.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-04 + response: + body: + string: Topicshttps://servicebustest72zoif6ask.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-042021-02-19T21:49:03Z + headers: + content-type: application/atom+xml;type=feed;charset=utf-8 + date: Fri, 19 Feb 2021 21:49:02 GMT + server: Microsoft-HTTPAPI/2.0 + transfer-encoding: chunked + status: + code: 200 + message: OK + url: https://servicebustest72zoif6ask.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-04 +- request: + body: ' + + ' + headers: + Accept: + - application/xml + Content-Length: + - '248' + Content-Type: + - application/atom+xml + User-Agent: + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.0 (Windows-10-10.0.19041-SP0) + method: PUT + uri: https://servicebustestsbname.servicebus.windows.net/fjrui?api-version=2017-04 + response: + body: + string: https://servicebustest72zoif6ask.servicebus.windows.net/fjrui?api-version=2017-04fjrui2021-02-19T21:49:03Z2021-02-19T21:49:03Zservicebustest72zoif6askP10675199DT2H48M5.4775807S1024falsePT10Mtrue0falsefalseActive2021-02-19T21:49:03.787Z2021-02-19T21:49:03.82ZtrueP10675199DT2H48M5.4775807SfalseAvailablefalsefalse + headers: + content-type: application/atom+xml;type=entry;charset=utf-8 + date: Fri, 19 Feb 2021 21:49:03 GMT + server: Microsoft-HTTPAPI/2.0 + strict-transport-security: max-age=31536000 + transfer-encoding: chunked + status: + code: 201 + message: Created + url: https://servicebustest72zoif6ask.servicebus.windows.net/fjrui?api-version=2017-04 +- request: + body: ' + + ' + headers: + Accept: + - application/xml + Content-Length: + - '255' + Content-Type: + - application/atom+xml + User-Agent: + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.0 (Windows-10-10.0.19041-SP0) + method: PUT + uri: https://servicebustestsbname.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04 + response: + body: + string: https://servicebustest72zoif6ask.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04eqkovc2021-02-19T21:49:04Z2021-02-19T21:49:04ZPT1MfalseP10675199DT2H48M5.4775807Sfalsetrue010trueActive2021-02-19T21:49:04.3072344Z2021-02-19T21:49:04.3072344Z0001-01-01T00:00:00P10675199DT2H48M5.4775807SAvailable + headers: + content-type: application/atom+xml;type=entry;charset=utf-8 + date: Fri, 19 Feb 2021 21:49:03 GMT + etag: '637493681438200000' + server: Microsoft-HTTPAPI/2.0 + strict-transport-security: max-age=31536000 + transfer-encoding: chunked + status: + code: 201 + message: Created + url: https://servicebustest72zoif6ask.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04 +- request: + body: ' + + PT2MfalseP10675199DT2H48M5.477539Sfalsetrue10trueActiveP10675199DT2H48M5.477539SAvailable' + headers: + Accept: + - application/xml + Content-Length: + - '836' + Content-Type: + - application/atom+xml + If-Match: + - '*' + User-Agent: + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.0 (Windows-10-10.0.19041-SP0) + method: PUT + uri: https://servicebustestsbname.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04 + response: + body: + string: https://servicebustest72zoif6ask.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04eqkovc2021-02-19T21:49:04Z2021-02-19T21:49:04ZPT2MfalseP10675199DT2H48M5.477539Sfalsetrue010trueActive2021-02-19T21:49:04.5570999Z2021-02-19T21:49:04.5570999Z0001-01-01T00:00:00P10675199DT2H48M5.477539SAvailable + headers: + content-type: application/atom+xml;type=entry;charset=utf-8 + date: Fri, 19 Feb 2021 21:49:03 GMT + etag: '637493681438200000' + server: Microsoft-HTTPAPI/2.0 + strict-transport-security: max-age=31536000 + transfer-encoding: chunked + status: + code: 200 + message: OK + url: https://servicebustest72zoif6ask.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04 +- request: + body: null + headers: + Accept: + - application/xml + User-Agent: + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://servicebustestsbname.servicebus.windows.net/fjrui/subscriptions/eqkovc?enrich=false&api-version=2017-04 + response: + body: + string: sb://servicebustest72zoif6ask.servicebus.windows.net/fjrui/subscriptions/eqkovc?enrich=false&api-version=2017-04eqkovc2021-02-19T21:49:04Z2021-02-19T21:49:04ZPT2MfalseP10675199DT2H48M5.477539Sfalsetrue010trueActive2021-02-19T21:49:04.3091297Z2021-02-19T21:49:04.5591349Z2021-02-19T21:49:04.31Z00000P10675199DT2H48M5.477539SAvailable + headers: + content-type: application/atom+xml;type=entry;charset=utf-8 + date: Fri, 19 Feb 2021 21:49:03 GMT + etag: '637493681438200000' + server: Microsoft-HTTPAPI/2.0 + strict-transport-security: max-age=31536000 + transfer-encoding: chunked + status: + code: 200 + message: OK + url: https://servicebustest72zoif6ask.servicebus.windows.net/fjrui/subscriptions/eqkovc?enrich=false&api-version=2017-04 +- request: + body: ' + + PT12SfalsePT11Mtruetrue14trueActivePT10MAvailable' + headers: + Accept: + - application/xml + Content-Length: + - '796' + Content-Type: + - application/atom+xml + If-Match: + - '*' + User-Agent: + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.0 (Windows-10-10.0.19041-SP0) + method: PUT + uri: https://servicebustestsbname.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04 + response: + body: + string: https://servicebustest72zoif6ask.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04eqkovc2021-02-19T21:49:04Z2021-02-19T21:49:04ZPT12SfalsePT11Mtruetrue014trueActive2021-02-19T21:49:04.7446127Z2021-02-19T21:49:04.7446127Z0001-01-01T00:00:00PT10MAvailable + headers: + content-type: application/atom+xml;type=entry;charset=utf-8 + date: Fri, 19 Feb 2021 21:49:04 GMT + etag: '637493681438200000' + server: Microsoft-HTTPAPI/2.0 + strict-transport-security: max-age=31536000 + transfer-encoding: chunked + status: + code: 200 + message: OK + url: https://servicebustest72zoif6ask.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04 +- request: + body: null + headers: + Accept: + - application/xml + User-Agent: + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://servicebustestsbname.servicebus.windows.net/fjrui/subscriptions/eqkovc?enrich=false&api-version=2017-04 + response: + body: + string: sb://servicebustest72zoif6ask.servicebus.windows.net/fjrui/subscriptions/eqkovc?enrich=false&api-version=2017-04eqkovc2021-02-19T21:49:04Z2021-02-19T21:49:04ZPT12SfalsePT11Mtruetrue014trueActive2021-02-19T21:49:04.3091297Z2021-02-19T21:49:04.7466728Z2021-02-19T21:49:04.31Z00000PT10MAvailable + headers: + content-type: application/atom+xml;type=entry;charset=utf-8 + date: Fri, 19 Feb 2021 21:49:04 GMT + etag: '637493681438200000' + server: Microsoft-HTTPAPI/2.0 + strict-transport-security: max-age=31536000 + transfer-encoding: chunked + status: + code: 200 + message: OK + url: https://servicebustest72zoif6ask.servicebus.windows.net/fjrui/subscriptions/eqkovc?enrich=false&api-version=2017-04 +- request: + body: ' + + PT12SfalsePT11Mtruetrue14trueActivesb://servicebustest72zoif6ask.servicebus.windows.net/fjruisb://servicebustest72zoif6ask.servicebus.windows.net/fjruiPT10MAvailable' + headers: + Accept: + - application/xml + Content-Length: + - '998' + Content-Type: + - application/atom+xml + If-Match: + - '*' + ServiceBusDlqSupplementaryAuthorization: + - SharedAccessSignature sr=sb%3A%2F%2Fservicebustest72zoif6ask.servicebus.windows.net%2Ffjrui&sig=W7EHt3l%2bV4d7NM12GxHDIeuS8%2bXi3WQHllMHvS3TfZ4%3d&se=1613774944&skn=RootManageSharedAccessKey + ServiceBusSupplementaryAuthorization: + - SharedAccessSignature sr=sb%3A%2F%2Fservicebustest72zoif6ask.servicebus.windows.net%2Ffjrui&sig=W7EHt3l%2bV4d7NM12GxHDIeuS8%2bXi3WQHllMHvS3TfZ4%3d&se=1613774944&skn=RootManageSharedAccessKey + User-Agent: + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.0 (Windows-10-10.0.19041-SP0) + method: PUT + uri: https://servicebustestsbname.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04 + response: + body: + string: https://servicebustest72zoif6ask.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04eqkovc2021-02-19T21:49:04Z2021-02-19T21:49:04ZPT12SfalsePT11Mtruetrue014trueActivesb://servicebustest72zoif6ask.servicebus.windows.net/fjrui2021-02-19T21:49:04.9321081Z2021-02-19T21:49:04.9321081Z0001-01-01T00:00:00sb://servicebustest72zoif6ask.servicebus.windows.net/fjruiP10675199DT2H48M5.4775807SAvailable + headers: + content-type: application/atom+xml;type=entry;charset=utf-8 + date: Fri, 19 Feb 2021 21:49:04 GMT + etag: '637493681438200000' + server: Microsoft-HTTPAPI/2.0 + strict-transport-security: max-age=31536000 + transfer-encoding: chunked + status: + code: 200 + message: OK + url: https://servicebustest72zoif6ask.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04 +- request: + body: null + headers: + Accept: + - application/xml + User-Agent: + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://servicebustestsbname.servicebus.windows.net/fjrui/subscriptions/eqkovc?enrich=false&api-version=2017-04 + response: + body: + string: sb://servicebustest72zoif6ask.servicebus.windows.net/fjrui/subscriptions/eqkovc?enrich=false&api-version=2017-04eqkovc2021-02-19T21:49:04Z2021-02-19T21:49:04ZPT12SfalsePT11Mtruetrue014trueActivesb://servicebustest72zoif6ask.servicebus.windows.net/fjrui2021-02-19T21:49:04.3091297Z2021-02-19T21:49:04.9343986Z2021-02-19T21:49:04.31Z00000sb://servicebustest72zoif6ask.servicebus.windows.net/fjruiP10675199DT2H48M5.4775807SAvailable + headers: + content-type: application/atom+xml;type=entry;charset=utf-8 + date: Fri, 19 Feb 2021 21:49:04 GMT + etag: '637493681438200000' + server: Microsoft-HTTPAPI/2.0 + strict-transport-security: max-age=31536000 + transfer-encoding: chunked + status: + code: 200 + message: OK + url: https://servicebustest72zoif6ask.servicebus.windows.net/fjrui/subscriptions/eqkovc?enrich=false&api-version=2017-04 +- request: + body: null + headers: + Accept: + - application/xml + User-Agent: + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.0 (Windows-10-10.0.19041-SP0) + method: DELETE + uri: https://servicebustestsbname.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04 + response: + body: + string: '' + headers: + content-length: '0' + date: Fri, 19 Feb 2021 21:49:04 GMT + etag: '637493681438200000' + server: Microsoft-HTTPAPI/2.0 + strict-transport-security: max-age=31536000 + status: + code: 200 + message: OK + url: https://servicebustest72zoif6ask.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04 +- request: + body: null + headers: + Accept: + - application/xml + User-Agent: + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.0 (Windows-10-10.0.19041-SP0) + method: DELETE + uri: https://servicebustestsbname.servicebus.windows.net/fjrui?api-version=2017-04 + response: + body: + string: '' + headers: + content-length: '0' + date: Fri, 19 Feb 2021 21:49:04 GMT + etag: '637493681438200000' + server: Microsoft-HTTPAPI/2.0 + strict-transport-security: max-age=31536000 + status: + code: 200 + message: OK + url: https://servicebustest72zoif6ask.servicebus.windows.net/fjrui?api-version=2017-04 +version: 1 diff --git a/sdk/servicebus/azure-servicebus/tests/async_tests/mgmt_tests/recordings/test_mgmt_topics_async.test_mgmt_topic_async_update_dict_error.yaml b/sdk/servicebus/azure-servicebus/tests/async_tests/mgmt_tests/recordings/test_mgmt_topics_async.test_mgmt_topic_async_update_dict_error.yaml new file mode 100644 index 000000000000..97d1d263a691 --- /dev/null +++ b/sdk/servicebus/azure-servicebus/tests/async_tests/mgmt_tests/recordings/test_mgmt_topics_async.test_mgmt_topic_async_update_dict_error.yaml @@ -0,0 +1,79 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/xml + User-Agent: + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://servicebustestsbname.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-04 + response: + body: + string: Topicshttps://servicebustesth532g5fl35.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-042021-02-19T21:50:59Z + headers: + content-type: application/atom+xml;type=feed;charset=utf-8 + date: Fri, 19 Feb 2021 21:50:59 GMT + server: Microsoft-HTTPAPI/2.0 + transfer-encoding: chunked + status: + code: 200 + message: OK + url: https://servicebustesth532g5fl35.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-04 +- request: + body: ' + + ' + headers: + Accept: + - application/xml + Content-Length: + - '248' + Content-Type: + - application/atom+xml + User-Agent: + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.0 (Windows-10-10.0.19041-SP0) + method: PUT + uri: https://servicebustestsbname.servicebus.windows.net/fjruid?api-version=2017-04 + response: + body: + string: https://servicebustesth532g5fl35.servicebus.windows.net/fjruid?api-version=2017-04fjruid2021-02-19T21:50:59Z2021-02-19T21:51:00Zservicebustesth532g5fl35P10675199DT2H48M5.4775807S1024falsePT10Mtrue0falsefalseActive2021-02-19T21:50:59.987Z2021-02-19T21:51:00.06ZtrueP10675199DT2H48M5.4775807SfalseAvailablefalsefalse + headers: + content-type: application/atom+xml;type=entry;charset=utf-8 + date: Fri, 19 Feb 2021 21:51:00 GMT + server: Microsoft-HTTPAPI/2.0 + strict-transport-security: max-age=31536000 + transfer-encoding: chunked + status: + code: 201 + message: Created + url: https://servicebustesth532g5fl35.servicebus.windows.net/fjruid?api-version=2017-04 +- request: + body: null + headers: + Accept: + - application/xml + User-Agent: + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.0 (Windows-10-10.0.19041-SP0) + method: DELETE + uri: https://servicebustestsbname.servicebus.windows.net/fjruid?api-version=2017-04 + response: + body: + string: '' + headers: + content-length: '0' + date: Fri, 19 Feb 2021 21:51:00 GMT + etag: '637493682600600000' + server: Microsoft-HTTPAPI/2.0 + strict-transport-security: max-age=31536000 + status: + code: 200 + message: OK + url: https://servicebustesth532g5fl35.servicebus.windows.net/fjruid?api-version=2017-04 +version: 1 diff --git a/sdk/servicebus/azure-servicebus/tests/async_tests/mgmt_tests/recordings/test_mgmt_topics_async.test_mgmt_topic_async_update_dict_success.yaml b/sdk/servicebus/azure-servicebus/tests/async_tests/mgmt_tests/recordings/test_mgmt_topics_async.test_mgmt_topic_async_update_dict_success.yaml new file mode 100644 index 000000000000..7da4f10ef998 --- /dev/null +++ b/sdk/servicebus/azure-servicebus/tests/async_tests/mgmt_tests/recordings/test_mgmt_topics_async.test_mgmt_topic_async_update_dict_success.yaml @@ -0,0 +1,209 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/xml + User-Agent: + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://servicebustestsbname.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-04 + response: + body: + string: Topicshttps://servicebustesth532g5fl35.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-042021-02-19T21:51:01Z + headers: + content-type: application/atom+xml;type=feed;charset=utf-8 + date: Fri, 19 Feb 2021 21:51:01 GMT + server: Microsoft-HTTPAPI/2.0 + transfer-encoding: chunked + status: + code: 200 + message: OK + url: https://servicebustesth532g5fl35.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-04 +- request: + body: ' + + ' + headers: + Accept: + - application/xml + Content-Length: + - '248' + Content-Type: + - application/atom+xml + User-Agent: + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.0 (Windows-10-10.0.19041-SP0) + method: PUT + uri: https://servicebustestsbname.servicebus.windows.net/fjruid?api-version=2017-04 + response: + body: + string: https://servicebustesth532g5fl35.servicebus.windows.net/fjruid?api-version=2017-04fjruid2021-02-19T21:51:02Z2021-02-19T21:51:02Zservicebustesth532g5fl35P10675199DT2H48M5.4775807S1024falsePT10Mtrue0falsefalseActive2021-02-19T21:51:02.29Z2021-02-19T21:51:02.34ZtrueP10675199DT2H48M5.4775807SfalseAvailablefalsefalse + headers: + content-type: application/atom+xml;type=entry;charset=utf-8 + date: Fri, 19 Feb 2021 21:51:02 GMT + server: Microsoft-HTTPAPI/2.0 + strict-transport-security: max-age=31536000 + transfer-encoding: chunked + status: + code: 201 + message: Created + url: https://servicebustesth532g5fl35.servicebus.windows.net/fjruid?api-version=2017-04 +- request: + body: ' + + PT2M1024falsePT10Mtrue0ActivetrueP10675199DT2H48M5.477539SfalseAvailablefalse' + headers: + Accept: + - application/xml + Content-Length: + - '882' + Content-Type: + - application/atom+xml + If-Match: + - '*' + User-Agent: + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.0 (Windows-10-10.0.19041-SP0) + method: PUT + uri: https://servicebustestsbname.servicebus.windows.net/fjruid?api-version=2017-04 + response: + body: + string: https://servicebustesth532g5fl35.servicebus.windows.net/fjruid?api-version=2017-04fjruid2021-02-19T21:51:02Zservicebustesth532g5fl35PT2M1024falsePT10Mtrue0ActivetrueP10675199DT2H48M5.477539SfalseAvailablefalse + headers: + content-type: application/atom+xml;type=entry;charset=utf-8 + date: Fri, 19 Feb 2021 21:51:02 GMT + etag: '637493682623400000' + server: Microsoft-HTTPAPI/2.0 + strict-transport-security: max-age=31536000 + transfer-encoding: chunked + status: + code: 200 + message: OK + url: https://servicebustesth532g5fl35.servicebus.windows.net/fjruid?api-version=2017-04 +- request: + body: null + headers: + Accept: + - application/xml + User-Agent: + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://servicebustestsbname.servicebus.windows.net/fjruid?enrich=false&api-version=2017-04 + response: + body: + string: https://servicebustesth532g5fl35.servicebus.windows.net/fjruid?enrich=false&api-version=2017-04fjruid2021-02-19T21:51:02Z2021-02-19T21:51:02Zservicebustesth532g5fl35PT2M1024falsePT10Mtrue0falsefalseActive2021-02-19T21:51:02.29Z2021-02-19T21:51:02.85Z0001-01-01T00:00:00Ztrue000000P10675199DT2H48M5.477539SfalseAvailablefalsefalse + headers: + content-type: application/atom+xml;type=entry;charset=utf-8 + date: Fri, 19 Feb 2021 21:51:02 GMT + etag: '637493682628500000' + server: Microsoft-HTTPAPI/2.0 + strict-transport-security: max-age=31536000 + transfer-encoding: chunked + status: + code: 200 + message: OK + url: https://servicebustesth532g5fl35.servicebus.windows.net/fjruid?enrich=false&api-version=2017-04 +- request: + body: ' + + PT11M3072falsePT12Mtrue0ActivetruePT10MfalseAvailabletrue' + headers: + Accept: + - application/xml + Content-Length: + - '862' + Content-Type: + - application/atom+xml + If-Match: + - '*' + User-Agent: + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.0 (Windows-10-10.0.19041-SP0) + method: PUT + uri: https://servicebustestsbname.servicebus.windows.net/fjruid?api-version=2017-04 + response: + body: + string: https://servicebustesth532g5fl35.servicebus.windows.net/fjruid?api-version=2017-04fjruid2021-02-19T21:51:03Zservicebustesth532g5fl35PT11M3072falsePT12Mtrue0ActivetruePT10MfalseAvailabletrue + headers: + content-type: application/atom+xml;type=entry;charset=utf-8 + date: Fri, 19 Feb 2021 21:51:02 GMT + etag: '637493682628500000' + server: Microsoft-HTTPAPI/2.0 + strict-transport-security: max-age=31536000 + transfer-encoding: chunked + status: + code: 200 + message: OK + url: https://servicebustesth532g5fl35.servicebus.windows.net/fjruid?api-version=2017-04 +- request: + body: null + headers: + Accept: + - application/xml + User-Agent: + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://servicebustestsbname.servicebus.windows.net/fjruid?enrich=false&api-version=2017-04 + response: + body: + string: https://servicebustesth532g5fl35.servicebus.windows.net/fjruid?enrich=false&api-version=2017-04fjruid2021-02-19T21:51:02Z2021-02-19T21:51:03Zservicebustesth532g5fl35PT11M3072falsePT12Mtrue0falsefalseActive2021-02-19T21:51:02.29Z2021-02-19T21:51:03.05Z0001-01-01T00:00:00Ztrue000000PT10MfalseAvailablefalsetrue + headers: + content-type: application/atom+xml;type=entry;charset=utf-8 + date: Fri, 19 Feb 2021 21:51:02 GMT + etag: '637493682630500000' + server: Microsoft-HTTPAPI/2.0 + strict-transport-security: max-age=31536000 + transfer-encoding: chunked + status: + code: 200 + message: OK + url: https://servicebustesth532g5fl35.servicebus.windows.net/fjruid?enrich=false&api-version=2017-04 +- request: + body: null + headers: + Accept: + - application/xml + User-Agent: + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.0 (Windows-10-10.0.19041-SP0) + method: DELETE + uri: https://servicebustestsbname.servicebus.windows.net/fjruid?api-version=2017-04 + response: + body: + string: '' + headers: + content-length: '0' + date: Fri, 19 Feb 2021 21:51:03 GMT + etag: '637493682630500000' + server: Microsoft-HTTPAPI/2.0 + strict-transport-security: max-age=31536000 + status: + code: 200 + message: OK + url: https://servicebustesth532g5fl35.servicebus.windows.net/fjruid?api-version=2017-04 +version: 1 diff --git a/sdk/servicebus/azure-servicebus/tests/async_tests/mgmt_tests/test_mgmt_queues_async.py b/sdk/servicebus/azure-servicebus/tests/async_tests/mgmt_tests/test_mgmt_queues_async.py index 86e5dbc0490f..6422dd046823 100644 --- a/sdk/servicebus/azure-servicebus/tests/async_tests/mgmt_tests/test_mgmt_queues_async.py +++ b/sdk/servicebus/azure-servicebus/tests/async_tests/mgmt_tests/test_mgmt_queues_async.py @@ -447,10 +447,9 @@ async def test_async_mgmt_queue_get_runtime_properties_negative(self, servicebus with pytest.raises(ResourceNotFoundError): await mgmt_service.get_queue_runtime_properties("non_existing_queue") - @pytest.mark.liveTest @CachedResourceGroupPreparer(name_prefix='servicebustest') @CachedServiceBusNamespacePreparer(name_prefix='servicebustest') - async def test_mgmt_queue_async_update_dict_success(self, servicebus_namespace_connection_string, **kwargs): + async def test_mgmt_queue_async_update_dict_success(self, servicebus_namespace_connection_string, servicebus_namespace, **kwargs): mgmt_service = ServiceBusAdministrationClient.from_connection_string(servicebus_namespace_connection_string) await clear_queues(mgmt_service) queue_name = "fjruid" @@ -476,6 +475,8 @@ async def test_mgmt_queue_async_update_dict_success(self, servicebus_namespace_c queue_description_dict["lock_duration"] = datetime.timedelta(seconds=13) queue_description_dict["max_delivery_count"] = 14 queue_description_dict["max_size_in_megabytes"] = 3072 + queue_description_dict["forward_to"] = "sb://{}.servicebus.windows.net/{}".format(servicebus_namespace.name, queue_name) + queue_description_dict["forward_dead_lettered_messages_to"] = "sb://{}.servicebus.windows.net/{}".format(servicebus_namespace.name, queue_name) #queue_description_dict["requires_duplicate_detection"] = True # Read only #queue_description_dict["requires_session"] = True # Cannot be changed after creation @@ -492,11 +493,13 @@ async def test_mgmt_queue_async_update_dict_success(self, servicebus_namespace_c assert queue_description.lock_duration == datetime.timedelta(seconds=13) assert queue_description.max_delivery_count == 14 assert queue_description.max_size_in_megabytes == 3072 + assert queue_description.forward_to.endswith(".servicebus.windows.net/{}".format(queue_name)) + # Note: We endswith to avoid the fact that the servicebus_namespace_name is replacered locally but not in the properties bag, and still test this. + assert queue_description.forward_dead_lettered_messages_to.endswith(".servicebus.windows.net/{}".format(queue_name)) #assert queue_description.requires_duplicate_detection == True #assert queue_description.requires_session == True finally: await mgmt_service.delete_queue(queue_name) - await mgmt_service.close() @pytest.mark.liveTest @CachedResourceGroupPreparer(name_prefix='servicebustest') @@ -506,10 +509,10 @@ async def test_mgmt_queue_async_update_dict_error(self, servicebus_namespace_con await clear_queues(mgmt_service) queue_name = "fjruid" queue_description = await mgmt_service.create_queue(queue_name) - # send in queue dict without non-name keyword args - queue_description_only_name = {"name": queue_name} - with pytest.raises(TypeError): - await mgmt_service.update_queue(queue_description_only_name) - - await mgmt_service.delete_queue(queue_name) - await mgmt_service.close() + try: + # send in queue dict without non-name keyword args + queue_description_only_name = {"name": queue_name} + with pytest.raises(TypeError): + await mgmt_service.update_queue(queue_description_only_name) + finally: + await mgmt_service.delete_queue(queue_name) diff --git a/sdk/servicebus/azure-servicebus/tests/async_tests/mgmt_tests/test_mgmt_rules_async.py b/sdk/servicebus/azure-servicebus/tests/async_tests/mgmt_tests/test_mgmt_rules_async.py index d35ef97bc66c..5c57c152da4d 100644 --- a/sdk/servicebus/azure-servicebus/tests/async_tests/mgmt_tests/test_mgmt_rules_async.py +++ b/sdk/servicebus/azure-servicebus/tests/async_tests/mgmt_tests/test_mgmt_rules_async.py @@ -250,8 +250,8 @@ async def test_async_mgmt_rule_list_and_delete(self, servicebus_namespace_connec async def test_mgmt_rule_async_update_dict_success(self, servicebus_namespace_connection_string, **kwargs): mgmt_service = ServiceBusAdministrationClient.from_connection_string(servicebus_namespace_connection_string) await clear_topics(mgmt_service) - topic_name = "fjrui" - subscription_name = "eqkovc" + topic_name = "fjruid" + subscription_name = "eqkovcd" rule_name = 'rule' sql_filter = SqlRuleFilter("Priority = 'low'") @@ -283,9 +283,6 @@ async def test_mgmt_rule_async_update_dict_success(self, servicebus_namespace_co await mgmt_service.delete_subscription(topic_name, subscription_name) await mgmt_service.delete_topic(topic_name) - await mgmt_service.close() - - @pytest.mark.liveTest @CachedResourceGroupPreparer(name_prefix='servicebustest') @CachedServiceBusNamespacePreparer(name_prefix='servicebustest') async def test_mgmt_rule_async_update_dict_error(self, servicebus_namespace_connection_string, **kwargs): @@ -296,16 +293,17 @@ async def test_mgmt_rule_async_update_dict_error(self, servicebus_namespace_conn rule_name = 'rule' sql_filter = SqlRuleFilter("Priority = 'low'") - topic_description = await mgmt_service.create_topic(topic_name) - subscription_description = await mgmt_service.create_subscription(topic_description.name, subscription_name) - await mgmt_service.create_rule(topic_name, subscription_name, rule_name, filter=sql_filter) + try: + topic_description = await mgmt_service.create_topic(topic_name) + subscription_description = await mgmt_service.create_subscription(topic_description.name, subscription_name) + await mgmt_service.create_rule(topic_name, subscription_name, rule_name, filter=sql_filter) - # send in rule dict without non-name keyword args - rule_description_only_name = {"name": topic_name} - with pytest.raises(TypeError): - await mgmt_service.update_rule(topic_description.name, subscription_description.name, rule_description_only_name) + # send in rule dict without non-name keyword args + rule_description_only_name = {"name": topic_name} + with pytest.raises(TypeError): + await mgmt_service.update_rule(topic_description.name, subscription_description.name, rule_description_only_name) - await mgmt_service.delete_rule(topic_name, subscription_name, rule_name) - await mgmt_service.delete_subscription(topic_name, subscription_name) - await mgmt_service.delete_topic(topic_name) - await mgmt_service.close() \ No newline at end of file + finally: + await mgmt_service.delete_rule(topic_name, subscription_name, rule_name) + await mgmt_service.delete_subscription(topic_name, subscription_name) + await mgmt_service.delete_topic(topic_name) \ No newline at end of file diff --git a/sdk/servicebus/azure-servicebus/tests/async_tests/mgmt_tests/test_mgmt_subscriptions_async.py b/sdk/servicebus/azure-servicebus/tests/async_tests/mgmt_tests/test_mgmt_subscriptions_async.py index 09c7aa0fa3b6..4fcafe344665 100644 --- a/sdk/servicebus/azure-servicebus/tests/async_tests/mgmt_tests/test_mgmt_subscriptions_async.py +++ b/sdk/servicebus/azure-servicebus/tests/async_tests/mgmt_tests/test_mgmt_subscriptions_async.py @@ -306,7 +306,7 @@ async def test_async_mgmt_subscription_get_runtime_properties_basic(self, servic @CachedResourceGroupPreparer(name_prefix='servicebustest') @CachedServiceBusNamespacePreparer(name_prefix='servicebustest') - async def test_mgmt_subscription_async_update_dict_success(self, servicebus_namespace_connection_string, **kwargs): + async def test_mgmt_subscription_async_update_dict_success(self, servicebus_namespace_connection_string, servicebus_namespace, **kwargs): mgmt_service = ServiceBusAdministrationClient.from_connection_string(servicebus_namespace_connection_string) await clear_topics(mgmt_service) topic_name = "fjrui" @@ -343,13 +343,21 @@ async def test_mgmt_subscription_async_update_dict_success(self, servicebus_name assert subscription_description.lock_duration == datetime.timedelta(seconds=12) # assert topic_description.enable_partitioning == True # assert topic_description.requires_session == True + + # Finally, test forward_to (separately, as it changes auto_delete_on_idle when you enable it.) + subscription_description_dict = dict(subscription_description) + subscription_description_dict["forward_to"] = "sb://{}.servicebus.windows.net/{}".format(servicebus_namespace.name, topic_name) + subscription_description_dict["forward_dead_lettered_messages_to"] = "sb://{}.servicebus.windows.net/{}".format(servicebus_namespace.name, topic_name) + await mgmt_service.update_subscription(topic_description.name, subscription_description_dict) + subscription_description = await mgmt_service.get_subscription(topic_description.name, subscription_name) + # Note: We endswith to avoid the fact that the servicebus_namespace_name is replacered locally but not in the properties bag, and still test this. + assert subscription_description.forward_to.endswith(".servicebus.windows.net/{}".format(topic_name)) + assert subscription_description.forward_dead_lettered_messages_to.endswith(".servicebus.windows.net/{}".format(topic_name)) + finally: await mgmt_service.delete_subscription(topic_name, subscription_name) await mgmt_service.delete_topic(topic_name) - await mgmt_service.close() - - @pytest.mark.liveTest @CachedResourceGroupPreparer(name_prefix='servicebustest') @CachedServiceBusNamespacePreparer(name_prefix='servicebustest') async def test_mgmt_subscription_async_update_dict_error(self, servicebus_namespace_connection_string, **kwargs): @@ -358,13 +366,13 @@ async def test_mgmt_subscription_async_update_dict_error(self, servicebus_namesp topic_name = "fjrui" subscription_name = "eqkovc" - topic_description = await mgmt_service.create_topic(topic_name) - subscription_description = await mgmt_service.create_subscription(topic_description.name, subscription_name) - # send in subscription dict without non-name keyword args - subscription_description_only_name = {"name": topic_name} - with pytest.raises(TypeError): - await mgmt_service.update_subscription(topic_description.name, subscription_description_only_name) - - await mgmt_service.delete_subscription(topic_name, subscription_name) - await mgmt_service.delete_topic(topic_name) - await mgmt_service.close() \ No newline at end of file + try: + topic_description = await mgmt_service.create_topic(topic_name) + subscription_description = await mgmt_service.create_subscription(topic_description.name, subscription_name) + # send in subscription dict without non-name keyword args + subscription_description_only_name = {"name": topic_name} + with pytest.raises(TypeError): + await mgmt_service.update_subscription(topic_description.name, subscription_description_only_name) + finally: + await mgmt_service.delete_subscription(topic_name, subscription_name) + await mgmt_service.delete_topic(topic_name) diff --git a/sdk/servicebus/azure-servicebus/tests/async_tests/mgmt_tests/test_mgmt_topics_async.py b/sdk/servicebus/azure-servicebus/tests/async_tests/mgmt_tests/test_mgmt_topics_async.py index 1e1e1b474085..b67b5df5dd5b 100644 --- a/sdk/servicebus/azure-servicebus/tests/async_tests/mgmt_tests/test_mgmt_topics_async.py +++ b/sdk/servicebus/azure-servicebus/tests/async_tests/mgmt_tests/test_mgmt_topics_async.py @@ -262,7 +262,7 @@ async def test_async_mgmt_topic_get_runtime_properties_basic(self, servicebus_na async def test_mgmt_topic_async_update_dict_success(self, servicebus_namespace_connection_string, **kwargs): mgmt_service = ServiceBusAdministrationClient.from_connection_string(servicebus_namespace_connection_string) await clear_topics(mgmt_service) - topic_name = "fjrui" + topic_name = "fjruid" try: topic_description = await mgmt_service.create_topic(topic_name) @@ -302,7 +302,6 @@ async def test_mgmt_topic_async_update_dict_success(self, servicebus_namespace_c assert topic_description.support_ordering == True finally: await mgmt_service.delete_topic(topic_name) - await mgmt_service.close() @pytest.mark.liveTest @CachedResourceGroupPreparer(name_prefix='servicebustest') @@ -311,11 +310,11 @@ async def test_mgmt_topic_async_update_dict_error(self, servicebus_namespace_con mgmt_service = ServiceBusAdministrationClient.from_connection_string(servicebus_namespace_connection_string) await clear_topics(mgmt_service) topic_name = "fjruid" - topic_description = await mgmt_service.create_topic(topic_name) - # send in topic dict without non-name keyword args - topic_description_only_name = {"name": topic_name} - with pytest.raises(TypeError): - await mgmt_service.update_topic(topic_description_only_name) - - await mgmt_service.delete_topic(topic_name) - await mgmt_service.close() + try: + topic_description = await mgmt_service.create_topic(topic_name) + # send in topic dict without non-name keyword args + topic_description_only_name = {"name": topic_name} + with pytest.raises(TypeError): + await mgmt_service.update_topic(topic_description_only_name) + finally: + await mgmt_service.delete_topic(topic_name) diff --git a/sdk/servicebus/azure-servicebus/tests/mgmt_tests/recordings/test_mgmt_queues.test_mgmt_queue_update_dict_error.yaml b/sdk/servicebus/azure-servicebus/tests/mgmt_tests/recordings/test_mgmt_queues.test_mgmt_queue_update_dict_error.yaml new file mode 100644 index 000000000000..1fdcdffe6f45 --- /dev/null +++ b/sdk/servicebus/azure-servicebus/tests/mgmt_tests/recordings/test_mgmt_queues.test_mgmt_queue_update_dict_error.yaml @@ -0,0 +1,104 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/xml + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://servicebustestsbname.servicebus.windows.net/$Resources/queues?$skip=0&$top=100&api-version=2017-04 + response: + body: + string: Queueshttps://servicebustest3tdwauushz.servicebus.windows.net/$Resources/queues?$skip=0&$top=100&api-version=2017-042021-02-19T21:16:12Z + headers: + content-type: + - application/atom+xml;type=feed;charset=utf-8 + date: + - Fri, 19 Feb 2021 21:16:12 GMT + server: + - Microsoft-HTTPAPI/2.0 + transfer-encoding: + - chunked + status: + code: 200 + message: OK +- request: + body: ' + + ' + headers: + Accept: + - application/xml + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '248' + Content-Type: + - application/atom+xml + User-Agent: + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.0 (Windows-10-10.0.19041-SP0) + method: PUT + uri: https://servicebustestsbname.servicebus.windows.net/dfjdfj?api-version=2017-04 + response: + body: + string: https://servicebustest3tdwauushz.servicebus.windows.net/dfjdfj?api-version=2017-04dfjdfj2021-02-19T21:16:12Z2021-02-19T21:16:12Zservicebustest3tdwauushzPT1M1024falsefalseP10675199DT2H48M5.4775807SfalsePT10M10true00falseActive2021-02-19T21:16:12.853Z2021-02-19T21:16:12.893ZtrueP10675199DT2H48M5.4775807SfalseAvailablefalse + headers: + content-type: + - application/atom+xml;type=entry;charset=utf-8 + date: + - Fri, 19 Feb 2021 21:16:12 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: + - application/xml + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.0 (Windows-10-10.0.19041-SP0) + method: DELETE + uri: https://servicebustestsbname.servicebus.windows.net/dfjdfj?api-version=2017-04 + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Fri, 19 Feb 2021 21:16:13 GMT + etag: + - '637493661728930000' + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000 + status: + code: 200 + message: OK +version: 1 diff --git a/sdk/servicebus/azure-servicebus/tests/mgmt_tests/recordings/test_mgmt_queues.test_mgmt_queue_update_dict_success.yaml b/sdk/servicebus/azure-servicebus/tests/mgmt_tests/recordings/test_mgmt_queues.test_mgmt_queue_update_dict_success.yaml new file mode 100644 index 000000000000..0c6af41b292a --- /dev/null +++ b/sdk/servicebus/azure-servicebus/tests/mgmt_tests/recordings/test_mgmt_queues.test_mgmt_queue_update_dict_success.yaml @@ -0,0 +1,274 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/xml + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://servicebustestsbname.servicebus.windows.net/$Resources/queues?$skip=0&$top=100&api-version=2017-04 + response: + body: + string: Queueshttps://servicebustest3tdwauushz.servicebus.windows.net/$Resources/queues?$skip=0&$top=100&api-version=2017-042021-02-19T21:16:14Z + headers: + content-type: + - application/atom+xml;type=feed;charset=utf-8 + date: + - Fri, 19 Feb 2021 21:16:14 GMT + server: + - Microsoft-HTTPAPI/2.0 + transfer-encoding: + - chunked + status: + code: 200 + message: OK +- request: + body: ' + + ' + headers: + Accept: + - application/xml + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '248' + Content-Type: + - application/atom+xml + User-Agent: + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.0 (Windows-10-10.0.19041-SP0) + method: PUT + uri: https://servicebustestsbname.servicebus.windows.net/fjruid?api-version=2017-04 + response: + body: + string: https://servicebustest3tdwauushz.servicebus.windows.net/fjruid?api-version=2017-04fjruid2021-02-19T21:16:15Z2021-02-19T21:16:15Zservicebustest3tdwauushzPT1M1024falsefalseP10675199DT2H48M5.4775807SfalsePT10M10true00falseActive2021-02-19T21:16:15.07Z2021-02-19T21:16:15.103ZtrueP10675199DT2H48M5.4775807SfalseAvailablefalse + headers: + content-type: + - application/atom+xml;type=entry;charset=utf-8 + date: + - Fri, 19 Feb 2021 21:16:15 GMT + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000 + transfer-encoding: + - chunked + status: + code: 201 + message: Created +- request: + body: ' + + PT2M1024falsefalseP10675199DT2H48M5.477539SfalsePT10M10trueActiveP10675199DT2H48M5.477539SfalseAvailablefalse' + headers: + Accept: + - application/xml + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '1022' + Content-Type: + - application/atom+xml + If-Match: + - '*' + User-Agent: + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.0 (Windows-10-10.0.19041-SP0) + method: PUT + uri: https://servicebustestsbname.servicebus.windows.net/fjruid?api-version=2017-04 + response: + body: + string: https://servicebustest3tdwauushz.servicebus.windows.net/fjruid?api-version=2017-04fjruid2021-02-19T21:16:15Zservicebustest3tdwauushzPT2M1024falsefalseP10675199DT2H48M5.477539SfalsePT10M10trueActiveP10675199DT2H48M5.477539SfalseAvailablefalse + headers: + content-type: + - application/atom+xml;type=entry;charset=utf-8 + date: + - Fri, 19 Feb 2021 21:16:15 GMT + etag: + - '637493661751030000' + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000 + transfer-encoding: + - chunked + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/xml + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://servicebustestsbname.servicebus.windows.net/fjruid?enrich=false&api-version=2017-04 + response: + body: + string: https://servicebustest3tdwauushz.servicebus.windows.net/fjruid?enrich=false&api-version=2017-04fjruid2021-02-19T21:16:15Z2021-02-19T21:16:15Zservicebustest3tdwauushzPT2M1024falsefalseP10675199DT2H48M5.477539SfalsePT10M10true00falseActive2021-02-19T21:16:15.07Z2021-02-19T21:16:15.623Z0001-01-01T00:00:00Ztrue00000P10675199DT2H48M5.477539SfalseAvailablefalse + headers: + content-type: + - application/atom+xml;type=entry;charset=utf-8 + date: + - Fri, 19 Feb 2021 21:16:15 GMT + etag: + - '637493661756230000' + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000 + transfer-encoding: + - chunked + status: + code: 200 + message: OK +- request: + body: ' + + PT13S3072falsefalsePT11MtruePT12M14trueActivePT10MfalseAvailabletruesb://servicebustest3tdwauushz.servicebus.windows.net/fjruidsb://servicebustest3tdwauushz.servicebus.windows.net/fjruid' + headers: + Accept: + - application/xml + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '1185' + Content-Type: + - application/atom+xml + If-Match: + - '*' + ServiceBusDlqSupplementaryAuthorization: + - SharedAccessSignature sr=sb%3A%2F%2Fservicebustest3tdwauushz.servicebus.windows.net%2Ffjruid&sig=b322Q0BSNbSi81f3xwg3BEfF7EPStgHsjh3BEMXUyx4%3d&se=1613772975&skn=RootManageSharedAccessKey + ServiceBusSupplementaryAuthorization: + - SharedAccessSignature sr=sb%3A%2F%2Fservicebustest3tdwauushz.servicebus.windows.net%2Ffjruid&sig=b322Q0BSNbSi81f3xwg3BEfF7EPStgHsjh3BEMXUyx4%3d&se=1613772975&skn=RootManageSharedAccessKey + User-Agent: + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.0 (Windows-10-10.0.19041-SP0) + method: PUT + uri: https://servicebustestsbname.servicebus.windows.net/fjruid?api-version=2017-04 + response: + body: + string: https://servicebustest3tdwauushz.servicebus.windows.net/fjruid?api-version=2017-04fjruid2021-02-19T21:16:15Zservicebustest3tdwauushzPT13S3072falsefalsePT11MtruePT12M14trueActivePT10MfalseAvailabletruesb://servicebustest3tdwauushz.servicebus.windows.net/fjruidsb://servicebustest3tdwauushz.servicebus.windows.net/fjruid + headers: + content-type: + - application/atom+xml;type=entry;charset=utf-8 + date: + - Fri, 19 Feb 2021 21:16:15 GMT + etag: + - '637493661756230000' + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000 + transfer-encoding: + - chunked + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/xml + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://servicebustestsbname.servicebus.windows.net/fjruid?enrich=false&api-version=2017-04 + response: + body: + string: https://servicebustest3tdwauushz.servicebus.windows.net/fjruid?enrich=false&api-version=2017-04fjruid2021-02-19T21:16:15Z2021-02-19T21:16:15Zservicebustest3tdwauushzPT13S3072falsefalsePT11MtruePT12M14true00falseActive2021-02-19T21:16:15.07Z2021-02-19T21:16:15.94Z0001-01-01T00:00:00Ztrue00000PT10MfalseAvailabletruesb://servicebustest3tdwauushz.servicebus.windows.net/fjruidsb://servicebustest3tdwauushz.servicebus.windows.net/fjruid + headers: + content-type: + - application/atom+xml;type=entry;charset=utf-8 + date: + - Fri, 19 Feb 2021 21:16:15 GMT + etag: + - '637493661759400000' + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000 + transfer-encoding: + - chunked + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/xml + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.0 (Windows-10-10.0.19041-SP0) + method: DELETE + uri: https://servicebustestsbname.servicebus.windows.net/fjruid?api-version=2017-04 + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Fri, 19 Feb 2021 21:16:16 GMT + etag: + - '637493661759400000' + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000 + status: + code: 200 + message: OK +version: 1 diff --git a/sdk/servicebus/azure-servicebus/tests/mgmt_tests/recordings/test_mgmt_rules.test_mgmt_rule_update_dict_error.yaml b/sdk/servicebus/azure-servicebus/tests/mgmt_tests/recordings/test_mgmt_rules.test_mgmt_rule_update_dict_error.yaml new file mode 100644 index 000000000000..29737484a98a --- /dev/null +++ b/sdk/servicebus/azure-servicebus/tests/mgmt_tests/recordings/test_mgmt_rules.test_mgmt_rule_update_dict_error.yaml @@ -0,0 +1,258 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/xml + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://servicebustestsbname.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-04 + response: + body: + string: Topicshttps://servicebustesthxxsch4cui.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-042021-02-19T21:26:48Z + headers: + content-type: + - application/atom+xml;type=feed;charset=utf-8 + date: + - Fri, 19 Feb 2021 21:26:47 GMT + server: + - Microsoft-HTTPAPI/2.0 + transfer-encoding: + - chunked + status: + code: 200 + message: OK +- request: + body: ' + + ' + headers: + Accept: + - application/xml + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '248' + Content-Type: + - application/atom+xml + User-Agent: + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.0 (Windows-10-10.0.19041-SP0) + method: PUT + uri: https://servicebustestsbname.servicebus.windows.net/fjruid?api-version=2017-04 + response: + body: + string: https://servicebustesthxxsch4cui.servicebus.windows.net/fjruid?api-version=2017-04fjruid2021-02-19T21:26:49Z2021-02-19T21:26:49Zservicebustesthxxsch4cuiP10675199DT2H48M5.4775807S1024falsePT10Mtrue0falsefalseActive2021-02-19T21:26:49.293Z2021-02-19T21:26:49.42ZtrueP10675199DT2H48M5.4775807SfalseAvailablefalsefalse + headers: + content-type: + - application/atom+xml;type=entry;charset=utf-8 + date: + - Fri, 19 Feb 2021 21:26:48 GMT + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000 + transfer-encoding: + - chunked + status: + code: 201 + message: Created +- request: + body: ' + + ' + headers: + Accept: + - application/xml + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '255' + Content-Type: + - application/atom+xml + User-Agent: + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.0 (Windows-10-10.0.19041-SP0) + method: PUT + uri: https://servicebustestsbname.servicebus.windows.net/fjruid/subscriptions/eqkovcd?api-version=2017-04 + response: + body: + string: https://servicebustesthxxsch4cui.servicebus.windows.net/fjruid/subscriptions/eqkovcd?api-version=2017-04eqkovcd2021-02-19T21:26:49Z2021-02-19T21:26:49ZPT1MfalseP10675199DT2H48M5.4775807Sfalsetrue010trueActive2021-02-19T21:26:49.9724276Z2021-02-19T21:26:49.9724276Z0001-01-01T00:00:00P10675199DT2H48M5.4775807SAvailable + headers: + content-type: + - application/atom+xml;type=entry;charset=utf-8 + date: + - Fri, 19 Feb 2021 21:26:49 GMT + etag: + - '637493668094200000' + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000 + transfer-encoding: + - chunked + status: + code: 201 + message: Created +- request: + body: ' + + Priority = ''low''20truerule' + headers: + Accept: + - application/xml + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '550' + Content-Type: + - application/atom+xml + User-Agent: + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.0 (Windows-10-10.0.19041-SP0) + method: PUT + uri: https://servicebustestsbname.servicebus.windows.net/fjruid/subscriptions/eqkovcd/rules/rule?api-version=2017-04 + response: + body: + string: https://servicebustesthxxsch4cui.servicebus.windows.net/fjruid/subscriptions/eqkovcd/rules/rule?api-version=2017-04rule2021-02-19T21:26:50Z2021-02-19T21:26:50ZPriority + = 'low'20true2021-02-19T21:26:50.1911472Zrule + headers: + content-type: + - application/atom+xml;type=entry;charset=utf-8 + date: + - Fri, 19 Feb 2021 21:26:49 GMT + etag: + - '637493668094200000' + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000 + transfer-encoding: + - chunked + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - application/xml + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.0 (Windows-10-10.0.19041-SP0) + method: DELETE + uri: https://servicebustestsbname.servicebus.windows.net/fjruid/subscriptions/eqkovcd/rules/rule?api-version=2017-04 + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Fri, 19 Feb 2021 21:26:49 GMT + etag: + - '637493668094200000' + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/xml + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.0 (Windows-10-10.0.19041-SP0) + method: DELETE + uri: https://servicebustestsbname.servicebus.windows.net/fjruid/subscriptions/eqkovcd?api-version=2017-04 + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Fri, 19 Feb 2021 21:26:49 GMT + etag: + - '637493668094200000' + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/xml + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.0 (Windows-10-10.0.19041-SP0) + method: DELETE + uri: https://servicebustestsbname.servicebus.windows.net/fjruid?api-version=2017-04 + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Fri, 19 Feb 2021 21:26:50 GMT + etag: + - '637493668094200000' + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000 + status: + code: 200 + message: OK +version: 1 diff --git a/sdk/servicebus/azure-servicebus/tests/mgmt_tests/recordings/test_mgmt_rules.test_mgmt_rule_update_dict_success.yaml b/sdk/servicebus/azure-servicebus/tests/mgmt_tests/recordings/test_mgmt_rules.test_mgmt_rule_update_dict_success.yaml new file mode 100644 index 000000000000..3de5afa74dab --- /dev/null +++ b/sdk/servicebus/azure-servicebus/tests/mgmt_tests/recordings/test_mgmt_rules.test_mgmt_rule_update_dict_success.yaml @@ -0,0 +1,381 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/xml + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://servicebustestsbname.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-04 + response: + body: + string: Topicshttps://servicebustesthxxsch4cui.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-042021-02-19T21:26:51Z + headers: + content-type: + - application/atom+xml;type=feed;charset=utf-8 + date: + - Fri, 19 Feb 2021 21:26:51 GMT + server: + - Microsoft-HTTPAPI/2.0 + transfer-encoding: + - chunked + status: + code: 200 + message: OK +- request: + body: ' + + ' + headers: + Accept: + - application/xml + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '248' + Content-Type: + - application/atom+xml + User-Agent: + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.0 (Windows-10-10.0.19041-SP0) + method: PUT + uri: https://servicebustestsbname.servicebus.windows.net/fjruid?api-version=2017-04 + response: + body: + string: https://servicebustesthxxsch4cui.servicebus.windows.net/fjruid?api-version=2017-04fjruid2021-02-19T21:26:52Z2021-02-19T21:26:52Zservicebustesthxxsch4cuiP10675199DT2H48M5.4775807S1024falsePT10Mtrue0falsefalseActive2021-02-19T21:26:52.343Z2021-02-19T21:26:52.39ZtrueP10675199DT2H48M5.4775807SfalseAvailablefalsefalse + headers: + content-type: + - application/atom+xml;type=entry;charset=utf-8 + date: + - Fri, 19 Feb 2021 21:26:52 GMT + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000 + transfer-encoding: + - chunked + status: + code: 201 + message: Created +- request: + body: ' + + ' + headers: + Accept: + - application/xml + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '255' + Content-Type: + - application/atom+xml + User-Agent: + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.0 (Windows-10-10.0.19041-SP0) + method: PUT + uri: https://servicebustestsbname.servicebus.windows.net/fjruid/subscriptions/eqkovcd?api-version=2017-04 + response: + body: + string: https://servicebustesthxxsch4cui.servicebus.windows.net/fjruid/subscriptions/eqkovcd?api-version=2017-04eqkovcd2021-02-19T21:26:52Z2021-02-19T21:26:52ZPT1MfalseP10675199DT2H48M5.4775807Sfalsetrue010trueActive2021-02-19T21:26:52.9568517Z2021-02-19T21:26:52.9568517Z0001-01-01T00:00:00P10675199DT2H48M5.4775807SAvailable + headers: + content-type: + - application/atom+xml;type=entry;charset=utf-8 + date: + - Fri, 19 Feb 2021 21:26:52 GMT + etag: + - '637493668123900000' + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000 + transfer-encoding: + - chunked + status: + code: 201 + message: Created +- request: + body: ' + + Priority = ''low''20truerule' + headers: + Accept: + - application/xml + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '550' + Content-Type: + - application/atom+xml + User-Agent: + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.0 (Windows-10-10.0.19041-SP0) + method: PUT + uri: https://servicebustestsbname.servicebus.windows.net/fjruid/subscriptions/eqkovcd/rules/rule?api-version=2017-04 + response: + body: + string: https://servicebustesthxxsch4cui.servicebus.windows.net/fjruid/subscriptions/eqkovcd/rules/rule?api-version=2017-04rule2021-02-19T21:26:53Z2021-02-19T21:26:53ZPriority + = 'low'20true2021-02-19T21:26:53.3475139Zrule + headers: + content-type: + - application/atom+xml;type=entry;charset=utf-8 + date: + - Fri, 19 Feb 2021 21:26:52 GMT + etag: + - '637493668123900000' + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000 + transfer-encoding: + - chunked + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - application/xml + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://servicebustestsbname.servicebus.windows.net/fjruid/subscriptions/eqkovcd/rules/rule?enrich=false&api-version=2017-04 + response: + body: + string: sb://servicebustesthxxsch4cui.servicebus.windows.net/fjruid/subscriptions/eqkovcd/rules/rule?enrich=false&api-version=2017-04rule2021-02-19T21:26:53Z2021-02-19T21:26:53ZPriority + = 'low'20true2021-02-19T21:26:53.3467263Zrule + headers: + content-type: + - application/atom+xml;type=entry;charset=utf-8 + date: + - Fri, 19 Feb 2021 21:26:53 GMT + etag: + - '637493668123900000' + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000 + transfer-encoding: + - chunked + status: + code: 200 + message: OK +- request: + body: ' + + testcidSET Priority = ''low''20true2021-02-19T21:26:53.346726Zrule' + headers: + Accept: + - application/xml + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '655' + Content-Type: + - application/atom+xml + If-Match: + - '*' + User-Agent: + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.0 (Windows-10-10.0.19041-SP0) + method: PUT + uri: https://servicebustestsbname.servicebus.windows.net/fjruid/subscriptions/eqkovcd/rules/rule?api-version=2017-04 + response: + body: + string: https://servicebustesthxxsch4cui.servicebus.windows.net/fjruid/subscriptions/eqkovcd/rules/rule?api-version=2017-04rule2021-02-19T21:26:53Z2021-02-19T21:26:53ZtestcidSET Priority = 'low'20true2021-02-19T21:26:53.6131357Zrule + headers: + content-type: + - application/atom+xml;type=entry;charset=utf-8 + date: + - Fri, 19 Feb 2021 21:26:53 GMT + etag: + - '637493668123900000' + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000 + transfer-encoding: + - chunked + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/xml + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://servicebustestsbname.servicebus.windows.net/fjruid/subscriptions/eqkovcd/rules/rule?enrich=false&api-version=2017-04 + response: + body: + string: sb://servicebustesthxxsch4cui.servicebus.windows.net/fjruid/subscriptions/eqkovcd/rules/rule?enrich=false&api-version=2017-04rule2021-02-19T21:26:53Z2021-02-19T21:26:53ZtestcidSET Priority = 'low'20true2021-02-19T21:26:53.3467263Zrule + headers: + content-type: + - application/atom+xml;type=entry;charset=utf-8 + date: + - Fri, 19 Feb 2021 21:26:53 GMT + etag: + - '637493668123900000' + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000 + transfer-encoding: + - chunked + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/xml + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.0 (Windows-10-10.0.19041-SP0) + method: DELETE + uri: https://servicebustestsbname.servicebus.windows.net/fjruid/subscriptions/eqkovcd/rules/rule?api-version=2017-04 + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Fri, 19 Feb 2021 21:26:53 GMT + etag: + - '637493668123900000' + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/xml + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.0 (Windows-10-10.0.19041-SP0) + method: DELETE + uri: https://servicebustestsbname.servicebus.windows.net/fjruid/subscriptions/eqkovcd?api-version=2017-04 + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Fri, 19 Feb 2021 21:26:53 GMT + etag: + - '637493668123900000' + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/xml + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.0 (Windows-10-10.0.19041-SP0) + method: DELETE + uri: https://servicebustestsbname.servicebus.windows.net/fjruid?api-version=2017-04 + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Fri, 19 Feb 2021 21:26:54 GMT + etag: + - '637493668123900000' + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000 + status: + code: 200 + message: OK +version: 1 diff --git a/sdk/servicebus/azure-servicebus/tests/mgmt_tests/recordings/test_mgmt_subscriptions.test_mgmt_subscription_update_dict_error.yaml b/sdk/servicebus/azure-servicebus/tests/mgmt_tests/recordings/test_mgmt_subscriptions.test_mgmt_subscription_update_dict_error.yaml new file mode 100644 index 000000000000..c3bb70d3794f --- /dev/null +++ b/sdk/servicebus/azure-servicebus/tests/mgmt_tests/recordings/test_mgmt_subscriptions.test_mgmt_subscription_update_dict_error.yaml @@ -0,0 +1,179 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/xml + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://servicebustestsbname.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-04 + response: + body: + string: Topicshttps://servicebustestjmymjb7sd3.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-042021-02-19T21:45:34Z + headers: + content-type: + - application/atom+xml;type=feed;charset=utf-8 + date: + - Fri, 19 Feb 2021 21:45:34 GMT + server: + - Microsoft-HTTPAPI/2.0 + transfer-encoding: + - chunked + status: + code: 200 + message: OK +- request: + body: ' + + ' + headers: + Accept: + - application/xml + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '248' + Content-Type: + - application/atom+xml + User-Agent: + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.0 (Windows-10-10.0.19041-SP0) + method: PUT + uri: https://servicebustestsbname.servicebus.windows.net/dfjdfj?api-version=2017-04 + response: + body: + string: https://servicebustestjmymjb7sd3.servicebus.windows.net/dfjdfj?api-version=2017-04dfjdfj2021-02-19T21:45:34Z2021-02-19T21:45:34Zservicebustestjmymjb7sd3P10675199DT2H48M5.4775807S1024falsePT10Mtrue0falsefalseActive2021-02-19T21:45:34.78Z2021-02-19T21:45:34.82ZtrueP10675199DT2H48M5.4775807SfalseAvailablefalsefalse + headers: + content-type: + - application/atom+xml;type=entry;charset=utf-8 + date: + - Fri, 19 Feb 2021 21:45:35 GMT + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000 + transfer-encoding: + - chunked + status: + code: 201 + message: Created +- request: + body: ' + + ' + headers: + Accept: + - application/xml + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '255' + Content-Type: + - application/atom+xml + User-Agent: + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.0 (Windows-10-10.0.19041-SP0) + method: PUT + uri: https://servicebustestsbname.servicebus.windows.net/dfjdfj/subscriptions/kwqxd?api-version=2017-04 + response: + body: + string: https://servicebustestjmymjb7sd3.servicebus.windows.net/dfjdfj/subscriptions/kwqxd?api-version=2017-04kwqxd2021-02-19T21:45:35Z2021-02-19T21:45:35ZPT1MfalseP10675199DT2H48M5.4775807Sfalsetrue010trueActive2021-02-19T21:45:35.3454677Z2021-02-19T21:45:35.3454677Z0001-01-01T00:00:00P10675199DT2H48M5.4775807SAvailable + headers: + content-type: + - application/atom+xml;type=entry;charset=utf-8 + date: + - Fri, 19 Feb 2021 21:45:35 GMT + etag: + - '637493679348200000' + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000 + transfer-encoding: + - chunked + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - application/xml + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.0 (Windows-10-10.0.19041-SP0) + method: DELETE + uri: https://servicebustestsbname.servicebus.windows.net/dfjdfj/subscriptions/kwqxd?api-version=2017-04 + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Fri, 19 Feb 2021 21:45:35 GMT + etag: + - '637493679348200000' + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/xml + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.0 (Windows-10-10.0.19041-SP0) + method: DELETE + uri: https://servicebustestsbname.servicebus.windows.net/dfjdfj?api-version=2017-04 + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Fri, 19 Feb 2021 21:45:36 GMT + etag: + - '637493679348200000' + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000 + status: + code: 200 + message: OK +version: 1 diff --git a/sdk/servicebus/azure-servicebus/tests/mgmt_tests/recordings/test_mgmt_subscriptions.test_mgmt_subscription_update_dict_success.yaml b/sdk/servicebus/azure-servicebus/tests/mgmt_tests/recordings/test_mgmt_subscriptions.test_mgmt_subscription_update_dict_success.yaml new file mode 100644 index 000000000000..e4f808c5ad22 --- /dev/null +++ b/sdk/servicebus/azure-servicebus/tests/mgmt_tests/recordings/test_mgmt_subscriptions.test_mgmt_subscription_update_dict_success.yaml @@ -0,0 +1,429 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/xml + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://servicebustestsbname.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-04 + response: + body: + string: Topicshttps://servicebustestjmymjb7sd3.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-042021-02-19T21:45:37Z + headers: + content-type: + - application/atom+xml;type=feed;charset=utf-8 + date: + - Fri, 19 Feb 2021 21:45:36 GMT + server: + - Microsoft-HTTPAPI/2.0 + transfer-encoding: + - chunked + status: + code: 200 + message: OK +- request: + body: ' + + ' + headers: + Accept: + - application/xml + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '248' + Content-Type: + - application/atom+xml + User-Agent: + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.0 (Windows-10-10.0.19041-SP0) + method: PUT + uri: https://servicebustestsbname.servicebus.windows.net/fjruid?api-version=2017-04 + response: + body: + string: https://servicebustestjmymjb7sd3.servicebus.windows.net/fjruid?api-version=2017-04fjruid2021-02-19T21:45:37Z2021-02-19T21:45:37Zservicebustestjmymjb7sd3P10675199DT2H48M5.4775807S1024falsePT10Mtrue0falsefalseActive2021-02-19T21:45:37.517Z2021-02-19T21:45:37.553ZtrueP10675199DT2H48M5.4775807SfalseAvailablefalsefalse + headers: + content-type: + - application/atom+xml;type=entry;charset=utf-8 + date: + - Fri, 19 Feb 2021 21:45:37 GMT + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000 + transfer-encoding: + - chunked + status: + code: 201 + message: Created +- request: + body: ' + + ' + headers: + Accept: + - application/xml + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '255' + Content-Type: + - application/atom+xml + User-Agent: + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.0 (Windows-10-10.0.19041-SP0) + method: PUT + uri: https://servicebustestsbname.servicebus.windows.net/fjruid/subscriptions/eqkovcd?api-version=2017-04 + response: + body: + string: https://servicebustestjmymjb7sd3.servicebus.windows.net/fjruid/subscriptions/eqkovcd?api-version=2017-04eqkovcd2021-02-19T21:45:38Z2021-02-19T21:45:38ZPT1MfalseP10675199DT2H48M5.4775807Sfalsetrue010trueActive2021-02-19T21:45:38.1091508Z2021-02-19T21:45:38.1091508Z0001-01-01T00:00:00P10675199DT2H48M5.4775807SAvailable + headers: + content-type: + - application/atom+xml;type=entry;charset=utf-8 + date: + - Fri, 19 Feb 2021 21:45:38 GMT + etag: + - '637493679375530000' + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000 + transfer-encoding: + - chunked + status: + code: 201 + message: Created +- request: + body: ' + + PT2MfalseP10675199DT2H48M5.477539Sfalsetrue10trueActiveP10675199DT2H48M5.477539SAvailable' + headers: + Accept: + - application/xml + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '836' + Content-Type: + - application/atom+xml + If-Match: + - '*' + User-Agent: + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.0 (Windows-10-10.0.19041-SP0) + method: PUT + uri: https://servicebustestsbname.servicebus.windows.net/fjruid/subscriptions/eqkovcd?api-version=2017-04 + response: + body: + string: https://servicebustestjmymjb7sd3.servicebus.windows.net/fjruid/subscriptions/eqkovcd?api-version=2017-04eqkovcd2021-02-19T21:45:38Z2021-02-19T21:45:38ZPT2MfalseP10675199DT2H48M5.477539Sfalsetrue010trueActive2021-02-19T21:45:38.2966617Z2021-02-19T21:45:38.2966617Z0001-01-01T00:00:00P10675199DT2H48M5.477539SAvailable + headers: + content-type: + - application/atom+xml;type=entry;charset=utf-8 + date: + - Fri, 19 Feb 2021 21:45:38 GMT + etag: + - '637493679375530000' + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000 + transfer-encoding: + - chunked + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/xml + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://servicebustestsbname.servicebus.windows.net/fjruid/subscriptions/eqkovcd?enrich=false&api-version=2017-04 + response: + body: + string: sb://servicebustestjmymjb7sd3.servicebus.windows.net/fjruid/subscriptions/eqkovcd?enrich=false&api-version=2017-04eqkovcd2021-02-19T21:45:38Z2021-02-19T21:45:38ZPT2MfalseP10675199DT2H48M5.477539Sfalsetrue010trueActive2021-02-19T21:45:38.1168535Z2021-02-19T21:45:38.3200131Z2021-02-19T21:45:38.117Z00000P10675199DT2H48M5.477539SAvailable + headers: + content-type: + - application/atom+xml;type=entry;charset=utf-8 + date: + - Fri, 19 Feb 2021 21:45:38 GMT + etag: + - '637493679375530000' + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000 + transfer-encoding: + - chunked + status: + code: 200 + message: OK +- request: + body: ' + + PT12SfalsePT11Mtruetrue14trueActivePT10MAvailable' + headers: + Accept: + - application/xml + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '796' + Content-Type: + - application/atom+xml + If-Match: + - '*' + User-Agent: + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.0 (Windows-10-10.0.19041-SP0) + method: PUT + uri: https://servicebustestsbname.servicebus.windows.net/fjruid/subscriptions/eqkovcd?api-version=2017-04 + response: + body: + string: https://servicebustestjmymjb7sd3.servicebus.windows.net/fjruid/subscriptions/eqkovcd?api-version=2017-04eqkovcd2021-02-19T21:45:38Z2021-02-19T21:45:38ZPT12SfalsePT11Mtruetrue014trueActive2021-02-19T21:45:38.5154426Z2021-02-19T21:45:38.5154426Z0001-01-01T00:00:00PT10MAvailable + headers: + content-type: + - application/atom+xml;type=entry;charset=utf-8 + date: + - Fri, 19 Feb 2021 21:45:38 GMT + etag: + - '637493679375530000' + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000 + transfer-encoding: + - chunked + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/xml + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://servicebustestsbname.servicebus.windows.net/fjruid/subscriptions/eqkovcd?enrich=false&api-version=2017-04 + response: + body: + string: sb://servicebustestjmymjb7sd3.servicebus.windows.net/fjruid/subscriptions/eqkovcd?enrich=false&api-version=2017-04eqkovcd2021-02-19T21:45:38Z2021-02-19T21:45:38ZPT12SfalsePT11Mtruetrue014trueActive2021-02-19T21:45:38.1168535Z2021-02-19T21:45:38.5231856Z2021-02-19T21:45:38.117Z00000PT10MAvailable + headers: + content-type: + - application/atom+xml;type=entry;charset=utf-8 + date: + - Fri, 19 Feb 2021 21:45:38 GMT + etag: + - '637493679375530000' + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000 + transfer-encoding: + - chunked + status: + code: 200 + message: OK +- request: + body: ' + + PT12SfalsePT11Mtruetrue14trueActivesb://servicebustestjmymjb7sd3.servicebus.windows.net/fjruidsb://servicebustestjmymjb7sd3.servicebus.windows.net/fjruidPT10MAvailable' + headers: + Accept: + - application/xml + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '1000' + Content-Type: + - application/atom+xml + If-Match: + - '*' + ServiceBusDlqSupplementaryAuthorization: + - SharedAccessSignature sr=sb%3A%2F%2Fservicebustestjmymjb7sd3.servicebus.windows.net%2Ffjruid&sig=YXKZlLQAbg%2brpNyCwOQA9cg89vN3iL2dISzSxU3hv3c%3d&se=1613774738&skn=RootManageSharedAccessKey + ServiceBusSupplementaryAuthorization: + - SharedAccessSignature sr=sb%3A%2F%2Fservicebustestjmymjb7sd3.servicebus.windows.net%2Ffjruid&sig=YXKZlLQAbg%2brpNyCwOQA9cg89vN3iL2dISzSxU3hv3c%3d&se=1613774738&skn=RootManageSharedAccessKey + User-Agent: + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.0 (Windows-10-10.0.19041-SP0) + method: PUT + uri: https://servicebustestsbname.servicebus.windows.net/fjruid/subscriptions/eqkovcd?api-version=2017-04 + response: + body: + string: https://servicebustestjmymjb7sd3.servicebus.windows.net/fjruid/subscriptions/eqkovcd?api-version=2017-04eqkovcd2021-02-19T21:45:38Z2021-02-19T21:45:38ZPT12SfalsePT11Mtruetrue014trueActivesb://servicebustestjmymjb7sd3.servicebus.windows.net/fjruid2021-02-19T21:45:38.7341636Z2021-02-19T21:45:38.7341636Z0001-01-01T00:00:00sb://servicebustestjmymjb7sd3.servicebus.windows.net/fjruidP10675199DT2H48M5.4775807SAvailable + headers: + content-type: + - application/atom+xml;type=entry;charset=utf-8 + date: + - Fri, 19 Feb 2021 21:45:38 GMT + etag: + - '637493679375530000' + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000 + transfer-encoding: + - chunked + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/xml + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://servicebustestsbname.servicebus.windows.net/fjruid/subscriptions/eqkovcd?enrich=false&api-version=2017-04 + response: + body: + string: sb://servicebustestjmymjb7sd3.servicebus.windows.net/fjruid/subscriptions/eqkovcd?enrich=false&api-version=2017-04eqkovcd2021-02-19T21:45:38Z2021-02-19T21:45:38ZPT12SfalsePT11Mtruetrue014trueActivesb://servicebustestjmymjb7sd3.servicebus.windows.net/fjruid2021-02-19T21:45:38.1168535Z2021-02-19T21:45:38.7575639Z2021-02-19T21:45:38.117Z00000sb://servicebustestjmymjb7sd3.servicebus.windows.net/fjruidP10675199DT2H48M5.4775807SAvailable + headers: + content-type: + - application/atom+xml;type=entry;charset=utf-8 + date: + - Fri, 19 Feb 2021 21:45:38 GMT + etag: + - '637493679375530000' + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000 + transfer-encoding: + - chunked + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/xml + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.0 (Windows-10-10.0.19041-SP0) + method: DELETE + uri: https://servicebustestsbname.servicebus.windows.net/fjruid/subscriptions/eqkovcd?api-version=2017-04 + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Fri, 19 Feb 2021 21:45:38 GMT + etag: + - '637493679375530000' + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/xml + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.0 (Windows-10-10.0.19041-SP0) + method: DELETE + uri: https://servicebustestsbname.servicebus.windows.net/fjruid?api-version=2017-04 + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Fri, 19 Feb 2021 21:45:39 GMT + etag: + - '637493679375530000' + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000 + status: + code: 200 + message: OK +version: 1 diff --git a/sdk/servicebus/azure-servicebus/tests/mgmt_tests/recordings/test_mgmt_topics.test_mgmt_topic_update_dict_error.yaml b/sdk/servicebus/azure-servicebus/tests/mgmt_tests/recordings/test_mgmt_topics.test_mgmt_topic_update_dict_error.yaml new file mode 100644 index 000000000000..ba7daf94722b --- /dev/null +++ b/sdk/servicebus/azure-servicebus/tests/mgmt_tests/recordings/test_mgmt_topics.test_mgmt_topic_update_dict_error.yaml @@ -0,0 +1,104 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/xml + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://servicebustestsbname.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-04 + response: + body: + string: Topicshttps://servicebustestsdxb3qtlfs.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-042021-02-19T21:34:48Z + headers: + content-type: + - application/atom+xml;type=feed;charset=utf-8 + date: + - Fri, 19 Feb 2021 21:34:48 GMT + server: + - Microsoft-HTTPAPI/2.0 + transfer-encoding: + - chunked + status: + code: 200 + message: OK +- request: + body: ' + + ' + headers: + Accept: + - application/xml + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '248' + Content-Type: + - application/atom+xml + User-Agent: + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.0 (Windows-10-10.0.19041-SP0) + method: PUT + uri: https://servicebustestsbname.servicebus.windows.net/dfjdfj?api-version=2017-04 + response: + body: + string: https://servicebustestsdxb3qtlfs.servicebus.windows.net/dfjdfj?api-version=2017-04dfjdfj2021-02-19T21:34:48Z2021-02-19T21:34:49Zservicebustestsdxb3qtlfsP10675199DT2H48M5.4775807S1024falsePT10Mtrue0falsefalseActive2021-02-19T21:34:48.92Z2021-02-19T21:34:49ZtrueP10675199DT2H48M5.4775807SfalseAvailablefalsefalse + headers: + content-type: + - application/atom+xml;type=entry;charset=utf-8 + date: + - Fri, 19 Feb 2021 21:34:49 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: + - application/xml + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.0 (Windows-10-10.0.19041-SP0) + method: DELETE + uri: https://servicebustestsbname.servicebus.windows.net/dfjdfj?api-version=2017-04 + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Fri, 19 Feb 2021 21:34:50 GMT + etag: + - '637493672890000000' + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000 + status: + code: 200 + message: OK +version: 1 diff --git a/sdk/servicebus/azure-servicebus/tests/mgmt_tests/recordings/test_mgmt_topics.test_mgmt_topic_update_dict_success.yaml b/sdk/servicebus/azure-servicebus/tests/mgmt_tests/recordings/test_mgmt_topics.test_mgmt_topic_update_dict_success.yaml new file mode 100644 index 000000000000..5973c1bd0f0c --- /dev/null +++ b/sdk/servicebus/azure-servicebus/tests/mgmt_tests/recordings/test_mgmt_topics.test_mgmt_topic_update_dict_success.yaml @@ -0,0 +1,270 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/xml + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://servicebustestsbname.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-04 + response: + body: + string: Topicshttps://servicebustestsdxb3qtlfs.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-042021-02-19T21:34:50Z + headers: + content-type: + - application/atom+xml;type=feed;charset=utf-8 + date: + - Fri, 19 Feb 2021 21:34:50 GMT + server: + - Microsoft-HTTPAPI/2.0 + transfer-encoding: + - chunked + status: + code: 200 + message: OK +- request: + body: ' + + ' + headers: + Accept: + - application/xml + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '248' + Content-Type: + - application/atom+xml + User-Agent: + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.0 (Windows-10-10.0.19041-SP0) + method: PUT + uri: https://servicebustestsbname.servicebus.windows.net/fjruid?api-version=2017-04 + response: + body: + string: https://servicebustestsdxb3qtlfs.servicebus.windows.net/fjruid?api-version=2017-04fjruid2021-02-19T21:34:51Z2021-02-19T21:34:51Zservicebustestsdxb3qtlfsP10675199DT2H48M5.4775807S1024falsePT10Mtrue0falsefalseActive2021-02-19T21:34:51.427Z2021-02-19T21:34:51.473ZtrueP10675199DT2H48M5.4775807SfalseAvailablefalsefalse + headers: + content-type: + - application/atom+xml;type=entry;charset=utf-8 + date: + - Fri, 19 Feb 2021 21:34:51 GMT + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000 + transfer-encoding: + - chunked + status: + code: 201 + message: Created +- request: + body: ' + + PT2M1024falsePT10Mtrue0ActivetrueP10675199DT2H48M5.477539SfalseAvailablefalse' + headers: + Accept: + - application/xml + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '882' + Content-Type: + - application/atom+xml + If-Match: + - '*' + User-Agent: + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.0 (Windows-10-10.0.19041-SP0) + method: PUT + uri: https://servicebustestsbname.servicebus.windows.net/fjruid?api-version=2017-04 + response: + body: + string: https://servicebustestsdxb3qtlfs.servicebus.windows.net/fjruid?api-version=2017-04fjruid2021-02-19T21:34:52Zservicebustestsdxb3qtlfsPT2M1024falsePT10Mtrue0ActivetrueP10675199DT2H48M5.477539SfalseAvailablefalse + headers: + content-type: + - application/atom+xml;type=entry;charset=utf-8 + date: + - Fri, 19 Feb 2021 21:34:51 GMT + etag: + - '637493672914730000' + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000 + transfer-encoding: + - chunked + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/xml + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://servicebustestsbname.servicebus.windows.net/fjruid?enrich=false&api-version=2017-04 + response: + body: + string: https://servicebustestsdxb3qtlfs.servicebus.windows.net/fjruid?enrich=false&api-version=2017-04fjruid2021-02-19T21:34:51Z2021-02-19T21:34:52Zservicebustestsdxb3qtlfsPT2M1024falsePT10Mtrue0falsefalseActive2021-02-19T21:34:51.427Z2021-02-19T21:34:52.717Z0001-01-01T00:00:00Ztrue000000P10675199DT2H48M5.477539SfalseAvailablefalsefalse + headers: + content-type: + - application/atom+xml;type=entry;charset=utf-8 + date: + - Fri, 19 Feb 2021 21:34:51 GMT + etag: + - '637493672927170000' + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000 + transfer-encoding: + - chunked + status: + code: 200 + message: OK +- request: + body: ' + + PT11M3072falsePT12Mtrue0ActivetruePT10MfalseAvailabletrue' + headers: + Accept: + - application/xml + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '862' + Content-Type: + - application/atom+xml + If-Match: + - '*' + User-Agent: + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.0 (Windows-10-10.0.19041-SP0) + method: PUT + uri: https://servicebustestsbname.servicebus.windows.net/fjruid?api-version=2017-04 + response: + body: + string: https://servicebustestsdxb3qtlfs.servicebus.windows.net/fjruid?api-version=2017-04fjruid2021-02-19T21:34:52Zservicebustestsdxb3qtlfsPT11M3072falsePT12Mtrue0ActivetruePT10MfalseAvailabletrue + headers: + content-type: + - application/atom+xml;type=entry;charset=utf-8 + date: + - Fri, 19 Feb 2021 21:34:52 GMT + etag: + - '637493672927170000' + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000 + transfer-encoding: + - chunked + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/xml + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://servicebustestsbname.servicebus.windows.net/fjruid?enrich=false&api-version=2017-04 + response: + body: + string: https://servicebustestsdxb3qtlfs.servicebus.windows.net/fjruid?enrich=false&api-version=2017-04fjruid2021-02-19T21:34:51Z2021-02-19T21:34:52Zservicebustestsdxb3qtlfsPT11M3072falsePT12Mtrue0falsefalseActive2021-02-19T21:34:51.427Z2021-02-19T21:34:52.977Z0001-01-01T00:00:00Ztrue000000PT10MfalseAvailablefalsetrue + headers: + content-type: + - application/atom+xml;type=entry;charset=utf-8 + date: + - Fri, 19 Feb 2021 21:34:52 GMT + etag: + - '637493672929770000' + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000 + transfer-encoding: + - chunked + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/xml + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.0 (Windows-10-10.0.19041-SP0) + method: DELETE + uri: https://servicebustestsbname.servicebus.windows.net/fjruid?api-version=2017-04 + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Fri, 19 Feb 2021 21:34:53 GMT + etag: + - '637493672929770000' + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000 + status: + code: 200 + message: OK +version: 1 diff --git a/sdk/servicebus/azure-servicebus/tests/mgmt_tests/test_mgmt_queues.py b/sdk/servicebus/azure-servicebus/tests/mgmt_tests/test_mgmt_queues.py index 3084a3913364..a7c96031a227 100644 --- a/sdk/servicebus/azure-servicebus/tests/mgmt_tests/test_mgmt_queues.py +++ b/sdk/servicebus/azure-servicebus/tests/mgmt_tests/test_mgmt_queues.py @@ -477,7 +477,7 @@ def test_queue_properties_constructor(self): @pytest.mark.liveTest @CachedResourceGroupPreparer(name_prefix='servicebustest') @CachedServiceBusNamespacePreparer(name_prefix='servicebustest') - def test_mgmt_queue_update_dict_success(self, servicebus_namespace_connection_string, **kwargs): + def test_mgmt_queue_update_dict_success(self, servicebus_namespace_connection_string, servicebus_namespace, **kwargs): mgmt_service = ServiceBusAdministrationClient.from_connection_string(servicebus_namespace_connection_string) clear_queues(mgmt_service) queue_name = "fjruid" @@ -503,6 +503,8 @@ def test_mgmt_queue_update_dict_success(self, servicebus_namespace_connection_st queue_description_dict["lock_duration"] = datetime.timedelta(seconds=13) queue_description_dict["max_delivery_count"] = 14 queue_description_dict["max_size_in_megabytes"] = 3072 + queue_description_dict["forward_to"] = "sb://{}.servicebus.windows.net/{}".format(servicebus_namespace.name, queue_name) + queue_description_dict["forward_dead_lettered_messages_to"] = "sb://{}.servicebus.windows.net/{}".format(servicebus_namespace.name, queue_name) #queue_description_dict["requires_duplicate_detection"] = True # Read only #queue_description_dict["requires_session"] = True # Cannot be changed after creation @@ -519,6 +521,9 @@ def test_mgmt_queue_update_dict_success(self, servicebus_namespace_connection_st assert queue_description.lock_duration == datetime.timedelta(seconds=13) assert queue_description.max_delivery_count == 14 assert queue_description.max_size_in_megabytes == 3072 + # Note: We endswith to avoid the fact that the servicebus_namespace_name is replacered locally but not in the properties bag, and still test this. + assert queue_description.forward_to.endswith(".servicebus.windows.net/{}".format(queue_name)) + assert queue_description.forward_dead_lettered_messages_to.endswith(".servicebus.windows.net/{}".format(queue_name)) #assert queue_description.requires_duplicate_detection == True #assert queue_description.requires_session == True finally: @@ -530,11 +535,12 @@ def test_mgmt_queue_update_dict_success(self, servicebus_namespace_connection_st def test_mgmt_queue_update_dict_error(self, servicebus_namespace_connection_string, **kwargs): mgmt_service = ServiceBusAdministrationClient.from_connection_string(servicebus_namespace_connection_string) clear_queues(mgmt_service) - queue_name = "fjruid" + queue_name = "dfjdfj" queue_description = mgmt_service.create_queue(queue_name) # send in queue dict without non-name keyword args queue_description_only_name = {"name": queue_name} - with pytest.raises(TypeError): - mgmt_service.update_queue(queue_description_only_name) - - mgmt_service.delete_queue(queue_name) + try: + with pytest.raises(TypeError): + mgmt_service.update_queue(queue_description_only_name) + finally: + mgmt_service.delete_queue(queue_name) diff --git a/sdk/servicebus/azure-servicebus/tests/mgmt_tests/test_mgmt_rules.py b/sdk/servicebus/azure-servicebus/tests/mgmt_tests/test_mgmt_rules.py index 6c9dadff057a..0e4d00fdcb35 100644 --- a/sdk/servicebus/azure-servicebus/tests/mgmt_tests/test_mgmt_rules.py +++ b/sdk/servicebus/azure-servicebus/tests/mgmt_tests/test_mgmt_rules.py @@ -271,8 +271,8 @@ def test_rule_properties_constructor(self): def test_mgmt_rule_update_dict_success(self, servicebus_namespace_connection_string, **kwargs): mgmt_service = ServiceBusAdministrationClient.from_connection_string(servicebus_namespace_connection_string) clear_topics(mgmt_service) - topic_name = "fjrui" - subscription_name = "eqkovc" + topic_name = "fjruid" + subscription_name = "eqkovcd" rule_name = 'rule' sql_filter = SqlRuleFilter("Priority = 'low'") @@ -304,26 +304,27 @@ def test_mgmt_rule_update_dict_success(self, servicebus_namespace_connection_str mgmt_service.delete_subscription(topic_name, subscription_name) mgmt_service.delete_topic(topic_name) - @pytest.mark.liveTest @CachedResourceGroupPreparer(name_prefix='servicebustest') @CachedServiceBusNamespacePreparer(name_prefix='servicebustest') def test_mgmt_rule_update_dict_error(self, servicebus_namespace_connection_string, **kwargs): mgmt_service = ServiceBusAdministrationClient.from_connection_string(servicebus_namespace_connection_string) clear_topics(mgmt_service) - topic_name = "fjrui" - subscription_name = "eqkovc" + topic_name = "fjruid" + subscription_name = "eqkovcd" rule_name = 'rule' sql_filter = SqlRuleFilter("Priority = 'low'") - topic_description = mgmt_service.create_topic(topic_name) - subscription_description = mgmt_service.create_subscription(topic_description.name, subscription_name) - mgmt_service.create_rule(topic_name, subscription_name, rule_name, filter=sql_filter) + try: + topic_description = mgmt_service.create_topic(topic_name) + subscription_description = mgmt_service.create_subscription(topic_description.name, subscription_name) + mgmt_service.create_rule(topic_name, subscription_name, rule_name, filter=sql_filter) - # send in rule dict without non-name keyword args - rule_description_only_name = {"name": topic_name} - with pytest.raises(TypeError): - mgmt_service.update_rule(topic_description.name, subscription_description.name, rule_description_only_name) + # send in rule dict without non-name keyword args + rule_description_only_name = {"name": topic_name} + with pytest.raises(TypeError): + mgmt_service.update_rule(topic_description.name, subscription_description.name, rule_description_only_name) - mgmt_service.delete_rule(topic_name, subscription_name, rule_name) - mgmt_service.delete_subscription(topic_name, subscription_name) - mgmt_service.delete_topic(topic_name) + finally: + mgmt_service.delete_rule(topic_name, subscription_name, rule_name) + mgmt_service.delete_subscription(topic_name, subscription_name) + mgmt_service.delete_topic(topic_name) diff --git a/sdk/servicebus/azure-servicebus/tests/mgmt_tests/test_mgmt_subscriptions.py b/sdk/servicebus/azure-servicebus/tests/mgmt_tests/test_mgmt_subscriptions.py index 5a5f2db55d11..a5833a7a5eee 100644 --- a/sdk/servicebus/azure-servicebus/tests/mgmt_tests/test_mgmt_subscriptions.py +++ b/sdk/servicebus/azure-servicebus/tests/mgmt_tests/test_mgmt_subscriptions.py @@ -308,11 +308,11 @@ def test_subscription_properties_constructor(self): @CachedResourceGroupPreparer(name_prefix='servicebustest') @CachedServiceBusNamespacePreparer(name_prefix='servicebustest') - def test_mgmt_subscription_update_dict_success(self, servicebus_namespace_connection_string, **kwargs): + def test_mgmt_subscription_update_dict_success(self, servicebus_namespace_connection_string, servicebus_namespace, **kwargs): mgmt_service = ServiceBusAdministrationClient.from_connection_string(servicebus_namespace_connection_string) clear_topics(mgmt_service) - topic_name = "fjrui" - subscription_name = "eqkovc" + topic_name = "fjruid" + subscription_name = "eqkovcd" try: topic_description = mgmt_service.create_topic(topic_name) @@ -345,25 +345,36 @@ def test_mgmt_subscription_update_dict_success(self, servicebus_namespace_connec assert subscription_description.lock_duration == datetime.timedelta(seconds=12) # assert topic_description.enable_partitioning == True # assert topic_description.requires_session == True + + # Finally, test forward_to (separately, as it changes auto_delete_on_idle when you enable it.) + subscription_description_dict = dict(subscription_description) + subscription_description_dict["forward_to"] = "sb://{}.servicebus.windows.net/{}".format(servicebus_namespace.name, topic_name) + subscription_description_dict["forward_dead_lettered_messages_to"] = "sb://{}.servicebus.windows.net/{}".format(servicebus_namespace.name, topic_name) + mgmt_service.update_subscription(topic_description.name, subscription_description_dict) + subscription_description = mgmt_service.get_subscription(topic_description.name, subscription_name) + # Note: We endswith to avoid the fact that the servicebus_namespace_name is replacered locally but not in the properties bag, and still test this. + assert subscription_description.forward_to.endswith(".servicebus.windows.net/{}".format(topic_name)) + assert subscription_description.forward_dead_lettered_messages_to.endswith(".servicebus.windows.net/{}".format(topic_name)) + finally: mgmt_service.delete_subscription(topic_name, subscription_name) mgmt_service.delete_topic(topic_name) - @pytest.mark.liveTest @CachedResourceGroupPreparer(name_prefix='servicebustest') @CachedServiceBusNamespacePreparer(name_prefix='servicebustest') def test_mgmt_subscription_update_dict_error(self, servicebus_namespace_connection_string, **kwargs): mgmt_service = ServiceBusAdministrationClient.from_connection_string(servicebus_namespace_connection_string) clear_topics(mgmt_service) - topic_name = "fjrui" - subscription_name = "eqkovc" - - topic_description = mgmt_service.create_topic(topic_name) - subscription_description = mgmt_service.create_subscription(topic_description.name, subscription_name) - # send in subscription dict without non-name keyword args - subscription_description_only_name = {"name": topic_name} - with pytest.raises(TypeError): - mgmt_service.update_subscription(topic_description.name, subscription_description_only_name) + topic_name = "dfjdfj" + subscription_name = "kwqxd" - mgmt_service.delete_subscription(topic_name, subscription_name) - mgmt_service.delete_topic(topic_name) \ No newline at end of file + try: + topic_description = mgmt_service.create_topic(topic_name) + subscription_description = mgmt_service.create_subscription(topic_description.name, subscription_name) + # send in subscription dict without non-name keyword args + subscription_description_only_name = {"name": topic_name} + with pytest.raises(TypeError): + mgmt_service.update_subscription(topic_description.name, subscription_description_only_name) + finally: + mgmt_service.delete_subscription(topic_name, subscription_name) + mgmt_service.delete_topic(topic_name) diff --git a/sdk/servicebus/azure-servicebus/tests/mgmt_tests/test_mgmt_topics.py b/sdk/servicebus/azure-servicebus/tests/mgmt_tests/test_mgmt_topics.py index a2530c8e2838..292c31a6ff0a 100644 --- a/sdk/servicebus/azure-servicebus/tests/mgmt_tests/test_mgmt_topics.py +++ b/sdk/servicebus/azure-servicebus/tests/mgmt_tests/test_mgmt_topics.py @@ -265,7 +265,7 @@ def test_topic_properties_constructor(self): def test_mgmt_topic_update_dict_success(self, servicebus_namespace_connection_string, **kwargs): mgmt_service = ServiceBusAdministrationClient.from_connection_string(servicebus_namespace_connection_string) clear_topics(mgmt_service) - topic_name = "fjrui" + topic_name = "fjruid" try: topic_description = mgmt_service.create_topic(topic_name) @@ -306,17 +306,17 @@ def test_mgmt_topic_update_dict_success(self, servicebus_namespace_connection_st finally: mgmt_service.delete_topic(topic_name) - @pytest.mark.liveTest @CachedResourceGroupPreparer(name_prefix='servicebustest') @CachedServiceBusNamespacePreparer(name_prefix='servicebustest') def test_mgmt_topic_update_dict_error(self, servicebus_namespace_connection_string, **kwargs): mgmt_service = ServiceBusAdministrationClient.from_connection_string(servicebus_namespace_connection_string) clear_topics(mgmt_service) - topic_name = "fjruid" - topic_description = mgmt_service.create_topic(topic_name) - # send in topic dict without non-name keyword args - topic_description_only_name = {"name": topic_name} - with pytest.raises(TypeError): - mgmt_service.update_topic(topic_description_only_name) - - mgmt_service.delete_topic(topic_name) + topic_name = "dfjdfj" + try: + topic_description = mgmt_service.create_topic(topic_name) + # send in topic dict without non-name keyword args + topic_description_only_name = {"name": topic_name} + with pytest.raises(TypeError): + mgmt_service.update_topic(topic_description_only_name) + finally: + mgmt_service.delete_topic(topic_name) From 3f6078378fc5fe516d58f2e86cc9609eef672424 Mon Sep 17 00:00:00 2001 From: Swathi Pillalamarri Date: Fri, 19 Feb 2021 17:23:29 -0600 Subject: [PATCH 18/30] fix mypy/pylint --- .../azure/servicebus/_common/message.py | 11 +++-------- .../azure/servicebus/_common/utils.py | 6 +++--- .../azure/servicebus/_servicebus_sender.py | 4 ++-- .../servicebus/aio/_servicebus_sender_async.py | 2 +- .../aio/management/_management_client_async.py | 2 +- .../azure/servicebus/management/_utils.py | 14 +++++++------- 6 files changed, 17 insertions(+), 22 deletions(-) diff --git a/sdk/servicebus/azure-servicebus/azure/servicebus/_common/message.py b/sdk/servicebus/azure-servicebus/azure/servicebus/_common/message.py index 3b336553885f..58763d578593 100644 --- a/sdk/servicebus/azure-servicebus/azure/servicebus/_common/message.py +++ b/sdk/servicebus/azure-servicebus/azure/servicebus/_common/message.py @@ -36,19 +36,14 @@ MESSAGE_PROPERTY_MAX_LENGTH, ) +from ..exceptions import MessageSizeExceededError from .utils import ( utc_from_timestamp, utc_now, transform_messages_to_sendable_if_needed, trace_message, + create_messages_from_dicts_if_needed ) -from ..exceptions import ( - MessageAlreadySettled, - MessageLockLostError, - SessionLockLostError, - MessageSizeExceededError, - ServiceBusError) -from .utils import utc_from_timestamp, utc_now, transform_messages_to_sendable_if_needed, create_messages_from_dicts_if_needed if TYPE_CHECKING: from ..aio._servicebus_receiver_async import ( @@ -589,7 +584,7 @@ def add_message(self, message): def _add(self, message, parent_span=None): # type: (ServiceBusMessage, AbstractSpan) -> None """Actual add implementation. The shim exists to hide the internal parameters such as parent_span.""" - + message = create_messages_from_dicts_if_needed(message, ServiceBusMessage)[0] message = transform_messages_to_sendable_if_needed(message) trace_message( diff --git a/sdk/servicebus/azure-servicebus/azure/servicebus/_common/utils.py b/sdk/servicebus/azure-servicebus/azure/servicebus/_common/utils.py index 522b727fab6a..663cc464f5a2 100644 --- a/sdk/servicebus/azure-servicebus/azure/servicebus/_common/utils.py +++ b/sdk/servicebus/azure-servicebus/azure/servicebus/_common/utils.py @@ -9,7 +9,7 @@ import logging import functools import platform -from typing import Optional, Dict, List, Tuple, Iterable, Type, TYPE_CHECKING, Union, Iterator +from typing import Dict, List, Iterable, TYPE_CHECKING, Union from contextlib import contextmanager from msrest.serialization import UTC @@ -47,7 +47,7 @@ from azure.core.tracing import AbstractSpan from .receiver_mixins import ReceiverMixin from .._servicebus_session import BaseSession - + # pylint: disable=unused-import, ungrouped-imports DictMessageType = Union[ Dict, @@ -210,7 +210,7 @@ def create_messages_from_dicts_if_needed(messages, message_type): This method is used to convert dict representations of messages and to a list of ServiceBusMessage objects or ServiceBusBatchMessage. """ - # type: (DictMessageType) -> Union[List[azure.servicebus.ServiceBusMessage], azure.servicebus.ServiceBusMessageBatch] + # type: (DictMessageType) -> Union[List[ServiceBusMessage], ServiceBusMessageBatch] if isinstance(messages, list): for index, message in enumerate(messages): if isinstance(message, dict): diff --git a/sdk/servicebus/azure-servicebus/azure/servicebus/_servicebus_sender.py b/sdk/servicebus/azure-servicebus/azure/servicebus/_servicebus_sender.py index 0ec9ccae95c1..a99877a50887 100644 --- a/sdk/servicebus/azure-servicebus/azure/servicebus/_servicebus_sender.py +++ b/sdk/servicebus/azure-servicebus/azure/servicebus/_servicebus_sender.py @@ -368,9 +368,9 @@ def send_messages(self, message, **kwargs): :caption: Send message. """ - + self._check_live() - messages = create_messages_from_dicts_if_needed(message, ServiceBusMessage) + message = create_messages_from_dicts_if_needed(message, ServiceBusMessage) timeout = kwargs.pop("timeout", None) if timeout is not None and timeout <= 0: raise ValueError("The timeout must be greater than 0.") diff --git a/sdk/servicebus/azure-servicebus/azure/servicebus/aio/_servicebus_sender_async.py b/sdk/servicebus/azure-servicebus/azure/servicebus/aio/_servicebus_sender_async.py index e50deace0360..85edd20ac3bb 100644 --- a/sdk/servicebus/azure-servicebus/azure/servicebus/aio/_servicebus_sender_async.py +++ b/sdk/servicebus/azure-servicebus/azure/servicebus/aio/_servicebus_sender_async.py @@ -312,7 +312,7 @@ async def send_messages( """ self._check_live() - messages = create_messages_from_dicts_if_needed(message, ServiceBusMessage) + message = create_messages_from_dicts_if_needed(message, ServiceBusMessage) timeout = kwargs.pop("timeout", None) if timeout is not None and timeout <= 0: raise ValueError("The timeout must be greater than 0.") diff --git a/sdk/servicebus/azure-servicebus/azure/servicebus/aio/management/_management_client_async.py b/sdk/servicebus/azure-servicebus/azure/servicebus/aio/management/_management_client_async.py index f586987ce560..bbb5621643e2 100644 --- a/sdk/servicebus/azure-servicebus/azure/servicebus/aio/management/_management_client_async.py +++ b/sdk/servicebus/azure-servicebus/azure/servicebus/aio/management/_management_client_async.py @@ -884,7 +884,7 @@ async def update_subscription( from `get_subscription`, `update_subscription` or `list_subscription` and has the updated properties. :rtype: None """ - + _validate_entity_name_type(topic_name, display_name="topic_name") subscription = create_properties_from_dicts_if_needed(subscription, SubscriptionProperties) diff --git a/sdk/servicebus/azure-servicebus/azure/servicebus/management/_utils.py b/sdk/servicebus/azure-servicebus/azure/servicebus/management/_utils.py index 7db536280647..94c0d4506acf 100644 --- a/sdk/servicebus/azure-servicebus/azure/servicebus/management/_utils.py +++ b/sdk/servicebus/azure-servicebus/azure/servicebus/management/_utils.py @@ -3,11 +3,14 @@ # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- from datetime import datetime, timedelta -from typing import TYPE_CHECKING, cast, Dict, List, Union +from typing import TYPE_CHECKING, cast, Union from xml.etree.ElementTree import ElementTree, SubElement, QName +import logging +from azure.servicebus.management import _constants as constants + import isodate import six -import logging +from ._handle_response_error import _handle_response_error if TYPE_CHECKING: # pylint: disable=unused-import, ungrouped-imports from ._models import QueueProperties, TopicProperties, \ @@ -33,9 +36,6 @@ except ImportError: import urlparse # type: ignore # for python 2.7 -from azure.servicebus.management import _constants as constants -from ._handle_response_error import _handle_response_error - _log = logging.getLogger(__name__) def extract_rule_data_template(feed_class, convert, feed_element): @@ -326,10 +326,10 @@ def _validate_topic_subscription_and_rule_types( type(topic_name), type(subscription_name), type(rule_name) ) ) - + def create_properties_from_dicts_if_needed(properties, sb_resource_type): """ - This method is used to create a properties object given the + This method is used to create a properties object given the resource properties type and its corresponding dict representation. """ # type: (dict, DictPropertiesType) -> (DictPropertiesReturnType) From c8e20a32f23fd7a084f16f0efda107cd0ba4b41c Mon Sep 17 00:00:00 2001 From: Swathi Pillalamarri Date: Mon, 22 Feb 2021 12:30:46 -0600 Subject: [PATCH 19/30] adams comments + update recordings --- .../azure/servicebus/_common/message.py | 5 +- .../azure/servicebus/_common/utils.py | 12 +- .../azure/servicebus/_servicebus_sender.py | 6 +- .../aio/_servicebus_sender_async.py | 4 +- .../management/_management_client_async.py | 10 +- .../management/_management_client.py | 10 +- .../azure/servicebus/management/_utils.py | 4 +- ...st_mgmt_queue_async_update_dict_error.yaml | 26 ++-- ..._mgmt_queue_async_update_dict_success.yaml | 88 +++++------ ...est_mgmt_rule_async_update_dict_error.yaml | 66 ++++----- ...t_mgmt_rule_async_update_dict_success.yaml | 112 +++++++------- ..._subscription_async_update_dict_error.yaml | 46 +++--- ...ubscription_async_update_dict_success.yaml | 138 +++++++++--------- ...st_mgmt_topic_async_update_dict_error.yaml | 26 ++-- ..._mgmt_topic_async_update_dict_success.yaml | 78 +++++----- ...ues.test_mgmt_queue_update_dict_error.yaml | 20 +-- ...s.test_mgmt_queue_update_dict_success.yaml | 74 +++++----- ...ules.test_mgmt_rule_update_dict_error.yaml | 52 +++---- ...es.test_mgmt_rule_update_dict_success.yaml | 90 ++++++------ ...t_mgmt_subscription_update_dict_error.yaml | 36 ++--- ...mgmt_subscription_update_dict_success.yaml | 116 +++++++-------- ...ics.test_mgmt_topic_update_dict_error.yaml | 20 +-- ...s.test_mgmt_topic_update_dict_success.yaml | 64 ++++---- 23 files changed, 545 insertions(+), 558 deletions(-) diff --git a/sdk/servicebus/azure-servicebus/azure/servicebus/_common/message.py b/sdk/servicebus/azure-servicebus/azure/servicebus/_common/message.py index 58763d578593..42984190e11a 100644 --- a/sdk/servicebus/azure-servicebus/azure/servicebus/_common/message.py +++ b/sdk/servicebus/azure-servicebus/azure/servicebus/_common/message.py @@ -538,7 +538,7 @@ def __len__(self): def _from_list(self, messages, parent_span=None): # type: (Iterable[ServiceBusMessage], AbstractSpan) -> None for each in messages: - if not isinstance(each, ServiceBusMessage) and not isinstance(each, dict): + if not isinstance(each, (ServiceBusMessage, dict)): raise TypeError( "Only ServiceBusMessage or an iterable object containing ServiceBusMessage " "objects are accepted. Received instead: {}".format( @@ -585,7 +585,7 @@ def _add(self, message, parent_span=None): # type: (ServiceBusMessage, AbstractSpan) -> None """Actual add implementation. The shim exists to hide the internal parameters such as parent_span.""" - message = create_messages_from_dicts_if_needed(message, ServiceBusMessage)[0] + message = create_messages_from_dicts_if_needed(message, ServiceBusMessage) message = transform_messages_to_sendable_if_needed(message) trace_message( message, parent_span @@ -633,7 +633,6 @@ class ServiceBusReceivedMessage(ServiceBusMessage): def __init__(self, message, receive_mode=ServiceBusReceiveMode.PEEK_LOCK, **kwargs): # type: (uamqp.message.Message, Union[ServiceBusReceiveMode, str], Any) -> None - message = create_messages_from_dicts_if_needed(message, ServiceBusMessage) super(ServiceBusReceivedMessage, self).__init__(None, message=message) # type: ignore self._settled = receive_mode == ServiceBusReceiveMode.RECEIVE_AND_DELETE self._received_timestamp_utc = utc_now() diff --git a/sdk/servicebus/azure-servicebus/azure/servicebus/_common/utils.py b/sdk/servicebus/azure-servicebus/azure/servicebus/_common/utils.py index 663cc464f5a2..5ef8fa36fec3 100644 --- a/sdk/servicebus/azure-servicebus/azure/servicebus/_common/utils.py +++ b/sdk/servicebus/azure-servicebus/azure/servicebus/_common/utils.py @@ -210,20 +210,14 @@ def create_messages_from_dicts_if_needed(messages, message_type): This method is used to convert dict representations of messages and to a list of ServiceBusMessage objects or ServiceBusBatchMessage. """ - # type: (DictMessageType) -> Union[List[ServiceBusMessage], ServiceBusMessageBatch] + # type: (DictMessageType) -> Union[List[ServiceBusMessage], ServiceBusMessage, ServiceBusMessageBatch] if isinstance(messages, list): for index, message in enumerate(messages): if isinstance(message, dict): messages[index] = message_type(**message) + return [(message_type(**messages) if isinstance(messages, dict) else message) for message in messages] - if isinstance(messages, dict): - temp_messages = message_type(**messages) - messages = [temp_messages] - - if isinstance(messages, message_type): - messages = [messages] - - return messages + return message_type(**messages) if isinstance(messages, dict) else messages def strip_protocol_from_uri(uri): # type: (str) -> str diff --git a/sdk/servicebus/azure-servicebus/azure/servicebus/_servicebus_sender.py b/sdk/servicebus/azure-servicebus/azure/servicebus/_servicebus_sender.py index a99877a50887..216deab28946 100644 --- a/sdk/servicebus/azure-servicebus/azure/servicebus/_servicebus_sender.py +++ b/sdk/servicebus/azure-servicebus/azure/servicebus/_servicebus_sender.py @@ -398,11 +398,9 @@ def send_messages(self, message, **kwargs): isinstance(message, ServiceBusMessageBatch) and len(message) == 0 ): # pylint: disable=len-as-condition return # Short circuit noop if an empty list or batch is provided. - if not isinstance(message, ServiceBusMessageBatch) and not isinstance( - message, ServiceBusMessage - ): + if not isinstance(message, (ServiceBusMessageBatch, ServiceBusMessage)): raise TypeError( - "Can only send azure.servicebus. " + "Can only send azure.servicebus. " "or lists of ServiceBusMessage." ) diff --git a/sdk/servicebus/azure-servicebus/azure/servicebus/aio/_servicebus_sender_async.py b/sdk/servicebus/azure-servicebus/azure/servicebus/aio/_servicebus_sender_async.py index 85edd20ac3bb..950c2763f235 100644 --- a/sdk/servicebus/azure-servicebus/azure/servicebus/aio/_servicebus_sender_async.py +++ b/sdk/servicebus/azure-servicebus/azure/servicebus/aio/_servicebus_sender_async.py @@ -338,9 +338,7 @@ async def send_messages( isinstance(message, ServiceBusMessageBatch) and len(message) == 0 ): # pylint: disable=len-as-condition return # Short circuit noop if an empty list or batch is provided. - if not isinstance(message, ServiceBusMessageBatch) and not isinstance( - message, ServiceBusMessage - ): + if not isinstance(message, (ServiceBusMessageBatch, ServiceBusMessage)): raise TypeError( "Can only send azure.servicebus. " "or lists of ServiceBusMessage." diff --git a/sdk/servicebus/azure-servicebus/azure/servicebus/aio/management/_management_client_async.py b/sdk/servicebus/azure-servicebus/azure/servicebus/aio/management/_management_client_async.py index bbb5621643e2..064fa0506177 100644 --- a/sdk/servicebus/azure-servicebus/azure/servicebus/aio/management/_management_client_async.py +++ b/sdk/servicebus/azure-servicebus/azure/servicebus/aio/management/_management_client_async.py @@ -77,7 +77,7 @@ from ...management._utils import ( deserialize_rule_key_values, serialize_rule_key_values, - create_properties_from_dicts_if_needed, + create_properties_from_dict_if_needed, _validate_entity_name_type, _validate_topic_and_subscription_types, _validate_topic_subscription_and_rule_types, @@ -412,7 +412,7 @@ async def update_queue(self, queue: QueueProperties, **kwargs) -> None: :rtype: None """ - queue = create_properties_from_dicts_if_needed(queue, QueueProperties) + queue = create_properties_from_dict_if_needed(queue, QueueProperties) to_update = queue._to_internal_entity() to_update.default_message_time_to_live = avoid_timedelta_overflow( @@ -639,7 +639,7 @@ async def update_topic(self, topic: TopicProperties, **kwargs) -> None: :rtype: None """ - topic = create_properties_from_dicts_if_needed(topic, TopicProperties) + topic = create_properties_from_dict_if_needed(topic, TopicProperties) to_update = topic._to_internal_entity() to_update.default_message_time_to_live = avoid_timedelta_overflow( @@ -887,7 +887,7 @@ async def update_subscription( _validate_entity_name_type(topic_name, display_name="topic_name") - subscription = create_properties_from_dicts_if_needed(subscription, SubscriptionProperties) + subscription = create_properties_from_dict_if_needed(subscription, SubscriptionProperties) to_update = subscription._to_internal_entity() to_update.default_message_time_to_live = avoid_timedelta_overflow( @@ -1085,7 +1085,7 @@ async def update_rule( """ _validate_topic_and_subscription_types(topic_name, subscription_name) - rule = create_properties_from_dicts_if_needed(rule, RuleProperties) + rule = create_properties_from_dict_if_needed(rule, RuleProperties) to_update = rule._to_internal_entity() create_entity_body = CreateRuleBody( diff --git a/sdk/servicebus/azure-servicebus/azure/servicebus/management/_management_client.py b/sdk/servicebus/azure-servicebus/azure/servicebus/management/_management_client.py index ea97f578b035..3600755c82d7 100644 --- a/sdk/servicebus/azure-servicebus/azure/servicebus/management/_management_client.py +++ b/sdk/servicebus/azure-servicebus/azure/servicebus/management/_management_client.py @@ -46,7 +46,7 @@ deserialize_rule_key_values, serialize_rule_key_values, extract_rule_data_template, - create_properties_from_dicts_if_needed, + create_properties_from_dict_if_needed, _validate_entity_name_type, _validate_topic_and_subscription_types, _validate_topic_subscription_and_rule_types, @@ -405,7 +405,7 @@ def update_queue(self, queue, **kwargs): :rtype: None """ - queue = create_properties_from_dicts_if_needed(queue, QueueProperties) + queue = create_properties_from_dict_if_needed(queue, QueueProperties) to_update = queue._to_internal_entity() to_update.default_message_time_to_live = avoid_timedelta_overflow( @@ -634,7 +634,7 @@ def update_topic(self, topic, **kwargs): :rtype: None """ - topic = create_properties_from_dicts_if_needed(topic, TopicProperties) + topic = create_properties_from_dict_if_needed(topic, TopicProperties) to_update = topic._to_internal_entity() to_update.default_message_time_to_live = ( @@ -890,7 +890,7 @@ def update_subscription(self, topic_name, subscription, **kwargs): _validate_entity_name_type(topic_name, display_name="topic_name") - subscription = create_properties_from_dicts_if_needed(subscription, SubscriptionProperties) + subscription = create_properties_from_dict_if_needed(subscription, SubscriptionProperties) to_update = subscription._to_internal_entity() to_update.default_message_time_to_live = avoid_timedelta_overflow( @@ -1082,7 +1082,7 @@ def update_rule(self, topic_name, subscription_name, rule, **kwargs): """ _validate_topic_and_subscription_types(topic_name, subscription_name) - rule = create_properties_from_dicts_if_needed(rule, RuleProperties) + rule = create_properties_from_dict_if_needed(rule, RuleProperties) to_update = rule._to_internal_entity() create_entity_body = CreateRuleBody( diff --git a/sdk/servicebus/azure-servicebus/azure/servicebus/management/_utils.py b/sdk/servicebus/azure-servicebus/azure/servicebus/management/_utils.py index 94c0d4506acf..df21a8e00fcd 100644 --- a/sdk/servicebus/azure-servicebus/azure/servicebus/management/_utils.py +++ b/sdk/servicebus/azure-servicebus/azure/servicebus/management/_utils.py @@ -36,8 +36,6 @@ except ImportError: import urlparse # type: ignore # for python 2.7 -_log = logging.getLogger(__name__) - def extract_rule_data_template(feed_class, convert, feed_element): """Special version of function extrat_data_template for Rule. @@ -327,7 +325,7 @@ def _validate_topic_subscription_and_rule_types( ) ) -def create_properties_from_dicts_if_needed(properties, sb_resource_type): +def create_properties_from_dict_if_needed(properties, sb_resource_type): """ This method is used to create a properties object given the resource properties type and its corresponding dict representation. diff --git a/sdk/servicebus/azure-servicebus/tests/async_tests/mgmt_tests/recordings/test_mgmt_queues_async.test_mgmt_queue_async_update_dict_error.yaml b/sdk/servicebus/azure-servicebus/tests/async_tests/mgmt_tests/recordings/test_mgmt_queues_async.test_mgmt_queue_async_update_dict_error.yaml index b03c75c3b2ae..87792d05336d 100644 --- a/sdk/servicebus/azure-servicebus/tests/async_tests/mgmt_tests/recordings/test_mgmt_queues_async.test_mgmt_queue_async_update_dict_error.yaml +++ b/sdk/servicebus/azure-servicebus/tests/async_tests/mgmt_tests/recordings/test_mgmt_queues_async.test_mgmt_queue_async_update_dict_error.yaml @@ -10,17 +10,17 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/$Resources/queues?$skip=0&$top=100&api-version=2017-04 response: body: - string: Queueshttps://servicebustestlp3pa4rlgd.servicebus.windows.net/$Resources/queues?$skip=0&$top=100&api-version=2017-042021-02-19T21:38:14Z + string: Queueshttps://servicebustestxfkligz3nn.servicebus.windows.net/$Resources/queues?$skip=0&$top=100&api-version=2017-042021-02-22T17:54:05Z headers: content-type: application/atom+xml;type=feed;charset=utf-8 - date: Fri, 19 Feb 2021 21:38:14 GMT + date: Mon, 22 Feb 2021 17:54:04 GMT server: Microsoft-HTTPAPI/2.0 transfer-encoding: chunked status: code: 200 message: OK - url: https://servicebustestlp3pa4rlgd.servicebus.windows.net/$Resources/queues?$skip=0&$top=100&api-version=2017-04 + url: https://servicebustestxfkligz3nn.servicebus.windows.net/$Resources/queues?$skip=0&$top=100&api-version=2017-04 - request: body: ' @@ -39,21 +39,21 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjruid?api-version=2017-04 response: body: - string: https://servicebustestlp3pa4rlgd.servicebus.windows.net/fjruid?api-version=2017-04fjruid2021-02-19T21:38:15Z2021-02-19T21:38:15Zservicebustestlp3pa4rlgdhttps://servicebustestxfkligz3nn.servicebus.windows.net/fjruid?api-version=2017-04fjruid2021-02-22T17:54:05Z2021-02-22T17:54:05Zservicebustestxfkligz3nnPT1M1024falsefalseP10675199DT2H48M5.4775807SfalsePT10M10true00falseActive2021-02-19T21:38:15.15Z2021-02-19T21:38:15.187ZtrueP10675199DT2H48M5.4775807SfalseAvailablefalse + xmlns:i="http://www.w3.org/2001/XMLSchema-instance">PT1M1024falsefalseP10675199DT2H48M5.4775807SfalsePT10M10true00falseActive2021-02-22T17:54:05.687Z2021-02-22T17:54:05.72ZtrueP10675199DT2H48M5.4775807SfalseAvailablefalse headers: content-type: application/atom+xml;type=entry;charset=utf-8 - date: Fri, 19 Feb 2021 21:38:15 GMT + date: Mon, 22 Feb 2021 17:54:05 GMT server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 transfer-encoding: chunked status: code: 201 message: Created - url: https://servicebustestlp3pa4rlgd.servicebus.windows.net/fjruid?api-version=2017-04 + url: https://servicebustestxfkligz3nn.servicebus.windows.net/fjruid?api-version=2017-04 - request: body: null headers: @@ -68,12 +68,12 @@ interactions: string: '' headers: content-length: '0' - date: Fri, 19 Feb 2021 21:38:16 GMT - etag: '637493674951870000' + date: Mon, 22 Feb 2021 17:54:06 GMT + etag: '637496132457200000' server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 status: code: 200 message: OK - url: https://servicebustestlp3pa4rlgd.servicebus.windows.net/fjruid?api-version=2017-04 + url: https://servicebustestxfkligz3nn.servicebus.windows.net/fjruid?api-version=2017-04 version: 1 diff --git a/sdk/servicebus/azure-servicebus/tests/async_tests/mgmt_tests/recordings/test_mgmt_queues_async.test_mgmt_queue_async_update_dict_success.yaml b/sdk/servicebus/azure-servicebus/tests/async_tests/mgmt_tests/recordings/test_mgmt_queues_async.test_mgmt_queue_async_update_dict_success.yaml index 2192b72f9a8d..49864f67a5b3 100644 --- a/sdk/servicebus/azure-servicebus/tests/async_tests/mgmt_tests/recordings/test_mgmt_queues_async.test_mgmt_queue_async_update_dict_success.yaml +++ b/sdk/servicebus/azure-servicebus/tests/async_tests/mgmt_tests/recordings/test_mgmt_queues_async.test_mgmt_queue_async_update_dict_success.yaml @@ -10,17 +10,17 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/$Resources/queues?$skip=0&$top=100&api-version=2017-04 response: body: - string: Queueshttps://servicebustestlp3pa4rlgd.servicebus.windows.net/$Resources/queues?$skip=0&$top=100&api-version=2017-042021-02-19T21:38:16Z + string: Queueshttps://servicebustestxfkligz3nn.servicebus.windows.net/$Resources/queues?$skip=0&$top=100&api-version=2017-042021-02-22T17:54:07Z headers: content-type: application/atom+xml;type=feed;charset=utf-8 - date: Fri, 19 Feb 2021 21:38:15 GMT + date: Mon, 22 Feb 2021 17:54:07 GMT server: Microsoft-HTTPAPI/2.0 transfer-encoding: chunked status: code: 200 message: OK - url: https://servicebustestlp3pa4rlgd.servicebus.windows.net/$Resources/queues?$skip=0&$top=100&api-version=2017-04 + url: https://servicebustestxfkligz3nn.servicebus.windows.net/$Resources/queues?$skip=0&$top=100&api-version=2017-04 - request: body: ' @@ -39,21 +39,21 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjruid?api-version=2017-04 response: body: - string: https://servicebustestlp3pa4rlgd.servicebus.windows.net/fjruid?api-version=2017-04fjruid2021-02-19T21:38:17Z2021-02-19T21:38:17Zservicebustestlp3pa4rlgdhttps://servicebustestxfkligz3nn.servicebus.windows.net/fjruid?api-version=2017-04fjruid2021-02-22T17:54:07Z2021-02-22T17:54:07Zservicebustestxfkligz3nnPT1M1024falsefalseP10675199DT2H48M5.4775807SfalsePT10M10true00falseActive2021-02-19T21:38:17.253Z2021-02-19T21:38:17.33ZtrueP10675199DT2H48M5.4775807SfalseAvailablefalse + xmlns:i="http://www.w3.org/2001/XMLSchema-instance">PT1M1024falsefalseP10675199DT2H48M5.4775807SfalsePT10M10true00falseActive2021-02-22T17:54:07.837Z2021-02-22T17:54:07.867ZtrueP10675199DT2H48M5.4775807SfalseAvailablefalse headers: content-type: application/atom+xml;type=entry;charset=utf-8 - date: Fri, 19 Feb 2021 21:38:16 GMT + date: Mon, 22 Feb 2021 17:54:08 GMT server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 transfer-encoding: chunked status: code: 201 message: Created - url: https://servicebustestlp3pa4rlgd.servicebus.windows.net/fjruid?api-version=2017-04 + url: https://servicebustestxfkligz3nn.servicebus.windows.net/fjruid?api-version=2017-04 - request: body: ' @@ -75,22 +75,22 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjruid?api-version=2017-04 response: body: - string: https://servicebustestlp3pa4rlgd.servicebus.windows.net/fjruid?api-version=2017-04fjruid2021-02-19T21:38:17Zservicebustestlp3pa4rlgdhttps://servicebustestxfkligz3nn.servicebus.windows.net/fjruid?api-version=2017-04fjruid2021-02-22T17:54:08Zservicebustestxfkligz3nnPT2M1024falsefalseP10675199DT2H48M5.477539SfalsePT10M10trueActiveP10675199DT2H48M5.477539SfalseAvailablefalse headers: content-type: application/atom+xml;type=entry;charset=utf-8 - date: Fri, 19 Feb 2021 21:38:17 GMT - etag: '637493674973300000' + date: Mon, 22 Feb 2021 17:54:08 GMT + etag: '637496132478670000' server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 transfer-encoding: chunked status: code: 200 message: OK - url: https://servicebustestlp3pa4rlgd.servicebus.windows.net/fjruid?api-version=2017-04 + url: https://servicebustestxfkligz3nn.servicebus.windows.net/fjruid?api-version=2017-04 - request: body: null headers: @@ -102,29 +102,29 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjruid?enrich=false&api-version=2017-04 response: body: - string: https://servicebustestlp3pa4rlgd.servicebus.windows.net/fjruid?enrich=false&api-version=2017-04fjruid2021-02-19T21:38:17Z2021-02-19T21:38:17Zservicebustestlp3pa4rlgdhttps://servicebustestxfkligz3nn.servicebus.windows.net/fjruid?enrich=false&api-version=2017-04fjruid2021-02-22T17:54:07Z2021-02-22T17:54:08Zservicebustestxfkligz3nnPT2M1024falsefalseP10675199DT2H48M5.477539SfalsePT10M10true00falseActive2021-02-19T21:38:17.253Z2021-02-19T21:38:17.913Z0001-01-01T00:00:00ZtruePT2M1024falsefalseP10675199DT2H48M5.477539SfalsePT10M10true00falseActive2021-02-22T17:54:07.837Z2021-02-22T17:54:08.383Z0001-01-01T00:00:00Ztrue00000P10675199DT2H48M5.477539SfalseAvailablefalse headers: content-type: application/atom+xml;type=entry;charset=utf-8 - date: Fri, 19 Feb 2021 21:38:17 GMT - etag: '637493674979130000' + date: Mon, 22 Feb 2021 17:54:08 GMT + etag: '637496132483830000' server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 transfer-encoding: chunked status: code: 200 message: OK - url: https://servicebustestlp3pa4rlgd.servicebus.windows.net/fjruid?enrich=false&api-version=2017-04 + url: https://servicebustestxfkligz3nn.servicebus.windows.net/fjruid?enrich=false&api-version=2017-04 - request: body: ' PT13S3072falsefalsePT11MtruePT12M14trueActivePT10MfalseAvailabletruesb://servicebustestlp3pa4rlgd.servicebus.windows.net/fjruidsb://servicebustestlp3pa4rlgd.servicebus.windows.net/fjruid' + />ActivePT10MfalseAvailabletruesb://servicebustestxfkligz3nn.servicebus.windows.net/fjruidsb://servicebustestxfkligz3nn.servicebus.windows.net/fjruid' headers: Accept: - application/xml @@ -135,31 +135,31 @@ interactions: If-Match: - '*' ServiceBusDlqSupplementaryAuthorization: - - SharedAccessSignature sr=sb%3A%2F%2Fservicebustestlp3pa4rlgd.servicebus.windows.net%2Ffjruid&sig=BmFvnE9myuwhF5KaMx5bj0IXvSiSJCdGqQGF9%2ffL2g8%3d&se=1613774298&skn=RootManageSharedAccessKey + - SharedAccessSignature sr=sb%3A%2F%2Fservicebustestxfkligz3nn.servicebus.windows.net%2Ffjruid&sig=vGKKDQMgSj7QgD9NxZyb%2bBQcJGzdVCrHyNcMQA%2fxiZg%3d&se=1614020048&skn=RootManageSharedAccessKey ServiceBusSupplementaryAuthorization: - - SharedAccessSignature sr=sb%3A%2F%2Fservicebustestlp3pa4rlgd.servicebus.windows.net%2Ffjruid&sig=BmFvnE9myuwhF5KaMx5bj0IXvSiSJCdGqQGF9%2ffL2g8%3d&se=1613774298&skn=RootManageSharedAccessKey + - SharedAccessSignature sr=sb%3A%2F%2Fservicebustestxfkligz3nn.servicebus.windows.net%2Ffjruid&sig=vGKKDQMgSj7QgD9NxZyb%2bBQcJGzdVCrHyNcMQA%2fxiZg%3d&se=1614020048&skn=RootManageSharedAccessKey User-Agent: - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.0 (Windows-10-10.0.19041-SP0) method: PUT uri: https://servicebustestsbname.servicebus.windows.net/fjruid?api-version=2017-04 response: body: - string: https://servicebustestlp3pa4rlgd.servicebus.windows.net/fjruid?api-version=2017-04fjruid2021-02-19T21:38:18Zservicebustestlp3pa4rlgdhttps://servicebustestxfkligz3nn.servicebus.windows.net/fjruid?api-version=2017-04fjruid2021-02-22T17:54:08Zservicebustestxfkligz3nnPT13S3072falsefalsePT11MtruePT12M14trueActivePT10MfalseAvailabletruesb://servicebustestlp3pa4rlgd.servicebus.windows.net/fjruidsb://servicebustestlp3pa4rlgd.servicebus.windows.net/fjruid + xmlns:i="http://www.w3.org/2001/XMLSchema-instance">PT13S3072falsefalsePT11MtruePT12M14trueActivePT10MfalseAvailabletruesb://servicebustestxfkligz3nn.servicebus.windows.net/fjruidsb://servicebustestxfkligz3nn.servicebus.windows.net/fjruid headers: content-type: application/atom+xml;type=entry;charset=utf-8 - date: Fri, 19 Feb 2021 21:38:17 GMT - etag: '637493674979130000' + date: Mon, 22 Feb 2021 17:54:08 GMT + etag: '637496132483830000' server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 transfer-encoding: chunked status: code: 200 message: OK - url: https://servicebustestlp3pa4rlgd.servicebus.windows.net/fjruid?api-version=2017-04 + url: https://servicebustestxfkligz3nn.servicebus.windows.net/fjruid?api-version=2017-04 - request: body: null headers: @@ -171,23 +171,23 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjruid?enrich=false&api-version=2017-04 response: body: - string: https://servicebustestlp3pa4rlgd.servicebus.windows.net/fjruid?enrich=false&api-version=2017-04fjruid2021-02-19T21:38:17Z2021-02-19T21:38:18Zservicebustestlp3pa4rlgdhttps://servicebustestxfkligz3nn.servicebus.windows.net/fjruid?enrich=false&api-version=2017-04fjruid2021-02-22T17:54:07Z2021-02-22T17:54:08Zservicebustestxfkligz3nnPT13S3072falsefalsePT11MtruePT12M14true00falseActive2021-02-19T21:38:17.253Z2021-02-19T21:38:18.23Z0001-01-01T00:00:00Ztrue00000PT10MfalseAvailabletruesb://servicebustestlp3pa4rlgd.servicebus.windows.net/fjruidsb://servicebustestlp3pa4rlgd.servicebus.windows.net/fjruid + xmlns:i="http://www.w3.org/2001/XMLSchema-instance">PT13S3072falsefalsePT11MtruePT12M14true00falseActive2021-02-22T17:54:07.837Z2021-02-22T17:54:08.623Z0001-01-01T00:00:00Ztrue00000PT10MfalseAvailabletruesb://servicebustestxfkligz3nn.servicebus.windows.net/fjruidsb://servicebustestxfkligz3nn.servicebus.windows.net/fjruid headers: content-type: application/atom+xml;type=entry;charset=utf-8 - date: Fri, 19 Feb 2021 21:38:17 GMT - etag: '637493674982300000' + date: Mon, 22 Feb 2021 17:54:08 GMT + etag: '637496132486230000' server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 transfer-encoding: chunked status: code: 200 message: OK - url: https://servicebustestlp3pa4rlgd.servicebus.windows.net/fjruid?enrich=false&api-version=2017-04 + url: https://servicebustestxfkligz3nn.servicebus.windows.net/fjruid?enrich=false&api-version=2017-04 - request: body: null headers: @@ -202,12 +202,12 @@ interactions: string: '' headers: content-length: '0' - date: Fri, 19 Feb 2021 21:38:18 GMT - etag: '637493674982300000' + date: Mon, 22 Feb 2021 17:54:09 GMT + etag: '637496132486230000' server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 status: code: 200 message: OK - url: https://servicebustestlp3pa4rlgd.servicebus.windows.net/fjruid?api-version=2017-04 + url: https://servicebustestxfkligz3nn.servicebus.windows.net/fjruid?api-version=2017-04 version: 1 diff --git a/sdk/servicebus/azure-servicebus/tests/async_tests/mgmt_tests/recordings/test_mgmt_rules_async.test_mgmt_rule_async_update_dict_error.yaml b/sdk/servicebus/azure-servicebus/tests/async_tests/mgmt_tests/recordings/test_mgmt_rules_async.test_mgmt_rule_async_update_dict_error.yaml index 58360506926a..7d1b76a3e379 100644 --- a/sdk/servicebus/azure-servicebus/tests/async_tests/mgmt_tests/recordings/test_mgmt_rules_async.test_mgmt_rule_async_update_dict_error.yaml +++ b/sdk/servicebus/azure-servicebus/tests/async_tests/mgmt_tests/recordings/test_mgmt_rules_async.test_mgmt_rule_async_update_dict_error.yaml @@ -10,17 +10,17 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-04 response: body: - string: Topicshttps://servicebustest5aomxziacv.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-042021-02-19T21:39:59Z + string: Topicshttps://servicebustestwzc6jqe3uj.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-042021-02-22T17:56:15Z headers: content-type: application/atom+xml;type=feed;charset=utf-8 - date: Fri, 19 Feb 2021 21:39:59 GMT + date: Mon, 22 Feb 2021 17:56:15 GMT server: Microsoft-HTTPAPI/2.0 transfer-encoding: chunked status: code: 200 message: OK - url: https://servicebustest5aomxziacv.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-04 + url: https://servicebustestwzc6jqe3uj.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-04 - request: body: ' @@ -39,21 +39,21 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjrui?api-version=2017-04 response: body: - string: https://servicebustest5aomxziacv.servicebus.windows.net/fjrui?api-version=2017-04fjrui2021-02-19T21:40:00Z2021-02-19T21:40:00Zservicebustest5aomxziacvhttps://servicebustestwzc6jqe3uj.servicebus.windows.net/fjrui?api-version=2017-04fjrui2021-02-22T17:56:16Z2021-02-22T17:56:16Zservicebustestwzc6jqe3ujP10675199DT2H48M5.4775807S1024falsePT10Mtrue0falsefalseActive2021-02-19T21:40:00.387Z2021-02-19T21:40:00.43ZtrueP10675199DT2H48M5.4775807SfalseAvailablefalsefalse + xmlns:i="http://www.w3.org/2001/XMLSchema-instance">P10675199DT2H48M5.4775807S1024falsePT10Mtrue0falsefalseActive2021-02-22T17:56:16.403Z2021-02-22T17:56:16.47ZtrueP10675199DT2H48M5.4775807SfalseAvailablefalsefalse headers: content-type: application/atom+xml;type=entry;charset=utf-8 - date: Fri, 19 Feb 2021 21:40:00 GMT + date: Mon, 22 Feb 2021 17:56:16 GMT server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 transfer-encoding: chunked status: code: 201 message: Created - url: https://servicebustest5aomxziacv.servicebus.windows.net/fjrui?api-version=2017-04 + url: https://servicebustestwzc6jqe3uj.servicebus.windows.net/fjrui?api-version=2017-04 - request: body: ' @@ -72,22 +72,22 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04 response: body: - string: https://servicebustest5aomxziacv.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04eqkovc2021-02-19T21:40:00Z2021-02-19T21:40:00Zhttps://servicebustestwzc6jqe3uj.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04eqkovc2021-02-22T17:56:17Z2021-02-22T17:56:17ZPT1MfalseP10675199DT2H48M5.4775807Sfalsetrue010trueActive2021-02-19T21:40:00.9347659Z2021-02-19T21:40:00.9347659Z0001-01-01T00:00:00P10675199DT2H48M5.4775807SAvailable + xmlns:i="http://www.w3.org/2001/XMLSchema-instance">PT1MfalseP10675199DT2H48M5.4775807Sfalsetrue010trueActive2021-02-22T17:56:17.0341134Z2021-02-22T17:56:17.0341134Z0001-01-01T00:00:00P10675199DT2H48M5.4775807SAvailable headers: content-type: application/atom+xml;type=entry;charset=utf-8 - date: Fri, 19 Feb 2021 21:40:00 GMT - etag: '637493676004300000' + date: Mon, 22 Feb 2021 17:56:16 GMT + etag: '637496133764700000' server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 transfer-encoding: chunked status: code: 201 message: Created - url: https://servicebustest5aomxziacv.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04 + url: https://servicebustestwzc6jqe3uj.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04 - request: body: ' @@ -108,24 +108,24 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjrui/subscriptions/eqkovc/rules/rule?api-version=2017-04 response: body: - string: https://servicebustest5aomxziacv.servicebus.windows.net/fjrui/subscriptions/eqkovc/rules/rule?api-version=2017-04rule2021-02-19T21:40:01Z2021-02-19T21:40:01Zhttps://servicebustestwzc6jqe3uj.servicebus.windows.net/fjrui/subscriptions/eqkovc/rules/rule?api-version=2017-04rule2021-02-22T17:56:17Z2021-02-22T17:56:17ZPriority = 'low'20true2021-02-19T21:40:01.2628167Zrule + i:type="EmptyRuleAction"/>2021-02-22T17:56:17.6747425Zrule headers: content-type: application/atom+xml;type=entry;charset=utf-8 - date: Fri, 19 Feb 2021 21:40:01 GMT - etag: '637493676004300000' + date: Mon, 22 Feb 2021 17:56:16 GMT + etag: '637496133764700000' server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 transfer-encoding: chunked status: code: 201 message: Created - url: https://servicebustest5aomxziacv.servicebus.windows.net/fjrui/subscriptions/eqkovc/rules/rule?api-version=2017-04 + url: https://servicebustestwzc6jqe3uj.servicebus.windows.net/fjrui/subscriptions/eqkovc/rules/rule?api-version=2017-04 - request: body: null headers: @@ -140,14 +140,14 @@ interactions: string: '' headers: content-length: '0' - date: Fri, 19 Feb 2021 21:40:01 GMT - etag: '637493676004300000' + date: Mon, 22 Feb 2021 17:56:17 GMT + etag: '637496133764700000' server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 status: code: 200 message: OK - url: https://servicebustest5aomxziacv.servicebus.windows.net/fjrui/subscriptions/eqkovc/rules/rule?api-version=2017-04 + url: https://servicebustestwzc6jqe3uj.servicebus.windows.net/fjrui/subscriptions/eqkovc/rules/rule?api-version=2017-04 - request: body: null headers: @@ -162,14 +162,14 @@ interactions: string: '' headers: content-length: '0' - date: Fri, 19 Feb 2021 21:40:01 GMT - etag: '637493676004300000' + date: Mon, 22 Feb 2021 17:56:17 GMT + etag: '637496133764700000' server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 status: code: 200 message: OK - url: https://servicebustest5aomxziacv.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04 + url: https://servicebustestwzc6jqe3uj.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04 - request: body: null headers: @@ -184,12 +184,12 @@ interactions: string: '' headers: content-length: '0' - date: Fri, 19 Feb 2021 21:40:01 GMT - etag: '637493676004300000' + date: Mon, 22 Feb 2021 17:56:17 GMT + etag: '637496133764700000' server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 status: code: 200 message: OK - url: https://servicebustest5aomxziacv.servicebus.windows.net/fjrui?api-version=2017-04 + url: https://servicebustestwzc6jqe3uj.servicebus.windows.net/fjrui?api-version=2017-04 version: 1 diff --git a/sdk/servicebus/azure-servicebus/tests/async_tests/mgmt_tests/recordings/test_mgmt_rules_async.test_mgmt_rule_async_update_dict_success.yaml b/sdk/servicebus/azure-servicebus/tests/async_tests/mgmt_tests/recordings/test_mgmt_rules_async.test_mgmt_rule_async_update_dict_success.yaml index d15ecc4f1a79..750a6a7b7e13 100644 --- a/sdk/servicebus/azure-servicebus/tests/async_tests/mgmt_tests/recordings/test_mgmt_rules_async.test_mgmt_rule_async_update_dict_success.yaml +++ b/sdk/servicebus/azure-servicebus/tests/async_tests/mgmt_tests/recordings/test_mgmt_rules_async.test_mgmt_rule_async_update_dict_success.yaml @@ -10,17 +10,17 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-04 response: body: - string: Topicshttps://servicebustest5aomxziacv.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-042021-02-19T21:40:02Z + string: Topicshttps://servicebustestwzc6jqe3uj.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-042021-02-22T17:56:19Z headers: content-type: application/atom+xml;type=feed;charset=utf-8 - date: Fri, 19 Feb 2021 21:40:02 GMT + date: Mon, 22 Feb 2021 17:56:18 GMT server: Microsoft-HTTPAPI/2.0 transfer-encoding: chunked status: code: 200 message: OK - url: https://servicebustest5aomxziacv.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-04 + url: https://servicebustestwzc6jqe3uj.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-04 - request: body: ' @@ -39,21 +39,21 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjruid?api-version=2017-04 response: body: - string: https://servicebustest5aomxziacv.servicebus.windows.net/fjruid?api-version=2017-04fjruid2021-02-19T21:40:03Z2021-02-19T21:40:03Zservicebustest5aomxziacvhttps://servicebustestwzc6jqe3uj.servicebus.windows.net/fjruid?api-version=2017-04fjruid2021-02-22T17:56:19Z2021-02-22T17:56:19Zservicebustestwzc6jqe3ujP10675199DT2H48M5.4775807S1024falsePT10Mtrue0falsefalseActive2021-02-19T21:40:03.303Z2021-02-19T21:40:03.34ZtrueP10675199DT2H48M5.4775807SfalseAvailablefalsefalse + xmlns:i="http://www.w3.org/2001/XMLSchema-instance">P10675199DT2H48M5.4775807S1024falsePT10Mtrue0falsefalseActive2021-02-22T17:56:19.703Z2021-02-22T17:56:19.81ZtrueP10675199DT2H48M5.4775807SfalseAvailablefalsefalse headers: content-type: application/atom+xml;type=entry;charset=utf-8 - date: Fri, 19 Feb 2021 21:40:03 GMT + date: Mon, 22 Feb 2021 17:56:19 GMT server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 transfer-encoding: chunked status: code: 201 message: Created - url: https://servicebustest5aomxziacv.servicebus.windows.net/fjruid?api-version=2017-04 + url: https://servicebustestwzc6jqe3uj.servicebus.windows.net/fjruid?api-version=2017-04 - request: body: ' @@ -72,22 +72,22 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjruid/subscriptions/eqkovcd?api-version=2017-04 response: body: - string: https://servicebustest5aomxziacv.servicebus.windows.net/fjruid/subscriptions/eqkovcd?api-version=2017-04eqkovcd2021-02-19T21:40:03Z2021-02-19T21:40:03Zhttps://servicebustestwzc6jqe3uj.servicebus.windows.net/fjruid/subscriptions/eqkovcd?api-version=2017-04eqkovcd2021-02-22T17:56:20Z2021-02-22T17:56:20ZPT1MfalseP10675199DT2H48M5.4775807Sfalsetrue010trueActive2021-02-19T21:40:03.8482948Z2021-02-19T21:40:03.8482948Z0001-01-01T00:00:00P10675199DT2H48M5.4775807SAvailable + xmlns:i="http://www.w3.org/2001/XMLSchema-instance">PT1MfalseP10675199DT2H48M5.4775807Sfalsetrue010trueActive2021-02-22T17:56:20.5157256Z2021-02-22T17:56:20.5157256Z0001-01-01T00:00:00P10675199DT2H48M5.4775807SAvailable headers: content-type: application/atom+xml;type=entry;charset=utf-8 - date: Fri, 19 Feb 2021 21:40:03 GMT - etag: '637493676033400000' + date: Mon, 22 Feb 2021 17:56:20 GMT + etag: '637496133798100000' server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 transfer-encoding: chunked status: code: 201 message: Created - url: https://servicebustest5aomxziacv.servicebus.windows.net/fjruid/subscriptions/eqkovcd?api-version=2017-04 + url: https://servicebustestwzc6jqe3uj.servicebus.windows.net/fjruid/subscriptions/eqkovcd?api-version=2017-04 - request: body: ' @@ -108,24 +108,24 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjruid/subscriptions/eqkovcd/rules/rule?api-version=2017-04 response: body: - string: https://servicebustest5aomxziacv.servicebus.windows.net/fjruid/subscriptions/eqkovcd/rules/rule?api-version=2017-04rule2021-02-19T21:40:04Z2021-02-19T21:40:04Zhttps://servicebustestwzc6jqe3uj.servicebus.windows.net/fjruid/subscriptions/eqkovcd/rules/rule?api-version=2017-04rule2021-02-22T17:56:20Z2021-02-22T17:56:20ZPriority = 'low'20true2021-02-19T21:40:04.0826689Zrule + i:type="EmptyRuleAction"/>2021-02-22T17:56:20.7813407Zrule headers: content-type: application/atom+xml;type=entry;charset=utf-8 - date: Fri, 19 Feb 2021 21:40:03 GMT - etag: '637493676033400000' + date: Mon, 22 Feb 2021 17:56:20 GMT + etag: '637496133798100000' server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 transfer-encoding: chunked status: code: 201 message: Created - url: https://servicebustest5aomxziacv.servicebus.windows.net/fjruid/subscriptions/eqkovcd/rules/rule?api-version=2017-04 + url: https://servicebustestwzc6jqe3uj.servicebus.windows.net/fjruid/subscriptions/eqkovcd/rules/rule?api-version=2017-04 - request: body: null headers: @@ -137,36 +137,36 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjruid/subscriptions/eqkovcd/rules/rule?enrich=false&api-version=2017-04 response: body: - string: sb://servicebustest5aomxziacv.servicebus.windows.net/fjruid/subscriptions/eqkovcd/rules/rule?enrich=false&api-version=2017-04rule2021-02-19T21:40:04Z2021-02-19T21:40:04Zsb://servicebustestwzc6jqe3uj.servicebus.windows.net/fjruid/subscriptions/eqkovcd/rules/rule?enrich=false&api-version=2017-04rule2021-02-22T17:56:20Z2021-02-22T17:56:20ZPriority = 'low'20true2021-02-19T21:40:04.06864Zrule + i:type="EmptyRuleAction"/>2021-02-22T17:56:20.7881342Zrule headers: content-type: application/atom+xml;type=entry;charset=utf-8 - date: Fri, 19 Feb 2021 21:40:04 GMT - etag: '637493676033400000' + date: Mon, 22 Feb 2021 17:56:20 GMT + etag: '637496133798100000' server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 transfer-encoding: chunked status: code: 200 message: OK - url: https://servicebustest5aomxziacv.servicebus.windows.net/fjruid/subscriptions/eqkovcd/rules/rule?enrich=false&api-version=2017-04 + url: https://servicebustestwzc6jqe3uj.servicebus.windows.net/fjruid/subscriptions/eqkovcd/rules/rule?enrich=false&api-version=2017-04 - request: body: ' testcidSET Priority = ''low''20true2021-02-19T21:40:04.06864Zrule' + xsi:type="SqlRuleAction">SET Priority = ''low''20true2021-02-22T17:56:20.788134Zrule' headers: Accept: - application/xml Content-Length: - - '654' + - '655' Content-Type: - application/atom+xml If-Match: @@ -177,23 +177,23 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjruid/subscriptions/eqkovcd/rules/rule?api-version=2017-04 response: body: - string: https://servicebustest5aomxziacv.servicebus.windows.net/fjruid/subscriptions/eqkovcd/rules/rule?api-version=2017-04rule2021-02-19T21:40:04Z2021-02-19T21:40:04Zhttps://servicebustestwzc6jqe3uj.servicebus.windows.net/fjruid/subscriptions/eqkovcd/rules/rule?api-version=2017-04rule2021-02-22T17:56:21Z2021-02-22T17:56:21ZtestcidSET Priority = 'low'20true2021-02-19T21:40:04.301418Zrule + i:type="SqlRuleAction">SET Priority = 'low'20true2021-02-22T17:56:21.0157151Zrule headers: content-type: application/atom+xml;type=entry;charset=utf-8 - date: Fri, 19 Feb 2021 21:40:04 GMT - etag: '637493676033400000' + date: Mon, 22 Feb 2021 17:56:20 GMT + etag: '637496133798100000' server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 transfer-encoding: chunked status: code: 200 message: OK - url: https://servicebustest5aomxziacv.servicebus.windows.net/fjruid/subscriptions/eqkovcd/rules/rule?api-version=2017-04 + url: https://servicebustestwzc6jqe3uj.servicebus.windows.net/fjruid/subscriptions/eqkovcd/rules/rule?api-version=2017-04 - request: body: null headers: @@ -205,23 +205,23 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjruid/subscriptions/eqkovcd/rules/rule?enrich=false&api-version=2017-04 response: body: - string: sb://servicebustest5aomxziacv.servicebus.windows.net/fjruid/subscriptions/eqkovcd/rules/rule?enrich=false&api-version=2017-04rule2021-02-19T21:40:04Z2021-02-19T21:40:04Zsb://servicebustestwzc6jqe3uj.servicebus.windows.net/fjruid/subscriptions/eqkovcd/rules/rule?enrich=false&api-version=2017-04rule2021-02-22T17:56:20Z2021-02-22T17:56:20ZtestcidSET Priority = 'low'20true2021-02-19T21:40:04.06864Zrule + i:type="SqlRuleAction">SET Priority = 'low'20true2021-02-22T17:56:20.7881342Zrule headers: content-type: application/atom+xml;type=entry;charset=utf-8 - date: Fri, 19 Feb 2021 21:40:04 GMT - etag: '637493676033400000' + date: Mon, 22 Feb 2021 17:56:20 GMT + etag: '637496133798100000' server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 transfer-encoding: chunked status: code: 200 message: OK - url: https://servicebustest5aomxziacv.servicebus.windows.net/fjruid/subscriptions/eqkovcd/rules/rule?enrich=false&api-version=2017-04 + url: https://servicebustestwzc6jqe3uj.servicebus.windows.net/fjruid/subscriptions/eqkovcd/rules/rule?enrich=false&api-version=2017-04 - request: body: null headers: @@ -236,14 +236,14 @@ interactions: string: '' headers: content-length: '0' - date: Fri, 19 Feb 2021 21:40:04 GMT - etag: '637493676033400000' + date: Mon, 22 Feb 2021 17:56:20 GMT + etag: '637496133798100000' server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 status: code: 200 message: OK - url: https://servicebustest5aomxziacv.servicebus.windows.net/fjruid/subscriptions/eqkovcd/rules/rule?api-version=2017-04 + url: https://servicebustestwzc6jqe3uj.servicebus.windows.net/fjruid/subscriptions/eqkovcd/rules/rule?api-version=2017-04 - request: body: null headers: @@ -258,14 +258,14 @@ interactions: string: '' headers: content-length: '0' - date: Fri, 19 Feb 2021 21:40:04 GMT - etag: '637493676033400000' + date: Mon, 22 Feb 2021 17:56:21 GMT + etag: '637496133798100000' server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 status: code: 200 message: OK - url: https://servicebustest5aomxziacv.servicebus.windows.net/fjruid/subscriptions/eqkovcd?api-version=2017-04 + url: https://servicebustestwzc6jqe3uj.servicebus.windows.net/fjruid/subscriptions/eqkovcd?api-version=2017-04 - request: body: null headers: @@ -280,12 +280,12 @@ interactions: string: '' headers: content-length: '0' - date: Fri, 19 Feb 2021 21:40:05 GMT - etag: '637493676033400000' + date: Mon, 22 Feb 2021 17:56:21 GMT + etag: '637496133798100000' server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 status: code: 200 message: OK - url: https://servicebustest5aomxziacv.servicebus.windows.net/fjruid?api-version=2017-04 + url: https://servicebustestwzc6jqe3uj.servicebus.windows.net/fjruid?api-version=2017-04 version: 1 diff --git a/sdk/servicebus/azure-servicebus/tests/async_tests/mgmt_tests/recordings/test_mgmt_subscriptions_async.test_mgmt_subscription_async_update_dict_error.yaml b/sdk/servicebus/azure-servicebus/tests/async_tests/mgmt_tests/recordings/test_mgmt_subscriptions_async.test_mgmt_subscription_async_update_dict_error.yaml index 5f8a57894ca3..05da94d8b768 100644 --- a/sdk/servicebus/azure-servicebus/tests/async_tests/mgmt_tests/recordings/test_mgmt_subscriptions_async.test_mgmt_subscription_async_update_dict_error.yaml +++ b/sdk/servicebus/azure-servicebus/tests/async_tests/mgmt_tests/recordings/test_mgmt_subscriptions_async.test_mgmt_subscription_async_update_dict_error.yaml @@ -10,17 +10,17 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-04 response: body: - string: Topicshttps://servicebustest72zoif6ask.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-042021-02-19T21:49:01Z + string: Topicshttps://servicebustestppd24hkcwz.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-042021-02-22T18:06:27Z headers: content-type: application/atom+xml;type=feed;charset=utf-8 - date: Fri, 19 Feb 2021 21:49:00 GMT + date: Mon, 22 Feb 2021 18:06:26 GMT server: Microsoft-HTTPAPI/2.0 transfer-encoding: chunked status: code: 200 message: OK - url: https://servicebustest72zoif6ask.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-04 + url: https://servicebustestppd24hkcwz.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-04 - request: body: ' @@ -39,21 +39,21 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjrui?api-version=2017-04 response: body: - string: https://servicebustest72zoif6ask.servicebus.windows.net/fjrui?api-version=2017-04fjrui2021-02-19T21:49:01Z2021-02-19T21:49:01Zservicebustest72zoif6askhttps://servicebustestppd24hkcwz.servicebus.windows.net/fjrui?api-version=2017-04fjrui2021-02-22T18:06:27Z2021-02-22T18:06:27Zservicebustestppd24hkcwzP10675199DT2H48M5.4775807S1024falsePT10Mtrue0falsefalseActive2021-02-19T21:49:01.453Z2021-02-19T21:49:01.533ZtrueP10675199DT2H48M5.4775807SfalseAvailablefalsefalse + xmlns:i="http://www.w3.org/2001/XMLSchema-instance">P10675199DT2H48M5.4775807S1024falsePT10Mtrue0falsefalseActive2021-02-22T18:06:27.67Z2021-02-22T18:06:27.87ZtrueP10675199DT2H48M5.4775807SfalseAvailablefalsefalse headers: content-type: application/atom+xml;type=entry;charset=utf-8 - date: Fri, 19 Feb 2021 21:49:01 GMT + date: Mon, 22 Feb 2021 18:06:27 GMT server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 transfer-encoding: chunked status: code: 201 message: Created - url: https://servicebustest72zoif6ask.servicebus.windows.net/fjrui?api-version=2017-04 + url: https://servicebustestppd24hkcwz.servicebus.windows.net/fjrui?api-version=2017-04 - request: body: ' @@ -72,22 +72,22 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04 response: body: - string: https://servicebustest72zoif6ask.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04eqkovc2021-02-19T21:49:02Z2021-02-19T21:49:02Zhttps://servicebustestppd24hkcwz.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04eqkovc2021-02-22T18:06:28Z2021-02-22T18:06:28ZPT1MfalseP10675199DT2H48M5.4775807Sfalsetrue010trueActive2021-02-19T21:49:02.0927699Z2021-02-19T21:49:02.0927699Z0001-01-01T00:00:00P10675199DT2H48M5.4775807SAvailable + xmlns:i="http://www.w3.org/2001/XMLSchema-instance">PT1MfalseP10675199DT2H48M5.4775807Sfalsetrue010trueActive2021-02-22T18:06:28.3677888Z2021-02-22T18:06:28.3677888Z0001-01-01T00:00:00P10675199DT2H48M5.4775807SAvailable headers: content-type: application/atom+xml;type=entry;charset=utf-8 - date: Fri, 19 Feb 2021 21:49:01 GMT - etag: '637493681415330000' + date: Mon, 22 Feb 2021 18:06:28 GMT + etag: '637496139878700000' server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 transfer-encoding: chunked status: code: 201 message: Created - url: https://servicebustest72zoif6ask.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04 + url: https://servicebustestppd24hkcwz.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04 - request: body: null headers: @@ -102,14 +102,14 @@ interactions: string: '' headers: content-length: '0' - date: Fri, 19 Feb 2021 21:49:01 GMT - etag: '637493681415330000' + date: Mon, 22 Feb 2021 18:06:28 GMT + etag: '637496139878700000' server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 status: code: 200 message: OK - url: https://servicebustest72zoif6ask.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04 + url: https://servicebustestppd24hkcwz.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04 - request: body: null headers: @@ -124,12 +124,12 @@ interactions: string: '' headers: content-length: '0' - date: Fri, 19 Feb 2021 21:49:01 GMT - etag: '637493681415330000' + date: Mon, 22 Feb 2021 18:06:28 GMT + etag: '637496139878700000' server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 status: code: 200 message: OK - url: https://servicebustest72zoif6ask.servicebus.windows.net/fjrui?api-version=2017-04 + url: https://servicebustestppd24hkcwz.servicebus.windows.net/fjrui?api-version=2017-04 version: 1 diff --git a/sdk/servicebus/azure-servicebus/tests/async_tests/mgmt_tests/recordings/test_mgmt_subscriptions_async.test_mgmt_subscription_async_update_dict_success.yaml b/sdk/servicebus/azure-servicebus/tests/async_tests/mgmt_tests/recordings/test_mgmt_subscriptions_async.test_mgmt_subscription_async_update_dict_success.yaml index 790c4174e12b..511bc1ff39fc 100644 --- a/sdk/servicebus/azure-servicebus/tests/async_tests/mgmt_tests/recordings/test_mgmt_subscriptions_async.test_mgmt_subscription_async_update_dict_success.yaml +++ b/sdk/servicebus/azure-servicebus/tests/async_tests/mgmt_tests/recordings/test_mgmt_subscriptions_async.test_mgmt_subscription_async_update_dict_success.yaml @@ -10,17 +10,17 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-04 response: body: - string: Topicshttps://servicebustest72zoif6ask.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-042021-02-19T21:49:03Z + string: Topicshttps://servicebustestppd24hkcwz.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-042021-02-22T18:06:30Z headers: content-type: application/atom+xml;type=feed;charset=utf-8 - date: Fri, 19 Feb 2021 21:49:02 GMT + date: Mon, 22 Feb 2021 18:06:29 GMT server: Microsoft-HTTPAPI/2.0 transfer-encoding: chunked status: code: 200 message: OK - url: https://servicebustest72zoif6ask.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-04 + url: https://servicebustestppd24hkcwz.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-04 - request: body: ' @@ -39,21 +39,21 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjrui?api-version=2017-04 response: body: - string: https://servicebustest72zoif6ask.servicebus.windows.net/fjrui?api-version=2017-04fjrui2021-02-19T21:49:03Z2021-02-19T21:49:03Zservicebustest72zoif6askhttps://servicebustestppd24hkcwz.servicebus.windows.net/fjrui?api-version=2017-04fjrui2021-02-22T18:06:30Z2021-02-22T18:06:30Zservicebustestppd24hkcwzP10675199DT2H48M5.4775807S1024falsePT10Mtrue0falsefalseActive2021-02-19T21:49:03.787Z2021-02-19T21:49:03.82ZtrueP10675199DT2H48M5.4775807SfalseAvailablefalsefalse + xmlns:i="http://www.w3.org/2001/XMLSchema-instance">P10675199DT2H48M5.4775807S1024falsePT10Mtrue0falsefalseActive2021-02-22T18:06:30.66Z2021-02-22T18:06:30.757ZtrueP10675199DT2H48M5.4775807SfalseAvailablefalsefalse headers: content-type: application/atom+xml;type=entry;charset=utf-8 - date: Fri, 19 Feb 2021 21:49:03 GMT + date: Mon, 22 Feb 2021 18:06:30 GMT server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 transfer-encoding: chunked status: code: 201 message: Created - url: https://servicebustest72zoif6ask.servicebus.windows.net/fjrui?api-version=2017-04 + url: https://servicebustestppd24hkcwz.servicebus.windows.net/fjrui?api-version=2017-04 - request: body: ' @@ -72,22 +72,22 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04 response: body: - string: https://servicebustest72zoif6ask.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04eqkovc2021-02-19T21:49:04Z2021-02-19T21:49:04Zhttps://servicebustestppd24hkcwz.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04eqkovc2021-02-22T18:06:31Z2021-02-22T18:06:31ZPT1MfalseP10675199DT2H48M5.4775807Sfalsetrue010trueActive2021-02-19T21:49:04.3072344Z2021-02-19T21:49:04.3072344Z0001-01-01T00:00:00P10675199DT2H48M5.4775807SAvailable + xmlns:i="http://www.w3.org/2001/XMLSchema-instance">PT1MfalseP10675199DT2H48M5.4775807Sfalsetrue010trueActive2021-02-22T18:06:31.3224939Z2021-02-22T18:06:31.3224939Z0001-01-01T00:00:00P10675199DT2H48M5.4775807SAvailable headers: content-type: application/atom+xml;type=entry;charset=utf-8 - date: Fri, 19 Feb 2021 21:49:03 GMT - etag: '637493681438200000' + date: Mon, 22 Feb 2021 18:06:30 GMT + etag: '637496139907570000' server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 transfer-encoding: chunked status: code: 201 message: Created - url: https://servicebustest72zoif6ask.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04 + url: https://servicebustestppd24hkcwz.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04 - request: body: ' @@ -108,22 +108,22 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04 response: body: - string: https://servicebustest72zoif6ask.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04eqkovc2021-02-19T21:49:04Z2021-02-19T21:49:04Zhttps://servicebustestppd24hkcwz.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04eqkovc2021-02-22T18:06:31Z2021-02-22T18:06:31ZPT2MfalseP10675199DT2H48M5.477539Sfalsetrue010trueActive2021-02-19T21:49:04.5570999Z2021-02-19T21:49:04.5570999Z0001-01-01T00:00:00P10675199DT2H48M5.477539SAvailable + xmlns:i="http://www.w3.org/2001/XMLSchema-instance">PT2MfalseP10675199DT2H48M5.477539Sfalsetrue010trueActive2021-02-22T18:06:31.6662441Z2021-02-22T18:06:31.6662441Z0001-01-01T00:00:00P10675199DT2H48M5.477539SAvailable headers: content-type: application/atom+xml;type=entry;charset=utf-8 - date: Fri, 19 Feb 2021 21:49:03 GMT - etag: '637493681438200000' + date: Mon, 22 Feb 2021 18:06:30 GMT + etag: '637496139907570000' server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 transfer-encoding: chunked status: code: 200 message: OK - url: https://servicebustest72zoif6ask.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04 + url: https://servicebustestppd24hkcwz.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04 - request: body: null headers: @@ -135,23 +135,23 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjrui/subscriptions/eqkovc?enrich=false&api-version=2017-04 response: body: - string: sb://servicebustest72zoif6ask.servicebus.windows.net/fjrui/subscriptions/eqkovc?enrich=false&api-version=2017-04eqkovc2021-02-19T21:49:04Z2021-02-19T21:49:04Zsb://servicebustestppd24hkcwz.servicebus.windows.net/fjrui/subscriptions/eqkovc?enrich=false&api-version=2017-04eqkovc2021-02-22T18:06:31Z2021-02-22T18:06:31ZPT2MfalseP10675199DT2H48M5.477539Sfalsetrue010trueActive2021-02-19T21:49:04.3091297Z2021-02-19T21:49:04.5591349Z2021-02-19T21:49:04.31ZPT2MfalseP10675199DT2H48M5.477539Sfalsetrue010trueActive2021-02-22T18:06:31.3322501Z2021-02-22T18:06:31.6916355Z2021-02-22T18:06:31.333Z00000P10675199DT2H48M5.477539SAvailable headers: content-type: application/atom+xml;type=entry;charset=utf-8 - date: Fri, 19 Feb 2021 21:49:03 GMT - etag: '637493681438200000' + date: Mon, 22 Feb 2021 18:06:30 GMT + etag: '637496139907570000' server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 transfer-encoding: chunked status: code: 200 message: OK - url: https://servicebustest72zoif6ask.servicebus.windows.net/fjrui/subscriptions/eqkovc?enrich=false&api-version=2017-04 + url: https://servicebustestppd24hkcwz.servicebus.windows.net/fjrui/subscriptions/eqkovc?enrich=false&api-version=2017-04 - request: body: ' @@ -172,22 +172,22 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04 response: body: - string: https://servicebustest72zoif6ask.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04eqkovc2021-02-19T21:49:04Z2021-02-19T21:49:04Zhttps://servicebustestppd24hkcwz.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04eqkovc2021-02-22T18:06:31Z2021-02-22T18:06:31ZPT12SfalsePT11Mtruetrue014trueActive2021-02-19T21:49:04.7446127Z2021-02-19T21:49:04.7446127Z0001-01-01T00:00:00PT10MAvailable + xmlns:i="http://www.w3.org/2001/XMLSchema-instance">PT12SfalsePT11Mtruetrue014trueActive2021-02-22T18:06:31.9006456Z2021-02-22T18:06:31.9006456Z0001-01-01T00:00:00PT10MAvailable headers: content-type: application/atom+xml;type=entry;charset=utf-8 - date: Fri, 19 Feb 2021 21:49:04 GMT - etag: '637493681438200000' + date: Mon, 22 Feb 2021 18:06:31 GMT + etag: '637496139907570000' server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 transfer-encoding: chunked status: code: 200 message: OK - url: https://servicebustest72zoif6ask.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04 + url: https://servicebustestppd24hkcwz.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04 - request: body: null headers: @@ -199,28 +199,28 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjrui/subscriptions/eqkovc?enrich=false&api-version=2017-04 response: body: - string: sb://servicebustest72zoif6ask.servicebus.windows.net/fjrui/subscriptions/eqkovc?enrich=false&api-version=2017-04eqkovc2021-02-19T21:49:04Z2021-02-19T21:49:04Zsb://servicebustestppd24hkcwz.servicebus.windows.net/fjrui/subscriptions/eqkovc?enrich=false&api-version=2017-04eqkovc2021-02-22T18:06:31Z2021-02-22T18:06:31ZPT12SfalsePT11Mtruetrue014trueActive2021-02-19T21:49:04.3091297Z2021-02-19T21:49:04.7466728Z2021-02-19T21:49:04.31ZPT12SfalsePT11Mtruetrue014trueActive2021-02-22T18:06:31.3322501Z2021-02-22T18:06:31.9103534Z2021-02-22T18:06:31.333Z00000PT10MAvailable headers: content-type: application/atom+xml;type=entry;charset=utf-8 - date: Fri, 19 Feb 2021 21:49:04 GMT - etag: '637493681438200000' + date: Mon, 22 Feb 2021 18:06:31 GMT + etag: '637496139907570000' server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 transfer-encoding: chunked status: code: 200 message: OK - url: https://servicebustest72zoif6ask.servicebus.windows.net/fjrui/subscriptions/eqkovc?enrich=false&api-version=2017-04 + url: https://servicebustestppd24hkcwz.servicebus.windows.net/fjrui/subscriptions/eqkovc?enrich=false&api-version=2017-04 - request: body: ' PT12SfalsePT11Mtruetrue14trueActivesb://servicebustest72zoif6ask.servicebus.windows.net/fjruisb://servicebustest72zoif6ask.servicebus.windows.net/fjruiPT10MAvailable' + type="application/xml">PT12SfalsePT11Mtruetrue14trueActivesb://servicebustestppd24hkcwz.servicebus.windows.net/fjruisb://servicebustestppd24hkcwz.servicebus.windows.net/fjruiPT10MAvailable' headers: Accept: - application/xml @@ -231,31 +231,31 @@ interactions: If-Match: - '*' ServiceBusDlqSupplementaryAuthorization: - - SharedAccessSignature sr=sb%3A%2F%2Fservicebustest72zoif6ask.servicebus.windows.net%2Ffjrui&sig=W7EHt3l%2bV4d7NM12GxHDIeuS8%2bXi3WQHllMHvS3TfZ4%3d&se=1613774944&skn=RootManageSharedAccessKey + - SharedAccessSignature sr=sb%3A%2F%2Fservicebustestppd24hkcwz.servicebus.windows.net%2Ffjrui&sig=Z8wgXNNzhMmAm%2fqr%2bwCK1gg1YUGjvQgPXzT%2fxxSRnmQ%3d&se=1614020792&skn=RootManageSharedAccessKey ServiceBusSupplementaryAuthorization: - - SharedAccessSignature sr=sb%3A%2F%2Fservicebustest72zoif6ask.servicebus.windows.net%2Ffjrui&sig=W7EHt3l%2bV4d7NM12GxHDIeuS8%2bXi3WQHllMHvS3TfZ4%3d&se=1613774944&skn=RootManageSharedAccessKey + - SharedAccessSignature sr=sb%3A%2F%2Fservicebustestppd24hkcwz.servicebus.windows.net%2Ffjrui&sig=Z8wgXNNzhMmAm%2fqr%2bwCK1gg1YUGjvQgPXzT%2fxxSRnmQ%3d&se=1614020792&skn=RootManageSharedAccessKey User-Agent: - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.0 (Windows-10-10.0.19041-SP0) method: PUT uri: https://servicebustestsbname.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04 response: body: - string: https://servicebustest72zoif6ask.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04eqkovc2021-02-19T21:49:04Z2021-02-19T21:49:04Zhttps://servicebustestppd24hkcwz.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04eqkovc2021-02-22T18:06:32Z2021-02-22T18:06:32ZPT12SfalsePT11Mtruetrue014trueActivesb://servicebustest72zoif6ask.servicebus.windows.net/fjrui2021-02-19T21:49:04.9321081Z2021-02-19T21:49:04.9321081Z0001-01-01T00:00:00sb://servicebustest72zoif6ask.servicebus.windows.net/fjruiP10675199DT2H48M5.4775807SAvailable + xmlns:i="http://www.w3.org/2001/XMLSchema-instance">PT12SfalsePT11Mtruetrue014trueActivesb://servicebustestppd24hkcwz.servicebus.windows.net/fjrui2021-02-22T18:06:32.1037488Z2021-02-22T18:06:32.1037488Z0001-01-01T00:00:00sb://servicebustestppd24hkcwz.servicebus.windows.net/fjruiP10675199DT2H48M5.4775807SAvailable headers: content-type: application/atom+xml;type=entry;charset=utf-8 - date: Fri, 19 Feb 2021 21:49:04 GMT - etag: '637493681438200000' + date: Mon, 22 Feb 2021 18:06:31 GMT + etag: '637496139907570000' server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 transfer-encoding: chunked status: code: 200 message: OK - url: https://servicebustest72zoif6ask.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04 + url: https://servicebustestppd24hkcwz.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04 - request: body: null headers: @@ -267,23 +267,23 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjrui/subscriptions/eqkovc?enrich=false&api-version=2017-04 response: body: - string: sb://servicebustest72zoif6ask.servicebus.windows.net/fjrui/subscriptions/eqkovc?enrich=false&api-version=2017-04eqkovc2021-02-19T21:49:04Z2021-02-19T21:49:04Zsb://servicebustestppd24hkcwz.servicebus.windows.net/fjrui/subscriptions/eqkovc?enrich=false&api-version=2017-04eqkovc2021-02-22T18:06:31Z2021-02-22T18:06:32ZPT12SfalsePT11Mtruetrue014trueActivesb://servicebustest72zoif6ask.servicebus.windows.net/fjrui2021-02-19T21:49:04.3091297Z2021-02-19T21:49:04.9343986Z2021-02-19T21:49:04.31Z00000sb://servicebustest72zoif6ask.servicebus.windows.net/fjruiP10675199DT2H48M5.4775807SAvailable + xmlns:i="http://www.w3.org/2001/XMLSchema-instance">PT12SfalsePT11Mtruetrue014trueActivesb://servicebustestppd24hkcwz.servicebus.windows.net/fjrui2021-02-22T18:06:31.3322501Z2021-02-22T18:06:32.1291103Z2021-02-22T18:06:31.333Z00000sb://servicebustestppd24hkcwz.servicebus.windows.net/fjruiP10675199DT2H48M5.4775807SAvailable headers: content-type: application/atom+xml;type=entry;charset=utf-8 - date: Fri, 19 Feb 2021 21:49:04 GMT - etag: '637493681438200000' + date: Mon, 22 Feb 2021 18:06:31 GMT + etag: '637496139907570000' server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 transfer-encoding: chunked status: code: 200 message: OK - url: https://servicebustest72zoif6ask.servicebus.windows.net/fjrui/subscriptions/eqkovc?enrich=false&api-version=2017-04 + url: https://servicebustestppd24hkcwz.servicebus.windows.net/fjrui/subscriptions/eqkovc?enrich=false&api-version=2017-04 - request: body: null headers: @@ -298,14 +298,14 @@ interactions: string: '' headers: content-length: '0' - date: Fri, 19 Feb 2021 21:49:04 GMT - etag: '637493681438200000' + date: Mon, 22 Feb 2021 18:06:31 GMT + etag: '637496139907570000' server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 status: code: 200 message: OK - url: https://servicebustest72zoif6ask.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04 + url: https://servicebustestppd24hkcwz.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04 - request: body: null headers: @@ -320,12 +320,12 @@ interactions: string: '' headers: content-length: '0' - date: Fri, 19 Feb 2021 21:49:04 GMT - etag: '637493681438200000' + date: Mon, 22 Feb 2021 18:06:31 GMT + etag: '637496139907570000' server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 status: code: 200 message: OK - url: https://servicebustest72zoif6ask.servicebus.windows.net/fjrui?api-version=2017-04 + url: https://servicebustestppd24hkcwz.servicebus.windows.net/fjrui?api-version=2017-04 version: 1 diff --git a/sdk/servicebus/azure-servicebus/tests/async_tests/mgmt_tests/recordings/test_mgmt_topics_async.test_mgmt_topic_async_update_dict_error.yaml b/sdk/servicebus/azure-servicebus/tests/async_tests/mgmt_tests/recordings/test_mgmt_topics_async.test_mgmt_topic_async_update_dict_error.yaml index 97d1d263a691..163788ca43dc 100644 --- a/sdk/servicebus/azure-servicebus/tests/async_tests/mgmt_tests/recordings/test_mgmt_topics_async.test_mgmt_topic_async_update_dict_error.yaml +++ b/sdk/servicebus/azure-servicebus/tests/async_tests/mgmt_tests/recordings/test_mgmt_topics_async.test_mgmt_topic_async_update_dict_error.yaml @@ -10,17 +10,17 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-04 response: body: - string: Topicshttps://servicebustesth532g5fl35.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-042021-02-19T21:50:59Z + string: Topicshttps://servicebustestsrcoqeqei7.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-042021-02-22T18:08:23Z headers: content-type: application/atom+xml;type=feed;charset=utf-8 - date: Fri, 19 Feb 2021 21:50:59 GMT + date: Mon, 22 Feb 2021 18:08:23 GMT server: Microsoft-HTTPAPI/2.0 transfer-encoding: chunked status: code: 200 message: OK - url: https://servicebustesth532g5fl35.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-04 + url: https://servicebustestsrcoqeqei7.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-04 - request: body: ' @@ -39,21 +39,21 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjruid?api-version=2017-04 response: body: - string: https://servicebustesth532g5fl35.servicebus.windows.net/fjruid?api-version=2017-04fjruid2021-02-19T21:50:59Z2021-02-19T21:51:00Zservicebustesth532g5fl35https://servicebustestsrcoqeqei7.servicebus.windows.net/fjruid?api-version=2017-04fjruid2021-02-22T18:08:24Z2021-02-22T18:08:24Zservicebustestsrcoqeqei7P10675199DT2H48M5.4775807S1024falsePT10Mtrue0falsefalseActive2021-02-19T21:50:59.987Z2021-02-19T21:51:00.06ZtrueP10675199DT2H48M5.4775807SfalseAvailablefalsefalse + xmlns:i="http://www.w3.org/2001/XMLSchema-instance">P10675199DT2H48M5.4775807S1024falsePT10Mtrue0falsefalseActive2021-02-22T18:08:24.297Z2021-02-22T18:08:24.333ZtrueP10675199DT2H48M5.4775807SfalseAvailablefalsefalse headers: content-type: application/atom+xml;type=entry;charset=utf-8 - date: Fri, 19 Feb 2021 21:51:00 GMT + date: Mon, 22 Feb 2021 18:08:24 GMT server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 transfer-encoding: chunked status: code: 201 message: Created - url: https://servicebustesth532g5fl35.servicebus.windows.net/fjruid?api-version=2017-04 + url: https://servicebustestsrcoqeqei7.servicebus.windows.net/fjruid?api-version=2017-04 - request: body: null headers: @@ -68,12 +68,12 @@ interactions: string: '' headers: content-length: '0' - date: Fri, 19 Feb 2021 21:51:00 GMT - etag: '637493682600600000' + date: Mon, 22 Feb 2021 18:08:24 GMT + etag: '637496141043330000' server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 status: code: 200 message: OK - url: https://servicebustesth532g5fl35.servicebus.windows.net/fjruid?api-version=2017-04 + url: https://servicebustestsrcoqeqei7.servicebus.windows.net/fjruid?api-version=2017-04 version: 1 diff --git a/sdk/servicebus/azure-servicebus/tests/async_tests/mgmt_tests/recordings/test_mgmt_topics_async.test_mgmt_topic_async_update_dict_success.yaml b/sdk/servicebus/azure-servicebus/tests/async_tests/mgmt_tests/recordings/test_mgmt_topics_async.test_mgmt_topic_async_update_dict_success.yaml index 7da4f10ef998..b775f8f2fd6d 100644 --- a/sdk/servicebus/azure-servicebus/tests/async_tests/mgmt_tests/recordings/test_mgmt_topics_async.test_mgmt_topic_async_update_dict_success.yaml +++ b/sdk/servicebus/azure-servicebus/tests/async_tests/mgmt_tests/recordings/test_mgmt_topics_async.test_mgmt_topic_async_update_dict_success.yaml @@ -10,17 +10,17 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-04 response: body: - string: Topicshttps://servicebustesth532g5fl35.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-042021-02-19T21:51:01Z + string: Topicshttps://servicebustestsrcoqeqei7.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-042021-02-22T18:08:26Z headers: content-type: application/atom+xml;type=feed;charset=utf-8 - date: Fri, 19 Feb 2021 21:51:01 GMT + date: Mon, 22 Feb 2021 18:08:25 GMT server: Microsoft-HTTPAPI/2.0 transfer-encoding: chunked status: code: 200 message: OK - url: https://servicebustesth532g5fl35.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-04 + url: https://servicebustestsrcoqeqei7.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-04 - request: body: ' @@ -39,21 +39,21 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjruid?api-version=2017-04 response: body: - string: https://servicebustesth532g5fl35.servicebus.windows.net/fjruid?api-version=2017-04fjruid2021-02-19T21:51:02Z2021-02-19T21:51:02Zservicebustesth532g5fl35https://servicebustestsrcoqeqei7.servicebus.windows.net/fjruid?api-version=2017-04fjruid2021-02-22T18:08:26Z2021-02-22T18:08:26Zservicebustestsrcoqeqei7P10675199DT2H48M5.4775807S1024falsePT10Mtrue0falsefalseActive2021-02-19T21:51:02.29Z2021-02-19T21:51:02.34ZtrueP10675199DT2H48M5.4775807SfalseAvailablefalsefalse + xmlns:i="http://www.w3.org/2001/XMLSchema-instance">P10675199DT2H48M5.4775807S1024falsePT10Mtrue0falsefalseActive2021-02-22T18:08:26.56Z2021-02-22T18:08:26.743ZtrueP10675199DT2H48M5.4775807SfalseAvailablefalsefalse headers: content-type: application/atom+xml;type=entry;charset=utf-8 - date: Fri, 19 Feb 2021 21:51:02 GMT + date: Mon, 22 Feb 2021 18:08:26 GMT server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 transfer-encoding: chunked status: code: 201 message: Created - url: https://servicebustesth532g5fl35.servicebus.windows.net/fjruid?api-version=2017-04 + url: https://servicebustestsrcoqeqei7.servicebus.windows.net/fjruid?api-version=2017-04 - request: body: ' @@ -75,22 +75,22 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjruid?api-version=2017-04 response: body: - string: https://servicebustesth532g5fl35.servicebus.windows.net/fjruid?api-version=2017-04fjruid2021-02-19T21:51:02Zservicebustesth532g5fl35https://servicebustestsrcoqeqei7.servicebus.windows.net/fjruid?api-version=2017-04fjruid2021-02-22T18:08:27Zservicebustestsrcoqeqei7PT2M1024falsePT10Mtrue0ActivetrueP10675199DT2H48M5.477539SfalseAvailablefalse headers: content-type: application/atom+xml;type=entry;charset=utf-8 - date: Fri, 19 Feb 2021 21:51:02 GMT - etag: '637493682623400000' + date: Mon, 22 Feb 2021 18:08:26 GMT + etag: '637496141067430000' server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 transfer-encoding: chunked status: code: 200 message: OK - url: https://servicebustesth532g5fl35.servicebus.windows.net/fjruid?api-version=2017-04 + url: https://servicebustestsrcoqeqei7.servicebus.windows.net/fjruid?api-version=2017-04 - request: body: null headers: @@ -102,23 +102,23 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjruid?enrich=false&api-version=2017-04 response: body: - string: https://servicebustesth532g5fl35.servicebus.windows.net/fjruid?enrich=false&api-version=2017-04fjruid2021-02-19T21:51:02Z2021-02-19T21:51:02Zservicebustesth532g5fl35https://servicebustestsrcoqeqei7.servicebus.windows.net/fjruid?enrich=false&api-version=2017-04fjruid2021-02-22T18:08:26Z2021-02-22T18:08:27Zservicebustestsrcoqeqei7PT2M1024falsePT10Mtrue0falsefalseActive2021-02-19T21:51:02.29Z2021-02-19T21:51:02.85Z0001-01-01T00:00:00ZtruePT2M1024falsePT10Mtrue0falsefalseActive2021-02-22T18:08:26.56Z2021-02-22T18:08:27.24Z0001-01-01T00:00:00Ztrue000000P10675199DT2H48M5.477539SfalseAvailablefalsefalse headers: content-type: application/atom+xml;type=entry;charset=utf-8 - date: Fri, 19 Feb 2021 21:51:02 GMT - etag: '637493682628500000' + date: Mon, 22 Feb 2021 18:08:26 GMT + etag: '637496141072400000' server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 transfer-encoding: chunked status: code: 200 message: OK - url: https://servicebustesth532g5fl35.servicebus.windows.net/fjruid?enrich=false&api-version=2017-04 + url: https://servicebustestsrcoqeqei7.servicebus.windows.net/fjruid?enrich=false&api-version=2017-04 - request: body: ' @@ -140,22 +140,22 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjruid?api-version=2017-04 response: body: - string: https://servicebustesth532g5fl35.servicebus.windows.net/fjruid?api-version=2017-04fjruid2021-02-19T21:51:03Zservicebustesth532g5fl35https://servicebustestsrcoqeqei7.servicebus.windows.net/fjruid?api-version=2017-04fjruid2021-02-22T18:08:27Zservicebustestsrcoqeqei7PT11M3072falsePT12Mtrue0ActivetruePT10MfalseAvailabletrue headers: content-type: application/atom+xml;type=entry;charset=utf-8 - date: Fri, 19 Feb 2021 21:51:02 GMT - etag: '637493682628500000' + date: Mon, 22 Feb 2021 18:08:26 GMT + etag: '637496141072400000' server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 transfer-encoding: chunked status: code: 200 message: OK - url: https://servicebustesth532g5fl35.servicebus.windows.net/fjruid?api-version=2017-04 + url: https://servicebustestsrcoqeqei7.servicebus.windows.net/fjruid?api-version=2017-04 - request: body: null headers: @@ -167,23 +167,23 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjruid?enrich=false&api-version=2017-04 response: body: - string: https://servicebustesth532g5fl35.servicebus.windows.net/fjruid?enrich=false&api-version=2017-04fjruid2021-02-19T21:51:02Z2021-02-19T21:51:03Zservicebustesth532g5fl35https://servicebustestsrcoqeqei7.servicebus.windows.net/fjruid?enrich=false&api-version=2017-04fjruid2021-02-22T18:08:26Z2021-02-22T18:08:27Zservicebustestsrcoqeqei7PT11M3072falsePT12Mtrue0falsefalseActive2021-02-19T21:51:02.29Z2021-02-19T21:51:03.05Z0001-01-01T00:00:00ZtruePT11M3072falsePT12Mtrue0falsefalseActive2021-02-22T18:08:26.56Z2021-02-22T18:08:27.713Z0001-01-01T00:00:00Ztrue000000PT10MfalseAvailablefalsetrue headers: content-type: application/atom+xml;type=entry;charset=utf-8 - date: Fri, 19 Feb 2021 21:51:02 GMT - etag: '637493682630500000' + date: Mon, 22 Feb 2021 18:08:27 GMT + etag: '637496141077130000' server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 transfer-encoding: chunked status: code: 200 message: OK - url: https://servicebustesth532g5fl35.servicebus.windows.net/fjruid?enrich=false&api-version=2017-04 + url: https://servicebustestsrcoqeqei7.servicebus.windows.net/fjruid?enrich=false&api-version=2017-04 - request: body: null headers: @@ -198,12 +198,12 @@ interactions: string: '' headers: content-length: '0' - date: Fri, 19 Feb 2021 21:51:03 GMT - etag: '637493682630500000' + date: Mon, 22 Feb 2021 18:08:27 GMT + etag: '637496141077130000' server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 status: code: 200 message: OK - url: https://servicebustesth532g5fl35.servicebus.windows.net/fjruid?api-version=2017-04 + url: https://servicebustestsrcoqeqei7.servicebus.windows.net/fjruid?api-version=2017-04 version: 1 diff --git a/sdk/servicebus/azure-servicebus/tests/mgmt_tests/recordings/test_mgmt_queues.test_mgmt_queue_update_dict_error.yaml b/sdk/servicebus/azure-servicebus/tests/mgmt_tests/recordings/test_mgmt_queues.test_mgmt_queue_update_dict_error.yaml index 1fdcdffe6f45..cffe160463f1 100644 --- a/sdk/servicebus/azure-servicebus/tests/mgmt_tests/recordings/test_mgmt_queues.test_mgmt_queue_update_dict_error.yaml +++ b/sdk/servicebus/azure-servicebus/tests/mgmt_tests/recordings/test_mgmt_queues.test_mgmt_queue_update_dict_error.yaml @@ -14,13 +14,13 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/$Resources/queues?$skip=0&$top=100&api-version=2017-04 response: body: - string: Queueshttps://servicebustest3tdwauushz.servicebus.windows.net/$Resources/queues?$skip=0&$top=100&api-version=2017-042021-02-19T21:16:12Z + string: Queueshttps://servicebustestxl6ry4f5xf.servicebus.windows.net/$Resources/queues?$skip=0&$top=100&api-version=2017-042021-02-22T17:43:31Z headers: content-type: - application/atom+xml;type=feed;charset=utf-8 date: - - Fri, 19 Feb 2021 21:16:12 GMT + - Mon, 22 Feb 2021 17:43:30 GMT server: - Microsoft-HTTPAPI/2.0 transfer-encoding: @@ -50,16 +50,16 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/dfjdfj?api-version=2017-04 response: body: - string: https://servicebustest3tdwauushz.servicebus.windows.net/dfjdfj?api-version=2017-04dfjdfj2021-02-19T21:16:12Z2021-02-19T21:16:12Zservicebustest3tdwauushzhttps://servicebustestxl6ry4f5xf.servicebus.windows.net/dfjdfj?api-version=2017-04dfjdfj2021-02-22T17:43:31Z2021-02-22T17:43:31Zservicebustestxl6ry4f5xfPT1M1024falsefalseP10675199DT2H48M5.4775807SfalsePT10M10true00falseActive2021-02-19T21:16:12.853Z2021-02-19T21:16:12.893ZtrueP10675199DT2H48M5.4775807SfalseAvailablefalse + xmlns:i="http://www.w3.org/2001/XMLSchema-instance">PT1M1024falsefalseP10675199DT2H48M5.4775807SfalsePT10M10true00falseActive2021-02-22T17:43:31.723Z2021-02-22T17:43:31.793ZtrueP10675199DT2H48M5.4775807SfalseAvailablefalse headers: content-type: - application/atom+xml;type=entry;charset=utf-8 date: - - Fri, 19 Feb 2021 21:16:12 GMT + - Mon, 22 Feb 2021 17:43:31 GMT server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -91,9 +91,9 @@ interactions: content-length: - '0' date: - - Fri, 19 Feb 2021 21:16:13 GMT + - Mon, 22 Feb 2021 17:43:31 GMT etag: - - '637493661728930000' + - '637496126117930000' server: - Microsoft-HTTPAPI/2.0 strict-transport-security: diff --git a/sdk/servicebus/azure-servicebus/tests/mgmt_tests/recordings/test_mgmt_queues.test_mgmt_queue_update_dict_success.yaml b/sdk/servicebus/azure-servicebus/tests/mgmt_tests/recordings/test_mgmt_queues.test_mgmt_queue_update_dict_success.yaml index 0c6af41b292a..8a6108134536 100644 --- a/sdk/servicebus/azure-servicebus/tests/mgmt_tests/recordings/test_mgmt_queues.test_mgmt_queue_update_dict_success.yaml +++ b/sdk/servicebus/azure-servicebus/tests/mgmt_tests/recordings/test_mgmt_queues.test_mgmt_queue_update_dict_success.yaml @@ -14,13 +14,13 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/$Resources/queues?$skip=0&$top=100&api-version=2017-04 response: body: - string: Queueshttps://servicebustest3tdwauushz.servicebus.windows.net/$Resources/queues?$skip=0&$top=100&api-version=2017-042021-02-19T21:16:14Z + string: Queueshttps://servicebustestxl6ry4f5xf.servicebus.windows.net/$Resources/queues?$skip=0&$top=100&api-version=2017-042021-02-22T17:43:33Z headers: content-type: - application/atom+xml;type=feed;charset=utf-8 date: - - Fri, 19 Feb 2021 21:16:14 GMT + - Mon, 22 Feb 2021 17:43:33 GMT server: - Microsoft-HTTPAPI/2.0 transfer-encoding: @@ -50,16 +50,16 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjruid?api-version=2017-04 response: body: - string: https://servicebustest3tdwauushz.servicebus.windows.net/fjruid?api-version=2017-04fjruid2021-02-19T21:16:15Z2021-02-19T21:16:15Zservicebustest3tdwauushzhttps://servicebustestxl6ry4f5xf.servicebus.windows.net/fjruid?api-version=2017-04fjruid2021-02-22T17:43:34Z2021-02-22T17:43:34Zservicebustestxl6ry4f5xfPT1M1024falsefalseP10675199DT2H48M5.4775807SfalsePT10M10true00falseActive2021-02-19T21:16:15.07Z2021-02-19T21:16:15.103ZtrueP10675199DT2H48M5.4775807SfalseAvailablefalse + xmlns:i="http://www.w3.org/2001/XMLSchema-instance">PT1M1024falsefalseP10675199DT2H48M5.4775807SfalsePT10M10true00falseActive2021-02-22T17:43:34.187Z2021-02-22T17:43:34.22ZtrueP10675199DT2H48M5.4775807SfalseAvailablefalse headers: content-type: - application/atom+xml;type=entry;charset=utf-8 date: - - Fri, 19 Feb 2021 21:16:15 GMT + - Mon, 22 Feb 2021 17:43:34 GMT server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -94,18 +94,18 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjruid?api-version=2017-04 response: body: - string: https://servicebustest3tdwauushz.servicebus.windows.net/fjruid?api-version=2017-04fjruid2021-02-19T21:16:15Zservicebustest3tdwauushzhttps://servicebustestxl6ry4f5xf.servicebus.windows.net/fjruid?api-version=2017-04fjruid2021-02-22T17:43:34Zservicebustestxl6ry4f5xfPT2M1024falsefalseP10675199DT2H48M5.477539SfalsePT10M10trueActiveP10675199DT2H48M5.477539SfalseAvailablefalse headers: content-type: - application/atom+xml;type=entry;charset=utf-8 date: - - Fri, 19 Feb 2021 21:16:15 GMT + - Mon, 22 Feb 2021 17:43:34 GMT etag: - - '637493661751030000' + - '637496126142200000' server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -130,19 +130,19 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjruid?enrich=false&api-version=2017-04 response: body: - string: https://servicebustest3tdwauushz.servicebus.windows.net/fjruid?enrich=false&api-version=2017-04fjruid2021-02-19T21:16:15Z2021-02-19T21:16:15Zservicebustest3tdwauushzhttps://servicebustestxl6ry4f5xf.servicebus.windows.net/fjruid?enrich=false&api-version=2017-04fjruid2021-02-22T17:43:34Z2021-02-22T17:43:34Zservicebustestxl6ry4f5xfPT2M1024falsefalseP10675199DT2H48M5.477539SfalsePT10M10true00falseActive2021-02-19T21:16:15.07Z2021-02-19T21:16:15.623Z0001-01-01T00:00:00ZtruePT2M1024falsefalseP10675199DT2H48M5.477539SfalsePT10M10true00falseActive2021-02-22T17:43:34.187Z2021-02-22T17:43:34.793Z0001-01-01T00:00:00Ztrue00000P10675199DT2H48M5.477539SfalseAvailablefalse headers: content-type: - application/atom+xml;type=entry;charset=utf-8 date: - - Fri, 19 Feb 2021 21:16:15 GMT + - Mon, 22 Feb 2021 17:43:34 GMT etag: - - '637493661756230000' + - '637496126147930000' server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -157,7 +157,7 @@ interactions: PT13S3072falsefalsePT11MtruePT12M14trueActivePT10MfalseAvailabletruesb://servicebustest3tdwauushz.servicebus.windows.net/fjruidsb://servicebustest3tdwauushz.servicebus.windows.net/fjruid' + />ActivePT10MfalseAvailabletruesb://servicebustestxl6ry4f5xf.servicebus.windows.net/fjruidsb://servicebustestxl6ry4f5xf.servicebus.windows.net/fjruid' headers: Accept: - application/xml @@ -172,27 +172,27 @@ interactions: If-Match: - '*' ServiceBusDlqSupplementaryAuthorization: - - SharedAccessSignature sr=sb%3A%2F%2Fservicebustest3tdwauushz.servicebus.windows.net%2Ffjruid&sig=b322Q0BSNbSi81f3xwg3BEfF7EPStgHsjh3BEMXUyx4%3d&se=1613772975&skn=RootManageSharedAccessKey + - SharedAccessSignature sr=sb%3A%2F%2Fservicebustestxl6ry4f5xf.servicebus.windows.net%2Ffjruid&sig=vPcX4qwWQy0zxHGNjNsrTg%2bQnr%2fVODIuT8MReZiH%2bIQ%3d&se=1614019415&skn=RootManageSharedAccessKey ServiceBusSupplementaryAuthorization: - - SharedAccessSignature sr=sb%3A%2F%2Fservicebustest3tdwauushz.servicebus.windows.net%2Ffjruid&sig=b322Q0BSNbSi81f3xwg3BEfF7EPStgHsjh3BEMXUyx4%3d&se=1613772975&skn=RootManageSharedAccessKey + - SharedAccessSignature sr=sb%3A%2F%2Fservicebustestxl6ry4f5xf.servicebus.windows.net%2Ffjruid&sig=vPcX4qwWQy0zxHGNjNsrTg%2bQnr%2fVODIuT8MReZiH%2bIQ%3d&se=1614019415&skn=RootManageSharedAccessKey User-Agent: - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.0 (Windows-10-10.0.19041-SP0) method: PUT uri: https://servicebustestsbname.servicebus.windows.net/fjruid?api-version=2017-04 response: body: - string: https://servicebustest3tdwauushz.servicebus.windows.net/fjruid?api-version=2017-04fjruid2021-02-19T21:16:15Zservicebustest3tdwauushzhttps://servicebustestxl6ry4f5xf.servicebus.windows.net/fjruid?api-version=2017-04fjruid2021-02-22T17:43:35Zservicebustestxl6ry4f5xfPT13S3072falsefalsePT11MtruePT12M14trueActivePT10MfalseAvailabletruesb://servicebustest3tdwauushz.servicebus.windows.net/fjruidsb://servicebustest3tdwauushz.servicebus.windows.net/fjruid + xmlns:i="http://www.w3.org/2001/XMLSchema-instance">PT13S3072falsefalsePT11MtruePT12M14trueActivePT10MfalseAvailabletruesb://servicebustestxl6ry4f5xf.servicebus.windows.net/fjruidsb://servicebustestxl6ry4f5xf.servicebus.windows.net/fjruid headers: content-type: - application/atom+xml;type=entry;charset=utf-8 date: - - Fri, 19 Feb 2021 21:16:15 GMT + - Mon, 22 Feb 2021 17:43:35 GMT etag: - - '637493661756230000' + - '637496126147930000' server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -217,19 +217,19 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjruid?enrich=false&api-version=2017-04 response: body: - string: https://servicebustest3tdwauushz.servicebus.windows.net/fjruid?enrich=false&api-version=2017-04fjruid2021-02-19T21:16:15Z2021-02-19T21:16:15Zservicebustest3tdwauushzhttps://servicebustestxl6ry4f5xf.servicebus.windows.net/fjruid?enrich=false&api-version=2017-04fjruid2021-02-22T17:43:34Z2021-02-22T17:43:35Zservicebustestxl6ry4f5xfPT13S3072falsefalsePT11MtruePT12M14true00falseActive2021-02-19T21:16:15.07Z2021-02-19T21:16:15.94Z0001-01-01T00:00:00Ztrue00000PT10MfalseAvailabletruesb://servicebustest3tdwauushz.servicebus.windows.net/fjruidsb://servicebustest3tdwauushz.servicebus.windows.net/fjruid + xmlns:i="http://www.w3.org/2001/XMLSchema-instance">PT13S3072falsefalsePT11MtruePT12M14true00falseActive2021-02-22T17:43:34.187Z2021-02-22T17:43:35.213Z0001-01-01T00:00:00Ztrue00000PT10MfalseAvailabletruesb://servicebustestxl6ry4f5xf.servicebus.windows.net/fjruidsb://servicebustestxl6ry4f5xf.servicebus.windows.net/fjruid headers: content-type: - application/atom+xml;type=entry;charset=utf-8 date: - - Fri, 19 Feb 2021 21:16:15 GMT + - Mon, 22 Feb 2021 17:43:35 GMT etag: - - '637493661759400000' + - '637496126152130000' server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -261,9 +261,9 @@ interactions: content-length: - '0' date: - - Fri, 19 Feb 2021 21:16:16 GMT + - Mon, 22 Feb 2021 17:43:35 GMT etag: - - '637493661759400000' + - '637496126152130000' server: - Microsoft-HTTPAPI/2.0 strict-transport-security: diff --git a/sdk/servicebus/azure-servicebus/tests/mgmt_tests/recordings/test_mgmt_rules.test_mgmt_rule_update_dict_error.yaml b/sdk/servicebus/azure-servicebus/tests/mgmt_tests/recordings/test_mgmt_rules.test_mgmt_rule_update_dict_error.yaml index 29737484a98a..6287f2c7128f 100644 --- a/sdk/servicebus/azure-servicebus/tests/mgmt_tests/recordings/test_mgmt_rules.test_mgmt_rule_update_dict_error.yaml +++ b/sdk/servicebus/azure-servicebus/tests/mgmt_tests/recordings/test_mgmt_rules.test_mgmt_rule_update_dict_error.yaml @@ -14,13 +14,13 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-04 response: body: - string: Topicshttps://servicebustesthxxsch4cui.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-042021-02-19T21:26:48Z + string: Topicshttps://servicebustestfk46diq54z.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-042021-02-22T17:45:11Z headers: content-type: - application/atom+xml;type=feed;charset=utf-8 date: - - Fri, 19 Feb 2021 21:26:47 GMT + - Mon, 22 Feb 2021 17:45:10 GMT server: - Microsoft-HTTPAPI/2.0 transfer-encoding: @@ -50,16 +50,16 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjruid?api-version=2017-04 response: body: - string: https://servicebustesthxxsch4cui.servicebus.windows.net/fjruid?api-version=2017-04fjruid2021-02-19T21:26:49Z2021-02-19T21:26:49Zservicebustesthxxsch4cuihttps://servicebustestfk46diq54z.servicebus.windows.net/fjruid?api-version=2017-04fjruid2021-02-22T17:45:12Z2021-02-22T17:45:12Zservicebustestfk46diq54zP10675199DT2H48M5.4775807S1024falsePT10Mtrue0falsefalseActive2021-02-19T21:26:49.293Z2021-02-19T21:26:49.42ZtrueP10675199DT2H48M5.4775807SfalseAvailablefalsefalse + xmlns:i="http://www.w3.org/2001/XMLSchema-instance">P10675199DT2H48M5.4775807S1024falsePT10Mtrue0falsefalseActive2021-02-22T17:45:12.03Z2021-02-22T17:45:12.067ZtrueP10675199DT2H48M5.4775807SfalseAvailablefalsefalse headers: content-type: - application/atom+xml;type=entry;charset=utf-8 date: - - Fri, 19 Feb 2021 21:26:48 GMT + - Mon, 22 Feb 2021 17:45:11 GMT server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -91,18 +91,18 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjruid/subscriptions/eqkovcd?api-version=2017-04 response: body: - string: https://servicebustesthxxsch4cui.servicebus.windows.net/fjruid/subscriptions/eqkovcd?api-version=2017-04eqkovcd2021-02-19T21:26:49Z2021-02-19T21:26:49Zhttps://servicebustestfk46diq54z.servicebus.windows.net/fjruid/subscriptions/eqkovcd?api-version=2017-04eqkovcd2021-02-22T17:45:12Z2021-02-22T17:45:12ZPT1MfalseP10675199DT2H48M5.4775807Sfalsetrue010trueActive2021-02-19T21:26:49.9724276Z2021-02-19T21:26:49.9724276Z0001-01-01T00:00:00P10675199DT2H48M5.4775807SAvailable + xmlns:i="http://www.w3.org/2001/XMLSchema-instance">PT1MfalseP10675199DT2H48M5.4775807Sfalsetrue010trueActive2021-02-22T17:45:12.593511Z2021-02-22T17:45:12.593511Z0001-01-01T00:00:00P10675199DT2H48M5.4775807SAvailable headers: content-type: - application/atom+xml;type=entry;charset=utf-8 date: - - Fri, 19 Feb 2021 21:26:49 GMT + - Mon, 22 Feb 2021 17:45:11 GMT etag: - - '637493668094200000' + - '637496127120670000' server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -136,20 +136,20 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjruid/subscriptions/eqkovcd/rules/rule?api-version=2017-04 response: body: - string: https://servicebustesthxxsch4cui.servicebus.windows.net/fjruid/subscriptions/eqkovcd/rules/rule?api-version=2017-04rule2021-02-19T21:26:50Z2021-02-19T21:26:50Zhttps://servicebustestfk46diq54z.servicebus.windows.net/fjruid/subscriptions/eqkovcd/rules/rule?api-version=2017-04rule2021-02-22T17:45:12Z2021-02-22T17:45:12ZPriority = 'low'20true2021-02-19T21:26:50.1911472Zrule + i:type="EmptyRuleAction"/>2021-02-22T17:45:12.8278756Zrule headers: content-type: - application/atom+xml;type=entry;charset=utf-8 date: - - Fri, 19 Feb 2021 21:26:49 GMT + - Mon, 22 Feb 2021 17:45:11 GMT etag: - - '637493668094200000' + - '637496127120670000' server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -181,9 +181,9 @@ interactions: content-length: - '0' date: - - Fri, 19 Feb 2021 21:26:49 GMT + - Mon, 22 Feb 2021 17:45:12 GMT etag: - - '637493668094200000' + - '637496127120670000' server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -213,9 +213,9 @@ interactions: content-length: - '0' date: - - Fri, 19 Feb 2021 21:26:49 GMT + - Mon, 22 Feb 2021 17:45:12 GMT etag: - - '637493668094200000' + - '637496127120670000' server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -245,9 +245,9 @@ interactions: content-length: - '0' date: - - Fri, 19 Feb 2021 21:26:50 GMT + - Mon, 22 Feb 2021 17:45:12 GMT etag: - - '637493668094200000' + - '637496127120670000' server: - Microsoft-HTTPAPI/2.0 strict-transport-security: diff --git a/sdk/servicebus/azure-servicebus/tests/mgmt_tests/recordings/test_mgmt_rules.test_mgmt_rule_update_dict_success.yaml b/sdk/servicebus/azure-servicebus/tests/mgmt_tests/recordings/test_mgmt_rules.test_mgmt_rule_update_dict_success.yaml index 3de5afa74dab..0bfa095bcb9a 100644 --- a/sdk/servicebus/azure-servicebus/tests/mgmt_tests/recordings/test_mgmt_rules.test_mgmt_rule_update_dict_success.yaml +++ b/sdk/servicebus/azure-servicebus/tests/mgmt_tests/recordings/test_mgmt_rules.test_mgmt_rule_update_dict_success.yaml @@ -14,13 +14,13 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-04 response: body: - string: Topicshttps://servicebustesthxxsch4cui.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-042021-02-19T21:26:51Z + string: Topicshttps://servicebustestfk46diq54z.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-042021-02-22T17:45:14Z headers: content-type: - application/atom+xml;type=feed;charset=utf-8 date: - - Fri, 19 Feb 2021 21:26:51 GMT + - Mon, 22 Feb 2021 17:45:14 GMT server: - Microsoft-HTTPAPI/2.0 transfer-encoding: @@ -50,16 +50,16 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjruid?api-version=2017-04 response: body: - string: https://servicebustesthxxsch4cui.servicebus.windows.net/fjruid?api-version=2017-04fjruid2021-02-19T21:26:52Z2021-02-19T21:26:52Zservicebustesthxxsch4cuihttps://servicebustestfk46diq54z.servicebus.windows.net/fjruid?api-version=2017-04fjruid2021-02-22T17:45:14Z2021-02-22T17:45:14Zservicebustestfk46diq54zP10675199DT2H48M5.4775807S1024falsePT10Mtrue0falsefalseActive2021-02-19T21:26:52.343Z2021-02-19T21:26:52.39ZtrueP10675199DT2H48M5.4775807SfalseAvailablefalsefalse + xmlns:i="http://www.w3.org/2001/XMLSchema-instance">P10675199DT2H48M5.4775807S1024falsePT10Mtrue0falsefalseActive2021-02-22T17:45:14.927Z2021-02-22T17:45:14.953ZtrueP10675199DT2H48M5.4775807SfalseAvailablefalsefalse headers: content-type: - application/atom+xml;type=entry;charset=utf-8 date: - - Fri, 19 Feb 2021 21:26:52 GMT + - Mon, 22 Feb 2021 17:45:15 GMT server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -91,18 +91,18 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjruid/subscriptions/eqkovcd?api-version=2017-04 response: body: - string: https://servicebustesthxxsch4cui.servicebus.windows.net/fjruid/subscriptions/eqkovcd?api-version=2017-04eqkovcd2021-02-19T21:26:52Z2021-02-19T21:26:52Zhttps://servicebustestfk46diq54z.servicebus.windows.net/fjruid/subscriptions/eqkovcd?api-version=2017-04eqkovcd2021-02-22T17:45:15Z2021-02-22T17:45:15ZPT1MfalseP10675199DT2H48M5.4775807Sfalsetrue010trueActive2021-02-19T21:26:52.9568517Z2021-02-19T21:26:52.9568517Z0001-01-01T00:00:00P10675199DT2H48M5.4775807SAvailable + xmlns:i="http://www.w3.org/2001/XMLSchema-instance">PT1MfalseP10675199DT2H48M5.4775807Sfalsetrue010trueActive2021-02-22T17:45:15.5401132Z2021-02-22T17:45:15.5401132Z0001-01-01T00:00:00P10675199DT2H48M5.4775807SAvailable headers: content-type: - application/atom+xml;type=entry;charset=utf-8 date: - - Fri, 19 Feb 2021 21:26:52 GMT + - Mon, 22 Feb 2021 17:45:15 GMT etag: - - '637493668123900000' + - '637496127149530000' server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -136,20 +136,20 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjruid/subscriptions/eqkovcd/rules/rule?api-version=2017-04 response: body: - string: https://servicebustesthxxsch4cui.servicebus.windows.net/fjruid/subscriptions/eqkovcd/rules/rule?api-version=2017-04rule2021-02-19T21:26:53Z2021-02-19T21:26:53Zhttps://servicebustestfk46diq54z.servicebus.windows.net/fjruid/subscriptions/eqkovcd/rules/rule?api-version=2017-04rule2021-02-22T17:45:15Z2021-02-22T17:45:15ZPriority = 'low'20true2021-02-19T21:26:53.3475139Zrule + i:type="EmptyRuleAction"/>2021-02-22T17:45:15.8060294Zrule headers: content-type: - application/atom+xml;type=entry;charset=utf-8 date: - - Fri, 19 Feb 2021 21:26:52 GMT + - Mon, 22 Feb 2021 17:45:15 GMT etag: - - '637493668123900000' + - '637496127149530000' server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -174,20 +174,20 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjruid/subscriptions/eqkovcd/rules/rule?enrich=false&api-version=2017-04 response: body: - string: sb://servicebustesthxxsch4cui.servicebus.windows.net/fjruid/subscriptions/eqkovcd/rules/rule?enrich=false&api-version=2017-04rule2021-02-19T21:26:53Z2021-02-19T21:26:53Zsb://servicebustestfk46diq54z.servicebus.windows.net/fjruid/subscriptions/eqkovcd/rules/rule?enrich=false&api-version=2017-04rule2021-02-22T17:45:15Z2021-02-22T17:45:15ZPriority = 'low'20true2021-02-19T21:26:53.3467263Zrule + i:type="EmptyRuleAction"/>2021-02-22T17:45:15.805892Zrule headers: content-type: - application/atom+xml;type=entry;charset=utf-8 date: - - Fri, 19 Feb 2021 21:26:53 GMT + - Mon, 22 Feb 2021 17:45:15 GMT etag: - - '637493668123900000' + - '637496127149530000' server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -203,7 +203,7 @@ interactions: testcidSET Priority = ''low''20true2021-02-19T21:26:53.346726Zrule' + xsi:type="SqlRuleAction">SET Priority = ''low''20true2021-02-22T17:45:15.805892Zrule' headers: Accept: - application/xml @@ -223,19 +223,19 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjruid/subscriptions/eqkovcd/rules/rule?api-version=2017-04 response: body: - string: https://servicebustesthxxsch4cui.servicebus.windows.net/fjruid/subscriptions/eqkovcd/rules/rule?api-version=2017-04rule2021-02-19T21:26:53Z2021-02-19T21:26:53Zhttps://servicebustestfk46diq54z.servicebus.windows.net/fjruid/subscriptions/eqkovcd/rules/rule?api-version=2017-04rule2021-02-22T17:45:16Z2021-02-22T17:45:16ZtestcidSET Priority = 'low'20true2021-02-19T21:26:53.6131357Zrule + i:type="SqlRuleAction">SET Priority = 'low'20true2021-02-22T17:45:16.0403969Zrule headers: content-type: - application/atom+xml;type=entry;charset=utf-8 date: - - Fri, 19 Feb 2021 21:26:53 GMT + - Mon, 22 Feb 2021 17:45:15 GMT etag: - - '637493668123900000' + - '637496127149530000' server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -260,19 +260,19 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjruid/subscriptions/eqkovcd/rules/rule?enrich=false&api-version=2017-04 response: body: - string: sb://servicebustesthxxsch4cui.servicebus.windows.net/fjruid/subscriptions/eqkovcd/rules/rule?enrich=false&api-version=2017-04rule2021-02-19T21:26:53Z2021-02-19T21:26:53Zsb://servicebustestfk46diq54z.servicebus.windows.net/fjruid/subscriptions/eqkovcd/rules/rule?enrich=false&api-version=2017-04rule2021-02-22T17:45:15Z2021-02-22T17:45:15ZtestcidSET Priority = 'low'20true2021-02-19T21:26:53.3467263Zrule + i:type="SqlRuleAction">SET Priority = 'low'20true2021-02-22T17:45:15.805892Zrule headers: content-type: - application/atom+xml;type=entry;charset=utf-8 date: - - Fri, 19 Feb 2021 21:26:53 GMT + - Mon, 22 Feb 2021 17:45:15 GMT etag: - - '637493668123900000' + - '637496127149530000' server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -304,9 +304,9 @@ interactions: content-length: - '0' date: - - Fri, 19 Feb 2021 21:26:53 GMT + - Mon, 22 Feb 2021 17:45:16 GMT etag: - - '637493668123900000' + - '637496127149530000' server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -336,9 +336,9 @@ interactions: content-length: - '0' date: - - Fri, 19 Feb 2021 21:26:53 GMT + - Mon, 22 Feb 2021 17:45:16 GMT etag: - - '637493668123900000' + - '637496127149530000' server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -368,9 +368,9 @@ interactions: content-length: - '0' date: - - Fri, 19 Feb 2021 21:26:54 GMT + - Mon, 22 Feb 2021 17:45:16 GMT etag: - - '637493668123900000' + - '637496127149530000' server: - Microsoft-HTTPAPI/2.0 strict-transport-security: diff --git a/sdk/servicebus/azure-servicebus/tests/mgmt_tests/recordings/test_mgmt_subscriptions.test_mgmt_subscription_update_dict_error.yaml b/sdk/servicebus/azure-servicebus/tests/mgmt_tests/recordings/test_mgmt_subscriptions.test_mgmt_subscription_update_dict_error.yaml index c3bb70d3794f..166045c6ce7f 100644 --- a/sdk/servicebus/azure-servicebus/tests/mgmt_tests/recordings/test_mgmt_subscriptions.test_mgmt_subscription_update_dict_error.yaml +++ b/sdk/servicebus/azure-servicebus/tests/mgmt_tests/recordings/test_mgmt_subscriptions.test_mgmt_subscription_update_dict_error.yaml @@ -14,13 +14,13 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-04 response: body: - string: Topicshttps://servicebustestjmymjb7sd3.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-042021-02-19T21:45:34Z + string: Topicshttps://servicebustestci5epio27o.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-042021-02-22T17:47:06Z headers: content-type: - application/atom+xml;type=feed;charset=utf-8 date: - - Fri, 19 Feb 2021 21:45:34 GMT + - Mon, 22 Feb 2021 17:47:06 GMT server: - Microsoft-HTTPAPI/2.0 transfer-encoding: @@ -50,16 +50,16 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/dfjdfj?api-version=2017-04 response: body: - string: https://servicebustestjmymjb7sd3.servicebus.windows.net/dfjdfj?api-version=2017-04dfjdfj2021-02-19T21:45:34Z2021-02-19T21:45:34Zservicebustestjmymjb7sd3https://servicebustestci5epio27o.servicebus.windows.net/dfjdfj?api-version=2017-04dfjdfj2021-02-22T17:47:07Z2021-02-22T17:47:07Zservicebustestci5epio27oP10675199DT2H48M5.4775807S1024falsePT10Mtrue0falsefalseActive2021-02-19T21:45:34.78Z2021-02-19T21:45:34.82ZtrueP10675199DT2H48M5.4775807SfalseAvailablefalsefalse + xmlns:i="http://www.w3.org/2001/XMLSchema-instance">P10675199DT2H48M5.4775807S1024falsePT10Mtrue0falsefalseActive2021-02-22T17:47:07.173Z2021-02-22T17:47:07.21ZtrueP10675199DT2H48M5.4775807SfalseAvailablefalsefalse headers: content-type: - application/atom+xml;type=entry;charset=utf-8 date: - - Fri, 19 Feb 2021 21:45:35 GMT + - Mon, 22 Feb 2021 17:47:07 GMT server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -91,18 +91,18 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/dfjdfj/subscriptions/kwqxd?api-version=2017-04 response: body: - string: https://servicebustestjmymjb7sd3.servicebus.windows.net/dfjdfj/subscriptions/kwqxd?api-version=2017-04kwqxd2021-02-19T21:45:35Z2021-02-19T21:45:35Zhttps://servicebustestci5epio27o.servicebus.windows.net/dfjdfj/subscriptions/kwqxd?api-version=2017-04kwqxd2021-02-22T17:47:07Z2021-02-22T17:47:07ZPT1MfalseP10675199DT2H48M5.4775807Sfalsetrue010trueActive2021-02-19T21:45:35.3454677Z2021-02-19T21:45:35.3454677Z0001-01-01T00:00:00P10675199DT2H48M5.4775807SAvailable + xmlns:i="http://www.w3.org/2001/XMLSchema-instance">PT1MfalseP10675199DT2H48M5.4775807Sfalsetrue010trueActive2021-02-22T17:47:07.7359932Z2021-02-22T17:47:07.7359932Z0001-01-01T00:00:00P10675199DT2H48M5.4775807SAvailable headers: content-type: - application/atom+xml;type=entry;charset=utf-8 date: - - Fri, 19 Feb 2021 21:45:35 GMT + - Mon, 22 Feb 2021 17:47:07 GMT etag: - - '637493679348200000' + - '637496128272100000' server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -134,9 +134,9 @@ interactions: content-length: - '0' date: - - Fri, 19 Feb 2021 21:45:35 GMT + - Mon, 22 Feb 2021 17:47:07 GMT etag: - - '637493679348200000' + - '637496128272100000' server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -166,9 +166,9 @@ interactions: content-length: - '0' date: - - Fri, 19 Feb 2021 21:45:36 GMT + - Mon, 22 Feb 2021 17:47:08 GMT etag: - - '637493679348200000' + - '637496128272100000' server: - Microsoft-HTTPAPI/2.0 strict-transport-security: diff --git a/sdk/servicebus/azure-servicebus/tests/mgmt_tests/recordings/test_mgmt_subscriptions.test_mgmt_subscription_update_dict_success.yaml b/sdk/servicebus/azure-servicebus/tests/mgmt_tests/recordings/test_mgmt_subscriptions.test_mgmt_subscription_update_dict_success.yaml index e4f808c5ad22..77c2c27f4032 100644 --- a/sdk/servicebus/azure-servicebus/tests/mgmt_tests/recordings/test_mgmt_subscriptions.test_mgmt_subscription_update_dict_success.yaml +++ b/sdk/servicebus/azure-servicebus/tests/mgmt_tests/recordings/test_mgmt_subscriptions.test_mgmt_subscription_update_dict_success.yaml @@ -14,13 +14,13 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-04 response: body: - string: Topicshttps://servicebustestjmymjb7sd3.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-042021-02-19T21:45:37Z + string: Topicshttps://servicebustestci5epio27o.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-042021-02-22T17:47:09Z headers: content-type: - application/atom+xml;type=feed;charset=utf-8 date: - - Fri, 19 Feb 2021 21:45:36 GMT + - Mon, 22 Feb 2021 17:47:08 GMT server: - Microsoft-HTTPAPI/2.0 transfer-encoding: @@ -50,16 +50,16 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjruid?api-version=2017-04 response: body: - string: https://servicebustestjmymjb7sd3.servicebus.windows.net/fjruid?api-version=2017-04fjruid2021-02-19T21:45:37Z2021-02-19T21:45:37Zservicebustestjmymjb7sd3https://servicebustestci5epio27o.servicebus.windows.net/fjruid?api-version=2017-04fjruid2021-02-22T17:47:09Z2021-02-22T17:47:09Zservicebustestci5epio27oP10675199DT2H48M5.4775807S1024falsePT10Mtrue0falsefalseActive2021-02-19T21:45:37.517Z2021-02-19T21:45:37.553ZtrueP10675199DT2H48M5.4775807SfalseAvailablefalsefalse + xmlns:i="http://www.w3.org/2001/XMLSchema-instance">P10675199DT2H48M5.4775807S1024falsePT10Mtrue0falsefalseActive2021-02-22T17:47:09.707Z2021-02-22T17:47:09.733ZtrueP10675199DT2H48M5.4775807SfalseAvailablefalsefalse headers: content-type: - application/atom+xml;type=entry;charset=utf-8 date: - - Fri, 19 Feb 2021 21:45:37 GMT + - Mon, 22 Feb 2021 17:47:09 GMT server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -91,18 +91,18 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjruid/subscriptions/eqkovcd?api-version=2017-04 response: body: - string: https://servicebustestjmymjb7sd3.servicebus.windows.net/fjruid/subscriptions/eqkovcd?api-version=2017-04eqkovcd2021-02-19T21:45:38Z2021-02-19T21:45:38Zhttps://servicebustestci5epio27o.servicebus.windows.net/fjruid/subscriptions/eqkovcd?api-version=2017-04eqkovcd2021-02-22T17:47:10Z2021-02-22T17:47:10ZPT1MfalseP10675199DT2H48M5.4775807Sfalsetrue010trueActive2021-02-19T21:45:38.1091508Z2021-02-19T21:45:38.1091508Z0001-01-01T00:00:00P10675199DT2H48M5.4775807SAvailable + xmlns:i="http://www.w3.org/2001/XMLSchema-instance">PT1MfalseP10675199DT2H48M5.4775807Sfalsetrue010trueActive2021-02-22T17:47:10.2591223Z2021-02-22T17:47:10.2591223Z0001-01-01T00:00:00P10675199DT2H48M5.4775807SAvailable headers: content-type: - application/atom+xml;type=entry;charset=utf-8 date: - - Fri, 19 Feb 2021 21:45:38 GMT + - Mon, 22 Feb 2021 17:47:09 GMT etag: - - '637493679375530000' + - '637496128297330000' server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -136,18 +136,18 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjruid/subscriptions/eqkovcd?api-version=2017-04 response: body: - string: https://servicebustestjmymjb7sd3.servicebus.windows.net/fjruid/subscriptions/eqkovcd?api-version=2017-04eqkovcd2021-02-19T21:45:38Z2021-02-19T21:45:38Zhttps://servicebustestci5epio27o.servicebus.windows.net/fjruid/subscriptions/eqkovcd?api-version=2017-04eqkovcd2021-02-22T17:47:10Z2021-02-22T17:47:10ZPT2MfalseP10675199DT2H48M5.477539Sfalsetrue010trueActive2021-02-19T21:45:38.2966617Z2021-02-19T21:45:38.2966617Z0001-01-01T00:00:00P10675199DT2H48M5.477539SAvailable + xmlns:i="http://www.w3.org/2001/XMLSchema-instance">PT2MfalseP10675199DT2H48M5.477539Sfalsetrue010trueActive2021-02-22T17:47:10.399797Z2021-02-22T17:47:10.399797Z0001-01-01T00:00:00P10675199DT2H48M5.477539SAvailable headers: content-type: - application/atom+xml;type=entry;charset=utf-8 date: - - Fri, 19 Feb 2021 21:45:38 GMT + - Mon, 22 Feb 2021 17:47:09 GMT etag: - - '637493679375530000' + - '637496128297330000' server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -172,19 +172,19 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjruid/subscriptions/eqkovcd?enrich=false&api-version=2017-04 response: body: - string: sb://servicebustestjmymjb7sd3.servicebus.windows.net/fjruid/subscriptions/eqkovcd?enrich=false&api-version=2017-04eqkovcd2021-02-19T21:45:38Z2021-02-19T21:45:38Zsb://servicebustestci5epio27o.servicebus.windows.net/fjruid/subscriptions/eqkovcd?enrich=false&api-version=2017-04eqkovcd2021-02-22T17:47:10Z2021-02-22T17:47:10ZPT2MfalseP10675199DT2H48M5.477539Sfalsetrue010trueActive2021-02-19T21:45:38.1168535Z2021-02-19T21:45:38.3200131Z2021-02-19T21:45:38.117ZPT2MfalseP10675199DT2H48M5.477539Sfalsetrue010trueActive2021-02-22T17:47:10.2651646Z2021-02-22T17:47:10.4214378Z2021-02-22T17:47:10.267Z00000P10675199DT2H48M5.477539SAvailable headers: content-type: - application/atom+xml;type=entry;charset=utf-8 date: - - Fri, 19 Feb 2021 21:45:38 GMT + - Mon, 22 Feb 2021 17:47:09 GMT etag: - - '637493679375530000' + - '637496128297330000' server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -218,18 +218,18 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjruid/subscriptions/eqkovcd?api-version=2017-04 response: body: - string: https://servicebustestjmymjb7sd3.servicebus.windows.net/fjruid/subscriptions/eqkovcd?api-version=2017-04eqkovcd2021-02-19T21:45:38Z2021-02-19T21:45:38Zhttps://servicebustestci5epio27o.servicebus.windows.net/fjruid/subscriptions/eqkovcd?api-version=2017-04eqkovcd2021-02-22T17:47:10Z2021-02-22T17:47:10ZPT12SfalsePT11Mtruetrue014trueActive2021-02-19T21:45:38.5154426Z2021-02-19T21:45:38.5154426Z0001-01-01T00:00:00PT10MAvailable + xmlns:i="http://www.w3.org/2001/XMLSchema-instance">PT12SfalsePT11Mtruetrue014trueActive2021-02-22T17:47:10.6341272Z2021-02-22T17:47:10.6341272Z0001-01-01T00:00:00PT10MAvailable headers: content-type: - application/atom+xml;type=entry;charset=utf-8 date: - - Fri, 19 Feb 2021 21:45:38 GMT + - Mon, 22 Feb 2021 17:47:09 GMT etag: - - '637493679375530000' + - '637496128297330000' server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -254,19 +254,19 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjruid/subscriptions/eqkovcd?enrich=false&api-version=2017-04 response: body: - string: sb://servicebustestjmymjb7sd3.servicebus.windows.net/fjruid/subscriptions/eqkovcd?enrich=false&api-version=2017-04eqkovcd2021-02-19T21:45:38Z2021-02-19T21:45:38Zsb://servicebustestci5epio27o.servicebus.windows.net/fjruid/subscriptions/eqkovcd?enrich=false&api-version=2017-04eqkovcd2021-02-22T17:47:10Z2021-02-22T17:47:10ZPT12SfalsePT11Mtruetrue014trueActive2021-02-19T21:45:38.1168535Z2021-02-19T21:45:38.5231856Z2021-02-19T21:45:38.117ZPT12SfalsePT11Mtruetrue014trueActive2021-02-22T17:47:10.2651646Z2021-02-22T17:47:10.6401689Z2021-02-22T17:47:10.267Z00000PT10MAvailable headers: content-type: - application/atom+xml;type=entry;charset=utf-8 date: - - Fri, 19 Feb 2021 21:45:38 GMT + - Mon, 22 Feb 2021 17:47:09 GMT etag: - - '637493679375530000' + - '637496128297330000' server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -280,7 +280,7 @@ interactions: body: ' PT12SfalsePT11Mtruetrue14trueActivesb://servicebustestjmymjb7sd3.servicebus.windows.net/fjruidsb://servicebustestjmymjb7sd3.servicebus.windows.net/fjruidPT10MAvailable' + type="application/xml">PT12SfalsePT11Mtruetrue14trueActivesb://servicebustestci5epio27o.servicebus.windows.net/fjruidsb://servicebustestci5epio27o.servicebus.windows.net/fjruidPT10MAvailable' headers: Accept: - application/xml @@ -295,27 +295,27 @@ interactions: If-Match: - '*' ServiceBusDlqSupplementaryAuthorization: - - SharedAccessSignature sr=sb%3A%2F%2Fservicebustestjmymjb7sd3.servicebus.windows.net%2Ffjruid&sig=YXKZlLQAbg%2brpNyCwOQA9cg89vN3iL2dISzSxU3hv3c%3d&se=1613774738&skn=RootManageSharedAccessKey + - SharedAccessSignature sr=sb%3A%2F%2Fservicebustestci5epio27o.servicebus.windows.net%2Ffjruid&sig=H1jGymue5GPijGgOOypcIhfveZDgQDb5QN1KIBFKbJw%3d&se=1614019630&skn=RootManageSharedAccessKey ServiceBusSupplementaryAuthorization: - - SharedAccessSignature sr=sb%3A%2F%2Fservicebustestjmymjb7sd3.servicebus.windows.net%2Ffjruid&sig=YXKZlLQAbg%2brpNyCwOQA9cg89vN3iL2dISzSxU3hv3c%3d&se=1613774738&skn=RootManageSharedAccessKey + - SharedAccessSignature sr=sb%3A%2F%2Fservicebustestci5epio27o.servicebus.windows.net%2Ffjruid&sig=H1jGymue5GPijGgOOypcIhfveZDgQDb5QN1KIBFKbJw%3d&se=1614019630&skn=RootManageSharedAccessKey User-Agent: - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.0 (Windows-10-10.0.19041-SP0) method: PUT uri: https://servicebustestsbname.servicebus.windows.net/fjruid/subscriptions/eqkovcd?api-version=2017-04 response: body: - string: https://servicebustestjmymjb7sd3.servicebus.windows.net/fjruid/subscriptions/eqkovcd?api-version=2017-04eqkovcd2021-02-19T21:45:38Z2021-02-19T21:45:38Zhttps://servicebustestci5epio27o.servicebus.windows.net/fjruid/subscriptions/eqkovcd?api-version=2017-04eqkovcd2021-02-22T17:47:10Z2021-02-22T17:47:10ZPT12SfalsePT11Mtruetrue014trueActivesb://servicebustestjmymjb7sd3.servicebus.windows.net/fjruid2021-02-19T21:45:38.7341636Z2021-02-19T21:45:38.7341636Z0001-01-01T00:00:00sb://servicebustestjmymjb7sd3.servicebus.windows.net/fjruidP10675199DT2H48M5.4775807SAvailable + xmlns:i="http://www.w3.org/2001/XMLSchema-instance">PT12SfalsePT11Mtruetrue014trueActivesb://servicebustestci5epio27o.servicebus.windows.net/fjruid2021-02-22T17:47:10.8528694Z2021-02-22T17:47:10.8528694Z0001-01-01T00:00:00sb://servicebustestci5epio27o.servicebus.windows.net/fjruidP10675199DT2H48M5.4775807SAvailable headers: content-type: - application/atom+xml;type=entry;charset=utf-8 date: - - Fri, 19 Feb 2021 21:45:38 GMT + - Mon, 22 Feb 2021 17:47:09 GMT etag: - - '637493679375530000' + - '637496128297330000' server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -340,19 +340,19 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjruid/subscriptions/eqkovcd?enrich=false&api-version=2017-04 response: body: - string: sb://servicebustestjmymjb7sd3.servicebus.windows.net/fjruid/subscriptions/eqkovcd?enrich=false&api-version=2017-04eqkovcd2021-02-19T21:45:38Z2021-02-19T21:45:38Zsb://servicebustestci5epio27o.servicebus.windows.net/fjruid/subscriptions/eqkovcd?enrich=false&api-version=2017-04eqkovcd2021-02-22T17:47:10Z2021-02-22T17:47:10ZPT12SfalsePT11Mtruetrue014trueActivesb://servicebustestjmymjb7sd3.servicebus.windows.net/fjruid2021-02-19T21:45:38.1168535Z2021-02-19T21:45:38.7575639Z2021-02-19T21:45:38.117Z00000sb://servicebustestjmymjb7sd3.servicebus.windows.net/fjruidP10675199DT2H48M5.4775807SAvailable + xmlns:i="http://www.w3.org/2001/XMLSchema-instance">PT12SfalsePT11Mtruetrue014trueActivesb://servicebustestci5epio27o.servicebus.windows.net/fjruid2021-02-22T17:47:10.2651646Z2021-02-22T17:47:10.8589176Z2021-02-22T17:47:10.267Z00000sb://servicebustestci5epio27o.servicebus.windows.net/fjruidP10675199DT2H48M5.4775807SAvailable headers: content-type: - application/atom+xml;type=entry;charset=utf-8 date: - - Fri, 19 Feb 2021 21:45:38 GMT + - Mon, 22 Feb 2021 17:47:10 GMT etag: - - '637493679375530000' + - '637496128297330000' server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -384,9 +384,9 @@ interactions: content-length: - '0' date: - - Fri, 19 Feb 2021 21:45:38 GMT + - Mon, 22 Feb 2021 17:47:10 GMT etag: - - '637493679375530000' + - '637496128297330000' server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -416,9 +416,9 @@ interactions: content-length: - '0' date: - - Fri, 19 Feb 2021 21:45:39 GMT + - Mon, 22 Feb 2021 17:47:10 GMT etag: - - '637493679375530000' + - '637496128297330000' server: - Microsoft-HTTPAPI/2.0 strict-transport-security: diff --git a/sdk/servicebus/azure-servicebus/tests/mgmt_tests/recordings/test_mgmt_topics.test_mgmt_topic_update_dict_error.yaml b/sdk/servicebus/azure-servicebus/tests/mgmt_tests/recordings/test_mgmt_topics.test_mgmt_topic_update_dict_error.yaml index ba7daf94722b..b5b4ffd8f906 100644 --- a/sdk/servicebus/azure-servicebus/tests/mgmt_tests/recordings/test_mgmt_topics.test_mgmt_topic_update_dict_error.yaml +++ b/sdk/servicebus/azure-servicebus/tests/mgmt_tests/recordings/test_mgmt_topics.test_mgmt_topic_update_dict_error.yaml @@ -14,13 +14,13 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-04 response: body: - string: Topicshttps://servicebustestsdxb3qtlfs.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-042021-02-19T21:34:48Z + string: Topicshttps://servicebustestoqlgcsma7x.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-042021-02-22T17:50:13Z headers: content-type: - application/atom+xml;type=feed;charset=utf-8 date: - - Fri, 19 Feb 2021 21:34:48 GMT + - Mon, 22 Feb 2021 17:50:12 GMT server: - Microsoft-HTTPAPI/2.0 transfer-encoding: @@ -50,16 +50,16 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/dfjdfj?api-version=2017-04 response: body: - string: https://servicebustestsdxb3qtlfs.servicebus.windows.net/dfjdfj?api-version=2017-04dfjdfj2021-02-19T21:34:48Z2021-02-19T21:34:49Zservicebustestsdxb3qtlfshttps://servicebustestoqlgcsma7x.servicebus.windows.net/dfjdfj?api-version=2017-04dfjdfj2021-02-22T17:50:14Z2021-02-22T17:50:14Zservicebustestoqlgcsma7xP10675199DT2H48M5.4775807S1024falsePT10Mtrue0falsefalseActive2021-02-19T21:34:48.92Z2021-02-19T21:34:49ZtrueP10675199DT2H48M5.4775807SfalseAvailablefalsefalse + xmlns:i="http://www.w3.org/2001/XMLSchema-instance">P10675199DT2H48M5.4775807S1024falsePT10Mtrue0falsefalseActive2021-02-22T17:50:14.26Z2021-02-22T17:50:14.367ZtrueP10675199DT2H48M5.4775807SfalseAvailablefalsefalse headers: content-type: - application/atom+xml;type=entry;charset=utf-8 date: - - Fri, 19 Feb 2021 21:34:49 GMT + - Mon, 22 Feb 2021 17:50:13 GMT server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -91,9 +91,9 @@ interactions: content-length: - '0' date: - - Fri, 19 Feb 2021 21:34:50 GMT + - Mon, 22 Feb 2021 17:50:14 GMT etag: - - '637493672890000000' + - '637496130143670000' server: - Microsoft-HTTPAPI/2.0 strict-transport-security: diff --git a/sdk/servicebus/azure-servicebus/tests/mgmt_tests/recordings/test_mgmt_topics.test_mgmt_topic_update_dict_success.yaml b/sdk/servicebus/azure-servicebus/tests/mgmt_tests/recordings/test_mgmt_topics.test_mgmt_topic_update_dict_success.yaml index 5973c1bd0f0c..3e410fc3029d 100644 --- a/sdk/servicebus/azure-servicebus/tests/mgmt_tests/recordings/test_mgmt_topics.test_mgmt_topic_update_dict_success.yaml +++ b/sdk/servicebus/azure-servicebus/tests/mgmt_tests/recordings/test_mgmt_topics.test_mgmt_topic_update_dict_success.yaml @@ -14,13 +14,13 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-04 response: body: - string: Topicshttps://servicebustestsdxb3qtlfs.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-042021-02-19T21:34:50Z + string: Topicshttps://servicebustestoqlgcsma7x.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-042021-02-22T17:50:16Z headers: content-type: - application/atom+xml;type=feed;charset=utf-8 date: - - Fri, 19 Feb 2021 21:34:50 GMT + - Mon, 22 Feb 2021 17:50:15 GMT server: - Microsoft-HTTPAPI/2.0 transfer-encoding: @@ -50,16 +50,16 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjruid?api-version=2017-04 response: body: - string: https://servicebustestsdxb3qtlfs.servicebus.windows.net/fjruid?api-version=2017-04fjruid2021-02-19T21:34:51Z2021-02-19T21:34:51Zservicebustestsdxb3qtlfshttps://servicebustestoqlgcsma7x.servicebus.windows.net/fjruid?api-version=2017-04fjruid2021-02-22T17:50:16Z2021-02-22T17:50:16Zservicebustestoqlgcsma7xP10675199DT2H48M5.4775807S1024falsePT10Mtrue0falsefalseActive2021-02-19T21:34:51.427Z2021-02-19T21:34:51.473ZtrueP10675199DT2H48M5.4775807SfalseAvailablefalsefalse + xmlns:i="http://www.w3.org/2001/XMLSchema-instance">P10675199DT2H48M5.4775807S1024falsePT10Mtrue0falsefalseActive2021-02-22T17:50:16.64Z2021-02-22T17:50:16.667ZtrueP10675199DT2H48M5.4775807SfalseAvailablefalsefalse headers: content-type: - application/atom+xml;type=entry;charset=utf-8 date: - - Fri, 19 Feb 2021 21:34:51 GMT + - Mon, 22 Feb 2021 17:50:16 GMT server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -94,18 +94,18 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjruid?api-version=2017-04 response: body: - string: https://servicebustestsdxb3qtlfs.servicebus.windows.net/fjruid?api-version=2017-04fjruid2021-02-19T21:34:52Zservicebustestsdxb3qtlfshttps://servicebustestoqlgcsma7x.servicebus.windows.net/fjruid?api-version=2017-04fjruid2021-02-22T17:50:17Zservicebustestoqlgcsma7xPT2M1024falsePT10Mtrue0ActivetrueP10675199DT2H48M5.477539SfalseAvailablefalse headers: content-type: - application/atom+xml;type=entry;charset=utf-8 date: - - Fri, 19 Feb 2021 21:34:51 GMT + - Mon, 22 Feb 2021 17:50:16 GMT etag: - - '637493672914730000' + - '637496130166670000' server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -130,19 +130,19 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjruid?enrich=false&api-version=2017-04 response: body: - string: https://servicebustestsdxb3qtlfs.servicebus.windows.net/fjruid?enrich=false&api-version=2017-04fjruid2021-02-19T21:34:51Z2021-02-19T21:34:52Zservicebustestsdxb3qtlfshttps://servicebustestoqlgcsma7x.servicebus.windows.net/fjruid?enrich=false&api-version=2017-04fjruid2021-02-22T17:50:16Z2021-02-22T17:50:17Zservicebustestoqlgcsma7xPT2M1024falsePT10Mtrue0falsefalseActive2021-02-19T21:34:51.427Z2021-02-19T21:34:52.717Z0001-01-01T00:00:00ZtruePT2M1024falsePT10Mtrue0falsefalseActive2021-02-22T17:50:16.64Z2021-02-22T17:50:17.203Z0001-01-01T00:00:00Ztrue000000P10675199DT2H48M5.477539SfalseAvailablefalsefalse headers: content-type: - application/atom+xml;type=entry;charset=utf-8 date: - - Fri, 19 Feb 2021 21:34:51 GMT + - Mon, 22 Feb 2021 17:50:16 GMT etag: - - '637493672927170000' + - '637496130172030000' server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -177,18 +177,18 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjruid?api-version=2017-04 response: body: - string: https://servicebustestsdxb3qtlfs.servicebus.windows.net/fjruid?api-version=2017-04fjruid2021-02-19T21:34:52Zservicebustestsdxb3qtlfshttps://servicebustestoqlgcsma7x.servicebus.windows.net/fjruid?api-version=2017-04fjruid2021-02-22T17:50:17Zservicebustestoqlgcsma7xPT11M3072falsePT12Mtrue0ActivetruePT10MfalseAvailabletrue headers: content-type: - application/atom+xml;type=entry;charset=utf-8 date: - - Fri, 19 Feb 2021 21:34:52 GMT + - Mon, 22 Feb 2021 17:50:16 GMT etag: - - '637493672927170000' + - '637496130172030000' server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -213,19 +213,19 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjruid?enrich=false&api-version=2017-04 response: body: - string: https://servicebustestsdxb3qtlfs.servicebus.windows.net/fjruid?enrich=false&api-version=2017-04fjruid2021-02-19T21:34:51Z2021-02-19T21:34:52Zservicebustestsdxb3qtlfshttps://servicebustestoqlgcsma7x.servicebus.windows.net/fjruid?enrich=false&api-version=2017-04fjruid2021-02-22T17:50:16Z2021-02-22T17:50:17Zservicebustestoqlgcsma7xPT11M3072falsePT12Mtrue0falsefalseActive2021-02-19T21:34:51.427Z2021-02-19T21:34:52.977Z0001-01-01T00:00:00ZtruePT11M3072falsePT12Mtrue0falsefalseActive2021-02-22T17:50:16.64Z2021-02-22T17:50:17.437Z0001-01-01T00:00:00Ztrue000000PT10MfalseAvailablefalsetrue headers: content-type: - application/atom+xml;type=entry;charset=utf-8 date: - - Fri, 19 Feb 2021 21:34:52 GMT + - Mon, 22 Feb 2021 17:50:16 GMT etag: - - '637493672929770000' + - '637496130174370000' server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -257,9 +257,9 @@ interactions: content-length: - '0' date: - - Fri, 19 Feb 2021 21:34:53 GMT + - Mon, 22 Feb 2021 17:50:17 GMT etag: - - '637493672929770000' + - '637496130174370000' server: - Microsoft-HTTPAPI/2.0 strict-transport-security: From 97d52b4812cad5ab7856da2d13d38d9e900f8019 Mon Sep 17 00:00:00 2001 From: Swathi Pillalamarri Date: Mon, 22 Feb 2021 14:50:19 -0600 Subject: [PATCH 20/30] fix mypy/pylint --- .../azure/servicebus/_common/message.py | 2 +- .../azure/servicebus/_common/utils.py | 18 +++++++++----- .../azure/servicebus/_servicebus_sender.py | 2 +- .../aio/_servicebus_sender_async.py | 2 +- .../management/_management_client_async.py | 8 +++---- .../management/_management_client.py | 8 +++---- .../azure/servicebus/management/_utils.py | 24 +++++++++++-------- .../tests/async_tests/test_queues_async.py | 10 ++++---- .../azure-servicebus/tests/test_queues.py | 10 ++++---- 9 files changed, 47 insertions(+), 37 deletions(-) diff --git a/sdk/servicebus/azure-servicebus/azure/servicebus/_common/message.py b/sdk/servicebus/azure-servicebus/azure/servicebus/_common/message.py index 42984190e11a..5315123c0905 100644 --- a/sdk/servicebus/azure-servicebus/azure/servicebus/_common/message.py +++ b/sdk/servicebus/azure-servicebus/azure/servicebus/_common/message.py @@ -584,7 +584,7 @@ def add_message(self, message): def _add(self, message, parent_span=None): # type: (ServiceBusMessage, AbstractSpan) -> None """Actual add implementation. The shim exists to hide the internal parameters such as parent_span.""" - + message = create_messages_from_dicts_if_needed(message, ServiceBusMessage) message = transform_messages_to_sendable_if_needed(message) trace_message( diff --git a/sdk/servicebus/azure-servicebus/azure/servicebus/_common/utils.py b/sdk/servicebus/azure-servicebus/azure/servicebus/_common/utils.py index 5ef8fa36fec3..00b09cd9333f 100644 --- a/sdk/servicebus/azure-servicebus/azure/servicebus/_common/utils.py +++ b/sdk/servicebus/azure-servicebus/azure/servicebus/_common/utils.py @@ -9,7 +9,7 @@ import logging import functools import platform -from typing import Dict, List, Iterable, TYPE_CHECKING, Union +from typing import Dict, List, Iterable, TYPE_CHECKING, Union, Optional, Iterator, Type from contextlib import contextmanager from msrest.serialization import UTC @@ -57,6 +57,12 @@ ServiceBusMessageBatch ] + DictMessageReturnType = Union[ + ServiceBusMessage, + List[ServiceBusMessage], + ServiceBusMessageBatch + ] + _log = logging.getLogger(__name__) @@ -206,16 +212,16 @@ def transform_messages_to_sendable_if_needed(messages): return messages def create_messages_from_dicts_if_needed(messages, message_type): + # type: (DictMessageType, type) -> DictMessageReturnType """ This method is used to convert dict representations of messages and to a list of ServiceBusMessage objects or ServiceBusBatchMessage. + :param DictMessageType messages: A list or single instance of messages of type ServiceBusMessages or + dict representations of type ServiceBusMessage. Also accepts ServiceBusBatchMessage. + :rtype: DictMessageReturnType """ - # type: (DictMessageType) -> Union[List[ServiceBusMessage], ServiceBusMessage, ServiceBusMessageBatch] if isinstance(messages, list): - for index, message in enumerate(messages): - if isinstance(message, dict): - messages[index] = message_type(**message) - return [(message_type(**messages) if isinstance(messages, dict) else message) for message in messages] + return [(message_type(**message) if isinstance(message, dict) else message) for message in messages] return message_type(**messages) if isinstance(messages, dict) else messages diff --git a/sdk/servicebus/azure-servicebus/azure/servicebus/_servicebus_sender.py b/sdk/servicebus/azure-servicebus/azure/servicebus/_servicebus_sender.py index 216deab28946..fee2b3d4ed91 100644 --- a/sdk/servicebus/azure-servicebus/azure/servicebus/_servicebus_sender.py +++ b/sdk/servicebus/azure-servicebus/azure/servicebus/_servicebus_sender.py @@ -272,7 +272,7 @@ def schedule_messages(self, messages, schedule_time_utc, **kwargs): # pylint: disable=protected-access self._check_live() - messages = create_messages_from_dicts_if_needed(messages, ServiceBusMessage) + messages = create_messages_from_dicts_if_needed(messages, ServiceBusMessage) # type: ignore timeout = kwargs.pop("timeout", None) if timeout is not None and timeout <= 0: raise ValueError("The timeout must be greater than 0.") diff --git a/sdk/servicebus/azure-servicebus/azure/servicebus/aio/_servicebus_sender_async.py b/sdk/servicebus/azure-servicebus/azure/servicebus/aio/_servicebus_sender_async.py index 950c2763f235..1e71b1255557 100644 --- a/sdk/servicebus/azure-servicebus/azure/servicebus/aio/_servicebus_sender_async.py +++ b/sdk/servicebus/azure-servicebus/azure/servicebus/aio/_servicebus_sender_async.py @@ -209,7 +209,7 @@ async def schedule_messages( # pylint: disable=protected-access self._check_live() - messages = create_messages_from_dicts_if_needed(messages, ServiceBusMessage) + messages = create_messages_from_dicts_if_needed(messages, ServiceBusMessage) # type: ignore timeout = kwargs.pop("timeout", None) if timeout is not None and timeout <= 0: raise ValueError("The timeout must be greater than 0.") diff --git a/sdk/servicebus/azure-servicebus/azure/servicebus/aio/management/_management_client_async.py b/sdk/servicebus/azure-servicebus/azure/servicebus/aio/management/_management_client_async.py index 064fa0506177..8f774c947846 100644 --- a/sdk/servicebus/azure-servicebus/azure/servicebus/aio/management/_management_client_async.py +++ b/sdk/servicebus/azure-servicebus/azure/servicebus/aio/management/_management_client_async.py @@ -412,7 +412,7 @@ async def update_queue(self, queue: QueueProperties, **kwargs) -> None: :rtype: None """ - queue = create_properties_from_dict_if_needed(queue, QueueProperties) + queue = create_properties_from_dict_if_needed(queue, QueueProperties) # type: ignore to_update = queue._to_internal_entity() to_update.default_message_time_to_live = avoid_timedelta_overflow( @@ -639,7 +639,7 @@ async def update_topic(self, topic: TopicProperties, **kwargs) -> None: :rtype: None """ - topic = create_properties_from_dict_if_needed(topic, TopicProperties) + topic = create_properties_from_dict_if_needed(topic, TopicProperties) # type: ignore to_update = topic._to_internal_entity() to_update.default_message_time_to_live = avoid_timedelta_overflow( @@ -887,7 +887,7 @@ async def update_subscription( _validate_entity_name_type(topic_name, display_name="topic_name") - subscription = create_properties_from_dict_if_needed(subscription, SubscriptionProperties) + subscription = create_properties_from_dict_if_needed(subscription, SubscriptionProperties) # type: ignore to_update = subscription._to_internal_entity() to_update.default_message_time_to_live = avoid_timedelta_overflow( @@ -1085,7 +1085,7 @@ async def update_rule( """ _validate_topic_and_subscription_types(topic_name, subscription_name) - rule = create_properties_from_dict_if_needed(rule, RuleProperties) + rule = create_properties_from_dict_if_needed(rule, RuleProperties) # type: ignore to_update = rule._to_internal_entity() create_entity_body = CreateRuleBody( diff --git a/sdk/servicebus/azure-servicebus/azure/servicebus/management/_management_client.py b/sdk/servicebus/azure-servicebus/azure/servicebus/management/_management_client.py index 3600755c82d7..eb4500c6916c 100644 --- a/sdk/servicebus/azure-servicebus/azure/servicebus/management/_management_client.py +++ b/sdk/servicebus/azure-servicebus/azure/servicebus/management/_management_client.py @@ -405,7 +405,7 @@ def update_queue(self, queue, **kwargs): :rtype: None """ - queue = create_properties_from_dict_if_needed(queue, QueueProperties) + queue = create_properties_from_dict_if_needed(queue, QueueProperties) # type: ignore to_update = queue._to_internal_entity() to_update.default_message_time_to_live = avoid_timedelta_overflow( @@ -634,7 +634,7 @@ def update_topic(self, topic, **kwargs): :rtype: None """ - topic = create_properties_from_dict_if_needed(topic, TopicProperties) + topic = create_properties_from_dict_if_needed(topic, TopicProperties) # type: ignore to_update = topic._to_internal_entity() to_update.default_message_time_to_live = ( @@ -890,7 +890,7 @@ def update_subscription(self, topic_name, subscription, **kwargs): _validate_entity_name_type(topic_name, display_name="topic_name") - subscription = create_properties_from_dict_if_needed(subscription, SubscriptionProperties) + subscription = create_properties_from_dict_if_needed(subscription, SubscriptionProperties) # type: ignore to_update = subscription._to_internal_entity() to_update.default_message_time_to_live = avoid_timedelta_overflow( @@ -1082,7 +1082,7 @@ def update_rule(self, topic_name, subscription_name, rule, **kwargs): """ _validate_topic_and_subscription_types(topic_name, subscription_name) - rule = create_properties_from_dict_if_needed(rule, RuleProperties) + rule = create_properties_from_dict_if_needed(rule, RuleProperties) # type: ignore to_update = rule._to_internal_entity() create_entity_body = CreateRuleBody( diff --git a/sdk/servicebus/azure-servicebus/azure/servicebus/management/_utils.py b/sdk/servicebus/azure-servicebus/azure/servicebus/management/_utils.py index df21a8e00fcd..1470147ece8b 100644 --- a/sdk/servicebus/azure-servicebus/azure/servicebus/management/_utils.py +++ b/sdk/servicebus/azure-servicebus/azure/servicebus/management/_utils.py @@ -3,13 +3,12 @@ # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- from datetime import datetime, timedelta -from typing import TYPE_CHECKING, cast, Union +from typing import TYPE_CHECKING, cast, Union, Dict from xml.etree.ElementTree import ElementTree, SubElement, QName -import logging -from azure.servicebus.management import _constants as constants - import isodate import six + +from azure.servicebus.management import _constants as constants from ._handle_response_error import _handle_response_error if TYPE_CHECKING: # pylint: disable=unused-import, ungrouped-imports @@ -20,13 +19,14 @@ QueueProperties, TopicProperties, SubscriptionProperties, - RuleProperties + RuleProperties, + Dict ] DictPropertiesReturnType = Union[ - InternalQueueDescription, - InternalTopicDescription, - InternalSubscriptionDescription, - InternalRuleDescription + QueueProperties, + TopicProperties, + SubscriptionProperties, + RuleProperties ] # Refer to the async version of this module under ..\aio\management\_utils.py for detailed explanation. @@ -326,11 +326,15 @@ def _validate_topic_subscription_and_rule_types( ) def create_properties_from_dict_if_needed(properties, sb_resource_type): + # type: (DictPropertiesType, type) -> DictPropertiesType """ This method is used to create a properties object given the resource properties type and its corresponding dict representation. + :param properties: A properties object or its dict representation. + :type properties: DictPropertiesType + :param type sb_resource_type: The type of properties object. + :rtype: DictPropertiesReturnType """ - # type: (dict, DictPropertiesType) -> (DictPropertiesReturnType) if isinstance(properties, dict): dict_to_props = sb_resource_type(**properties) properties = dict_to_props diff --git a/sdk/servicebus/azure-servicebus/tests/async_tests/test_queues_async.py b/sdk/servicebus/azure-servicebus/tests/async_tests/test_queues_async.py index bd143e57f860..0d6d4c77c533 100644 --- a/sdk/servicebus/azure-servicebus/tests/async_tests/test_queues_async.py +++ b/sdk/servicebus/azure-servicebus/tests/async_tests/test_queues_async.py @@ -1757,7 +1757,7 @@ async def test_async_queue_by_servicebus_client_enum_case_sensitivity(self, serv @CachedResourceGroupPreparer(name_prefix='servicebustest') @CachedServiceBusNamespacePreparer(name_prefix='servicebustest') @ServiceBusQueuePreparer(name_prefix='servicebustest') - async def test_queue_async_send_dicts_messages(self, servicebus_namespace_connection_string, servicebus_queue, **kwargs): + async def test_queue_async_send_dict_messages(self, servicebus_namespace_connection_string, servicebus_queue, **kwargs): async with ServiceBusClient.from_connection_string( servicebus_namespace_connection_string, logging_enable=False) as sb_client: @@ -1774,7 +1774,7 @@ async def test_queue_async_send_dicts_messages(self, servicebus_namespace_connec await sender.send_messages(list_message_dicts) # create and send BatchMessage with dicts - batch_message = await sender.create_batch() + batch_message = await sender.create_message_batch() batch_message._from_list(list_message_dicts) # pylint: disable=protected-access await sender.send_messages(batch_message) @@ -1808,7 +1808,7 @@ async def test_queue_async_send_dict_messages_error_badly_formatted_dicts(self, await sender.send_messages(list_message_dicts) # create and send BatchMessage with dicts - batch_message = await sender.create_batch() + batch_message = await sender.create_message_batch() with pytest.raises(TypeError): batch_message._from_list(list_message_dicts) # pylint: disable=protected-access @@ -1846,7 +1846,7 @@ async def test_queue_async_send_dict_messages_scheduled(self, servicebus_namespa assert len(messages) == 1 finally: for m in messages: - await m.complete() + await receiver.complete_message(m) else: raise Exception("Failed to receive schdeduled message.") @@ -1869,7 +1869,7 @@ async def test_queue_async_send_dict_messages_scheduled(self, servicebus_namespa assert len(messages) == 2 finally: for m in messages: - await m.complete() + await receiver.complete_message(m) else: raise Exception("Failed to receive schdeduled message.") diff --git a/sdk/servicebus/azure-servicebus/tests/test_queues.py b/sdk/servicebus/azure-servicebus/tests/test_queues.py index c81bce0ab5d8..cfd39f28c09e 100644 --- a/sdk/servicebus/azure-servicebus/tests/test_queues.py +++ b/sdk/servicebus/azure-servicebus/tests/test_queues.py @@ -2214,7 +2214,7 @@ def test_queue_by_servicebus_client_enum_case_sensitivity(self, servicebus_names @CachedResourceGroupPreparer(name_prefix='servicebustest') @CachedServiceBusNamespacePreparer(name_prefix='servicebustest') @ServiceBusQueuePreparer(name_prefix='servicebustest') - def test_queue_send_dicts_messages(self, servicebus_namespace_connection_string, servicebus_queue, **kwargs): + def test_queue_send_dict_messages(self, servicebus_namespace_connection_string, servicebus_queue, **kwargs): with ServiceBusClient.from_connection_string( servicebus_namespace_connection_string, logging_enable=False) as sb_client: @@ -2231,7 +2231,7 @@ def test_queue_send_dicts_messages(self, servicebus_namespace_connection_string, sender.send_messages(list_message_dicts) # create and send BatchMessage with dicts - batch_message = sender.create_batch() + batch_message = sender.create_message_batch() batch_message._from_list(list_message_dicts) # pylint: disable=protected-access sender.send_messages(batch_message) @@ -2265,7 +2265,7 @@ def test_queue_send_dict_messages_error_badly_formatted_dicts(self, servicebus_n sender.send_messages(list_message_dicts) # create and send BatchMessage with dicts - batch_message = sender.create_batch() + batch_message = sender.create_message_batch() with pytest.raises(TypeError): batch_message._from_list(list_message_dicts) # pylint: disable=protected-access @@ -2303,7 +2303,7 @@ def test_queue_send_dict_messages_scheduled(self, servicebus_namespace_connectio assert len(messages) == 1 finally: for m in messages: - m.complete() + receiver.complete_message(m) else: raise Exception("Failed to receive schdeduled message.") @@ -2326,7 +2326,7 @@ def test_queue_send_dict_messages_scheduled(self, servicebus_namespace_connectio assert len(messages) == 2 finally: for m in messages: - m.complete() + receiver.complete_message(m) else: raise Exception("Failed to receive schdeduled message.") From 5b787d4ef474d03f9ef5820c904d215700ba862f Mon Sep 17 00:00:00 2001 From: Swathi Pillalamarri Date: Mon, 22 Feb 2021 15:16:11 -0600 Subject: [PATCH 21/30] fix mypy error in message --- .../azure-servicebus/azure/servicebus/_common/message.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/servicebus/azure-servicebus/azure/servicebus/_common/message.py b/sdk/servicebus/azure-servicebus/azure/servicebus/_common/message.py index 5315123c0905..a9de43b03a26 100644 --- a/sdk/servicebus/azure-servicebus/azure/servicebus/_common/message.py +++ b/sdk/servicebus/azure-servicebus/azure/servicebus/_common/message.py @@ -585,7 +585,7 @@ def _add(self, message, parent_span=None): # type: (ServiceBusMessage, AbstractSpan) -> None """Actual add implementation. The shim exists to hide the internal parameters such as parent_span.""" - message = create_messages_from_dicts_if_needed(message, ServiceBusMessage) + message = create_messages_from_dicts_if_needed(message, ServiceBusMessage) # type: ignore message = transform_messages_to_sendable_if_needed(message) trace_message( message, parent_span From eef03086fdabdf5ad9c1e472bbe5c45ab98820f7 Mon Sep 17 00:00:00 2001 From: Swathi Pillalamarri Date: Mon, 22 Feb 2021 17:33:14 -0600 Subject: [PATCH 22/30] remove duplicate test --- .../azure-servicebus/tests/test_queues.py | 26 ------------------- 1 file changed, 26 deletions(-) diff --git a/sdk/servicebus/azure-servicebus/tests/test_queues.py b/sdk/servicebus/azure-servicebus/tests/test_queues.py index cfd39f28c09e..a9266f1792a1 100644 --- a/sdk/servicebus/azure-servicebus/tests/test_queues.py +++ b/sdk/servicebus/azure-servicebus/tests/test_queues.py @@ -2075,32 +2075,6 @@ def hack_mgmt_execute(self, operation, op_type, message, timeout=0): # must reset the mgmt execute method, otherwise other test cases would use the hacked execute method, leading to timeout error uamqp.mgmt_operation.MgmtOperation.execute = original_execute_method - @pytest.mark.liveTest - @pytest.mark.live_test_only - @CachedResourceGroupPreparer(name_prefix='servicebustest') - @CachedServiceBusNamespacePreparer(name_prefix='servicebustest') - @CachedServiceBusQueuePreparer(name_prefix='servicebustest', dead_lettering_on_message_expiration=True) - def test_queue_send_timeout(self, servicebus_namespace_connection_string, servicebus_queue, **kwargs): - def _hack_amqp_sender_run(cls): - time.sleep(6) # sleep until timeout - cls.message_handler.work() - cls._waiting_messages = 0 - cls._pending_messages = cls._filter_pending() - if cls._backoff and not cls._waiting_messages: - _logger.info("Client told to backoff - sleeping for %r seconds", cls._backoff) - cls._connection.sleep(cls._backoff) - cls._backoff = 0 - cls._connection.work() - return True - - with ServiceBusClient.from_connection_string( - servicebus_namespace_connection_string, logging_enable=False) as sb_client: - with sb_client.get_queue_sender(servicebus_queue.name) as sender: - # this one doesn't need to reset the method, as it's hacking the method on the instance - sender._handler._client_run = types.MethodType(_hack_amqp_sender_run, sender._handler) - with pytest.raises(OperationTimeoutError): - sender.send_messages(Message("body"), timeout=5) - @pytest.mark.liveTest @pytest.mark.live_test_only @CachedResourceGroupPreparer(name_prefix='servicebustest') From c8bfd205962bb54b653715fbbc3367e6c1178692 Mon Sep 17 00:00:00 2001 From: Swathi Pillalamarri Date: Tue, 23 Feb 2021 11:05:28 -0600 Subject: [PATCH 23/30] adams comments --- .../azure-servicebus/tests/async_tests/test_queues_async.py | 3 ++- sdk/servicebus/azure-servicebus/tests/test_queues.py | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/sdk/servicebus/azure-servicebus/tests/async_tests/test_queues_async.py b/sdk/servicebus/azure-servicebus/tests/async_tests/test_queues_async.py index 0d6d4c77c533..bab61acd00a7 100644 --- a/sdk/servicebus/azure-servicebus/tests/async_tests/test_queues_async.py +++ b/sdk/servicebus/azure-servicebus/tests/async_tests/test_queues_async.py @@ -1776,13 +1776,14 @@ async def test_queue_async_send_dict_messages(self, servicebus_namespace_connect # create and send BatchMessage with dicts batch_message = await sender.create_message_batch() batch_message._from_list(list_message_dicts) # pylint: disable=protected-access + batch_message.add_message(message_dict) await sender.send_messages(batch_message) received_messages = [] async with sb_client.get_queue_receiver(servicebus_queue.name, max_wait_time=5) as receiver: async for message in receiver: received_messages.append(message) - assert len(received_messages) == 5 + assert len(received_messages) == 6 @pytest.mark.liveTest @pytest.mark.live_test_only diff --git a/sdk/servicebus/azure-servicebus/tests/test_queues.py b/sdk/servicebus/azure-servicebus/tests/test_queues.py index a9266f1792a1..3fefe3c5f3ec 100644 --- a/sdk/servicebus/azure-servicebus/tests/test_queues.py +++ b/sdk/servicebus/azure-servicebus/tests/test_queues.py @@ -2207,13 +2207,14 @@ def test_queue_send_dict_messages(self, servicebus_namespace_connection_string, # create and send BatchMessage with dicts batch_message = sender.create_message_batch() batch_message._from_list(list_message_dicts) # pylint: disable=protected-access + batch_message.add_message(message_dict) sender.send_messages(batch_message) received_messages = [] with sb_client.get_queue_receiver(servicebus_queue.name, max_wait_time=5) as receiver: for message in receiver: received_messages.append(message) - assert len(received_messages) == 5 + assert len(received_messages) == 6 @pytest.mark.liveTest @pytest.mark.live_test_only From 315b093022379020a2d50597674bacedfcaeb5b4 Mon Sep 17 00:00:00 2001 From: Swathi Pillalamarri Date: Mon, 1 Mar 2021 18:47:04 -0500 Subject: [PATCH 24/30] anna's comments --- .../azure/servicebus/_common/utils.py | 24 ++- .../azure/servicebus/aio/management/_utils.py | 2 +- .../azure/servicebus/management/_utils.py | 15 +- ...st_mgmt_queue_async_update_dict_error.yaml | 26 ++-- ..._mgmt_queue_async_update_dict_success.yaml | 88 +++++------ ...est_mgmt_rule_async_update_dict_error.yaml | 66 ++++----- ...t_mgmt_rule_async_update_dict_success.yaml | 110 +++++++------- ..._subscription_async_update_dict_error.yaml | 46 +++--- ...ubscription_async_update_dict_success.yaml | 138 +++++++++--------- ...st_mgmt_topic_async_update_dict_error.yaml | 26 ++-- ..._mgmt_topic_async_update_dict_success.yaml | 78 +++++----- ...ues.test_mgmt_queue_update_dict_error.yaml | 20 +-- ...s.test_mgmt_queue_update_dict_success.yaml | 74 +++++----- ...ules.test_mgmt_rule_update_dict_error.yaml | 52 +++---- ...es.test_mgmt_rule_update_dict_success.yaml | 92 ++++++------ ...t_mgmt_subscription_update_dict_error.yaml | 36 ++--- ...mgmt_subscription_update_dict_success.yaml | 116 +++++++-------- ...ics.test_mgmt_topic_update_dict_error.yaml | 20 +-- ...s.test_mgmt_topic_update_dict_success.yaml | 64 ++++---- .../azure-servicebus/tests/test_queues.py | 3 +- 20 files changed, 552 insertions(+), 544 deletions(-) diff --git a/sdk/servicebus/azure-servicebus/azure/servicebus/_common/utils.py b/sdk/servicebus/azure-servicebus/azure/servicebus/_common/utils.py index 00b09cd9333f..723dcca7a9e8 100644 --- a/sdk/servicebus/azure-servicebus/azure/servicebus/_common/utils.py +++ b/sdk/servicebus/azure-servicebus/azure/servicebus/_common/utils.py @@ -9,7 +9,18 @@ import logging import functools import platform -from typing import Dict, List, Iterable, TYPE_CHECKING, Union, Optional, Iterator, Type +from typing import ( + Any, + Dict, + Iterable, + Iterator, + List, + Mapping, + Optional, + Type, + TYPE_CHECKING, + Union +) from contextlib import contextmanager from msrest.serialization import UTC @@ -50,9 +61,9 @@ # pylint: disable=unused-import, ungrouped-imports DictMessageType = Union[ - Dict, + Mapping, ServiceBusMessage, - List[Dict], + List[Mapping[str, Any]], List[ServiceBusMessage], ServiceBusMessageBatch ] @@ -215,15 +226,16 @@ def create_messages_from_dicts_if_needed(messages, message_type): # type: (DictMessageType, type) -> DictMessageReturnType """ This method is used to convert dict representations - of messages and to a list of ServiceBusMessage objects or ServiceBusBatchMessage. + of messages to a list of ServiceBusMessage objects or ServiceBusBatchMessage. :param DictMessageType messages: A list or single instance of messages of type ServiceBusMessages or dict representations of type ServiceBusMessage. Also accepts ServiceBusBatchMessage. :rtype: DictMessageReturnType """ if isinstance(messages, list): - return [(message_type(**message) if isinstance(message, dict) else message) for message in messages] + return [(message_type(**message) if isinstance(message, Mapping) else message) for message in messages] - return message_type(**messages) if isinstance(messages, dict) else messages + return_messages = message_type(**messages) if isinstance(messages, Mapping) else messages + return return_messages def strip_protocol_from_uri(uri): # type: (str) -> str diff --git a/sdk/servicebus/azure-servicebus/azure/servicebus/aio/management/_utils.py b/sdk/servicebus/azure-servicebus/azure/servicebus/aio/management/_utils.py index ef9875647eb3..0660b05a3a05 100644 --- a/sdk/servicebus/azure-servicebus/azure/servicebus/aio/management/_utils.py +++ b/sdk/servicebus/azure-servicebus/azure/servicebus/aio/management/_utils.py @@ -8,7 +8,7 @@ import urllib.parse as urlparse -from azure.servicebus.management import _constants as constants +from ...management import _constants as constants from ...management._handle_response_error import _handle_response_error # This module defines functions get_next_template and extract_data_template. diff --git a/sdk/servicebus/azure-servicebus/azure/servicebus/management/_utils.py b/sdk/servicebus/azure-servicebus/azure/servicebus/management/_utils.py index 1470147ece8b..a6c5a7c302f8 100644 --- a/sdk/servicebus/azure-servicebus/azure/servicebus/management/_utils.py +++ b/sdk/servicebus/azure-servicebus/azure/servicebus/management/_utils.py @@ -3,12 +3,12 @@ # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- from datetime import datetime, timedelta -from typing import TYPE_CHECKING, cast, Union, Dict +from typing import TYPE_CHECKING, cast, Union, Mapping from xml.etree.ElementTree import ElementTree, SubElement, QName import isodate import six -from azure.servicebus.management import _constants as constants +from . import _constants as constants from ._handle_response_error import _handle_response_error if TYPE_CHECKING: # pylint: disable=unused-import, ungrouped-imports @@ -20,7 +20,7 @@ TopicProperties, SubscriptionProperties, RuleProperties, - Dict + Mapping ] DictPropertiesReturnType = Union[ QueueProperties, @@ -326,7 +326,7 @@ def _validate_topic_subscription_and_rule_types( ) def create_properties_from_dict_if_needed(properties, sb_resource_type): - # type: (DictPropertiesType, type) -> DictPropertiesType + # type: (DictPropertiesType, type) -> DictPropertiesReturnType """ This method is used to create a properties object given the resource properties type and its corresponding dict representation. @@ -335,8 +335,5 @@ def create_properties_from_dict_if_needed(properties, sb_resource_type): :param type sb_resource_type: The type of properties object. :rtype: DictPropertiesReturnType """ - if isinstance(properties, dict): - dict_to_props = sb_resource_type(**properties) - properties = dict_to_props - - return properties + return_properties = sb_resource_type(**properties) if isinstance(properties, Mapping) else properties + return return_properties diff --git a/sdk/servicebus/azure-servicebus/tests/async_tests/mgmt_tests/recordings/test_mgmt_queues_async.test_mgmt_queue_async_update_dict_error.yaml b/sdk/servicebus/azure-servicebus/tests/async_tests/mgmt_tests/recordings/test_mgmt_queues_async.test_mgmt_queue_async_update_dict_error.yaml index 87792d05336d..f5ea82041d4e 100644 --- a/sdk/servicebus/azure-servicebus/tests/async_tests/mgmt_tests/recordings/test_mgmt_queues_async.test_mgmt_queue_async_update_dict_error.yaml +++ b/sdk/servicebus/azure-servicebus/tests/async_tests/mgmt_tests/recordings/test_mgmt_queues_async.test_mgmt_queue_async_update_dict_error.yaml @@ -10,17 +10,17 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/$Resources/queues?$skip=0&$top=100&api-version=2017-04 response: body: - string: Queueshttps://servicebustestxfkligz3nn.servicebus.windows.net/$Resources/queues?$skip=0&$top=100&api-version=2017-042021-02-22T17:54:05Z + string: Queueshttps://servicebustest2cm3driod2.servicebus.windows.net/$Resources/queues?$skip=0&$top=100&api-version=2017-042021-03-01T23:34:20Z headers: content-type: application/atom+xml;type=feed;charset=utf-8 - date: Mon, 22 Feb 2021 17:54:04 GMT + date: Mon, 01 Mar 2021 23:34:20 GMT server: Microsoft-HTTPAPI/2.0 transfer-encoding: chunked status: code: 200 message: OK - url: https://servicebustestxfkligz3nn.servicebus.windows.net/$Resources/queues?$skip=0&$top=100&api-version=2017-04 + url: https://servicebustest2cm3driod2.servicebus.windows.net/$Resources/queues?$skip=0&$top=100&api-version=2017-04 - request: body: ' @@ -39,21 +39,21 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjruid?api-version=2017-04 response: body: - string: https://servicebustestxfkligz3nn.servicebus.windows.net/fjruid?api-version=2017-04fjruid2021-02-22T17:54:05Z2021-02-22T17:54:05Zservicebustestxfkligz3nnhttps://servicebustest2cm3driod2.servicebus.windows.net/fjruid?api-version=2017-04fjruid2021-03-01T23:34:21Z2021-03-01T23:34:21Zservicebustest2cm3driod2PT1M1024falsefalseP10675199DT2H48M5.4775807SfalsePT10M10true00falseActive2021-02-22T17:54:05.687Z2021-02-22T17:54:05.72ZtrueP10675199DT2H48M5.4775807SfalseAvailablefalse + xmlns:i="http://www.w3.org/2001/XMLSchema-instance">PT1M1024falsefalseP10675199DT2H48M5.4775807SfalsePT10M10true00falseActive2021-03-01T23:34:21.343Z2021-03-01T23:34:21.453ZtrueP10675199DT2H48M5.4775807SfalseAvailablefalse headers: content-type: application/atom+xml;type=entry;charset=utf-8 - date: Mon, 22 Feb 2021 17:54:05 GMT + date: Mon, 01 Mar 2021 23:34:21 GMT server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 transfer-encoding: chunked status: code: 201 message: Created - url: https://servicebustestxfkligz3nn.servicebus.windows.net/fjruid?api-version=2017-04 + url: https://servicebustest2cm3driod2.servicebus.windows.net/fjruid?api-version=2017-04 - request: body: null headers: @@ -68,12 +68,12 @@ interactions: string: '' headers: content-length: '0' - date: Mon, 22 Feb 2021 17:54:06 GMT - etag: '637496132457200000' + date: Mon, 01 Mar 2021 23:34:22 GMT + etag: '637502384614530000' server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 status: code: 200 message: OK - url: https://servicebustestxfkligz3nn.servicebus.windows.net/fjruid?api-version=2017-04 + url: https://servicebustest2cm3driod2.servicebus.windows.net/fjruid?api-version=2017-04 version: 1 diff --git a/sdk/servicebus/azure-servicebus/tests/async_tests/mgmt_tests/recordings/test_mgmt_queues_async.test_mgmt_queue_async_update_dict_success.yaml b/sdk/servicebus/azure-servicebus/tests/async_tests/mgmt_tests/recordings/test_mgmt_queues_async.test_mgmt_queue_async_update_dict_success.yaml index 49864f67a5b3..42abe7e3e8b7 100644 --- a/sdk/servicebus/azure-servicebus/tests/async_tests/mgmt_tests/recordings/test_mgmt_queues_async.test_mgmt_queue_async_update_dict_success.yaml +++ b/sdk/servicebus/azure-servicebus/tests/async_tests/mgmt_tests/recordings/test_mgmt_queues_async.test_mgmt_queue_async_update_dict_success.yaml @@ -10,17 +10,17 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/$Resources/queues?$skip=0&$top=100&api-version=2017-04 response: body: - string: Queueshttps://servicebustestxfkligz3nn.servicebus.windows.net/$Resources/queues?$skip=0&$top=100&api-version=2017-042021-02-22T17:54:07Z + string: Queueshttps://servicebustest2cm3driod2.servicebus.windows.net/$Resources/queues?$skip=0&$top=100&api-version=2017-042021-03-01T23:34:23Z headers: content-type: application/atom+xml;type=feed;charset=utf-8 - date: Mon, 22 Feb 2021 17:54:07 GMT + date: Mon, 01 Mar 2021 23:34:23 GMT server: Microsoft-HTTPAPI/2.0 transfer-encoding: chunked status: code: 200 message: OK - url: https://servicebustestxfkligz3nn.servicebus.windows.net/$Resources/queues?$skip=0&$top=100&api-version=2017-04 + url: https://servicebustest2cm3driod2.servicebus.windows.net/$Resources/queues?$skip=0&$top=100&api-version=2017-04 - request: body: ' @@ -39,21 +39,21 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjruid?api-version=2017-04 response: body: - string: https://servicebustestxfkligz3nn.servicebus.windows.net/fjruid?api-version=2017-04fjruid2021-02-22T17:54:07Z2021-02-22T17:54:07Zservicebustestxfkligz3nnhttps://servicebustest2cm3driod2.servicebus.windows.net/fjruid?api-version=2017-04fjruid2021-03-01T23:34:23Z2021-03-01T23:34:23Zservicebustest2cm3driod2PT1M1024falsefalseP10675199DT2H48M5.4775807SfalsePT10M10true00falseActive2021-02-22T17:54:07.837Z2021-02-22T17:54:07.867ZtrueP10675199DT2H48M5.4775807SfalseAvailablefalse + xmlns:i="http://www.w3.org/2001/XMLSchema-instance">PT1M1024falsefalseP10675199DT2H48M5.4775807SfalsePT10M10true00falseActive2021-03-01T23:34:23.847Z2021-03-01T23:34:23.893ZtrueP10675199DT2H48M5.4775807SfalseAvailablefalse headers: content-type: application/atom+xml;type=entry;charset=utf-8 - date: Mon, 22 Feb 2021 17:54:08 GMT + date: Mon, 01 Mar 2021 23:34:24 GMT server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 transfer-encoding: chunked status: code: 201 message: Created - url: https://servicebustestxfkligz3nn.servicebus.windows.net/fjruid?api-version=2017-04 + url: https://servicebustest2cm3driod2.servicebus.windows.net/fjruid?api-version=2017-04 - request: body: ' @@ -75,22 +75,22 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjruid?api-version=2017-04 response: body: - string: https://servicebustestxfkligz3nn.servicebus.windows.net/fjruid?api-version=2017-04fjruid2021-02-22T17:54:08Zservicebustestxfkligz3nnhttps://servicebustest2cm3driod2.servicebus.windows.net/fjruid?api-version=2017-04fjruid2021-03-01T23:34:24Zservicebustest2cm3driod2PT2M1024falsefalseP10675199DT2H48M5.477539SfalsePT10M10trueActiveP10675199DT2H48M5.477539SfalseAvailablefalse headers: content-type: application/atom+xml;type=entry;charset=utf-8 - date: Mon, 22 Feb 2021 17:54:08 GMT - etag: '637496132478670000' + date: Mon, 01 Mar 2021 23:34:24 GMT + etag: '637502384638930000' server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 transfer-encoding: chunked status: code: 200 message: OK - url: https://servicebustestxfkligz3nn.servicebus.windows.net/fjruid?api-version=2017-04 + url: https://servicebustest2cm3driod2.servicebus.windows.net/fjruid?api-version=2017-04 - request: body: null headers: @@ -102,29 +102,29 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjruid?enrich=false&api-version=2017-04 response: body: - string: https://servicebustestxfkligz3nn.servicebus.windows.net/fjruid?enrich=false&api-version=2017-04fjruid2021-02-22T17:54:07Z2021-02-22T17:54:08Zservicebustestxfkligz3nnhttps://servicebustest2cm3driod2.servicebus.windows.net/fjruid?enrich=false&api-version=2017-04fjruid2021-03-01T23:34:23Z2021-03-01T23:34:24Zservicebustest2cm3driod2PT2M1024falsefalseP10675199DT2H48M5.477539SfalsePT10M10true00falseActive2021-02-22T17:54:07.837Z2021-02-22T17:54:08.383Z0001-01-01T00:00:00ZtruePT2M1024falsefalseP10675199DT2H48M5.477539SfalsePT10M10true00falseActive2021-03-01T23:34:23.847Z2021-03-01T23:34:24.483Z0001-01-01T00:00:00Ztrue00000P10675199DT2H48M5.477539SfalseAvailablefalse headers: content-type: application/atom+xml;type=entry;charset=utf-8 - date: Mon, 22 Feb 2021 17:54:08 GMT - etag: '637496132483830000' + date: Mon, 01 Mar 2021 23:34:24 GMT + etag: '637502384644830000' server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 transfer-encoding: chunked status: code: 200 message: OK - url: https://servicebustestxfkligz3nn.servicebus.windows.net/fjruid?enrich=false&api-version=2017-04 + url: https://servicebustest2cm3driod2.servicebus.windows.net/fjruid?enrich=false&api-version=2017-04 - request: body: ' PT13S3072falsefalsePT11MtruePT12M14trueActivePT10MfalseAvailabletruesb://servicebustestxfkligz3nn.servicebus.windows.net/fjruidsb://servicebustestxfkligz3nn.servicebus.windows.net/fjruid' + />ActivePT10MfalseAvailabletruesb://servicebustest2cm3driod2.servicebus.windows.net/fjruidsb://servicebustest2cm3driod2.servicebus.windows.net/fjruid' headers: Accept: - application/xml @@ -135,31 +135,31 @@ interactions: If-Match: - '*' ServiceBusDlqSupplementaryAuthorization: - - SharedAccessSignature sr=sb%3A%2F%2Fservicebustestxfkligz3nn.servicebus.windows.net%2Ffjruid&sig=vGKKDQMgSj7QgD9NxZyb%2bBQcJGzdVCrHyNcMQA%2fxiZg%3d&se=1614020048&skn=RootManageSharedAccessKey + - SharedAccessSignature sr=sb%3A%2F%2Fservicebustest2cm3driod2.servicebus.windows.net%2Ffjruid&sig=RPJT7YrkK3TN6v5Kfg8TZ9Iol1uZCDZZjMOZP5o%2bIyQ%3d&se=1614645264&skn=RootManageSharedAccessKey ServiceBusSupplementaryAuthorization: - - SharedAccessSignature sr=sb%3A%2F%2Fservicebustestxfkligz3nn.servicebus.windows.net%2Ffjruid&sig=vGKKDQMgSj7QgD9NxZyb%2bBQcJGzdVCrHyNcMQA%2fxiZg%3d&se=1614020048&skn=RootManageSharedAccessKey + - SharedAccessSignature sr=sb%3A%2F%2Fservicebustest2cm3driod2.servicebus.windows.net%2Ffjruid&sig=RPJT7YrkK3TN6v5Kfg8TZ9Iol1uZCDZZjMOZP5o%2bIyQ%3d&se=1614645264&skn=RootManageSharedAccessKey User-Agent: - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.0 (Windows-10-10.0.19041-SP0) method: PUT uri: https://servicebustestsbname.servicebus.windows.net/fjruid?api-version=2017-04 response: body: - string: https://servicebustestxfkligz3nn.servicebus.windows.net/fjruid?api-version=2017-04fjruid2021-02-22T17:54:08Zservicebustestxfkligz3nnhttps://servicebustest2cm3driod2.servicebus.windows.net/fjruid?api-version=2017-04fjruid2021-03-01T23:34:24Zservicebustest2cm3driod2PT13S3072falsefalsePT11MtruePT12M14trueActivePT10MfalseAvailabletruesb://servicebustestxfkligz3nn.servicebus.windows.net/fjruidsb://servicebustestxfkligz3nn.servicebus.windows.net/fjruid + xmlns:i="http://www.w3.org/2001/XMLSchema-instance">PT13S3072falsefalsePT11MtruePT12M14trueActivePT10MfalseAvailabletruesb://servicebustest2cm3driod2.servicebus.windows.net/fjruidsb://servicebustest2cm3driod2.servicebus.windows.net/fjruid headers: content-type: application/atom+xml;type=entry;charset=utf-8 - date: Mon, 22 Feb 2021 17:54:08 GMT - etag: '637496132483830000' + date: Mon, 01 Mar 2021 23:34:24 GMT + etag: '637502384644830000' server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 transfer-encoding: chunked status: code: 200 message: OK - url: https://servicebustestxfkligz3nn.servicebus.windows.net/fjruid?api-version=2017-04 + url: https://servicebustest2cm3driod2.servicebus.windows.net/fjruid?api-version=2017-04 - request: body: null headers: @@ -171,23 +171,23 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjruid?enrich=false&api-version=2017-04 response: body: - string: https://servicebustestxfkligz3nn.servicebus.windows.net/fjruid?enrich=false&api-version=2017-04fjruid2021-02-22T17:54:07Z2021-02-22T17:54:08Zservicebustestxfkligz3nnhttps://servicebustest2cm3driod2.servicebus.windows.net/fjruid?enrich=false&api-version=2017-04fjruid2021-03-01T23:34:23Z2021-03-01T23:34:24Zservicebustest2cm3driod2PT13S3072falsefalsePT11MtruePT12M14true00falseActive2021-02-22T17:54:07.837Z2021-02-22T17:54:08.623Z0001-01-01T00:00:00Ztrue00000PT10MfalseAvailabletruesb://servicebustestxfkligz3nn.servicebus.windows.net/fjruidsb://servicebustestxfkligz3nn.servicebus.windows.net/fjruid + xmlns:i="http://www.w3.org/2001/XMLSchema-instance">PT13S3072falsefalsePT11MtruePT12M14true00falseActive2021-03-01T23:34:23.847Z2021-03-01T23:34:24.85Z0001-01-01T00:00:00Ztrue00000PT10MfalseAvailabletruesb://servicebustest2cm3driod2.servicebus.windows.net/fjruidsb://servicebustest2cm3driod2.servicebus.windows.net/fjruid headers: content-type: application/atom+xml;type=entry;charset=utf-8 - date: Mon, 22 Feb 2021 17:54:08 GMT - etag: '637496132486230000' + date: Mon, 01 Mar 2021 23:34:24 GMT + etag: '637502384648500000' server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 transfer-encoding: chunked status: code: 200 message: OK - url: https://servicebustestxfkligz3nn.servicebus.windows.net/fjruid?enrich=false&api-version=2017-04 + url: https://servicebustest2cm3driod2.servicebus.windows.net/fjruid?enrich=false&api-version=2017-04 - request: body: null headers: @@ -202,12 +202,12 @@ interactions: string: '' headers: content-length: '0' - date: Mon, 22 Feb 2021 17:54:09 GMT - etag: '637496132486230000' + date: Mon, 01 Mar 2021 23:34:25 GMT + etag: '637502384648500000' server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 status: code: 200 message: OK - url: https://servicebustestxfkligz3nn.servicebus.windows.net/fjruid?api-version=2017-04 + url: https://servicebustest2cm3driod2.servicebus.windows.net/fjruid?api-version=2017-04 version: 1 diff --git a/sdk/servicebus/azure-servicebus/tests/async_tests/mgmt_tests/recordings/test_mgmt_rules_async.test_mgmt_rule_async_update_dict_error.yaml b/sdk/servicebus/azure-servicebus/tests/async_tests/mgmt_tests/recordings/test_mgmt_rules_async.test_mgmt_rule_async_update_dict_error.yaml index 7d1b76a3e379..ef3d583761de 100644 --- a/sdk/servicebus/azure-servicebus/tests/async_tests/mgmt_tests/recordings/test_mgmt_rules_async.test_mgmt_rule_async_update_dict_error.yaml +++ b/sdk/servicebus/azure-servicebus/tests/async_tests/mgmt_tests/recordings/test_mgmt_rules_async.test_mgmt_rule_async_update_dict_error.yaml @@ -10,17 +10,17 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-04 response: body: - string: Topicshttps://servicebustestwzc6jqe3uj.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-042021-02-22T17:56:15Z + string: Topicshttps://servicebustestqnbz2agkqx.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-042021-03-01T23:33:52Z headers: content-type: application/atom+xml;type=feed;charset=utf-8 - date: Mon, 22 Feb 2021 17:56:15 GMT + date: Mon, 01 Mar 2021 23:33:52 GMT server: Microsoft-HTTPAPI/2.0 transfer-encoding: chunked status: code: 200 message: OK - url: https://servicebustestwzc6jqe3uj.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-04 + url: https://servicebustestqnbz2agkqx.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-04 - request: body: ' @@ -39,21 +39,21 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjrui?api-version=2017-04 response: body: - string: https://servicebustestwzc6jqe3uj.servicebus.windows.net/fjrui?api-version=2017-04fjrui2021-02-22T17:56:16Z2021-02-22T17:56:16Zservicebustestwzc6jqe3ujhttps://servicebustestqnbz2agkqx.servicebus.windows.net/fjrui?api-version=2017-04fjrui2021-03-01T23:33:53Z2021-03-01T23:33:53Zservicebustestqnbz2agkqxP10675199DT2H48M5.4775807S1024falsePT10Mtrue0falsefalseActive2021-02-22T17:56:16.403Z2021-02-22T17:56:16.47ZtrueP10675199DT2H48M5.4775807SfalseAvailablefalsefalse + xmlns:i="http://www.w3.org/2001/XMLSchema-instance">P10675199DT2H48M5.4775807S1024falsePT10Mtrue0falsefalseActive2021-03-01T23:33:53.47Z2021-03-01T23:33:53.53ZtrueP10675199DT2H48M5.4775807SfalseAvailablefalsefalse headers: content-type: application/atom+xml;type=entry;charset=utf-8 - date: Mon, 22 Feb 2021 17:56:16 GMT + date: Mon, 01 Mar 2021 23:33:53 GMT server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 transfer-encoding: chunked status: code: 201 message: Created - url: https://servicebustestwzc6jqe3uj.servicebus.windows.net/fjrui?api-version=2017-04 + url: https://servicebustestqnbz2agkqx.servicebus.windows.net/fjrui?api-version=2017-04 - request: body: ' @@ -72,22 +72,22 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04 response: body: - string: https://servicebustestwzc6jqe3uj.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04eqkovc2021-02-22T17:56:17Z2021-02-22T17:56:17Zhttps://servicebustestqnbz2agkqx.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04eqkovc2021-03-01T23:33:54Z2021-03-01T23:33:54ZPT1MfalseP10675199DT2H48M5.4775807Sfalsetrue010trueActive2021-02-22T17:56:17.0341134Z2021-02-22T17:56:17.0341134Z0001-01-01T00:00:00P10675199DT2H48M5.4775807SAvailable + xmlns:i="http://www.w3.org/2001/XMLSchema-instance">PT1MfalseP10675199DT2H48M5.4775807Sfalsetrue010trueActive2021-03-01T23:33:54.0450204Z2021-03-01T23:33:54.0450204Z0001-01-01T00:00:00P10675199DT2H48M5.4775807SAvailable headers: content-type: application/atom+xml;type=entry;charset=utf-8 - date: Mon, 22 Feb 2021 17:56:16 GMT - etag: '637496133764700000' + date: Mon, 01 Mar 2021 23:33:53 GMT + etag: '637502384335300000' server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 transfer-encoding: chunked status: code: 201 message: Created - url: https://servicebustestwzc6jqe3uj.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04 + url: https://servicebustestqnbz2agkqx.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04 - request: body: ' @@ -108,24 +108,24 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjrui/subscriptions/eqkovc/rules/rule?api-version=2017-04 response: body: - string: https://servicebustestwzc6jqe3uj.servicebus.windows.net/fjrui/subscriptions/eqkovc/rules/rule?api-version=2017-04rule2021-02-22T17:56:17Z2021-02-22T17:56:17Zhttps://servicebustestqnbz2agkqx.servicebus.windows.net/fjrui/subscriptions/eqkovc/rules/rule?api-version=2017-04rule2021-03-01T23:33:54Z2021-03-01T23:33:54ZPriority = 'low'20true2021-02-22T17:56:17.6747425Zrule + i:type="EmptyRuleAction"/>2021-03-01T23:33:54.2637924Zrule headers: content-type: application/atom+xml;type=entry;charset=utf-8 - date: Mon, 22 Feb 2021 17:56:16 GMT - etag: '637496133764700000' + date: Mon, 01 Mar 2021 23:33:53 GMT + etag: '637502384335300000' server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 transfer-encoding: chunked status: code: 201 message: Created - url: https://servicebustestwzc6jqe3uj.servicebus.windows.net/fjrui/subscriptions/eqkovc/rules/rule?api-version=2017-04 + url: https://servicebustestqnbz2agkqx.servicebus.windows.net/fjrui/subscriptions/eqkovc/rules/rule?api-version=2017-04 - request: body: null headers: @@ -140,14 +140,14 @@ interactions: string: '' headers: content-length: '0' - date: Mon, 22 Feb 2021 17:56:17 GMT - etag: '637496133764700000' + date: Mon, 01 Mar 2021 23:33:54 GMT + etag: '637502384335300000' server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 status: code: 200 message: OK - url: https://servicebustestwzc6jqe3uj.servicebus.windows.net/fjrui/subscriptions/eqkovc/rules/rule?api-version=2017-04 + url: https://servicebustestqnbz2agkqx.servicebus.windows.net/fjrui/subscriptions/eqkovc/rules/rule?api-version=2017-04 - request: body: null headers: @@ -162,14 +162,14 @@ interactions: string: '' headers: content-length: '0' - date: Mon, 22 Feb 2021 17:56:17 GMT - etag: '637496133764700000' + date: Mon, 01 Mar 2021 23:33:54 GMT + etag: '637502384335300000' server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 status: code: 200 message: OK - url: https://servicebustestwzc6jqe3uj.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04 + url: https://servicebustestqnbz2agkqx.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04 - request: body: null headers: @@ -184,12 +184,12 @@ interactions: string: '' headers: content-length: '0' - date: Mon, 22 Feb 2021 17:56:17 GMT - etag: '637496133764700000' + date: Mon, 01 Mar 2021 23:33:54 GMT + etag: '637502384335300000' server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 status: code: 200 message: OK - url: https://servicebustestwzc6jqe3uj.servicebus.windows.net/fjrui?api-version=2017-04 + url: https://servicebustestqnbz2agkqx.servicebus.windows.net/fjrui?api-version=2017-04 version: 1 diff --git a/sdk/servicebus/azure-servicebus/tests/async_tests/mgmt_tests/recordings/test_mgmt_rules_async.test_mgmt_rule_async_update_dict_success.yaml b/sdk/servicebus/azure-servicebus/tests/async_tests/mgmt_tests/recordings/test_mgmt_rules_async.test_mgmt_rule_async_update_dict_success.yaml index 750a6a7b7e13..5e15d1eeb4d6 100644 --- a/sdk/servicebus/azure-servicebus/tests/async_tests/mgmt_tests/recordings/test_mgmt_rules_async.test_mgmt_rule_async_update_dict_success.yaml +++ b/sdk/servicebus/azure-servicebus/tests/async_tests/mgmt_tests/recordings/test_mgmt_rules_async.test_mgmt_rule_async_update_dict_success.yaml @@ -10,17 +10,17 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-04 response: body: - string: Topicshttps://servicebustestwzc6jqe3uj.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-042021-02-22T17:56:19Z + string: Topicshttps://servicebustestqnbz2agkqx.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-042021-03-01T23:33:55Z headers: content-type: application/atom+xml;type=feed;charset=utf-8 - date: Mon, 22 Feb 2021 17:56:18 GMT + date: Mon, 01 Mar 2021 23:33:54 GMT server: Microsoft-HTTPAPI/2.0 transfer-encoding: chunked status: code: 200 message: OK - url: https://servicebustestwzc6jqe3uj.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-04 + url: https://servicebustestqnbz2agkqx.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-04 - request: body: ' @@ -39,21 +39,21 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjruid?api-version=2017-04 response: body: - string: https://servicebustestwzc6jqe3uj.servicebus.windows.net/fjruid?api-version=2017-04fjruid2021-02-22T17:56:19Z2021-02-22T17:56:19Zservicebustestwzc6jqe3ujhttps://servicebustestqnbz2agkqx.servicebus.windows.net/fjruid?api-version=2017-04fjruid2021-03-01T23:33:56Z2021-03-01T23:33:56Zservicebustestqnbz2agkqxP10675199DT2H48M5.4775807S1024falsePT10Mtrue0falsefalseActive2021-02-22T17:56:19.703Z2021-02-22T17:56:19.81ZtrueP10675199DT2H48M5.4775807SfalseAvailablefalsefalse + xmlns:i="http://www.w3.org/2001/XMLSchema-instance">P10675199DT2H48M5.4775807S1024falsePT10Mtrue0falsefalseActive2021-03-01T23:33:56.197Z2021-03-01T23:33:56.237ZtrueP10675199DT2H48M5.4775807SfalseAvailablefalsefalse headers: content-type: application/atom+xml;type=entry;charset=utf-8 - date: Mon, 22 Feb 2021 17:56:19 GMT + date: Mon, 01 Mar 2021 23:33:55 GMT server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 transfer-encoding: chunked status: code: 201 message: Created - url: https://servicebustestwzc6jqe3uj.servicebus.windows.net/fjruid?api-version=2017-04 + url: https://servicebustestqnbz2agkqx.servicebus.windows.net/fjruid?api-version=2017-04 - request: body: ' @@ -72,22 +72,22 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjruid/subscriptions/eqkovcd?api-version=2017-04 response: body: - string: https://servicebustestwzc6jqe3uj.servicebus.windows.net/fjruid/subscriptions/eqkovcd?api-version=2017-04eqkovcd2021-02-22T17:56:20Z2021-02-22T17:56:20Zhttps://servicebustestqnbz2agkqx.servicebus.windows.net/fjruid/subscriptions/eqkovcd?api-version=2017-04eqkovcd2021-03-01T23:33:56Z2021-03-01T23:33:56ZPT1MfalseP10675199DT2H48M5.4775807Sfalsetrue010trueActive2021-02-22T17:56:20.5157256Z2021-02-22T17:56:20.5157256Z0001-01-01T00:00:00P10675199DT2H48M5.4775807SAvailable + xmlns:i="http://www.w3.org/2001/XMLSchema-instance">PT1MfalseP10675199DT2H48M5.4775807Sfalsetrue010trueActive2021-03-01T23:33:56.7107461Z2021-03-01T23:33:56.7107461Z0001-01-01T00:00:00P10675199DT2H48M5.4775807SAvailable headers: content-type: application/atom+xml;type=entry;charset=utf-8 - date: Mon, 22 Feb 2021 17:56:20 GMT - etag: '637496133798100000' + date: Mon, 01 Mar 2021 23:33:56 GMT + etag: '637502384362370000' server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 transfer-encoding: chunked status: code: 201 message: Created - url: https://servicebustestwzc6jqe3uj.servicebus.windows.net/fjruid/subscriptions/eqkovcd?api-version=2017-04 + url: https://servicebustestqnbz2agkqx.servicebus.windows.net/fjruid/subscriptions/eqkovcd?api-version=2017-04 - request: body: ' @@ -108,24 +108,24 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjruid/subscriptions/eqkovcd/rules/rule?api-version=2017-04 response: body: - string: https://servicebustestwzc6jqe3uj.servicebus.windows.net/fjruid/subscriptions/eqkovcd/rules/rule?api-version=2017-04rule2021-02-22T17:56:20Z2021-02-22T17:56:20Zhttps://servicebustestqnbz2agkqx.servicebus.windows.net/fjruid/subscriptions/eqkovcd/rules/rule?api-version=2017-04rule2021-03-01T23:33:57Z2021-03-01T23:33:57ZPriority = 'low'20true2021-02-22T17:56:20.7813407Zrule + i:type="EmptyRuleAction"/>2021-03-01T23:33:57.1482567Zrule headers: content-type: application/atom+xml;type=entry;charset=utf-8 - date: Mon, 22 Feb 2021 17:56:20 GMT - etag: '637496133798100000' + date: Mon, 01 Mar 2021 23:33:56 GMT + etag: '637502384362370000' server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 transfer-encoding: chunked status: code: 201 message: Created - url: https://servicebustestwzc6jqe3uj.servicebus.windows.net/fjruid/subscriptions/eqkovcd/rules/rule?api-version=2017-04 + url: https://servicebustestqnbz2agkqx.servicebus.windows.net/fjruid/subscriptions/eqkovcd/rules/rule?api-version=2017-04 - request: body: null headers: @@ -137,31 +137,31 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjruid/subscriptions/eqkovcd/rules/rule?enrich=false&api-version=2017-04 response: body: - string: sb://servicebustestwzc6jqe3uj.servicebus.windows.net/fjruid/subscriptions/eqkovcd/rules/rule?enrich=false&api-version=2017-04rule2021-02-22T17:56:20Z2021-02-22T17:56:20Zsb://servicebustestqnbz2agkqx.servicebus.windows.net/fjruid/subscriptions/eqkovcd/rules/rule?enrich=false&api-version=2017-04rule2021-03-01T23:33:57Z2021-03-01T23:33:57ZPriority = 'low'20true2021-02-22T17:56:20.7881342Zrule + i:type="EmptyRuleAction"/>2021-03-01T23:33:57.1485919Zrule headers: content-type: application/atom+xml;type=entry;charset=utf-8 - date: Mon, 22 Feb 2021 17:56:20 GMT - etag: '637496133798100000' + date: Mon, 01 Mar 2021 23:33:56 GMT + etag: '637502384362370000' server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 transfer-encoding: chunked status: code: 200 message: OK - url: https://servicebustestwzc6jqe3uj.servicebus.windows.net/fjruid/subscriptions/eqkovcd/rules/rule?enrich=false&api-version=2017-04 + url: https://servicebustestqnbz2agkqx.servicebus.windows.net/fjruid/subscriptions/eqkovcd/rules/rule?enrich=false&api-version=2017-04 - request: body: ' testcidSET Priority = ''low''20true2021-02-22T17:56:20.788134Zrule' + xsi:type="SqlRuleAction">SET Priority = ''low''20true2021-03-01T23:33:57.148591Zrule' headers: Accept: - application/xml @@ -177,23 +177,23 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjruid/subscriptions/eqkovcd/rules/rule?api-version=2017-04 response: body: - string: https://servicebustestwzc6jqe3uj.servicebus.windows.net/fjruid/subscriptions/eqkovcd/rules/rule?api-version=2017-04rule2021-02-22T17:56:21Z2021-02-22T17:56:21Zhttps://servicebustestqnbz2agkqx.servicebus.windows.net/fjruid/subscriptions/eqkovcd/rules/rule?api-version=2017-04rule2021-03-01T23:33:57Z2021-03-01T23:33:57ZtestcidSET Priority = 'low'20true2021-02-22T17:56:21.0157151Zrule + i:type="SqlRuleAction">SET Priority = 'low'20true2021-03-01T23:33:57.3669686Zrule headers: content-type: application/atom+xml;type=entry;charset=utf-8 - date: Mon, 22 Feb 2021 17:56:20 GMT - etag: '637496133798100000' + date: Mon, 01 Mar 2021 23:33:56 GMT + etag: '637502384362370000' server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 transfer-encoding: chunked status: code: 200 message: OK - url: https://servicebustestwzc6jqe3uj.servicebus.windows.net/fjruid/subscriptions/eqkovcd/rules/rule?api-version=2017-04 + url: https://servicebustestqnbz2agkqx.servicebus.windows.net/fjruid/subscriptions/eqkovcd/rules/rule?api-version=2017-04 - request: body: null headers: @@ -205,23 +205,23 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjruid/subscriptions/eqkovcd/rules/rule?enrich=false&api-version=2017-04 response: body: - string: sb://servicebustestwzc6jqe3uj.servicebus.windows.net/fjruid/subscriptions/eqkovcd/rules/rule?enrich=false&api-version=2017-04rule2021-02-22T17:56:20Z2021-02-22T17:56:20Zsb://servicebustestqnbz2agkqx.servicebus.windows.net/fjruid/subscriptions/eqkovcd/rules/rule?enrich=false&api-version=2017-04rule2021-03-01T23:33:57Z2021-03-01T23:33:57ZtestcidSET Priority = 'low'20true2021-02-22T17:56:20.7881342Zrule + i:type="SqlRuleAction">SET Priority = 'low'20true2021-03-01T23:33:57.1485919Zrule headers: content-type: application/atom+xml;type=entry;charset=utf-8 - date: Mon, 22 Feb 2021 17:56:20 GMT - etag: '637496133798100000' + date: Mon, 01 Mar 2021 23:33:56 GMT + etag: '637502384362370000' server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 transfer-encoding: chunked status: code: 200 message: OK - url: https://servicebustestwzc6jqe3uj.servicebus.windows.net/fjruid/subscriptions/eqkovcd/rules/rule?enrich=false&api-version=2017-04 + url: https://servicebustestqnbz2agkqx.servicebus.windows.net/fjruid/subscriptions/eqkovcd/rules/rule?enrich=false&api-version=2017-04 - request: body: null headers: @@ -236,14 +236,14 @@ interactions: string: '' headers: content-length: '0' - date: Mon, 22 Feb 2021 17:56:20 GMT - etag: '637496133798100000' + date: Mon, 01 Mar 2021 23:33:56 GMT + etag: '637502384362370000' server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 status: code: 200 message: OK - url: https://servicebustestwzc6jqe3uj.servicebus.windows.net/fjruid/subscriptions/eqkovcd/rules/rule?api-version=2017-04 + url: https://servicebustestqnbz2agkqx.servicebus.windows.net/fjruid/subscriptions/eqkovcd/rules/rule?api-version=2017-04 - request: body: null headers: @@ -258,14 +258,14 @@ interactions: string: '' headers: content-length: '0' - date: Mon, 22 Feb 2021 17:56:21 GMT - etag: '637496133798100000' + date: Mon, 01 Mar 2021 23:33:57 GMT + etag: '637502384362370000' server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 status: code: 200 message: OK - url: https://servicebustestwzc6jqe3uj.servicebus.windows.net/fjruid/subscriptions/eqkovcd?api-version=2017-04 + url: https://servicebustestqnbz2agkqx.servicebus.windows.net/fjruid/subscriptions/eqkovcd?api-version=2017-04 - request: body: null headers: @@ -280,12 +280,12 @@ interactions: string: '' headers: content-length: '0' - date: Mon, 22 Feb 2021 17:56:21 GMT - etag: '637496133798100000' + date: Mon, 01 Mar 2021 23:33:57 GMT + etag: '637502384362370000' server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 status: code: 200 message: OK - url: https://servicebustestwzc6jqe3uj.servicebus.windows.net/fjruid?api-version=2017-04 + url: https://servicebustestqnbz2agkqx.servicebus.windows.net/fjruid?api-version=2017-04 version: 1 diff --git a/sdk/servicebus/azure-servicebus/tests/async_tests/mgmt_tests/recordings/test_mgmt_subscriptions_async.test_mgmt_subscription_async_update_dict_error.yaml b/sdk/servicebus/azure-servicebus/tests/async_tests/mgmt_tests/recordings/test_mgmt_subscriptions_async.test_mgmt_subscription_async_update_dict_error.yaml index 05da94d8b768..70db4710b478 100644 --- a/sdk/servicebus/azure-servicebus/tests/async_tests/mgmt_tests/recordings/test_mgmt_subscriptions_async.test_mgmt_subscription_async_update_dict_error.yaml +++ b/sdk/servicebus/azure-servicebus/tests/async_tests/mgmt_tests/recordings/test_mgmt_subscriptions_async.test_mgmt_subscription_async_update_dict_error.yaml @@ -10,17 +10,17 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-04 response: body: - string: Topicshttps://servicebustestppd24hkcwz.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-042021-02-22T18:06:27Z + string: Topicshttps://servicebustestqxxcukby5x.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-042021-03-01T23:35:59Z headers: content-type: application/atom+xml;type=feed;charset=utf-8 - date: Mon, 22 Feb 2021 18:06:26 GMT + date: Mon, 01 Mar 2021 23:35:59 GMT server: Microsoft-HTTPAPI/2.0 transfer-encoding: chunked status: code: 200 message: OK - url: https://servicebustestppd24hkcwz.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-04 + url: https://servicebustestqxxcukby5x.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-04 - request: body: ' @@ -39,21 +39,21 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjrui?api-version=2017-04 response: body: - string: https://servicebustestppd24hkcwz.servicebus.windows.net/fjrui?api-version=2017-04fjrui2021-02-22T18:06:27Z2021-02-22T18:06:27Zservicebustestppd24hkcwzhttps://servicebustestqxxcukby5x.servicebus.windows.net/fjrui?api-version=2017-04fjrui2021-03-01T23:36:00Z2021-03-01T23:36:00Zservicebustestqxxcukby5xP10675199DT2H48M5.4775807S1024falsePT10Mtrue0falsefalseActive2021-02-22T18:06:27.67Z2021-02-22T18:06:27.87ZtrueP10675199DT2H48M5.4775807SfalseAvailablefalsefalse + xmlns:i="http://www.w3.org/2001/XMLSchema-instance">P10675199DT2H48M5.4775807S1024falsePT10Mtrue0falsefalseActive2021-03-01T23:36:00.2Z2021-03-01T23:36:00.28ZtrueP10675199DT2H48M5.4775807SfalseAvailablefalsefalse headers: content-type: application/atom+xml;type=entry;charset=utf-8 - date: Mon, 22 Feb 2021 18:06:27 GMT + date: Mon, 01 Mar 2021 23:36:00 GMT server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 transfer-encoding: chunked status: code: 201 message: Created - url: https://servicebustestppd24hkcwz.servicebus.windows.net/fjrui?api-version=2017-04 + url: https://servicebustestqxxcukby5x.servicebus.windows.net/fjrui?api-version=2017-04 - request: body: ' @@ -72,22 +72,22 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04 response: body: - string: https://servicebustestppd24hkcwz.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04eqkovc2021-02-22T18:06:28Z2021-02-22T18:06:28Zhttps://servicebustestqxxcukby5x.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04eqkovc2021-03-01T23:36:00Z2021-03-01T23:36:00ZPT1MfalseP10675199DT2H48M5.4775807Sfalsetrue010trueActive2021-02-22T18:06:28.3677888Z2021-02-22T18:06:28.3677888Z0001-01-01T00:00:00P10675199DT2H48M5.4775807SAvailable + xmlns:i="http://www.w3.org/2001/XMLSchema-instance">PT1MfalseP10675199DT2H48M5.4775807Sfalsetrue010trueActive2021-03-01T23:36:00.8076431Z2021-03-01T23:36:00.8076431Z0001-01-01T00:00:00P10675199DT2H48M5.4775807SAvailable headers: content-type: application/atom+xml;type=entry;charset=utf-8 - date: Mon, 22 Feb 2021 18:06:28 GMT - etag: '637496139878700000' + date: Mon, 01 Mar 2021 23:36:00 GMT + etag: '637502385602800000' server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 transfer-encoding: chunked status: code: 201 message: Created - url: https://servicebustestppd24hkcwz.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04 + url: https://servicebustestqxxcukby5x.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04 - request: body: null headers: @@ -102,14 +102,14 @@ interactions: string: '' headers: content-length: '0' - date: Mon, 22 Feb 2021 18:06:28 GMT - etag: '637496139878700000' + date: Mon, 01 Mar 2021 23:36:00 GMT + etag: '637502385602800000' server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 status: code: 200 message: OK - url: https://servicebustestppd24hkcwz.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04 + url: https://servicebustestqxxcukby5x.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04 - request: body: null headers: @@ -124,12 +124,12 @@ interactions: string: '' headers: content-length: '0' - date: Mon, 22 Feb 2021 18:06:28 GMT - etag: '637496139878700000' + date: Mon, 01 Mar 2021 23:36:01 GMT + etag: '637502385602800000' server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 status: code: 200 message: OK - url: https://servicebustestppd24hkcwz.servicebus.windows.net/fjrui?api-version=2017-04 + url: https://servicebustestqxxcukby5x.servicebus.windows.net/fjrui?api-version=2017-04 version: 1 diff --git a/sdk/servicebus/azure-servicebus/tests/async_tests/mgmt_tests/recordings/test_mgmt_subscriptions_async.test_mgmt_subscription_async_update_dict_success.yaml b/sdk/servicebus/azure-servicebus/tests/async_tests/mgmt_tests/recordings/test_mgmt_subscriptions_async.test_mgmt_subscription_async_update_dict_success.yaml index 511bc1ff39fc..160ca21828b9 100644 --- a/sdk/servicebus/azure-servicebus/tests/async_tests/mgmt_tests/recordings/test_mgmt_subscriptions_async.test_mgmt_subscription_async_update_dict_success.yaml +++ b/sdk/servicebus/azure-servicebus/tests/async_tests/mgmt_tests/recordings/test_mgmt_subscriptions_async.test_mgmt_subscription_async_update_dict_success.yaml @@ -10,17 +10,17 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-04 response: body: - string: Topicshttps://servicebustestppd24hkcwz.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-042021-02-22T18:06:30Z + string: Topicshttps://servicebustestqxxcukby5x.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-042021-03-01T23:36:02Z headers: content-type: application/atom+xml;type=feed;charset=utf-8 - date: Mon, 22 Feb 2021 18:06:29 GMT + date: Mon, 01 Mar 2021 23:36:01 GMT server: Microsoft-HTTPAPI/2.0 transfer-encoding: chunked status: code: 200 message: OK - url: https://servicebustestppd24hkcwz.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-04 + url: https://servicebustestqxxcukby5x.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-04 - request: body: ' @@ -39,21 +39,21 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjrui?api-version=2017-04 response: body: - string: https://servicebustestppd24hkcwz.servicebus.windows.net/fjrui?api-version=2017-04fjrui2021-02-22T18:06:30Z2021-02-22T18:06:30Zservicebustestppd24hkcwzhttps://servicebustestqxxcukby5x.servicebus.windows.net/fjrui?api-version=2017-04fjrui2021-03-01T23:36:02Z2021-03-01T23:36:02Zservicebustestqxxcukby5xP10675199DT2H48M5.4775807S1024falsePT10Mtrue0falsefalseActive2021-02-22T18:06:30.66Z2021-02-22T18:06:30.757ZtrueP10675199DT2H48M5.4775807SfalseAvailablefalsefalse + xmlns:i="http://www.w3.org/2001/XMLSchema-instance">P10675199DT2H48M5.4775807S1024falsePT10Mtrue0falsefalseActive2021-03-01T23:36:02.85Z2021-03-01T23:36:02.937ZtrueP10675199DT2H48M5.4775807SfalseAvailablefalsefalse headers: content-type: application/atom+xml;type=entry;charset=utf-8 - date: Mon, 22 Feb 2021 18:06:30 GMT + date: Mon, 01 Mar 2021 23:36:02 GMT server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 transfer-encoding: chunked status: code: 201 message: Created - url: https://servicebustestppd24hkcwz.servicebus.windows.net/fjrui?api-version=2017-04 + url: https://servicebustestqxxcukby5x.servicebus.windows.net/fjrui?api-version=2017-04 - request: body: ' @@ -72,22 +72,22 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04 response: body: - string: https://servicebustestppd24hkcwz.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04eqkovc2021-02-22T18:06:31Z2021-02-22T18:06:31Zhttps://servicebustestqxxcukby5x.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04eqkovc2021-03-01T23:36:03Z2021-03-01T23:36:03ZPT1MfalseP10675199DT2H48M5.4775807Sfalsetrue010trueActive2021-02-22T18:06:31.3224939Z2021-02-22T18:06:31.3224939Z0001-01-01T00:00:00P10675199DT2H48M5.4775807SAvailable + xmlns:i="http://www.w3.org/2001/XMLSchema-instance">PT1MfalseP10675199DT2H48M5.4775807Sfalsetrue010trueActive2021-03-01T23:36:03.4636914Z2021-03-01T23:36:03.4636914Z0001-01-01T00:00:00P10675199DT2H48M5.4775807SAvailable headers: content-type: application/atom+xml;type=entry;charset=utf-8 - date: Mon, 22 Feb 2021 18:06:30 GMT - etag: '637496139907570000' + date: Mon, 01 Mar 2021 23:36:02 GMT + etag: '637502385629370000' server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 transfer-encoding: chunked status: code: 201 message: Created - url: https://servicebustestppd24hkcwz.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04 + url: https://servicebustestqxxcukby5x.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04 - request: body: ' @@ -108,22 +108,22 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04 response: body: - string: https://servicebustestppd24hkcwz.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04eqkovc2021-02-22T18:06:31Z2021-02-22T18:06:31Zhttps://servicebustestqxxcukby5x.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04eqkovc2021-03-01T23:36:03Z2021-03-01T23:36:03ZPT2MfalseP10675199DT2H48M5.477539Sfalsetrue010trueActive2021-02-22T18:06:31.6662441Z2021-02-22T18:06:31.6662441Z0001-01-01T00:00:00P10675199DT2H48M5.477539SAvailable + xmlns:i="http://www.w3.org/2001/XMLSchema-instance">PT2MfalseP10675199DT2H48M5.477539Sfalsetrue010trueActive2021-03-01T23:36:03.6199413Z2021-03-01T23:36:03.6199413Z0001-01-01T00:00:00P10675199DT2H48M5.477539SAvailable headers: content-type: application/atom+xml;type=entry;charset=utf-8 - date: Mon, 22 Feb 2021 18:06:30 GMT - etag: '637496139907570000' + date: Mon, 01 Mar 2021 23:36:02 GMT + etag: '637502385629370000' server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 transfer-encoding: chunked status: code: 200 message: OK - url: https://servicebustestppd24hkcwz.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04 + url: https://servicebustestqxxcukby5x.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04 - request: body: null headers: @@ -135,23 +135,23 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjrui/subscriptions/eqkovc?enrich=false&api-version=2017-04 response: body: - string: sb://servicebustestppd24hkcwz.servicebus.windows.net/fjrui/subscriptions/eqkovc?enrich=false&api-version=2017-04eqkovc2021-02-22T18:06:31Z2021-02-22T18:06:31Zsb://servicebustestqxxcukby5x.servicebus.windows.net/fjrui/subscriptions/eqkovc?enrich=false&api-version=2017-04eqkovc2021-03-01T23:36:03Z2021-03-01T23:36:03ZPT2MfalseP10675199DT2H48M5.477539Sfalsetrue010trueActive2021-02-22T18:06:31.3322501Z2021-02-22T18:06:31.6916355Z2021-02-22T18:06:31.333ZPT2MfalseP10675199DT2H48M5.477539Sfalsetrue010trueActive2021-03-01T23:36:03.4550678Z2021-03-01T23:36:03.6269438Z2021-03-01T23:36:03.457Z00000P10675199DT2H48M5.477539SAvailable headers: content-type: application/atom+xml;type=entry;charset=utf-8 - date: Mon, 22 Feb 2021 18:06:30 GMT - etag: '637496139907570000' + date: Mon, 01 Mar 2021 23:36:03 GMT + etag: '637502385629370000' server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 transfer-encoding: chunked status: code: 200 message: OK - url: https://servicebustestppd24hkcwz.servicebus.windows.net/fjrui/subscriptions/eqkovc?enrich=false&api-version=2017-04 + url: https://servicebustestqxxcukby5x.servicebus.windows.net/fjrui/subscriptions/eqkovc?enrich=false&api-version=2017-04 - request: body: ' @@ -172,22 +172,22 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04 response: body: - string: https://servicebustestppd24hkcwz.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04eqkovc2021-02-22T18:06:31Z2021-02-22T18:06:31Zhttps://servicebustestqxxcukby5x.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04eqkovc2021-03-01T23:36:03Z2021-03-01T23:36:03ZPT12SfalsePT11Mtruetrue014trueActive2021-02-22T18:06:31.9006456Z2021-02-22T18:06:31.9006456Z0001-01-01T00:00:00PT10MAvailable + xmlns:i="http://www.w3.org/2001/XMLSchema-instance">PT12SfalsePT11Mtruetrue014trueActive2021-03-01T23:36:03.8231724Z2021-03-01T23:36:03.8231724Z0001-01-01T00:00:00PT10MAvailable headers: content-type: application/atom+xml;type=entry;charset=utf-8 - date: Mon, 22 Feb 2021 18:06:31 GMT - etag: '637496139907570000' + date: Mon, 01 Mar 2021 23:36:03 GMT + etag: '637502385629370000' server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 transfer-encoding: chunked status: code: 200 message: OK - url: https://servicebustestppd24hkcwz.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04 + url: https://servicebustestqxxcukby5x.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04 - request: body: null headers: @@ -199,28 +199,28 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjrui/subscriptions/eqkovc?enrich=false&api-version=2017-04 response: body: - string: sb://servicebustestppd24hkcwz.servicebus.windows.net/fjrui/subscriptions/eqkovc?enrich=false&api-version=2017-04eqkovc2021-02-22T18:06:31Z2021-02-22T18:06:31Zsb://servicebustestqxxcukby5x.servicebus.windows.net/fjrui/subscriptions/eqkovc?enrich=false&api-version=2017-04eqkovc2021-03-01T23:36:03Z2021-03-01T23:36:03ZPT12SfalsePT11Mtruetrue014trueActive2021-02-22T18:06:31.3322501Z2021-02-22T18:06:31.9103534Z2021-02-22T18:06:31.333ZPT12SfalsePT11Mtruetrue014trueActive2021-03-01T23:36:03.4550678Z2021-03-01T23:36:03.8300879Z2021-03-01T23:36:03.457Z00000PT10MAvailable headers: content-type: application/atom+xml;type=entry;charset=utf-8 - date: Mon, 22 Feb 2021 18:06:31 GMT - etag: '637496139907570000' + date: Mon, 01 Mar 2021 23:36:03 GMT + etag: '637502385629370000' server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 transfer-encoding: chunked status: code: 200 message: OK - url: https://servicebustestppd24hkcwz.servicebus.windows.net/fjrui/subscriptions/eqkovc?enrich=false&api-version=2017-04 + url: https://servicebustestqxxcukby5x.servicebus.windows.net/fjrui/subscriptions/eqkovc?enrich=false&api-version=2017-04 - request: body: ' PT12SfalsePT11Mtruetrue14trueActivesb://servicebustestppd24hkcwz.servicebus.windows.net/fjruisb://servicebustestppd24hkcwz.servicebus.windows.net/fjruiPT10MAvailable' + type="application/xml">PT12SfalsePT11Mtruetrue14trueActivesb://servicebustestqxxcukby5x.servicebus.windows.net/fjruisb://servicebustestqxxcukby5x.servicebus.windows.net/fjruiPT10MAvailable' headers: Accept: - application/xml @@ -231,31 +231,31 @@ interactions: If-Match: - '*' ServiceBusDlqSupplementaryAuthorization: - - SharedAccessSignature sr=sb%3A%2F%2Fservicebustestppd24hkcwz.servicebus.windows.net%2Ffjrui&sig=Z8wgXNNzhMmAm%2fqr%2bwCK1gg1YUGjvQgPXzT%2fxxSRnmQ%3d&se=1614020792&skn=RootManageSharedAccessKey + - SharedAccessSignature sr=sb%3A%2F%2Fservicebustestqxxcukby5x.servicebus.windows.net%2Ffjrui&sig=VDeubeT8PsQwkaHEQTvJR78WHY9bw%2fGVxJgy1vUEKx4%3d&se=1614645363&skn=RootManageSharedAccessKey ServiceBusSupplementaryAuthorization: - - SharedAccessSignature sr=sb%3A%2F%2Fservicebustestppd24hkcwz.servicebus.windows.net%2Ffjrui&sig=Z8wgXNNzhMmAm%2fqr%2bwCK1gg1YUGjvQgPXzT%2fxxSRnmQ%3d&se=1614020792&skn=RootManageSharedAccessKey + - SharedAccessSignature sr=sb%3A%2F%2Fservicebustestqxxcukby5x.servicebus.windows.net%2Ffjrui&sig=VDeubeT8PsQwkaHEQTvJR78WHY9bw%2fGVxJgy1vUEKx4%3d&se=1614645363&skn=RootManageSharedAccessKey User-Agent: - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.0 (Windows-10-10.0.19041-SP0) method: PUT uri: https://servicebustestsbname.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04 response: body: - string: https://servicebustestppd24hkcwz.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04eqkovc2021-02-22T18:06:32Z2021-02-22T18:06:32Zhttps://servicebustestqxxcukby5x.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04eqkovc2021-03-01T23:36:04Z2021-03-01T23:36:04ZPT12SfalsePT11Mtruetrue014trueActivesb://servicebustestppd24hkcwz.servicebus.windows.net/fjrui2021-02-22T18:06:32.1037488Z2021-02-22T18:06:32.1037488Z0001-01-01T00:00:00sb://servicebustestppd24hkcwz.servicebus.windows.net/fjruiP10675199DT2H48M5.4775807SAvailable + xmlns:i="http://www.w3.org/2001/XMLSchema-instance">PT12SfalsePT11Mtruetrue014trueActivesb://servicebustestqxxcukby5x.servicebus.windows.net/fjrui2021-03-01T23:36:04.041818Z2021-03-01T23:36:04.041818Z0001-01-01T00:00:00sb://servicebustestqxxcukby5x.servicebus.windows.net/fjruiP10675199DT2H48M5.4775807SAvailable headers: content-type: application/atom+xml;type=entry;charset=utf-8 - date: Mon, 22 Feb 2021 18:06:31 GMT - etag: '637496139907570000' + date: Mon, 01 Mar 2021 23:36:03 GMT + etag: '637502385629370000' server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 transfer-encoding: chunked status: code: 200 message: OK - url: https://servicebustestppd24hkcwz.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04 + url: https://servicebustestqxxcukby5x.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04 - request: body: null headers: @@ -267,23 +267,23 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjrui/subscriptions/eqkovc?enrich=false&api-version=2017-04 response: body: - string: sb://servicebustestppd24hkcwz.servicebus.windows.net/fjrui/subscriptions/eqkovc?enrich=false&api-version=2017-04eqkovc2021-02-22T18:06:31Z2021-02-22T18:06:32Zsb://servicebustestqxxcukby5x.servicebus.windows.net/fjrui/subscriptions/eqkovc?enrich=false&api-version=2017-04eqkovc2021-03-01T23:36:03Z2021-03-01T23:36:04ZPT12SfalsePT11Mtruetrue014trueActivesb://servicebustestppd24hkcwz.servicebus.windows.net/fjrui2021-02-22T18:06:31.3322501Z2021-02-22T18:06:32.1291103Z2021-02-22T18:06:31.333Z00000sb://servicebustestppd24hkcwz.servicebus.windows.net/fjruiP10675199DT2H48M5.4775807SAvailable + xmlns:i="http://www.w3.org/2001/XMLSchema-instance">PT12SfalsePT11Mtruetrue014trueActivesb://servicebustestqxxcukby5x.servicebus.windows.net/fjrui2021-03-01T23:36:03.4550678Z2021-03-01T23:36:04.0488471Z2021-03-01T23:36:03.457Z00000sb://servicebustestqxxcukby5x.servicebus.windows.net/fjruiP10675199DT2H48M5.4775807SAvailable headers: content-type: application/atom+xml;type=entry;charset=utf-8 - date: Mon, 22 Feb 2021 18:06:31 GMT - etag: '637496139907570000' + date: Mon, 01 Mar 2021 23:36:03 GMT + etag: '637502385629370000' server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 transfer-encoding: chunked status: code: 200 message: OK - url: https://servicebustestppd24hkcwz.servicebus.windows.net/fjrui/subscriptions/eqkovc?enrich=false&api-version=2017-04 + url: https://servicebustestqxxcukby5x.servicebus.windows.net/fjrui/subscriptions/eqkovc?enrich=false&api-version=2017-04 - request: body: null headers: @@ -298,14 +298,14 @@ interactions: string: '' headers: content-length: '0' - date: Mon, 22 Feb 2021 18:06:31 GMT - etag: '637496139907570000' + date: Mon, 01 Mar 2021 23:36:03 GMT + etag: '637502385629370000' server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 status: code: 200 message: OK - url: https://servicebustestppd24hkcwz.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04 + url: https://servicebustestqxxcukby5x.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04 - request: body: null headers: @@ -320,12 +320,12 @@ interactions: string: '' headers: content-length: '0' - date: Mon, 22 Feb 2021 18:06:31 GMT - etag: '637496139907570000' + date: Mon, 01 Mar 2021 23:36:04 GMT + etag: '637502385629370000' server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 status: code: 200 message: OK - url: https://servicebustestppd24hkcwz.servicebus.windows.net/fjrui?api-version=2017-04 + url: https://servicebustestqxxcukby5x.servicebus.windows.net/fjrui?api-version=2017-04 version: 1 diff --git a/sdk/servicebus/azure-servicebus/tests/async_tests/mgmt_tests/recordings/test_mgmt_topics_async.test_mgmt_topic_async_update_dict_error.yaml b/sdk/servicebus/azure-servicebus/tests/async_tests/mgmt_tests/recordings/test_mgmt_topics_async.test_mgmt_topic_async_update_dict_error.yaml index 163788ca43dc..4af5d18185ce 100644 --- a/sdk/servicebus/azure-servicebus/tests/async_tests/mgmt_tests/recordings/test_mgmt_topics_async.test_mgmt_topic_async_update_dict_error.yaml +++ b/sdk/servicebus/azure-servicebus/tests/async_tests/mgmt_tests/recordings/test_mgmt_topics_async.test_mgmt_topic_async_update_dict_error.yaml @@ -10,17 +10,17 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-04 response: body: - string: Topicshttps://servicebustestsrcoqeqei7.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-042021-02-22T18:08:23Z + string: Topicshttps://servicebustestfpkpesppp3.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-042021-03-01T23:36:31Z headers: content-type: application/atom+xml;type=feed;charset=utf-8 - date: Mon, 22 Feb 2021 18:08:23 GMT + date: Mon, 01 Mar 2021 23:36:30 GMT server: Microsoft-HTTPAPI/2.0 transfer-encoding: chunked status: code: 200 message: OK - url: https://servicebustestsrcoqeqei7.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-04 + url: https://servicebustestfpkpesppp3.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-04 - request: body: ' @@ -39,21 +39,21 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjruid?api-version=2017-04 response: body: - string: https://servicebustestsrcoqeqei7.servicebus.windows.net/fjruid?api-version=2017-04fjruid2021-02-22T18:08:24Z2021-02-22T18:08:24Zservicebustestsrcoqeqei7https://servicebustestfpkpesppp3.servicebus.windows.net/fjruid?api-version=2017-04fjruid2021-03-01T23:36:31Z2021-03-01T23:36:31Zservicebustestfpkpesppp3P10675199DT2H48M5.4775807S1024falsePT10Mtrue0falsefalseActive2021-02-22T18:08:24.297Z2021-02-22T18:08:24.333ZtrueP10675199DT2H48M5.4775807SfalseAvailablefalsefalse + xmlns:i="http://www.w3.org/2001/XMLSchema-instance">P10675199DT2H48M5.4775807S1024falsePT10Mtrue0falsefalseActive2021-03-01T23:36:31.517Z2021-03-01T23:36:31.55ZtrueP10675199DT2H48M5.4775807SfalseAvailablefalsefalse headers: content-type: application/atom+xml;type=entry;charset=utf-8 - date: Mon, 22 Feb 2021 18:08:24 GMT + date: Mon, 01 Mar 2021 23:36:31 GMT server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 transfer-encoding: chunked status: code: 201 message: Created - url: https://servicebustestsrcoqeqei7.servicebus.windows.net/fjruid?api-version=2017-04 + url: https://servicebustestfpkpesppp3.servicebus.windows.net/fjruid?api-version=2017-04 - request: body: null headers: @@ -68,12 +68,12 @@ interactions: string: '' headers: content-length: '0' - date: Mon, 22 Feb 2021 18:08:24 GMT - etag: '637496141043330000' + date: Mon, 01 Mar 2021 23:36:31 GMT + etag: '637502385915500000' server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 status: code: 200 message: OK - url: https://servicebustestsrcoqeqei7.servicebus.windows.net/fjruid?api-version=2017-04 + url: https://servicebustestfpkpesppp3.servicebus.windows.net/fjruid?api-version=2017-04 version: 1 diff --git a/sdk/servicebus/azure-servicebus/tests/async_tests/mgmt_tests/recordings/test_mgmt_topics_async.test_mgmt_topic_async_update_dict_success.yaml b/sdk/servicebus/azure-servicebus/tests/async_tests/mgmt_tests/recordings/test_mgmt_topics_async.test_mgmt_topic_async_update_dict_success.yaml index b775f8f2fd6d..e6c0b5ddeba8 100644 --- a/sdk/servicebus/azure-servicebus/tests/async_tests/mgmt_tests/recordings/test_mgmt_topics_async.test_mgmt_topic_async_update_dict_success.yaml +++ b/sdk/servicebus/azure-servicebus/tests/async_tests/mgmt_tests/recordings/test_mgmt_topics_async.test_mgmt_topic_async_update_dict_success.yaml @@ -10,17 +10,17 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-04 response: body: - string: Topicshttps://servicebustestsrcoqeqei7.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-042021-02-22T18:08:26Z + string: Topicshttps://servicebustestfpkpesppp3.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-042021-03-01T23:36:33Z headers: content-type: application/atom+xml;type=feed;charset=utf-8 - date: Mon, 22 Feb 2021 18:08:25 GMT + date: Mon, 01 Mar 2021 23:36:32 GMT server: Microsoft-HTTPAPI/2.0 transfer-encoding: chunked status: code: 200 message: OK - url: https://servicebustestsrcoqeqei7.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-04 + url: https://servicebustestfpkpesppp3.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-04 - request: body: ' @@ -39,21 +39,21 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjruid?api-version=2017-04 response: body: - string: https://servicebustestsrcoqeqei7.servicebus.windows.net/fjruid?api-version=2017-04fjruid2021-02-22T18:08:26Z2021-02-22T18:08:26Zservicebustestsrcoqeqei7https://servicebustestfpkpesppp3.servicebus.windows.net/fjruid?api-version=2017-04fjruid2021-03-01T23:36:33Z2021-03-01T23:36:33Zservicebustestfpkpesppp3P10675199DT2H48M5.4775807S1024falsePT10Mtrue0falsefalseActive2021-02-22T18:08:26.56Z2021-02-22T18:08:26.743ZtrueP10675199DT2H48M5.4775807SfalseAvailablefalsefalse + xmlns:i="http://www.w3.org/2001/XMLSchema-instance">P10675199DT2H48M5.4775807S1024falsePT10Mtrue0falsefalseActive2021-03-01T23:36:33.833Z2021-03-01T23:36:33.877ZtrueP10675199DT2H48M5.4775807SfalseAvailablefalsefalse headers: content-type: application/atom+xml;type=entry;charset=utf-8 - date: Mon, 22 Feb 2021 18:08:26 GMT + date: Mon, 01 Mar 2021 23:36:33 GMT server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 transfer-encoding: chunked status: code: 201 message: Created - url: https://servicebustestsrcoqeqei7.servicebus.windows.net/fjruid?api-version=2017-04 + url: https://servicebustestfpkpesppp3.servicebus.windows.net/fjruid?api-version=2017-04 - request: body: ' @@ -75,22 +75,22 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjruid?api-version=2017-04 response: body: - string: https://servicebustestsrcoqeqei7.servicebus.windows.net/fjruid?api-version=2017-04fjruid2021-02-22T18:08:27Zservicebustestsrcoqeqei7https://servicebustestfpkpesppp3.servicebus.windows.net/fjruid?api-version=2017-04fjruid2021-03-01T23:36:34Zservicebustestfpkpesppp3PT2M1024falsePT10Mtrue0ActivetrueP10675199DT2H48M5.477539SfalseAvailablefalse headers: content-type: application/atom+xml;type=entry;charset=utf-8 - date: Mon, 22 Feb 2021 18:08:26 GMT - etag: '637496141067430000' + date: Mon, 01 Mar 2021 23:36:33 GMT + etag: '637502385938770000' server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 transfer-encoding: chunked status: code: 200 message: OK - url: https://servicebustestsrcoqeqei7.servicebus.windows.net/fjruid?api-version=2017-04 + url: https://servicebustestfpkpesppp3.servicebus.windows.net/fjruid?api-version=2017-04 - request: body: null headers: @@ -102,23 +102,23 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjruid?enrich=false&api-version=2017-04 response: body: - string: https://servicebustestsrcoqeqei7.servicebus.windows.net/fjruid?enrich=false&api-version=2017-04fjruid2021-02-22T18:08:26Z2021-02-22T18:08:27Zservicebustestsrcoqeqei7https://servicebustestfpkpesppp3.servicebus.windows.net/fjruid?enrich=false&api-version=2017-04fjruid2021-03-01T23:36:33Z2021-03-01T23:36:34Zservicebustestfpkpesppp3PT2M1024falsePT10Mtrue0falsefalseActive2021-02-22T18:08:26.56Z2021-02-22T18:08:27.24Z0001-01-01T00:00:00ZtruePT2M1024falsePT10Mtrue0falsefalseActive2021-03-01T23:36:33.833Z2021-03-01T23:36:34.397Z0001-01-01T00:00:00Ztrue000000P10675199DT2H48M5.477539SfalseAvailablefalsefalse headers: content-type: application/atom+xml;type=entry;charset=utf-8 - date: Mon, 22 Feb 2021 18:08:26 GMT - etag: '637496141072400000' + date: Mon, 01 Mar 2021 23:36:33 GMT + etag: '637502385943970000' server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 transfer-encoding: chunked status: code: 200 message: OK - url: https://servicebustestsrcoqeqei7.servicebus.windows.net/fjruid?enrich=false&api-version=2017-04 + url: https://servicebustestfpkpesppp3.servicebus.windows.net/fjruid?enrich=false&api-version=2017-04 - request: body: ' @@ -140,22 +140,22 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjruid?api-version=2017-04 response: body: - string: https://servicebustestsrcoqeqei7.servicebus.windows.net/fjruid?api-version=2017-04fjruid2021-02-22T18:08:27Zservicebustestsrcoqeqei7https://servicebustestfpkpesppp3.servicebus.windows.net/fjruid?api-version=2017-04fjruid2021-03-01T23:36:34Zservicebustestfpkpesppp3PT11M3072falsePT12Mtrue0ActivetruePT10MfalseAvailabletrue headers: content-type: application/atom+xml;type=entry;charset=utf-8 - date: Mon, 22 Feb 2021 18:08:26 GMT - etag: '637496141072400000' + date: Mon, 01 Mar 2021 23:36:34 GMT + etag: '637502385943970000' server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 transfer-encoding: chunked status: code: 200 message: OK - url: https://servicebustestsrcoqeqei7.servicebus.windows.net/fjruid?api-version=2017-04 + url: https://servicebustestfpkpesppp3.servicebus.windows.net/fjruid?api-version=2017-04 - request: body: null headers: @@ -167,23 +167,23 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjruid?enrich=false&api-version=2017-04 response: body: - string: https://servicebustestsrcoqeqei7.servicebus.windows.net/fjruid?enrich=false&api-version=2017-04fjruid2021-02-22T18:08:26Z2021-02-22T18:08:27Zservicebustestsrcoqeqei7https://servicebustestfpkpesppp3.servicebus.windows.net/fjruid?enrich=false&api-version=2017-04fjruid2021-03-01T23:36:33Z2021-03-01T23:36:34Zservicebustestfpkpesppp3PT11M3072falsePT12Mtrue0falsefalseActive2021-02-22T18:08:26.56Z2021-02-22T18:08:27.713Z0001-01-01T00:00:00ZtruePT11M3072falsePT12Mtrue0falsefalseActive2021-03-01T23:36:33.833Z2021-03-01T23:36:34.647Z0001-01-01T00:00:00Ztrue000000PT10MfalseAvailablefalsetrue headers: content-type: application/atom+xml;type=entry;charset=utf-8 - date: Mon, 22 Feb 2021 18:08:27 GMT - etag: '637496141077130000' + date: Mon, 01 Mar 2021 23:36:34 GMT + etag: '637502385946470000' server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 transfer-encoding: chunked status: code: 200 message: OK - url: https://servicebustestsrcoqeqei7.servicebus.windows.net/fjruid?enrich=false&api-version=2017-04 + url: https://servicebustestfpkpesppp3.servicebus.windows.net/fjruid?enrich=false&api-version=2017-04 - request: body: null headers: @@ -198,12 +198,12 @@ interactions: string: '' headers: content-length: '0' - date: Mon, 22 Feb 2021 18:08:27 GMT - etag: '637496141077130000' + date: Mon, 01 Mar 2021 23:36:34 GMT + etag: '637502385946470000' server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 status: code: 200 message: OK - url: https://servicebustestsrcoqeqei7.servicebus.windows.net/fjruid?api-version=2017-04 + url: https://servicebustestfpkpesppp3.servicebus.windows.net/fjruid?api-version=2017-04 version: 1 diff --git a/sdk/servicebus/azure-servicebus/tests/mgmt_tests/recordings/test_mgmt_queues.test_mgmt_queue_update_dict_error.yaml b/sdk/servicebus/azure-servicebus/tests/mgmt_tests/recordings/test_mgmt_queues.test_mgmt_queue_update_dict_error.yaml index cffe160463f1..57a839275db1 100644 --- a/sdk/servicebus/azure-servicebus/tests/mgmt_tests/recordings/test_mgmt_queues.test_mgmt_queue_update_dict_error.yaml +++ b/sdk/servicebus/azure-servicebus/tests/mgmt_tests/recordings/test_mgmt_queues.test_mgmt_queue_update_dict_error.yaml @@ -14,13 +14,13 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/$Resources/queues?$skip=0&$top=100&api-version=2017-04 response: body: - string: Queueshttps://servicebustestxl6ry4f5xf.servicebus.windows.net/$Resources/queues?$skip=0&$top=100&api-version=2017-042021-02-22T17:43:31Z + string: Queueshttps://servicebustestuvtxo3thy4.servicebus.windows.net/$Resources/queues?$skip=0&$top=100&api-version=2017-042021-03-01T23:38:31Z headers: content-type: - application/atom+xml;type=feed;charset=utf-8 date: - - Mon, 22 Feb 2021 17:43:30 GMT + - Mon, 01 Mar 2021 23:38:31 GMT server: - Microsoft-HTTPAPI/2.0 transfer-encoding: @@ -50,16 +50,16 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/dfjdfj?api-version=2017-04 response: body: - string: https://servicebustestxl6ry4f5xf.servicebus.windows.net/dfjdfj?api-version=2017-04dfjdfj2021-02-22T17:43:31Z2021-02-22T17:43:31Zservicebustestxl6ry4f5xfhttps://servicebustestuvtxo3thy4.servicebus.windows.net/dfjdfj?api-version=2017-04dfjdfj2021-03-01T23:38:32Z2021-03-01T23:38:32Zservicebustestuvtxo3thy4PT1M1024falsefalseP10675199DT2H48M5.4775807SfalsePT10M10true00falseActive2021-02-22T17:43:31.723Z2021-02-22T17:43:31.793ZtrueP10675199DT2H48M5.4775807SfalseAvailablefalse + xmlns:i="http://www.w3.org/2001/XMLSchema-instance">PT1M1024falsefalseP10675199DT2H48M5.4775807SfalsePT10M10true00falseActive2021-03-01T23:38:32.31Z2021-03-01T23:38:32.373ZtrueP10675199DT2H48M5.4775807SfalseAvailablefalse headers: content-type: - application/atom+xml;type=entry;charset=utf-8 date: - - Mon, 22 Feb 2021 17:43:31 GMT + - Mon, 01 Mar 2021 23:38:32 GMT server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -91,9 +91,9 @@ interactions: content-length: - '0' date: - - Mon, 22 Feb 2021 17:43:31 GMT + - Mon, 01 Mar 2021 23:38:32 GMT etag: - - '637496126117930000' + - '637502387123730000' server: - Microsoft-HTTPAPI/2.0 strict-transport-security: diff --git a/sdk/servicebus/azure-servicebus/tests/mgmt_tests/recordings/test_mgmt_queues.test_mgmt_queue_update_dict_success.yaml b/sdk/servicebus/azure-servicebus/tests/mgmt_tests/recordings/test_mgmt_queues.test_mgmt_queue_update_dict_success.yaml index 8a6108134536..a9b001701eaa 100644 --- a/sdk/servicebus/azure-servicebus/tests/mgmt_tests/recordings/test_mgmt_queues.test_mgmt_queue_update_dict_success.yaml +++ b/sdk/servicebus/azure-servicebus/tests/mgmt_tests/recordings/test_mgmt_queues.test_mgmt_queue_update_dict_success.yaml @@ -14,13 +14,13 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/$Resources/queues?$skip=0&$top=100&api-version=2017-04 response: body: - string: Queueshttps://servicebustestxl6ry4f5xf.servicebus.windows.net/$Resources/queues?$skip=0&$top=100&api-version=2017-042021-02-22T17:43:33Z + string: Queueshttps://servicebustestuvtxo3thy4.servicebus.windows.net/$Resources/queues?$skip=0&$top=100&api-version=2017-042021-03-01T23:38:34Z headers: content-type: - application/atom+xml;type=feed;charset=utf-8 date: - - Mon, 22 Feb 2021 17:43:33 GMT + - Mon, 01 Mar 2021 23:38:33 GMT server: - Microsoft-HTTPAPI/2.0 transfer-encoding: @@ -50,16 +50,16 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjruid?api-version=2017-04 response: body: - string: https://servicebustestxl6ry4f5xf.servicebus.windows.net/fjruid?api-version=2017-04fjruid2021-02-22T17:43:34Z2021-02-22T17:43:34Zservicebustestxl6ry4f5xfhttps://servicebustestuvtxo3thy4.servicebus.windows.net/fjruid?api-version=2017-04fjruid2021-03-01T23:38:34Z2021-03-01T23:38:34Zservicebustestuvtxo3thy4PT1M1024falsefalseP10675199DT2H48M5.4775807SfalsePT10M10true00falseActive2021-02-22T17:43:34.187Z2021-02-22T17:43:34.22ZtrueP10675199DT2H48M5.4775807SfalseAvailablefalse + xmlns:i="http://www.w3.org/2001/XMLSchema-instance">PT1M1024falsefalseP10675199DT2H48M5.4775807SfalsePT10M10true00falseActive2021-03-01T23:38:34.72Z2021-03-01T23:38:34.753ZtrueP10675199DT2H48M5.4775807SfalseAvailablefalse headers: content-type: - application/atom+xml;type=entry;charset=utf-8 date: - - Mon, 22 Feb 2021 17:43:34 GMT + - Mon, 01 Mar 2021 23:38:34 GMT server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -94,18 +94,18 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjruid?api-version=2017-04 response: body: - string: https://servicebustestxl6ry4f5xf.servicebus.windows.net/fjruid?api-version=2017-04fjruid2021-02-22T17:43:34Zservicebustestxl6ry4f5xfhttps://servicebustestuvtxo3thy4.servicebus.windows.net/fjruid?api-version=2017-04fjruid2021-03-01T23:38:35Zservicebustestuvtxo3thy4PT2M1024falsefalseP10675199DT2H48M5.477539SfalsePT10M10trueActiveP10675199DT2H48M5.477539SfalseAvailablefalse headers: content-type: - application/atom+xml;type=entry;charset=utf-8 date: - - Mon, 22 Feb 2021 17:43:34 GMT + - Mon, 01 Mar 2021 23:38:34 GMT etag: - - '637496126142200000' + - '637502387147530000' server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -130,19 +130,19 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjruid?enrich=false&api-version=2017-04 response: body: - string: https://servicebustestxl6ry4f5xf.servicebus.windows.net/fjruid?enrich=false&api-version=2017-04fjruid2021-02-22T17:43:34Z2021-02-22T17:43:34Zservicebustestxl6ry4f5xfhttps://servicebustestuvtxo3thy4.servicebus.windows.net/fjruid?enrich=false&api-version=2017-04fjruid2021-03-01T23:38:34Z2021-03-01T23:38:35Zservicebustestuvtxo3thy4PT2M1024falsefalseP10675199DT2H48M5.477539SfalsePT10M10true00falseActive2021-02-22T17:43:34.187Z2021-02-22T17:43:34.793Z0001-01-01T00:00:00ZtruePT2M1024falsefalseP10675199DT2H48M5.477539SfalsePT10M10true00falseActive2021-03-01T23:38:34.72Z2021-03-01T23:38:35.293Z0001-01-01T00:00:00Ztrue00000P10675199DT2H48M5.477539SfalseAvailablefalse headers: content-type: - application/atom+xml;type=entry;charset=utf-8 date: - - Mon, 22 Feb 2021 17:43:34 GMT + - Mon, 01 Mar 2021 23:38:34 GMT etag: - - '637496126147930000' + - '637502387152930000' server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -157,7 +157,7 @@ interactions: PT13S3072falsefalsePT11MtruePT12M14trueActivePT10MfalseAvailabletruesb://servicebustestxl6ry4f5xf.servicebus.windows.net/fjruidsb://servicebustestxl6ry4f5xf.servicebus.windows.net/fjruid' + />ActivePT10MfalseAvailabletruesb://servicebustestuvtxo3thy4.servicebus.windows.net/fjruidsb://servicebustestuvtxo3thy4.servicebus.windows.net/fjruid' headers: Accept: - application/xml @@ -172,27 +172,27 @@ interactions: If-Match: - '*' ServiceBusDlqSupplementaryAuthorization: - - SharedAccessSignature sr=sb%3A%2F%2Fservicebustestxl6ry4f5xf.servicebus.windows.net%2Ffjruid&sig=vPcX4qwWQy0zxHGNjNsrTg%2bQnr%2fVODIuT8MReZiH%2bIQ%3d&se=1614019415&skn=RootManageSharedAccessKey + - SharedAccessSignature sr=sb%3A%2F%2Fservicebustestuvtxo3thy4.servicebus.windows.net%2Ffjruid&sig=pTWDkF8YEPU5j%2bL5EqHzaCs4p%2bSMVhlCtRuBr65vGnE%3d&se=1614645514&skn=RootManageSharedAccessKey ServiceBusSupplementaryAuthorization: - - SharedAccessSignature sr=sb%3A%2F%2Fservicebustestxl6ry4f5xf.servicebus.windows.net%2Ffjruid&sig=vPcX4qwWQy0zxHGNjNsrTg%2bQnr%2fVODIuT8MReZiH%2bIQ%3d&se=1614019415&skn=RootManageSharedAccessKey + - SharedAccessSignature sr=sb%3A%2F%2Fservicebustestuvtxo3thy4.servicebus.windows.net%2Ffjruid&sig=pTWDkF8YEPU5j%2bL5EqHzaCs4p%2bSMVhlCtRuBr65vGnE%3d&se=1614645514&skn=RootManageSharedAccessKey User-Agent: - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.0 (Windows-10-10.0.19041-SP0) method: PUT uri: https://servicebustestsbname.servicebus.windows.net/fjruid?api-version=2017-04 response: body: - string: https://servicebustestxl6ry4f5xf.servicebus.windows.net/fjruid?api-version=2017-04fjruid2021-02-22T17:43:35Zservicebustestxl6ry4f5xfhttps://servicebustestuvtxo3thy4.servicebus.windows.net/fjruid?api-version=2017-04fjruid2021-03-01T23:38:35Zservicebustestuvtxo3thy4PT13S3072falsefalsePT11MtruePT12M14trueActivePT10MfalseAvailabletruesb://servicebustestxl6ry4f5xf.servicebus.windows.net/fjruidsb://servicebustestxl6ry4f5xf.servicebus.windows.net/fjruid + xmlns:i="http://www.w3.org/2001/XMLSchema-instance">PT13S3072falsefalsePT11MtruePT12M14trueActivePT10MfalseAvailabletruesb://servicebustestuvtxo3thy4.servicebus.windows.net/fjruidsb://servicebustestuvtxo3thy4.servicebus.windows.net/fjruid headers: content-type: - application/atom+xml;type=entry;charset=utf-8 date: - - Mon, 22 Feb 2021 17:43:35 GMT + - Mon, 01 Mar 2021 23:38:34 GMT etag: - - '637496126147930000' + - '637502387152930000' server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -217,19 +217,19 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjruid?enrich=false&api-version=2017-04 response: body: - string: https://servicebustestxl6ry4f5xf.servicebus.windows.net/fjruid?enrich=false&api-version=2017-04fjruid2021-02-22T17:43:34Z2021-02-22T17:43:35Zservicebustestxl6ry4f5xfhttps://servicebustestuvtxo3thy4.servicebus.windows.net/fjruid?enrich=false&api-version=2017-04fjruid2021-03-01T23:38:34Z2021-03-01T23:38:35Zservicebustestuvtxo3thy4PT13S3072falsefalsePT11MtruePT12M14true00falseActive2021-02-22T17:43:34.187Z2021-02-22T17:43:35.213Z0001-01-01T00:00:00Ztrue00000PT10MfalseAvailabletruesb://servicebustestxl6ry4f5xf.servicebus.windows.net/fjruidsb://servicebustestxl6ry4f5xf.servicebus.windows.net/fjruid + xmlns:i="http://www.w3.org/2001/XMLSchema-instance">PT13S3072falsefalsePT11MtruePT12M14true00falseActive2021-03-01T23:38:34.72Z2021-03-01T23:38:35.54Z0001-01-01T00:00:00Ztrue00000PT10MfalseAvailabletruesb://servicebustestuvtxo3thy4.servicebus.windows.net/fjruidsb://servicebustestuvtxo3thy4.servicebus.windows.net/fjruid headers: content-type: - application/atom+xml;type=entry;charset=utf-8 date: - - Mon, 22 Feb 2021 17:43:35 GMT + - Mon, 01 Mar 2021 23:38:34 GMT etag: - - '637496126152130000' + - '637502387155400000' server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -261,9 +261,9 @@ interactions: content-length: - '0' date: - - Mon, 22 Feb 2021 17:43:35 GMT + - Mon, 01 Mar 2021 23:38:35 GMT etag: - - '637496126152130000' + - '637502387155400000' server: - Microsoft-HTTPAPI/2.0 strict-transport-security: diff --git a/sdk/servicebus/azure-servicebus/tests/mgmt_tests/recordings/test_mgmt_rules.test_mgmt_rule_update_dict_error.yaml b/sdk/servicebus/azure-servicebus/tests/mgmt_tests/recordings/test_mgmt_rules.test_mgmt_rule_update_dict_error.yaml index 6287f2c7128f..8d50993f8c89 100644 --- a/sdk/servicebus/azure-servicebus/tests/mgmt_tests/recordings/test_mgmt_rules.test_mgmt_rule_update_dict_error.yaml +++ b/sdk/servicebus/azure-servicebus/tests/mgmt_tests/recordings/test_mgmt_rules.test_mgmt_rule_update_dict_error.yaml @@ -14,13 +14,13 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-04 response: body: - string: Topicshttps://servicebustestfk46diq54z.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-042021-02-22T17:45:11Z + string: Topicshttps://servicebustestahnhgjoyqu.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-042021-03-01T23:38:07Z headers: content-type: - application/atom+xml;type=feed;charset=utf-8 date: - - Mon, 22 Feb 2021 17:45:10 GMT + - Mon, 01 Mar 2021 23:38:06 GMT server: - Microsoft-HTTPAPI/2.0 transfer-encoding: @@ -50,16 +50,16 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjruid?api-version=2017-04 response: body: - string: https://servicebustestfk46diq54z.servicebus.windows.net/fjruid?api-version=2017-04fjruid2021-02-22T17:45:12Z2021-02-22T17:45:12Zservicebustestfk46diq54zhttps://servicebustestahnhgjoyqu.servicebus.windows.net/fjruid?api-version=2017-04fjruid2021-03-01T23:38:07Z2021-03-01T23:38:07ZservicebustestahnhgjoyquP10675199DT2H48M5.4775807S1024falsePT10Mtrue0falsefalseActive2021-02-22T17:45:12.03Z2021-02-22T17:45:12.067ZtrueP10675199DT2H48M5.4775807SfalseAvailablefalsefalse + xmlns:i="http://www.w3.org/2001/XMLSchema-instance">P10675199DT2H48M5.4775807S1024falsePT10Mtrue0falsefalseActive2021-03-01T23:38:07.503Z2021-03-01T23:38:07.543ZtrueP10675199DT2H48M5.4775807SfalseAvailablefalsefalse headers: content-type: - application/atom+xml;type=entry;charset=utf-8 date: - - Mon, 22 Feb 2021 17:45:11 GMT + - Mon, 01 Mar 2021 23:38:07 GMT server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -91,18 +91,18 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjruid/subscriptions/eqkovcd?api-version=2017-04 response: body: - string: https://servicebustestfk46diq54z.servicebus.windows.net/fjruid/subscriptions/eqkovcd?api-version=2017-04eqkovcd2021-02-22T17:45:12Z2021-02-22T17:45:12Zhttps://servicebustestahnhgjoyqu.servicebus.windows.net/fjruid/subscriptions/eqkovcd?api-version=2017-04eqkovcd2021-03-01T23:38:08Z2021-03-01T23:38:08ZPT1MfalseP10675199DT2H48M5.4775807Sfalsetrue010trueActive2021-02-22T17:45:12.593511Z2021-02-22T17:45:12.593511Z0001-01-01T00:00:00P10675199DT2H48M5.4775807SAvailable + xmlns:i="http://www.w3.org/2001/XMLSchema-instance">PT1MfalseP10675199DT2H48M5.4775807Sfalsetrue010trueActive2021-03-01T23:38:08.0722979Z2021-03-01T23:38:08.0722979Z0001-01-01T00:00:00P10675199DT2H48M5.4775807SAvailable headers: content-type: - application/atom+xml;type=entry;charset=utf-8 date: - - Mon, 22 Feb 2021 17:45:11 GMT + - Mon, 01 Mar 2021 23:38:08 GMT etag: - - '637496127120670000' + - '637502386875430000' server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -136,20 +136,20 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjruid/subscriptions/eqkovcd/rules/rule?api-version=2017-04 response: body: - string: https://servicebustestfk46diq54z.servicebus.windows.net/fjruid/subscriptions/eqkovcd/rules/rule?api-version=2017-04rule2021-02-22T17:45:12Z2021-02-22T17:45:12Zhttps://servicebustestahnhgjoyqu.servicebus.windows.net/fjruid/subscriptions/eqkovcd/rules/rule?api-version=2017-04rule2021-03-01T23:38:08Z2021-03-01T23:38:08ZPriority = 'low'20true2021-02-22T17:45:12.8278756Zrule + i:type="EmptyRuleAction"/>2021-03-01T23:38:08.400461Zrule headers: content-type: - application/atom+xml;type=entry;charset=utf-8 date: - - Mon, 22 Feb 2021 17:45:11 GMT + - Mon, 01 Mar 2021 23:38:08 GMT etag: - - '637496127120670000' + - '637502386875430000' server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -181,9 +181,9 @@ interactions: content-length: - '0' date: - - Mon, 22 Feb 2021 17:45:12 GMT + - Mon, 01 Mar 2021 23:38:08 GMT etag: - - '637496127120670000' + - '637502386875430000' server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -213,9 +213,9 @@ interactions: content-length: - '0' date: - - Mon, 22 Feb 2021 17:45:12 GMT + - Mon, 01 Mar 2021 23:38:08 GMT etag: - - '637496127120670000' + - '637502386875430000' server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -245,9 +245,9 @@ interactions: content-length: - '0' date: - - Mon, 22 Feb 2021 17:45:12 GMT + - Mon, 01 Mar 2021 23:38:09 GMT etag: - - '637496127120670000' + - '637502386875430000' server: - Microsoft-HTTPAPI/2.0 strict-transport-security: diff --git a/sdk/servicebus/azure-servicebus/tests/mgmt_tests/recordings/test_mgmt_rules.test_mgmt_rule_update_dict_success.yaml b/sdk/servicebus/azure-servicebus/tests/mgmt_tests/recordings/test_mgmt_rules.test_mgmt_rule_update_dict_success.yaml index 0bfa095bcb9a..8cfb8535beb9 100644 --- a/sdk/servicebus/azure-servicebus/tests/mgmt_tests/recordings/test_mgmt_rules.test_mgmt_rule_update_dict_success.yaml +++ b/sdk/servicebus/azure-servicebus/tests/mgmt_tests/recordings/test_mgmt_rules.test_mgmt_rule_update_dict_success.yaml @@ -14,13 +14,13 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-04 response: body: - string: Topicshttps://servicebustestfk46diq54z.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-042021-02-22T17:45:14Z + string: Topicshttps://servicebustestahnhgjoyqu.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-042021-03-01T23:38:10Z headers: content-type: - application/atom+xml;type=feed;charset=utf-8 date: - - Mon, 22 Feb 2021 17:45:14 GMT + - Mon, 01 Mar 2021 23:38:10 GMT server: - Microsoft-HTTPAPI/2.0 transfer-encoding: @@ -50,16 +50,16 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjruid?api-version=2017-04 response: body: - string: https://servicebustestfk46diq54z.servicebus.windows.net/fjruid?api-version=2017-04fjruid2021-02-22T17:45:14Z2021-02-22T17:45:14Zservicebustestfk46diq54zhttps://servicebustestahnhgjoyqu.servicebus.windows.net/fjruid?api-version=2017-04fjruid2021-03-01T23:38:10Z2021-03-01T23:38:10ZservicebustestahnhgjoyquP10675199DT2H48M5.4775807S1024falsePT10Mtrue0falsefalseActive2021-02-22T17:45:14.927Z2021-02-22T17:45:14.953ZtrueP10675199DT2H48M5.4775807SfalseAvailablefalsefalse + xmlns:i="http://www.w3.org/2001/XMLSchema-instance">P10675199DT2H48M5.4775807S1024falsePT10Mtrue0falsefalseActive2021-03-01T23:38:10.82Z2021-03-01T23:38:10.857ZtrueP10675199DT2H48M5.4775807SfalseAvailablefalsefalse headers: content-type: - application/atom+xml;type=entry;charset=utf-8 date: - - Mon, 22 Feb 2021 17:45:15 GMT + - Mon, 01 Mar 2021 23:38:11 GMT server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -91,18 +91,18 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjruid/subscriptions/eqkovcd?api-version=2017-04 response: body: - string: https://servicebustestfk46diq54z.servicebus.windows.net/fjruid/subscriptions/eqkovcd?api-version=2017-04eqkovcd2021-02-22T17:45:15Z2021-02-22T17:45:15Zhttps://servicebustestahnhgjoyqu.servicebus.windows.net/fjruid/subscriptions/eqkovcd?api-version=2017-04eqkovcd2021-03-01T23:38:11Z2021-03-01T23:38:11ZPT1MfalseP10675199DT2H48M5.4775807Sfalsetrue010trueActive2021-02-22T17:45:15.5401132Z2021-02-22T17:45:15.5401132Z0001-01-01T00:00:00P10675199DT2H48M5.4775807SAvailable + xmlns:i="http://www.w3.org/2001/XMLSchema-instance">PT1MfalseP10675199DT2H48M5.4775807Sfalsetrue010trueActive2021-03-01T23:38:11.4192824Z2021-03-01T23:38:11.4192824Z0001-01-01T00:00:00P10675199DT2H48M5.4775807SAvailable headers: content-type: - application/atom+xml;type=entry;charset=utf-8 date: - - Mon, 22 Feb 2021 17:45:15 GMT + - Mon, 01 Mar 2021 23:38:11 GMT etag: - - '637496127149530000' + - '637502386908570000' server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -136,20 +136,20 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjruid/subscriptions/eqkovcd/rules/rule?api-version=2017-04 response: body: - string: https://servicebustestfk46diq54z.servicebus.windows.net/fjruid/subscriptions/eqkovcd/rules/rule?api-version=2017-04rule2021-02-22T17:45:15Z2021-02-22T17:45:15Zhttps://servicebustestahnhgjoyqu.servicebus.windows.net/fjruid/subscriptions/eqkovcd/rules/rule?api-version=2017-04rule2021-03-01T23:38:11Z2021-03-01T23:38:11ZPriority = 'low'20true2021-02-22T17:45:15.8060294Zrule + i:type="EmptyRuleAction"/>2021-03-01T23:38:11.7317844Zrule headers: content-type: - application/atom+xml;type=entry;charset=utf-8 date: - - Mon, 22 Feb 2021 17:45:15 GMT + - Mon, 01 Mar 2021 23:38:11 GMT etag: - - '637496127149530000' + - '637502386908570000' server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -174,20 +174,20 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjruid/subscriptions/eqkovcd/rules/rule?enrich=false&api-version=2017-04 response: body: - string: sb://servicebustestfk46diq54z.servicebus.windows.net/fjruid/subscriptions/eqkovcd/rules/rule?enrich=false&api-version=2017-04rule2021-02-22T17:45:15Z2021-02-22T17:45:15Zsb://servicebustestahnhgjoyqu.servicebus.windows.net/fjruid/subscriptions/eqkovcd/rules/rule?enrich=false&api-version=2017-04rule2021-03-01T23:38:11Z2021-03-01T23:38:11ZPriority = 'low'20true2021-02-22T17:45:15.805892Zrule + i:type="EmptyRuleAction"/>2021-03-01T23:38:11.7372306Zrule headers: content-type: - application/atom+xml;type=entry;charset=utf-8 date: - - Mon, 22 Feb 2021 17:45:15 GMT + - Mon, 01 Mar 2021 23:38:11 GMT etag: - - '637496127149530000' + - '637502386908570000' server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -203,7 +203,7 @@ interactions: testcidSET Priority = ''low''20true2021-02-22T17:45:15.805892Zrule' + xsi:type="SqlRuleAction">SET Priority = ''low''20true2021-03-01T23:38:11.73723Zrule' headers: Accept: - application/xml @@ -212,7 +212,7 @@ interactions: Connection: - keep-alive Content-Length: - - '655' + - '654' Content-Type: - application/atom+xml If-Match: @@ -223,19 +223,19 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjruid/subscriptions/eqkovcd/rules/rule?api-version=2017-04 response: body: - string: https://servicebustestfk46diq54z.servicebus.windows.net/fjruid/subscriptions/eqkovcd/rules/rule?api-version=2017-04rule2021-02-22T17:45:16Z2021-02-22T17:45:16Zhttps://servicebustestahnhgjoyqu.servicebus.windows.net/fjruid/subscriptions/eqkovcd/rules/rule?api-version=2017-04rule2021-03-01T23:38:11Z2021-03-01T23:38:11ZtestcidSET Priority = 'low'20true2021-02-22T17:45:16.0403969Zrule + i:type="SqlRuleAction">SET Priority = 'low'20true2021-03-01T23:38:11.9974466Zrule headers: content-type: - application/atom+xml;type=entry;charset=utf-8 date: - - Mon, 22 Feb 2021 17:45:15 GMT + - Mon, 01 Mar 2021 23:38:12 GMT etag: - - '637496127149530000' + - '637502386908570000' server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -260,19 +260,19 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjruid/subscriptions/eqkovcd/rules/rule?enrich=false&api-version=2017-04 response: body: - string: sb://servicebustestfk46diq54z.servicebus.windows.net/fjruid/subscriptions/eqkovcd/rules/rule?enrich=false&api-version=2017-04rule2021-02-22T17:45:15Z2021-02-22T17:45:15Zsb://servicebustestahnhgjoyqu.servicebus.windows.net/fjruid/subscriptions/eqkovcd/rules/rule?enrich=false&api-version=2017-04rule2021-03-01T23:38:11Z2021-03-01T23:38:11ZtestcidSET Priority = 'low'20true2021-02-22T17:45:15.805892Zrule + i:type="SqlRuleAction">SET Priority = 'low'20true2021-03-01T23:38:11.7372306Zrule headers: content-type: - application/atom+xml;type=entry;charset=utf-8 date: - - Mon, 22 Feb 2021 17:45:15 GMT + - Mon, 01 Mar 2021 23:38:12 GMT etag: - - '637496127149530000' + - '637502386908570000' server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -304,9 +304,9 @@ interactions: content-length: - '0' date: - - Mon, 22 Feb 2021 17:45:16 GMT + - Mon, 01 Mar 2021 23:38:12 GMT etag: - - '637496127149530000' + - '637502386908570000' server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -336,9 +336,9 @@ interactions: content-length: - '0' date: - - Mon, 22 Feb 2021 17:45:16 GMT + - Mon, 01 Mar 2021 23:38:12 GMT etag: - - '637496127149530000' + - '637502386908570000' server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -368,9 +368,9 @@ interactions: content-length: - '0' date: - - Mon, 22 Feb 2021 17:45:16 GMT + - Mon, 01 Mar 2021 23:38:13 GMT etag: - - '637496127149530000' + - '637502386908570000' server: - Microsoft-HTTPAPI/2.0 strict-transport-security: diff --git a/sdk/servicebus/azure-servicebus/tests/mgmt_tests/recordings/test_mgmt_subscriptions.test_mgmt_subscription_update_dict_error.yaml b/sdk/servicebus/azure-servicebus/tests/mgmt_tests/recordings/test_mgmt_subscriptions.test_mgmt_subscription_update_dict_error.yaml index 166045c6ce7f..58ce0931b25e 100644 --- a/sdk/servicebus/azure-servicebus/tests/mgmt_tests/recordings/test_mgmt_subscriptions.test_mgmt_subscription_update_dict_error.yaml +++ b/sdk/servicebus/azure-servicebus/tests/mgmt_tests/recordings/test_mgmt_subscriptions.test_mgmt_subscription_update_dict_error.yaml @@ -14,13 +14,13 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-04 response: body: - string: Topicshttps://servicebustestci5epio27o.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-042021-02-22T17:47:06Z + string: Topicshttps://servicebustesticxh3n4n33.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-042021-03-01T23:39:36Z headers: content-type: - application/atom+xml;type=feed;charset=utf-8 date: - - Mon, 22 Feb 2021 17:47:06 GMT + - Mon, 01 Mar 2021 23:39:35 GMT server: - Microsoft-HTTPAPI/2.0 transfer-encoding: @@ -50,16 +50,16 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/dfjdfj?api-version=2017-04 response: body: - string: https://servicebustestci5epio27o.servicebus.windows.net/dfjdfj?api-version=2017-04dfjdfj2021-02-22T17:47:07Z2021-02-22T17:47:07Zservicebustestci5epio27ohttps://servicebustesticxh3n4n33.servicebus.windows.net/dfjdfj?api-version=2017-04dfjdfj2021-03-01T23:39:36Z2021-03-01T23:39:36Zservicebustesticxh3n4n33P10675199DT2H48M5.4775807S1024falsePT10Mtrue0falsefalseActive2021-02-22T17:47:07.173Z2021-02-22T17:47:07.21ZtrueP10675199DT2H48M5.4775807SfalseAvailablefalsefalse + xmlns:i="http://www.w3.org/2001/XMLSchema-instance">P10675199DT2H48M5.4775807S1024falsePT10Mtrue0falsefalseActive2021-03-01T23:39:36.503Z2021-03-01T23:39:36.58ZtrueP10675199DT2H48M5.4775807SfalseAvailablefalsefalse headers: content-type: - application/atom+xml;type=entry;charset=utf-8 date: - - Mon, 22 Feb 2021 17:47:07 GMT + - Mon, 01 Mar 2021 23:39:36 GMT server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -91,18 +91,18 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/dfjdfj/subscriptions/kwqxd?api-version=2017-04 response: body: - string: https://servicebustestci5epio27o.servicebus.windows.net/dfjdfj/subscriptions/kwqxd?api-version=2017-04kwqxd2021-02-22T17:47:07Z2021-02-22T17:47:07Zhttps://servicebustesticxh3n4n33.servicebus.windows.net/dfjdfj/subscriptions/kwqxd?api-version=2017-04kwqxd2021-03-01T23:39:37Z2021-03-01T23:39:37ZPT1MfalseP10675199DT2H48M5.4775807Sfalsetrue010trueActive2021-02-22T17:47:07.7359932Z2021-02-22T17:47:07.7359932Z0001-01-01T00:00:00P10675199DT2H48M5.4775807SAvailable + xmlns:i="http://www.w3.org/2001/XMLSchema-instance">PT1MfalseP10675199DT2H48M5.4775807Sfalsetrue010trueActive2021-03-01T23:39:37.1574196Z2021-03-01T23:39:37.1574196Z0001-01-01T00:00:00P10675199DT2H48M5.4775807SAvailable headers: content-type: - application/atom+xml;type=entry;charset=utf-8 date: - - Mon, 22 Feb 2021 17:47:07 GMT + - Mon, 01 Mar 2021 23:39:36 GMT etag: - - '637496128272100000' + - '637502387765800000' server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -134,9 +134,9 @@ interactions: content-length: - '0' date: - - Mon, 22 Feb 2021 17:47:07 GMT + - Mon, 01 Mar 2021 23:39:36 GMT etag: - - '637496128272100000' + - '637502387765800000' server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -166,9 +166,9 @@ interactions: content-length: - '0' date: - - Mon, 22 Feb 2021 17:47:08 GMT + - Mon, 01 Mar 2021 23:39:37 GMT etag: - - '637496128272100000' + - '637502387765800000' server: - Microsoft-HTTPAPI/2.0 strict-transport-security: diff --git a/sdk/servicebus/azure-servicebus/tests/mgmt_tests/recordings/test_mgmt_subscriptions.test_mgmt_subscription_update_dict_success.yaml b/sdk/servicebus/azure-servicebus/tests/mgmt_tests/recordings/test_mgmt_subscriptions.test_mgmt_subscription_update_dict_success.yaml index 77c2c27f4032..0401090d641e 100644 --- a/sdk/servicebus/azure-servicebus/tests/mgmt_tests/recordings/test_mgmt_subscriptions.test_mgmt_subscription_update_dict_success.yaml +++ b/sdk/servicebus/azure-servicebus/tests/mgmt_tests/recordings/test_mgmt_subscriptions.test_mgmt_subscription_update_dict_success.yaml @@ -14,13 +14,13 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-04 response: body: - string: Topicshttps://servicebustestci5epio27o.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-042021-02-22T17:47:09Z + string: Topicshttps://servicebustesticxh3n4n33.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-042021-03-01T23:39:38Z headers: content-type: - application/atom+xml;type=feed;charset=utf-8 date: - - Mon, 22 Feb 2021 17:47:08 GMT + - Mon, 01 Mar 2021 23:39:38 GMT server: - Microsoft-HTTPAPI/2.0 transfer-encoding: @@ -50,16 +50,16 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjruid?api-version=2017-04 response: body: - string: https://servicebustestci5epio27o.servicebus.windows.net/fjruid?api-version=2017-04fjruid2021-02-22T17:47:09Z2021-02-22T17:47:09Zservicebustestci5epio27ohttps://servicebustesticxh3n4n33.servicebus.windows.net/fjruid?api-version=2017-04fjruid2021-03-01T23:39:39Z2021-03-01T23:39:39Zservicebustesticxh3n4n33P10675199DT2H48M5.4775807S1024falsePT10Mtrue0falsefalseActive2021-02-22T17:47:09.707Z2021-02-22T17:47:09.733ZtrueP10675199DT2H48M5.4775807SfalseAvailablefalsefalse + xmlns:i="http://www.w3.org/2001/XMLSchema-instance">P10675199DT2H48M5.4775807S1024falsePT10Mtrue0falsefalseActive2021-03-01T23:39:39.22Z2021-03-01T23:39:39.28ZtrueP10675199DT2H48M5.4775807SfalseAvailablefalsefalse headers: content-type: - application/atom+xml;type=entry;charset=utf-8 date: - - Mon, 22 Feb 2021 17:47:09 GMT + - Mon, 01 Mar 2021 23:39:39 GMT server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -91,18 +91,18 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjruid/subscriptions/eqkovcd?api-version=2017-04 response: body: - string: https://servicebustestci5epio27o.servicebus.windows.net/fjruid/subscriptions/eqkovcd?api-version=2017-04eqkovcd2021-02-22T17:47:10Z2021-02-22T17:47:10Zhttps://servicebustesticxh3n4n33.servicebus.windows.net/fjruid/subscriptions/eqkovcd?api-version=2017-04eqkovcd2021-03-01T23:39:39Z2021-03-01T23:39:39ZPT1MfalseP10675199DT2H48M5.4775807Sfalsetrue010trueActive2021-02-22T17:47:10.2591223Z2021-02-22T17:47:10.2591223Z0001-01-01T00:00:00P10675199DT2H48M5.4775807SAvailable + xmlns:i="http://www.w3.org/2001/XMLSchema-instance">PT1MfalseP10675199DT2H48M5.4775807Sfalsetrue010trueActive2021-03-01T23:39:39.8056902Z2021-03-01T23:39:39.8056902Z0001-01-01T00:00:00P10675199DT2H48M5.4775807SAvailable headers: content-type: - application/atom+xml;type=entry;charset=utf-8 date: - - Mon, 22 Feb 2021 17:47:09 GMT + - Mon, 01 Mar 2021 23:39:39 GMT etag: - - '637496128297330000' + - '637502387792800000' server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -136,18 +136,18 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjruid/subscriptions/eqkovcd?api-version=2017-04 response: body: - string: https://servicebustestci5epio27o.servicebus.windows.net/fjruid/subscriptions/eqkovcd?api-version=2017-04eqkovcd2021-02-22T17:47:10Z2021-02-22T17:47:10Zhttps://servicebustesticxh3n4n33.servicebus.windows.net/fjruid/subscriptions/eqkovcd?api-version=2017-04eqkovcd2021-03-01T23:39:40Z2021-03-01T23:39:40ZPT2MfalseP10675199DT2H48M5.477539Sfalsetrue010trueActive2021-02-22T17:47:10.399797Z2021-02-22T17:47:10.399797Z0001-01-01T00:00:00P10675199DT2H48M5.477539SAvailable + xmlns:i="http://www.w3.org/2001/XMLSchema-instance">PT2MfalseP10675199DT2H48M5.477539Sfalsetrue010trueActive2021-03-01T23:39:40.1026404Z2021-03-01T23:39:40.1026404Z0001-01-01T00:00:00P10675199DT2H48M5.477539SAvailable headers: content-type: - application/atom+xml;type=entry;charset=utf-8 date: - - Mon, 22 Feb 2021 17:47:09 GMT + - Mon, 01 Mar 2021 23:39:39 GMT etag: - - '637496128297330000' + - '637502387792800000' server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -172,19 +172,19 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjruid/subscriptions/eqkovcd?enrich=false&api-version=2017-04 response: body: - string: sb://servicebustestci5epio27o.servicebus.windows.net/fjruid/subscriptions/eqkovcd?enrich=false&api-version=2017-04eqkovcd2021-02-22T17:47:10Z2021-02-22T17:47:10Zsb://servicebustesticxh3n4n33.servicebus.windows.net/fjruid/subscriptions/eqkovcd?enrich=false&api-version=2017-04eqkovcd2021-03-01T23:39:39Z2021-03-01T23:39:40ZPT2MfalseP10675199DT2H48M5.477539Sfalsetrue010trueActive2021-02-22T17:47:10.2651646Z2021-02-22T17:47:10.4214378Z2021-02-22T17:47:10.267ZPT2MfalseP10675199DT2H48M5.477539Sfalsetrue010trueActive2021-03-01T23:39:39.8127639Z2021-03-01T23:39:40.125283Z2021-03-01T23:39:39.813Z00000P10675199DT2H48M5.477539SAvailable headers: content-type: - application/atom+xml;type=entry;charset=utf-8 date: - - Mon, 22 Feb 2021 17:47:09 GMT + - Mon, 01 Mar 2021 23:39:39 GMT etag: - - '637496128297330000' + - '637502387792800000' server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -218,18 +218,18 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjruid/subscriptions/eqkovcd?api-version=2017-04 response: body: - string: https://servicebustestci5epio27o.servicebus.windows.net/fjruid/subscriptions/eqkovcd?api-version=2017-04eqkovcd2021-02-22T17:47:10Z2021-02-22T17:47:10Zhttps://servicebustesticxh3n4n33.servicebus.windows.net/fjruid/subscriptions/eqkovcd?api-version=2017-04eqkovcd2021-03-01T23:39:40Z2021-03-01T23:39:40ZPT12SfalsePT11Mtruetrue014trueActive2021-02-22T17:47:10.6341272Z2021-02-22T17:47:10.6341272Z0001-01-01T00:00:00PT10MAvailable + xmlns:i="http://www.w3.org/2001/XMLSchema-instance">PT12SfalsePT11Mtruetrue014trueActive2021-03-01T23:39:40.3838181Z2021-03-01T23:39:40.3838181Z0001-01-01T00:00:00PT10MAvailable headers: content-type: - application/atom+xml;type=entry;charset=utf-8 date: - - Mon, 22 Feb 2021 17:47:09 GMT + - Mon, 01 Mar 2021 23:39:39 GMT etag: - - '637496128297330000' + - '637502387792800000' server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -254,19 +254,19 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjruid/subscriptions/eqkovcd?enrich=false&api-version=2017-04 response: body: - string: sb://servicebustestci5epio27o.servicebus.windows.net/fjruid/subscriptions/eqkovcd?enrich=false&api-version=2017-04eqkovcd2021-02-22T17:47:10Z2021-02-22T17:47:10Zsb://servicebustesticxh3n4n33.servicebus.windows.net/fjruid/subscriptions/eqkovcd?enrich=false&api-version=2017-04eqkovcd2021-03-01T23:39:39Z2021-03-01T23:39:40ZPT12SfalsePT11Mtruetrue014trueActive2021-02-22T17:47:10.2651646Z2021-02-22T17:47:10.6401689Z2021-02-22T17:47:10.267ZPT12SfalsePT11Mtruetrue014trueActive2021-03-01T23:39:39.8127639Z2021-03-01T23:39:40.3909199Z2021-03-01T23:39:39.813Z00000PT10MAvailable headers: content-type: - application/atom+xml;type=entry;charset=utf-8 date: - - Mon, 22 Feb 2021 17:47:09 GMT + - Mon, 01 Mar 2021 23:39:39 GMT etag: - - '637496128297330000' + - '637502387792800000' server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -280,7 +280,7 @@ interactions: body: ' PT12SfalsePT11Mtruetrue14trueActivesb://servicebustestci5epio27o.servicebus.windows.net/fjruidsb://servicebustestci5epio27o.servicebus.windows.net/fjruidPT10MAvailable' + type="application/xml">PT12SfalsePT11Mtruetrue14trueActivesb://servicebustesticxh3n4n33.servicebus.windows.net/fjruidsb://servicebustesticxh3n4n33.servicebus.windows.net/fjruidPT10MAvailable' headers: Accept: - application/xml @@ -295,27 +295,27 @@ interactions: If-Match: - '*' ServiceBusDlqSupplementaryAuthorization: - - SharedAccessSignature sr=sb%3A%2F%2Fservicebustestci5epio27o.servicebus.windows.net%2Ffjruid&sig=H1jGymue5GPijGgOOypcIhfveZDgQDb5QN1KIBFKbJw%3d&se=1614019630&skn=RootManageSharedAccessKey + - SharedAccessSignature sr=sb%3A%2F%2Fservicebustesticxh3n4n33.servicebus.windows.net%2Ffjruid&sig=9806uStzYqwH1DlXVsJBHqHXuX1j1xOP%2bapIyqV2p3k%3d&se=1614645579&skn=RootManageSharedAccessKey ServiceBusSupplementaryAuthorization: - - SharedAccessSignature sr=sb%3A%2F%2Fservicebustestci5epio27o.servicebus.windows.net%2Ffjruid&sig=H1jGymue5GPijGgOOypcIhfveZDgQDb5QN1KIBFKbJw%3d&se=1614019630&skn=RootManageSharedAccessKey + - SharedAccessSignature sr=sb%3A%2F%2Fservicebustesticxh3n4n33.servicebus.windows.net%2Ffjruid&sig=9806uStzYqwH1DlXVsJBHqHXuX1j1xOP%2bapIyqV2p3k%3d&se=1614645579&skn=RootManageSharedAccessKey User-Agent: - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.0 (Windows-10-10.0.19041-SP0) method: PUT uri: https://servicebustestsbname.servicebus.windows.net/fjruid/subscriptions/eqkovcd?api-version=2017-04 response: body: - string: https://servicebustestci5epio27o.servicebus.windows.net/fjruid/subscriptions/eqkovcd?api-version=2017-04eqkovcd2021-02-22T17:47:10Z2021-02-22T17:47:10Zhttps://servicebustesticxh3n4n33.servicebus.windows.net/fjruid/subscriptions/eqkovcd?api-version=2017-04eqkovcd2021-03-01T23:39:40Z2021-03-01T23:39:40ZPT12SfalsePT11Mtruetrue014trueActivesb://servicebustestci5epio27o.servicebus.windows.net/fjruid2021-02-22T17:47:10.8528694Z2021-02-22T17:47:10.8528694Z0001-01-01T00:00:00sb://servicebustestci5epio27o.servicebus.windows.net/fjruidP10675199DT2H48M5.4775807SAvailable + xmlns:i="http://www.w3.org/2001/XMLSchema-instance">PT12SfalsePT11Mtruetrue014trueActivesb://servicebustesticxh3n4n33.servicebus.windows.net/fjruid2021-03-01T23:39:40.6025959Z2021-03-01T23:39:40.6025959Z0001-01-01T00:00:00sb://servicebustesticxh3n4n33.servicebus.windows.net/fjruidP10675199DT2H48M5.4775807SAvailable headers: content-type: - application/atom+xml;type=entry;charset=utf-8 date: - - Mon, 22 Feb 2021 17:47:09 GMT + - Mon, 01 Mar 2021 23:39:40 GMT etag: - - '637496128297330000' + - '637502387792800000' server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -340,19 +340,19 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjruid/subscriptions/eqkovcd?enrich=false&api-version=2017-04 response: body: - string: sb://servicebustestci5epio27o.servicebus.windows.net/fjruid/subscriptions/eqkovcd?enrich=false&api-version=2017-04eqkovcd2021-02-22T17:47:10Z2021-02-22T17:47:10Zsb://servicebustesticxh3n4n33.servicebus.windows.net/fjruid/subscriptions/eqkovcd?enrich=false&api-version=2017-04eqkovcd2021-03-01T23:39:39Z2021-03-01T23:39:40ZPT12SfalsePT11Mtruetrue014trueActivesb://servicebustestci5epio27o.servicebus.windows.net/fjruid2021-02-22T17:47:10.2651646Z2021-02-22T17:47:10.8589176Z2021-02-22T17:47:10.267Z00000sb://servicebustestci5epio27o.servicebus.windows.net/fjruidP10675199DT2H48M5.4775807SAvailable + xmlns:i="http://www.w3.org/2001/XMLSchema-instance">PT12SfalsePT11Mtruetrue014trueActivesb://servicebustesticxh3n4n33.servicebus.windows.net/fjruid2021-03-01T23:39:39.8127639Z2021-03-01T23:39:40.6257992Z2021-03-01T23:39:39.813Z00000sb://servicebustesticxh3n4n33.servicebus.windows.net/fjruidP10675199DT2H48M5.4775807SAvailable headers: content-type: - application/atom+xml;type=entry;charset=utf-8 date: - - Mon, 22 Feb 2021 17:47:10 GMT + - Mon, 01 Mar 2021 23:39:40 GMT etag: - - '637496128297330000' + - '637502387792800000' server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -384,9 +384,9 @@ interactions: content-length: - '0' date: - - Mon, 22 Feb 2021 17:47:10 GMT + - Mon, 01 Mar 2021 23:39:40 GMT etag: - - '637496128297330000' + - '637502387792800000' server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -416,9 +416,9 @@ interactions: content-length: - '0' date: - - Mon, 22 Feb 2021 17:47:10 GMT + - Mon, 01 Mar 2021 23:39:40 GMT etag: - - '637496128297330000' + - '637502387792800000' server: - Microsoft-HTTPAPI/2.0 strict-transport-security: diff --git a/sdk/servicebus/azure-servicebus/tests/mgmt_tests/recordings/test_mgmt_topics.test_mgmt_topic_update_dict_error.yaml b/sdk/servicebus/azure-servicebus/tests/mgmt_tests/recordings/test_mgmt_topics.test_mgmt_topic_update_dict_error.yaml index b5b4ffd8f906..10170e61dc96 100644 --- a/sdk/servicebus/azure-servicebus/tests/mgmt_tests/recordings/test_mgmt_topics.test_mgmt_topic_update_dict_error.yaml +++ b/sdk/servicebus/azure-servicebus/tests/mgmt_tests/recordings/test_mgmt_topics.test_mgmt_topic_update_dict_error.yaml @@ -14,13 +14,13 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-04 response: body: - string: Topicshttps://servicebustestoqlgcsma7x.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-042021-02-22T17:50:13Z + string: Topicshttps://servicebustest2vi3w33e5c.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-042021-03-01T23:40:06Z headers: content-type: - application/atom+xml;type=feed;charset=utf-8 date: - - Mon, 22 Feb 2021 17:50:12 GMT + - Mon, 01 Mar 2021 23:40:06 GMT server: - Microsoft-HTTPAPI/2.0 transfer-encoding: @@ -50,16 +50,16 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/dfjdfj?api-version=2017-04 response: body: - string: https://servicebustestoqlgcsma7x.servicebus.windows.net/dfjdfj?api-version=2017-04dfjdfj2021-02-22T17:50:14Z2021-02-22T17:50:14Zservicebustestoqlgcsma7xhttps://servicebustest2vi3w33e5c.servicebus.windows.net/dfjdfj?api-version=2017-04dfjdfj2021-03-01T23:40:06Z2021-03-01T23:40:06Zservicebustest2vi3w33e5cP10675199DT2H48M5.4775807S1024falsePT10Mtrue0falsefalseActive2021-02-22T17:50:14.26Z2021-02-22T17:50:14.367ZtrueP10675199DT2H48M5.4775807SfalseAvailablefalsefalse + xmlns:i="http://www.w3.org/2001/XMLSchema-instance">P10675199DT2H48M5.4775807S1024falsePT10Mtrue0falsefalseActive2021-03-01T23:40:06.943Z2021-03-01T23:40:06.98ZtrueP10675199DT2H48M5.4775807SfalseAvailablefalsefalse headers: content-type: - application/atom+xml;type=entry;charset=utf-8 date: - - Mon, 22 Feb 2021 17:50:13 GMT + - Mon, 01 Mar 2021 23:40:07 GMT server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -91,9 +91,9 @@ interactions: content-length: - '0' date: - - Mon, 22 Feb 2021 17:50:14 GMT + - Mon, 01 Mar 2021 23:40:07 GMT etag: - - '637496130143670000' + - '637502388069800000' server: - Microsoft-HTTPAPI/2.0 strict-transport-security: diff --git a/sdk/servicebus/azure-servicebus/tests/mgmt_tests/recordings/test_mgmt_topics.test_mgmt_topic_update_dict_success.yaml b/sdk/servicebus/azure-servicebus/tests/mgmt_tests/recordings/test_mgmt_topics.test_mgmt_topic_update_dict_success.yaml index 3e410fc3029d..cab69d73633f 100644 --- a/sdk/servicebus/azure-servicebus/tests/mgmt_tests/recordings/test_mgmt_topics.test_mgmt_topic_update_dict_success.yaml +++ b/sdk/servicebus/azure-servicebus/tests/mgmt_tests/recordings/test_mgmt_topics.test_mgmt_topic_update_dict_success.yaml @@ -14,13 +14,13 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-04 response: body: - string: Topicshttps://servicebustestoqlgcsma7x.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-042021-02-22T17:50:16Z + string: Topicshttps://servicebustest2vi3w33e5c.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-042021-03-01T23:40:08Z headers: content-type: - application/atom+xml;type=feed;charset=utf-8 date: - - Mon, 22 Feb 2021 17:50:15 GMT + - Mon, 01 Mar 2021 23:40:08 GMT server: - Microsoft-HTTPAPI/2.0 transfer-encoding: @@ -50,16 +50,16 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjruid?api-version=2017-04 response: body: - string: https://servicebustestoqlgcsma7x.servicebus.windows.net/fjruid?api-version=2017-04fjruid2021-02-22T17:50:16Z2021-02-22T17:50:16Zservicebustestoqlgcsma7xhttps://servicebustest2vi3w33e5c.servicebus.windows.net/fjruid?api-version=2017-04fjruid2021-03-01T23:40:09Z2021-03-01T23:40:09Zservicebustest2vi3w33e5cP10675199DT2H48M5.4775807S1024falsePT10Mtrue0falsefalseActive2021-02-22T17:50:16.64Z2021-02-22T17:50:16.667ZtrueP10675199DT2H48M5.4775807SfalseAvailablefalsefalse + xmlns:i="http://www.w3.org/2001/XMLSchema-instance">P10675199DT2H48M5.4775807S1024falsePT10Mtrue0falsefalseActive2021-03-01T23:40:09.29Z2021-03-01T23:40:09.347ZtrueP10675199DT2H48M5.4775807SfalseAvailablefalsefalse headers: content-type: - application/atom+xml;type=entry;charset=utf-8 date: - - Mon, 22 Feb 2021 17:50:16 GMT + - Mon, 01 Mar 2021 23:40:09 GMT server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -94,18 +94,18 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjruid?api-version=2017-04 response: body: - string: https://servicebustestoqlgcsma7x.servicebus.windows.net/fjruid?api-version=2017-04fjruid2021-02-22T17:50:17Zservicebustestoqlgcsma7xhttps://servicebustest2vi3w33e5c.servicebus.windows.net/fjruid?api-version=2017-04fjruid2021-03-01T23:40:09Zservicebustest2vi3w33e5cPT2M1024falsePT10Mtrue0ActivetrueP10675199DT2H48M5.477539SfalseAvailablefalse headers: content-type: - application/atom+xml;type=entry;charset=utf-8 date: - - Mon, 22 Feb 2021 17:50:16 GMT + - Mon, 01 Mar 2021 23:40:09 GMT etag: - - '637496130166670000' + - '637502388093470000' server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -130,19 +130,19 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjruid?enrich=false&api-version=2017-04 response: body: - string: https://servicebustestoqlgcsma7x.servicebus.windows.net/fjruid?enrich=false&api-version=2017-04fjruid2021-02-22T17:50:16Z2021-02-22T17:50:17Zservicebustestoqlgcsma7xhttps://servicebustest2vi3w33e5c.servicebus.windows.net/fjruid?enrich=false&api-version=2017-04fjruid2021-03-01T23:40:09Z2021-03-01T23:40:09Zservicebustest2vi3w33e5cPT2M1024falsePT10Mtrue0falsefalseActive2021-02-22T17:50:16.64Z2021-02-22T17:50:17.203Z0001-01-01T00:00:00ZtruePT2M1024falsePT10Mtrue0falsefalseActive2021-03-01T23:40:09.29Z2021-03-01T23:40:09.86Z0001-01-01T00:00:00Ztrue000000P10675199DT2H48M5.477539SfalseAvailablefalsefalse headers: content-type: - application/atom+xml;type=entry;charset=utf-8 date: - - Mon, 22 Feb 2021 17:50:16 GMT + - Mon, 01 Mar 2021 23:40:09 GMT etag: - - '637496130172030000' + - '637502388098600000' server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -177,18 +177,18 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjruid?api-version=2017-04 response: body: - string: https://servicebustestoqlgcsma7x.servicebus.windows.net/fjruid?api-version=2017-04fjruid2021-02-22T17:50:17Zservicebustestoqlgcsma7xhttps://servicebustest2vi3w33e5c.servicebus.windows.net/fjruid?api-version=2017-04fjruid2021-03-01T23:40:10Zservicebustest2vi3w33e5cPT11M3072falsePT12Mtrue0ActivetruePT10MfalseAvailabletrue headers: content-type: - application/atom+xml;type=entry;charset=utf-8 date: - - Mon, 22 Feb 2021 17:50:16 GMT + - Mon, 01 Mar 2021 23:40:09 GMT etag: - - '637496130172030000' + - '637502388098600000' server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -213,19 +213,19 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjruid?enrich=false&api-version=2017-04 response: body: - string: https://servicebustestoqlgcsma7x.servicebus.windows.net/fjruid?enrich=false&api-version=2017-04fjruid2021-02-22T17:50:16Z2021-02-22T17:50:17Zservicebustestoqlgcsma7xhttps://servicebustest2vi3w33e5c.servicebus.windows.net/fjruid?enrich=false&api-version=2017-04fjruid2021-03-01T23:40:09Z2021-03-01T23:40:10Zservicebustest2vi3w33e5cPT11M3072falsePT12Mtrue0falsefalseActive2021-02-22T17:50:16.64Z2021-02-22T17:50:17.437Z0001-01-01T00:00:00ZtruePT11M3072falsePT12Mtrue0falsefalseActive2021-03-01T23:40:09.29Z2021-03-01T23:40:10.113Z0001-01-01T00:00:00Ztrue000000PT10MfalseAvailablefalsetrue headers: content-type: - application/atom+xml;type=entry;charset=utf-8 date: - - Mon, 22 Feb 2021 17:50:16 GMT + - Mon, 01 Mar 2021 23:40:09 GMT etag: - - '637496130174370000' + - '637502388101130000' server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -257,9 +257,9 @@ interactions: content-length: - '0' date: - - Mon, 22 Feb 2021 17:50:17 GMT + - Mon, 01 Mar 2021 23:40:10 GMT etag: - - '637496130174370000' + - '637502388101130000' server: - Microsoft-HTTPAPI/2.0 strict-transport-security: diff --git a/sdk/servicebus/azure-servicebus/tests/test_queues.py b/sdk/servicebus/azure-servicebus/tests/test_queues.py index 3fefe3c5f3ec..820a63de50ba 100644 --- a/sdk/servicebus/azure-servicebus/tests/test_queues.py +++ b/sdk/servicebus/azure-servicebus/tests/test_queues.py @@ -2326,5 +2326,4 @@ def test_queue_send_dict_messages_scheduled_error_badly_formatted_dicts(self, se with pytest.raises(TypeError): sender.schedule_messages(message_dict, scheduled_enqueue_time) with pytest.raises(TypeError): - sender.schedule_messages(list_message_dicts, scheduled_enqueue_time) - \ No newline at end of file + sender.schedule_messages(list_message_dicts, scheduled_enqueue_time) \ No newline at end of file From 5e61e235f3a08c00fb2e9a3364e4ced655048c0e Mon Sep 17 00:00:00 2001 From: Swathi Pillalamarri Date: Mon, 1 Mar 2021 18:57:57 -0500 Subject: [PATCH 25/30] updated _from_list to check for Mapping, not dict --- .../azure-servicebus/azure/servicebus/_common/message.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sdk/servicebus/azure-servicebus/azure/servicebus/_common/message.py b/sdk/servicebus/azure-servicebus/azure/servicebus/_common/message.py index a9de43b03a26..bc705178e667 100644 --- a/sdk/servicebus/azure-servicebus/azure/servicebus/_common/message.py +++ b/sdk/servicebus/azure-servicebus/azure/servicebus/_common/message.py @@ -9,7 +9,7 @@ import uuid import logging import copy -from typing import Optional, List, Union, Iterable, TYPE_CHECKING, Any +from typing import Optional, Mapping, List, Union, Iterable, TYPE_CHECKING, Any import six @@ -538,7 +538,7 @@ def __len__(self): def _from_list(self, messages, parent_span=None): # type: (Iterable[ServiceBusMessage], AbstractSpan) -> None for each in messages: - if not isinstance(each, (ServiceBusMessage, dict)): + if not isinstance(each, (ServiceBusMessage, Mapping)): raise TypeError( "Only ServiceBusMessage or an iterable object containing ServiceBusMessage " "objects are accepted. Received instead: {}".format( From a23aecdf4b43fc6ccae323d6b28380c9043ab272 Mon Sep 17 00:00:00 2001 From: Swathi Pillalamarri Date: Mon, 1 Mar 2021 19:22:40 -0500 Subject: [PATCH 26/30] update changelog --- sdk/servicebus/azure-servicebus/CHANGELOG.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/sdk/servicebus/azure-servicebus/CHANGELOG.md b/sdk/servicebus/azure-servicebus/CHANGELOG.md index e85ed6c56cd8..c14745a9701f 100644 --- a/sdk/servicebus/azure-servicebus/CHANGELOG.md +++ b/sdk/servicebus/azure-servicebus/CHANGELOG.md @@ -2,6 +2,12 @@ ## 7.0.2 (Unreleased) +**New Features** + +* Updated the following so that they accept lists and single instances of dict representations for corresponding strongly-typed object arguments: + - `update_queue`, `update_topic`, `update_subscription`, and `update_rule` on `ServiceBusAdministrationClient` accept dict representations of `QueueProperties`, `TopicProperties`, `SubscriptionProperties`, and `RuleProperties`, respectively. + - `send_messages` and `schedule_messages` on both sync and async versions of `ServiceBusSender` accept a list of or single instance of dict representations of `ServiceBusMessage`. + - `add_message` on `ServiceBusMessageBatch` now accepts a dict representation of `ServiceBusMessage`. ## 7.0.1 (2021-01-12) From ee6788891f91123b5072b81ce846e7c5df3f8d26 Mon Sep 17 00:00:00 2001 From: Swathi Pillalamarri Date: Tue, 2 Mar 2021 15:04:42 -0500 Subject: [PATCH 27/30] change Mapping back to dict check --- sdk/servicebus/azure-servicebus/CHANGELOG.md | 2 + .../azure/servicebus/_common/message.py | 4 +- .../azure/servicebus/_common/utils.py | 4 +- .../azure/servicebus/management/_utils.py | 2 +- ...st_mgmt_queue_async_update_dict_error.yaml | 26 ++-- ..._mgmt_queue_async_update_dict_success.yaml | 88 +++++------ ...est_mgmt_rule_async_update_dict_error.yaml | 66 ++++----- ...t_mgmt_rule_async_update_dict_success.yaml | 110 +++++++------- ..._subscription_async_update_dict_error.yaml | 46 +++--- ...ubscription_async_update_dict_success.yaml | 138 +++++++++--------- ...st_mgmt_topic_async_update_dict_error.yaml | 26 ++-- ..._mgmt_topic_async_update_dict_success.yaml | 78 +++++----- ...ues.test_mgmt_queue_update_dict_error.yaml | 20 +-- ...s.test_mgmt_queue_update_dict_success.yaml | 74 +++++----- ...ules.test_mgmt_rule_update_dict_error.yaml | 52 +++---- ...es.test_mgmt_rule_update_dict_success.yaml | 90 ++++++------ ...t_mgmt_subscription_update_dict_error.yaml | 36 ++--- ...mgmt_subscription_update_dict_success.yaml | 116 +++++++-------- ...ics.test_mgmt_topic_update_dict_error.yaml | 20 +-- ...s.test_mgmt_topic_update_dict_success.yaml | 64 ++++---- 20 files changed, 532 insertions(+), 530 deletions(-) diff --git a/sdk/servicebus/azure-servicebus/CHANGELOG.md b/sdk/servicebus/azure-servicebus/CHANGELOG.md index 57cd88ed58fe..972f5c3f344c 100644 --- a/sdk/servicebus/azure-servicebus/CHANGELOG.md +++ b/sdk/servicebus/azure-servicebus/CHANGELOG.md @@ -8,6 +8,8 @@ - `update_queue`, `update_topic`, `update_subscription`, and `update_rule` on `ServiceBusAdministrationClient` accept dict representations of `QueueProperties`, `TopicProperties`, `SubscriptionProperties`, and `RuleProperties`, respectively. - `send_messages` and `schedule_messages` on both sync and async versions of `ServiceBusSender` accept a list of or single instance of dict representations of `ServiceBusMessage`. - `add_message` on `ServiceBusMessageBatch` now accepts a dict representation of `ServiceBusMessage`. + - Note: This is ongoing work and is the first step in supporting the above as respresentation of type `typing.Mapping`. + - Note: Thanks to bradleydamato for their large contribution to this. **BugFixes** diff --git a/sdk/servicebus/azure-servicebus/azure/servicebus/_common/message.py b/sdk/servicebus/azure-servicebus/azure/servicebus/_common/message.py index bc705178e667..a9de43b03a26 100644 --- a/sdk/servicebus/azure-servicebus/azure/servicebus/_common/message.py +++ b/sdk/servicebus/azure-servicebus/azure/servicebus/_common/message.py @@ -9,7 +9,7 @@ import uuid import logging import copy -from typing import Optional, Mapping, List, Union, Iterable, TYPE_CHECKING, Any +from typing import Optional, List, Union, Iterable, TYPE_CHECKING, Any import six @@ -538,7 +538,7 @@ def __len__(self): def _from_list(self, messages, parent_span=None): # type: (Iterable[ServiceBusMessage], AbstractSpan) -> None for each in messages: - if not isinstance(each, (ServiceBusMessage, Mapping)): + if not isinstance(each, (ServiceBusMessage, dict)): raise TypeError( "Only ServiceBusMessage or an iterable object containing ServiceBusMessage " "objects are accepted. Received instead: {}".format( diff --git a/sdk/servicebus/azure-servicebus/azure/servicebus/_common/utils.py b/sdk/servicebus/azure-servicebus/azure/servicebus/_common/utils.py index 723dcca7a9e8..7c895aa43dcb 100644 --- a/sdk/servicebus/azure-servicebus/azure/servicebus/_common/utils.py +++ b/sdk/servicebus/azure-servicebus/azure/servicebus/_common/utils.py @@ -232,9 +232,9 @@ def create_messages_from_dicts_if_needed(messages, message_type): :rtype: DictMessageReturnType """ if isinstance(messages, list): - return [(message_type(**message) if isinstance(message, Mapping) else message) for message in messages] + return [(message_type(**message) if isinstance(message, dict) else message) for message in messages] - return_messages = message_type(**messages) if isinstance(messages, Mapping) else messages + return_messages = message_type(**messages) if isinstance(messages, dict) else messages return return_messages def strip_protocol_from_uri(uri): diff --git a/sdk/servicebus/azure-servicebus/azure/servicebus/management/_utils.py b/sdk/servicebus/azure-servicebus/azure/servicebus/management/_utils.py index a6c5a7c302f8..4d106036104f 100644 --- a/sdk/servicebus/azure-servicebus/azure/servicebus/management/_utils.py +++ b/sdk/servicebus/azure-servicebus/azure/servicebus/management/_utils.py @@ -335,5 +335,5 @@ def create_properties_from_dict_if_needed(properties, sb_resource_type): :param type sb_resource_type: The type of properties object. :rtype: DictPropertiesReturnType """ - return_properties = sb_resource_type(**properties) if isinstance(properties, Mapping) else properties + return_properties = sb_resource_type(**properties) if isinstance(properties, dict) else properties return return_properties diff --git a/sdk/servicebus/azure-servicebus/tests/async_tests/mgmt_tests/recordings/test_mgmt_queues_async.test_mgmt_queue_async_update_dict_error.yaml b/sdk/servicebus/azure-servicebus/tests/async_tests/mgmt_tests/recordings/test_mgmt_queues_async.test_mgmt_queue_async_update_dict_error.yaml index f5ea82041d4e..cee1cc582b3b 100644 --- a/sdk/servicebus/azure-servicebus/tests/async_tests/mgmt_tests/recordings/test_mgmt_queues_async.test_mgmt_queue_async_update_dict_error.yaml +++ b/sdk/servicebus/azure-servicebus/tests/async_tests/mgmt_tests/recordings/test_mgmt_queues_async.test_mgmt_queue_async_update_dict_error.yaml @@ -10,17 +10,17 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/$Resources/queues?$skip=0&$top=100&api-version=2017-04 response: body: - string: Queueshttps://servicebustest2cm3driod2.servicebus.windows.net/$Resources/queues?$skip=0&$top=100&api-version=2017-042021-03-01T23:34:20Z + string: Queueshttps://servicebustestddyod7uodu.servicebus.windows.net/$Resources/queues?$skip=0&$top=100&api-version=2017-042021-03-02T19:55:45Z headers: content-type: application/atom+xml;type=feed;charset=utf-8 - date: Mon, 01 Mar 2021 23:34:20 GMT + date: Tue, 02 Mar 2021 19:55:45 GMT server: Microsoft-HTTPAPI/2.0 transfer-encoding: chunked status: code: 200 message: OK - url: https://servicebustest2cm3driod2.servicebus.windows.net/$Resources/queues?$skip=0&$top=100&api-version=2017-04 + url: https://servicebustestddyod7uodu.servicebus.windows.net/$Resources/queues?$skip=0&$top=100&api-version=2017-04 - request: body: ' @@ -39,21 +39,21 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjruid?api-version=2017-04 response: body: - string: https://servicebustest2cm3driod2.servicebus.windows.net/fjruid?api-version=2017-04fjruid2021-03-01T23:34:21Z2021-03-01T23:34:21Zservicebustest2cm3driod2https://servicebustestddyod7uodu.servicebus.windows.net/fjruid?api-version=2017-04fjruid2021-03-02T19:55:46Z2021-03-02T19:55:46Zservicebustestddyod7uoduPT1M1024falsefalseP10675199DT2H48M5.4775807SfalsePT10M10true00falseActive2021-03-01T23:34:21.343Z2021-03-01T23:34:21.453ZtrueP10675199DT2H48M5.4775807SfalseAvailablefalse + xmlns:i="http://www.w3.org/2001/XMLSchema-instance">PT1M1024falsefalseP10675199DT2H48M5.4775807SfalsePT10M10true00falseActive2021-03-02T19:55:46.453Z2021-03-02T19:55:46.497ZtrueP10675199DT2H48M5.4775807SfalseAvailablefalse headers: content-type: application/atom+xml;type=entry;charset=utf-8 - date: Mon, 01 Mar 2021 23:34:21 GMT + date: Tue, 02 Mar 2021 19:55:46 GMT server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 transfer-encoding: chunked status: code: 201 message: Created - url: https://servicebustest2cm3driod2.servicebus.windows.net/fjruid?api-version=2017-04 + url: https://servicebustestddyod7uodu.servicebus.windows.net/fjruid?api-version=2017-04 - request: body: null headers: @@ -68,12 +68,12 @@ interactions: string: '' headers: content-length: '0' - date: Mon, 01 Mar 2021 23:34:22 GMT - etag: '637502384614530000' + date: Tue, 02 Mar 2021 19:55:47 GMT + etag: '637503117464970000' server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 status: code: 200 message: OK - url: https://servicebustest2cm3driod2.servicebus.windows.net/fjruid?api-version=2017-04 + url: https://servicebustestddyod7uodu.servicebus.windows.net/fjruid?api-version=2017-04 version: 1 diff --git a/sdk/servicebus/azure-servicebus/tests/async_tests/mgmt_tests/recordings/test_mgmt_queues_async.test_mgmt_queue_async_update_dict_success.yaml b/sdk/servicebus/azure-servicebus/tests/async_tests/mgmt_tests/recordings/test_mgmt_queues_async.test_mgmt_queue_async_update_dict_success.yaml index 42abe7e3e8b7..8488d0b4f249 100644 --- a/sdk/servicebus/azure-servicebus/tests/async_tests/mgmt_tests/recordings/test_mgmt_queues_async.test_mgmt_queue_async_update_dict_success.yaml +++ b/sdk/servicebus/azure-servicebus/tests/async_tests/mgmt_tests/recordings/test_mgmt_queues_async.test_mgmt_queue_async_update_dict_success.yaml @@ -10,17 +10,17 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/$Resources/queues?$skip=0&$top=100&api-version=2017-04 response: body: - string: Queueshttps://servicebustest2cm3driod2.servicebus.windows.net/$Resources/queues?$skip=0&$top=100&api-version=2017-042021-03-01T23:34:23Z + string: Queueshttps://servicebustestddyod7uodu.servicebus.windows.net/$Resources/queues?$skip=0&$top=100&api-version=2017-042021-03-02T19:55:48Z headers: content-type: application/atom+xml;type=feed;charset=utf-8 - date: Mon, 01 Mar 2021 23:34:23 GMT + date: Tue, 02 Mar 2021 19:55:48 GMT server: Microsoft-HTTPAPI/2.0 transfer-encoding: chunked status: code: 200 message: OK - url: https://servicebustest2cm3driod2.servicebus.windows.net/$Resources/queues?$skip=0&$top=100&api-version=2017-04 + url: https://servicebustestddyod7uodu.servicebus.windows.net/$Resources/queues?$skip=0&$top=100&api-version=2017-04 - request: body: ' @@ -39,21 +39,21 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjruid?api-version=2017-04 response: body: - string: https://servicebustest2cm3driod2.servicebus.windows.net/fjruid?api-version=2017-04fjruid2021-03-01T23:34:23Z2021-03-01T23:34:23Zservicebustest2cm3driod2https://servicebustestddyod7uodu.servicebus.windows.net/fjruid?api-version=2017-04fjruid2021-03-02T19:55:48Z2021-03-02T19:55:49Zservicebustestddyod7uoduPT1M1024falsefalseP10675199DT2H48M5.4775807SfalsePT10M10true00falseActive2021-03-01T23:34:23.847Z2021-03-01T23:34:23.893ZtrueP10675199DT2H48M5.4775807SfalseAvailablefalse + xmlns:i="http://www.w3.org/2001/XMLSchema-instance">PT1M1024falsefalseP10675199DT2H48M5.4775807SfalsePT10M10true00falseActive2021-03-02T19:55:48.803Z2021-03-02T19:55:49.33ZtrueP10675199DT2H48M5.4775807SfalseAvailablefalse headers: content-type: application/atom+xml;type=entry;charset=utf-8 - date: Mon, 01 Mar 2021 23:34:24 GMT + date: Tue, 02 Mar 2021 19:55:49 GMT server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 transfer-encoding: chunked status: code: 201 message: Created - url: https://servicebustest2cm3driod2.servicebus.windows.net/fjruid?api-version=2017-04 + url: https://servicebustestddyod7uodu.servicebus.windows.net/fjruid?api-version=2017-04 - request: body: ' @@ -75,22 +75,22 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjruid?api-version=2017-04 response: body: - string: https://servicebustest2cm3driod2.servicebus.windows.net/fjruid?api-version=2017-04fjruid2021-03-01T23:34:24Zservicebustest2cm3driod2https://servicebustestddyod7uodu.servicebus.windows.net/fjruid?api-version=2017-04fjruid2021-03-02T19:55:49Zservicebustestddyod7uoduPT2M1024falsefalseP10675199DT2H48M5.477539SfalsePT10M10trueActiveP10675199DT2H48M5.477539SfalseAvailablefalse headers: content-type: application/atom+xml;type=entry;charset=utf-8 - date: Mon, 01 Mar 2021 23:34:24 GMT - etag: '637502384638930000' + date: Tue, 02 Mar 2021 19:55:49 GMT + etag: '637503117493300000' server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 transfer-encoding: chunked status: code: 200 message: OK - url: https://servicebustest2cm3driod2.servicebus.windows.net/fjruid?api-version=2017-04 + url: https://servicebustestddyod7uodu.servicebus.windows.net/fjruid?api-version=2017-04 - request: body: null headers: @@ -102,29 +102,29 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjruid?enrich=false&api-version=2017-04 response: body: - string: https://servicebustest2cm3driod2.servicebus.windows.net/fjruid?enrich=false&api-version=2017-04fjruid2021-03-01T23:34:23Z2021-03-01T23:34:24Zservicebustest2cm3driod2https://servicebustestddyod7uodu.servicebus.windows.net/fjruid?enrich=false&api-version=2017-04fjruid2021-03-02T19:55:48Z2021-03-02T19:55:49Zservicebustestddyod7uoduPT2M1024falsefalseP10675199DT2H48M5.477539SfalsePT10M10true00falseActive2021-03-01T23:34:23.847Z2021-03-01T23:34:24.483Z0001-01-01T00:00:00ZtruePT2M1024falsefalseP10675199DT2H48M5.477539SfalsePT10M10true00falseActive2021-03-02T19:55:48.803Z2021-03-02T19:55:49.843Z0001-01-01T00:00:00Ztrue00000P10675199DT2H48M5.477539SfalseAvailablefalse headers: content-type: application/atom+xml;type=entry;charset=utf-8 - date: Mon, 01 Mar 2021 23:34:24 GMT - etag: '637502384644830000' + date: Tue, 02 Mar 2021 19:55:49 GMT + etag: '637503117498430000' server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 transfer-encoding: chunked status: code: 200 message: OK - url: https://servicebustest2cm3driod2.servicebus.windows.net/fjruid?enrich=false&api-version=2017-04 + url: https://servicebustestddyod7uodu.servicebus.windows.net/fjruid?enrich=false&api-version=2017-04 - request: body: ' PT13S3072falsefalsePT11MtruePT12M14trueActivePT10MfalseAvailabletruesb://servicebustest2cm3driod2.servicebus.windows.net/fjruidsb://servicebustest2cm3driod2.servicebus.windows.net/fjruid' + />ActivePT10MfalseAvailabletruesb://servicebustestddyod7uodu.servicebus.windows.net/fjruidsb://servicebustestddyod7uodu.servicebus.windows.net/fjruid' headers: Accept: - application/xml @@ -135,31 +135,31 @@ interactions: If-Match: - '*' ServiceBusDlqSupplementaryAuthorization: - - SharedAccessSignature sr=sb%3A%2F%2Fservicebustest2cm3driod2.servicebus.windows.net%2Ffjruid&sig=RPJT7YrkK3TN6v5Kfg8TZ9Iol1uZCDZZjMOZP5o%2bIyQ%3d&se=1614645264&skn=RootManageSharedAccessKey + - SharedAccessSignature sr=sb%3A%2F%2Fservicebustestddyod7uodu.servicebus.windows.net%2Ffjruid&sig=VaMpXW3G4F5i%2fJFgNczWAV%2fWF7XLhqCH7H0NDK2F2bQ%3d&se=1614718549&skn=RootManageSharedAccessKey ServiceBusSupplementaryAuthorization: - - SharedAccessSignature sr=sb%3A%2F%2Fservicebustest2cm3driod2.servicebus.windows.net%2Ffjruid&sig=RPJT7YrkK3TN6v5Kfg8TZ9Iol1uZCDZZjMOZP5o%2bIyQ%3d&se=1614645264&skn=RootManageSharedAccessKey + - SharedAccessSignature sr=sb%3A%2F%2Fservicebustestddyod7uodu.servicebus.windows.net%2Ffjruid&sig=VaMpXW3G4F5i%2fJFgNczWAV%2fWF7XLhqCH7H0NDK2F2bQ%3d&se=1614718549&skn=RootManageSharedAccessKey User-Agent: - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.0 (Windows-10-10.0.19041-SP0) method: PUT uri: https://servicebustestsbname.servicebus.windows.net/fjruid?api-version=2017-04 response: body: - string: https://servicebustest2cm3driod2.servicebus.windows.net/fjruid?api-version=2017-04fjruid2021-03-01T23:34:24Zservicebustest2cm3driod2https://servicebustestddyod7uodu.servicebus.windows.net/fjruid?api-version=2017-04fjruid2021-03-02T19:55:50Zservicebustestddyod7uoduPT13S3072falsefalsePT11MtruePT12M14trueActivePT10MfalseAvailabletruesb://servicebustest2cm3driod2.servicebus.windows.net/fjruidsb://servicebustest2cm3driod2.servicebus.windows.net/fjruid + xmlns:i="http://www.w3.org/2001/XMLSchema-instance">PT13S3072falsefalsePT11MtruePT12M14trueActivePT10MfalseAvailabletruesb://servicebustestddyod7uodu.servicebus.windows.net/fjruidsb://servicebustestddyod7uodu.servicebus.windows.net/fjruid headers: content-type: application/atom+xml;type=entry;charset=utf-8 - date: Mon, 01 Mar 2021 23:34:24 GMT - etag: '637502384644830000' + date: Tue, 02 Mar 2021 19:55:50 GMT + etag: '637503117498430000' server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 transfer-encoding: chunked status: code: 200 message: OK - url: https://servicebustest2cm3driod2.servicebus.windows.net/fjruid?api-version=2017-04 + url: https://servicebustestddyod7uodu.servicebus.windows.net/fjruid?api-version=2017-04 - request: body: null headers: @@ -171,23 +171,23 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjruid?enrich=false&api-version=2017-04 response: body: - string: https://servicebustest2cm3driod2.servicebus.windows.net/fjruid?enrich=false&api-version=2017-04fjruid2021-03-01T23:34:23Z2021-03-01T23:34:24Zservicebustest2cm3driod2https://servicebustestddyod7uodu.servicebus.windows.net/fjruid?enrich=false&api-version=2017-04fjruid2021-03-02T19:55:48Z2021-03-02T19:55:50Zservicebustestddyod7uoduPT13S3072falsefalsePT11MtruePT12M14true00falseActive2021-03-01T23:34:23.847Z2021-03-01T23:34:24.85Z0001-01-01T00:00:00Ztrue00000PT10MfalseAvailabletruesb://servicebustest2cm3driod2.servicebus.windows.net/fjruidsb://servicebustest2cm3driod2.servicebus.windows.net/fjruid + xmlns:i="http://www.w3.org/2001/XMLSchema-instance">PT13S3072falsefalsePT11MtruePT12M14true00falseActive2021-03-02T19:55:48.803Z2021-03-02T19:55:50.09Z0001-01-01T00:00:00Ztrue00000PT10MfalseAvailabletruesb://servicebustestddyod7uodu.servicebus.windows.net/fjruidsb://servicebustestddyod7uodu.servicebus.windows.net/fjruid headers: content-type: application/atom+xml;type=entry;charset=utf-8 - date: Mon, 01 Mar 2021 23:34:24 GMT - etag: '637502384648500000' + date: Tue, 02 Mar 2021 19:55:50 GMT + etag: '637503117500900000' server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 transfer-encoding: chunked status: code: 200 message: OK - url: https://servicebustest2cm3driod2.servicebus.windows.net/fjruid?enrich=false&api-version=2017-04 + url: https://servicebustestddyod7uodu.servicebus.windows.net/fjruid?enrich=false&api-version=2017-04 - request: body: null headers: @@ -202,12 +202,12 @@ interactions: string: '' headers: content-length: '0' - date: Mon, 01 Mar 2021 23:34:25 GMT - etag: '637502384648500000' + date: Tue, 02 Mar 2021 19:55:50 GMT + etag: '637503117500900000' server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 status: code: 200 message: OK - url: https://servicebustest2cm3driod2.servicebus.windows.net/fjruid?api-version=2017-04 + url: https://servicebustestddyod7uodu.servicebus.windows.net/fjruid?api-version=2017-04 version: 1 diff --git a/sdk/servicebus/azure-servicebus/tests/async_tests/mgmt_tests/recordings/test_mgmt_rules_async.test_mgmt_rule_async_update_dict_error.yaml b/sdk/servicebus/azure-servicebus/tests/async_tests/mgmt_tests/recordings/test_mgmt_rules_async.test_mgmt_rule_async_update_dict_error.yaml index ef3d583761de..39562de3b06c 100644 --- a/sdk/servicebus/azure-servicebus/tests/async_tests/mgmt_tests/recordings/test_mgmt_rules_async.test_mgmt_rule_async_update_dict_error.yaml +++ b/sdk/servicebus/azure-servicebus/tests/async_tests/mgmt_tests/recordings/test_mgmt_rules_async.test_mgmt_rule_async_update_dict_error.yaml @@ -10,17 +10,17 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-04 response: body: - string: Topicshttps://servicebustestqnbz2agkqx.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-042021-03-01T23:33:52Z + string: Topicshttps://servicebustest7unr4yo2aa.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-042021-03-02T19:55:12Z headers: content-type: application/atom+xml;type=feed;charset=utf-8 - date: Mon, 01 Mar 2021 23:33:52 GMT + date: Tue, 02 Mar 2021 19:55:12 GMT server: Microsoft-HTTPAPI/2.0 transfer-encoding: chunked status: code: 200 message: OK - url: https://servicebustestqnbz2agkqx.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-04 + url: https://servicebustest7unr4yo2aa.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-04 - request: body: ' @@ -39,21 +39,21 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjrui?api-version=2017-04 response: body: - string: https://servicebustestqnbz2agkqx.servicebus.windows.net/fjrui?api-version=2017-04fjrui2021-03-01T23:33:53Z2021-03-01T23:33:53Zservicebustestqnbz2agkqxhttps://servicebustest7unr4yo2aa.servicebus.windows.net/fjrui?api-version=2017-04fjrui2021-03-02T19:55:13Z2021-03-02T19:55:13Zservicebustest7unr4yo2aaP10675199DT2H48M5.4775807S1024falsePT10Mtrue0falsefalseActive2021-03-01T23:33:53.47Z2021-03-01T23:33:53.53ZtrueP10675199DT2H48M5.4775807SfalseAvailablefalsefalse + xmlns:i="http://www.w3.org/2001/XMLSchema-instance">P10675199DT2H48M5.4775807S1024falsePT10Mtrue0falsefalseActive2021-03-02T19:55:13.237Z2021-03-02T19:55:13.32ZtrueP10675199DT2H48M5.4775807SfalseAvailablefalsefalse headers: content-type: application/atom+xml;type=entry;charset=utf-8 - date: Mon, 01 Mar 2021 23:33:53 GMT + date: Tue, 02 Mar 2021 19:55:13 GMT server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 transfer-encoding: chunked status: code: 201 message: Created - url: https://servicebustestqnbz2agkqx.servicebus.windows.net/fjrui?api-version=2017-04 + url: https://servicebustest7unr4yo2aa.servicebus.windows.net/fjrui?api-version=2017-04 - request: body: ' @@ -72,22 +72,22 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04 response: body: - string: https://servicebustestqnbz2agkqx.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04eqkovc2021-03-01T23:33:54Z2021-03-01T23:33:54Zhttps://servicebustest7unr4yo2aa.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04eqkovc2021-03-02T19:55:13Z2021-03-02T19:55:13ZPT1MfalseP10675199DT2H48M5.4775807Sfalsetrue010trueActive2021-03-01T23:33:54.0450204Z2021-03-01T23:33:54.0450204Z0001-01-01T00:00:00P10675199DT2H48M5.4775807SAvailable + xmlns:i="http://www.w3.org/2001/XMLSchema-instance">PT1MfalseP10675199DT2H48M5.4775807Sfalsetrue010trueActive2021-03-02T19:55:13.9089858Z2021-03-02T19:55:13.9089858Z0001-01-01T00:00:00P10675199DT2H48M5.4775807SAvailable headers: content-type: application/atom+xml;type=entry;charset=utf-8 - date: Mon, 01 Mar 2021 23:33:53 GMT - etag: '637502384335300000' + date: Tue, 02 Mar 2021 19:55:13 GMT + etag: '637503117133200000' server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 transfer-encoding: chunked status: code: 201 message: Created - url: https://servicebustestqnbz2agkqx.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04 + url: https://servicebustest7unr4yo2aa.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04 - request: body: ' @@ -108,24 +108,24 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjrui/subscriptions/eqkovc/rules/rule?api-version=2017-04 response: body: - string: https://servicebustestqnbz2agkqx.servicebus.windows.net/fjrui/subscriptions/eqkovc/rules/rule?api-version=2017-04rule2021-03-01T23:33:54Z2021-03-01T23:33:54Zhttps://servicebustest7unr4yo2aa.servicebus.windows.net/fjrui/subscriptions/eqkovc/rules/rule?api-version=2017-04rule2021-03-02T19:55:14Z2021-03-02T19:55:14ZPriority = 'low'20true2021-03-01T23:33:54.2637924Zrule + i:type="EmptyRuleAction"/>2021-03-02T19:55:14.1589554Zrule headers: content-type: application/atom+xml;type=entry;charset=utf-8 - date: Mon, 01 Mar 2021 23:33:53 GMT - etag: '637502384335300000' + date: Tue, 02 Mar 2021 19:55:14 GMT + etag: '637503117133200000' server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 transfer-encoding: chunked status: code: 201 message: Created - url: https://servicebustestqnbz2agkqx.servicebus.windows.net/fjrui/subscriptions/eqkovc/rules/rule?api-version=2017-04 + url: https://servicebustest7unr4yo2aa.servicebus.windows.net/fjrui/subscriptions/eqkovc/rules/rule?api-version=2017-04 - request: body: null headers: @@ -140,14 +140,14 @@ interactions: string: '' headers: content-length: '0' - date: Mon, 01 Mar 2021 23:33:54 GMT - etag: '637502384335300000' + date: Tue, 02 Mar 2021 19:55:14 GMT + etag: '637503117133200000' server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 status: code: 200 message: OK - url: https://servicebustestqnbz2agkqx.servicebus.windows.net/fjrui/subscriptions/eqkovc/rules/rule?api-version=2017-04 + url: https://servicebustest7unr4yo2aa.servicebus.windows.net/fjrui/subscriptions/eqkovc/rules/rule?api-version=2017-04 - request: body: null headers: @@ -162,14 +162,14 @@ interactions: string: '' headers: content-length: '0' - date: Mon, 01 Mar 2021 23:33:54 GMT - etag: '637502384335300000' + date: Tue, 02 Mar 2021 19:55:14 GMT + etag: '637503117133200000' server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 status: code: 200 message: OK - url: https://servicebustestqnbz2agkqx.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04 + url: https://servicebustest7unr4yo2aa.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04 - request: body: null headers: @@ -184,12 +184,12 @@ interactions: string: '' headers: content-length: '0' - date: Mon, 01 Mar 2021 23:33:54 GMT - etag: '637502384335300000' + date: Tue, 02 Mar 2021 19:55:14 GMT + etag: '637503117133200000' server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 status: code: 200 message: OK - url: https://servicebustestqnbz2agkqx.servicebus.windows.net/fjrui?api-version=2017-04 + url: https://servicebustest7unr4yo2aa.servicebus.windows.net/fjrui?api-version=2017-04 version: 1 diff --git a/sdk/servicebus/azure-servicebus/tests/async_tests/mgmt_tests/recordings/test_mgmt_rules_async.test_mgmt_rule_async_update_dict_success.yaml b/sdk/servicebus/azure-servicebus/tests/async_tests/mgmt_tests/recordings/test_mgmt_rules_async.test_mgmt_rule_async_update_dict_success.yaml index 5e15d1eeb4d6..c2f0aa0bcfaf 100644 --- a/sdk/servicebus/azure-servicebus/tests/async_tests/mgmt_tests/recordings/test_mgmt_rules_async.test_mgmt_rule_async_update_dict_success.yaml +++ b/sdk/servicebus/azure-servicebus/tests/async_tests/mgmt_tests/recordings/test_mgmt_rules_async.test_mgmt_rule_async_update_dict_success.yaml @@ -10,17 +10,17 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-04 response: body: - string: Topicshttps://servicebustestqnbz2agkqx.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-042021-03-01T23:33:55Z + string: Topicshttps://servicebustest7unr4yo2aa.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-042021-03-02T19:55:15Z headers: content-type: application/atom+xml;type=feed;charset=utf-8 - date: Mon, 01 Mar 2021 23:33:54 GMT + date: Tue, 02 Mar 2021 19:55:15 GMT server: Microsoft-HTTPAPI/2.0 transfer-encoding: chunked status: code: 200 message: OK - url: https://servicebustestqnbz2agkqx.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-04 + url: https://servicebustest7unr4yo2aa.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-04 - request: body: ' @@ -39,21 +39,21 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjruid?api-version=2017-04 response: body: - string: https://servicebustestqnbz2agkqx.servicebus.windows.net/fjruid?api-version=2017-04fjruid2021-03-01T23:33:56Z2021-03-01T23:33:56Zservicebustestqnbz2agkqxhttps://servicebustest7unr4yo2aa.servicebus.windows.net/fjruid?api-version=2017-04fjruid2021-03-02T19:55:16Z2021-03-02T19:55:16Zservicebustest7unr4yo2aaP10675199DT2H48M5.4775807S1024falsePT10Mtrue0falsefalseActive2021-03-01T23:33:56.197Z2021-03-01T23:33:56.237ZtrueP10675199DT2H48M5.4775807SfalseAvailablefalsefalse + xmlns:i="http://www.w3.org/2001/XMLSchema-instance">P10675199DT2H48M5.4775807S1024falsePT10Mtrue0falsefalseActive2021-03-02T19:55:16.153Z2021-03-02T19:55:16.19ZtrueP10675199DT2H48M5.4775807SfalseAvailablefalsefalse headers: content-type: application/atom+xml;type=entry;charset=utf-8 - date: Mon, 01 Mar 2021 23:33:55 GMT + date: Tue, 02 Mar 2021 19:55:16 GMT server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 transfer-encoding: chunked status: code: 201 message: Created - url: https://servicebustestqnbz2agkqx.servicebus.windows.net/fjruid?api-version=2017-04 + url: https://servicebustest7unr4yo2aa.servicebus.windows.net/fjruid?api-version=2017-04 - request: body: ' @@ -72,22 +72,22 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjruid/subscriptions/eqkovcd?api-version=2017-04 response: body: - string: https://servicebustestqnbz2agkqx.servicebus.windows.net/fjruid/subscriptions/eqkovcd?api-version=2017-04eqkovcd2021-03-01T23:33:56Z2021-03-01T23:33:56Zhttps://servicebustest7unr4yo2aa.servicebus.windows.net/fjruid/subscriptions/eqkovcd?api-version=2017-04eqkovcd2021-03-02T19:55:16Z2021-03-02T19:55:16ZPT1MfalseP10675199DT2H48M5.4775807Sfalsetrue010trueActive2021-03-01T23:33:56.7107461Z2021-03-01T23:33:56.7107461Z0001-01-01T00:00:00P10675199DT2H48M5.4775807SAvailable + xmlns:i="http://www.w3.org/2001/XMLSchema-instance">PT1MfalseP10675199DT2H48M5.4775807Sfalsetrue010trueActive2021-03-02T19:55:16.8002409Z2021-03-02T19:55:16.8002409Z0001-01-01T00:00:00P10675199DT2H48M5.4775807SAvailable headers: content-type: application/atom+xml;type=entry;charset=utf-8 - date: Mon, 01 Mar 2021 23:33:56 GMT - etag: '637502384362370000' + date: Tue, 02 Mar 2021 19:55:16 GMT + etag: '637503117161900000' server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 transfer-encoding: chunked status: code: 201 message: Created - url: https://servicebustestqnbz2agkqx.servicebus.windows.net/fjruid/subscriptions/eqkovcd?api-version=2017-04 + url: https://servicebustest7unr4yo2aa.servicebus.windows.net/fjruid/subscriptions/eqkovcd?api-version=2017-04 - request: body: ' @@ -108,24 +108,24 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjruid/subscriptions/eqkovcd/rules/rule?api-version=2017-04 response: body: - string: https://servicebustestqnbz2agkqx.servicebus.windows.net/fjruid/subscriptions/eqkovcd/rules/rule?api-version=2017-04rule2021-03-01T23:33:57Z2021-03-01T23:33:57Zhttps://servicebustest7unr4yo2aa.servicebus.windows.net/fjruid/subscriptions/eqkovcd/rules/rule?api-version=2017-04rule2021-03-02T19:55:17Z2021-03-02T19:55:17ZPriority = 'low'20true2021-03-01T23:33:57.1482567Zrule + i:type="EmptyRuleAction"/>2021-03-02T19:55:17.0346264Zrule headers: content-type: application/atom+xml;type=entry;charset=utf-8 - date: Mon, 01 Mar 2021 23:33:56 GMT - etag: '637502384362370000' + date: Tue, 02 Mar 2021 19:55:16 GMT + etag: '637503117161900000' server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 transfer-encoding: chunked status: code: 201 message: Created - url: https://servicebustestqnbz2agkqx.servicebus.windows.net/fjruid/subscriptions/eqkovcd/rules/rule?api-version=2017-04 + url: https://servicebustest7unr4yo2aa.servicebus.windows.net/fjruid/subscriptions/eqkovcd/rules/rule?api-version=2017-04 - request: body: null headers: @@ -137,31 +137,31 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjruid/subscriptions/eqkovcd/rules/rule?enrich=false&api-version=2017-04 response: body: - string: sb://servicebustestqnbz2agkqx.servicebus.windows.net/fjruid/subscriptions/eqkovcd/rules/rule?enrich=false&api-version=2017-04rule2021-03-01T23:33:57Z2021-03-01T23:33:57Zsb://servicebustest7unr4yo2aa.servicebus.windows.net/fjruid/subscriptions/eqkovcd/rules/rule?enrich=false&api-version=2017-04rule2021-03-02T19:55:17Z2021-03-02T19:55:17ZPriority = 'low'20true2021-03-01T23:33:57.1485919Zrule + i:type="EmptyRuleAction"/>2021-03-02T19:55:17.0480329Zrule headers: content-type: application/atom+xml;type=entry;charset=utf-8 - date: Mon, 01 Mar 2021 23:33:56 GMT - etag: '637502384362370000' + date: Tue, 02 Mar 2021 19:55:16 GMT + etag: '637503117161900000' server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 transfer-encoding: chunked status: code: 200 message: OK - url: https://servicebustestqnbz2agkqx.servicebus.windows.net/fjruid/subscriptions/eqkovcd/rules/rule?enrich=false&api-version=2017-04 + url: https://servicebustest7unr4yo2aa.servicebus.windows.net/fjruid/subscriptions/eqkovcd/rules/rule?enrich=false&api-version=2017-04 - request: body: ' testcidSET Priority = ''low''20true2021-03-01T23:33:57.148591Zrule' + xsi:type="SqlRuleAction">SET Priority = ''low''20true2021-03-02T19:55:17.048032Zrule' headers: Accept: - application/xml @@ -177,23 +177,23 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjruid/subscriptions/eqkovcd/rules/rule?api-version=2017-04 response: body: - string: https://servicebustestqnbz2agkqx.servicebus.windows.net/fjruid/subscriptions/eqkovcd/rules/rule?api-version=2017-04rule2021-03-01T23:33:57Z2021-03-01T23:33:57Zhttps://servicebustest7unr4yo2aa.servicebus.windows.net/fjruid/subscriptions/eqkovcd/rules/rule?api-version=2017-04rule2021-03-02T19:55:17Z2021-03-02T19:55:17ZtestcidSET Priority = 'low'20true2021-03-01T23:33:57.3669686Zrule + i:type="SqlRuleAction">SET Priority = 'low'20true2021-03-02T19:55:17.3471465Zrule headers: content-type: application/atom+xml;type=entry;charset=utf-8 - date: Mon, 01 Mar 2021 23:33:56 GMT - etag: '637502384362370000' + date: Tue, 02 Mar 2021 19:55:16 GMT + etag: '637503117161900000' server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 transfer-encoding: chunked status: code: 200 message: OK - url: https://servicebustestqnbz2agkqx.servicebus.windows.net/fjruid/subscriptions/eqkovcd/rules/rule?api-version=2017-04 + url: https://servicebustest7unr4yo2aa.servicebus.windows.net/fjruid/subscriptions/eqkovcd/rules/rule?api-version=2017-04 - request: body: null headers: @@ -205,23 +205,23 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjruid/subscriptions/eqkovcd/rules/rule?enrich=false&api-version=2017-04 response: body: - string: sb://servicebustestqnbz2agkqx.servicebus.windows.net/fjruid/subscriptions/eqkovcd/rules/rule?enrich=false&api-version=2017-04rule2021-03-01T23:33:57Z2021-03-01T23:33:57Zsb://servicebustest7unr4yo2aa.servicebus.windows.net/fjruid/subscriptions/eqkovcd/rules/rule?enrich=false&api-version=2017-04rule2021-03-02T19:55:17Z2021-03-02T19:55:17ZtestcidSET Priority = 'low'20true2021-03-01T23:33:57.1485919Zrule + i:type="SqlRuleAction">SET Priority = 'low'20true2021-03-02T19:55:17.0480329Zrule headers: content-type: application/atom+xml;type=entry;charset=utf-8 - date: Mon, 01 Mar 2021 23:33:56 GMT - etag: '637502384362370000' + date: Tue, 02 Mar 2021 19:55:16 GMT + etag: '637503117161900000' server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 transfer-encoding: chunked status: code: 200 message: OK - url: https://servicebustestqnbz2agkqx.servicebus.windows.net/fjruid/subscriptions/eqkovcd/rules/rule?enrich=false&api-version=2017-04 + url: https://servicebustest7unr4yo2aa.servicebus.windows.net/fjruid/subscriptions/eqkovcd/rules/rule?enrich=false&api-version=2017-04 - request: body: null headers: @@ -236,14 +236,14 @@ interactions: string: '' headers: content-length: '0' - date: Mon, 01 Mar 2021 23:33:56 GMT - etag: '637502384362370000' + date: Tue, 02 Mar 2021 19:55:17 GMT + etag: '637503117161900000' server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 status: code: 200 message: OK - url: https://servicebustestqnbz2agkqx.servicebus.windows.net/fjruid/subscriptions/eqkovcd/rules/rule?api-version=2017-04 + url: https://servicebustest7unr4yo2aa.servicebus.windows.net/fjruid/subscriptions/eqkovcd/rules/rule?api-version=2017-04 - request: body: null headers: @@ -258,14 +258,14 @@ interactions: string: '' headers: content-length: '0' - date: Mon, 01 Mar 2021 23:33:57 GMT - etag: '637502384362370000' + date: Tue, 02 Mar 2021 19:55:17 GMT + etag: '637503117161900000' server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 status: code: 200 message: OK - url: https://servicebustestqnbz2agkqx.servicebus.windows.net/fjruid/subscriptions/eqkovcd?api-version=2017-04 + url: https://servicebustest7unr4yo2aa.servicebus.windows.net/fjruid/subscriptions/eqkovcd?api-version=2017-04 - request: body: null headers: @@ -280,12 +280,12 @@ interactions: string: '' headers: content-length: '0' - date: Mon, 01 Mar 2021 23:33:57 GMT - etag: '637502384362370000' + date: Tue, 02 Mar 2021 19:55:17 GMT + etag: '637503117161900000' server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 status: code: 200 message: OK - url: https://servicebustestqnbz2agkqx.servicebus.windows.net/fjruid?api-version=2017-04 + url: https://servicebustest7unr4yo2aa.servicebus.windows.net/fjruid?api-version=2017-04 version: 1 diff --git a/sdk/servicebus/azure-servicebus/tests/async_tests/mgmt_tests/recordings/test_mgmt_subscriptions_async.test_mgmt_subscription_async_update_dict_error.yaml b/sdk/servicebus/azure-servicebus/tests/async_tests/mgmt_tests/recordings/test_mgmt_subscriptions_async.test_mgmt_subscription_async_update_dict_error.yaml index 70db4710b478..b6c32532ecb2 100644 --- a/sdk/servicebus/azure-servicebus/tests/async_tests/mgmt_tests/recordings/test_mgmt_subscriptions_async.test_mgmt_subscription_async_update_dict_error.yaml +++ b/sdk/servicebus/azure-servicebus/tests/async_tests/mgmt_tests/recordings/test_mgmt_subscriptions_async.test_mgmt_subscription_async_update_dict_error.yaml @@ -10,17 +10,17 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-04 response: body: - string: Topicshttps://servicebustestqxxcukby5x.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-042021-03-01T23:35:59Z + string: Topicshttps://servicebustestqwlgxkbg2s.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-042021-03-02T19:55:39Z headers: content-type: application/atom+xml;type=feed;charset=utf-8 - date: Mon, 01 Mar 2021 23:35:59 GMT + date: Tue, 02 Mar 2021 19:55:39 GMT server: Microsoft-HTTPAPI/2.0 transfer-encoding: chunked status: code: 200 message: OK - url: https://servicebustestqxxcukby5x.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-04 + url: https://servicebustestqwlgxkbg2s.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-04 - request: body: ' @@ -39,21 +39,21 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjrui?api-version=2017-04 response: body: - string: https://servicebustestqxxcukby5x.servicebus.windows.net/fjrui?api-version=2017-04fjrui2021-03-01T23:36:00Z2021-03-01T23:36:00Zservicebustestqxxcukby5xhttps://servicebustestqwlgxkbg2s.servicebus.windows.net/fjrui?api-version=2017-04fjrui2021-03-02T19:55:40Z2021-03-02T19:55:40Zservicebustestqwlgxkbg2sP10675199DT2H48M5.4775807S1024falsePT10Mtrue0falsefalseActive2021-03-01T23:36:00.2Z2021-03-01T23:36:00.28ZtrueP10675199DT2H48M5.4775807SfalseAvailablefalsefalse + xmlns:i="http://www.w3.org/2001/XMLSchema-instance">P10675199DT2H48M5.4775807S1024falsePT10Mtrue0falsefalseActive2021-03-02T19:55:40.3Z2021-03-02T19:55:40.337ZtrueP10675199DT2H48M5.4775807SfalseAvailablefalsefalse headers: content-type: application/atom+xml;type=entry;charset=utf-8 - date: Mon, 01 Mar 2021 23:36:00 GMT + date: Tue, 02 Mar 2021 19:55:40 GMT server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 transfer-encoding: chunked status: code: 201 message: Created - url: https://servicebustestqxxcukby5x.servicebus.windows.net/fjrui?api-version=2017-04 + url: https://servicebustestqwlgxkbg2s.servicebus.windows.net/fjrui?api-version=2017-04 - request: body: ' @@ -72,22 +72,22 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04 response: body: - string: https://servicebustestqxxcukby5x.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04eqkovc2021-03-01T23:36:00Z2021-03-01T23:36:00Zhttps://servicebustestqwlgxkbg2s.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04eqkovc2021-03-02T19:55:40Z2021-03-02T19:55:40ZPT1MfalseP10675199DT2H48M5.4775807Sfalsetrue010trueActive2021-03-01T23:36:00.8076431Z2021-03-01T23:36:00.8076431Z0001-01-01T00:00:00P10675199DT2H48M5.4775807SAvailable + xmlns:i="http://www.w3.org/2001/XMLSchema-instance">PT1MfalseP10675199DT2H48M5.4775807Sfalsetrue010trueActive2021-03-02T19:55:40.837581Z2021-03-02T19:55:40.837581Z0001-01-01T00:00:00P10675199DT2H48M5.4775807SAvailable headers: content-type: application/atom+xml;type=entry;charset=utf-8 - date: Mon, 01 Mar 2021 23:36:00 GMT - etag: '637502385602800000' + date: Tue, 02 Mar 2021 19:55:40 GMT + etag: '637503117403370000' server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 transfer-encoding: chunked status: code: 201 message: Created - url: https://servicebustestqxxcukby5x.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04 + url: https://servicebustestqwlgxkbg2s.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04 - request: body: null headers: @@ -102,14 +102,14 @@ interactions: string: '' headers: content-length: '0' - date: Mon, 01 Mar 2021 23:36:00 GMT - etag: '637502385602800000' + date: Tue, 02 Mar 2021 19:55:40 GMT + etag: '637503117403370000' server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 status: code: 200 message: OK - url: https://servicebustestqxxcukby5x.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04 + url: https://servicebustestqwlgxkbg2s.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04 - request: body: null headers: @@ -124,12 +124,12 @@ interactions: string: '' headers: content-length: '0' - date: Mon, 01 Mar 2021 23:36:01 GMT - etag: '637502385602800000' + date: Tue, 02 Mar 2021 19:55:40 GMT + etag: '637503117403370000' server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 status: code: 200 message: OK - url: https://servicebustestqxxcukby5x.servicebus.windows.net/fjrui?api-version=2017-04 + url: https://servicebustestqwlgxkbg2s.servicebus.windows.net/fjrui?api-version=2017-04 version: 1 diff --git a/sdk/servicebus/azure-servicebus/tests/async_tests/mgmt_tests/recordings/test_mgmt_subscriptions_async.test_mgmt_subscription_async_update_dict_success.yaml b/sdk/servicebus/azure-servicebus/tests/async_tests/mgmt_tests/recordings/test_mgmt_subscriptions_async.test_mgmt_subscription_async_update_dict_success.yaml index 160ca21828b9..fef0bdcd822a 100644 --- a/sdk/servicebus/azure-servicebus/tests/async_tests/mgmt_tests/recordings/test_mgmt_subscriptions_async.test_mgmt_subscription_async_update_dict_success.yaml +++ b/sdk/servicebus/azure-servicebus/tests/async_tests/mgmt_tests/recordings/test_mgmt_subscriptions_async.test_mgmt_subscription_async_update_dict_success.yaml @@ -10,17 +10,17 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-04 response: body: - string: Topicshttps://servicebustestqxxcukby5x.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-042021-03-01T23:36:02Z + string: Topicshttps://servicebustestqwlgxkbg2s.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-042021-03-02T19:55:42Z headers: content-type: application/atom+xml;type=feed;charset=utf-8 - date: Mon, 01 Mar 2021 23:36:01 GMT + date: Tue, 02 Mar 2021 19:55:41 GMT server: Microsoft-HTTPAPI/2.0 transfer-encoding: chunked status: code: 200 message: OK - url: https://servicebustestqxxcukby5x.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-04 + url: https://servicebustestqwlgxkbg2s.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-04 - request: body: ' @@ -39,21 +39,21 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjrui?api-version=2017-04 response: body: - string: https://servicebustestqxxcukby5x.servicebus.windows.net/fjrui?api-version=2017-04fjrui2021-03-01T23:36:02Z2021-03-01T23:36:02Zservicebustestqxxcukby5xhttps://servicebustestqwlgxkbg2s.servicebus.windows.net/fjrui?api-version=2017-04fjrui2021-03-02T19:55:42Z2021-03-02T19:55:42Zservicebustestqwlgxkbg2sP10675199DT2H48M5.4775807S1024falsePT10Mtrue0falsefalseActive2021-03-01T23:36:02.85Z2021-03-01T23:36:02.937ZtrueP10675199DT2H48M5.4775807SfalseAvailablefalsefalse + xmlns:i="http://www.w3.org/2001/XMLSchema-instance">P10675199DT2H48M5.4775807S1024falsePT10Mtrue0falsefalseActive2021-03-02T19:55:42.577Z2021-03-02T19:55:42.64ZtrueP10675199DT2H48M5.4775807SfalseAvailablefalsefalse headers: content-type: application/atom+xml;type=entry;charset=utf-8 - date: Mon, 01 Mar 2021 23:36:02 GMT + date: Tue, 02 Mar 2021 19:55:42 GMT server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 transfer-encoding: chunked status: code: 201 message: Created - url: https://servicebustestqxxcukby5x.servicebus.windows.net/fjrui?api-version=2017-04 + url: https://servicebustestqwlgxkbg2s.servicebus.windows.net/fjrui?api-version=2017-04 - request: body: ' @@ -72,22 +72,22 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04 response: body: - string: https://servicebustestqxxcukby5x.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04eqkovc2021-03-01T23:36:03Z2021-03-01T23:36:03Zhttps://servicebustestqwlgxkbg2s.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04eqkovc2021-03-02T19:55:43Z2021-03-02T19:55:43ZPT1MfalseP10675199DT2H48M5.4775807Sfalsetrue010trueActive2021-03-01T23:36:03.4636914Z2021-03-01T23:36:03.4636914Z0001-01-01T00:00:00P10675199DT2H48M5.4775807SAvailable + xmlns:i="http://www.w3.org/2001/XMLSchema-instance">PT1MfalseP10675199DT2H48M5.4775807Sfalsetrue010trueActive2021-03-02T19:55:43.2005268Z2021-03-02T19:55:43.2005268Z0001-01-01T00:00:00P10675199DT2H48M5.4775807SAvailable headers: content-type: application/atom+xml;type=entry;charset=utf-8 - date: Mon, 01 Mar 2021 23:36:02 GMT - etag: '637502385629370000' + date: Tue, 02 Mar 2021 19:55:43 GMT + etag: '637503117426400000' server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 transfer-encoding: chunked status: code: 201 message: Created - url: https://servicebustestqxxcukby5x.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04 + url: https://servicebustestqwlgxkbg2s.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04 - request: body: ' @@ -108,22 +108,22 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04 response: body: - string: https://servicebustestqxxcukby5x.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04eqkovc2021-03-01T23:36:03Z2021-03-01T23:36:03Zhttps://servicebustestqwlgxkbg2s.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04eqkovc2021-03-02T19:55:43Z2021-03-02T19:55:43ZPT2MfalseP10675199DT2H48M5.477539Sfalsetrue010trueActive2021-03-01T23:36:03.6199413Z2021-03-01T23:36:03.6199413Z0001-01-01T00:00:00P10675199DT2H48M5.477539SAvailable + xmlns:i="http://www.w3.org/2001/XMLSchema-instance">PT2MfalseP10675199DT2H48M5.477539Sfalsetrue010trueActive2021-03-02T19:55:43.4974034Z2021-03-02T19:55:43.4974034Z0001-01-01T00:00:00P10675199DT2H48M5.477539SAvailable headers: content-type: application/atom+xml;type=entry;charset=utf-8 - date: Mon, 01 Mar 2021 23:36:02 GMT - etag: '637502385629370000' + date: Tue, 02 Mar 2021 19:55:43 GMT + etag: '637503117426400000' server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 transfer-encoding: chunked status: code: 200 message: OK - url: https://servicebustestqxxcukby5x.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04 + url: https://servicebustestqwlgxkbg2s.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04 - request: body: null headers: @@ -135,23 +135,23 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjrui/subscriptions/eqkovc?enrich=false&api-version=2017-04 response: body: - string: sb://servicebustestqxxcukby5x.servicebus.windows.net/fjrui/subscriptions/eqkovc?enrich=false&api-version=2017-04eqkovc2021-03-01T23:36:03Z2021-03-01T23:36:03Zsb://servicebustestqwlgxkbg2s.servicebus.windows.net/fjrui/subscriptions/eqkovc?enrich=false&api-version=2017-04eqkovc2021-03-02T19:55:43Z2021-03-02T19:55:43ZPT2MfalseP10675199DT2H48M5.477539Sfalsetrue010trueActive2021-03-01T23:36:03.4550678Z2021-03-01T23:36:03.6269438Z2021-03-01T23:36:03.457ZPT2MfalseP10675199DT2H48M5.477539Sfalsetrue010trueActive2021-03-02T19:55:43.2038102Z2021-03-02T19:55:43.5016686Z2021-03-02T19:55:43.2038102Z00000P10675199DT2H48M5.477539SAvailable headers: content-type: application/atom+xml;type=entry;charset=utf-8 - date: Mon, 01 Mar 2021 23:36:03 GMT - etag: '637502385629370000' + date: Tue, 02 Mar 2021 19:55:43 GMT + etag: '637503117426400000' server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 transfer-encoding: chunked status: code: 200 message: OK - url: https://servicebustestqxxcukby5x.servicebus.windows.net/fjrui/subscriptions/eqkovc?enrich=false&api-version=2017-04 + url: https://servicebustestqwlgxkbg2s.servicebus.windows.net/fjrui/subscriptions/eqkovc?enrich=false&api-version=2017-04 - request: body: ' @@ -172,22 +172,22 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04 response: body: - string: https://servicebustestqxxcukby5x.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04eqkovc2021-03-01T23:36:03Z2021-03-01T23:36:03Zhttps://servicebustestqwlgxkbg2s.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04eqkovc2021-03-02T19:55:43Z2021-03-02T19:55:43ZPT12SfalsePT11Mtruetrue014trueActive2021-03-01T23:36:03.8231724Z2021-03-01T23:36:03.8231724Z0001-01-01T00:00:00PT10MAvailable + xmlns:i="http://www.w3.org/2001/XMLSchema-instance">PT12SfalsePT11Mtruetrue014trueActive2021-03-02T19:55:43.7161583Z2021-03-02T19:55:43.7161583Z0001-01-01T00:00:00PT10MAvailable headers: content-type: application/atom+xml;type=entry;charset=utf-8 - date: Mon, 01 Mar 2021 23:36:03 GMT - etag: '637502385629370000' + date: Tue, 02 Mar 2021 19:55:43 GMT + etag: '637503117426400000' server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 transfer-encoding: chunked status: code: 200 message: OK - url: https://servicebustestqxxcukby5x.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04 + url: https://servicebustestqwlgxkbg2s.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04 - request: body: null headers: @@ -199,28 +199,28 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjrui/subscriptions/eqkovc?enrich=false&api-version=2017-04 response: body: - string: sb://servicebustestqxxcukby5x.servicebus.windows.net/fjrui/subscriptions/eqkovc?enrich=false&api-version=2017-04eqkovc2021-03-01T23:36:03Z2021-03-01T23:36:03Zsb://servicebustestqwlgxkbg2s.servicebus.windows.net/fjrui/subscriptions/eqkovc?enrich=false&api-version=2017-04eqkovc2021-03-02T19:55:43Z2021-03-02T19:55:43ZPT12SfalsePT11Mtruetrue014trueActive2021-03-01T23:36:03.4550678Z2021-03-01T23:36:03.8300879Z2021-03-01T23:36:03.457ZPT12SfalsePT11Mtruetrue014trueActive2021-03-02T19:55:43.2038102Z2021-03-02T19:55:43.7204468Z2021-03-02T19:55:43.2038102Z00000PT10MAvailable headers: content-type: application/atom+xml;type=entry;charset=utf-8 - date: Mon, 01 Mar 2021 23:36:03 GMT - etag: '637502385629370000' + date: Tue, 02 Mar 2021 19:55:43 GMT + etag: '637503117426400000' server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 transfer-encoding: chunked status: code: 200 message: OK - url: https://servicebustestqxxcukby5x.servicebus.windows.net/fjrui/subscriptions/eqkovc?enrich=false&api-version=2017-04 + url: https://servicebustestqwlgxkbg2s.servicebus.windows.net/fjrui/subscriptions/eqkovc?enrich=false&api-version=2017-04 - request: body: ' PT12SfalsePT11Mtruetrue14trueActivesb://servicebustestqxxcukby5x.servicebus.windows.net/fjruisb://servicebustestqxxcukby5x.servicebus.windows.net/fjruiPT10MAvailable' + type="application/xml">PT12SfalsePT11Mtruetrue14trueActivesb://servicebustestqwlgxkbg2s.servicebus.windows.net/fjruisb://servicebustestqwlgxkbg2s.servicebus.windows.net/fjruiPT10MAvailable' headers: Accept: - application/xml @@ -231,31 +231,31 @@ interactions: If-Match: - '*' ServiceBusDlqSupplementaryAuthorization: - - SharedAccessSignature sr=sb%3A%2F%2Fservicebustestqxxcukby5x.servicebus.windows.net%2Ffjrui&sig=VDeubeT8PsQwkaHEQTvJR78WHY9bw%2fGVxJgy1vUEKx4%3d&se=1614645363&skn=RootManageSharedAccessKey + - SharedAccessSignature sr=sb%3A%2F%2Fservicebustestqwlgxkbg2s.servicebus.windows.net%2Ffjrui&sig=9nOV37RbMacHrTSvL7wv6qLImc0w0M83TT0Efgv8XMQ%3d&se=1614718543&skn=RootManageSharedAccessKey ServiceBusSupplementaryAuthorization: - - SharedAccessSignature sr=sb%3A%2F%2Fservicebustestqxxcukby5x.servicebus.windows.net%2Ffjrui&sig=VDeubeT8PsQwkaHEQTvJR78WHY9bw%2fGVxJgy1vUEKx4%3d&se=1614645363&skn=RootManageSharedAccessKey + - SharedAccessSignature sr=sb%3A%2F%2Fservicebustestqwlgxkbg2s.servicebus.windows.net%2Ffjrui&sig=9nOV37RbMacHrTSvL7wv6qLImc0w0M83TT0Efgv8XMQ%3d&se=1614718543&skn=RootManageSharedAccessKey User-Agent: - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.0 (Windows-10-10.0.19041-SP0) method: PUT uri: https://servicebustestsbname.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04 response: body: - string: https://servicebustestqxxcukby5x.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04eqkovc2021-03-01T23:36:04Z2021-03-01T23:36:04Zhttps://servicebustestqwlgxkbg2s.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04eqkovc2021-03-02T19:55:43Z2021-03-02T19:55:43ZPT12SfalsePT11Mtruetrue014trueActivesb://servicebustestqxxcukby5x.servicebus.windows.net/fjrui2021-03-01T23:36:04.041818Z2021-03-01T23:36:04.041818Z0001-01-01T00:00:00sb://servicebustestqxxcukby5x.servicebus.windows.net/fjruiP10675199DT2H48M5.4775807SAvailable + xmlns:i="http://www.w3.org/2001/XMLSchema-instance">PT12SfalsePT11Mtruetrue014trueActivesb://servicebustestqwlgxkbg2s.servicebus.windows.net/fjrui2021-03-02T19:55:43.9661578Z2021-03-02T19:55:43.9661578Z0001-01-01T00:00:00sb://servicebustestqwlgxkbg2s.servicebus.windows.net/fjruiP10675199DT2H48M5.4775807SAvailable headers: content-type: application/atom+xml;type=entry;charset=utf-8 - date: Mon, 01 Mar 2021 23:36:03 GMT - etag: '637502385629370000' + date: Tue, 02 Mar 2021 19:55:43 GMT + etag: '637503117426400000' server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 transfer-encoding: chunked status: code: 200 message: OK - url: https://servicebustestqxxcukby5x.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04 + url: https://servicebustestqwlgxkbg2s.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04 - request: body: null headers: @@ -267,23 +267,23 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjrui/subscriptions/eqkovc?enrich=false&api-version=2017-04 response: body: - string: sb://servicebustestqxxcukby5x.servicebus.windows.net/fjrui/subscriptions/eqkovc?enrich=false&api-version=2017-04eqkovc2021-03-01T23:36:03Z2021-03-01T23:36:04Zsb://servicebustestqwlgxkbg2s.servicebus.windows.net/fjrui/subscriptions/eqkovc?enrich=false&api-version=2017-04eqkovc2021-03-02T19:55:43Z2021-03-02T19:55:43ZPT12SfalsePT11Mtruetrue014trueActivesb://servicebustestqxxcukby5x.servicebus.windows.net/fjrui2021-03-01T23:36:03.4550678Z2021-03-01T23:36:04.0488471Z2021-03-01T23:36:03.457Z00000sb://servicebustestqxxcukby5x.servicebus.windows.net/fjruiP10675199DT2H48M5.4775807SAvailable + xmlns:i="http://www.w3.org/2001/XMLSchema-instance">PT12SfalsePT11Mtruetrue014trueActivesb://servicebustestqwlgxkbg2s.servicebus.windows.net/fjrui2021-03-02T19:55:43.2038102Z2021-03-02T19:55:43.9703879Z2021-03-02T19:55:43.2038102Z00000sb://servicebustestqwlgxkbg2s.servicebus.windows.net/fjruiP10675199DT2H48M5.4775807SAvailable headers: content-type: application/atom+xml;type=entry;charset=utf-8 - date: Mon, 01 Mar 2021 23:36:03 GMT - etag: '637502385629370000' + date: Tue, 02 Mar 2021 19:55:43 GMT + etag: '637503117426400000' server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 transfer-encoding: chunked status: code: 200 message: OK - url: https://servicebustestqxxcukby5x.servicebus.windows.net/fjrui/subscriptions/eqkovc?enrich=false&api-version=2017-04 + url: https://servicebustestqwlgxkbg2s.servicebus.windows.net/fjrui/subscriptions/eqkovc?enrich=false&api-version=2017-04 - request: body: null headers: @@ -298,14 +298,14 @@ interactions: string: '' headers: content-length: '0' - date: Mon, 01 Mar 2021 23:36:03 GMT - etag: '637502385629370000' + date: Tue, 02 Mar 2021 19:55:43 GMT + etag: '637503117426400000' server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 status: code: 200 message: OK - url: https://servicebustestqxxcukby5x.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04 + url: https://servicebustestqwlgxkbg2s.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04 - request: body: null headers: @@ -320,12 +320,12 @@ interactions: string: '' headers: content-length: '0' - date: Mon, 01 Mar 2021 23:36:04 GMT - etag: '637502385629370000' + date: Tue, 02 Mar 2021 19:55:44 GMT + etag: '637503117426400000' server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 status: code: 200 message: OK - url: https://servicebustestqxxcukby5x.servicebus.windows.net/fjrui?api-version=2017-04 + url: https://servicebustestqwlgxkbg2s.servicebus.windows.net/fjrui?api-version=2017-04 version: 1 diff --git a/sdk/servicebus/azure-servicebus/tests/async_tests/mgmt_tests/recordings/test_mgmt_topics_async.test_mgmt_topic_async_update_dict_error.yaml b/sdk/servicebus/azure-servicebus/tests/async_tests/mgmt_tests/recordings/test_mgmt_topics_async.test_mgmt_topic_async_update_dict_error.yaml index 4af5d18185ce..ccf6de93fa0a 100644 --- a/sdk/servicebus/azure-servicebus/tests/async_tests/mgmt_tests/recordings/test_mgmt_topics_async.test_mgmt_topic_async_update_dict_error.yaml +++ b/sdk/servicebus/azure-servicebus/tests/async_tests/mgmt_tests/recordings/test_mgmt_topics_async.test_mgmt_topic_async_update_dict_error.yaml @@ -10,17 +10,17 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-04 response: body: - string: Topicshttps://servicebustestfpkpesppp3.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-042021-03-01T23:36:31Z + string: Topicshttps://servicebustestqmzhmfhh7b.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-042021-03-02T19:57:09Z headers: content-type: application/atom+xml;type=feed;charset=utf-8 - date: Mon, 01 Mar 2021 23:36:30 GMT + date: Tue, 02 Mar 2021 19:57:09 GMT server: Microsoft-HTTPAPI/2.0 transfer-encoding: chunked status: code: 200 message: OK - url: https://servicebustestfpkpesppp3.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-04 + url: https://servicebustestqmzhmfhh7b.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-04 - request: body: ' @@ -39,21 +39,21 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjruid?api-version=2017-04 response: body: - string: https://servicebustestfpkpesppp3.servicebus.windows.net/fjruid?api-version=2017-04fjruid2021-03-01T23:36:31Z2021-03-01T23:36:31Zservicebustestfpkpesppp3https://servicebustestqmzhmfhh7b.servicebus.windows.net/fjruid?api-version=2017-04fjruid2021-03-02T19:57:09Z2021-03-02T19:57:09Zservicebustestqmzhmfhh7bP10675199DT2H48M5.4775807S1024falsePT10Mtrue0falsefalseActive2021-03-01T23:36:31.517Z2021-03-01T23:36:31.55ZtrueP10675199DT2H48M5.4775807SfalseAvailablefalsefalse + xmlns:i="http://www.w3.org/2001/XMLSchema-instance">P10675199DT2H48M5.4775807S1024falsePT10Mtrue0falsefalseActive2021-03-02T19:57:09.773Z2021-03-02T19:57:09.803ZtrueP10675199DT2H48M5.4775807SfalseAvailablefalsefalse headers: content-type: application/atom+xml;type=entry;charset=utf-8 - date: Mon, 01 Mar 2021 23:36:31 GMT + date: Tue, 02 Mar 2021 19:57:10 GMT server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 transfer-encoding: chunked status: code: 201 message: Created - url: https://servicebustestfpkpesppp3.servicebus.windows.net/fjruid?api-version=2017-04 + url: https://servicebustestqmzhmfhh7b.servicebus.windows.net/fjruid?api-version=2017-04 - request: body: null headers: @@ -68,12 +68,12 @@ interactions: string: '' headers: content-length: '0' - date: Mon, 01 Mar 2021 23:36:31 GMT - etag: '637502385915500000' + date: Tue, 02 Mar 2021 19:57:10 GMT + etag: '637503118298030000' server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 status: code: 200 message: OK - url: https://servicebustestfpkpesppp3.servicebus.windows.net/fjruid?api-version=2017-04 + url: https://servicebustestqmzhmfhh7b.servicebus.windows.net/fjruid?api-version=2017-04 version: 1 diff --git a/sdk/servicebus/azure-servicebus/tests/async_tests/mgmt_tests/recordings/test_mgmt_topics_async.test_mgmt_topic_async_update_dict_success.yaml b/sdk/servicebus/azure-servicebus/tests/async_tests/mgmt_tests/recordings/test_mgmt_topics_async.test_mgmt_topic_async_update_dict_success.yaml index e6c0b5ddeba8..5c9576640325 100644 --- a/sdk/servicebus/azure-servicebus/tests/async_tests/mgmt_tests/recordings/test_mgmt_topics_async.test_mgmt_topic_async_update_dict_success.yaml +++ b/sdk/servicebus/azure-servicebus/tests/async_tests/mgmt_tests/recordings/test_mgmt_topics_async.test_mgmt_topic_async_update_dict_success.yaml @@ -10,17 +10,17 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-04 response: body: - string: Topicshttps://servicebustestfpkpesppp3.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-042021-03-01T23:36:33Z + string: Topicshttps://servicebustestqmzhmfhh7b.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-042021-03-02T19:57:11Z headers: content-type: application/atom+xml;type=feed;charset=utf-8 - date: Mon, 01 Mar 2021 23:36:32 GMT + date: Tue, 02 Mar 2021 19:57:11 GMT server: Microsoft-HTTPAPI/2.0 transfer-encoding: chunked status: code: 200 message: OK - url: https://servicebustestfpkpesppp3.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-04 + url: https://servicebustestqmzhmfhh7b.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-04 - request: body: ' @@ -39,21 +39,21 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjruid?api-version=2017-04 response: body: - string: https://servicebustestfpkpesppp3.servicebus.windows.net/fjruid?api-version=2017-04fjruid2021-03-01T23:36:33Z2021-03-01T23:36:33Zservicebustestfpkpesppp3https://servicebustestqmzhmfhh7b.servicebus.windows.net/fjruid?api-version=2017-04fjruid2021-03-02T19:57:12Z2021-03-02T19:57:12Zservicebustestqmzhmfhh7bP10675199DT2H48M5.4775807S1024falsePT10Mtrue0falsefalseActive2021-03-01T23:36:33.833Z2021-03-01T23:36:33.877ZtrueP10675199DT2H48M5.4775807SfalseAvailablefalsefalse + xmlns:i="http://www.w3.org/2001/XMLSchema-instance">P10675199DT2H48M5.4775807S1024falsePT10Mtrue0falsefalseActive2021-03-02T19:57:12.083Z2021-03-02T19:57:12.17ZtrueP10675199DT2H48M5.4775807SfalseAvailablefalsefalse headers: content-type: application/atom+xml;type=entry;charset=utf-8 - date: Mon, 01 Mar 2021 23:36:33 GMT + date: Tue, 02 Mar 2021 19:57:12 GMT server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 transfer-encoding: chunked status: code: 201 message: Created - url: https://servicebustestfpkpesppp3.servicebus.windows.net/fjruid?api-version=2017-04 + url: https://servicebustestqmzhmfhh7b.servicebus.windows.net/fjruid?api-version=2017-04 - request: body: ' @@ -75,22 +75,22 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjruid?api-version=2017-04 response: body: - string: https://servicebustestfpkpesppp3.servicebus.windows.net/fjruid?api-version=2017-04fjruid2021-03-01T23:36:34Zservicebustestfpkpesppp3https://servicebustestqmzhmfhh7b.servicebus.windows.net/fjruid?api-version=2017-04fjruid2021-03-02T19:57:12Zservicebustestqmzhmfhh7bPT2M1024falsePT10Mtrue0ActivetrueP10675199DT2H48M5.477539SfalseAvailablefalse headers: content-type: application/atom+xml;type=entry;charset=utf-8 - date: Mon, 01 Mar 2021 23:36:33 GMT - etag: '637502385938770000' + date: Tue, 02 Mar 2021 19:57:12 GMT + etag: '637503118321700000' server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 transfer-encoding: chunked status: code: 200 message: OK - url: https://servicebustestfpkpesppp3.servicebus.windows.net/fjruid?api-version=2017-04 + url: https://servicebustestqmzhmfhh7b.servicebus.windows.net/fjruid?api-version=2017-04 - request: body: null headers: @@ -102,23 +102,23 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjruid?enrich=false&api-version=2017-04 response: body: - string: https://servicebustestfpkpesppp3.servicebus.windows.net/fjruid?enrich=false&api-version=2017-04fjruid2021-03-01T23:36:33Z2021-03-01T23:36:34Zservicebustestfpkpesppp3https://servicebustestqmzhmfhh7b.servicebus.windows.net/fjruid?enrich=false&api-version=2017-04fjruid2021-03-02T19:57:12Z2021-03-02T19:57:12Zservicebustestqmzhmfhh7bPT2M1024falsePT10Mtrue0falsefalseActive2021-03-01T23:36:33.833Z2021-03-01T23:36:34.397Z0001-01-01T00:00:00ZtruePT2M1024falsePT10Mtrue0falsefalseActive2021-03-02T19:57:12.083Z2021-03-02T19:57:12.777Z0001-01-01T00:00:00Ztrue000000P10675199DT2H48M5.477539SfalseAvailablefalsefalse headers: content-type: application/atom+xml;type=entry;charset=utf-8 - date: Mon, 01 Mar 2021 23:36:33 GMT - etag: '637502385943970000' + date: Tue, 02 Mar 2021 19:57:12 GMT + etag: '637503118327770000' server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 transfer-encoding: chunked status: code: 200 message: OK - url: https://servicebustestfpkpesppp3.servicebus.windows.net/fjruid?enrich=false&api-version=2017-04 + url: https://servicebustestqmzhmfhh7b.servicebus.windows.net/fjruid?enrich=false&api-version=2017-04 - request: body: ' @@ -140,22 +140,22 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjruid?api-version=2017-04 response: body: - string: https://servicebustestfpkpesppp3.servicebus.windows.net/fjruid?api-version=2017-04fjruid2021-03-01T23:36:34Zservicebustestfpkpesppp3https://servicebustestqmzhmfhh7b.servicebus.windows.net/fjruid?api-version=2017-04fjruid2021-03-02T19:57:13Zservicebustestqmzhmfhh7bPT11M3072falsePT12Mtrue0ActivetruePT10MfalseAvailabletrue headers: content-type: application/atom+xml;type=entry;charset=utf-8 - date: Mon, 01 Mar 2021 23:36:34 GMT - etag: '637502385943970000' + date: Tue, 02 Mar 2021 19:57:13 GMT + etag: '637503118327770000' server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 transfer-encoding: chunked status: code: 200 message: OK - url: https://servicebustestfpkpesppp3.servicebus.windows.net/fjruid?api-version=2017-04 + url: https://servicebustestqmzhmfhh7b.servicebus.windows.net/fjruid?api-version=2017-04 - request: body: null headers: @@ -167,23 +167,23 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjruid?enrich=false&api-version=2017-04 response: body: - string: https://servicebustestfpkpesppp3.servicebus.windows.net/fjruid?enrich=false&api-version=2017-04fjruid2021-03-01T23:36:33Z2021-03-01T23:36:34Zservicebustestfpkpesppp3https://servicebustestqmzhmfhh7b.servicebus.windows.net/fjruid?enrich=false&api-version=2017-04fjruid2021-03-02T19:57:12Z2021-03-02T19:57:13Zservicebustestqmzhmfhh7bPT11M3072falsePT12Mtrue0falsefalseActive2021-03-01T23:36:33.833Z2021-03-01T23:36:34.647Z0001-01-01T00:00:00ZtruePT11M3072falsePT12Mtrue0falsefalseActive2021-03-02T19:57:12.083Z2021-03-02T19:57:13.1Z0001-01-01T00:00:00Ztrue000000PT10MfalseAvailablefalsetrue headers: content-type: application/atom+xml;type=entry;charset=utf-8 - date: Mon, 01 Mar 2021 23:36:34 GMT - etag: '637502385946470000' + date: Tue, 02 Mar 2021 19:57:13 GMT + etag: '637503118331000000' server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 transfer-encoding: chunked status: code: 200 message: OK - url: https://servicebustestfpkpesppp3.servicebus.windows.net/fjruid?enrich=false&api-version=2017-04 + url: https://servicebustestqmzhmfhh7b.servicebus.windows.net/fjruid?enrich=false&api-version=2017-04 - request: body: null headers: @@ -198,12 +198,12 @@ interactions: string: '' headers: content-length: '0' - date: Mon, 01 Mar 2021 23:36:34 GMT - etag: '637502385946470000' + date: Tue, 02 Mar 2021 19:57:13 GMT + etag: '637503118331000000' server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 status: code: 200 message: OK - url: https://servicebustestfpkpesppp3.servicebus.windows.net/fjruid?api-version=2017-04 + url: https://servicebustestqmzhmfhh7b.servicebus.windows.net/fjruid?api-version=2017-04 version: 1 diff --git a/sdk/servicebus/azure-servicebus/tests/mgmt_tests/recordings/test_mgmt_queues.test_mgmt_queue_update_dict_error.yaml b/sdk/servicebus/azure-servicebus/tests/mgmt_tests/recordings/test_mgmt_queues.test_mgmt_queue_update_dict_error.yaml index 57a839275db1..86281277f697 100644 --- a/sdk/servicebus/azure-servicebus/tests/mgmt_tests/recordings/test_mgmt_queues.test_mgmt_queue_update_dict_error.yaml +++ b/sdk/servicebus/azure-servicebus/tests/mgmt_tests/recordings/test_mgmt_queues.test_mgmt_queue_update_dict_error.yaml @@ -14,13 +14,13 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/$Resources/queues?$skip=0&$top=100&api-version=2017-04 response: body: - string: Queueshttps://servicebustestuvtxo3thy4.servicebus.windows.net/$Resources/queues?$skip=0&$top=100&api-version=2017-042021-03-01T23:38:31Z + string: Queueshttps://servicebustest7kbrnosvdj.servicebus.windows.net/$Resources/queues?$skip=0&$top=100&api-version=2017-042021-03-02T19:50:37Z headers: content-type: - application/atom+xml;type=feed;charset=utf-8 date: - - Mon, 01 Mar 2021 23:38:31 GMT + - Tue, 02 Mar 2021 19:50:37 GMT server: - Microsoft-HTTPAPI/2.0 transfer-encoding: @@ -50,16 +50,16 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/dfjdfj?api-version=2017-04 response: body: - string: https://servicebustestuvtxo3thy4.servicebus.windows.net/dfjdfj?api-version=2017-04dfjdfj2021-03-01T23:38:32Z2021-03-01T23:38:32Zservicebustestuvtxo3thy4https://servicebustest7kbrnosvdj.servicebus.windows.net/dfjdfj?api-version=2017-04dfjdfj2021-03-02T19:50:38Z2021-03-02T19:50:38Zservicebustest7kbrnosvdjPT1M1024falsefalseP10675199DT2H48M5.4775807SfalsePT10M10true00falseActive2021-03-01T23:38:32.31Z2021-03-01T23:38:32.373ZtrueP10675199DT2H48M5.4775807SfalseAvailablefalse + xmlns:i="http://www.w3.org/2001/XMLSchema-instance">PT1M1024falsefalseP10675199DT2H48M5.4775807SfalsePT10M10true00falseActive2021-03-02T19:50:38.3Z2021-03-02T19:50:38.38ZtrueP10675199DT2H48M5.4775807SfalseAvailablefalse headers: content-type: - application/atom+xml;type=entry;charset=utf-8 date: - - Mon, 01 Mar 2021 23:38:32 GMT + - Tue, 02 Mar 2021 19:50:38 GMT server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -91,9 +91,9 @@ interactions: content-length: - '0' date: - - Mon, 01 Mar 2021 23:38:32 GMT + - Tue, 02 Mar 2021 19:50:39 GMT etag: - - '637502387123730000' + - '637503114383800000' server: - Microsoft-HTTPAPI/2.0 strict-transport-security: diff --git a/sdk/servicebus/azure-servicebus/tests/mgmt_tests/recordings/test_mgmt_queues.test_mgmt_queue_update_dict_success.yaml b/sdk/servicebus/azure-servicebus/tests/mgmt_tests/recordings/test_mgmt_queues.test_mgmt_queue_update_dict_success.yaml index a9b001701eaa..b66eea67c67c 100644 --- a/sdk/servicebus/azure-servicebus/tests/mgmt_tests/recordings/test_mgmt_queues.test_mgmt_queue_update_dict_success.yaml +++ b/sdk/servicebus/azure-servicebus/tests/mgmt_tests/recordings/test_mgmt_queues.test_mgmt_queue_update_dict_success.yaml @@ -14,13 +14,13 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/$Resources/queues?$skip=0&$top=100&api-version=2017-04 response: body: - string: Queueshttps://servicebustestuvtxo3thy4.servicebus.windows.net/$Resources/queues?$skip=0&$top=100&api-version=2017-042021-03-01T23:38:34Z + string: Queueshttps://servicebustest7kbrnosvdj.servicebus.windows.net/$Resources/queues?$skip=0&$top=100&api-version=2017-042021-03-02T19:50:40Z headers: content-type: - application/atom+xml;type=feed;charset=utf-8 date: - - Mon, 01 Mar 2021 23:38:33 GMT + - Tue, 02 Mar 2021 19:50:39 GMT server: - Microsoft-HTTPAPI/2.0 transfer-encoding: @@ -50,16 +50,16 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjruid?api-version=2017-04 response: body: - string: https://servicebustestuvtxo3thy4.servicebus.windows.net/fjruid?api-version=2017-04fjruid2021-03-01T23:38:34Z2021-03-01T23:38:34Zservicebustestuvtxo3thy4https://servicebustest7kbrnosvdj.servicebus.windows.net/fjruid?api-version=2017-04fjruid2021-03-02T19:50:40Z2021-03-02T19:50:40Zservicebustest7kbrnosvdjPT1M1024falsefalseP10675199DT2H48M5.4775807SfalsePT10M10true00falseActive2021-03-01T23:38:34.72Z2021-03-01T23:38:34.753ZtrueP10675199DT2H48M5.4775807SfalseAvailablefalse + xmlns:i="http://www.w3.org/2001/XMLSchema-instance">PT1M1024falsefalseP10675199DT2H48M5.4775807SfalsePT10M10true00falseActive2021-03-02T19:50:40.697Z2021-03-02T19:50:40.74ZtrueP10675199DT2H48M5.4775807SfalseAvailablefalse headers: content-type: - application/atom+xml;type=entry;charset=utf-8 date: - - Mon, 01 Mar 2021 23:38:34 GMT + - Tue, 02 Mar 2021 19:50:40 GMT server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -94,18 +94,18 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjruid?api-version=2017-04 response: body: - string: https://servicebustestuvtxo3thy4.servicebus.windows.net/fjruid?api-version=2017-04fjruid2021-03-01T23:38:35Zservicebustestuvtxo3thy4https://servicebustest7kbrnosvdj.servicebus.windows.net/fjruid?api-version=2017-04fjruid2021-03-02T19:50:41Zservicebustest7kbrnosvdjPT2M1024falsefalseP10675199DT2H48M5.477539SfalsePT10M10trueActiveP10675199DT2H48M5.477539SfalseAvailablefalse headers: content-type: - application/atom+xml;type=entry;charset=utf-8 date: - - Mon, 01 Mar 2021 23:38:34 GMT + - Tue, 02 Mar 2021 19:50:40 GMT etag: - - '637502387147530000' + - '637503114407400000' server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -130,19 +130,19 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjruid?enrich=false&api-version=2017-04 response: body: - string: https://servicebustestuvtxo3thy4.servicebus.windows.net/fjruid?enrich=false&api-version=2017-04fjruid2021-03-01T23:38:34Z2021-03-01T23:38:35Zservicebustestuvtxo3thy4https://servicebustest7kbrnosvdj.servicebus.windows.net/fjruid?enrich=false&api-version=2017-04fjruid2021-03-02T19:50:40Z2021-03-02T19:50:41Zservicebustest7kbrnosvdjPT2M1024falsefalseP10675199DT2H48M5.477539SfalsePT10M10true00falseActive2021-03-01T23:38:34.72Z2021-03-01T23:38:35.293Z0001-01-01T00:00:00ZtruePT2M1024falsefalseP10675199DT2H48M5.477539SfalsePT10M10true00falseActive2021-03-02T19:50:40.697Z2021-03-02T19:50:41.277Z0001-01-01T00:00:00Ztrue00000P10675199DT2H48M5.477539SfalseAvailablefalse headers: content-type: - application/atom+xml;type=entry;charset=utf-8 date: - - Mon, 01 Mar 2021 23:38:34 GMT + - Tue, 02 Mar 2021 19:50:41 GMT etag: - - '637502387152930000' + - '637503114412770000' server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -157,7 +157,7 @@ interactions: PT13S3072falsefalsePT11MtruePT12M14trueActivePT10MfalseAvailabletruesb://servicebustestuvtxo3thy4.servicebus.windows.net/fjruidsb://servicebustestuvtxo3thy4.servicebus.windows.net/fjruid' + />ActivePT10MfalseAvailabletruesb://servicebustest7kbrnosvdj.servicebus.windows.net/fjruidsb://servicebustest7kbrnosvdj.servicebus.windows.net/fjruid' headers: Accept: - application/xml @@ -172,27 +172,27 @@ interactions: If-Match: - '*' ServiceBusDlqSupplementaryAuthorization: - - SharedAccessSignature sr=sb%3A%2F%2Fservicebustestuvtxo3thy4.servicebus.windows.net%2Ffjruid&sig=pTWDkF8YEPU5j%2bL5EqHzaCs4p%2bSMVhlCtRuBr65vGnE%3d&se=1614645514&skn=RootManageSharedAccessKey + - SharedAccessSignature sr=sb%3A%2F%2Fservicebustest7kbrnosvdj.servicebus.windows.net%2Ffjruid&sig=qS2%2b%2bY3MixrsSAgzMuE50KJwDukl6sgu%2fAuohkRKGU0%3d&se=1614718240&skn=RootManageSharedAccessKey ServiceBusSupplementaryAuthorization: - - SharedAccessSignature sr=sb%3A%2F%2Fservicebustestuvtxo3thy4.servicebus.windows.net%2Ffjruid&sig=pTWDkF8YEPU5j%2bL5EqHzaCs4p%2bSMVhlCtRuBr65vGnE%3d&se=1614645514&skn=RootManageSharedAccessKey + - SharedAccessSignature sr=sb%3A%2F%2Fservicebustest7kbrnosvdj.servicebus.windows.net%2Ffjruid&sig=qS2%2b%2bY3MixrsSAgzMuE50KJwDukl6sgu%2fAuohkRKGU0%3d&se=1614718240&skn=RootManageSharedAccessKey User-Agent: - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.0 (Windows-10-10.0.19041-SP0) method: PUT uri: https://servicebustestsbname.servicebus.windows.net/fjruid?api-version=2017-04 response: body: - string: https://servicebustestuvtxo3thy4.servicebus.windows.net/fjruid?api-version=2017-04fjruid2021-03-01T23:38:35Zservicebustestuvtxo3thy4https://servicebustest7kbrnosvdj.servicebus.windows.net/fjruid?api-version=2017-04fjruid2021-03-02T19:50:41Zservicebustest7kbrnosvdjPT13S3072falsefalsePT11MtruePT12M14trueActivePT10MfalseAvailabletruesb://servicebustestuvtxo3thy4.servicebus.windows.net/fjruidsb://servicebustestuvtxo3thy4.servicebus.windows.net/fjruid + xmlns:i="http://www.w3.org/2001/XMLSchema-instance">PT13S3072falsefalsePT11MtruePT12M14trueActivePT10MfalseAvailabletruesb://servicebustest7kbrnosvdj.servicebus.windows.net/fjruidsb://servicebustest7kbrnosvdj.servicebus.windows.net/fjruid headers: content-type: - application/atom+xml;type=entry;charset=utf-8 date: - - Mon, 01 Mar 2021 23:38:34 GMT + - Tue, 02 Mar 2021 19:50:41 GMT etag: - - '637502387152930000' + - '637503114412770000' server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -217,19 +217,19 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjruid?enrich=false&api-version=2017-04 response: body: - string: https://servicebustestuvtxo3thy4.servicebus.windows.net/fjruid?enrich=false&api-version=2017-04fjruid2021-03-01T23:38:34Z2021-03-01T23:38:35Zservicebustestuvtxo3thy4https://servicebustest7kbrnosvdj.servicebus.windows.net/fjruid?enrich=false&api-version=2017-04fjruid2021-03-02T19:50:40Z2021-03-02T19:50:41Zservicebustest7kbrnosvdjPT13S3072falsefalsePT11MtruePT12M14true00falseActive2021-03-01T23:38:34.72Z2021-03-01T23:38:35.54Z0001-01-01T00:00:00Ztrue00000PT10MfalseAvailabletruesb://servicebustestuvtxo3thy4.servicebus.windows.net/fjruidsb://servicebustestuvtxo3thy4.servicebus.windows.net/fjruid + xmlns:i="http://www.w3.org/2001/XMLSchema-instance">PT13S3072falsefalsePT11MtruePT12M14true00falseActive2021-03-02T19:50:40.697Z2021-03-02T19:50:41.54Z0001-01-01T00:00:00Ztrue00000PT10MfalseAvailabletruesb://servicebustest7kbrnosvdj.servicebus.windows.net/fjruidsb://servicebustest7kbrnosvdj.servicebus.windows.net/fjruid headers: content-type: - application/atom+xml;type=entry;charset=utf-8 date: - - Mon, 01 Mar 2021 23:38:34 GMT + - Tue, 02 Mar 2021 19:50:41 GMT etag: - - '637502387155400000' + - '637503114415400000' server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -261,9 +261,9 @@ interactions: content-length: - '0' date: - - Mon, 01 Mar 2021 23:38:35 GMT + - Tue, 02 Mar 2021 19:50:41 GMT etag: - - '637502387155400000' + - '637503114415400000' server: - Microsoft-HTTPAPI/2.0 strict-transport-security: diff --git a/sdk/servicebus/azure-servicebus/tests/mgmt_tests/recordings/test_mgmt_rules.test_mgmt_rule_update_dict_error.yaml b/sdk/servicebus/azure-servicebus/tests/mgmt_tests/recordings/test_mgmt_rules.test_mgmt_rule_update_dict_error.yaml index 8d50993f8c89..0c8d733e88c5 100644 --- a/sdk/servicebus/azure-servicebus/tests/mgmt_tests/recordings/test_mgmt_rules.test_mgmt_rule_update_dict_error.yaml +++ b/sdk/servicebus/azure-servicebus/tests/mgmt_tests/recordings/test_mgmt_rules.test_mgmt_rule_update_dict_error.yaml @@ -14,13 +14,13 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-04 response: body: - string: Topicshttps://servicebustestahnhgjoyqu.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-042021-03-01T23:38:07Z + string: Topicshttps://servicebustestqd6kevky7y.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-042021-03-02T19:49:50Z headers: content-type: - application/atom+xml;type=feed;charset=utf-8 date: - - Mon, 01 Mar 2021 23:38:06 GMT + - Tue, 02 Mar 2021 19:49:50 GMT server: - Microsoft-HTTPAPI/2.0 transfer-encoding: @@ -50,16 +50,16 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjruid?api-version=2017-04 response: body: - string: https://servicebustestahnhgjoyqu.servicebus.windows.net/fjruid?api-version=2017-04fjruid2021-03-01T23:38:07Z2021-03-01T23:38:07Zservicebustestahnhgjoyquhttps://servicebustestqd6kevky7y.servicebus.windows.net/fjruid?api-version=2017-04fjruid2021-03-02T19:49:51Z2021-03-02T19:49:51Zservicebustestqd6kevky7yP10675199DT2H48M5.4775807S1024falsePT10Mtrue0falsefalseActive2021-03-01T23:38:07.503Z2021-03-01T23:38:07.543ZtrueP10675199DT2H48M5.4775807SfalseAvailablefalsefalse + xmlns:i="http://www.w3.org/2001/XMLSchema-instance">P10675199DT2H48M5.4775807S1024falsePT10Mtrue0falsefalseActive2021-03-02T19:49:51.13Z2021-03-02T19:49:51.21ZtrueP10675199DT2H48M5.4775807SfalseAvailablefalsefalse headers: content-type: - application/atom+xml;type=entry;charset=utf-8 date: - - Mon, 01 Mar 2021 23:38:07 GMT + - Tue, 02 Mar 2021 19:49:51 GMT server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -91,18 +91,18 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjruid/subscriptions/eqkovcd?api-version=2017-04 response: body: - string: https://servicebustestahnhgjoyqu.servicebus.windows.net/fjruid/subscriptions/eqkovcd?api-version=2017-04eqkovcd2021-03-01T23:38:08Z2021-03-01T23:38:08Zhttps://servicebustestqd6kevky7y.servicebus.windows.net/fjruid/subscriptions/eqkovcd?api-version=2017-04eqkovcd2021-03-02T19:49:51Z2021-03-02T19:49:51ZPT1MfalseP10675199DT2H48M5.4775807Sfalsetrue010trueActive2021-03-01T23:38:08.0722979Z2021-03-01T23:38:08.0722979Z0001-01-01T00:00:00P10675199DT2H48M5.4775807SAvailable + xmlns:i="http://www.w3.org/2001/XMLSchema-instance">PT1MfalseP10675199DT2H48M5.4775807Sfalsetrue010trueActive2021-03-02T19:49:51.7058503Z2021-03-02T19:49:51.7058503Z0001-01-01T00:00:00P10675199DT2H48M5.4775807SAvailable headers: content-type: - application/atom+xml;type=entry;charset=utf-8 date: - - Mon, 01 Mar 2021 23:38:08 GMT + - Tue, 02 Mar 2021 19:49:51 GMT etag: - - '637502386875430000' + - '637503113912100000' server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -136,20 +136,20 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjruid/subscriptions/eqkovcd/rules/rule?api-version=2017-04 response: body: - string: https://servicebustestahnhgjoyqu.servicebus.windows.net/fjruid/subscriptions/eqkovcd/rules/rule?api-version=2017-04rule2021-03-01T23:38:08Z2021-03-01T23:38:08Zhttps://servicebustestqd6kevky7y.servicebus.windows.net/fjruid/subscriptions/eqkovcd/rules/rule?api-version=2017-04rule2021-03-02T19:49:52Z2021-03-02T19:49:52ZPriority = 'low'20true2021-03-01T23:38:08.400461Zrule + i:type="EmptyRuleAction"/>2021-03-02T19:49:52.0027557Zrule headers: content-type: - application/atom+xml;type=entry;charset=utf-8 date: - - Mon, 01 Mar 2021 23:38:08 GMT + - Tue, 02 Mar 2021 19:49:51 GMT etag: - - '637502386875430000' + - '637503113912100000' server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -181,9 +181,9 @@ interactions: content-length: - '0' date: - - Mon, 01 Mar 2021 23:38:08 GMT + - Tue, 02 Mar 2021 19:49:52 GMT etag: - - '637502386875430000' + - '637503113912100000' server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -213,9 +213,9 @@ interactions: content-length: - '0' date: - - Mon, 01 Mar 2021 23:38:08 GMT + - Tue, 02 Mar 2021 19:49:52 GMT etag: - - '637502386875430000' + - '637503113912100000' server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -245,9 +245,9 @@ interactions: content-length: - '0' date: - - Mon, 01 Mar 2021 23:38:09 GMT + - Tue, 02 Mar 2021 19:49:52 GMT etag: - - '637502386875430000' + - '637503113912100000' server: - Microsoft-HTTPAPI/2.0 strict-transport-security: diff --git a/sdk/servicebus/azure-servicebus/tests/mgmt_tests/recordings/test_mgmt_rules.test_mgmt_rule_update_dict_success.yaml b/sdk/servicebus/azure-servicebus/tests/mgmt_tests/recordings/test_mgmt_rules.test_mgmt_rule_update_dict_success.yaml index 8cfb8535beb9..d413ea948803 100644 --- a/sdk/servicebus/azure-servicebus/tests/mgmt_tests/recordings/test_mgmt_rules.test_mgmt_rule_update_dict_success.yaml +++ b/sdk/servicebus/azure-servicebus/tests/mgmt_tests/recordings/test_mgmt_rules.test_mgmt_rule_update_dict_success.yaml @@ -14,13 +14,13 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-04 response: body: - string: Topicshttps://servicebustestahnhgjoyqu.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-042021-03-01T23:38:10Z + string: Topicshttps://servicebustestqd6kevky7y.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-042021-03-02T19:49:53Z headers: content-type: - application/atom+xml;type=feed;charset=utf-8 date: - - Mon, 01 Mar 2021 23:38:10 GMT + - Tue, 02 Mar 2021 19:49:53 GMT server: - Microsoft-HTTPAPI/2.0 transfer-encoding: @@ -50,16 +50,16 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjruid?api-version=2017-04 response: body: - string: https://servicebustestahnhgjoyqu.servicebus.windows.net/fjruid?api-version=2017-04fjruid2021-03-01T23:38:10Z2021-03-01T23:38:10Zservicebustestahnhgjoyquhttps://servicebustestqd6kevky7y.servicebus.windows.net/fjruid?api-version=2017-04fjruid2021-03-02T19:49:54Z2021-03-02T19:49:54Zservicebustestqd6kevky7yP10675199DT2H48M5.4775807S1024falsePT10Mtrue0falsefalseActive2021-03-01T23:38:10.82Z2021-03-01T23:38:10.857ZtrueP10675199DT2H48M5.4775807SfalseAvailablefalsefalse + xmlns:i="http://www.w3.org/2001/XMLSchema-instance">P10675199DT2H48M5.4775807S1024falsePT10Mtrue0falsefalseActive2021-03-02T19:49:54.193Z2021-03-02T19:49:54.223ZtrueP10675199DT2H48M5.4775807SfalseAvailablefalsefalse headers: content-type: - application/atom+xml;type=entry;charset=utf-8 date: - - Mon, 01 Mar 2021 23:38:11 GMT + - Tue, 02 Mar 2021 19:49:54 GMT server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -91,18 +91,18 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjruid/subscriptions/eqkovcd?api-version=2017-04 response: body: - string: https://servicebustestahnhgjoyqu.servicebus.windows.net/fjruid/subscriptions/eqkovcd?api-version=2017-04eqkovcd2021-03-01T23:38:11Z2021-03-01T23:38:11Zhttps://servicebustestqd6kevky7y.servicebus.windows.net/fjruid/subscriptions/eqkovcd?api-version=2017-04eqkovcd2021-03-02T19:49:54Z2021-03-02T19:49:54ZPT1MfalseP10675199DT2H48M5.4775807Sfalsetrue010trueActive2021-03-01T23:38:11.4192824Z2021-03-01T23:38:11.4192824Z0001-01-01T00:00:00P10675199DT2H48M5.4775807SAvailable + xmlns:i="http://www.w3.org/2001/XMLSchema-instance">PT1MfalseP10675199DT2H48M5.4775807Sfalsetrue010trueActive2021-03-02T19:49:54.7526704Z2021-03-02T19:49:54.7526704Z0001-01-01T00:00:00P10675199DT2H48M5.4775807SAvailable headers: content-type: - application/atom+xml;type=entry;charset=utf-8 date: - - Mon, 01 Mar 2021 23:38:11 GMT + - Tue, 02 Mar 2021 19:49:54 GMT etag: - - '637502386908570000' + - '637503113942230000' server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -136,20 +136,20 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjruid/subscriptions/eqkovcd/rules/rule?api-version=2017-04 response: body: - string: https://servicebustestahnhgjoyqu.servicebus.windows.net/fjruid/subscriptions/eqkovcd/rules/rule?api-version=2017-04rule2021-03-01T23:38:11Z2021-03-01T23:38:11Zhttps://servicebustestqd6kevky7y.servicebus.windows.net/fjruid/subscriptions/eqkovcd/rules/rule?api-version=2017-04rule2021-03-02T19:49:55Z2021-03-02T19:49:55ZPriority = 'low'20true2021-03-01T23:38:11.7317844Zrule + i:type="EmptyRuleAction"/>2021-03-02T19:49:55.0807876Zrule headers: content-type: - application/atom+xml;type=entry;charset=utf-8 date: - - Mon, 01 Mar 2021 23:38:11 GMT + - Tue, 02 Mar 2021 19:49:54 GMT etag: - - '637502386908570000' + - '637503113942230000' server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -174,20 +174,20 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjruid/subscriptions/eqkovcd/rules/rule?enrich=false&api-version=2017-04 response: body: - string: sb://servicebustestahnhgjoyqu.servicebus.windows.net/fjruid/subscriptions/eqkovcd/rules/rule?enrich=false&api-version=2017-04rule2021-03-01T23:38:11Z2021-03-01T23:38:11Zsb://servicebustestqd6kevky7y.servicebus.windows.net/fjruid/subscriptions/eqkovcd/rules/rule?enrich=false&api-version=2017-04rule2021-03-02T19:49:55Z2021-03-02T19:49:55ZPriority = 'low'20true2021-03-01T23:38:11.7372306Zrule + i:type="EmptyRuleAction"/>2021-03-02T19:49:55.0884104Zrule headers: content-type: - application/atom+xml;type=entry;charset=utf-8 date: - - Mon, 01 Mar 2021 23:38:11 GMT + - Tue, 02 Mar 2021 19:49:54 GMT etag: - - '637502386908570000' + - '637503113942230000' server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -203,7 +203,7 @@ interactions: testcidSET Priority = ''low''20true2021-03-01T23:38:11.73723Zrule' + xsi:type="SqlRuleAction">SET Priority = ''low''20true2021-03-02T19:49:55.08841Zrule' headers: Accept: - application/xml @@ -223,19 +223,19 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjruid/subscriptions/eqkovcd/rules/rule?api-version=2017-04 response: body: - string: https://servicebustestahnhgjoyqu.servicebus.windows.net/fjruid/subscriptions/eqkovcd/rules/rule?api-version=2017-04rule2021-03-01T23:38:11Z2021-03-01T23:38:11Zhttps://servicebustestqd6kevky7y.servicebus.windows.net/fjruid/subscriptions/eqkovcd/rules/rule?api-version=2017-04rule2021-03-02T19:49:55Z2021-03-02T19:49:55ZtestcidSET Priority = 'low'20true2021-03-01T23:38:11.9974466Zrule + i:type="SqlRuleAction">SET Priority = 'low'20true2021-03-02T19:49:55.3932669Zrule headers: content-type: - application/atom+xml;type=entry;charset=utf-8 date: - - Mon, 01 Mar 2021 23:38:12 GMT + - Tue, 02 Mar 2021 19:49:54 GMT etag: - - '637502386908570000' + - '637503113942230000' server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -260,19 +260,19 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjruid/subscriptions/eqkovcd/rules/rule?enrich=false&api-version=2017-04 response: body: - string: sb://servicebustestahnhgjoyqu.servicebus.windows.net/fjruid/subscriptions/eqkovcd/rules/rule?enrich=false&api-version=2017-04rule2021-03-01T23:38:11Z2021-03-01T23:38:11Zsb://servicebustestqd6kevky7y.servicebus.windows.net/fjruid/subscriptions/eqkovcd/rules/rule?enrich=false&api-version=2017-04rule2021-03-02T19:49:55Z2021-03-02T19:49:55ZtestcidSET Priority = 'low'20true2021-03-01T23:38:11.7372306Zrule + i:type="SqlRuleAction">SET Priority = 'low'20true2021-03-02T19:49:55.0884104Zrule headers: content-type: - application/atom+xml;type=entry;charset=utf-8 date: - - Mon, 01 Mar 2021 23:38:12 GMT + - Tue, 02 Mar 2021 19:49:54 GMT etag: - - '637502386908570000' + - '637503113942230000' server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -304,9 +304,9 @@ interactions: content-length: - '0' date: - - Mon, 01 Mar 2021 23:38:12 GMT + - Tue, 02 Mar 2021 19:49:55 GMT etag: - - '637502386908570000' + - '637503113942230000' server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -336,9 +336,9 @@ interactions: content-length: - '0' date: - - Mon, 01 Mar 2021 23:38:12 GMT + - Tue, 02 Mar 2021 19:49:55 GMT etag: - - '637502386908570000' + - '637503113942230000' server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -368,9 +368,9 @@ interactions: content-length: - '0' date: - - Mon, 01 Mar 2021 23:38:13 GMT + - Tue, 02 Mar 2021 19:49:55 GMT etag: - - '637502386908570000' + - '637503113942230000' server: - Microsoft-HTTPAPI/2.0 strict-transport-security: diff --git a/sdk/servicebus/azure-servicebus/tests/mgmt_tests/recordings/test_mgmt_subscriptions.test_mgmt_subscription_update_dict_error.yaml b/sdk/servicebus/azure-servicebus/tests/mgmt_tests/recordings/test_mgmt_subscriptions.test_mgmt_subscription_update_dict_error.yaml index 58ce0931b25e..970b238060be 100644 --- a/sdk/servicebus/azure-servicebus/tests/mgmt_tests/recordings/test_mgmt_subscriptions.test_mgmt_subscription_update_dict_error.yaml +++ b/sdk/servicebus/azure-servicebus/tests/mgmt_tests/recordings/test_mgmt_subscriptions.test_mgmt_subscription_update_dict_error.yaml @@ -14,13 +14,13 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-04 response: body: - string: Topicshttps://servicebustesticxh3n4n33.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-042021-03-01T23:39:36Z + string: Topicshttps://servicebustestnkxyo36wpb.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-042021-03-02T19:51:48Z headers: content-type: - application/atom+xml;type=feed;charset=utf-8 date: - - Mon, 01 Mar 2021 23:39:35 GMT + - Tue, 02 Mar 2021 19:51:48 GMT server: - Microsoft-HTTPAPI/2.0 transfer-encoding: @@ -50,16 +50,16 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/dfjdfj?api-version=2017-04 response: body: - string: https://servicebustesticxh3n4n33.servicebus.windows.net/dfjdfj?api-version=2017-04dfjdfj2021-03-01T23:39:36Z2021-03-01T23:39:36Zservicebustesticxh3n4n33https://servicebustestnkxyo36wpb.servicebus.windows.net/dfjdfj?api-version=2017-04dfjdfj2021-03-02T19:51:48Z2021-03-02T19:51:48Zservicebustestnkxyo36wpbP10675199DT2H48M5.4775807S1024falsePT10Mtrue0falsefalseActive2021-03-01T23:39:36.503Z2021-03-01T23:39:36.58ZtrueP10675199DT2H48M5.4775807SfalseAvailablefalsefalse + xmlns:i="http://www.w3.org/2001/XMLSchema-instance">P10675199DT2H48M5.4775807S1024falsePT10Mtrue0falsefalseActive2021-03-02T19:51:48.493Z2021-03-02T19:51:48.56ZtrueP10675199DT2H48M5.4775807SfalseAvailablefalsefalse headers: content-type: - application/atom+xml;type=entry;charset=utf-8 date: - - Mon, 01 Mar 2021 23:39:36 GMT + - Tue, 02 Mar 2021 19:51:48 GMT server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -91,18 +91,18 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/dfjdfj/subscriptions/kwqxd?api-version=2017-04 response: body: - string: https://servicebustesticxh3n4n33.servicebus.windows.net/dfjdfj/subscriptions/kwqxd?api-version=2017-04kwqxd2021-03-01T23:39:37Z2021-03-01T23:39:37Zhttps://servicebustestnkxyo36wpb.servicebus.windows.net/dfjdfj/subscriptions/kwqxd?api-version=2017-04kwqxd2021-03-02T19:51:49Z2021-03-02T19:51:49ZPT1MfalseP10675199DT2H48M5.4775807Sfalsetrue010trueActive2021-03-01T23:39:37.1574196Z2021-03-01T23:39:37.1574196Z0001-01-01T00:00:00P10675199DT2H48M5.4775807SAvailable + xmlns:i="http://www.w3.org/2001/XMLSchema-instance">PT1MfalseP10675199DT2H48M5.4775807Sfalsetrue010trueActive2021-03-02T19:51:49.0648439Z2021-03-02T19:51:49.0648439Z0001-01-01T00:00:00P10675199DT2H48M5.4775807SAvailable headers: content-type: - application/atom+xml;type=entry;charset=utf-8 date: - - Mon, 01 Mar 2021 23:39:36 GMT + - Tue, 02 Mar 2021 19:51:49 GMT etag: - - '637502387765800000' + - '637503115085600000' server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -134,9 +134,9 @@ interactions: content-length: - '0' date: - - Mon, 01 Mar 2021 23:39:36 GMT + - Tue, 02 Mar 2021 19:51:49 GMT etag: - - '637502387765800000' + - '637503115085600000' server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -166,9 +166,9 @@ interactions: content-length: - '0' date: - - Mon, 01 Mar 2021 23:39:37 GMT + - Tue, 02 Mar 2021 19:51:49 GMT etag: - - '637502387765800000' + - '637503115085600000' server: - Microsoft-HTTPAPI/2.0 strict-transport-security: diff --git a/sdk/servicebus/azure-servicebus/tests/mgmt_tests/recordings/test_mgmt_subscriptions.test_mgmt_subscription_update_dict_success.yaml b/sdk/servicebus/azure-servicebus/tests/mgmt_tests/recordings/test_mgmt_subscriptions.test_mgmt_subscription_update_dict_success.yaml index 0401090d641e..d60e109c5d9f 100644 --- a/sdk/servicebus/azure-servicebus/tests/mgmt_tests/recordings/test_mgmt_subscriptions.test_mgmt_subscription_update_dict_success.yaml +++ b/sdk/servicebus/azure-servicebus/tests/mgmt_tests/recordings/test_mgmt_subscriptions.test_mgmt_subscription_update_dict_success.yaml @@ -14,13 +14,13 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-04 response: body: - string: Topicshttps://servicebustesticxh3n4n33.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-042021-03-01T23:39:38Z + string: Topicshttps://servicebustestnkxyo36wpb.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-042021-03-02T19:51:50Z headers: content-type: - application/atom+xml;type=feed;charset=utf-8 date: - - Mon, 01 Mar 2021 23:39:38 GMT + - Tue, 02 Mar 2021 19:51:50 GMT server: - Microsoft-HTTPAPI/2.0 transfer-encoding: @@ -50,16 +50,16 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjruid?api-version=2017-04 response: body: - string: https://servicebustesticxh3n4n33.servicebus.windows.net/fjruid?api-version=2017-04fjruid2021-03-01T23:39:39Z2021-03-01T23:39:39Zservicebustesticxh3n4n33https://servicebustestnkxyo36wpb.servicebus.windows.net/fjruid?api-version=2017-04fjruid2021-03-02T19:51:51Z2021-03-02T19:51:51Zservicebustestnkxyo36wpbP10675199DT2H48M5.4775807S1024falsePT10Mtrue0falsefalseActive2021-03-01T23:39:39.22Z2021-03-01T23:39:39.28ZtrueP10675199DT2H48M5.4775807SfalseAvailablefalsefalse + xmlns:i="http://www.w3.org/2001/XMLSchema-instance">P10675199DT2H48M5.4775807S1024falsePT10Mtrue0falsefalseActive2021-03-02T19:51:51.15Z2021-03-02T19:51:51.23ZtrueP10675199DT2H48M5.4775807SfalseAvailablefalsefalse headers: content-type: - application/atom+xml;type=entry;charset=utf-8 date: - - Mon, 01 Mar 2021 23:39:39 GMT + - Tue, 02 Mar 2021 19:51:51 GMT server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -91,18 +91,18 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjruid/subscriptions/eqkovcd?api-version=2017-04 response: body: - string: https://servicebustesticxh3n4n33.servicebus.windows.net/fjruid/subscriptions/eqkovcd?api-version=2017-04eqkovcd2021-03-01T23:39:39Z2021-03-01T23:39:39Zhttps://servicebustestnkxyo36wpb.servicebus.windows.net/fjruid/subscriptions/eqkovcd?api-version=2017-04eqkovcd2021-03-02T19:51:51Z2021-03-02T19:51:51ZPT1MfalseP10675199DT2H48M5.4775807Sfalsetrue010trueActive2021-03-01T23:39:39.8056902Z2021-03-01T23:39:39.8056902Z0001-01-01T00:00:00P10675199DT2H48M5.4775807SAvailable + xmlns:i="http://www.w3.org/2001/XMLSchema-instance">PT1MfalseP10675199DT2H48M5.4775807Sfalsetrue010trueActive2021-03-02T19:51:51.7276022Z2021-03-02T19:51:51.7276022Z0001-01-01T00:00:00P10675199DT2H48M5.4775807SAvailable headers: content-type: - application/atom+xml;type=entry;charset=utf-8 date: - - Mon, 01 Mar 2021 23:39:39 GMT + - Tue, 02 Mar 2021 19:51:51 GMT etag: - - '637502387792800000' + - '637503115112300000' server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -136,18 +136,18 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjruid/subscriptions/eqkovcd?api-version=2017-04 response: body: - string: https://servicebustesticxh3n4n33.servicebus.windows.net/fjruid/subscriptions/eqkovcd?api-version=2017-04eqkovcd2021-03-01T23:39:40Z2021-03-01T23:39:40Zhttps://servicebustestnkxyo36wpb.servicebus.windows.net/fjruid/subscriptions/eqkovcd?api-version=2017-04eqkovcd2021-03-02T19:51:52Z2021-03-02T19:51:52ZPT2MfalseP10675199DT2H48M5.477539Sfalsetrue010trueActive2021-03-01T23:39:40.1026404Z2021-03-01T23:39:40.1026404Z0001-01-01T00:00:00P10675199DT2H48M5.477539SAvailable + xmlns:i="http://www.w3.org/2001/XMLSchema-instance">PT2MfalseP10675199DT2H48M5.477539Sfalsetrue010trueActive2021-03-02T19:51:52.0088215Z2021-03-02T19:51:52.0088215Z0001-01-01T00:00:00P10675199DT2H48M5.477539SAvailable headers: content-type: - application/atom+xml;type=entry;charset=utf-8 date: - - Mon, 01 Mar 2021 23:39:39 GMT + - Tue, 02 Mar 2021 19:51:51 GMT etag: - - '637502387792800000' + - '637503115112300000' server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -172,19 +172,19 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjruid/subscriptions/eqkovcd?enrich=false&api-version=2017-04 response: body: - string: sb://servicebustesticxh3n4n33.servicebus.windows.net/fjruid/subscriptions/eqkovcd?enrich=false&api-version=2017-04eqkovcd2021-03-01T23:39:39Z2021-03-01T23:39:40Zsb://servicebustestnkxyo36wpb.servicebus.windows.net/fjruid/subscriptions/eqkovcd?enrich=false&api-version=2017-04eqkovcd2021-03-02T19:51:51Z2021-03-02T19:51:52ZPT2MfalseP10675199DT2H48M5.477539Sfalsetrue010trueActive2021-03-01T23:39:39.8127639Z2021-03-01T23:39:40.125283Z2021-03-01T23:39:39.813ZPT2MfalseP10675199DT2H48M5.477539Sfalsetrue010trueActive2021-03-02T19:51:51.7272898Z2021-03-02T19:51:52.1803839Z2021-03-02T19:51:51.7272898Z00000P10675199DT2H48M5.477539SAvailable headers: content-type: - application/atom+xml;type=entry;charset=utf-8 date: - - Mon, 01 Mar 2021 23:39:39 GMT + - Tue, 02 Mar 2021 19:51:51 GMT etag: - - '637502387792800000' + - '637503115112300000' server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -218,18 +218,18 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjruid/subscriptions/eqkovcd?api-version=2017-04 response: body: - string: https://servicebustesticxh3n4n33.servicebus.windows.net/fjruid/subscriptions/eqkovcd?api-version=2017-04eqkovcd2021-03-01T23:39:40Z2021-03-01T23:39:40Zhttps://servicebustestnkxyo36wpb.servicebus.windows.net/fjruid/subscriptions/eqkovcd?api-version=2017-04eqkovcd2021-03-02T19:51:52Z2021-03-02T19:51:52ZPT12SfalsePT11Mtruetrue014trueActive2021-03-01T23:39:40.3838181Z2021-03-01T23:39:40.3838181Z0001-01-01T00:00:00PT10MAvailable + xmlns:i="http://www.w3.org/2001/XMLSchema-instance">PT12SfalsePT11Mtruetrue014trueActive2021-03-02T19:51:52.4306993Z2021-03-02T19:51:52.4306993Z0001-01-01T00:00:00PT10MAvailable headers: content-type: - application/atom+xml;type=entry;charset=utf-8 date: - - Mon, 01 Mar 2021 23:39:39 GMT + - Tue, 02 Mar 2021 19:51:52 GMT etag: - - '637502387792800000' + - '637503115112300000' server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -254,19 +254,19 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjruid/subscriptions/eqkovcd?enrich=false&api-version=2017-04 response: body: - string: sb://servicebustesticxh3n4n33.servicebus.windows.net/fjruid/subscriptions/eqkovcd?enrich=false&api-version=2017-04eqkovcd2021-03-01T23:39:39Z2021-03-01T23:39:40Zsb://servicebustestnkxyo36wpb.servicebus.windows.net/fjruid/subscriptions/eqkovcd?enrich=false&api-version=2017-04eqkovcd2021-03-02T19:51:51Z2021-03-02T19:51:52ZPT12SfalsePT11Mtruetrue014trueActive2021-03-01T23:39:39.8127639Z2021-03-01T23:39:40.3909199Z2021-03-01T23:39:39.813ZPT12SfalsePT11Mtruetrue014trueActive2021-03-02T19:51:51.7272898Z2021-03-02T19:51:52.430416Z2021-03-02T19:51:51.7272898Z00000PT10MAvailable headers: content-type: - application/atom+xml;type=entry;charset=utf-8 date: - - Mon, 01 Mar 2021 23:39:39 GMT + - Tue, 02 Mar 2021 19:51:52 GMT etag: - - '637502387792800000' + - '637503115112300000' server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -280,7 +280,7 @@ interactions: body: ' PT12SfalsePT11Mtruetrue14trueActivesb://servicebustesticxh3n4n33.servicebus.windows.net/fjruidsb://servicebustesticxh3n4n33.servicebus.windows.net/fjruidPT10MAvailable' + type="application/xml">PT12SfalsePT11Mtruetrue14trueActivesb://servicebustestnkxyo36wpb.servicebus.windows.net/fjruidsb://servicebustestnkxyo36wpb.servicebus.windows.net/fjruidPT10MAvailable' headers: Accept: - application/xml @@ -295,27 +295,27 @@ interactions: If-Match: - '*' ServiceBusDlqSupplementaryAuthorization: - - SharedAccessSignature sr=sb%3A%2F%2Fservicebustesticxh3n4n33.servicebus.windows.net%2Ffjruid&sig=9806uStzYqwH1DlXVsJBHqHXuX1j1xOP%2bapIyqV2p3k%3d&se=1614645579&skn=RootManageSharedAccessKey + - SharedAccessSignature sr=sb%3A%2F%2Fservicebustestnkxyo36wpb.servicebus.windows.net%2Ffjruid&sig=0ptYwRjZfISzRAtqHGhoVbMF6wWu5io4DKGQkiQebOk%3d&se=1614718311&skn=RootManageSharedAccessKey ServiceBusSupplementaryAuthorization: - - SharedAccessSignature sr=sb%3A%2F%2Fservicebustesticxh3n4n33.servicebus.windows.net%2Ffjruid&sig=9806uStzYqwH1DlXVsJBHqHXuX1j1xOP%2bapIyqV2p3k%3d&se=1614645579&skn=RootManageSharedAccessKey + - SharedAccessSignature sr=sb%3A%2F%2Fservicebustestnkxyo36wpb.servicebus.windows.net%2Ffjruid&sig=0ptYwRjZfISzRAtqHGhoVbMF6wWu5io4DKGQkiQebOk%3d&se=1614718311&skn=RootManageSharedAccessKey User-Agent: - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.0 (Windows-10-10.0.19041-SP0) method: PUT uri: https://servicebustestsbname.servicebus.windows.net/fjruid/subscriptions/eqkovcd?api-version=2017-04 response: body: - string: https://servicebustesticxh3n4n33.servicebus.windows.net/fjruid/subscriptions/eqkovcd?api-version=2017-04eqkovcd2021-03-01T23:39:40Z2021-03-01T23:39:40Zhttps://servicebustestnkxyo36wpb.servicebus.windows.net/fjruid/subscriptions/eqkovcd?api-version=2017-04eqkovcd2021-03-02T19:51:52Z2021-03-02T19:51:52ZPT12SfalsePT11Mtruetrue014trueActivesb://servicebustesticxh3n4n33.servicebus.windows.net/fjruid2021-03-01T23:39:40.6025959Z2021-03-01T23:39:40.6025959Z0001-01-01T00:00:00sb://servicebustesticxh3n4n33.servicebus.windows.net/fjruidP10675199DT2H48M5.4775807SAvailable + xmlns:i="http://www.w3.org/2001/XMLSchema-instance">PT12SfalsePT11Mtruetrue014trueActivesb://servicebustestnkxyo36wpb.servicebus.windows.net/fjruid2021-03-02T19:51:52.6807376Z2021-03-02T19:51:52.6807376Z0001-01-01T00:00:00sb://servicebustestnkxyo36wpb.servicebus.windows.net/fjruidP10675199DT2H48M5.4775807SAvailable headers: content-type: - application/atom+xml;type=entry;charset=utf-8 date: - - Mon, 01 Mar 2021 23:39:40 GMT + - Tue, 02 Mar 2021 19:51:52 GMT etag: - - '637502387792800000' + - '637503115112300000' server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -340,19 +340,19 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjruid/subscriptions/eqkovcd?enrich=false&api-version=2017-04 response: body: - string: sb://servicebustesticxh3n4n33.servicebus.windows.net/fjruid/subscriptions/eqkovcd?enrich=false&api-version=2017-04eqkovcd2021-03-01T23:39:39Z2021-03-01T23:39:40Zsb://servicebustestnkxyo36wpb.servicebus.windows.net/fjruid/subscriptions/eqkovcd?enrich=false&api-version=2017-04eqkovcd2021-03-02T19:51:51Z2021-03-02T19:51:52ZPT12SfalsePT11Mtruetrue014trueActivesb://servicebustesticxh3n4n33.servicebus.windows.net/fjruid2021-03-01T23:39:39.8127639Z2021-03-01T23:39:40.6257992Z2021-03-01T23:39:39.813Z00000sb://servicebustesticxh3n4n33.servicebus.windows.net/fjruidP10675199DT2H48M5.4775807SAvailable + xmlns:i="http://www.w3.org/2001/XMLSchema-instance">PT12SfalsePT11Mtruetrue014trueActivesb://servicebustestnkxyo36wpb.servicebus.windows.net/fjruid2021-03-02T19:51:51.7272898Z2021-03-02T19:51:52.7116789Z2021-03-02T19:51:51.7272898Z00000sb://servicebustestnkxyo36wpb.servicebus.windows.net/fjruidP10675199DT2H48M5.4775807SAvailable headers: content-type: - application/atom+xml;type=entry;charset=utf-8 date: - - Mon, 01 Mar 2021 23:39:40 GMT + - Tue, 02 Mar 2021 19:51:52 GMT etag: - - '637502387792800000' + - '637503115112300000' server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -384,9 +384,9 @@ interactions: content-length: - '0' date: - - Mon, 01 Mar 2021 23:39:40 GMT + - Tue, 02 Mar 2021 19:51:52 GMT etag: - - '637502387792800000' + - '637503115112300000' server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -416,9 +416,9 @@ interactions: content-length: - '0' date: - - Mon, 01 Mar 2021 23:39:40 GMT + - Tue, 02 Mar 2021 19:51:53 GMT etag: - - '637502387792800000' + - '637503115112300000' server: - Microsoft-HTTPAPI/2.0 strict-transport-security: diff --git a/sdk/servicebus/azure-servicebus/tests/mgmt_tests/recordings/test_mgmt_topics.test_mgmt_topic_update_dict_error.yaml b/sdk/servicebus/azure-servicebus/tests/mgmt_tests/recordings/test_mgmt_topics.test_mgmt_topic_update_dict_error.yaml index 10170e61dc96..adbecf008433 100644 --- a/sdk/servicebus/azure-servicebus/tests/mgmt_tests/recordings/test_mgmt_topics.test_mgmt_topic_update_dict_error.yaml +++ b/sdk/servicebus/azure-servicebus/tests/mgmt_tests/recordings/test_mgmt_topics.test_mgmt_topic_update_dict_error.yaml @@ -14,13 +14,13 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-04 response: body: - string: Topicshttps://servicebustest2vi3w33e5c.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-042021-03-01T23:40:06Z + string: Topicshttps://servicebustestrzdukahnat.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-042021-03-02T19:52:13Z headers: content-type: - application/atom+xml;type=feed;charset=utf-8 date: - - Mon, 01 Mar 2021 23:40:06 GMT + - Tue, 02 Mar 2021 19:52:12 GMT server: - Microsoft-HTTPAPI/2.0 transfer-encoding: @@ -50,16 +50,16 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/dfjdfj?api-version=2017-04 response: body: - string: https://servicebustest2vi3w33e5c.servicebus.windows.net/dfjdfj?api-version=2017-04dfjdfj2021-03-01T23:40:06Z2021-03-01T23:40:06Zservicebustest2vi3w33e5chttps://servicebustestrzdukahnat.servicebus.windows.net/dfjdfj?api-version=2017-04dfjdfj2021-03-02T19:52:13Z2021-03-02T19:52:13ZservicebustestrzdukahnatP10675199DT2H48M5.4775807S1024falsePT10Mtrue0falsefalseActive2021-03-01T23:40:06.943Z2021-03-01T23:40:06.98ZtrueP10675199DT2H48M5.4775807SfalseAvailablefalsefalse + xmlns:i="http://www.w3.org/2001/XMLSchema-instance">P10675199DT2H48M5.4775807S1024falsePT10Mtrue0falsefalseActive2021-03-02T19:52:13.657Z2021-03-02T19:52:13.697ZtrueP10675199DT2H48M5.4775807SfalseAvailablefalsefalse headers: content-type: - application/atom+xml;type=entry;charset=utf-8 date: - - Mon, 01 Mar 2021 23:40:07 GMT + - Tue, 02 Mar 2021 19:52:13 GMT server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -91,9 +91,9 @@ interactions: content-length: - '0' date: - - Mon, 01 Mar 2021 23:40:07 GMT + - Tue, 02 Mar 2021 19:52:13 GMT etag: - - '637502388069800000' + - '637503115336970000' server: - Microsoft-HTTPAPI/2.0 strict-transport-security: diff --git a/sdk/servicebus/azure-servicebus/tests/mgmt_tests/recordings/test_mgmt_topics.test_mgmt_topic_update_dict_success.yaml b/sdk/servicebus/azure-servicebus/tests/mgmt_tests/recordings/test_mgmt_topics.test_mgmt_topic_update_dict_success.yaml index cab69d73633f..111aa9c7038e 100644 --- a/sdk/servicebus/azure-servicebus/tests/mgmt_tests/recordings/test_mgmt_topics.test_mgmt_topic_update_dict_success.yaml +++ b/sdk/servicebus/azure-servicebus/tests/mgmt_tests/recordings/test_mgmt_topics.test_mgmt_topic_update_dict_success.yaml @@ -14,13 +14,13 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-04 response: body: - string: Topicshttps://servicebustest2vi3w33e5c.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-042021-03-01T23:40:08Z + string: Topicshttps://servicebustestrzdukahnat.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-042021-03-02T19:52:15Z headers: content-type: - application/atom+xml;type=feed;charset=utf-8 date: - - Mon, 01 Mar 2021 23:40:08 GMT + - Tue, 02 Mar 2021 19:52:15 GMT server: - Microsoft-HTTPAPI/2.0 transfer-encoding: @@ -50,16 +50,16 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjruid?api-version=2017-04 response: body: - string: https://servicebustest2vi3w33e5c.servicebus.windows.net/fjruid?api-version=2017-04fjruid2021-03-01T23:40:09Z2021-03-01T23:40:09Zservicebustest2vi3w33e5chttps://servicebustestrzdukahnat.servicebus.windows.net/fjruid?api-version=2017-04fjruid2021-03-02T19:52:15Z2021-03-02T19:52:15ZservicebustestrzdukahnatP10675199DT2H48M5.4775807S1024falsePT10Mtrue0falsefalseActive2021-03-01T23:40:09.29Z2021-03-01T23:40:09.347ZtrueP10675199DT2H48M5.4775807SfalseAvailablefalsefalse + xmlns:i="http://www.w3.org/2001/XMLSchema-instance">P10675199DT2H48M5.4775807S1024falsePT10Mtrue0falsefalseActive2021-03-02T19:52:15.907Z2021-03-02T19:52:15.957ZtrueP10675199DT2H48M5.4775807SfalseAvailablefalsefalse headers: content-type: - application/atom+xml;type=entry;charset=utf-8 date: - - Mon, 01 Mar 2021 23:40:09 GMT + - Tue, 02 Mar 2021 19:52:15 GMT server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -94,18 +94,18 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjruid?api-version=2017-04 response: body: - string: https://servicebustest2vi3w33e5c.servicebus.windows.net/fjruid?api-version=2017-04fjruid2021-03-01T23:40:09Zservicebustest2vi3w33e5chttps://servicebustestrzdukahnat.servicebus.windows.net/fjruid?api-version=2017-04fjruid2021-03-02T19:52:16ZservicebustestrzdukahnatPT2M1024falsePT10Mtrue0ActivetrueP10675199DT2H48M5.477539SfalseAvailablefalse headers: content-type: - application/atom+xml;type=entry;charset=utf-8 date: - - Mon, 01 Mar 2021 23:40:09 GMT + - Tue, 02 Mar 2021 19:52:16 GMT etag: - - '637502388093470000' + - '637503115359570000' server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -130,19 +130,19 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjruid?enrich=false&api-version=2017-04 response: body: - string: https://servicebustest2vi3w33e5c.servicebus.windows.net/fjruid?enrich=false&api-version=2017-04fjruid2021-03-01T23:40:09Z2021-03-01T23:40:09Zservicebustest2vi3w33e5chttps://servicebustestrzdukahnat.servicebus.windows.net/fjruid?enrich=false&api-version=2017-04fjruid2021-03-02T19:52:15Z2021-03-02T19:52:16ZservicebustestrzdukahnatPT2M1024falsePT10Mtrue0falsefalseActive2021-03-01T23:40:09.29Z2021-03-01T23:40:09.86Z0001-01-01T00:00:00ZtruePT2M1024falsePT10Mtrue0falsefalseActive2021-03-02T19:52:15.907Z2021-03-02T19:52:16.49Z0001-01-01T00:00:00Ztrue000000P10675199DT2H48M5.477539SfalseAvailablefalsefalse headers: content-type: - application/atom+xml;type=entry;charset=utf-8 date: - - Mon, 01 Mar 2021 23:40:09 GMT + - Tue, 02 Mar 2021 19:52:16 GMT etag: - - '637502388098600000' + - '637503115364900000' server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -177,18 +177,18 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjruid?api-version=2017-04 response: body: - string: https://servicebustest2vi3w33e5c.servicebus.windows.net/fjruid?api-version=2017-04fjruid2021-03-01T23:40:10Zservicebustest2vi3w33e5chttps://servicebustestrzdukahnat.servicebus.windows.net/fjruid?api-version=2017-04fjruid2021-03-02T19:52:16ZservicebustestrzdukahnatPT11M3072falsePT12Mtrue0ActivetruePT10MfalseAvailabletrue headers: content-type: - application/atom+xml;type=entry;charset=utf-8 date: - - Mon, 01 Mar 2021 23:40:09 GMT + - Tue, 02 Mar 2021 19:52:16 GMT etag: - - '637502388098600000' + - '637503115364900000' server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -213,19 +213,19 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjruid?enrich=false&api-version=2017-04 response: body: - string: https://servicebustest2vi3w33e5c.servicebus.windows.net/fjruid?enrich=false&api-version=2017-04fjruid2021-03-01T23:40:09Z2021-03-01T23:40:10Zservicebustest2vi3w33e5chttps://servicebustestrzdukahnat.servicebus.windows.net/fjruid?enrich=false&api-version=2017-04fjruid2021-03-02T19:52:15Z2021-03-02T19:52:16ZservicebustestrzdukahnatPT11M3072falsePT12Mtrue0falsefalseActive2021-03-01T23:40:09.29Z2021-03-01T23:40:10.113Z0001-01-01T00:00:00ZtruePT11M3072falsePT12Mtrue0falsefalseActive2021-03-02T19:52:15.907Z2021-03-02T19:52:16.947Z0001-01-01T00:00:00Ztrue000000PT10MfalseAvailablefalsetrue headers: content-type: - application/atom+xml;type=entry;charset=utf-8 date: - - Mon, 01 Mar 2021 23:40:09 GMT + - Tue, 02 Mar 2021 19:52:16 GMT etag: - - '637502388101130000' + - '637503115369470000' server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -257,9 +257,9 @@ interactions: content-length: - '0' date: - - Mon, 01 Mar 2021 23:40:10 GMT + - Tue, 02 Mar 2021 19:52:17 GMT etag: - - '637502388101130000' + - '637503115369470000' server: - Microsoft-HTTPAPI/2.0 strict-transport-security: From 27f40bd049f79c3181e928f9f849131fdffaaaf9 Mon Sep 17 00:00:00 2001 From: swathipil <76007337+swathipil@users.noreply.github.com> Date: Tue, 2 Mar 2021 16:52:15 -0500 Subject: [PATCH 28/30] Update sdk/servicebus/azure-servicebus/CHANGELOG.md Co-authored-by: Adam Ling (MSFT) --- sdk/servicebus/azure-servicebus/CHANGELOG.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sdk/servicebus/azure-servicebus/CHANGELOG.md b/sdk/servicebus/azure-servicebus/CHANGELOG.md index 972f5c3f344c..024276550550 100644 --- a/sdk/servicebus/azure-servicebus/CHANGELOG.md +++ b/sdk/servicebus/azure-servicebus/CHANGELOG.md @@ -4,12 +4,11 @@ **New Features** -* Updated the following so that they accept lists and single instances of dict representations for corresponding strongly-typed object arguments: +* Updated the following methods so that lists and single instances of dict representations are accepted for corresponding strongly-typed object arguments (PR #14807, thanks @bradleydamato): - `update_queue`, `update_topic`, `update_subscription`, and `update_rule` on `ServiceBusAdministrationClient` accept dict representations of `QueueProperties`, `TopicProperties`, `SubscriptionProperties`, and `RuleProperties`, respectively. - `send_messages` and `schedule_messages` on both sync and async versions of `ServiceBusSender` accept a list of or single instance of dict representations of `ServiceBusMessage`. - `add_message` on `ServiceBusMessageBatch` now accepts a dict representation of `ServiceBusMessage`. - Note: This is ongoing work and is the first step in supporting the above as respresentation of type `typing.Mapping`. - - Note: Thanks to bradleydamato for their large contribution to this. **BugFixes** From a38c54ffcb951105d1ab475c5ff0acb548e38fa2 Mon Sep 17 00:00:00 2001 From: Swathi Pillalamarri Date: Tue, 2 Mar 2021 17:46:18 -0500 Subject: [PATCH 29/30] bump minor version --- sdk/servicebus/azure-servicebus/CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/servicebus/azure-servicebus/CHANGELOG.md b/sdk/servicebus/azure-servicebus/CHANGELOG.md index 972f5c3f344c..8c9baf86d9fe 100644 --- a/sdk/servicebus/azure-servicebus/CHANGELOG.md +++ b/sdk/servicebus/azure-servicebus/CHANGELOG.md @@ -1,6 +1,6 @@ # Release History -## 7.0.2 (Unreleased) +## 7.1.0 (Unreleased) **New Features** From 803b1425ab69918558135611c972ea28fb167290 Mon Sep 17 00:00:00 2001 From: Swathi Pillalamarri Date: Wed, 3 Mar 2021 10:31:28 -0500 Subject: [PATCH 30/30] _version update --- sdk/servicebus/azure-servicebus/azure/servicebus/_version.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/servicebus/azure-servicebus/azure/servicebus/_version.py b/sdk/servicebus/azure-servicebus/azure/servicebus/_version.py index bd682c54ddca..8037c72d55a4 100644 --- a/sdk/servicebus/azure-servicebus/azure/servicebus/_version.py +++ b/sdk/servicebus/azure-servicebus/azure/servicebus/_version.py @@ -3,4 +3,4 @@ # Licensed under the MIT License. # ------------------------------------ -VERSION = "7.0.2" +VERSION = "7.1.0"