From 130501502cdad887ec6c538645d3ebc256dd6957 Mon Sep 17 00:00:00 2001 From: "Adam Ling (MSFT)" Date: Wed, 21 Apr 2021 13:21:08 -0700 Subject: [PATCH 01/14] add keyword override support --- .../management/_management_client_async.py | 27 ++++++---- .../management/_management_client.py | 50 ++++++++++++------- .../azure/servicebus/management/_utils.py | 9 ++++ 3 files changed, 60 insertions(+), 26 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 f66e533a780d..044fcd9ccf4c 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 @@ -6,6 +6,7 @@ # pylint:disable=specify-parameter-names-in-call # pylint:disable=too-many-lines import functools +from copy import deepcopy from typing import TYPE_CHECKING, Any, Union, cast, Mapping from xml.etree.ElementTree import ElementTree @@ -78,6 +79,7 @@ deserialize_rule_key_values, serialize_rule_key_values, create_properties_from_dict_if_needed, + override_properties_with_keyword_arguments, _normalize_entity_path_to_full_path_if_needed, _validate_entity_name_type, _validate_topic_and_subscription_types, @@ -425,8 +427,8 @@ async def update_queue( :type queue: ~azure.servicebus.management.QueueProperties :rtype: None """ - - queue = create_properties_from_dict_if_needed(queue, QueueProperties) + # we should not mutate the input, making a copy first for update + queue = deepcopy(create_properties_from_dict_if_needed(queue, QueueProperties)) queue.forward_to = _normalize_entity_path_to_full_path_if_needed( queue.forward_to, self.fully_qualified_namespace ) @@ -436,6 +438,9 @@ async def update_queue( self.fully_qualified_namespace, ) ) + + override_properties_with_keyword_arguments(queue, **kwargs) + to_update = queue._to_internal_entity() to_update.default_message_time_to_live = avoid_timedelta_overflow( @@ -667,7 +672,8 @@ async def update_topic( :rtype: None """ - topic = create_properties_from_dict_if_needed(topic, TopicProperties) + topic = deepcopy(create_properties_from_dict_if_needed(topic, TopicProperties)) + override_properties_with_keyword_arguments(topic, **kwargs) to_update = topic._to_internal_entity() to_update.default_message_time_to_live = avoid_timedelta_overflow( # type: ignore @@ -927,10 +933,8 @@ async def update_subscription( """ _validate_entity_name_type(topic_name, display_name="topic_name") - - subscription = create_properties_from_dict_if_needed( - subscription, SubscriptionProperties - ) + # we should not mutate the input, making a copy first for update + subscription = deepcopy(create_properties_from_dict_if_needed(subscription, SubscriptionProperties)) subscription.forward_to = _normalize_entity_path_to_full_path_if_needed( subscription.forward_to, self.fully_qualified_namespace ) @@ -940,6 +944,10 @@ async def update_subscription( self.fully_qualified_namespace, ) ) + override_properties_with_keyword_arguments( + subscription, + **kwargs + ) to_update = subscription._to_internal_entity() to_update.default_message_time_to_live = avoid_timedelta_overflow( # type: ignore @@ -1140,8 +1148,9 @@ async def update_rule( :rtype: None """ _validate_topic_and_subscription_types(topic_name, subscription_name) - - rule = create_properties_from_dict_if_needed(rule, RuleProperties) + # we should not mutate the input, making a copy first for update + rule = deepcopy(create_properties_from_dict_if_needed(rule, RuleProperties)) + override_properties_with_keyword_arguments(rule, **kwargs) 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 09dfebd66180..65490851a061 100644 --- a/sdk/servicebus/azure-servicebus/azure/servicebus/management/_management_client.py +++ b/sdk/servicebus/azure-servicebus/azure/servicebus/management/_management_client.py @@ -6,6 +6,7 @@ # pylint:disable=specify-parameter-names-in-call # pylint:disable=too-many-lines import functools +from copy import deepcopy from typing import TYPE_CHECKING, Dict, Any, Union, cast, Mapping from xml.etree.ElementTree import ElementTree @@ -47,6 +48,7 @@ serialize_rule_key_values, extract_rule_data_template, create_properties_from_dict_if_needed, + override_properties_with_keyword_arguments, _normalize_entity_path_to_full_path_if_needed, _validate_entity_name_type, _validate_topic_and_subscription_types, @@ -416,7 +418,8 @@ def update_queue(self, queue, **kwargs): :type queue: ~azure.servicebus.management.QueueProperties :rtype: None """ - queue = create_properties_from_dict_if_needed(queue, QueueProperties) + # we should not mutate the input, making a copy first for update + queue = deepcopy(create_properties_from_dict_if_needed(queue, QueueProperties)) queue.forward_to = _normalize_entity_path_to_full_path_if_needed( queue.forward_to, self.fully_qualified_namespace ) @@ -426,8 +429,14 @@ def update_queue(self, queue, **kwargs): self.fully_qualified_namespace, ) ) - to_update = queue._to_internal_entity() + property_keyword_arguments = {key: kwargs.pop(key) for key in set(kwargs.keys()) if key in queue.keys()} + override_properties_with_keyword_arguments( + queue, + **property_keyword_arguments + ) + + to_update = queue._to_internal_entity() to_update.default_message_time_to_live = avoid_timedelta_overflow( to_update.default_message_time_to_live ) @@ -656,18 +665,14 @@ def update_topic(self, topic, **kwargs): :type topic: ~azure.servicebus.management.TopicProperties :rtype: None """ - - topic = create_properties_from_dict_if_needed(topic, TopicProperties) - to_update = topic._to_internal_entity() - - 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 + # we should not mutate the input, making a copy first for update + topic = deepcopy(create_properties_from_dict_if_needed(topic, TopicProperties)) + property_keyword_arguments = {key: kwargs.pop(key) for key in set(kwargs.keys()) if key in topic.keys()} + override_properties_with_keyword_arguments( + topic, + **property_keyword_arguments ) + to_update = topic._to_internal_entity() to_update.default_message_time_to_live = avoid_timedelta_overflow( # type: ignore to_update.default_message_time_to_live @@ -920,9 +925,11 @@ def update_subscription(self, topic_name, subscription, **kwargs): 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_dict_if_needed(subscription, SubscriptionProperties) # type: ignore + # we should not mutate the input, making a copy first for update + subscription = deepcopy( + create_properties_from_dict_if_needed(subscription, SubscriptionProperties) # type: ignore + ) subscription.forward_to = _normalize_entity_path_to_full_path_if_needed( subscription.forward_to, self.fully_qualified_namespace ) @@ -932,6 +939,10 @@ def update_subscription(self, topic_name, subscription, **kwargs): self.fully_qualified_namespace, ) ) + + property_keyword_arguments = {key: kwargs.pop(key) for key in set(kwargs.keys()) if key in subscription.keys()} + override_properties_with_keyword_arguments(subscription, **property_keyword_arguments) + to_update = subscription._to_internal_entity() to_update.default_message_time_to_live = avoid_timedelta_overflow( # type: ignore @@ -1121,8 +1132,13 @@ def update_rule(self, topic_name, subscription_name, rule, **kwargs): :rtype: None """ _validate_topic_and_subscription_types(topic_name, subscription_name) - - rule = create_properties_from_dict_if_needed(rule, RuleProperties) + # we should not mutate the input, making a copy first for update + rule = deepcopy(create_properties_from_dict_if_needed(rule, RuleProperties)) + property_keyword_arguments = {key: kwargs.pop(key) for key in set(kwargs.keys()) if key in rule.keys()} + override_properties_with_keyword_arguments( + rule, + **property_keyword_arguments + ) 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 311b1a61277f..2c1a6d389198 100644 --- a/sdk/servicebus/azure-servicebus/azure/servicebus/management/_utils.py +++ b/sdk/servicebus/azure-servicebus/azure/servicebus/management/_utils.py @@ -368,3 +368,12 @@ def create_properties_from_dict_if_needed(properties, sb_resource_type): sb_resource_type.__name__ ) ) + + +def override_properties_with_keyword_arguments(properties, **kwargs): + # type: (PropertiesType, Any) -> None + if not kwargs: + return + intersection_keys = set.intersection(set(properties.keys()), set(kwargs.keys())) + for key in intersection_keys: + properties[key] = kwargs.get(key) From 1a6c80eb048a15717f62e6303740dac0fbbd1b72 Mon Sep 17 00:00:00 2001 From: "Adam Ling (MSFT)" Date: Thu, 22 Apr 2021 08:26:06 -0700 Subject: [PATCH 02/14] updat impl --- .../aio/management/_management_client_async.py | 16 +++++++++------- .../servicebus/management/_management_client.py | 16 +++------------- .../azure/servicebus/management/_utils.py | 6 +++--- 3 files changed, 15 insertions(+), 23 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 044fcd9ccf4c..2d225741f312 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 @@ -439,7 +439,8 @@ async def update_queue( ) ) - override_properties_with_keyword_arguments(queue, **kwargs) + property_keyword_arguments = {key: kwargs.pop(key) for key in set(kwargs.keys()) if key in queue.keys()} + override_properties_with_keyword_arguments(queue, **property_keyword_arguments) to_update = queue._to_internal_entity() @@ -673,7 +674,8 @@ async def update_topic( """ topic = deepcopy(create_properties_from_dict_if_needed(topic, TopicProperties)) - override_properties_with_keyword_arguments(topic, **kwargs) + property_keyword_arguments = {key: kwargs.pop(key) for key in set(kwargs.keys()) if key in topic.keys()} + override_properties_with_keyword_arguments(topic, **property_keyword_arguments) to_update = topic._to_internal_entity() to_update.default_message_time_to_live = avoid_timedelta_overflow( # type: ignore @@ -944,10 +946,9 @@ async def update_subscription( self.fully_qualified_namespace, ) ) - override_properties_with_keyword_arguments( - subscription, - **kwargs - ) + property_keyword_arguments = {key: kwargs.pop(key) for key in set(kwargs.keys()) if key in subscription.keys()} + override_properties_with_keyword_arguments(subscription, **property_keyword_arguments) + to_update = subscription._to_internal_entity() to_update.default_message_time_to_live = avoid_timedelta_overflow( # type: ignore @@ -1150,7 +1151,8 @@ async def update_rule( _validate_topic_and_subscription_types(topic_name, subscription_name) # we should not mutate the input, making a copy first for update rule = deepcopy(create_properties_from_dict_if_needed(rule, RuleProperties)) - override_properties_with_keyword_arguments(rule, **kwargs) + property_keyword_arguments = {key: kwargs.pop(key) for key in set(kwargs.keys()) if key in rule.keys()} + override_properties_with_keyword_arguments(rule, **property_keyword_arguments) 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 65490851a061..672a84f99460 100644 --- a/sdk/servicebus/azure-servicebus/azure/servicebus/management/_management_client.py +++ b/sdk/servicebus/azure-servicebus/azure/servicebus/management/_management_client.py @@ -431,10 +431,7 @@ def update_queue(self, queue, **kwargs): ) property_keyword_arguments = {key: kwargs.pop(key) for key in set(kwargs.keys()) if key in queue.keys()} - override_properties_with_keyword_arguments( - queue, - **property_keyword_arguments - ) + override_properties_with_keyword_arguments(queue, **property_keyword_arguments) to_update = queue._to_internal_entity() to_update.default_message_time_to_live = avoid_timedelta_overflow( @@ -668,10 +665,7 @@ def update_topic(self, topic, **kwargs): # we should not mutate the input, making a copy first for update topic = deepcopy(create_properties_from_dict_if_needed(topic, TopicProperties)) property_keyword_arguments = {key: kwargs.pop(key) for key in set(kwargs.keys()) if key in topic.keys()} - override_properties_with_keyword_arguments( - topic, - **property_keyword_arguments - ) + override_properties_with_keyword_arguments(topic, **property_keyword_arguments) to_update = topic._to_internal_entity() to_update.default_message_time_to_live = avoid_timedelta_overflow( # type: ignore @@ -939,7 +933,6 @@ def update_subscription(self, topic_name, subscription, **kwargs): self.fully_qualified_namespace, ) ) - property_keyword_arguments = {key: kwargs.pop(key) for key in set(kwargs.keys()) if key in subscription.keys()} override_properties_with_keyword_arguments(subscription, **property_keyword_arguments) @@ -1135,10 +1128,7 @@ def update_rule(self, topic_name, subscription_name, rule, **kwargs): # we should not mutate the input, making a copy first for update rule = deepcopy(create_properties_from_dict_if_needed(rule, RuleProperties)) property_keyword_arguments = {key: kwargs.pop(key) for key in set(kwargs.keys()) if key in rule.keys()} - override_properties_with_keyword_arguments( - rule, - **property_keyword_arguments - ) + override_properties_with_keyword_arguments(rule, **property_keyword_arguments) 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 2c1a6d389198..41f5d7f40301 100644 --- a/sdk/servicebus/azure-servicebus/azure/servicebus/management/_utils.py +++ b/sdk/servicebus/azure-servicebus/azure/servicebus/management/_utils.py @@ -374,6 +374,6 @@ def override_properties_with_keyword_arguments(properties, **kwargs): # type: (PropertiesType, Any) -> None if not kwargs: return - intersection_keys = set.intersection(set(properties.keys()), set(kwargs.keys())) - for key in intersection_keys: - properties[key] = kwargs.get(key) + for key in kwargs.keys(): + if key in properties.keys(): + properties[key] = kwargs.get(key) From 7b0980065f2c3663c2a4f940d13fa6f87e503022 Mon Sep 17 00:00:00 2001 From: "Adam Ling (MSFT)" Date: Thu, 22 Apr 2021 08:27:01 -0700 Subject: [PATCH 03/14] add test and recordings --- ....test_async_mgmt_queue_update_success.yaml | 285 ++++++++++------ ..._mgmt_queue_async_update_dict_success.yaml | 167 ++++++--- ...c.test_async_mgmt_rule_update_success.yaml | 197 +++++++---- ...t_mgmt_rule_async_update_dict_success.yaml | 197 +++++++---- ...sync_mgmt_subscription_update_success.yaml | 323 +++++++++++------- ...ubscription_async_update_dict_success.yaml | 224 +++++++----- ....test_async_mgmt_topic_update_success.yaml | 181 ++++++---- ..._mgmt_topic_async_update_dict_success.yaml | 157 ++++++--- .../mgmt_tests/test_mgmt_queues_async.py | 67 +++- .../mgmt_tests/test_mgmt_rules_async.py | 26 ++ .../test_mgmt_subscriptions_async.py | 47 ++- .../mgmt_tests/test_mgmt_topics_async.py | 48 +++ ...s.test_mgmt_queue_update_dict_success.yaml | 171 +++++++--- ...queues.test_mgmt_queue_update_success.yaml | 273 ++++++++++----- ...es.test_mgmt_rule_update_dict_success.yaml | 197 ++++++++--- ...t_rules.test_mgmt_rule_update_success.yaml | 195 ++++++++--- ...mgmt_subscription_update_dict_success.yaml | 220 ++++++++---- ...test_mgmt_subscription_update_success.yaml | 301 ++++++++++------ ...s.test_mgmt_topic_update_dict_success.yaml | 161 ++++++--- ...topics.test_mgmt_topic_update_success.yaml | 183 +++++++--- .../tests/mgmt_tests/test_mgmt_queues.py | 66 ++++ .../tests/mgmt_tests/test_mgmt_rules.py | 26 ++ .../mgmt_tests/test_mgmt_subscriptions.py | 45 +++ .../tests/mgmt_tests/test_mgmt_topics.py | 48 +++ 24 files changed, 2685 insertions(+), 1120 deletions(-) diff --git a/sdk/servicebus/azure-servicebus/tests/async_tests/mgmt_tests/recordings/test_mgmt_queues_async.test_async_mgmt_queue_update_success.yaml b/sdk/servicebus/azure-servicebus/tests/async_tests/mgmt_tests/recordings/test_mgmt_queues_async.test_async_mgmt_queue_update_success.yaml index 4edfa600bfad..871653e6bc3a 100644 --- a/sdk/servicebus/azure-servicebus/tests/async_tests/mgmt_tests/recordings/test_mgmt_queues_async.test_async_mgmt_queue_update_success.yaml +++ b/sdk/servicebus/azure-servicebus/tests/async_tests/mgmt_tests/recordings/test_mgmt_queues_async.test_async_mgmt_queue_update_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://servicebustestq3qyl22c5l.servicebus.windows.net/$Resources/queues?$skip=0&$top=100&api-version=2017-042021-04-15T16:30:11Z + string: Queueshttps://servicebustestfqnwzqws3j.servicebus.windows.net/$Resources/queues?$skip=0&$top=100&api-version=2017-042021-04-22T14:22:02Z headers: content-type: application/atom+xml;type=feed;charset=utf-8 - date: Thu, 15 Apr 2021 16:30:11 GMT + date: Thu, 22 Apr 2021 14:22:01 GMT server: Microsoft-HTTPAPI/2.0 transfer-encoding: chunked status: code: 200 message: OK - url: https://servicebustestq3qyl22c5l.servicebus.windows.net/$Resources/queues?$skip=0&$top=100&api-version=2017-04 + url: https://servicebustestfqnwzqws3j.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/ewuidfj?api-version=2017-04 response: body: - string: https://servicebustestq3qyl22c5l.servicebus.windows.net/ewuidfj?api-version=2017-04ewuidfj2021-04-15T16:30:12Z2021-04-15T16:30:12Zservicebustestq3qyl22c5lhttps://servicebustestfqnwzqws3j.servicebus.windows.net/ewuidfj?api-version=2017-04ewuidfj2021-04-22T14:22:03Z2021-04-22T14:22:03Zservicebustestfqnwzqws3jPT1M1024falsefalseP10675199DT2H48M5.4775807SfalsePT10M10true00falseActive2021-04-15T16:30:12.28Z2021-04-15T16:30:12.327ZtrueP10675199DT2H48M5.4775807SfalseAvailablefalse + xmlns:i="http://www.w3.org/2001/XMLSchema-instance">PT1M1024falsefalseP10675199DT2H48M5.4775807SfalsePT10M10true00falseActive2021-04-22T14:22:03.453Z2021-04-22T14:22:03.523ZtrueP10675199DT2H48M5.4775807SfalseAvailablefalse headers: content-type: application/atom+xml;type=entry;charset=utf-8 - date: Thu, 15 Apr 2021 16:30:12 GMT + date: Thu, 22 Apr 2021 14:22:03 GMT server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 transfer-encoding: chunked status: code: 201 message: Created - url: https://servicebustestq3qyl22c5l.servicebus.windows.net/ewuidfj?api-version=2017-04 + url: https://servicebustestfqnwzqws3j.servicebus.windows.net/ewuidfj?api-version=2017-04 - request: body: ' @@ -72,27 +72,27 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/dkfjaks?api-version=2017-04 response: body: - string: https://servicebustestq3qyl22c5l.servicebus.windows.net/dkfjaks?api-version=2017-04dkfjaks2021-04-15T16:30:13Z2021-04-15T16:30:13Zservicebustestq3qyl22c5lhttps://servicebustestfqnwzqws3j.servicebus.windows.net/dkfjaks?api-version=2017-04dkfjaks2021-04-22T14:22:04Z2021-04-22T14:22:04Zservicebustestfqnwzqws3jP10675199DT2H48M5.4775807S1024falsePT10Mtrue0falsefalseActive2021-04-15T16:30:13.42Z2021-04-15T16:30:13.467ZtrueP10675199DT2H48M5.4775807SfalseAvailablefalsefalse + xmlns:i="http://www.w3.org/2001/XMLSchema-instance">P10675199DT2H48M5.4775807S1024falsePT10Mtrue0falsefalseActive2021-04-22T14:22:04.643Z2021-04-22T14:22:04.68ZtrueP10675199DT2H48M5.4775807SfalseAvailablefalsefalse headers: content-type: application/atom+xml;type=entry;charset=utf-8 - date: Thu, 15 Apr 2021 16:30:13 GMT + date: Thu, 22 Apr 2021 14:22:04 GMT server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 transfer-encoding: chunked status: code: 201 message: Created - url: https://servicebustestq3qyl22c5l.servicebus.windows.net/dkfjaks?api-version=2017-04 + url: https://servicebustestfqnwzqws3j.servicebus.windows.net/dkfjaks?api-version=2017-04 - request: body: ' PT2M1024falsefalseP10675199DT2H48M5.477539SfalsePT10M10true00falseActive2021-04-15T16:30:12.280Z2021-04-15T16:30:12.327ZtrueP10675199DT2H48M5.477539SfalseAvailablefalse' + />Active2021-04-22T14:22:03.453Z2021-04-22T14:22:03.523ZtrueP10675199DT2H48M5.477539SfalseAvailablefalse' headers: Accept: - application/xml @@ -108,22 +108,22 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/ewuidfj?api-version=2017-04 response: body: - string: https://servicebustestq3qyl22c5l.servicebus.windows.net/ewuidfj?api-version=2017-04ewuidfj2021-04-15T16:30:14Zservicebustestq3qyl22c5lhttps://servicebustestfqnwzqws3j.servicebus.windows.net/ewuidfj?api-version=2017-04ewuidfj2021-04-22T14:22:05Zservicebustestfqnwzqws3jPT2M1024falsefalseP10675199DT2H48M5.477539SfalsePT10M10true00falseActive2021-04-15T16:30:12.28Z2021-04-15T16:30:12.327ZtrueP10675199DT2H48M5.477539SfalseAvailablefalse + xmlns:i="http://www.w3.org/2001/XMLSchema-instance">PT2M1024falsefalseP10675199DT2H48M5.477539SfalsePT10M10true00falseActive2021-04-22T14:22:03.453Z2021-04-22T14:22:03.523ZtrueP10675199DT2H48M5.477539SfalseAvailablefalse headers: content-type: application/atom+xml;type=entry;charset=utf-8 - date: Thu, 15 Apr 2021 16:30:13 GMT - etag: '637541010123270000' + date: Thu, 22 Apr 2021 14:22:04 GMT + etag: '637546981235230000' server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 transfer-encoding: chunked status: code: 200 message: OK - url: https://servicebustestq3qyl22c5l.servicebus.windows.net/ewuidfj?api-version=2017-04 + url: https://servicebustestfqnwzqws3j.servicebus.windows.net/ewuidfj?api-version=2017-04 - request: body: null headers: @@ -135,30 +135,30 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/ewuidfj?enrich=false&api-version=2017-04 response: body: - string: https://servicebustestq3qyl22c5l.servicebus.windows.net/ewuidfj?enrich=false&api-version=2017-04ewuidfj2021-04-15T16:30:12Z2021-04-15T16:30:14Zservicebustestq3qyl22c5lhttps://servicebustestfqnwzqws3j.servicebus.windows.net/ewuidfj?enrich=false&api-version=2017-04ewuidfj2021-04-22T14:22:03Z2021-04-22T14:22:05Zservicebustestfqnwzqws3jPT2M1024falsefalseP10675199DT2H48M5.477539SfalsePT10M10true00falseActive2021-04-15T16:30:12.28Z2021-04-15T16:30:14.17Z0001-01-01T00:00:00ZtruePT2M1024falsefalseP10675199DT2H48M5.477539SfalsePT10M10true00falseActive2021-04-22T14:22:03.453Z2021-04-22T14:22:05.357Z0001-01-01T00:00:00Ztrue00000P10675199DT2H48M5.477539SfalseAvailablefalse headers: content-type: application/atom+xml;type=entry;charset=utf-8 - date: Thu, 15 Apr 2021 16:30:13 GMT - etag: '637541010141700000' + date: Thu, 22 Apr 2021 14:22:04 GMT + etag: '637546981253570000' server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 transfer-encoding: chunked status: code: 200 message: OK - url: https://servicebustestq3qyl22c5l.servicebus.windows.net/ewuidfj?enrich=false&api-version=2017-04 + url: https://servicebustestfqnwzqws3j.servicebus.windows.net/ewuidfj?enrich=false&api-version=2017-04 - request: body: ' PT2M1024falsefalseP10675199DT2H48M5.477539SfalsePT10M10true00falseActive2021-04-15T16:30:12.280Z2021-04-15T16:30:14.170Z0001-01-01T00:00:00.000Ztrue00000P10675199DT2H48M5.477539SfalseAvailablefalsesb://servicebustestq3qyl22c5l.servicebus.windows.net/dkfjakssb://servicebustestq3qyl22c5l.servicebus.windows.net/dkfjaks' + />Active2021-04-22T14:22:03.453Z2021-04-22T14:22:05.357Z0001-01-01T00:00:00.000Ztrue00000P10675199DT2H48M5.477539SfalseAvailablefalsesb://servicebustestfqnwzqws3j.servicebus.windows.net/dkfjakssb://servicebustestfqnwzqws3j.servicebus.windows.net/dkfjaks' headers: Accept: - application/xml @@ -169,32 +169,32 @@ interactions: If-Match: - '*' ServiceBusDlqSupplementaryAuthorization: - - SharedAccessSignature sr=sb%3A%2F%2Fservicebustestq3qyl22c5l.servicebus.windows.net%2Fdkfjaks&sig=4gYpBZfuBIPY2%2b68%2bQWuc4iJOTxd7DlgwY3FPDizMSo%3d&se=1618507814&skn=RootManageSharedAccessKey + - SharedAccessSignature sr=sb%3A%2F%2Fservicebustestfqnwzqws3j.servicebus.windows.net%2Fdkfjaks&sig=9eCE6EFfh7DCGTxM2%2b%2fQW8QH9QvIaswfeuAwb5zuC7A%3d&se=1619104925&skn=RootManageSharedAccessKey ServiceBusSupplementaryAuthorization: - - SharedAccessSignature sr=sb%3A%2F%2Fservicebustestq3qyl22c5l.servicebus.windows.net%2Fdkfjaks&sig=4gYpBZfuBIPY2%2b68%2bQWuc4iJOTxd7DlgwY3FPDizMSo%3d&se=1618507814&skn=RootManageSharedAccessKey + - SharedAccessSignature sr=sb%3A%2F%2Fservicebustestfqnwzqws3j.servicebus.windows.net%2Fdkfjaks&sig=9eCE6EFfh7DCGTxM2%2b%2fQW8QH9QvIaswfeuAwb5zuC7A%3d&se=1619104925&skn=RootManageSharedAccessKey User-Agent: - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: PUT uri: https://servicebustestsbname.servicebus.windows.net/ewuidfj?api-version=2017-04 response: body: - string: https://servicebustestq3qyl22c5l.servicebus.windows.net/ewuidfj?api-version=2017-04ewuidfj2021-04-15T16:30:14Zservicebustestq3qyl22c5lhttps://servicebustestfqnwzqws3j.servicebus.windows.net/ewuidfj?api-version=2017-04ewuidfj2021-04-22T14:22:05Zservicebustestfqnwzqws3jPT2M1024falsefalseP10675199DT2H48M5.477539SfalsePT10M10true00falseActive2021-04-15T16:30:12.28Z2021-04-15T16:30:14.17Z0001-01-01T00:00:00Ztrue00000P10675199DT2H48M5.477539SfalseAvailablefalsesb://servicebustestq3qyl22c5l.servicebus.windows.net/dkfjakssb://servicebustestq3qyl22c5l.servicebus.windows.net/dkfjaks + xmlns:i="http://www.w3.org/2001/XMLSchema-instance">PT2M1024falsefalseP10675199DT2H48M5.477539SfalsePT10M10true00falseActive2021-04-22T14:22:03.453Z2021-04-22T14:22:05.357Z0001-01-01T00:00:00Ztrue00000P10675199DT2H48M5.477539SfalseAvailablefalsesb://servicebustestfqnwzqws3j.servicebus.windows.net/dkfjakssb://servicebustestfqnwzqws3j.servicebus.windows.net/dkfjaks headers: content-type: application/atom+xml;type=entry;charset=utf-8 - date: Thu, 15 Apr 2021 16:30:14 GMT - etag: '637541010141700000' + date: Thu, 22 Apr 2021 14:22:04 GMT + etag: '637546981253570000' server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 transfer-encoding: chunked status: code: 200 message: OK - url: https://servicebustestq3qyl22c5l.servicebus.windows.net/ewuidfj?api-version=2017-04 + url: https://servicebustestfqnwzqws3j.servicebus.windows.net/ewuidfj?api-version=2017-04 - request: body: null headers: @@ -206,30 +206,30 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/ewuidfj?enrich=false&api-version=2017-04 response: body: - string: https://servicebustestq3qyl22c5l.servicebus.windows.net/ewuidfj?enrich=false&api-version=2017-04ewuidfj2021-04-15T16:30:12Z2021-04-15T16:30:14Zservicebustestq3qyl22c5lhttps://servicebustestfqnwzqws3j.servicebus.windows.net/ewuidfj?enrich=false&api-version=2017-04ewuidfj2021-04-22T14:22:03Z2021-04-22T14:22:05Zservicebustestfqnwzqws3jPT2M1024falsefalseP10675199DT2H48M5.477539SfalsePT10M10true00falseActive2021-04-15T16:30:12.28Z2021-04-15T16:30:14.707Z0001-01-01T00:00:00Ztrue00000P10675199DT2H48M5.477539SfalseAvailablefalsesb://servicebustestq3qyl22c5l.servicebus.windows.net/dkfjakssb://servicebustestq3qyl22c5l.servicebus.windows.net/dkfjaks + xmlns:i="http://www.w3.org/2001/XMLSchema-instance">PT2M1024falsefalseP10675199DT2H48M5.477539SfalsePT10M10true00falseActive2021-04-22T14:22:03.453Z2021-04-22T14:22:05.87Z0001-01-01T00:00:00Ztrue00000P10675199DT2H48M5.477539SfalseAvailablefalsesb://servicebustestfqnwzqws3j.servicebus.windows.net/dkfjakssb://servicebustestfqnwzqws3j.servicebus.windows.net/dkfjaks headers: content-type: application/atom+xml;type=entry;charset=utf-8 - date: Thu, 15 Apr 2021 16:30:14 GMT - etag: '637541010147070000' + date: Thu, 22 Apr 2021 14:22:05 GMT + etag: '637546981258700000' server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 transfer-encoding: chunked status: code: 200 message: OK - url: https://servicebustestq3qyl22c5l.servicebus.windows.net/ewuidfj?enrich=false&api-version=2017-04 + url: https://servicebustestfqnwzqws3j.servicebus.windows.net/ewuidfj?enrich=false&api-version=2017-04 - request: body: ' PT2M1024falsefalseP10675199DT2H48M5.477539SfalsePT10M10true00falseActive2021-04-15T16:30:12.280Z2021-04-15T16:30:14.707Z0001-01-01T00:00:00.000Ztrue00000P10675199DT2H48M5.477539SfalseAvailablefalse' + />Active2021-04-22T14:22:03.453Z2021-04-22T14:22:05.870Z0001-01-01T00:00:00.000Ztrue00000P10675199DT2H48M5.477539SfalseAvailablefalse' headers: Accept: - application/xml @@ -245,23 +245,23 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/ewuidfj?api-version=2017-04 response: body: - string: https://servicebustestq3qyl22c5l.servicebus.windows.net/ewuidfj?api-version=2017-04ewuidfj2021-04-15T16:30:15Zservicebustestq3qyl22c5lhttps://servicebustestfqnwzqws3j.servicebus.windows.net/ewuidfj?api-version=2017-04ewuidfj2021-04-22T14:22:06Zservicebustestfqnwzqws3jPT2M1024falsefalseP10675199DT2H48M5.477539SfalsePT10M10true00falseActive2021-04-15T16:30:12.28Z2021-04-15T16:30:14.707Z0001-01-01T00:00:00ZtruePT2M1024falsefalseP10675199DT2H48M5.477539SfalsePT10M10true00falseActive2021-04-22T14:22:03.453Z2021-04-22T14:22:05.87Z0001-01-01T00:00:00Ztrue00000P10675199DT2H48M5.477539SfalseAvailablefalse headers: content-type: application/atom+xml;type=entry;charset=utf-8 - date: Thu, 15 Apr 2021 16:30:14 GMT - etag: '637541010147070000' + date: Thu, 22 Apr 2021 14:22:05 GMT + etag: '637546981258700000' server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 transfer-encoding: chunked status: code: 200 message: OK - url: https://servicebustestq3qyl22c5l.servicebus.windows.net/ewuidfj?api-version=2017-04 + url: https://servicebustestfqnwzqws3j.servicebus.windows.net/ewuidfj?api-version=2017-04 - request: body: null headers: @@ -273,30 +273,30 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/ewuidfj?enrich=false&api-version=2017-04 response: body: - string: https://servicebustestq3qyl22c5l.servicebus.windows.net/ewuidfj?enrich=false&api-version=2017-04ewuidfj2021-04-15T16:30:12Z2021-04-15T16:30:15Zservicebustestq3qyl22c5lhttps://servicebustestfqnwzqws3j.servicebus.windows.net/ewuidfj?enrich=false&api-version=2017-04ewuidfj2021-04-22T14:22:03Z2021-04-22T14:22:06Zservicebustestfqnwzqws3jPT2M1024falsefalseP10675199DT2H48M5.477539SfalsePT10M10true00falseActive2021-04-15T16:30:12.28Z2021-04-15T16:30:15.227Z0001-01-01T00:00:00ZtruePT2M1024falsefalseP10675199DT2H48M5.477539SfalsePT10M10true00falseActive2021-04-22T14:22:03.453Z2021-04-22T14:22:06.417Z0001-01-01T00:00:00Ztrue00000P10675199DT2H48M5.477539SfalseAvailablefalse headers: content-type: application/atom+xml;type=entry;charset=utf-8 - date: Thu, 15 Apr 2021 16:30:15 GMT - etag: '637541010152270000' + date: Thu, 22 Apr 2021 14:22:05 GMT + etag: '637546981264170000' server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 transfer-encoding: chunked status: code: 200 message: OK - url: https://servicebustestq3qyl22c5l.servicebus.windows.net/ewuidfj?enrich=false&api-version=2017-04 + url: https://servicebustestfqnwzqws3j.servicebus.windows.net/ewuidfj?enrich=false&api-version=2017-04 - request: body: ' PT13S3072falsefalsePT11MtruePT12M14true00falseActive2021-04-15T16:30:12.280Z2021-04-15T16:30:15.227Z0001-01-01T00:00:00.000Ztrue00000PT10MfalseAvailabletruesb://servicebustestq3qyl22c5l.servicebus.windows.net/ewuidfjsb://servicebustestq3qyl22c5l.servicebus.windows.net/ewuidfj' + />Active2021-04-22T14:22:03.453Z2021-04-22T14:22:06.417Z0001-01-01T00:00:00.000Ztrue00000PT10MfalseAvailabletruesb://servicebustestfqnwzqws3j.servicebus.windows.net/ewuidfjsb://servicebustestfqnwzqws3j.servicebus.windows.net/ewuidfj' headers: Accept: - application/xml @@ -307,32 +307,32 @@ interactions: If-Match: - '*' ServiceBusDlqSupplementaryAuthorization: - - SharedAccessSignature sr=sb%3A%2F%2Fservicebustestq3qyl22c5l.servicebus.windows.net%2Fewuidfj&sig=b29LBuPs0hhiWgZi42PK9gAPsk47wtDQ9Zry3nXL9jw%3d&se=1618507815&skn=RootManageSharedAccessKey + - SharedAccessSignature sr=sb%3A%2F%2Fservicebustestfqnwzqws3j.servicebus.windows.net%2Fewuidfj&sig=d6X10PaSTT9Rj98yJXEjUPA7tr5zYppaLVFDLPJJ97U%3d&se=1619104927&skn=RootManageSharedAccessKey ServiceBusSupplementaryAuthorization: - - SharedAccessSignature sr=sb%3A%2F%2Fservicebustestq3qyl22c5l.servicebus.windows.net%2Fewuidfj&sig=b29LBuPs0hhiWgZi42PK9gAPsk47wtDQ9Zry3nXL9jw%3d&se=1618507815&skn=RootManageSharedAccessKey + - SharedAccessSignature sr=sb%3A%2F%2Fservicebustestfqnwzqws3j.servicebus.windows.net%2Fewuidfj&sig=d6X10PaSTT9Rj98yJXEjUPA7tr5zYppaLVFDLPJJ97U%3d&se=1619104927&skn=RootManageSharedAccessKey User-Agent: - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: PUT uri: https://servicebustestsbname.servicebus.windows.net/ewuidfj?api-version=2017-04 response: body: - string: https://servicebustestq3qyl22c5l.servicebus.windows.net/ewuidfj?api-version=2017-04ewuidfj2021-04-15T16:30:15Zservicebustestq3qyl22c5lhttps://servicebustestfqnwzqws3j.servicebus.windows.net/ewuidfj?api-version=2017-04ewuidfj2021-04-22T14:22:06Zservicebustestfqnwzqws3jPT13S3072falsefalsePT11MtruePT12M14true00falseActive2021-04-15T16:30:12.28Z2021-04-15T16:30:15.227Z0001-01-01T00:00:00Ztrue00000PT10MfalseAvailabletruesb://servicebustestq3qyl22c5l.servicebus.windows.net/ewuidfjsb://servicebustestq3qyl22c5l.servicebus.windows.net/ewuidfj + xmlns:i="http://www.w3.org/2001/XMLSchema-instance">PT13S3072falsefalsePT11MtruePT12M14true00falseActive2021-04-22T14:22:03.453Z2021-04-22T14:22:06.417Z0001-01-01T00:00:00Ztrue00000PT10MfalseAvailabletruesb://servicebustestfqnwzqws3j.servicebus.windows.net/ewuidfjsb://servicebustestfqnwzqws3j.servicebus.windows.net/ewuidfj headers: content-type: application/atom+xml;type=entry;charset=utf-8 - date: Thu, 15 Apr 2021 16:30:15 GMT - etag: '637541010152270000' + date: Thu, 22 Apr 2021 14:22:06 GMT + etag: '637546981264170000' server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 transfer-encoding: chunked status: code: 200 message: OK - url: https://servicebustestq3qyl22c5l.servicebus.windows.net/ewuidfj?api-version=2017-04 + url: https://servicebustestfqnwzqws3j.servicebus.windows.net/ewuidfj?api-version=2017-04 - request: body: null headers: @@ -344,30 +344,30 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/ewuidfj?enrich=false&api-version=2017-04 response: body: - string: https://servicebustestq3qyl22c5l.servicebus.windows.net/ewuidfj?enrich=false&api-version=2017-04ewuidfj2021-04-15T16:30:12Z2021-04-15T16:30:15Zservicebustestq3qyl22c5lhttps://servicebustestfqnwzqws3j.servicebus.windows.net/ewuidfj?enrich=false&api-version=2017-04ewuidfj2021-04-22T14:22:03Z2021-04-22T14:22:06Zservicebustestfqnwzqws3jPT13S3072falsefalsePT11MtruePT12M14true00falseActive2021-04-15T16:30:12.28Z2021-04-15T16:30:15.897Z0001-01-01T00:00:00Ztrue00000PT10MfalseAvailabletruesb://servicebustestq3qyl22c5l.servicebus.windows.net/ewuidfjsb://servicebustestq3qyl22c5l.servicebus.windows.net/ewuidfj + xmlns:i="http://www.w3.org/2001/XMLSchema-instance">PT13S3072falsefalsePT11MtruePT12M14true00falseActive2021-04-22T14:22:03.453Z2021-04-22T14:22:06.97Z0001-01-01T00:00:00Ztrue00000PT10MfalseAvailabletruesb://servicebustestfqnwzqws3j.servicebus.windows.net/ewuidfjsb://servicebustestfqnwzqws3j.servicebus.windows.net/ewuidfj headers: content-type: application/atom+xml;type=entry;charset=utf-8 - date: Thu, 15 Apr 2021 16:30:15 GMT - etag: '637541010158970000' + date: Thu, 22 Apr 2021 14:22:06 GMT + etag: '637546981269700000' server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 transfer-encoding: chunked status: code: 200 message: OK - url: https://servicebustestq3qyl22c5l.servicebus.windows.net/ewuidfj?enrich=false&api-version=2017-04 + url: https://servicebustestfqnwzqws3j.servicebus.windows.net/ewuidfj?enrich=false&api-version=2017-04 - request: body: ' PT13S3072falsefalsePT11M2StruePT12M3S14true00falseActive2021-04-15T16:30:12.280Z2021-04-15T16:30:15.897Z0001-01-01T00:00:00.000Ztrue00000PT10M1SfalseAvailabletruesb://servicebustestq3qyl22c5l.servicebus.windows.net/ewuidfjsb://servicebustestq3qyl22c5l.servicebus.windows.net/ewuidfj' + />Active2021-04-22T14:22:03.453Z2021-04-22T14:22:06.970Z0001-01-01T00:00:00.000Ztrue00000PT10M1SfalseAvailabletruesb://servicebustestfqnwzqws3j.servicebus.windows.net/ewuidfjsb://servicebustestfqnwzqws3j.servicebus.windows.net/ewuidfj' headers: Accept: - application/xml @@ -378,32 +378,32 @@ interactions: If-Match: - '*' ServiceBusDlqSupplementaryAuthorization: - - SharedAccessSignature sr=sb%3A%2F%2Fservicebustestq3qyl22c5l.servicebus.windows.net%2Fewuidfj&sig=lKToFt%2f5hbWp9y1AK2civmfsjNBLIqJt5PcIfeXNkqs%3d&se=1618507816&skn=RootManageSharedAccessKey + - SharedAccessSignature sr=sb%3A%2F%2Fservicebustestfqnwzqws3j.servicebus.windows.net%2Fewuidfj&sig=d6X10PaSTT9Rj98yJXEjUPA7tr5zYppaLVFDLPJJ97U%3d&se=1619104927&skn=RootManageSharedAccessKey ServiceBusSupplementaryAuthorization: - - SharedAccessSignature sr=sb%3A%2F%2Fservicebustestq3qyl22c5l.servicebus.windows.net%2Fewuidfj&sig=lKToFt%2f5hbWp9y1AK2civmfsjNBLIqJt5PcIfeXNkqs%3d&se=1618507816&skn=RootManageSharedAccessKey + - SharedAccessSignature sr=sb%3A%2F%2Fservicebustestfqnwzqws3j.servicebus.windows.net%2Fewuidfj&sig=d6X10PaSTT9Rj98yJXEjUPA7tr5zYppaLVFDLPJJ97U%3d&se=1619104927&skn=RootManageSharedAccessKey User-Agent: - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: PUT uri: https://servicebustestsbname.servicebus.windows.net/ewuidfj?api-version=2017-04 response: body: - string: https://servicebustestq3qyl22c5l.servicebus.windows.net/ewuidfj?api-version=2017-04ewuidfj2021-04-15T16:30:16Zservicebustestq3qyl22c5lhttps://servicebustestfqnwzqws3j.servicebus.windows.net/ewuidfj?api-version=2017-04ewuidfj2021-04-22T14:22:07Zservicebustestfqnwzqws3jPT13S3072falsefalsePT11M2StruePT12M3S14true00falseActive2021-04-15T16:30:12.28Z2021-04-15T16:30:15.897Z0001-01-01T00:00:00Ztrue00000PT10M1SfalseAvailabletruesb://servicebustestq3qyl22c5l.servicebus.windows.net/ewuidfjsb://servicebustestq3qyl22c5l.servicebus.windows.net/ewuidfj + xmlns:i="http://www.w3.org/2001/XMLSchema-instance">PT13S3072falsefalsePT11M2StruePT12M3S14true00falseActive2021-04-22T14:22:03.453Z2021-04-22T14:22:06.97Z0001-01-01T00:00:00Ztrue00000PT10M1SfalseAvailabletruesb://servicebustestfqnwzqws3j.servicebus.windows.net/ewuidfjsb://servicebustestfqnwzqws3j.servicebus.windows.net/ewuidfj headers: content-type: application/atom+xml;type=entry;charset=utf-8 - date: Thu, 15 Apr 2021 16:30:15 GMT - etag: '637541010158970000' + date: Thu, 22 Apr 2021 14:22:06 GMT + etag: '637546981269700000' server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 transfer-encoding: chunked status: code: 200 message: OK - url: https://servicebustestq3qyl22c5l.servicebus.windows.net/ewuidfj?api-version=2017-04 + url: https://servicebustestfqnwzqws3j.servicebus.windows.net/ewuidfj?api-version=2017-04 - request: body: null headers: @@ -415,23 +415,90 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/ewuidfj?enrich=false&api-version=2017-04 response: body: - string: https://servicebustestq3qyl22c5l.servicebus.windows.net/ewuidfj?enrich=false&api-version=2017-04ewuidfj2021-04-15T16:30:12Z2021-04-15T16:30:16Zservicebustestq3qyl22c5lhttps://servicebustestfqnwzqws3j.servicebus.windows.net/ewuidfj?enrich=false&api-version=2017-04ewuidfj2021-04-22T14:22:03Z2021-04-22T14:22:07Zservicebustestfqnwzqws3jPT13S3072falsefalsePT11M2StruePT12M3S14true00falseActive2021-04-15T16:30:12.28Z2021-04-15T16:30:16.44Z0001-01-01T00:00:00Ztrue00000PT10M1SfalseAvailabletruesb://servicebustestq3qyl22c5l.servicebus.windows.net/ewuidfjsb://servicebustestq3qyl22c5l.servicebus.windows.net/ewuidfj + xmlns:i="http://www.w3.org/2001/XMLSchema-instance">PT13S3072falsefalsePT11M2StruePT12M3S14true00falseActive2021-04-22T14:22:03.453Z2021-04-22T14:22:07.697Z0001-01-01T00:00:00Ztrue00000PT10M1SfalseAvailabletruesb://servicebustestfqnwzqws3j.servicebus.windows.net/ewuidfjsb://servicebustestfqnwzqws3j.servicebus.windows.net/ewuidfj headers: content-type: application/atom+xml;type=entry;charset=utf-8 - date: Thu, 15 Apr 2021 16:30:16 GMT - etag: '637541010164400000' + date: Thu, 22 Apr 2021 14:22:06 GMT + etag: '637546981276970000' server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 transfer-encoding: chunked status: code: 200 message: OK - url: https://servicebustestq3qyl22c5l.servicebus.windows.net/ewuidfj?enrich=false&api-version=2017-04 + url: https://servicebustestfqnwzqws3j.servicebus.windows.net/ewuidfj?enrich=false&api-version=2017-04 +- request: + body: ' + + PT18S2048falsefalsePT16MfalsePT17M15false00falseActive2021-04-22T14:22:03.453Z2021-04-22T14:22:07.697Z0001-01-01T00:00:00.000Ztrue00000PT15MfalseAvailablefalse' + headers: + Accept: + - application/xml + Content-Length: + - '1680' + Content-Type: + - application/atom+xml + If-Match: + - '*' + User-Agent: + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.9 (Windows-10-10.0.19041-SP0) + method: PUT + uri: https://servicebustestsbname.servicebus.windows.net/ewuidfj?api-version=2017-04 + response: + body: + string: https://servicebustestfqnwzqws3j.servicebus.windows.net/ewuidfj?api-version=2017-04ewuidfj2021-04-22T14:22:08Zservicebustestfqnwzqws3jPT18S2048falsefalsePT16MfalsePT17M15false00falseActive2021-04-22T14:22:03.453Z2021-04-22T14:22:07.697Z0001-01-01T00:00:00Ztrue00000PT15MfalseAvailablefalse + headers: + content-type: application/atom+xml;type=entry;charset=utf-8 + date: Thu, 22 Apr 2021 14:22:08 GMT + etag: '637546981276970000' + server: Microsoft-HTTPAPI/2.0 + strict-transport-security: max-age=31536000 + transfer-encoding: chunked + status: + code: 200 + message: OK + url: https://servicebustestfqnwzqws3j.servicebus.windows.net/ewuidfj?api-version=2017-04 +- request: + body: null + headers: + Accept: + - application/xml + User-Agent: + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.9 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://servicebustestsbname.servicebus.windows.net/ewuidfj?enrich=false&api-version=2017-04 + response: + body: + string: https://servicebustestfqnwzqws3j.servicebus.windows.net/ewuidfj?enrich=false&api-version=2017-04ewuidfj2021-04-22T14:22:03Z2021-04-22T14:22:08Zservicebustestfqnwzqws3jPT18S2048falsefalsePT16MfalsePT17M15false00falseActive2021-04-22T14:22:03.453Z2021-04-22T14:22:08.21Z0001-01-01T00:00:00Ztrue00000PT15MfalseAvailablefalse + headers: + content-type: application/atom+xml;type=entry;charset=utf-8 + date: Thu, 22 Apr 2021 14:22:08 GMT + etag: '637546981282100000' + server: Microsoft-HTTPAPI/2.0 + strict-transport-security: max-age=31536000 + transfer-encoding: chunked + status: + code: 200 + message: OK + url: https://servicebustestfqnwzqws3j.servicebus.windows.net/ewuidfj?enrich=false&api-version=2017-04 - request: body: null headers: @@ -446,14 +513,14 @@ interactions: string: '' headers: content-length: '0' - date: Thu, 15 Apr 2021 16:30:16 GMT - etag: '637541010164400000' + date: Thu, 22 Apr 2021 14:22:09 GMT + etag: '637546981282100000' server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 status: code: 200 message: OK - url: https://servicebustestq3qyl22c5l.servicebus.windows.net/ewuidfj?api-version=2017-04 + url: https://servicebustestfqnwzqws3j.servicebus.windows.net/ewuidfj?api-version=2017-04 - request: body: null headers: @@ -468,12 +535,12 @@ interactions: string: '' headers: content-length: '0' - date: Thu, 15 Apr 2021 16:30:17 GMT - etag: '637541010134670000' + date: Thu, 22 Apr 2021 14:22:10 GMT + etag: '637546981246800000' server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 status: code: 200 message: OK - url: https://servicebustestq3qyl22c5l.servicebus.windows.net/dkfjaks?api-version=2017-04 + url: https://servicebustestfqnwzqws3j.servicebus.windows.net/dkfjaks?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 8488d0b4f249..2d786c784b2c 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 @@ -5,22 +5,22 @@ interactions: Accept: - application/xml User-Agent: - - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.9 (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://servicebustestddyod7uodu.servicebus.windows.net/$Resources/queues?$skip=0&$top=100&api-version=2017-042021-03-02T19:55:48Z + string: Queueshttps://servicebustestpwknnldq6x.servicebus.windows.net/$Resources/queues?$skip=0&$top=100&api-version=2017-042021-04-22T14:24:03Z headers: content-type: application/atom+xml;type=feed;charset=utf-8 - date: Tue, 02 Mar 2021 19:55:48 GMT + date: Thu, 22 Apr 2021 14:24:02 GMT server: Microsoft-HTTPAPI/2.0 transfer-encoding: chunked status: code: 200 message: OK - url: https://servicebustestddyod7uodu.servicebus.windows.net/$Resources/queues?$skip=0&$top=100&api-version=2017-04 + url: https://servicebustestpwknnldq6x.servicebus.windows.net/$Resources/queues?$skip=0&$top=100&api-version=2017-04 - request: body: ' @@ -34,26 +34,26 @@ interactions: Content-Type: - application/atom+xml User-Agent: - - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: PUT uri: https://servicebustestsbname.servicebus.windows.net/fjruid?api-version=2017-04 response: body: - string: https://servicebustestddyod7uodu.servicebus.windows.net/fjruid?api-version=2017-04fjruid2021-03-02T19:55:48Z2021-03-02T19:55:49Zservicebustestddyod7uoduhttps://servicebustestpwknnldq6x.servicebus.windows.net/fjruid?api-version=2017-04fjruid2021-04-22T14:24:04Z2021-04-22T14:24:04Zservicebustestpwknnldq6xPT1M1024falsefalseP10675199DT2H48M5.4775807SfalsePT10M10true00falseActive2021-03-02T19:55:48.803Z2021-03-02T19:55:49.33ZtrueP10675199DT2H48M5.4775807SfalseAvailablefalse + xmlns:i="http://www.w3.org/2001/XMLSchema-instance">PT1M1024falsefalseP10675199DT2H48M5.4775807SfalsePT10M10true00falseActive2021-04-22T14:24:04.273Z2021-04-22T14:24:04.33ZtrueP10675199DT2H48M5.4775807SfalseAvailablefalse headers: content-type: application/atom+xml;type=entry;charset=utf-8 - date: Tue, 02 Mar 2021 19:55:49 GMT + date: Thu, 22 Apr 2021 14:24:03 GMT server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 transfer-encoding: chunked status: code: 201 message: Created - url: https://servicebustestddyod7uodu.servicebus.windows.net/fjruid?api-version=2017-04 + url: https://servicebustestpwknnldq6x.servicebus.windows.net/fjruid?api-version=2017-04 - request: body: ' @@ -70,61 +70,61 @@ interactions: If-Match: - '*' User-Agent: - - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: PUT uri: https://servicebustestsbname.servicebus.windows.net/fjruid?api-version=2017-04 response: body: - string: https://servicebustestddyod7uodu.servicebus.windows.net/fjruid?api-version=2017-04fjruid2021-03-02T19:55:49Zservicebustestddyod7uoduhttps://servicebustestpwknnldq6x.servicebus.windows.net/fjruid?api-version=2017-04fjruid2021-04-22T14:24:05Zservicebustestpwknnldq6xPT2M1024falsefalseP10675199DT2H48M5.477539SfalsePT10M10trueActiveP10675199DT2H48M5.477539SfalseAvailablefalse headers: content-type: application/atom+xml;type=entry;charset=utf-8 - date: Tue, 02 Mar 2021 19:55:49 GMT - etag: '637503117493300000' + date: Thu, 22 Apr 2021 14:24:05 GMT + etag: '637546982443300000' server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 transfer-encoding: chunked status: code: 200 message: OK - url: https://servicebustestddyod7uodu.servicebus.windows.net/fjruid?api-version=2017-04 + url: https://servicebustestpwknnldq6x.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) + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.9 (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://servicebustestddyod7uodu.servicebus.windows.net/fjruid?enrich=false&api-version=2017-04fjruid2021-03-02T19:55:48Z2021-03-02T19:55:49Zservicebustestddyod7uoduhttps://servicebustestpwknnldq6x.servicebus.windows.net/fjruid?enrich=false&api-version=2017-04fjruid2021-04-22T14:24:04Z2021-04-22T14:24:05Zservicebustestpwknnldq6xPT2M1024falsefalseP10675199DT2H48M5.477539SfalsePT10M10true00falseActive2021-03-02T19:55:48.803Z2021-03-02T19:55:49.843Z0001-01-01T00:00:00ZtruePT2M1024falsefalseP10675199DT2H48M5.477539SfalsePT10M10true00falseActive2021-04-22T14:24:04.273Z2021-04-22T14:24:05.08Z0001-01-01T00:00:00Ztrue00000P10675199DT2H48M5.477539SfalseAvailablefalse headers: content-type: application/atom+xml;type=entry;charset=utf-8 - date: Tue, 02 Mar 2021 19:55:49 GMT - etag: '637503117498430000' + date: Thu, 22 Apr 2021 14:24:05 GMT + etag: '637546982450800000' server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 transfer-encoding: chunked status: code: 200 message: OK - url: https://servicebustestddyod7uodu.servicebus.windows.net/fjruid?enrich=false&api-version=2017-04 + url: https://servicebustestpwknnldq6x.servicebus.windows.net/fjruid?enrich=false&api-version=2017-04 - request: body: ' PT13S3072falsefalsePT11MtruePT12M14trueActivePT10MfalseAvailabletruesb://servicebustestddyod7uodu.servicebus.windows.net/fjruidsb://servicebustestddyod7uodu.servicebus.windows.net/fjruid' + />ActivePT10MfalseAvailabletruesb://servicebustestpwknnldq6x.servicebus.windows.net/fjruidsb://servicebustestpwknnldq6x.servicebus.windows.net/fjruid' headers: Accept: - application/xml @@ -135,66 +135,131 @@ interactions: If-Match: - '*' ServiceBusDlqSupplementaryAuthorization: - - SharedAccessSignature sr=sb%3A%2F%2Fservicebustestddyod7uodu.servicebus.windows.net%2Ffjruid&sig=VaMpXW3G4F5i%2fJFgNczWAV%2fWF7XLhqCH7H0NDK2F2bQ%3d&se=1614718549&skn=RootManageSharedAccessKey + - SharedAccessSignature sr=sb%3A%2F%2Fservicebustestpwknnldq6x.servicebus.windows.net%2Ffjruid&sig=fooyG%2bHIrDxXJWrBUlW%2fdOywD2yeOOcK0Kg%2frvIq1mM%3d&se=1619105045&skn=RootManageSharedAccessKey ServiceBusSupplementaryAuthorization: - - SharedAccessSignature sr=sb%3A%2F%2Fservicebustestddyod7uodu.servicebus.windows.net%2Ffjruid&sig=VaMpXW3G4F5i%2fJFgNczWAV%2fWF7XLhqCH7H0NDK2F2bQ%3d&se=1614718549&skn=RootManageSharedAccessKey + - SharedAccessSignature sr=sb%3A%2F%2Fservicebustestpwknnldq6x.servicebus.windows.net%2Ffjruid&sig=fooyG%2bHIrDxXJWrBUlW%2fdOywD2yeOOcK0Kg%2frvIq1mM%3d&se=1619105045&skn=RootManageSharedAccessKey User-Agent: - - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: PUT uri: https://servicebustestsbname.servicebus.windows.net/fjruid?api-version=2017-04 response: body: - string: https://servicebustestddyod7uodu.servicebus.windows.net/fjruid?api-version=2017-04fjruid2021-03-02T19:55:50Zservicebustestddyod7uoduhttps://servicebustestpwknnldq6x.servicebus.windows.net/fjruid?api-version=2017-04fjruid2021-04-22T14:24:05Zservicebustestpwknnldq6xPT13S3072falsefalsePT11MtruePT12M14trueActivePT10MfalseAvailabletruesb://servicebustestddyod7uodu.servicebus.windows.net/fjruidsb://servicebustestddyod7uodu.servicebus.windows.net/fjruid + xmlns:i="http://www.w3.org/2001/XMLSchema-instance">PT13S3072falsefalsePT11MtruePT12M14trueActivePT10MfalseAvailabletruesb://servicebustestpwknnldq6x.servicebus.windows.net/fjruidsb://servicebustestpwknnldq6x.servicebus.windows.net/fjruid headers: content-type: application/atom+xml;type=entry;charset=utf-8 - date: Tue, 02 Mar 2021 19:55:50 GMT - etag: '637503117498430000' + date: Thu, 22 Apr 2021 14:24:05 GMT + etag: '637546982450800000' server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 transfer-encoding: chunked status: code: 200 message: OK - url: https://servicebustestddyod7uodu.servicebus.windows.net/fjruid?api-version=2017-04 + url: https://servicebustestpwknnldq6x.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) + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.9 (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://servicebustestddyod7uodu.servicebus.windows.net/fjruid?enrich=false&api-version=2017-04fjruid2021-03-02T19:55:48Z2021-03-02T19:55:50Zservicebustestddyod7uoduhttps://servicebustestpwknnldq6x.servicebus.windows.net/fjruid?enrich=false&api-version=2017-04fjruid2021-04-22T14:24:04Z2021-04-22T14:24:05Zservicebustestpwknnldq6xPT13S3072falsefalsePT11MtruePT12M14true00falseActive2021-03-02T19:55:48.803Z2021-03-02T19:55:50.09Z0001-01-01T00:00:00Ztrue00000PT10MfalseAvailabletruesb://servicebustestddyod7uodu.servicebus.windows.net/fjruidsb://servicebustestddyod7uodu.servicebus.windows.net/fjruid + xmlns:i="http://www.w3.org/2001/XMLSchema-instance">PT13S3072falsefalsePT11MtruePT12M14true00falseActive2021-04-22T14:24:04.273Z2021-04-22T14:24:05.717Z0001-01-01T00:00:00Ztrue00000PT10MfalseAvailabletruesb://servicebustestpwknnldq6x.servicebus.windows.net/fjruidsb://servicebustestpwknnldq6x.servicebus.windows.net/fjruid headers: content-type: application/atom+xml;type=entry;charset=utf-8 - date: Tue, 02 Mar 2021 19:55:50 GMT - etag: '637503117500900000' + date: Thu, 22 Apr 2021 14:24:05 GMT + etag: '637546982457170000' server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 transfer-encoding: chunked status: code: 200 message: OK - url: https://servicebustestddyod7uodu.servicebus.windows.net/fjruid?enrich=false&api-version=2017-04 + url: https://servicebustestpwknnldq6x.servicebus.windows.net/fjruid?enrich=false&api-version=2017-04 +- request: + body: ' + + PT18S2048falsefalsePT16MfalsePT17M15falseActivePT15MfalseAvailablefalse' + headers: + Accept: + - application/xml + Content-Length: + - '984' + Content-Type: + - application/atom+xml + If-Match: + - '*' + User-Agent: + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.9 (Windows-10-10.0.19041-SP0) + method: PUT + uri: https://servicebustestsbname.servicebus.windows.net/fjruid?api-version=2017-04 + response: + body: + string: https://servicebustestpwknnldq6x.servicebus.windows.net/fjruid?api-version=2017-04fjruid2021-04-22T14:24:06Zservicebustestpwknnldq6xPT18S2048falsefalsePT16MfalsePT17M15falseActivePT15MfalseAvailablefalse + headers: + content-type: application/atom+xml;type=entry;charset=utf-8 + date: Thu, 22 Apr 2021 14:24:06 GMT + etag: '637546982457170000' + server: Microsoft-HTTPAPI/2.0 + strict-transport-security: max-age=31536000 + transfer-encoding: chunked + status: + code: 200 + message: OK + url: https://servicebustestpwknnldq6x.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.9 (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://servicebustestpwknnldq6x.servicebus.windows.net/fjruid?enrich=false&api-version=2017-04fjruid2021-04-22T14:24:04Z2021-04-22T14:24:06Zservicebustestpwknnldq6xPT18S2048falsefalsePT16MfalsePT17M15false00falseActive2021-04-22T14:24:04.273Z2021-04-22T14:24:06.25Z0001-01-01T00:00:00Ztrue00000PT15MfalseAvailablefalse + headers: + content-type: application/atom+xml;type=entry;charset=utf-8 + date: Thu, 22 Apr 2021 14:24:06 GMT + etag: '637546982462500000' + server: Microsoft-HTTPAPI/2.0 + strict-transport-security: max-age=31536000 + transfer-encoding: chunked + status: + code: 200 + message: OK + url: https://servicebustestpwknnldq6x.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) + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: DELETE uri: https://servicebustestsbname.servicebus.windows.net/fjruid?api-version=2017-04 response: @@ -202,12 +267,12 @@ interactions: string: '' headers: content-length: '0' - date: Tue, 02 Mar 2021 19:55:50 GMT - etag: '637503117500900000' + date: Thu, 22 Apr 2021 14:24:07 GMT + etag: '637546982462500000' server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 status: code: 200 message: OK - url: https://servicebustestddyod7uodu.servicebus.windows.net/fjruid?api-version=2017-04 + url: https://servicebustestpwknnldq6x.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_async_mgmt_rule_update_success.yaml b/sdk/servicebus/azure-servicebus/tests/async_tests/mgmt_tests/recordings/test_mgmt_rules_async.test_async_mgmt_rule_update_success.yaml index 49341bbc0766..e9ad6cd55c6c 100644 --- a/sdk/servicebus/azure-servicebus/tests/async_tests/mgmt_tests/recordings/test_mgmt_rules_async.test_async_mgmt_rule_update_success.yaml +++ b/sdk/servicebus/azure-servicebus/tests/async_tests/mgmt_tests/recordings/test_mgmt_rules_async.test_async_mgmt_rule_update_success.yaml @@ -5,22 +5,22 @@ interactions: Accept: - application/xml User-Agent: - - azsdk-python-servicebusmanagementclient/2017-04 Python/3.8.2 (Windows-10-10.0.18362-SP0) + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.9 (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://servicebustestafjalzt3of.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-042020-12-03T18:23:21Z + string: Topicshttps://servicebustestm4fqorp5pk.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-042021-04-22T15:23:27Z headers: content-type: application/atom+xml;type=feed;charset=utf-8 - date: Thu, 03 Dec 2020 18:23:21 GMT + date: Thu, 22 Apr 2021 15:23:27 GMT server: Microsoft-HTTPAPI/2.0 transfer-encoding: chunked status: code: 200 message: OK - url: https://servicebustestafjalzt3of.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-04 + url: https://servicebustestm4fqorp5pk.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-04 - request: body: ' @@ -34,26 +34,26 @@ interactions: Content-Type: - application/atom+xml User-Agent: - - azsdk-python-servicebusmanagementclient/2017-04 Python/3.8.2 (Windows-10-10.0.18362-SP0) + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: PUT uri: https://servicebustestsbname.servicebus.windows.net/fjrui?api-version=2017-04 response: body: - string: https://servicebustestafjalzt3of.servicebus.windows.net/fjrui?api-version=2017-04fjrui2020-12-03T18:23:22Z2020-12-03T18:23:22Zservicebustestafjalzt3ofhttps://servicebustestm4fqorp5pk.servicebus.windows.net/fjrui?api-version=2017-04fjrui2021-04-22T15:23:28Z2021-04-22T15:23:28Zservicebustestm4fqorp5pkP10675199DT2H48M5.4775807S1024falsePT10Mtrue0falsefalseActive2020-12-03T18:23:22.307Z2020-12-03T18:23:22.39ZtrueP10675199DT2H48M5.4775807SfalseAvailablefalsefalse + xmlns:i="http://www.w3.org/2001/XMLSchema-instance">P10675199DT2H48M5.4775807S1024falsePT10Mtrue0falsefalseActive2021-04-22T15:23:28.647Z2021-04-22T15:23:28.787ZtrueP10675199DT2H48M5.4775807SfalseAvailablefalsefalse headers: content-type: application/atom+xml;type=entry;charset=utf-8 - date: Thu, 03 Dec 2020 18:23:22 GMT + date: Thu, 22 Apr 2021 15:23:28 GMT server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 transfer-encoding: chunked status: code: 201 message: Created - url: https://servicebustestafjalzt3of.servicebus.windows.net/fjrui?api-version=2017-04 + url: https://servicebustestm4fqorp5pk.servicebus.windows.net/fjrui?api-version=2017-04 - request: body: ' @@ -67,27 +67,27 @@ interactions: Content-Type: - application/atom+xml User-Agent: - - azsdk-python-servicebusmanagementclient/2017-04 Python/3.8.2 (Windows-10-10.0.18362-SP0) + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.9 (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://servicebustestafjalzt3of.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04eqkovc2020-12-03T18:23:22Z2020-12-03T18:23:22Zhttps://servicebustestm4fqorp5pk.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04eqkovc2021-04-22T15:23:29Z2021-04-22T15:23:29ZPT1MfalseP10675199DT2H48M5.4775807Sfalsetrue010trueActive2020-12-03T18:23:22.9277484Z2020-12-03T18:23:22.9277484Z0001-01-01T00:00:00P10675199DT2H48M5.4775807SAvailable + xmlns:i="http://www.w3.org/2001/XMLSchema-instance">PT1MfalseP10675199DT2H48M5.4775807Sfalsetrue010trueActive2021-04-22T15:23:29.4839628Z2021-04-22T15:23:29.4839628Z0001-01-01T00:00:00P10675199DT2H48M5.4775807SAvailable headers: content-type: application/atom+xml;type=entry;charset=utf-8 - date: Thu, 03 Dec 2020 18:23:23 GMT - etag: '637426166023900000' + date: Thu, 22 Apr 2021 15:23:29 GMT + etag: '637547018087870000' server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 transfer-encoding: chunked status: code: 201 message: Created - url: https://servicebustestafjalzt3of.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04 + url: https://servicebustestm4fqorp5pk.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04 - request: body: ' @@ -103,65 +103,65 @@ interactions: Content-Type: - application/atom+xml User-Agent: - - azsdk-python-servicebusmanagementclient/2017-04 Python/3.8.2 (Windows-10-10.0.18362-SP0) + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.9 (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://servicebustestafjalzt3of.servicebus.windows.net/fjrui/subscriptions/eqkovc/rules/rule?api-version=2017-04rule2020-12-03T18:23:23Z2020-12-03T18:23:23Zhttps://servicebustestm4fqorp5pk.servicebus.windows.net/fjrui/subscriptions/eqkovc/rules/rule?api-version=2017-04rule2021-04-22T15:23:29Z2021-04-22T15:23:29ZPriority = 'low'20true2020-12-03T18:23:23.2402545Zrule + i:type="EmptyRuleAction"/>2021-04-22T15:23:29.9058414Zrule headers: content-type: application/atom+xml;type=entry;charset=utf-8 - date: Thu, 03 Dec 2020 18:23:23 GMT - etag: '637426166023900000' + date: Thu, 22 Apr 2021 15:23:29 GMT + etag: '637547018087870000' server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 transfer-encoding: chunked status: code: 201 message: Created - url: https://servicebustestafjalzt3of.servicebus.windows.net/fjrui/subscriptions/eqkovc/rules/rule?api-version=2017-04 + url: https://servicebustestm4fqorp5pk.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.8.2 (Windows-10-10.0.18362-SP0) + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET uri: https://servicebustestsbname.servicebus.windows.net/fjrui/subscriptions/eqkovc/rules/rule?enrich=false&api-version=2017-04 response: body: - string: sb://servicebustestafjalzt3of.servicebus.windows.net/fjrui/subscriptions/eqkovc/rules/rule?enrich=false&api-version=2017-04rule2020-12-03T18:23:23Z2020-12-03T18:23:23Zsb://servicebustestm4fqorp5pk.servicebus.windows.net/fjrui/subscriptions/eqkovc/rules/rule?enrich=false&api-version=2017-04rule2021-04-22T15:23:30Z2021-04-22T15:23:30ZPriority = 'low'20true2020-12-03T18:23:23.2492712Zrule + i:type="EmptyRuleAction"/>2021-04-22T15:23:30.0491327Zrule headers: content-type: application/atom+xml;type=entry;charset=utf-8 - date: Thu, 03 Dec 2020 18:23:23 GMT - etag: '637426166023900000' + date: Thu, 22 Apr 2021 15:23:29 GMT + etag: '637547018087870000' server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 transfer-encoding: chunked status: code: 200 message: OK - url: https://servicebustestafjalzt3of.servicebus.windows.net/fjrui/subscriptions/eqkovc/rules/rule?enrich=false&api-version=2017-04 + url: https://servicebustestm4fqorp5pk.servicebus.windows.net/fjrui/subscriptions/eqkovc/rules/rule?enrich=false&api-version=2017-04 - request: body: ' testcidSET Priority = ''low''20true2020-12-03T18:23:23.249271Zrule' + xsi:type="SqlRuleAction">SET Priority = ''low''20true2021-04-22T15:23:30.049132Zrule' headers: Accept: - application/xml @@ -172,63 +172,130 @@ interactions: If-Match: - '*' User-Agent: - - azsdk-python-servicebusmanagementclient/2017-04 Python/3.8.2 (Windows-10-10.0.18362-SP0) + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.9 (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://servicebustestafjalzt3of.servicebus.windows.net/fjrui/subscriptions/eqkovc/rules/rule?api-version=2017-04rule2020-12-03T18:23:23Z2020-12-03T18:23:23Zhttps://servicebustestm4fqorp5pk.servicebus.windows.net/fjrui/subscriptions/eqkovc/rules/rule?api-version=2017-04rule2021-04-22T15:23:30Z2021-04-22T15:23:30ZtestcidSET Priority = 'low'20true2020-12-03T18:23:23.4433909Zrule + i:type="SqlRuleAction">SET Priority = 'low'20true2021-04-22T15:23:30.5621563Zrule headers: content-type: application/atom+xml;type=entry;charset=utf-8 - date: Thu, 03 Dec 2020 18:23:23 GMT - etag: '637426166023900000' + date: Thu, 22 Apr 2021 15:23:30 GMT + etag: '637547018087870000' server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 transfer-encoding: chunked status: code: 200 message: OK - url: https://servicebustestafjalzt3of.servicebus.windows.net/fjrui/subscriptions/eqkovc/rules/rule?api-version=2017-04 + url: https://servicebustestm4fqorp5pk.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.8.2 (Windows-10-10.0.18362-SP0) + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET uri: https://servicebustestsbname.servicebus.windows.net/fjrui/subscriptions/eqkovc/rules/rule?enrich=false&api-version=2017-04 response: body: - string: sb://servicebustestafjalzt3of.servicebus.windows.net/fjrui/subscriptions/eqkovc/rules/rule?enrich=false&api-version=2017-04rule2020-12-03T18:23:23Z2020-12-03T18:23:23Zsb://servicebustestm4fqorp5pk.servicebus.windows.net/fjrui/subscriptions/eqkovc/rules/rule?enrich=false&api-version=2017-04rule2021-04-22T15:23:30Z2021-04-22T15:23:30ZtestcidSET Priority = 'low'20true2020-12-03T18:23:23.2492712Zrule + i:type="SqlRuleAction">SET Priority = 'low'20true2021-04-22T15:23:30.0491327Zrule headers: content-type: application/atom+xml;type=entry;charset=utf-8 - date: Thu, 03 Dec 2020 18:23:23 GMT - etag: '637426166023900000' + date: Thu, 22 Apr 2021 15:23:30 GMT + etag: '637547018087870000' server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 transfer-encoding: chunked status: code: 200 message: OK - url: https://servicebustestafjalzt3of.servicebus.windows.net/fjrui/subscriptions/eqkovc/rules/rule?enrich=false&api-version=2017-04 + url: https://servicebustestm4fqorp5pk.servicebus.windows.net/fjrui/subscriptions/eqkovc/rules/rule?enrich=false&api-version=2017-04 +- request: + body: ' + + updatedcid2021-04-22T15:23:30.049132Zrule' + headers: + Accept: + - application/xml + Content-Length: + - '508' + Content-Type: + - application/atom+xml + If-Match: + - '*' + User-Agent: + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.9 (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://servicebustestm4fqorp5pk.servicebus.windows.net/fjrui/subscriptions/eqkovc/rules/rule?api-version=2017-04rule2021-04-22T15:23:31Z2021-04-22T15:23:31Zupdatedcid2021-04-22T15:23:31.1871446Zrule + headers: + content-type: application/atom+xml;type=entry;charset=utf-8 + date: Thu, 22 Apr 2021 15:23:30 GMT + etag: '637547018087870000' + server: Microsoft-HTTPAPI/2.0 + strict-transport-security: max-age=31536000 + transfer-encoding: chunked + status: + code: 200 + message: OK + url: https://servicebustestm4fqorp5pk.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.9 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://servicebustestsbname.servicebus.windows.net/fjrui/subscriptions/eqkovc/rules/rule?enrich=false&api-version=2017-04 + response: + body: + string: sb://servicebustestm4fqorp5pk.servicebus.windows.net/fjrui/subscriptions/eqkovc/rules/rule?enrich=false&api-version=2017-04rule2021-04-22T15:23:30Z2021-04-22T15:23:30Zupdatedcid2021-04-22T15:23:30.0491327Zrule + headers: + content-type: application/atom+xml;type=entry;charset=utf-8 + date: Thu, 22 Apr 2021 15:23:30 GMT + etag: '637547018087870000' + server: Microsoft-HTTPAPI/2.0 + strict-transport-security: max-age=31536000 + transfer-encoding: chunked + status: + code: 200 + message: OK + url: https://servicebustestm4fqorp5pk.servicebus.windows.net/fjrui/subscriptions/eqkovc/rules/rule?enrich=false&api-version=2017-04 - request: body: null headers: Accept: - application/xml User-Agent: - - azsdk-python-servicebusmanagementclient/2017-04 Python/3.8.2 (Windows-10-10.0.18362-SP0) + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: DELETE uri: https://servicebustestsbname.servicebus.windows.net/fjrui/subscriptions/eqkovc/rules/rule?api-version=2017-04 response: @@ -236,21 +303,21 @@ interactions: string: '' headers: content-length: '0' - date: Thu, 03 Dec 2020 18:23:23 GMT - etag: '637426166023900000' + date: Thu, 22 Apr 2021 15:23:31 GMT + etag: '637547018087870000' server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 status: code: 200 message: OK - url: https://servicebustestafjalzt3of.servicebus.windows.net/fjrui/subscriptions/eqkovc/rules/rule?api-version=2017-04 + url: https://servicebustestm4fqorp5pk.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.8.2 (Windows-10-10.0.18362-SP0) + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: DELETE uri: https://servicebustestsbname.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04 response: @@ -258,21 +325,21 @@ interactions: string: '' headers: content-length: '0' - date: Thu, 03 Dec 2020 18:23:23 GMT - etag: '637426166023900000' + date: Thu, 22 Apr 2021 15:23:31 GMT + etag: '637547018087870000' server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 status: code: 200 message: OK - url: https://servicebustestafjalzt3of.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04 + url: https://servicebustestm4fqorp5pk.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.8.2 (Windows-10-10.0.18362-SP0) + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: DELETE uri: https://servicebustestsbname.servicebus.windows.net/fjrui?api-version=2017-04 response: @@ -280,12 +347,12 @@ interactions: string: '' headers: content-length: '0' - date: Thu, 03 Dec 2020 18:23:24 GMT - etag: '637426166023900000' + date: Thu, 22 Apr 2021 15:23:32 GMT + etag: '637547018087870000' server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 status: code: 200 message: OK - url: https://servicebustestafjalzt3of.servicebus.windows.net/fjrui?api-version=2017-04 + url: https://servicebustestm4fqorp5pk.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 c2f0aa0bcfaf..94fe920c9e37 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 @@ -5,22 +5,22 @@ interactions: Accept: - application/xml User-Agent: - - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.9 (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://servicebustest7unr4yo2aa.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-042021-03-02T19:55:15Z + string: Topicshttps://servicebustestpp6oahyffj.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-042021-04-22T15:25:00Z headers: content-type: application/atom+xml;type=feed;charset=utf-8 - date: Tue, 02 Mar 2021 19:55:15 GMT + date: Thu, 22 Apr 2021 15:25:00 GMT server: Microsoft-HTTPAPI/2.0 transfer-encoding: chunked status: code: 200 message: OK - url: https://servicebustest7unr4yo2aa.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-04 + url: https://servicebustestpp6oahyffj.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-04 - request: body: ' @@ -34,26 +34,26 @@ interactions: Content-Type: - application/atom+xml User-Agent: - - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: PUT uri: https://servicebustestsbname.servicebus.windows.net/fjruid?api-version=2017-04 response: body: - string: https://servicebustest7unr4yo2aa.servicebus.windows.net/fjruid?api-version=2017-04fjruid2021-03-02T19:55:16Z2021-03-02T19:55:16Zservicebustest7unr4yo2aahttps://servicebustestpp6oahyffj.servicebus.windows.net/fjruid?api-version=2017-04fjruid2021-04-22T15:25:01Z2021-04-22T15:25:01Zservicebustestpp6oahyffjP10675199DT2H48M5.4775807S1024falsePT10Mtrue0falsefalseActive2021-03-02T19:55:16.153Z2021-03-02T19:55:16.19ZtrueP10675199DT2H48M5.4775807SfalseAvailablefalsefalse + xmlns:i="http://www.w3.org/2001/XMLSchema-instance">P10675199DT2H48M5.4775807S1024falsePT10Mtrue0falsefalseActive2021-04-22T15:25:01.13Z2021-04-22T15:25:01.46ZtrueP10675199DT2H48M5.4775807SfalseAvailablefalsefalse headers: content-type: application/atom+xml;type=entry;charset=utf-8 - date: Tue, 02 Mar 2021 19:55:16 GMT + date: Thu, 22 Apr 2021 15:25:01 GMT server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 transfer-encoding: chunked status: code: 201 message: Created - url: https://servicebustest7unr4yo2aa.servicebus.windows.net/fjruid?api-version=2017-04 + url: https://servicebustestpp6oahyffj.servicebus.windows.net/fjruid?api-version=2017-04 - request: body: ' @@ -67,27 +67,27 @@ interactions: Content-Type: - application/atom+xml User-Agent: - - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.9 (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://servicebustest7unr4yo2aa.servicebus.windows.net/fjruid/subscriptions/eqkovcd?api-version=2017-04eqkovcd2021-03-02T19:55:16Z2021-03-02T19:55:16Zhttps://servicebustestpp6oahyffj.servicebus.windows.net/fjruid/subscriptions/eqkovcd?api-version=2017-04eqkovcd2021-04-22T15:25:02Z2021-04-22T15:25:02ZPT1MfalseP10675199DT2H48M5.4775807Sfalsetrue010trueActive2021-03-02T19:55:16.8002409Z2021-03-02T19:55:16.8002409Z0001-01-01T00:00:00P10675199DT2H48M5.4775807SAvailable + xmlns:i="http://www.w3.org/2001/XMLSchema-instance">PT1MfalseP10675199DT2H48M5.4775807Sfalsetrue010trueActive2021-04-22T15:25:02.148507Z2021-04-22T15:25:02.148507Z0001-01-01T00:00:00P10675199DT2H48M5.4775807SAvailable headers: content-type: application/atom+xml;type=entry;charset=utf-8 - date: Tue, 02 Mar 2021 19:55:16 GMT - etag: '637503117161900000' + date: Thu, 22 Apr 2021 15:25:02 GMT + etag: '637547019014600000' server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 transfer-encoding: chunked status: code: 201 message: Created - url: https://servicebustest7unr4yo2aa.servicebus.windows.net/fjruid/subscriptions/eqkovcd?api-version=2017-04 + url: https://servicebustestpp6oahyffj.servicebus.windows.net/fjruid/subscriptions/eqkovcd?api-version=2017-04 - request: body: ' @@ -103,65 +103,65 @@ interactions: Content-Type: - application/atom+xml User-Agent: - - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.9 (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://servicebustest7unr4yo2aa.servicebus.windows.net/fjruid/subscriptions/eqkovcd/rules/rule?api-version=2017-04rule2021-03-02T19:55:17Z2021-03-02T19:55:17Zhttps://servicebustestpp6oahyffj.servicebus.windows.net/fjruid/subscriptions/eqkovcd/rules/rule?api-version=2017-04rule2021-04-22T15:25:02Z2021-04-22T15:25:02ZPriority = 'low'20true2021-03-02T19:55:17.0346264Zrule + i:type="EmptyRuleAction"/>2021-04-22T15:25:02.648539Zrule headers: content-type: application/atom+xml;type=entry;charset=utf-8 - date: Tue, 02 Mar 2021 19:55:16 GMT - etag: '637503117161900000' + date: Thu, 22 Apr 2021 15:25:02 GMT + etag: '637547019014600000' server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 transfer-encoding: chunked status: code: 201 message: Created - url: https://servicebustest7unr4yo2aa.servicebus.windows.net/fjruid/subscriptions/eqkovcd/rules/rule?api-version=2017-04 + url: https://servicebustestpp6oahyffj.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) + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.9 (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://servicebustest7unr4yo2aa.servicebus.windows.net/fjruid/subscriptions/eqkovcd/rules/rule?enrich=false&api-version=2017-04rule2021-03-02T19:55:17Z2021-03-02T19:55:17Zsb://servicebustestpp6oahyffj.servicebus.windows.net/fjruid/subscriptions/eqkovcd/rules/rule?enrich=false&api-version=2017-04rule2021-04-22T15:25:02Z2021-04-22T15:25:02ZPriority = 'low'20true2021-03-02T19:55:17.0480329Zrule + i:type="EmptyRuleAction"/>2021-04-22T15:25:02.6481931Zrule headers: content-type: application/atom+xml;type=entry;charset=utf-8 - date: Tue, 02 Mar 2021 19:55:16 GMT - etag: '637503117161900000' + date: Thu, 22 Apr 2021 15:25:02 GMT + etag: '637547019014600000' server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 transfer-encoding: chunked status: code: 200 message: OK - url: https://servicebustest7unr4yo2aa.servicebus.windows.net/fjruid/subscriptions/eqkovcd/rules/rule?enrich=false&api-version=2017-04 + url: https://servicebustestpp6oahyffj.servicebus.windows.net/fjruid/subscriptions/eqkovcd/rules/rule?enrich=false&api-version=2017-04 - request: body: ' testcidSET Priority = ''low''20true2021-03-02T19:55:17.048032Zrule' + xsi:type="SqlRuleAction">SET Priority = ''low''20true2021-04-22T15:25:02.648193Zrule' headers: Accept: - application/xml @@ -172,63 +172,130 @@ interactions: If-Match: - '*' User-Agent: - - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.9 (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://servicebustest7unr4yo2aa.servicebus.windows.net/fjruid/subscriptions/eqkovcd/rules/rule?api-version=2017-04rule2021-03-02T19:55:17Z2021-03-02T19:55:17Zhttps://servicebustestpp6oahyffj.servicebus.windows.net/fjruid/subscriptions/eqkovcd/rules/rule?api-version=2017-04rule2021-04-22T15:25:03Z2021-04-22T15:25:03ZtestcidSET Priority = 'low'20true2021-03-02T19:55:17.3471465Zrule + i:type="SqlRuleAction">SET Priority = 'low'20true2021-04-22T15:25:03.3516678Zrule headers: content-type: application/atom+xml;type=entry;charset=utf-8 - date: Tue, 02 Mar 2021 19:55:16 GMT - etag: '637503117161900000' + date: Thu, 22 Apr 2021 15:25:03 GMT + etag: '637547019014600000' server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 transfer-encoding: chunked status: code: 200 message: OK - url: https://servicebustest7unr4yo2aa.servicebus.windows.net/fjruid/subscriptions/eqkovcd/rules/rule?api-version=2017-04 + url: https://servicebustestpp6oahyffj.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) + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.9 (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://servicebustest7unr4yo2aa.servicebus.windows.net/fjruid/subscriptions/eqkovcd/rules/rule?enrich=false&api-version=2017-04rule2021-03-02T19:55:17Z2021-03-02T19:55:17Zsb://servicebustestpp6oahyffj.servicebus.windows.net/fjruid/subscriptions/eqkovcd/rules/rule?enrich=false&api-version=2017-04rule2021-04-22T15:25:02Z2021-04-22T15:25:02ZtestcidSET Priority = 'low'20true2021-03-02T19:55:17.0480329Zrule + i:type="SqlRuleAction">SET Priority = 'low'20true2021-04-22T15:25:02.6481931Zrule headers: content-type: application/atom+xml;type=entry;charset=utf-8 - date: Tue, 02 Mar 2021 19:55:16 GMT - etag: '637503117161900000' + date: Thu, 22 Apr 2021 15:25:03 GMT + etag: '637547019014600000' server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 transfer-encoding: chunked status: code: 200 message: OK - url: https://servicebustest7unr4yo2aa.servicebus.windows.net/fjruid/subscriptions/eqkovcd/rules/rule?enrich=false&api-version=2017-04 + url: https://servicebustestpp6oahyffj.servicebus.windows.net/fjruid/subscriptions/eqkovcd/rules/rule?enrich=false&api-version=2017-04 +- request: + body: ' + + updatedcid2021-04-22T15:25:02.648193Zrule' + headers: + Accept: + - application/xml + Content-Length: + - '508' + Content-Type: + - application/atom+xml + If-Match: + - '*' + User-Agent: + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.9 (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://servicebustestpp6oahyffj.servicebus.windows.net/fjruid/subscriptions/eqkovcd/rules/rule?api-version=2017-04rule2021-04-22T15:25:03Z2021-04-22T15:25:03Zupdatedcid2021-04-22T15:25:03.8829356Zrule + headers: + content-type: application/atom+xml;type=entry;charset=utf-8 + date: Thu, 22 Apr 2021 15:25:03 GMT + etag: '637547019014600000' + server: Microsoft-HTTPAPI/2.0 + strict-transport-security: max-age=31536000 + transfer-encoding: chunked + status: + code: 200 + message: OK + url: https://servicebustestpp6oahyffj.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.9 (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://servicebustestpp6oahyffj.servicebus.windows.net/fjruid/subscriptions/eqkovcd/rules/rule?enrich=false&api-version=2017-04rule2021-04-22T15:25:02Z2021-04-22T15:25:02Zupdatedcid2021-04-22T15:25:02.6481931Zrule + headers: + content-type: application/atom+xml;type=entry;charset=utf-8 + date: Thu, 22 Apr 2021 15:25:03 GMT + etag: '637547019014600000' + server: Microsoft-HTTPAPI/2.0 + strict-transport-security: max-age=31536000 + transfer-encoding: chunked + status: + code: 200 + message: OK + url: https://servicebustestpp6oahyffj.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) + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: DELETE uri: https://servicebustestsbname.servicebus.windows.net/fjruid/subscriptions/eqkovcd/rules/rule?api-version=2017-04 response: @@ -236,21 +303,21 @@ interactions: string: '' headers: content-length: '0' - date: Tue, 02 Mar 2021 19:55:17 GMT - etag: '637503117161900000' + date: Thu, 22 Apr 2021 15:25:04 GMT + etag: '637547019014600000' server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 status: code: 200 message: OK - url: https://servicebustest7unr4yo2aa.servicebus.windows.net/fjruid/subscriptions/eqkovcd/rules/rule?api-version=2017-04 + url: https://servicebustestpp6oahyffj.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) + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: DELETE uri: https://servicebustestsbname.servicebus.windows.net/fjruid/subscriptions/eqkovcd?api-version=2017-04 response: @@ -258,21 +325,21 @@ interactions: string: '' headers: content-length: '0' - date: Tue, 02 Mar 2021 19:55:17 GMT - etag: '637503117161900000' + date: Thu, 22 Apr 2021 15:25:04 GMT + etag: '637547019014600000' server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 status: code: 200 message: OK - url: https://servicebustest7unr4yo2aa.servicebus.windows.net/fjruid/subscriptions/eqkovcd?api-version=2017-04 + url: https://servicebustestpp6oahyffj.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) + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: DELETE uri: https://servicebustestsbname.servicebus.windows.net/fjruid?api-version=2017-04 response: @@ -280,12 +347,12 @@ interactions: string: '' headers: content-length: '0' - date: Tue, 02 Mar 2021 19:55:17 GMT - etag: '637503117161900000' + date: Thu, 22 Apr 2021 15:25:05 GMT + etag: '637547019014600000' server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 status: code: 200 message: OK - url: https://servicebustest7unr4yo2aa.servicebus.windows.net/fjruid?api-version=2017-04 + url: https://servicebustestpp6oahyffj.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_async_mgmt_subscription_update_success.yaml b/sdk/servicebus/azure-servicebus/tests/async_tests/mgmt_tests/recordings/test_mgmt_subscriptions_async.test_async_mgmt_subscription_update_success.yaml index 8935cfad5ec7..31caadb9c3c8 100644 --- a/sdk/servicebus/azure-servicebus/tests/async_tests/mgmt_tests/recordings/test_mgmt_subscriptions_async.test_async_mgmt_subscription_update_success.yaml +++ b/sdk/servicebus/azure-servicebus/tests/async_tests/mgmt_tests/recordings/test_mgmt_subscriptions_async.test_async_mgmt_subscription_update_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://servicebustestswvfnnppi6.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-042021-04-15T16:43:30Z + string: Topicshttps://servicebustestqdikv3sdan.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-042021-04-22T15:07:16Z headers: content-type: application/atom+xml;type=feed;charset=utf-8 - date: Thu, 15 Apr 2021 16:43:30 GMT + date: Thu, 22 Apr 2021 15:07:15 GMT server: Microsoft-HTTPAPI/2.0 transfer-encoding: chunked status: code: 200 message: OK - url: https://servicebustestswvfnnppi6.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-04 + url: https://servicebustestqdikv3sdan.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/dfkla?api-version=2017-04 response: body: - string: https://servicebustestswvfnnppi6.servicebus.windows.net/dfkla?api-version=2017-04dfkla2021-04-15T16:43:31Z2021-04-15T16:43:31Zservicebustestswvfnnppi6https://servicebustestqdikv3sdan.servicebus.windows.net/dfkla?api-version=2017-04dfkla2021-04-22T15:07:16Z2021-04-22T15:07:16Zservicebustestqdikv3sdanPT1M1024falsefalseP10675199DT2H48M5.4775807SfalsePT10M10true00falseActive2021-04-15T16:43:31.15Z2021-04-15T16:43:31.217ZtrueP10675199DT2H48M5.4775807SfalseAvailablefalse + xmlns:i="http://www.w3.org/2001/XMLSchema-instance">PT1M1024falsefalseP10675199DT2H48M5.4775807SfalsePT10M10true00falseActive2021-04-22T15:07:16.813Z2021-04-22T15:07:16.863ZtrueP10675199DT2H48M5.4775807SfalseAvailablefalse headers: content-type: application/atom+xml;type=entry;charset=utf-8 - date: Thu, 15 Apr 2021 16:43:31 GMT + date: Thu, 22 Apr 2021 15:07:16 GMT server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 transfer-encoding: chunked status: code: 201 message: Created - url: https://servicebustestswvfnnppi6.servicebus.windows.net/dfkla?api-version=2017-04 + url: https://servicebustestqdikv3sdan.servicebus.windows.net/dfkla?api-version=2017-04 - request: body: ' @@ -72,21 +72,21 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjrui?api-version=2017-04 response: body: - string: https://servicebustestswvfnnppi6.servicebus.windows.net/fjrui?api-version=2017-04fjrui2021-04-15T16:43:32Z2021-04-15T16:43:32Zservicebustestswvfnnppi6https://servicebustestqdikv3sdan.servicebus.windows.net/fjrui?api-version=2017-04fjrui2021-04-22T15:07:17Z2021-04-22T15:07:17Zservicebustestqdikv3sdanP10675199DT2H48M5.4775807S1024falsePT10Mtrue0falsefalseActive2021-04-15T16:43:32.24Z2021-04-15T16:43:32.277ZtrueP10675199DT2H48M5.4775807SfalseAvailablefalsefalse + xmlns:i="http://www.w3.org/2001/XMLSchema-instance">P10675199DT2H48M5.4775807S1024falsePT10Mtrue0falsefalseActive2021-04-22T15:07:17.94Z2021-04-22T15:07:17.983ZtrueP10675199DT2H48M5.4775807SfalseAvailablefalsefalse headers: content-type: application/atom+xml;type=entry;charset=utf-8 - date: Thu, 15 Apr 2021 16:43:32 GMT + date: Thu, 22 Apr 2021 15:07:17 GMT server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 transfer-encoding: chunked status: code: 201 message: Created - url: https://servicebustestswvfnnppi6.servicebus.windows.net/fjrui?api-version=2017-04 + url: https://servicebustestqdikv3sdan.servicebus.windows.net/fjrui?api-version=2017-04 - request: body: ' @@ -105,27 +105,27 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04 response: body: - string: https://servicebustestswvfnnppi6.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04eqkovc2021-04-15T16:43:33Z2021-04-15T16:43:33Zhttps://servicebustestqdikv3sdan.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04eqkovc2021-04-22T15:07:18Z2021-04-22T15:07:18ZPT1MfalseP10675199DT2H48M5.4775807Sfalsetrue010trueActive2021-04-15T16:43:33.0970392Z2021-04-15T16:43:33.0970392Z0001-01-01T00:00:00P10675199DT2H48M5.4775807SAvailable + xmlns:i="http://www.w3.org/2001/XMLSchema-instance">PT1MfalseP10675199DT2H48M5.4775807Sfalsetrue010trueActive2021-04-22T15:07:18.6307647Z2021-04-22T15:07:18.6307647Z0001-01-01T00:00:00P10675199DT2H48M5.4775807SAvailable headers: content-type: application/atom+xml;type=entry;charset=utf-8 - date: Thu, 15 Apr 2021 16:43:32 GMT - etag: '637541018122770000' + date: Thu, 22 Apr 2021 15:07:18 GMT + etag: '637547008379830000' server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 transfer-encoding: chunked status: code: 201 message: Created - url: https://servicebustestswvfnnppi6.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04 + url: https://servicebustestqdikv3sdan.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04 - request: body: ' PT2MfalseP10675199DT2H48M5.477539Sfalsetrue010trueActive2021-04-15T16:43:33.097039Z2021-04-15T16:43:33.097039Z0001-01-01T00:00:00.000ZP10675199DT2H48M5.477539SAvailable' + type="application/xml">PT2MfalseP10675199DT2H48M5.477539Sfalsetrue010trueActive2021-04-22T15:07:18.630764Z2021-04-22T15:07:18.630764Z0001-01-01T00:00:00.000ZP10675199DT2H48M5.477539SAvailable' headers: Accept: - application/xml @@ -141,22 +141,22 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04 response: body: - string: https://servicebustestswvfnnppi6.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04eqkovc2021-04-15T16:43:33Z2021-04-15T16:43:33Zhttps://servicebustestqdikv3sdan.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04eqkovc2021-04-22T15:07:19Z2021-04-22T15:07:19ZPT2MfalseP10675199DT2H48M5.477539Sfalsetrue010trueActive2021-04-15T16:43:33.534537Z2021-04-15T16:43:33.534537Z0001-01-01T00:00:00P10675199DT2H48M5.477539SAvailable + xmlns:i="http://www.w3.org/2001/XMLSchema-instance">PT2MfalseP10675199DT2H48M5.477539Sfalsetrue010trueActive2021-04-22T15:07:19.099519Z2021-04-22T15:07:19.099519Z0001-01-01T00:00:00P10675199DT2H48M5.477539SAvailable headers: content-type: application/atom+xml;type=entry;charset=utf-8 - date: Thu, 15 Apr 2021 16:43:33 GMT - etag: '637541018122770000' + date: Thu, 22 Apr 2021 15:07:18 GMT + etag: '637547008379830000' server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 transfer-encoding: chunked status: code: 200 message: OK - url: https://servicebustestswvfnnppi6.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04 + url: https://servicebustestqdikv3sdan.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04 - request: body: null headers: @@ -168,34 +168,34 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjrui/subscriptions/eqkovc?enrich=false&api-version=2017-04 response: body: - string: sb://servicebustestswvfnnppi6.servicebus.windows.net/fjrui/subscriptions/eqkovc?enrich=false&api-version=2017-04eqkovc2021-04-15T16:43:33Z2021-04-15T16:43:33Zsb://servicebustestqdikv3sdan.servicebus.windows.net/fjrui/subscriptions/eqkovc?enrich=false&api-version=2017-04eqkovc2021-04-22T15:07:18Z2021-04-22T15:07:19ZPT2MfalseP10675199DT2H48M5.477539Sfalsetrue010trueActive2021-04-15T16:43:33.0949859Z2021-04-15T16:43:33.5481101Z2021-04-15T16:43:33.0949859ZPT2MfalseP10675199DT2H48M5.477539Sfalsetrue010trueActive2021-04-22T15:07:18.640382Z2021-04-22T15:07:19.109132Z2021-04-22T15:07:18.640382Z00000P10675199DT2H48M5.477539SAvailable headers: content-type: application/atom+xml;type=entry;charset=utf-8 - date: Thu, 15 Apr 2021 16:43:33 GMT - etag: '637541018122770000' + date: Thu, 22 Apr 2021 15:07:18 GMT + etag: '637547008379830000' server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 transfer-encoding: chunked status: code: 200 message: OK - url: https://servicebustestswvfnnppi6.servicebus.windows.net/fjrui/subscriptions/eqkovc?enrich=false&api-version=2017-04 + url: https://servicebustestqdikv3sdan.servicebus.windows.net/fjrui/subscriptions/eqkovc?enrich=false&api-version=2017-04 - request: body: ' PT12SfalsePT11Mtruetrue014trueActive2021-04-15T16:43:33.094985Z2021-04-15T16:43:33.54811Z2021-04-15T16:43:33.094985Z00000PT10MAvailable' + type="application/xml">PT12SfalsePT11Mtruetrue014trueActive2021-04-22T15:07:18.640382Z2021-04-22T15:07:19.109132Z2021-04-22T15:07:18.640382Z00000PT10MAvailable' headers: Accept: - application/xml Content-Length: - - '1381' + - '1382' Content-Type: - application/atom+xml If-Match: @@ -206,22 +206,22 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04 response: body: - string: https://servicebustestswvfnnppi6.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04eqkovc2021-04-15T16:43:34Z2021-04-15T16:43:34Zhttps://servicebustestqdikv3sdan.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04eqkovc2021-04-22T15:07:19Z2021-04-22T15:07:19ZPT12SfalsePT11Mtruetrue014trueActive2021-04-15T16:43:34.1439126Z2021-04-15T16:43:34.1439126Z0001-01-01T00:00:00PT10MAvailable + xmlns:i="http://www.w3.org/2001/XMLSchema-instance">PT12SfalsePT11Mtruetrue014trueActive2021-04-22T15:07:19.6308711Z2021-04-22T15:07:19.6308711Z0001-01-01T00:00:00PT10MAvailable headers: content-type: application/atom+xml;type=entry;charset=utf-8 - date: Thu, 15 Apr 2021 16:43:33 GMT - etag: '637541018122770000' + date: Thu, 22 Apr 2021 15:07:19 GMT + etag: '637547008379830000' server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 transfer-encoding: chunked status: code: 200 message: OK - url: https://servicebustestswvfnnppi6.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04 + url: https://servicebustestqdikv3sdan.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04 - request: body: null headers: @@ -233,29 +233,29 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjrui/subscriptions/eqkovc?enrich=false&api-version=2017-04 response: body: - string: sb://servicebustestswvfnnppi6.servicebus.windows.net/fjrui/subscriptions/eqkovc?enrich=false&api-version=2017-04eqkovc2021-04-15T16:43:33Z2021-04-15T16:43:34Zsb://servicebustestqdikv3sdan.servicebus.windows.net/fjrui/subscriptions/eqkovc?enrich=false&api-version=2017-04eqkovc2021-04-22T15:07:18Z2021-04-22T15:07:19ZPT12SfalsePT11Mtruetrue014trueActive2021-04-15T16:43:33.0949859Z2021-04-15T16:43:34.1418378Z2021-04-15T16:43:33.0949859ZPT12SfalsePT11Mtruetrue014trueActive2021-04-22T15:07:18.640382Z2021-04-22T15:07:19.640397Z2021-04-22T15:07:18.640382Z00000PT10MAvailable headers: content-type: application/atom+xml;type=entry;charset=utf-8 - date: Thu, 15 Apr 2021 16:43:33 GMT - etag: '637541018122770000' + date: Thu, 22 Apr 2021 15:07:19 GMT + etag: '637547008379830000' server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 transfer-encoding: chunked status: code: 200 message: OK - url: https://servicebustestswvfnnppi6.servicebus.windows.net/fjrui/subscriptions/eqkovc?enrich=false&api-version=2017-04 + url: https://servicebustestqdikv3sdan.servicebus.windows.net/fjrui/subscriptions/eqkovc?enrich=false&api-version=2017-04 - request: body: ' PT12SfalsePT11Mtruetrue014trueActivesb://servicebustestswvfnnppi6.servicebus.windows.net/fjrui2021-04-15T16:43:33.094985Z2021-04-15T16:43:34.141837Z2021-04-15T16:43:33.094985Z00000sb://servicebustestswvfnnppi6.servicebus.windows.net/fjruiPT10MAvailable' + type="application/xml">PT12SfalsePT11Mtruetrue014trueActivesb://servicebustestqdikv3sdan.servicebus.windows.net/fjrui2021-04-22T15:07:18.640382Z2021-04-22T15:07:19.640397Z2021-04-22T15:07:18.640382Z00000sb://servicebustestqdikv3sdan.servicebus.windows.net/fjruiPT10MAvailable' headers: Accept: - application/xml @@ -266,31 +266,31 @@ interactions: If-Match: - '*' ServiceBusDlqSupplementaryAuthorization: - - SharedAccessSignature sr=sb%3A%2F%2Fservicebustestswvfnnppi6.servicebus.windows.net%2Ffjrui&sig=V8smbdk6u3FbBke2m90osKUhBkTkhdt546U4qNge%2baE%3d&se=1618508614&skn=RootManageSharedAccessKey + - SharedAccessSignature sr=sb%3A%2F%2Fservicebustestqdikv3sdan.servicebus.windows.net%2Ffjrui&sig=V9CJjOZTHITYzCQRNuCbQs9ndIkF4OGxI2SpwKfd2Fw%3d&se=1619107640&skn=RootManageSharedAccessKey ServiceBusSupplementaryAuthorization: - - SharedAccessSignature sr=sb%3A%2F%2Fservicebustestswvfnnppi6.servicebus.windows.net%2Ffjrui&sig=V8smbdk6u3FbBke2m90osKUhBkTkhdt546U4qNge%2baE%3d&se=1618508614&skn=RootManageSharedAccessKey + - SharedAccessSignature sr=sb%3A%2F%2Fservicebustestqdikv3sdan.servicebus.windows.net%2Ffjrui&sig=V9CJjOZTHITYzCQRNuCbQs9ndIkF4OGxI2SpwKfd2Fw%3d&se=1619107640&skn=RootManageSharedAccessKey User-Agent: - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.9 (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://servicebustestswvfnnppi6.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04eqkovc2021-04-15T16:43:34Z2021-04-15T16:43:34Zhttps://servicebustestqdikv3sdan.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04eqkovc2021-04-22T15:07:20Z2021-04-22T15:07:20ZPT12SfalsePT11Mtruetrue014trueActivesb://servicebustestswvfnnppi6.servicebus.windows.net/fjrui2021-04-15T16:43:34.6595438Z2021-04-15T16:43:34.6595438Z0001-01-01T00:00:00sb://servicebustestswvfnnppi6.servicebus.windows.net/fjruiP10675199DT2H48M5.4775807SAvailable + xmlns:i="http://www.w3.org/2001/XMLSchema-instance">PT12SfalsePT11Mtruetrue014trueActivesb://servicebustestqdikv3sdan.servicebus.windows.net/fjrui2021-04-22T15:07:20.2557711Z2021-04-22T15:07:20.2557711Z0001-01-01T00:00:00sb://servicebustestqdikv3sdan.servicebus.windows.net/fjruiP10675199DT2H48M5.4775807SAvailable headers: content-type: application/atom+xml;type=entry;charset=utf-8 - date: Thu, 15 Apr 2021 16:43:34 GMT - etag: '637541018122770000' + date: Thu, 22 Apr 2021 15:07:19 GMT + etag: '637547008379830000' server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 transfer-encoding: chunked status: code: 200 message: OK - url: https://servicebustestswvfnnppi6.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04 + url: https://servicebustestqdikv3sdan.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04 - request: body: null headers: @@ -302,29 +302,29 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjrui/subscriptions/eqkovc?enrich=false&api-version=2017-04 response: body: - string: sb://servicebustestswvfnnppi6.servicebus.windows.net/fjrui/subscriptions/eqkovc?enrich=false&api-version=2017-04eqkovc2021-04-15T16:43:33Z2021-04-15T16:43:34Zsb://servicebustestqdikv3sdan.servicebus.windows.net/fjrui/subscriptions/eqkovc?enrich=false&api-version=2017-04eqkovc2021-04-22T15:07:18Z2021-04-22T15:07:20ZPT12SfalsePT11Mtruetrue014trueActivesb://servicebustestswvfnnppi6.servicebus.windows.net/fjrui2021-04-15T16:43:33.0949859Z2021-04-15T16:43:34.6731388Z2021-04-15T16:43:33.0949859Z00000sb://servicebustestswvfnnppi6.servicebus.windows.net/fjruiP10675199DT2H48M5.4775807SAvailable + xmlns:i="http://www.w3.org/2001/XMLSchema-instance">PT12SfalsePT11Mtruetrue014trueActivesb://servicebustestqdikv3sdan.servicebus.windows.net/fjrui2021-04-22T15:07:18.640382Z2021-04-22T15:07:20.2654414Z2021-04-22T15:07:18.640382Z00000sb://servicebustestqdikv3sdan.servicebus.windows.net/fjruiP10675199DT2H48M5.4775807SAvailable headers: content-type: application/atom+xml;type=entry;charset=utf-8 - date: Thu, 15 Apr 2021 16:43:34 GMT - etag: '637541018122770000' + date: Thu, 22 Apr 2021 15:07:20 GMT + etag: '637547008379830000' server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 transfer-encoding: chunked status: code: 200 message: OK - url: https://servicebustestswvfnnppi6.servicebus.windows.net/fjrui/subscriptions/eqkovc?enrich=false&api-version=2017-04 + url: https://servicebustestqdikv3sdan.servicebus.windows.net/fjrui/subscriptions/eqkovc?enrich=false&api-version=2017-04 - request: body: ' PT12SfalsePT11Mtruetrue014trueActivesb://servicebustestswvfnnppi6.servicebus.windows.net/dfkla2021-04-15T16:43:33.094985Z2021-04-15T16:43:34.673138Z2021-04-15T16:43:33.094985Z00000sb://servicebustestswvfnnppi6.servicebus.windows.net/dfklaP10675199DT2H48M5.477539SAvailable' + type="application/xml">PT12SfalsePT11Mtruetrue014trueActivesb://servicebustestqdikv3sdan.servicebus.windows.net/dfkla2021-04-22T15:07:18.640382Z2021-04-22T15:07:20.265441Z2021-04-22T15:07:18.640382Z00000sb://servicebustestqdikv3sdan.servicebus.windows.net/dfklaP10675199DT2H48M5.477539SAvailable' headers: Accept: - application/xml @@ -335,31 +335,31 @@ interactions: If-Match: - '*' ServiceBusDlqSupplementaryAuthorization: - - SharedAccessSignature sr=sb%3A%2F%2Fservicebustestswvfnnppi6.servicebus.windows.net%2Fdfkla&sig=MGqOfhG2FCJhMl%2bQXgPzfo7UyHVU415xrGZiOJExbfY%3d&se=1618508615&skn=RootManageSharedAccessKey + - SharedAccessSignature sr=sb%3A%2F%2Fservicebustestqdikv3sdan.servicebus.windows.net%2Fdfkla&sig=eC1hcdk1FuXm%2bO2%2fSpFTgALuYcCxe4sxzlPI1O8%2fun4%3d&se=1619107640&skn=RootManageSharedAccessKey ServiceBusSupplementaryAuthorization: - - SharedAccessSignature sr=sb%3A%2F%2Fservicebustestswvfnnppi6.servicebus.windows.net%2Fdfkla&sig=MGqOfhG2FCJhMl%2bQXgPzfo7UyHVU415xrGZiOJExbfY%3d&se=1618508615&skn=RootManageSharedAccessKey + - SharedAccessSignature sr=sb%3A%2F%2Fservicebustestqdikv3sdan.servicebus.windows.net%2Fdfkla&sig=eC1hcdk1FuXm%2bO2%2fSpFTgALuYcCxe4sxzlPI1O8%2fun4%3d&se=1619107640&skn=RootManageSharedAccessKey User-Agent: - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.9 (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://servicebustestswvfnnppi6.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04eqkovc2021-04-15T16:43:35Z2021-04-15T16:43:35Zhttps://servicebustestqdikv3sdan.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04eqkovc2021-04-22T15:07:20Z2021-04-22T15:07:20ZPT12SfalsePT11Mtruetrue014trueActivesb://servicebustestswvfnnppi6.servicebus.windows.net/dfkla2021-04-15T16:43:35.2064415Z2021-04-15T16:43:35.2064415Z0001-01-01T00:00:00sb://servicebustestswvfnnppi6.servicebus.windows.net/dfklaP10675199DT2H48M5.4775807SAvailable + xmlns:i="http://www.w3.org/2001/XMLSchema-instance">PT12SfalsePT11Mtruetrue014trueActivesb://servicebustestqdikv3sdan.servicebus.windows.net/dfkla2021-04-22T15:07:20.803074Z2021-04-22T15:07:20.803074Z0001-01-01T00:00:00sb://servicebustestqdikv3sdan.servicebus.windows.net/dfklaP10675199DT2H48M5.4775807SAvailable headers: content-type: application/atom+xml;type=entry;charset=utf-8 - date: Thu, 15 Apr 2021 16:43:34 GMT - etag: '637541018122770000' + date: Thu, 22 Apr 2021 15:07:20 GMT + etag: '637547008379830000' server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 transfer-encoding: chunked status: code: 200 message: OK - url: https://servicebustestswvfnnppi6.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04 + url: https://servicebustestqdikv3sdan.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04 - request: body: null headers: @@ -371,29 +371,29 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjrui/subscriptions/eqkovc?enrich=false&api-version=2017-04 response: body: - string: sb://servicebustestswvfnnppi6.servicebus.windows.net/fjrui/subscriptions/eqkovc?enrich=false&api-version=2017-04eqkovc2021-04-15T16:43:33Z2021-04-15T16:43:35Zsb://servicebustestqdikv3sdan.servicebus.windows.net/fjrui/subscriptions/eqkovc?enrich=false&api-version=2017-04eqkovc2021-04-22T15:07:18Z2021-04-22T15:07:20ZPT12SfalsePT11Mtruetrue014trueActivesb://servicebustestswvfnnppi6.servicebus.windows.net/dfkla2021-04-15T16:43:33.0949859Z2021-04-15T16:43:35.2355795Z2021-04-15T16:43:33.0949859Z00000sb://servicebustestswvfnnppi6.servicebus.windows.net/dfklaP10675199DT2H48M5.4775807SAvailable + xmlns:i="http://www.w3.org/2001/XMLSchema-instance">PT12SfalsePT11Mtruetrue014trueActivesb://servicebustestqdikv3sdan.servicebus.windows.net/dfkla2021-04-22T15:07:18.640382Z2021-04-22T15:07:20.8123582Z2021-04-22T15:07:18.640382Z00000sb://servicebustestqdikv3sdan.servicebus.windows.net/dfklaP10675199DT2H48M5.4775807SAvailable headers: content-type: application/atom+xml;type=entry;charset=utf-8 - date: Thu, 15 Apr 2021 16:43:35 GMT - etag: '637541018122770000' + date: Thu, 22 Apr 2021 15:07:20 GMT + etag: '637547008379830000' server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 transfer-encoding: chunked status: code: 200 message: OK - url: https://servicebustestswvfnnppi6.servicebus.windows.net/fjrui/subscriptions/eqkovc?enrich=false&api-version=2017-04 + url: https://servicebustestqdikv3sdan.servicebus.windows.net/fjrui/subscriptions/eqkovc?enrich=false&api-version=2017-04 - request: body: ' PT12SfalsePT11Mtruetrue014trueActive2021-04-15T16:43:33.094985Z2021-04-15T16:43:35.235579Z2021-04-15T16:43:33.094985Z00000P10675199DT2H48M5.477539SAvailable' + type="application/xml">PT12SfalsePT11Mtruetrue014trueActive2021-04-22T15:07:18.640382Z2021-04-22T15:07:20.812358Z2021-04-22T15:07:18.640382Z00000P10675199DT2H48M5.477539SAvailable' headers: Accept: - application/xml @@ -409,22 +409,22 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04 response: body: - string: https://servicebustestswvfnnppi6.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04eqkovc2021-04-15T16:43:35Z2021-04-15T16:43:35Zhttps://servicebustestqdikv3sdan.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04eqkovc2021-04-22T15:07:21Z2021-04-22T15:07:21ZPT12SfalsePT11Mtruetrue014trueActive2021-04-15T16:43:35.7609078Z2021-04-15T16:43:35.7609078Z0001-01-01T00:00:00P10675199DT2H48M5.477539SAvailable + xmlns:i="http://www.w3.org/2001/XMLSchema-instance">PT12SfalsePT11Mtruetrue014trueActive2021-04-22T15:07:21.3342949Z2021-04-22T15:07:21.3342949Z0001-01-01T00:00:00P10675199DT2H48M5.477539SAvailable headers: content-type: application/atom+xml;type=entry;charset=utf-8 - date: Thu, 15 Apr 2021 16:43:35 GMT - etag: '637541018122770000' + date: Thu, 22 Apr 2021 15:07:20 GMT + etag: '637547008379830000' server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 transfer-encoding: chunked status: code: 200 message: OK - url: https://servicebustestswvfnnppi6.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04 + url: https://servicebustestqdikv3sdan.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04 - request: body: null headers: @@ -436,29 +436,29 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjrui/subscriptions/eqkovc?enrich=false&api-version=2017-04 response: body: - string: sb://servicebustestswvfnnppi6.servicebus.windows.net/fjrui/subscriptions/eqkovc?enrich=false&api-version=2017-04eqkovc2021-04-15T16:43:33Z2021-04-15T16:43:35Zsb://servicebustestqdikv3sdan.servicebus.windows.net/fjrui/subscriptions/eqkovc?enrich=false&api-version=2017-04eqkovc2021-04-22T15:07:18Z2021-04-22T15:07:21ZPT12SfalsePT11Mtruetrue014trueActive2021-04-15T16:43:33.0949859Z2021-04-15T16:43:35.7668494Z2021-04-15T16:43:33.0949859ZPT12SfalsePT11Mtruetrue014trueActive2021-04-22T15:07:18.640382Z2021-04-22T15:07:21.3496212Z2021-04-22T15:07:18.640382Z00000P10675199DT2H48M5.477539SAvailable headers: content-type: application/atom+xml;type=entry;charset=utf-8 - date: Thu, 15 Apr 2021 16:43:35 GMT - etag: '637541018122770000' + date: Thu, 22 Apr 2021 15:07:21 GMT + etag: '637547008379830000' server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 transfer-encoding: chunked status: code: 200 message: OK - url: https://servicebustestswvfnnppi6.servicebus.windows.net/fjrui/subscriptions/eqkovc?enrich=false&api-version=2017-04 + url: https://servicebustestqdikv3sdan.servicebus.windows.net/fjrui/subscriptions/eqkovc?enrich=false&api-version=2017-04 - request: body: ' PT3M3SfalsePT11M2Struetrue014trueActive2021-04-15T16:43:33.094985Z2021-04-15T16:43:35.766849Z2021-04-15T16:43:33.094985Z00000PT10M1SAvailable' + type="application/xml">PT3M3SfalsePT11M2Struetrue014trueActive2021-04-22T15:07:18.640382Z2021-04-22T15:07:21.349621Z2021-04-22T15:07:18.640382Z00000PT10M1SAvailable' headers: Accept: - application/xml @@ -474,22 +474,22 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04 response: body: - string: https://servicebustestswvfnnppi6.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04eqkovc2021-04-15T16:43:36Z2021-04-15T16:43:36Zhttps://servicebustestqdikv3sdan.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04eqkovc2021-04-22T15:07:21Z2021-04-22T15:07:21ZPT3M3SfalsePT11M2Struetrue014trueActive2021-04-15T16:43:36.323318Z2021-04-15T16:43:36.323318Z0001-01-01T00:00:00PT10M1SAvailable + xmlns:i="http://www.w3.org/2001/XMLSchema-instance">PT3M3SfalsePT11M2Struetrue014trueActive2021-04-22T15:07:21.8655447Z2021-04-22T15:07:21.8655447Z0001-01-01T00:00:00PT10M1SAvailable headers: content-type: application/atom+xml;type=entry;charset=utf-8 - date: Thu, 15 Apr 2021 16:43:35 GMT - etag: '637541018122770000' + date: Thu, 22 Apr 2021 15:07:21 GMT + etag: '637547008379830000' server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 transfer-encoding: chunked status: code: 200 message: OK - url: https://servicebustestswvfnnppi6.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04 + url: https://servicebustestqdikv3sdan.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04 - request: body: null headers: @@ -501,23 +501,88 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjrui/subscriptions/eqkovc?enrich=false&api-version=2017-04 response: body: - string: sb://servicebustestswvfnnppi6.servicebus.windows.net/fjrui/subscriptions/eqkovc?enrich=false&api-version=2017-04eqkovc2021-04-15T16:43:33Z2021-04-15T16:43:36Zsb://servicebustestqdikv3sdan.servicebus.windows.net/fjrui/subscriptions/eqkovc?enrich=false&api-version=2017-04eqkovc2021-04-22T15:07:18Z2021-04-22T15:07:21ZPT3M3SfalsePT11M2Struetrue014trueActive2021-04-15T16:43:33.0949859Z2021-04-15T16:43:36.4699559Z2021-04-15T16:43:33.0949859ZPT3M3SfalsePT11M2Struetrue014trueActive2021-04-22T15:07:18.640382Z2021-04-22T15:07:21.8976192Z2021-04-22T15:07:18.640382Z00000PT10M1SAvailable headers: content-type: application/atom+xml;type=entry;charset=utf-8 - date: Thu, 15 Apr 2021 16:43:36 GMT - etag: '637541018122770000' + date: Thu, 22 Apr 2021 15:07:21 GMT + etag: '637547008379830000' server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 transfer-encoding: chunked status: code: 200 message: OK - url: https://servicebustestswvfnnppi6.servicebus.windows.net/fjrui/subscriptions/eqkovc?enrich=false&api-version=2017-04 + url: https://servicebustestqdikv3sdan.servicebus.windows.net/fjrui/subscriptions/eqkovc?enrich=false&api-version=2017-04 +- request: + body: ' + + PT17SfalsePT16Mfalsetrue015trueActive2021-04-22T15:07:18.640382Z2021-04-22T15:07:21.897619Z2021-04-22T15:07:18.640382Z00000PT15MAvailable' + headers: + Accept: + - application/xml + Content-Length: + - '1383' + Content-Type: + - application/atom+xml + If-Match: + - '*' + User-Agent: + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.9 (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://servicebustestqdikv3sdan.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04eqkovc2021-04-22T15:07:22Z2021-04-22T15:07:22ZPT17SfalsePT16Mfalsetrue015trueActive2021-04-22T15:07:22.4436631Z2021-04-22T15:07:22.4436631Z0001-01-01T00:00:00PT15MAvailable + headers: + content-type: application/atom+xml;type=entry;charset=utf-8 + date: Thu, 22 Apr 2021 15:07:21 GMT + etag: '637547008379830000' + server: Microsoft-HTTPAPI/2.0 + strict-transport-security: max-age=31536000 + transfer-encoding: chunked + status: + code: 200 + message: OK + url: https://servicebustestqdikv3sdan.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.9 (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://servicebustestqdikv3sdan.servicebus.windows.net/fjrui/subscriptions/eqkovc?enrich=false&api-version=2017-04eqkovc2021-04-22T15:07:18Z2021-04-22T15:07:22ZPT17SfalsePT16Mfalsetrue015trueActive2021-04-22T15:07:18.640382Z2021-04-22T15:07:22.4622355Z2021-04-22T15:07:18.640382Z00000PT15MAvailable + headers: + content-type: application/atom+xml;type=entry;charset=utf-8 + date: Thu, 22 Apr 2021 15:07:22 GMT + etag: '637547008379830000' + server: Microsoft-HTTPAPI/2.0 + strict-transport-security: max-age=31536000 + transfer-encoding: chunked + status: + code: 200 + message: OK + url: https://servicebustestqdikv3sdan.servicebus.windows.net/fjrui/subscriptions/eqkovc?enrich=false&api-version=2017-04 - request: body: null headers: @@ -532,14 +597,14 @@ interactions: string: '' headers: content-length: '0' - date: Thu, 15 Apr 2021 16:43:36 GMT - etag: '637541018122770000' + date: Thu, 22 Apr 2021 15:07:22 GMT + etag: '637547008379830000' server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 status: code: 200 message: OK - url: https://servicebustestswvfnnppi6.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04 + url: https://servicebustestqdikv3sdan.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04 - request: body: null headers: @@ -554,14 +619,14 @@ interactions: string: '' headers: content-length: '0' - date: Thu, 15 Apr 2021 16:43:37 GMT - etag: '637541018122770000' + date: Thu, 22 Apr 2021 15:07:23 GMT + etag: '637547008379830000' server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 status: code: 200 message: OK - url: https://servicebustestswvfnnppi6.servicebus.windows.net/fjrui?api-version=2017-04 + url: https://servicebustestqdikv3sdan.servicebus.windows.net/fjrui?api-version=2017-04 - request: body: null headers: @@ -576,12 +641,12 @@ interactions: string: '' headers: content-length: '0' - date: Thu, 15 Apr 2021 16:43:37 GMT - etag: '637541018112170000' + date: Thu, 22 Apr 2021 15:07:23 GMT + etag: '637547008368630000' server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 status: code: 200 message: OK - url: https://servicebustestswvfnnppi6.servicebus.windows.net/dfkla?api-version=2017-04 + url: https://servicebustestqdikv3sdan.servicebus.windows.net/dfkla?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 fef0bdcd822a..72644411f6f0 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 @@ -5,22 +5,22 @@ interactions: Accept: - application/xml User-Agent: - - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.9 (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://servicebustestqwlgxkbg2s.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-042021-03-02T19:55:42Z + string: Topicshttps://servicebusteste2jcyl55n4.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-042021-04-22T15:08:57Z headers: content-type: application/atom+xml;type=feed;charset=utf-8 - date: Tue, 02 Mar 2021 19:55:41 GMT + date: Thu, 22 Apr 2021 15:08:56 GMT server: Microsoft-HTTPAPI/2.0 transfer-encoding: chunked status: code: 200 message: OK - url: https://servicebustestqwlgxkbg2s.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-04 + url: https://servicebusteste2jcyl55n4.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-04 - request: body: ' @@ -34,26 +34,26 @@ interactions: Content-Type: - application/atom+xml User-Agent: - - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: PUT uri: https://servicebustestsbname.servicebus.windows.net/fjrui?api-version=2017-04 response: body: - string: https://servicebustestqwlgxkbg2s.servicebus.windows.net/fjrui?api-version=2017-04fjrui2021-03-02T19:55:42Z2021-03-02T19:55:42Zservicebustestqwlgxkbg2shttps://servicebusteste2jcyl55n4.servicebus.windows.net/fjrui?api-version=2017-04fjrui2021-04-22T15:08:58Z2021-04-22T15:08:58Zservicebusteste2jcyl55n4P10675199DT2H48M5.4775807S1024falsePT10Mtrue0falsefalseActive2021-03-02T19:55:42.577Z2021-03-02T19:55:42.64ZtrueP10675199DT2H48M5.4775807SfalseAvailablefalsefalse + xmlns:i="http://www.w3.org/2001/XMLSchema-instance">P10675199DT2H48M5.4775807S1024falsePT10Mtrue0falsefalseActive2021-04-22T15:08:58Z2021-04-22T15:08:58.107ZtrueP10675199DT2H48M5.4775807SfalseAvailablefalsefalse headers: content-type: application/atom+xml;type=entry;charset=utf-8 - date: Tue, 02 Mar 2021 19:55:42 GMT + date: Thu, 22 Apr 2021 15:08:57 GMT server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 transfer-encoding: chunked status: code: 201 message: Created - url: https://servicebustestqwlgxkbg2s.servicebus.windows.net/fjrui?api-version=2017-04 + url: https://servicebusteste2jcyl55n4.servicebus.windows.net/fjrui?api-version=2017-04 - request: body: ' @@ -67,27 +67,27 @@ interactions: Content-Type: - application/atom+xml User-Agent: - - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.9 (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://servicebustestqwlgxkbg2s.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04eqkovc2021-03-02T19:55:43Z2021-03-02T19:55:43Zhttps://servicebusteste2jcyl55n4.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04eqkovc2021-04-22T15:08:58Z2021-04-22T15:08:58ZPT1MfalseP10675199DT2H48M5.4775807Sfalsetrue010trueActive2021-03-02T19:55:43.2005268Z2021-03-02T19:55:43.2005268Z0001-01-01T00:00:00P10675199DT2H48M5.4775807SAvailable + xmlns:i="http://www.w3.org/2001/XMLSchema-instance">PT1MfalseP10675199DT2H48M5.4775807Sfalsetrue010trueActive2021-04-22T15:08:58.8292852Z2021-04-22T15:08:58.8292852Z0001-01-01T00:00:00P10675199DT2H48M5.4775807SAvailable headers: content-type: application/atom+xml;type=entry;charset=utf-8 - date: Tue, 02 Mar 2021 19:55:43 GMT - etag: '637503117426400000' + date: Thu, 22 Apr 2021 15:08:58 GMT + etag: '637547009381070000' server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 transfer-encoding: chunked status: code: 201 message: Created - url: https://servicebustestqwlgxkbg2s.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04 + url: https://servicebusteste2jcyl55n4.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04 - request: body: ' @@ -103,55 +103,55 @@ interactions: If-Match: - '*' User-Agent: - - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.9 (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://servicebustestqwlgxkbg2s.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04eqkovc2021-03-02T19:55:43Z2021-03-02T19:55:43Zhttps://servicebusteste2jcyl55n4.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04eqkovc2021-04-22T15:08:59Z2021-04-22T15:08:59ZPT2MfalseP10675199DT2H48M5.477539Sfalsetrue010trueActive2021-03-02T19:55:43.4974034Z2021-03-02T19:55:43.4974034Z0001-01-01T00:00:00P10675199DT2H48M5.477539SAvailable + xmlns:i="http://www.w3.org/2001/XMLSchema-instance">PT2MfalseP10675199DT2H48M5.477539Sfalsetrue010trueActive2021-04-22T15:08:59.1350835Z2021-04-22T15:08:59.1350835Z0001-01-01T00:00:00P10675199DT2H48M5.477539SAvailable headers: content-type: application/atom+xml;type=entry;charset=utf-8 - date: Tue, 02 Mar 2021 19:55:43 GMT - etag: '637503117426400000' + date: Thu, 22 Apr 2021 15:08:58 GMT + etag: '637547009381070000' server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 transfer-encoding: chunked status: code: 200 message: OK - url: https://servicebustestqwlgxkbg2s.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04 + url: https://servicebusteste2jcyl55n4.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) + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.9 (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://servicebustestqwlgxkbg2s.servicebus.windows.net/fjrui/subscriptions/eqkovc?enrich=false&api-version=2017-04eqkovc2021-03-02T19:55:43Z2021-03-02T19:55:43Zsb://servicebusteste2jcyl55n4.servicebus.windows.net/fjrui/subscriptions/eqkovc?enrich=false&api-version=2017-04eqkovc2021-04-22T15:08:58Z2021-04-22T15:08:59ZPT2MfalseP10675199DT2H48M5.477539Sfalsetrue010trueActive2021-03-02T19:55:43.2038102Z2021-03-02T19:55:43.5016686Z2021-03-02T19:55:43.2038102ZPT2MfalseP10675199DT2H48M5.477539Sfalsetrue010trueActive2021-04-22T15:08:58.8424999Z2021-04-22T15:08:59.1461603Z2021-04-22T15:08:58.843Z00000P10675199DT2H48M5.477539SAvailable headers: content-type: application/atom+xml;type=entry;charset=utf-8 - date: Tue, 02 Mar 2021 19:55:43 GMT - etag: '637503117426400000' + date: Thu, 22 Apr 2021 15:08:58 GMT + etag: '637547009381070000' server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 transfer-encoding: chunked status: code: 200 message: OK - url: https://servicebustestqwlgxkbg2s.servicebus.windows.net/fjrui/subscriptions/eqkovc?enrich=false&api-version=2017-04 + url: https://servicebusteste2jcyl55n4.servicebus.windows.net/fjrui/subscriptions/eqkovc?enrich=false&api-version=2017-04 - request: body: ' @@ -167,60 +167,60 @@ interactions: If-Match: - '*' User-Agent: - - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.9 (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://servicebustestqwlgxkbg2s.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04eqkovc2021-03-02T19:55:43Z2021-03-02T19:55:43Zhttps://servicebusteste2jcyl55n4.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04eqkovc2021-04-22T15:08:59Z2021-04-22T15:08:59ZPT12SfalsePT11Mtruetrue014trueActive2021-03-02T19:55:43.7161583Z2021-03-02T19:55:43.7161583Z0001-01-01T00:00:00PT10MAvailable + xmlns:i="http://www.w3.org/2001/XMLSchema-instance">PT12SfalsePT11Mtruetrue014trueActive2021-04-22T15:08:59.6663385Z2021-04-22T15:08:59.6663385Z0001-01-01T00:00:00PT10MAvailable headers: content-type: application/atom+xml;type=entry;charset=utf-8 - date: Tue, 02 Mar 2021 19:55:43 GMT - etag: '637503117426400000' + date: Thu, 22 Apr 2021 15:08:58 GMT + etag: '637547009381070000' server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 transfer-encoding: chunked status: code: 200 message: OK - url: https://servicebustestqwlgxkbg2s.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04 + url: https://servicebusteste2jcyl55n4.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) + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.9 (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://servicebustestqwlgxkbg2s.servicebus.windows.net/fjrui/subscriptions/eqkovc?enrich=false&api-version=2017-04eqkovc2021-03-02T19:55:43Z2021-03-02T19:55:43Zsb://servicebusteste2jcyl55n4.servicebus.windows.net/fjrui/subscriptions/eqkovc?enrich=false&api-version=2017-04eqkovc2021-04-22T15:08:58Z2021-04-22T15:08:59ZPT12SfalsePT11Mtruetrue014trueActive2021-03-02T19:55:43.2038102Z2021-03-02T19:55:43.7204468Z2021-03-02T19:55:43.2038102ZPT12SfalsePT11Mtruetrue014trueActive2021-04-22T15:08:58.8424999Z2021-04-22T15:08:59.6774516Z2021-04-22T15:08:58.843Z00000PT10MAvailable headers: content-type: application/atom+xml;type=entry;charset=utf-8 - date: Tue, 02 Mar 2021 19:55:43 GMT - etag: '637503117426400000' + date: Thu, 22 Apr 2021 15:08:59 GMT + etag: '637547009381070000' server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 transfer-encoding: chunked status: code: 200 message: OK - url: https://servicebustestqwlgxkbg2s.servicebus.windows.net/fjrui/subscriptions/eqkovc?enrich=false&api-version=2017-04 + url: https://servicebusteste2jcyl55n4.servicebus.windows.net/fjrui/subscriptions/eqkovc?enrich=false&api-version=2017-04 - request: body: ' PT12SfalsePT11Mtruetrue14trueActivesb://servicebustestqwlgxkbg2s.servicebus.windows.net/fjruisb://servicebustestqwlgxkbg2s.servicebus.windows.net/fjruiPT10MAvailable' + type="application/xml">PT12SfalsePT11Mtruetrue14trueActivesb://servicebusteste2jcyl55n4.servicebus.windows.net/fjruisb://servicebusteste2jcyl55n4.servicebus.windows.net/fjruiPT10MAvailable' headers: Accept: - application/xml @@ -231,66 +231,130 @@ interactions: If-Match: - '*' ServiceBusDlqSupplementaryAuthorization: - - SharedAccessSignature sr=sb%3A%2F%2Fservicebustestqwlgxkbg2s.servicebus.windows.net%2Ffjrui&sig=9nOV37RbMacHrTSvL7wv6qLImc0w0M83TT0Efgv8XMQ%3d&se=1614718543&skn=RootManageSharedAccessKey + - SharedAccessSignature sr=sb%3A%2F%2Fservicebusteste2jcyl55n4.servicebus.windows.net%2Ffjrui&sig=Gqpvpph3U7yIOc1H65DXTCvunMmzZYC%2bLdd4tcjh7CA%3d&se=1619107740&skn=RootManageSharedAccessKey ServiceBusSupplementaryAuthorization: - - SharedAccessSignature sr=sb%3A%2F%2Fservicebustestqwlgxkbg2s.servicebus.windows.net%2Ffjrui&sig=9nOV37RbMacHrTSvL7wv6qLImc0w0M83TT0Efgv8XMQ%3d&se=1614718543&skn=RootManageSharedAccessKey + - SharedAccessSignature sr=sb%3A%2F%2Fservicebusteste2jcyl55n4.servicebus.windows.net%2Ffjrui&sig=Gqpvpph3U7yIOc1H65DXTCvunMmzZYC%2bLdd4tcjh7CA%3d&se=1619107740&skn=RootManageSharedAccessKey User-Agent: - - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.9 (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://servicebustestqwlgxkbg2s.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04eqkovc2021-03-02T19:55:43Z2021-03-02T19:55:43Zhttps://servicebusteste2jcyl55n4.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04eqkovc2021-04-22T15:09:00Z2021-04-22T15:09:00ZPT12SfalsePT11Mtruetrue014trueActivesb://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 + xmlns:i="http://www.w3.org/2001/XMLSchema-instance">PT12SfalsePT11Mtruetrue014trueActivesb://servicebusteste2jcyl55n4.servicebus.windows.net/fjrui2021-04-22T15:09:00.1984576Z2021-04-22T15:09:00.1984576Z0001-01-01T00:00:00sb://servicebusteste2jcyl55n4.servicebus.windows.net/fjruiP10675199DT2H48M5.4775807SAvailable headers: content-type: application/atom+xml;type=entry;charset=utf-8 - date: Tue, 02 Mar 2021 19:55:43 GMT - etag: '637503117426400000' + date: Thu, 22 Apr 2021 15:08:59 GMT + etag: '637547009381070000' server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 transfer-encoding: chunked status: code: 200 message: OK - url: https://servicebustestqwlgxkbg2s.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04 + url: https://servicebusteste2jcyl55n4.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) + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.9 (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://servicebustestqwlgxkbg2s.servicebus.windows.net/fjrui/subscriptions/eqkovc?enrich=false&api-version=2017-04eqkovc2021-03-02T19:55:43Z2021-03-02T19:55:43Zsb://servicebusteste2jcyl55n4.servicebus.windows.net/fjrui/subscriptions/eqkovc?enrich=false&api-version=2017-04eqkovc2021-04-22T15:08:58Z2021-04-22T15:09:00ZPT12SfalsePT11Mtruetrue014trueActivesb://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 + xmlns:i="http://www.w3.org/2001/XMLSchema-instance">PT12SfalsePT11Mtruetrue014trueActivesb://servicebusteste2jcyl55n4.servicebus.windows.net/fjrui2021-04-22T15:08:58.8424999Z2021-04-22T15:09:00.2087017Z2021-04-22T15:08:58.843Z00000sb://servicebusteste2jcyl55n4.servicebus.windows.net/fjruiP10675199DT2H48M5.4775807SAvailable headers: content-type: application/atom+xml;type=entry;charset=utf-8 - date: Tue, 02 Mar 2021 19:55:43 GMT - etag: '637503117426400000' + date: Thu, 22 Apr 2021 15:08:59 GMT + etag: '637547009381070000' server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 transfer-encoding: chunked status: code: 200 message: OK - url: https://servicebustestqwlgxkbg2s.servicebus.windows.net/fjrui/subscriptions/eqkovc?enrich=false&api-version=2017-04 + url: https://servicebusteste2jcyl55n4.servicebus.windows.net/fjrui/subscriptions/eqkovc?enrich=false&api-version=2017-04 +- request: + body: ' + + PT17SfalsePT16Mfalsetrue15trueActivePT15MAvailable' + headers: + Accept: + - application/xml + Content-Length: + - '797' + Content-Type: + - application/atom+xml + If-Match: + - '*' + User-Agent: + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.9 (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://servicebusteste2jcyl55n4.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04eqkovc2021-04-22T15:09:00Z2021-04-22T15:09:00ZPT17SfalsePT16Mfalsetrue015trueActive2021-04-22T15:09:00.7297139Z2021-04-22T15:09:00.7297139Z0001-01-01T00:00:00PT15MAvailable + headers: + content-type: application/atom+xml;type=entry;charset=utf-8 + date: Thu, 22 Apr 2021 15:08:59 GMT + etag: '637547009381070000' + server: Microsoft-HTTPAPI/2.0 + strict-transport-security: max-age=31536000 + transfer-encoding: chunked + status: + code: 200 + message: OK + url: https://servicebusteste2jcyl55n4.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.9 (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://servicebusteste2jcyl55n4.servicebus.windows.net/fjrui/subscriptions/eqkovc?enrich=false&api-version=2017-04eqkovc2021-04-22T15:08:58Z2021-04-22T15:09:00ZPT17SfalsePT16Mfalsetrue015trueActive2021-04-22T15:08:58.8424999Z2021-04-22T15:09:00.7243362Z2021-04-22T15:08:58.843Z00000PT15MAvailable + headers: + content-type: application/atom+xml;type=entry;charset=utf-8 + date: Thu, 22 Apr 2021 15:09:00 GMT + etag: '637547009381070000' + server: Microsoft-HTTPAPI/2.0 + strict-transport-security: max-age=31536000 + transfer-encoding: chunked + status: + code: 200 + message: OK + url: https://servicebusteste2jcyl55n4.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) + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: DELETE uri: https://servicebustestsbname.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04 response: @@ -298,21 +362,21 @@ interactions: string: '' headers: content-length: '0' - date: Tue, 02 Mar 2021 19:55:43 GMT - etag: '637503117426400000' + date: Thu, 22 Apr 2021 15:09:00 GMT + etag: '637547009381070000' server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 status: code: 200 message: OK - url: https://servicebustestqwlgxkbg2s.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04 + url: https://servicebusteste2jcyl55n4.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) + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: DELETE uri: https://servicebustestsbname.servicebus.windows.net/fjrui?api-version=2017-04 response: @@ -320,12 +384,12 @@ interactions: string: '' headers: content-length: '0' - date: Tue, 02 Mar 2021 19:55:44 GMT - etag: '637503117426400000' + date: Thu, 22 Apr 2021 15:09:01 GMT + etag: '637547009381070000' server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 status: code: 200 message: OK - url: https://servicebustestqwlgxkbg2s.servicebus.windows.net/fjrui?api-version=2017-04 + url: https://servicebusteste2jcyl55n4.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_async_mgmt_topic_update_success.yaml b/sdk/servicebus/azure-servicebus/tests/async_tests/mgmt_tests/recordings/test_mgmt_topics_async.test_async_mgmt_topic_update_success.yaml index dd507608d348..a5baedcc6ea2 100644 --- a/sdk/servicebus/azure-servicebus/tests/async_tests/mgmt_tests/recordings/test_mgmt_topics_async.test_async_mgmt_topic_update_success.yaml +++ b/sdk/servicebus/azure-servicebus/tests/async_tests/mgmt_tests/recordings/test_mgmt_topics_async.test_async_mgmt_topic_update_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://servicebustestjzwiw5amtb.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-042021-04-15T16:38:23Z + string: Topicshttps://servicebustestsqmnqdktqa.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-042021-04-22T14:57:55Z headers: content-type: application/atom+xml;type=feed;charset=utf-8 - date: Thu, 15 Apr 2021 16:38:22 GMT + date: Thu, 22 Apr 2021 14:57:55 GMT server: Microsoft-HTTPAPI/2.0 transfer-encoding: chunked status: code: 200 message: OK - url: https://servicebustestjzwiw5amtb.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-04 + url: https://servicebustestsqmnqdktqa.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-04 - request: body: ' @@ -39,27 +39,27 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjrui?api-version=2017-04 response: body: - string: https://servicebustestjzwiw5amtb.servicebus.windows.net/fjrui?api-version=2017-04fjrui2021-04-15T16:38:24Z2021-04-15T16:38:24Zservicebustestjzwiw5amtbhttps://servicebustestsqmnqdktqa.servicebus.windows.net/fjrui?api-version=2017-04fjrui2021-04-22T14:57:56Z2021-04-22T14:57:56ZservicebustestsqmnqdktqaP10675199DT2H48M5.4775807S1024falsePT10Mtrue0falsefalseActive2021-04-15T16:38:24.113Z2021-04-15T16:38:24.21ZtrueP10675199DT2H48M5.4775807SfalseAvailablefalsefalse + xmlns:i="http://www.w3.org/2001/XMLSchema-instance">P10675199DT2H48M5.4775807S1024falsePT10Mtrue0falsefalseActive2021-04-22T14:57:56.437Z2021-04-22T14:57:56.657ZtrueP10675199DT2H48M5.4775807SfalseAvailablefalsefalse headers: content-type: application/atom+xml;type=entry;charset=utf-8 - date: Thu, 15 Apr 2021 16:38:24 GMT + date: Thu, 22 Apr 2021 14:57:57 GMT server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 transfer-encoding: chunked status: code: 201 message: Created - url: https://servicebustestjzwiw5amtb.servicebus.windows.net/fjrui?api-version=2017-04 + url: https://servicebustestsqmnqdktqa.servicebus.windows.net/fjrui?api-version=2017-04 - request: body: ' PT2M1024falsePT10Mtrue0falsefalseActive2021-04-15T16:38:24.113Z2021-04-15T16:38:24.210ZtrueP10675199DT2H48M5.477539SfalseAvailablefalsefalse' + />Active2021-04-22T14:57:56.437Z2021-04-22T14:57:56.657ZtrueP10675199DT2H48M5.477539SfalseAvailablefalsefalse' headers: Accept: - application/xml @@ -75,22 +75,22 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjrui?api-version=2017-04 response: body: - string: https://servicebustestjzwiw5amtb.servicebus.windows.net/fjrui?api-version=2017-04fjrui2021-04-15T16:38:24Zservicebustestjzwiw5amtbhttps://servicebustestsqmnqdktqa.servicebus.windows.net/fjrui?api-version=2017-04fjrui2021-04-22T14:57:57ZservicebustestsqmnqdktqaPT2M1024falsePT10Mtrue0falsefalseActive2021-04-15T16:38:24.113Z2021-04-15T16:38:24.21ZtrueP10675199DT2H48M5.477539SfalseAvailablefalsefalse + xmlns:i="http://www.w3.org/2001/XMLSchema-instance">PT2M1024falsePT10Mtrue0falsefalseActive2021-04-22T14:57:56.437Z2021-04-22T14:57:56.657ZtrueP10675199DT2H48M5.477539SfalseAvailablefalsefalse headers: content-type: application/atom+xml;type=entry;charset=utf-8 - date: Thu, 15 Apr 2021 16:38:24 GMT - etag: '637541015042100000' + date: Thu, 22 Apr 2021 14:57:57 GMT + etag: '637547002766570000' server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 transfer-encoding: chunked status: code: 200 message: OK - url: https://servicebustestjzwiw5amtb.servicebus.windows.net/fjrui?api-version=2017-04 + url: https://servicebustestsqmnqdktqa.servicebus.windows.net/fjrui?api-version=2017-04 - request: body: null headers: @@ -102,30 +102,30 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjrui?enrich=false&api-version=2017-04 response: body: - string: https://servicebustestjzwiw5amtb.servicebus.windows.net/fjrui?enrich=false&api-version=2017-04fjrui2021-04-15T16:38:24Z2021-04-15T16:38:24Zservicebustestjzwiw5amtbhttps://servicebustestsqmnqdktqa.servicebus.windows.net/fjrui?enrich=false&api-version=2017-04fjrui2021-04-22T14:57:56Z2021-04-22T14:57:57ZservicebustestsqmnqdktqaPT2M1024falsePT10Mtrue0falsefalseActive2021-04-15T16:38:24.113Z2021-04-15T16:38:24.917Z0001-01-01T00:00:00ZtruePT2M1024falsePT10Mtrue0falsefalseActive2021-04-22T14:57:56.437Z2021-04-22T14:57:57.39Z0001-01-01T00:00:00Ztrue000000P10675199DT2H48M5.477539SfalseAvailablefalsefalse headers: content-type: application/atom+xml;type=entry;charset=utf-8 - date: Thu, 15 Apr 2021 16:38:24 GMT - etag: '637541015049170000' + date: Thu, 22 Apr 2021 14:57:57 GMT + etag: '637547002773900000' server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 transfer-encoding: chunked status: code: 200 message: OK - url: https://servicebustestjzwiw5amtb.servicebus.windows.net/fjrui?enrich=false&api-version=2017-04 + url: https://servicebustestsqmnqdktqa.servicebus.windows.net/fjrui?enrich=false&api-version=2017-04 - request: body: ' PT11M3072falsePT12Mtrue0falsefalseActive2021-04-15T16:38:24.113Z2021-04-15T16:38:24.917Z0001-01-01T00:00:00.000Ztrue000000PT10MfalseAvailablefalsetrue' + />Active2021-04-22T14:57:56.437Z2021-04-22T14:57:57.390Z0001-01-01T00:00:00.000Ztrue000000PT10MfalseAvailablefalsetrue' headers: Accept: - application/xml @@ -141,23 +141,23 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjrui?api-version=2017-04 response: body: - string: https://servicebustestjzwiw5amtb.servicebus.windows.net/fjrui?api-version=2017-04fjrui2021-04-15T16:38:25Zservicebustestjzwiw5amtbhttps://servicebustestsqmnqdktqa.servicebus.windows.net/fjrui?api-version=2017-04fjrui2021-04-22T14:57:58ZservicebustestsqmnqdktqaPT11M3072falsePT12Mtrue0falsefalseActive2021-04-15T16:38:24.113Z2021-04-15T16:38:24.917Z0001-01-01T00:00:00ZtruePT11M3072falsePT12Mtrue0falsefalseActive2021-04-22T14:57:56.437Z2021-04-22T14:57:57.39Z0001-01-01T00:00:00Ztrue000000PT10MfalseAvailablefalsetrue headers: content-type: application/atom+xml;type=entry;charset=utf-8 - date: Thu, 15 Apr 2021 16:38:24 GMT - etag: '637541015049170000' + date: Thu, 22 Apr 2021 14:57:58 GMT + etag: '637547002773900000' server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 transfer-encoding: chunked status: code: 200 message: OK - url: https://servicebustestjzwiw5amtb.servicebus.windows.net/fjrui?api-version=2017-04 + url: https://servicebustestsqmnqdktqa.servicebus.windows.net/fjrui?api-version=2017-04 - request: body: null headers: @@ -169,30 +169,30 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjrui?enrich=false&api-version=2017-04 response: body: - string: https://servicebustestjzwiw5amtb.servicebus.windows.net/fjrui?enrich=false&api-version=2017-04fjrui2021-04-15T16:38:24Z2021-04-15T16:38:25Zservicebustestjzwiw5amtbhttps://servicebustestsqmnqdktqa.servicebus.windows.net/fjrui?enrich=false&api-version=2017-04fjrui2021-04-22T14:57:56Z2021-04-22T14:57:58ZservicebustestsqmnqdktqaPT11M3072falsePT12Mtrue0falsefalseActive2021-04-15T16:38:24.113Z2021-04-15T16:38:25.493Z0001-01-01T00:00:00ZtruePT11M3072falsePT12Mtrue0falsefalseActive2021-04-22T14:57:56.437Z2021-04-22T14:57:58.09Z0001-01-01T00:00:00Ztrue000000PT10MfalseAvailablefalsetrue headers: content-type: application/atom+xml;type=entry;charset=utf-8 - date: Thu, 15 Apr 2021 16:38:25 GMT - etag: '637541015054930000' + date: Thu, 22 Apr 2021 14:57:58 GMT + etag: '637547002780900000' server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 transfer-encoding: chunked status: code: 200 message: OK - url: https://servicebustestjzwiw5amtb.servicebus.windows.net/fjrui?enrich=false&api-version=2017-04 + url: https://servicebustestsqmnqdktqa.servicebus.windows.net/fjrui?enrich=false&api-version=2017-04 - request: body: ' PT11M2S3072falsePT12M3Strue0falsefalseActive2021-04-15T16:38:24.113Z2021-04-15T16:38:25.493Z0001-01-01T00:00:00.000Ztrue000000PT10M1SfalseAvailablefalsetrue' + />Active2021-04-22T14:57:56.437Z2021-04-22T14:57:58.090Z0001-01-01T00:00:00.000Ztrue000000PT10M1SfalseAvailablefalsetrue' headers: Accept: - application/xml @@ -208,23 +208,23 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjrui?api-version=2017-04 response: body: - string: https://servicebustestjzwiw5amtb.servicebus.windows.net/fjrui?api-version=2017-04fjrui2021-04-15T16:38:26Zservicebustestjzwiw5amtbhttps://servicebustestsqmnqdktqa.servicebus.windows.net/fjrui?api-version=2017-04fjrui2021-04-22T14:57:58ZservicebustestsqmnqdktqaPT11M2S3072falsePT12M3Strue0falsefalseActive2021-04-15T16:38:24.113Z2021-04-15T16:38:25.493Z0001-01-01T00:00:00ZtruePT11M2S3072falsePT12M3Strue0falsefalseActive2021-04-22T14:57:56.437Z2021-04-22T14:57:58.09Z0001-01-01T00:00:00Ztrue000000PT10M1SfalseAvailablefalsetrue headers: content-type: application/atom+xml;type=entry;charset=utf-8 - date: Thu, 15 Apr 2021 16:38:25 GMT - etag: '637541015054930000' + date: Thu, 22 Apr 2021 14:57:58 GMT + etag: '637547002780900000' server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 transfer-encoding: chunked status: code: 200 message: OK - url: https://servicebustestjzwiw5amtb.servicebus.windows.net/fjrui?api-version=2017-04 + url: https://servicebustestsqmnqdktqa.servicebus.windows.net/fjrui?api-version=2017-04 - request: body: null headers: @@ -236,23 +236,88 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjrui?enrich=false&api-version=2017-04 response: body: - string: https://servicebustestjzwiw5amtb.servicebus.windows.net/fjrui?enrich=false&api-version=2017-04fjrui2021-04-15T16:38:24Z2021-04-15T16:38:26Zservicebustestjzwiw5amtbhttps://servicebustestsqmnqdktqa.servicebus.windows.net/fjrui?enrich=false&api-version=2017-04fjrui2021-04-22T14:57:56Z2021-04-22T14:57:58ZservicebustestsqmnqdktqaPT11M2S3072falsePT12M3Strue0falsefalseActive2021-04-15T16:38:24.113Z2021-04-15T16:38:26.007Z0001-01-01T00:00:00ZtruePT11M2S3072falsePT12M3Strue0falsefalseActive2021-04-22T14:57:56.437Z2021-04-22T14:57:58.61Z0001-01-01T00:00:00Ztrue000000PT10M1SfalseAvailablefalsetrue headers: content-type: application/atom+xml;type=entry;charset=utf-8 - date: Thu, 15 Apr 2021 16:38:25 GMT - etag: '637541015060070000' + date: Thu, 22 Apr 2021 14:57:58 GMT + etag: '637547002786100000' server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 transfer-encoding: chunked status: code: 200 message: OK - url: https://servicebustestjzwiw5amtb.servicebus.windows.net/fjrui?enrich=false&api-version=2017-04 + url: https://servicebustestsqmnqdktqa.servicebus.windows.net/fjrui?enrich=false&api-version=2017-04 +- request: + body: ' + + PT15M2048falsePT16Mfalse0ActivefalsePT14MfalseAvailablefalse' + headers: + Accept: + - application/xml + Content-Length: + - '865' + Content-Type: + - application/atom+xml + If-Match: + - '*' + User-Agent: + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.9 (Windows-10-10.0.19041-SP0) + method: PUT + uri: https://servicebustestsbname.servicebus.windows.net/fjrui?api-version=2017-04 + response: + body: + string: https://servicebustestsqmnqdktqa.servicebus.windows.net/fjrui?api-version=2017-04fjrui2021-04-22T14:57:59ZservicebustestsqmnqdktqaPT15M2048falsePT16Mfalse0ActivefalsePT14MfalseAvailablefalse + headers: + content-type: application/atom+xml;type=entry;charset=utf-8 + date: Thu, 22 Apr 2021 14:57:59 GMT + etag: '637547002786100000' + server: Microsoft-HTTPAPI/2.0 + strict-transport-security: max-age=31536000 + transfer-encoding: chunked + status: + code: 200 + message: OK + url: https://servicebustestsqmnqdktqa.servicebus.windows.net/fjrui?api-version=2017-04 +- request: + body: null + headers: + Accept: + - application/xml + User-Agent: + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.9 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://servicebustestsbname.servicebus.windows.net/fjrui?enrich=false&api-version=2017-04 + response: + body: + string: https://servicebustestsqmnqdktqa.servicebus.windows.net/fjrui?enrich=false&api-version=2017-04fjrui2021-04-22T14:57:56Z2021-04-22T14:57:59ZservicebustestsqmnqdktqaPT15M2048falsePT16Mfalse0falsefalseActive2021-04-22T14:57:56.437Z2021-04-22T14:57:59.133Z0001-01-01T00:00:00Zfalse000000PT14MfalseAvailablefalsefalse + headers: + content-type: application/atom+xml;type=entry;charset=utf-8 + date: Thu, 22 Apr 2021 14:57:59 GMT + etag: '637547002791330000' + server: Microsoft-HTTPAPI/2.0 + strict-transport-security: max-age=31536000 + transfer-encoding: chunked + status: + code: 200 + message: OK + url: https://servicebustestsqmnqdktqa.servicebus.windows.net/fjrui?enrich=false&api-version=2017-04 - request: body: null headers: @@ -267,12 +332,12 @@ interactions: string: '' headers: content-length: '0' - date: Thu, 15 Apr 2021 16:38:26 GMT - etag: '637541015060070000' + date: Thu, 22 Apr 2021 14:58:00 GMT + etag: '637547002791330000' server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 status: code: 200 message: OK - url: https://servicebustestjzwiw5amtb.servicebus.windows.net/fjrui?api-version=2017-04 + url: https://servicebustestsqmnqdktqa.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_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 5c9576640325..3af5eaedc164 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 @@ -5,22 +5,22 @@ interactions: Accept: - application/xml User-Agent: - - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.9 (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://servicebustestqmzhmfhh7b.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-042021-03-02T19:57:11Z + string: Topicshttps://servicebustestoklkptksim.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-042021-04-22T14:49:38Z headers: content-type: application/atom+xml;type=feed;charset=utf-8 - date: Tue, 02 Mar 2021 19:57:11 GMT + date: Thu, 22 Apr 2021 14:49:37 GMT server: Microsoft-HTTPAPI/2.0 transfer-encoding: chunked status: code: 200 message: OK - url: https://servicebustestqmzhmfhh7b.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-04 + url: https://servicebustestoklkptksim.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-04 - request: body: ' @@ -34,26 +34,26 @@ interactions: Content-Type: - application/atom+xml User-Agent: - - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: PUT uri: https://servicebustestsbname.servicebus.windows.net/fjruid?api-version=2017-04 response: body: - string: https://servicebustestqmzhmfhh7b.servicebus.windows.net/fjruid?api-version=2017-04fjruid2021-03-02T19:57:12Z2021-03-02T19:57:12Zservicebustestqmzhmfhh7bhttps://servicebustestoklkptksim.servicebus.windows.net/fjruid?api-version=2017-04fjruid2021-04-22T14:49:39Z2021-04-22T14:49:39ZservicebustestoklkptksimP10675199DT2H48M5.4775807S1024falsePT10Mtrue0falsefalseActive2021-03-02T19:57:12.083Z2021-03-02T19:57:12.17ZtrueP10675199DT2H48M5.4775807SfalseAvailablefalsefalse + xmlns:i="http://www.w3.org/2001/XMLSchema-instance">P10675199DT2H48M5.4775807S1024falsePT10Mtrue0falsefalseActive2021-04-22T14:49:39.203Z2021-04-22T14:49:39.313ZtrueP10675199DT2H48M5.4775807SfalseAvailablefalsefalse headers: content-type: application/atom+xml;type=entry;charset=utf-8 - date: Tue, 02 Mar 2021 19:57:12 GMT + date: Thu, 22 Apr 2021 14:49:38 GMT server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 transfer-encoding: chunked status: code: 201 message: Created - url: https://servicebustestqmzhmfhh7b.servicebus.windows.net/fjruid?api-version=2017-04 + url: https://servicebustestoklkptksim.servicebus.windows.net/fjruid?api-version=2017-04 - request: body: ' @@ -70,55 +70,55 @@ interactions: If-Match: - '*' User-Agent: - - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: PUT uri: https://servicebustestsbname.servicebus.windows.net/fjruid?api-version=2017-04 response: body: - string: https://servicebustestqmzhmfhh7b.servicebus.windows.net/fjruid?api-version=2017-04fjruid2021-03-02T19:57:12Zservicebustestqmzhmfhh7bhttps://servicebustestoklkptksim.servicebus.windows.net/fjruid?api-version=2017-04fjruid2021-04-22T14:49:40ZservicebustestoklkptksimPT2M1024falsePT10Mtrue0ActivetrueP10675199DT2H48M5.477539SfalseAvailablefalse headers: content-type: application/atom+xml;type=entry;charset=utf-8 - date: Tue, 02 Mar 2021 19:57:12 GMT - etag: '637503118321700000' + date: Thu, 22 Apr 2021 14:49:39 GMT + etag: '637546997793130000' server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 transfer-encoding: chunked status: code: 200 message: OK - url: https://servicebustestqmzhmfhh7b.servicebus.windows.net/fjruid?api-version=2017-04 + url: https://servicebustestoklkptksim.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) + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.9 (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://servicebustestqmzhmfhh7b.servicebus.windows.net/fjruid?enrich=false&api-version=2017-04fjruid2021-03-02T19:57:12Z2021-03-02T19:57:12Zservicebustestqmzhmfhh7bhttps://servicebustestoklkptksim.servicebus.windows.net/fjruid?enrich=false&api-version=2017-04fjruid2021-04-22T14:49:39Z2021-04-22T14:49:40ZservicebustestoklkptksimPT2M1024falsePT10Mtrue0falsefalseActive2021-03-02T19:57:12.083Z2021-03-02T19:57:12.777Z0001-01-01T00:00:00ZtruePT2M1024falsePT10Mtrue0falsefalseActive2021-04-22T14:49:39.203Z2021-04-22T14:49:40Z0001-01-01T00:00:00Ztrue000000P10675199DT2H48M5.477539SfalseAvailablefalsefalse headers: content-type: application/atom+xml;type=entry;charset=utf-8 - date: Tue, 02 Mar 2021 19:57:12 GMT - etag: '637503118327770000' + date: Thu, 22 Apr 2021 14:49:39 GMT + etag: '637546997800000000' server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 transfer-encoding: chunked status: code: 200 message: OK - url: https://servicebustestqmzhmfhh7b.servicebus.windows.net/fjruid?enrich=false&api-version=2017-04 + url: https://servicebustestoklkptksim.servicebus.windows.net/fjruid?enrich=false&api-version=2017-04 - request: body: ' @@ -135,62 +135,127 @@ interactions: If-Match: - '*' User-Agent: - - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: PUT uri: https://servicebustestsbname.servicebus.windows.net/fjruid?api-version=2017-04 response: body: - string: https://servicebustestqmzhmfhh7b.servicebus.windows.net/fjruid?api-version=2017-04fjruid2021-03-02T19:57:13Zservicebustestqmzhmfhh7bhttps://servicebustestoklkptksim.servicebus.windows.net/fjruid?api-version=2017-04fjruid2021-04-22T14:49:40ZservicebustestoklkptksimPT11M3072falsePT12Mtrue0ActivetruePT10MfalseAvailabletrue headers: content-type: application/atom+xml;type=entry;charset=utf-8 - date: Tue, 02 Mar 2021 19:57:13 GMT - etag: '637503118327770000' + date: Thu, 22 Apr 2021 14:49:39 GMT + etag: '637546997800000000' server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 transfer-encoding: chunked status: code: 200 message: OK - url: https://servicebustestqmzhmfhh7b.servicebus.windows.net/fjruid?api-version=2017-04 + url: https://servicebustestoklkptksim.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) + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.9 (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://servicebustestqmzhmfhh7b.servicebus.windows.net/fjruid?enrich=false&api-version=2017-04fjruid2021-03-02T19:57:12Z2021-03-02T19:57:13Zservicebustestqmzhmfhh7bhttps://servicebustestoklkptksim.servicebus.windows.net/fjruid?enrich=false&api-version=2017-04fjruid2021-04-22T14:49:39Z2021-04-22T14:49:40ZservicebustestoklkptksimPT11M3072falsePT12Mtrue0falsefalseActive2021-03-02T19:57:12.083Z2021-03-02T19:57:13.1Z0001-01-01T00:00:00ZtruePT11M3072falsePT12Mtrue0falsefalseActive2021-04-22T14:49:39.203Z2021-04-22T14:49:40.527Z0001-01-01T00:00:00Ztrue000000PT10MfalseAvailablefalsetrue headers: content-type: application/atom+xml;type=entry;charset=utf-8 - date: Tue, 02 Mar 2021 19:57:13 GMT - etag: '637503118331000000' + date: Thu, 22 Apr 2021 14:49:40 GMT + etag: '637546997805270000' server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 transfer-encoding: chunked status: code: 200 message: OK - url: https://servicebustestqmzhmfhh7b.servicebus.windows.net/fjruid?enrich=false&api-version=2017-04 + url: https://servicebustestoklkptksim.servicebus.windows.net/fjruid?enrich=false&api-version=2017-04 +- request: + body: ' + + PT15M2048falsePT16Mfalse0ActivefalsePT14MfalseAvailablefalse' + headers: + Accept: + - application/xml + Content-Length: + - '865' + Content-Type: + - application/atom+xml + If-Match: + - '*' + User-Agent: + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.9 (Windows-10-10.0.19041-SP0) + method: PUT + uri: https://servicebustestsbname.servicebus.windows.net/fjruid?api-version=2017-04 + response: + body: + string: https://servicebustestoklkptksim.servicebus.windows.net/fjruid?api-version=2017-04fjruid2021-04-22T14:49:41ZservicebustestoklkptksimPT15M2048falsePT16Mfalse0ActivefalsePT14MfalseAvailablefalse + headers: + content-type: application/atom+xml;type=entry;charset=utf-8 + date: Thu, 22 Apr 2021 14:49:40 GMT + etag: '637546997805270000' + server: Microsoft-HTTPAPI/2.0 + strict-transport-security: max-age=31536000 + transfer-encoding: chunked + status: + code: 200 + message: OK + url: https://servicebustestoklkptksim.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.9 (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://servicebustestoklkptksim.servicebus.windows.net/fjruid?enrich=false&api-version=2017-04fjruid2021-04-22T14:49:39Z2021-04-22T14:49:41ZservicebustestoklkptksimPT15M2048falsePT16Mfalse0falsefalseActive2021-04-22T14:49:39.203Z2021-04-22T14:49:41.193Z0001-01-01T00:00:00Zfalse000000PT14MfalseAvailablefalsefalse + headers: + content-type: application/atom+xml;type=entry;charset=utf-8 + date: Thu, 22 Apr 2021 14:49:40 GMT + etag: '637546997811930000' + server: Microsoft-HTTPAPI/2.0 + strict-transport-security: max-age=31536000 + transfer-encoding: chunked + status: + code: 200 + message: OK + url: https://servicebustestoklkptksim.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) + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: DELETE uri: https://servicebustestsbname.servicebus.windows.net/fjruid?api-version=2017-04 response: @@ -198,12 +263,12 @@ interactions: string: '' headers: content-length: '0' - date: Tue, 02 Mar 2021 19:57:13 GMT - etag: '637503118331000000' + date: Thu, 22 Apr 2021 14:49:41 GMT + etag: '637546997811930000' server: Microsoft-HTTPAPI/2.0 strict-transport-security: max-age=31536000 status: code: 200 message: OK - url: https://servicebustestqmzhmfhh7b.servicebus.windows.net/fjruid?api-version=2017-04 + url: https://servicebustestoklkptksim.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 75f439a714b5..b4addd6564ef 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 @@ -393,10 +393,42 @@ async def test_async_mgmt_queue_update_success(self, servicebus_namespace_connec assert queue_description.default_message_time_to_live == datetime.timedelta(minutes=11, seconds=2) assert queue_description.duplicate_detection_history_time_window == datetime.timedelta(minutes=12, seconds=3) + # updating all settings with keyword arguments. + await mgmt_service.update_queue( + queue_description, + auto_delete_on_idle=datetime.timedelta(minutes=15), + dead_lettering_on_message_expiration=False, + default_message_time_to_live=datetime.timedelta(minutes=16), + duplicate_detection_history_time_window=datetime.timedelta(minutes=17), + enable_batched_operations=False, + enable_express=False, + lock_duration=datetime.timedelta(seconds=18), + max_delivery_count=15, + max_size_in_megabytes=2048, + forward_to=None, + forward_dead_lettered_messages_to=None + ) + queue_description = await mgmt_service.get_queue(queue_name) + assert queue_description.auto_delete_on_idle == datetime.timedelta(minutes=15) + assert queue_description.dead_lettering_on_message_expiration == False + assert queue_description.default_message_time_to_live == datetime.timedelta(minutes=16) + assert queue_description.duplicate_detection_history_time_window == datetime.timedelta(minutes=17) + assert queue_description.enable_batched_operations == False + assert queue_description.enable_express == False + #assert queue_description.enable_partitioning == True + assert queue_description.lock_duration == datetime.timedelta(seconds=18) + assert queue_description.max_delivery_count == 15 + assert queue_description.max_size_in_megabytes == 2048 + # 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 == None + assert queue_description.forward_dead_lettered_messages_to == None + #assert queue_description.requires_duplicate_detection == True + #assert queue_description.requires_session == True + finally: await mgmt_service.delete_queue(queue_name) await mgmt_service.delete_topic(topic_name) - mgmt_service.close() + await mgmt_service.close() @CachedResourceGroupPreparer(name_prefix='servicebustest') @CachedServiceBusNamespacePreparer(name_prefix='servicebustest') @@ -576,6 +608,39 @@ async def test_mgmt_queue_async_update_dict_success(self, servicebus_namespace_c 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 + + # updating all settings with keyword arguments. + await mgmt_service.update_queue( + dict(queue_description), + auto_delete_on_idle=datetime.timedelta(minutes=15), + dead_lettering_on_message_expiration=False, + default_message_time_to_live=datetime.timedelta(minutes=16), + duplicate_detection_history_time_window=datetime.timedelta(minutes=17), + enable_batched_operations=False, + enable_express=False, + lock_duration=datetime.timedelta(seconds=18), + max_delivery_count=15, + max_size_in_megabytes=2048, + forward_to=None, + forward_dead_lettered_messages_to=None + ) + queue_description = await mgmt_service.get_queue(queue_name) + assert queue_description.auto_delete_on_idle == datetime.timedelta(minutes=15) + assert queue_description.dead_lettering_on_message_expiration == False + assert queue_description.default_message_time_to_live == datetime.timedelta(minutes=16) + assert queue_description.duplicate_detection_history_time_window == datetime.timedelta(minutes=17) + assert queue_description.enable_batched_operations == False + assert queue_description.enable_express == False + # assert queue_description.enable_partitioning == True + assert queue_description.lock_duration == datetime.timedelta(seconds=18) + assert queue_description.max_delivery_count == 15 + assert queue_description.max_size_in_megabytes == 2048 + # 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 == None + assert queue_description.forward_dead_lettered_messages_to == None + # assert queue_description.requires_duplicate_detection == True + # assert queue_description.requires_session == True + 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 88f7787686f7..b3ed139f59e7 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 @@ -150,6 +150,19 @@ async def test_async_mgmt_rule_update_success(self, servicebus_namespace_connect assert rule_desc.filter.correlation_id == 'testcid' assert rule_desc.action.sql_expression == "SET Priority = 'low'" + await mgmt_service.update_rule( + topic_description.name, + subscription_description.name, + rule_desc, + filter=CorrelationRuleFilter(correlation_id='updatedcid'), + action=None + ) + + 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 == 'updatedcid' + assert rule_desc.action == None + finally: await mgmt_service.delete_rule(topic_name, subscription_name, rule_name) await mgmt_service.delete_subscription(topic_name, subscription_name) @@ -280,6 +293,19 @@ async def test_mgmt_rule_async_update_dict_success(self, servicebus_namespace_co assert rule_desc.filter.correlation_id == 'testcid' assert rule_desc.action.sql_expression == "SET Priority = 'low'" + await mgmt_service.update_rule( + topic_description.name, + subscription_description.name, + dict(rule_desc), + filter=CorrelationRuleFilter(correlation_id='updatedcid'), + action=None + ) + + 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 == 'updatedcid' + assert rule_desc.action == None + finally: await mgmt_service.delete_rule(topic_name, subscription_name, rule_name) await mgmt_service.delete_subscription(topic_name, subscription_name) 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 ac6f623272e8..6032da90c0f8 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 @@ -221,11 +221,34 @@ async def test_async_mgmt_subscription_update_success(self, servicebus_namespace assert subscription_description.default_message_time_to_live == datetime.timedelta(minutes=11, seconds=2) assert subscription_description.lock_duration == datetime.timedelta(minutes=3, seconds=3) + # updating all settings with keyword arguments. + await mgmt_service.update_subscription( + topic_description.name, + subscription_description, + auto_delete_on_idle=datetime.timedelta(minutes=15), + dead_lettering_on_message_expiration=False, + default_message_time_to_live=datetime.timedelta(minutes=16), + lock_duration=datetime.timedelta(seconds=17), + max_delivery_count=15, + forward_to=None, + forward_dead_lettered_messages_to=None + ) + + subscription_description = await mgmt_service.get_subscription(topic_description.name, subscription_name) + + assert subscription_description.auto_delete_on_idle == datetime.timedelta(minutes=15) + assert subscription_description.dead_lettering_on_message_expiration == False + assert subscription_description.default_message_time_to_live == datetime.timedelta(minutes=16) + assert subscription_description.max_delivery_count == 15 + assert subscription_description.lock_duration == datetime.timedelta(seconds=17) + assert subscription_description.forward_to == None + assert subscription_description.forward_dead_lettered_messages_to == None + finally: await mgmt_service.delete_subscription(topic_name, subscription_name) await mgmt_service.delete_topic(topic_name) await mgmt_service.delete_queue(queue_name) - mgmt_service.close() + await mgmt_service.close() @CachedResourceGroupPreparer(name_prefix='servicebustest') @CachedServiceBusNamespacePreparer(name_prefix='servicebustest') @@ -437,6 +460,28 @@ async def test_mgmt_subscription_async_update_dict_success(self, servicebus_name 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)) + # updating all settings with keyword arguments. + await mgmt_service.update_subscription( + topic_description.name, + dict(subscription_description), + auto_delete_on_idle=datetime.timedelta(minutes=15), + dead_lettering_on_message_expiration=False, + default_message_time_to_live=datetime.timedelta(minutes=16), + lock_duration=datetime.timedelta(seconds=17), + max_delivery_count=15, + forward_to=None, + forward_dead_lettered_messages_to=None + ) + + subscription_description = await mgmt_service.get_subscription(topic_description.name, subscription_name) + + assert subscription_description.auto_delete_on_idle == datetime.timedelta(minutes=15) + assert subscription_description.dead_lettering_on_message_expiration == False + assert subscription_description.default_message_time_to_live == datetime.timedelta(minutes=16) + assert subscription_description.max_delivery_count == 15 + assert subscription_description.lock_duration == datetime.timedelta(seconds=17) + assert subscription_description.forward_to == None + assert subscription_description.forward_dead_lettered_messages_to == None 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 8549961af74e..8d4b346caa66 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 @@ -156,6 +156,30 @@ async def test_async_mgmt_topic_update_success(self, servicebus_namespace_connec assert topic_description.default_message_time_to_live == datetime.timedelta(minutes=11, seconds=2) assert topic_description.duplicate_detection_history_time_window == datetime.timedelta(minutes=12, seconds=3) + # updating all settings with keyword arguments. + await mgmt_service.update_topic( + topic_description, + auto_delete_on_idle=datetime.timedelta(minutes=14), + default_message_time_to_live=datetime.timedelta(minutes=15), + duplicate_detection_history_time_window=datetime.timedelta(minutes=16), + enable_batched_operations=False, + enable_express=False, + max_size_in_megabytes=2048, + support_ordering=False + ) + topic_description = await mgmt_service.get_topic(topic_name) + + assert topic_description.auto_delete_on_idle == datetime.timedelta(minutes=14) + assert topic_description.default_message_time_to_live == datetime.timedelta(minutes=15) + assert topic_description.duplicate_detection_history_time_window == datetime.timedelta(minutes=16) + assert topic_description.enable_batched_operations == False + assert topic_description.enable_express == False + # assert topic_description.enable_partitioning == True + assert topic_description.max_size_in_megabytes == 2048 + # assert topic_description.requires_duplicate_detection == True + # assert topic_description.requires_session == True + assert topic_description.support_ordering == False + finally: await mgmt_service.delete_topic(topic_name) @@ -333,6 +357,30 @@ async def test_mgmt_topic_async_update_dict_success(self, servicebus_namespace_c # assert topic_description.requires_duplicate_detection == True # assert topic_description.requires_session == True assert topic_description.support_ordering == True + + # updating all settings with keyword arguments. + await mgmt_service.update_topic( + dict(topic_description), + auto_delete_on_idle=datetime.timedelta(minutes=14), + default_message_time_to_live=datetime.timedelta(minutes=15), + duplicate_detection_history_time_window=datetime.timedelta(minutes=16), + enable_batched_operations=False, + enable_express=False, + max_size_in_megabytes=2048, + support_ordering=False + ) + topic_description = await mgmt_service.get_topic(topic_name) + + assert topic_description.auto_delete_on_idle == datetime.timedelta(minutes=14) + assert topic_description.default_message_time_to_live == datetime.timedelta(minutes=15) + assert topic_description.duplicate_detection_history_time_window == datetime.timedelta(minutes=16) + assert topic_description.enable_batched_operations == False + assert topic_description.enable_express == False + # assert topic_description.enable_partitioning == True + assert topic_description.max_size_in_megabytes == 2048 + # assert topic_description.requires_duplicate_detection == True + # assert topic_description.requires_session == True + assert topic_description.support_ordering == False 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_success.yaml b/sdk/servicebus/azure-servicebus/tests/mgmt_tests/recordings/test_mgmt_queues.test_mgmt_queue_update_dict_success.yaml index b66eea67c67c..b181ad136831 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 @@ -9,18 +9,18 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.9 (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://servicebustest7kbrnosvdj.servicebus.windows.net/$Resources/queues?$skip=0&$top=100&api-version=2017-042021-03-02T19:50:40Z + string: Queueshttps://servicebustestbyoshmonvl.servicebus.windows.net/$Resources/queues?$skip=0&$top=100&api-version=2017-042021-04-21T19:39:42Z headers: content-type: - application/atom+xml;type=feed;charset=utf-8 date: - - Tue, 02 Mar 2021 19:50:39 GMT + - Wed, 21 Apr 2021 19:39:42 GMT server: - Microsoft-HTTPAPI/2.0 transfer-encoding: @@ -45,21 +45,21 @@ interactions: Content-Type: - application/atom+xml User-Agent: - - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: PUT uri: https://servicebustestsbname.servicebus.windows.net/fjruid?api-version=2017-04 response: body: - string: https://servicebustest7kbrnosvdj.servicebus.windows.net/fjruid?api-version=2017-04fjruid2021-03-02T19:50:40Z2021-03-02T19:50:40Zservicebustest7kbrnosvdjhttps://servicebustestbyoshmonvl.servicebus.windows.net/fjruid?api-version=2017-04fjruid2021-04-21T19:39:42Z2021-04-21T19:39:42ZservicebustestbyoshmonvlPT1M1024falsefalseP10675199DT2H48M5.4775807SfalsePT10M10true00falseActive2021-03-02T19:50:40.697Z2021-03-02T19:50:40.74ZtrueP10675199DT2H48M5.4775807SfalseAvailablefalse + xmlns:i="http://www.w3.org/2001/XMLSchema-instance">PT1M1024falsefalseP10675199DT2H48M5.4775807SfalsePT10M10true00falseActive2021-04-21T19:39:42.66Z2021-04-21T19:39:42.7ZtrueP10675199DT2H48M5.4775807SfalseAvailablefalse headers: content-type: - application/atom+xml;type=entry;charset=utf-8 date: - - Tue, 02 Mar 2021 19:50:40 GMT + - Wed, 21 Apr 2021 19:39:42 GMT server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -89,23 +89,23 @@ interactions: If-Match: - '*' User-Agent: - - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: PUT uri: https://servicebustestsbname.servicebus.windows.net/fjruid?api-version=2017-04 response: body: - string: https://servicebustest7kbrnosvdj.servicebus.windows.net/fjruid?api-version=2017-04fjruid2021-03-02T19:50:41Zservicebustest7kbrnosvdjhttps://servicebustestbyoshmonvl.servicebus.windows.net/fjruid?api-version=2017-04fjruid2021-04-21T19:39:43ZservicebustestbyoshmonvlPT2M1024falsefalseP10675199DT2H48M5.477539SfalsePT10M10trueActiveP10675199DT2H48M5.477539SfalseAvailablefalse headers: content-type: - application/atom+xml;type=entry;charset=utf-8 date: - - Tue, 02 Mar 2021 19:50:40 GMT + - Wed, 21 Apr 2021 19:39:43 GMT etag: - - '637503114407400000' + - '637546307827000000' server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -125,24 +125,24 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.9 (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://servicebustest7kbrnosvdj.servicebus.windows.net/fjruid?enrich=false&api-version=2017-04fjruid2021-03-02T19:50:40Z2021-03-02T19:50:41Zservicebustest7kbrnosvdjhttps://servicebustestbyoshmonvl.servicebus.windows.net/fjruid?enrich=false&api-version=2017-04fjruid2021-04-21T19:39:42Z2021-04-21T19:39:43ZservicebustestbyoshmonvlPT2M1024falsefalseP10675199DT2H48M5.477539SfalsePT10M10true00falseActive2021-03-02T19:50:40.697Z2021-03-02T19:50:41.277Z0001-01-01T00:00:00ZtruePT2M1024falsefalseP10675199DT2H48M5.477539SfalsePT10M10true00falseActive2021-04-21T19:39:42.66Z2021-04-21T19:39:43.343Z0001-01-01T00:00:00Ztrue00000P10675199DT2H48M5.477539SfalseAvailablefalse headers: content-type: - application/atom+xml;type=entry;charset=utf-8 date: - - Tue, 02 Mar 2021 19:50:41 GMT + - Wed, 21 Apr 2021 19:39:43 GMT etag: - - '637503114412770000' + - '637546307833430000' server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -157,7 +157,7 @@ interactions: PT13S3072falsefalsePT11MtruePT12M14trueActivePT10MfalseAvailabletruesb://servicebustest7kbrnosvdj.servicebus.windows.net/fjruidsb://servicebustest7kbrnosvdj.servicebus.windows.net/fjruid' + />ActivePT10MfalseAvailabletruesb://servicebustestbyoshmonvl.servicebus.windows.net/fjruidsb://servicebustestbyoshmonvl.servicebus.windows.net/fjruid' headers: Accept: - application/xml @@ -172,27 +172,27 @@ interactions: If-Match: - '*' ServiceBusDlqSupplementaryAuthorization: - - SharedAccessSignature sr=sb%3A%2F%2Fservicebustest7kbrnosvdj.servicebus.windows.net%2Ffjruid&sig=qS2%2b%2bY3MixrsSAgzMuE50KJwDukl6sgu%2fAuohkRKGU0%3d&se=1614718240&skn=RootManageSharedAccessKey + - SharedAccessSignature sr=sb%3A%2F%2Fservicebustestbyoshmonvl.servicebus.windows.net%2Ffjruid&sig=lKlCiCMYVB8aZsqeeB39ffy6H3q2WL5A1mHh%2b5ct7Bo%3d&se=1619037584&skn=RootManageSharedAccessKey ServiceBusSupplementaryAuthorization: - - SharedAccessSignature sr=sb%3A%2F%2Fservicebustest7kbrnosvdj.servicebus.windows.net%2Ffjruid&sig=qS2%2b%2bY3MixrsSAgzMuE50KJwDukl6sgu%2fAuohkRKGU0%3d&se=1614718240&skn=RootManageSharedAccessKey + - SharedAccessSignature sr=sb%3A%2F%2Fservicebustestbyoshmonvl.servicebus.windows.net%2Ffjruid&sig=lKlCiCMYVB8aZsqeeB39ffy6H3q2WL5A1mHh%2b5ct7Bo%3d&se=1619037584&skn=RootManageSharedAccessKey User-Agent: - - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: PUT uri: https://servicebustestsbname.servicebus.windows.net/fjruid?api-version=2017-04 response: body: - string: https://servicebustest7kbrnosvdj.servicebus.windows.net/fjruid?api-version=2017-04fjruid2021-03-02T19:50:41Zservicebustest7kbrnosvdjhttps://servicebustestbyoshmonvl.servicebus.windows.net/fjruid?api-version=2017-04fjruid2021-04-21T19:39:43ZservicebustestbyoshmonvlPT13S3072falsefalsePT11MtruePT12M14trueActivePT10MfalseAvailabletruesb://servicebustest7kbrnosvdj.servicebus.windows.net/fjruidsb://servicebustest7kbrnosvdj.servicebus.windows.net/fjruid + xmlns:i="http://www.w3.org/2001/XMLSchema-instance">PT13S3072falsefalsePT11MtruePT12M14trueActivePT10MfalseAvailabletruesb://servicebustestbyoshmonvl.servicebus.windows.net/fjruidsb://servicebustestbyoshmonvl.servicebus.windows.net/fjruid headers: content-type: - application/atom+xml;type=entry;charset=utf-8 date: - - Tue, 02 Mar 2021 19:50:41 GMT + - Wed, 21 Apr 2021 19:39:43 GMT etag: - - '637503114412770000' + - '637546307833430000' server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -212,24 +212,107 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.9 (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://servicebustest7kbrnosvdj.servicebus.windows.net/fjruid?enrich=false&api-version=2017-04fjruid2021-03-02T19:50:40Z2021-03-02T19:50:41Zservicebustest7kbrnosvdjhttps://servicebustestbyoshmonvl.servicebus.windows.net/fjruid?enrich=false&api-version=2017-04fjruid2021-04-21T19:39:42Z2021-04-21T19:39:43ZservicebustestbyoshmonvlPT13S3072falsefalsePT11MtruePT12M14true00falseActive2021-03-02T19:50:40.697Z2021-03-02T19:50:41.54Z0001-01-01T00:00:00Ztrue00000PT10MfalseAvailabletruesb://servicebustest7kbrnosvdj.servicebus.windows.net/fjruidsb://servicebustest7kbrnosvdj.servicebus.windows.net/fjruid + xmlns:i="http://www.w3.org/2001/XMLSchema-instance">PT13S3072falsefalsePT11MtruePT12M14true00falseActive2021-04-21T19:39:42.66Z2021-04-21T19:39:43.787Z0001-01-01T00:00:00Ztrue00000PT10MfalseAvailabletruesb://servicebustestbyoshmonvl.servicebus.windows.net/fjruidsb://servicebustestbyoshmonvl.servicebus.windows.net/fjruid headers: content-type: - application/atom+xml;type=entry;charset=utf-8 date: - - Tue, 02 Mar 2021 19:50:41 GMT + - Wed, 21 Apr 2021 19:39:43 GMT etag: - - '637503114415400000' + - '637546307837870000' + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000 + transfer-encoding: + - chunked + status: + code: 200 + message: OK +- request: + body: ' + + PT18S2048falsefalsePT16MfalsePT17M15falseActivePT15MfalseAvailablefalse' + headers: + Accept: + - application/xml + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '984' + Content-Type: + - application/atom+xml + If-Match: + - '*' + User-Agent: + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.9 (Windows-10-10.0.19041-SP0) + method: PUT + uri: https://servicebustestsbname.servicebus.windows.net/fjruid?api-version=2017-04 + response: + body: + string: https://servicebustestbyoshmonvl.servicebus.windows.net/fjruid?api-version=2017-04fjruid2021-04-21T19:39:44ZservicebustestbyoshmonvlPT18S2048falsefalsePT16MfalsePT17M15falseActivePT15MfalseAvailablefalse + headers: + content-type: + - application/atom+xml;type=entry;charset=utf-8 + date: + - Wed, 21 Apr 2021 19:39:44 GMT + etag: + - '637546307837870000' + 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.9 (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://servicebustestbyoshmonvl.servicebus.windows.net/fjruid?enrich=false&api-version=2017-04fjruid2021-04-21T19:39:42Z2021-04-21T19:39:44ZservicebustestbyoshmonvlPT18S2048falsefalsePT16MfalsePT17M15false00falseActive2021-04-21T19:39:42.66Z2021-04-21T19:39:44.27Z0001-01-01T00:00:00Ztrue00000PT15MfalseAvailablefalse + headers: + content-type: + - application/atom+xml;type=entry;charset=utf-8 + date: + - Wed, 21 Apr 2021 19:39:44 GMT + etag: + - '637546307842700000' server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -251,7 +334,7 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: DELETE uri: https://servicebustestsbname.servicebus.windows.net/fjruid?api-version=2017-04 response: @@ -261,9 +344,9 @@ interactions: content-length: - '0' date: - - Tue, 02 Mar 2021 19:50:41 GMT + - Wed, 21 Apr 2021 19:39:45 GMT etag: - - '637503114415400000' + - '637546307842700000' 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_success.yaml b/sdk/servicebus/azure-servicebus/tests/mgmt_tests/recordings/test_mgmt_queues.test_mgmt_queue_update_success.yaml index 4079ac5a0109..3801444cc6aa 100644 --- a/sdk/servicebus/azure-servicebus/tests/mgmt_tests/recordings/test_mgmt_queues.test_mgmt_queue_update_success.yaml +++ b/sdk/servicebus/azure-servicebus/tests/mgmt_tests/recordings/test_mgmt_queues.test_mgmt_queue_update_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://servicebustestzn7vefvebu.servicebus.windows.net/$Resources/queues?$skip=0&$top=100&api-version=2017-042021-04-15T16:30:05Z + string: Queueshttps://servicebustestrkhedk2s2w.servicebus.windows.net/$Resources/queues?$skip=0&$top=100&api-version=2017-042021-04-21T19:36:18Z headers: content-type: - application/atom+xml;type=feed;charset=utf-8 date: - - Thu, 15 Apr 2021 16:30:05 GMT + - Wed, 21 Apr 2021 19:36:17 GMT server: - Microsoft-HTTPAPI/2.0 transfer-encoding: @@ -50,16 +50,16 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjrui?api-version=2017-04 response: body: - string: https://servicebustestzn7vefvebu.servicebus.windows.net/fjrui?api-version=2017-04fjrui2021-04-15T16:30:06Z2021-04-15T16:30:06Zservicebustestzn7vefvebuhttps://servicebustestrkhedk2s2w.servicebus.windows.net/fjrui?api-version=2017-04fjrui2021-04-21T19:36:18Z2021-04-21T19:36:18Zservicebustestrkhedk2s2wPT1M1024falsefalseP10675199DT2H48M5.4775807SfalsePT10M10true00falseActive2021-04-15T16:30:06.65Z2021-04-15T16:30:06.713ZtrueP10675199DT2H48M5.4775807SfalseAvailablefalse + xmlns:i="http://www.w3.org/2001/XMLSchema-instance">PT1M1024falsefalseP10675199DT2H48M5.4775807SfalsePT10M10true00falseActive2021-04-21T19:36:18.5Z2021-04-21T19:36:18.57ZtrueP10675199DT2H48M5.4775807SfalseAvailablefalse headers: content-type: - application/atom+xml;type=entry;charset=utf-8 date: - - Thu, 15 Apr 2021 16:30:07 GMT + - Wed, 21 Apr 2021 19:36:18 GMT server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -91,16 +91,16 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/sagho?api-version=2017-04 response: body: - string: https://servicebustestzn7vefvebu.servicebus.windows.net/sagho?api-version=2017-04sagho2021-04-15T16:30:07Z2021-04-15T16:30:07Zservicebustestzn7vefvebuhttps://servicebustestrkhedk2s2w.servicebus.windows.net/sagho?api-version=2017-04sagho2021-04-21T19:36:19Z2021-04-21T19:36:19Zservicebustestrkhedk2s2wP10675199DT2H48M5.4775807S1024falsePT10Mtrue0falsefalseActive2021-04-15T16:30:07.84Z2021-04-15T16:30:07.88ZtrueP10675199DT2H48M5.4775807SfalseAvailablefalsefalse + xmlns:i="http://www.w3.org/2001/XMLSchema-instance">P10675199DT2H48M5.4775807S1024falsePT10Mtrue0falsefalseActive2021-04-21T19:36:19.423Z2021-04-21T19:36:19.483ZtrueP10675199DT2H48M5.4775807SfalseAvailablefalsefalse headers: content-type: - application/atom+xml;type=entry;charset=utf-8 date: - - Thu, 15 Apr 2021 16:30:08 GMT + - Wed, 21 Apr 2021 19:36:19 GMT server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -115,7 +115,7 @@ interactions: PT2M1024falsefalseP10675199DT2H48M5.477539SfalsePT10M10true00falseActive2021-04-15T16:30:06.650Z2021-04-15T16:30:06.713ZtrueP10675199DT2H48M5.477539SfalseAvailablefalse' + />Active2021-04-21T19:36:18.500Z2021-04-21T19:36:18.570ZtrueP10675199DT2H48M5.477539SfalseAvailablefalse' headers: Accept: - application/xml @@ -135,18 +135,18 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjrui?api-version=2017-04 response: body: - string: https://servicebustestzn7vefvebu.servicebus.windows.net/fjrui?api-version=2017-04fjrui2021-04-15T16:30:08Zservicebustestzn7vefvebuhttps://servicebustestrkhedk2s2w.servicebus.windows.net/fjrui?api-version=2017-04fjrui2021-04-21T19:36:20Zservicebustestrkhedk2s2wPT2M1024falsefalseP10675199DT2H48M5.477539SfalsePT10M10true00falseActive2021-04-15T16:30:06.65Z2021-04-15T16:30:06.713ZtrueP10675199DT2H48M5.477539SfalseAvailablefalse + xmlns:i="http://www.w3.org/2001/XMLSchema-instance">PT2M1024falsefalseP10675199DT2H48M5.477539SfalsePT10M10true00falseActive2021-04-21T19:36:18.5Z2021-04-21T19:36:18.57ZtrueP10675199DT2H48M5.477539SfalseAvailablefalse headers: content-type: - application/atom+xml;type=entry;charset=utf-8 date: - - Thu, 15 Apr 2021 16:30:08 GMT + - Wed, 21 Apr 2021 19:36:19 GMT etag: - - '637541010067130000' + - '637546305785700000' server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -171,19 +171,19 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjrui?enrich=false&api-version=2017-04 response: body: - string: https://servicebustestzn7vefvebu.servicebus.windows.net/fjrui?enrich=false&api-version=2017-04fjrui2021-04-15T16:30:06Z2021-04-15T16:30:08Zservicebustestzn7vefvebuhttps://servicebustestrkhedk2s2w.servicebus.windows.net/fjrui?enrich=false&api-version=2017-04fjrui2021-04-21T19:36:18Z2021-04-21T19:36:20Zservicebustestrkhedk2s2wPT2M1024falsefalseP10675199DT2H48M5.477539SfalsePT10M10true00falseActive2021-04-15T16:30:06.65Z2021-04-15T16:30:08.6Z0001-01-01T00:00:00ZtruePT2M1024falsefalseP10675199DT2H48M5.477539SfalsePT10M10true00falseActive2021-04-21T19:36:18.5Z2021-04-21T19:36:20.097Z0001-01-01T00:00:00Ztrue00000P10675199DT2H48M5.477539SfalseAvailablefalse headers: content-type: - application/atom+xml;type=entry;charset=utf-8 date: - - Thu, 15 Apr 2021 16:30:08 GMT + - Wed, 21 Apr 2021 19:36:19 GMT etag: - - '637541010086000000' + - '637546305800970000' server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -199,7 +199,7 @@ interactions: PT2M1024falsefalseP10675199DT2H48M5.477539SfalsePT10M10true00falseActive2021-04-15T16:30:06.650Z2021-04-15T16:30:08.600Z0001-01-01T00:00:00.000Ztrue00000P10675199DT2H48M5.477539SfalseAvailablefalsesb://servicebustestzn7vefvebu.servicebus.windows.net/saghosb://servicebustestzn7vefvebu.servicebus.windows.net/sagho' + />Active2021-04-21T19:36:18.500Z2021-04-21T19:36:20.097Z0001-01-01T00:00:00.000Ztrue00000P10675199DT2H48M5.477539SfalseAvailablefalsesb://servicebustestrkhedk2s2w.servicebus.windows.net/saghosb://servicebustestrkhedk2s2w.servicebus.windows.net/sagho' headers: Accept: - application/xml @@ -214,28 +214,28 @@ interactions: If-Match: - '*' ServiceBusDlqSupplementaryAuthorization: - - SharedAccessSignature sr=sb%3A%2F%2Fservicebustestzn7vefvebu.servicebus.windows.net%2Fsagho&sig=ZpvkNV2qeRLw7tfVsreyS%2bJ2Yzq%2fCzdaxkiMBDziaQ8%3d&se=1618507809&skn=RootManageSharedAccessKey + - SharedAccessSignature sr=sb%3A%2F%2Fservicebustestrkhedk2s2w.servicebus.windows.net%2Fsagho&sig=R9gBMJbC2okm%2fvMt4YgsBDihSK5DHR4yRuYeYn0kXfA%3d&se=1619037381&skn=RootManageSharedAccessKey ServiceBusSupplementaryAuthorization: - - SharedAccessSignature sr=sb%3A%2F%2Fservicebustestzn7vefvebu.servicebus.windows.net%2Fsagho&sig=ZpvkNV2qeRLw7tfVsreyS%2bJ2Yzq%2fCzdaxkiMBDziaQ8%3d&se=1618507809&skn=RootManageSharedAccessKey + - SharedAccessSignature sr=sb%3A%2F%2Fservicebustestrkhedk2s2w.servicebus.windows.net%2Fsagho&sig=R9gBMJbC2okm%2fvMt4YgsBDihSK5DHR4yRuYeYn0kXfA%3d&se=1619037381&skn=RootManageSharedAccessKey User-Agent: - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: PUT uri: https://servicebustestsbname.servicebus.windows.net/fjrui?api-version=2017-04 response: body: - string: https://servicebustestzn7vefvebu.servicebus.windows.net/fjrui?api-version=2017-04fjrui2021-04-15T16:30:09Zservicebustestzn7vefvebuhttps://servicebustestrkhedk2s2w.servicebus.windows.net/fjrui?api-version=2017-04fjrui2021-04-21T19:36:20Zservicebustestrkhedk2s2wPT2M1024falsefalseP10675199DT2H48M5.477539SfalsePT10M10true00falseActive2021-04-15T16:30:06.65Z2021-04-15T16:30:08.6Z0001-01-01T00:00:00Ztrue00000P10675199DT2H48M5.477539SfalseAvailablefalsesb://servicebustestzn7vefvebu.servicebus.windows.net/saghosb://servicebustestzn7vefvebu.servicebus.windows.net/sagho + xmlns:i="http://www.w3.org/2001/XMLSchema-instance">PT2M1024falsefalseP10675199DT2H48M5.477539SfalsePT10M10true00falseActive2021-04-21T19:36:18.5Z2021-04-21T19:36:20.097Z0001-01-01T00:00:00Ztrue00000P10675199DT2H48M5.477539SfalseAvailablefalsesb://servicebustestrkhedk2s2w.servicebus.windows.net/saghosb://servicebustestrkhedk2s2w.servicebus.windows.net/sagho headers: content-type: - application/atom+xml;type=entry;charset=utf-8 date: - - Thu, 15 Apr 2021 16:30:09 GMT + - Wed, 21 Apr 2021 19:36:20 GMT etag: - - '637541010086000000' + - '637546305800970000' server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -260,19 +260,19 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjrui?enrich=false&api-version=2017-04 response: body: - string: https://servicebustestzn7vefvebu.servicebus.windows.net/fjrui?enrich=false&api-version=2017-04fjrui2021-04-15T16:30:06Z2021-04-15T16:30:09Zservicebustestzn7vefvebuhttps://servicebustestrkhedk2s2w.servicebus.windows.net/fjrui?enrich=false&api-version=2017-04fjrui2021-04-21T19:36:18Z2021-04-21T19:36:20Zservicebustestrkhedk2s2wPT2M1024falsefalseP10675199DT2H48M5.477539SfalsePT10M10true00falseActive2021-04-15T16:30:06.65Z2021-04-15T16:30:09.133Z0001-01-01T00:00:00Ztrue00000P10675199DT2H48M5.477539SfalseAvailablefalsesb://servicebustestzn7vefvebu.servicebus.windows.net/saghosb://servicebustestzn7vefvebu.servicebus.windows.net/sagho + xmlns:i="http://www.w3.org/2001/XMLSchema-instance">PT2M1024falsefalseP10675199DT2H48M5.477539SfalsePT10M10true00falseActive2021-04-21T19:36:18.5Z2021-04-21T19:36:20.59Z0001-01-01T00:00:00Ztrue00000P10675199DT2H48M5.477539SfalseAvailablefalsesb://servicebustestrkhedk2s2w.servicebus.windows.net/saghosb://servicebustestrkhedk2s2w.servicebus.windows.net/sagho headers: content-type: - application/atom+xml;type=entry;charset=utf-8 date: - - Thu, 15 Apr 2021 16:30:09 GMT + - Wed, 21 Apr 2021 19:36:20 GMT etag: - - '637541010091330000' + - '637546305805900000' server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -288,7 +288,7 @@ interactions: PT2M1024falsefalseP10675199DT2H48M5.477539SfalsePT10M10true00falseActive2021-04-15T16:30:06.650Z2021-04-15T16:30:09.133Z0001-01-01T00:00:00.000Ztrue00000P10675199DT2H48M5.477539SfalseAvailablefalse' + />Active2021-04-21T19:36:18.500Z2021-04-21T19:36:20.590Z0001-01-01T00:00:00.000Ztrue00000P10675199DT2H48M5.477539SfalseAvailablefalse' headers: Accept: - application/xml @@ -308,19 +308,19 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjrui?api-version=2017-04 response: body: - string: https://servicebustestzn7vefvebu.servicebus.windows.net/fjrui?api-version=2017-04fjrui2021-04-15T16:30:09Zservicebustestzn7vefvebuhttps://servicebustestrkhedk2s2w.servicebus.windows.net/fjrui?api-version=2017-04fjrui2021-04-21T19:36:21Zservicebustestrkhedk2s2wPT2M1024falsefalseP10675199DT2H48M5.477539SfalsePT10M10true00falseActive2021-04-15T16:30:06.65Z2021-04-15T16:30:09.133Z0001-01-01T00:00:00ZtruePT2M1024falsefalseP10675199DT2H48M5.477539SfalsePT10M10true00falseActive2021-04-21T19:36:18.5Z2021-04-21T19:36:20.59Z0001-01-01T00:00:00Ztrue00000P10675199DT2H48M5.477539SfalseAvailablefalse headers: content-type: - application/atom+xml;type=entry;charset=utf-8 date: - - Thu, 15 Apr 2021 16:30:09 GMT + - Wed, 21 Apr 2021 19:36:20 GMT etag: - - '637541010091330000' + - '637546305805900000' server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -345,19 +345,19 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjrui?enrich=false&api-version=2017-04 response: body: - string: https://servicebustestzn7vefvebu.servicebus.windows.net/fjrui?enrich=false&api-version=2017-04fjrui2021-04-15T16:30:06Z2021-04-15T16:30:09Zservicebustestzn7vefvebuhttps://servicebustestrkhedk2s2w.servicebus.windows.net/fjrui?enrich=false&api-version=2017-04fjrui2021-04-21T19:36:18Z2021-04-21T19:36:21Zservicebustestrkhedk2s2wPT2M1024falsefalseP10675199DT2H48M5.477539SfalsePT10M10true00falseActive2021-04-15T16:30:06.65Z2021-04-15T16:30:09.903Z0001-01-01T00:00:00ZtruePT2M1024falsefalseP10675199DT2H48M5.477539SfalsePT10M10true00falseActive2021-04-21T19:36:18.5Z2021-04-21T19:36:21.033Z0001-01-01T00:00:00Ztrue00000P10675199DT2H48M5.477539SfalseAvailablefalse headers: content-type: - application/atom+xml;type=entry;charset=utf-8 date: - - Thu, 15 Apr 2021 16:30:10 GMT + - Wed, 21 Apr 2021 19:36:20 GMT etag: - - '637541010099030000' + - '637546305810330000' server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -373,7 +373,7 @@ interactions: PT13S3072falsefalsePT11MtruePT12M14true00falseActive2021-04-15T16:30:06.650Z2021-04-15T16:30:09.903Z0001-01-01T00:00:00.000Ztrue00000PT10MfalseAvailabletruesb://servicebustestzn7vefvebu.servicebus.windows.net/fjruisb://servicebustestzn7vefvebu.servicebus.windows.net/fjrui' + />Active2021-04-21T19:36:18.500Z2021-04-21T19:36:21.033Z0001-01-01T00:00:00.000Ztrue00000PT10MfalseAvailabletruesb://servicebustestrkhedk2s2w.servicebus.windows.net/fjruisb://servicebustestrkhedk2s2w.servicebus.windows.net/fjrui' headers: Accept: - application/xml @@ -388,28 +388,28 @@ interactions: If-Match: - '*' ServiceBusDlqSupplementaryAuthorization: - - SharedAccessSignature sr=sb%3A%2F%2Fservicebustestzn7vefvebu.servicebus.windows.net%2Ffjrui&sig=1QUkVR%2bolvgr7ObBzQzU2uxrOm3fiAzcIqxN08Pqq7Y%3d&se=1618507810&skn=RootManageSharedAccessKey + - SharedAccessSignature sr=sb%3A%2F%2Fservicebustestrkhedk2s2w.servicebus.windows.net%2Ffjrui&sig=4T9DcdDGqqMjMQqxioVx%2fLVxfH3YZ6vhR7S9VYODsdg%3d&se=1619037382&skn=RootManageSharedAccessKey ServiceBusSupplementaryAuthorization: - - SharedAccessSignature sr=sb%3A%2F%2Fservicebustestzn7vefvebu.servicebus.windows.net%2Ffjrui&sig=1QUkVR%2bolvgr7ObBzQzU2uxrOm3fiAzcIqxN08Pqq7Y%3d&se=1618507810&skn=RootManageSharedAccessKey + - SharedAccessSignature sr=sb%3A%2F%2Fservicebustestrkhedk2s2w.servicebus.windows.net%2Ffjrui&sig=4T9DcdDGqqMjMQqxioVx%2fLVxfH3YZ6vhR7S9VYODsdg%3d&se=1619037382&skn=RootManageSharedAccessKey User-Agent: - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: PUT uri: https://servicebustestsbname.servicebus.windows.net/fjrui?api-version=2017-04 response: body: - string: https://servicebustestzn7vefvebu.servicebus.windows.net/fjrui?api-version=2017-04fjrui2021-04-15T16:30:10Zservicebustestzn7vefvebuhttps://servicebustestrkhedk2s2w.servicebus.windows.net/fjrui?api-version=2017-04fjrui2021-04-21T19:36:21Zservicebustestrkhedk2s2wPT13S3072falsefalsePT11MtruePT12M14true00falseActive2021-04-15T16:30:06.65Z2021-04-15T16:30:09.903Z0001-01-01T00:00:00Ztrue00000PT10MfalseAvailabletruesb://servicebustestzn7vefvebu.servicebus.windows.net/fjruisb://servicebustestzn7vefvebu.servicebus.windows.net/fjrui + xmlns:i="http://www.w3.org/2001/XMLSchema-instance">PT13S3072falsefalsePT11MtruePT12M14true00falseActive2021-04-21T19:36:18.5Z2021-04-21T19:36:21.033Z0001-01-01T00:00:00Ztrue00000PT10MfalseAvailabletruesb://servicebustestrkhedk2s2w.servicebus.windows.net/fjruisb://servicebustestrkhedk2s2w.servicebus.windows.net/fjrui headers: content-type: - application/atom+xml;type=entry;charset=utf-8 date: - - Thu, 15 Apr 2021 16:30:10 GMT + - Wed, 21 Apr 2021 19:36:20 GMT etag: - - '637541010099030000' + - '637546305810330000' server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -434,19 +434,19 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjrui?enrich=false&api-version=2017-04 response: body: - string: https://servicebustestzn7vefvebu.servicebus.windows.net/fjrui?enrich=false&api-version=2017-04fjrui2021-04-15T16:30:06Z2021-04-15T16:30:10Zservicebustestzn7vefvebuhttps://servicebustestrkhedk2s2w.servicebus.windows.net/fjrui?enrich=false&api-version=2017-04fjrui2021-04-21T19:36:18Z2021-04-21T19:36:21Zservicebustestrkhedk2s2wPT13S3072falsefalsePT11MtruePT12M14true00falseActive2021-04-15T16:30:06.65Z2021-04-15T16:30:10.433Z0001-01-01T00:00:00Ztrue00000PT10MfalseAvailabletruesb://servicebustestzn7vefvebu.servicebus.windows.net/fjruisb://servicebustestzn7vefvebu.servicebus.windows.net/fjrui + xmlns:i="http://www.w3.org/2001/XMLSchema-instance">PT13S3072falsefalsePT11MtruePT12M14true00falseActive2021-04-21T19:36:18.5Z2021-04-21T19:36:21.47Z0001-01-01T00:00:00Ztrue00000PT10MfalseAvailabletruesb://servicebustestrkhedk2s2w.servicebus.windows.net/fjruisb://servicebustestrkhedk2s2w.servicebus.windows.net/fjrui headers: content-type: - application/atom+xml;type=entry;charset=utf-8 date: - - Thu, 15 Apr 2021 16:30:10 GMT + - Wed, 21 Apr 2021 19:36:21 GMT etag: - - '637541010104330000' + - '637546305814700000' server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -462,7 +462,7 @@ interactions: PT13S3072falsefalsePT11M2StruePT12M3S14true00falseActive2021-04-15T16:30:06.650Z2021-04-15T16:30:10.433Z0001-01-01T00:00:00.000Ztrue00000PT10M1SfalseAvailabletruesb://servicebustestzn7vefvebu.servicebus.windows.net/fjruisb://servicebustestzn7vefvebu.servicebus.windows.net/fjrui' + />Active2021-04-21T19:36:18.500Z2021-04-21T19:36:21.470Z0001-01-01T00:00:00.000Ztrue00000PT10M1SfalseAvailabletruesb://servicebustestrkhedk2s2w.servicebus.windows.net/fjruisb://servicebustestrkhedk2s2w.servicebus.windows.net/fjrui' headers: Accept: - application/xml @@ -477,28 +477,28 @@ interactions: If-Match: - '*' ServiceBusDlqSupplementaryAuthorization: - - SharedAccessSignature sr=sb%3A%2F%2Fservicebustestzn7vefvebu.servicebus.windows.net%2Ffjrui&sig=8NFF8zhl49a3Ty6bEyK4cB6Z9nwW1FMfVQJRPA%2fQnrc%3d&se=1618507811&skn=RootManageSharedAccessKey + - SharedAccessSignature sr=sb%3A%2F%2Fservicebustestrkhedk2s2w.servicebus.windows.net%2Ffjrui&sig=4T9DcdDGqqMjMQqxioVx%2fLVxfH3YZ6vhR7S9VYODsdg%3d&se=1619037382&skn=RootManageSharedAccessKey ServiceBusSupplementaryAuthorization: - - SharedAccessSignature sr=sb%3A%2F%2Fservicebustestzn7vefvebu.servicebus.windows.net%2Ffjrui&sig=8NFF8zhl49a3Ty6bEyK4cB6Z9nwW1FMfVQJRPA%2fQnrc%3d&se=1618507811&skn=RootManageSharedAccessKey + - SharedAccessSignature sr=sb%3A%2F%2Fservicebustestrkhedk2s2w.servicebus.windows.net%2Ffjrui&sig=4T9DcdDGqqMjMQqxioVx%2fLVxfH3YZ6vhR7S9VYODsdg%3d&se=1619037382&skn=RootManageSharedAccessKey User-Agent: - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: PUT uri: https://servicebustestsbname.servicebus.windows.net/fjrui?api-version=2017-04 response: body: - string: https://servicebustestzn7vefvebu.servicebus.windows.net/fjrui?api-version=2017-04fjrui2021-04-15T16:30:10Zservicebustestzn7vefvebuhttps://servicebustestrkhedk2s2w.servicebus.windows.net/fjrui?api-version=2017-04fjrui2021-04-21T19:36:21Zservicebustestrkhedk2s2wPT13S3072falsefalsePT11M2StruePT12M3S14true00falseActive2021-04-15T16:30:06.65Z2021-04-15T16:30:10.433Z0001-01-01T00:00:00Ztrue00000PT10M1SfalseAvailabletruesb://servicebustestzn7vefvebu.servicebus.windows.net/fjruisb://servicebustestzn7vefvebu.servicebus.windows.net/fjrui + xmlns:i="http://www.w3.org/2001/XMLSchema-instance">PT13S3072falsefalsePT11M2StruePT12M3S14true00falseActive2021-04-21T19:36:18.5Z2021-04-21T19:36:21.47Z0001-01-01T00:00:00Ztrue00000PT10M1SfalseAvailabletruesb://servicebustestrkhedk2s2w.servicebus.windows.net/fjruisb://servicebustestrkhedk2s2w.servicebus.windows.net/fjrui headers: content-type: - application/atom+xml;type=entry;charset=utf-8 date: - - Thu, 15 Apr 2021 16:30:10 GMT + - Wed, 21 Apr 2021 19:36:21 GMT etag: - - '637541010104330000' + - '637546305814700000' server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -523,19 +523,104 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjrui?enrich=false&api-version=2017-04 response: body: - string: https://servicebustestzn7vefvebu.servicebus.windows.net/fjrui?enrich=false&api-version=2017-04fjrui2021-04-15T16:30:06Z2021-04-15T16:30:10Zservicebustestzn7vefvebuhttps://servicebustestrkhedk2s2w.servicebus.windows.net/fjrui?enrich=false&api-version=2017-04fjrui2021-04-21T19:36:18Z2021-04-21T19:36:21Zservicebustestrkhedk2s2wPT13S3072falsefalsePT11M2StruePT12M3S14true00falseActive2021-04-15T16:30:06.65Z2021-04-15T16:30:10.963Z0001-01-01T00:00:00Ztrue00000PT10M1SfalseAvailabletruesb://servicebustestzn7vefvebu.servicebus.windows.net/fjruisb://servicebustestzn7vefvebu.servicebus.windows.net/fjrui + xmlns:i="http://www.w3.org/2001/XMLSchema-instance">PT13S3072falsefalsePT11M2StruePT12M3S14true00falseActive2021-04-21T19:36:18.5Z2021-04-21T19:36:21.92Z0001-01-01T00:00:00Ztrue00000PT10M1SfalseAvailabletruesb://servicebustestrkhedk2s2w.servicebus.windows.net/fjruisb://servicebustestrkhedk2s2w.servicebus.windows.net/fjrui headers: content-type: - application/atom+xml;type=entry;charset=utf-8 date: - - Thu, 15 Apr 2021 16:30:11 GMT + - Wed, 21 Apr 2021 19:36:21 GMT etag: - - '637541010109630000' + - '637546305819200000' + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000 + transfer-encoding: + - chunked + status: + code: 200 + message: OK +- request: + body: ' + + PT18S2048falsefalsePT16MfalsePT17M15false00falseActive2021-04-21T19:36:18.500Z2021-04-21T19:36:21.920Z0001-01-01T00:00:00.000Ztrue00000PT15MfalseAvailablefalse' + headers: + Accept: + - application/xml + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '1680' + Content-Type: + - application/atom+xml + If-Match: + - '*' + User-Agent: + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.9 (Windows-10-10.0.19041-SP0) + method: PUT + uri: https://servicebustestsbname.servicebus.windows.net/fjrui?api-version=2017-04 + response: + body: + string: https://servicebustestrkhedk2s2w.servicebus.windows.net/fjrui?api-version=2017-04fjrui2021-04-21T19:36:22Zservicebustestrkhedk2s2wPT18S2048falsefalsePT16MfalsePT17M15false00falseActive2021-04-21T19:36:18.5Z2021-04-21T19:36:21.92Z0001-01-01T00:00:00Ztrue00000PT15MfalseAvailablefalse + headers: + content-type: + - application/atom+xml;type=entry;charset=utf-8 + date: + - Wed, 21 Apr 2021 19:36:21 GMT + etag: + - '637546305819200000' + 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.9 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://servicebustestsbname.servicebus.windows.net/fjrui?enrich=false&api-version=2017-04 + response: + body: + string: https://servicebustestrkhedk2s2w.servicebus.windows.net/fjrui?enrich=false&api-version=2017-04fjrui2021-04-21T19:36:18Z2021-04-21T19:36:22Zservicebustestrkhedk2s2wPT18S2048falsefalsePT16MfalsePT17M15false00falseActive2021-04-21T19:36:18.5Z2021-04-21T19:36:22.36Z0001-01-01T00:00:00Ztrue00000PT15MfalseAvailablefalse + headers: + content-type: + - application/atom+xml;type=entry;charset=utf-8 + date: + - Wed, 21 Apr 2021 19:36:22 GMT + etag: + - '637546305823600000' server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -567,9 +652,9 @@ interactions: content-length: - '0' date: - - Thu, 15 Apr 2021 16:30:11 GMT + - Wed, 21 Apr 2021 19:36:22 GMT etag: - - '637541010109630000' + - '637546305823600000' server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -599,9 +684,9 @@ interactions: content-length: - '0' date: - - Thu, 15 Apr 2021 16:30:12 GMT + - Wed, 21 Apr 2021 19:36:23 GMT etag: - - '637541010078800000' + - '637546305794830000' 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 d413ea948803..7b5c1765cb7e 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 @@ -9,18 +9,18 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.9 (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://servicebustestqd6kevky7y.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-042021-03-02T19:49:53Z + string: Topicshttps://servicebustesto3ardhmdnl.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-042021-04-22T15:21:32Z headers: content-type: - application/atom+xml;type=feed;charset=utf-8 date: - - Tue, 02 Mar 2021 19:49:53 GMT + - Thu, 22 Apr 2021 15:21:32 GMT server: - Microsoft-HTTPAPI/2.0 transfer-encoding: @@ -45,21 +45,21 @@ interactions: Content-Type: - application/atom+xml User-Agent: - - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: PUT uri: https://servicebustestsbname.servicebus.windows.net/fjruid?api-version=2017-04 response: body: - string: https://servicebustestqd6kevky7y.servicebus.windows.net/fjruid?api-version=2017-04fjruid2021-03-02T19:49:54Z2021-03-02T19:49:54Zservicebustestqd6kevky7yhttps://servicebustesto3ardhmdnl.servicebus.windows.net/fjruid?api-version=2017-04fjruid2021-04-22T15:21:32Z2021-04-22T15:21:32Zservicebustesto3ardhmdnlP10675199DT2H48M5.4775807S1024falsePT10Mtrue0falsefalseActive2021-03-02T19:49:54.193Z2021-03-02T19:49:54.223ZtrueP10675199DT2H48M5.4775807SfalseAvailablefalsefalse + xmlns:i="http://www.w3.org/2001/XMLSchema-instance">P10675199DT2H48M5.4775807S1024falsePT10Mtrue0falsefalseActive2021-04-22T15:21:32.923Z2021-04-22T15:21:32.973ZtrueP10675199DT2H48M5.4775807SfalseAvailablefalsefalse headers: content-type: - application/atom+xml;type=entry;charset=utf-8 date: - - Tue, 02 Mar 2021 19:49:54 GMT + - Thu, 22 Apr 2021 15:21:33 GMT server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -86,23 +86,23 @@ interactions: Content-Type: - application/atom+xml User-Agent: - - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.9 (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://servicebustestqd6kevky7y.servicebus.windows.net/fjruid/subscriptions/eqkovcd?api-version=2017-04eqkovcd2021-03-02T19:49:54Z2021-03-02T19:49:54Zhttps://servicebustesto3ardhmdnl.servicebus.windows.net/fjruid/subscriptions/eqkovcd?api-version=2017-04eqkovcd2021-04-22T15:21:33Z2021-04-22T15:21:33ZPT1MfalseP10675199DT2H48M5.4775807Sfalsetrue010trueActive2021-03-02T19:49:54.7526704Z2021-03-02T19:49:54.7526704Z0001-01-01T00:00:00P10675199DT2H48M5.4775807SAvailable + xmlns:i="http://www.w3.org/2001/XMLSchema-instance">PT1MfalseP10675199DT2H48M5.4775807Sfalsetrue010trueActive2021-04-22T15:21:33.6536071Z2021-04-22T15:21:33.6536071Z0001-01-01T00:00:00P10675199DT2H48M5.4775807SAvailable headers: content-type: - application/atom+xml;type=entry;charset=utf-8 date: - - Tue, 02 Mar 2021 19:49:54 GMT + - Thu, 22 Apr 2021 15:21:33 GMT etag: - - '637503113942230000' + - '637547016929730000' server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -131,25 +131,25 @@ interactions: Content-Type: - application/atom+xml User-Agent: - - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.9 (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://servicebustestqd6kevky7y.servicebus.windows.net/fjruid/subscriptions/eqkovcd/rules/rule?api-version=2017-04rule2021-03-02T19:49:55Z2021-03-02T19:49:55Zhttps://servicebustesto3ardhmdnl.servicebus.windows.net/fjruid/subscriptions/eqkovcd/rules/rule?api-version=2017-04rule2021-04-22T15:21:34Z2021-04-22T15:21:34ZPriority = 'low'20true2021-03-02T19:49:55.0807876Zrule + i:type="EmptyRuleAction"/>2021-04-22T15:21:34.169941Zrule headers: content-type: - application/atom+xml;type=entry;charset=utf-8 date: - - Tue, 02 Mar 2021 19:49:54 GMT + - Thu, 22 Apr 2021 15:21:34 GMT etag: - - '637503113942230000' + - '637547016929730000' server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -169,25 +169,25 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.9 (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://servicebustestqd6kevky7y.servicebus.windows.net/fjruid/subscriptions/eqkovcd/rules/rule?enrich=false&api-version=2017-04rule2021-03-02T19:49:55Z2021-03-02T19:49:55Zsb://servicebustesto3ardhmdnl.servicebus.windows.net/fjruid/subscriptions/eqkovcd/rules/rule?enrich=false&api-version=2017-04rule2021-04-22T15:21:34Z2021-04-22T15:21:34ZPriority = 'low'20true2021-03-02T19:49:55.0884104Zrule + i:type="EmptyRuleAction"/>2021-04-22T15:21:34.1691241Zrule headers: content-type: - application/atom+xml;type=entry;charset=utf-8 date: - - Tue, 02 Mar 2021 19:49:54 GMT + - Thu, 22 Apr 2021 15:21:34 GMT etag: - - '637503113942230000' + - '637547016929730000' server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -203,7 +203,7 @@ interactions: testcidSET Priority = ''low''20true2021-03-02T19:49:55.08841Zrule' + xsi:type="SqlRuleAction">SET Priority = ''low''20true2021-04-22T15:21:34.169124Zrule' headers: Accept: - application/xml @@ -212,30 +212,30 @@ interactions: Connection: - keep-alive Content-Length: - - '654' + - '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) + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.9 (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://servicebustestqd6kevky7y.servicebus.windows.net/fjruid/subscriptions/eqkovcd/rules/rule?api-version=2017-04rule2021-03-02T19:49:55Z2021-03-02T19:49:55Zhttps://servicebustesto3ardhmdnl.servicebus.windows.net/fjruid/subscriptions/eqkovcd/rules/rule?api-version=2017-04rule2021-04-22T15:21:34Z2021-04-22T15:21:34ZtestcidSET Priority = 'low'20true2021-03-02T19:49:55.3932669Zrule + i:type="SqlRuleAction">SET Priority = 'low'20true2021-04-22T15:21:34.7793219Zrule headers: content-type: - application/atom+xml;type=entry;charset=utf-8 date: - - Tue, 02 Mar 2021 19:49:54 GMT + - Thu, 22 Apr 2021 15:21:34 GMT etag: - - '637503113942230000' + - '637547016929730000' server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -255,24 +255,109 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.9 (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://servicebustestqd6kevky7y.servicebus.windows.net/fjruid/subscriptions/eqkovcd/rules/rule?enrich=false&api-version=2017-04rule2021-03-02T19:49:55Z2021-03-02T19:49:55Zsb://servicebustesto3ardhmdnl.servicebus.windows.net/fjruid/subscriptions/eqkovcd/rules/rule?enrich=false&api-version=2017-04rule2021-04-22T15:21:34Z2021-04-22T15:21:34ZtestcidSET Priority = 'low'20true2021-03-02T19:49:55.0884104Zrule + i:type="SqlRuleAction">SET Priority = 'low'20true2021-04-22T15:21:34.1691241Zrule headers: content-type: - application/atom+xml;type=entry;charset=utf-8 date: - - Tue, 02 Mar 2021 19:49:54 GMT + - Thu, 22 Apr 2021 15:21:34 GMT etag: - - '637503113942230000' + - '637547016929730000' + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000 + transfer-encoding: + - chunked + status: + code: 200 + message: OK +- request: + body: ' + + updatedcid2021-04-22T15:21:34.169124Zrule' + headers: + Accept: + - application/xml + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '508' + Content-Type: + - application/atom+xml + If-Match: + - '*' + User-Agent: + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.9 (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://servicebustesto3ardhmdnl.servicebus.windows.net/fjruid/subscriptions/eqkovcd/rules/rule?api-version=2017-04rule2021-04-22T15:21:35Z2021-04-22T15:21:35Zupdatedcid2021-04-22T15:21:35.4043346Zrule + headers: + content-type: + - application/atom+xml;type=entry;charset=utf-8 + date: + - Thu, 22 Apr 2021 15:21:35 GMT + etag: + - '637547016929730000' + 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.9 (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://servicebustesto3ardhmdnl.servicebus.windows.net/fjruid/subscriptions/eqkovcd/rules/rule?enrich=false&api-version=2017-04rule2021-04-22T15:21:34Z2021-04-22T15:21:34Zupdatedcid2021-04-22T15:21:34.1691241Zrule + headers: + content-type: + - application/atom+xml;type=entry;charset=utf-8 + date: + - Thu, 22 Apr 2021 15:21:35 GMT + etag: + - '637547016929730000' server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -294,7 +379,7 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: DELETE uri: https://servicebustestsbname.servicebus.windows.net/fjruid/subscriptions/eqkovcd/rules/rule?api-version=2017-04 response: @@ -304,9 +389,9 @@ interactions: content-length: - '0' date: - - Tue, 02 Mar 2021 19:49:55 GMT + - Thu, 22 Apr 2021 15:21:35 GMT etag: - - '637503113942230000' + - '637547016929730000' server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -326,7 +411,7 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: DELETE uri: https://servicebustestsbname.servicebus.windows.net/fjruid/subscriptions/eqkovcd?api-version=2017-04 response: @@ -336,9 +421,9 @@ interactions: content-length: - '0' date: - - Tue, 02 Mar 2021 19:49:55 GMT + - Thu, 22 Apr 2021 15:21:36 GMT etag: - - '637503113942230000' + - '637547016929730000' server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -358,7 +443,7 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: DELETE uri: https://servicebustestsbname.servicebus.windows.net/fjruid?api-version=2017-04 response: @@ -368,9 +453,9 @@ interactions: content-length: - '0' date: - - Tue, 02 Mar 2021 19:49:55 GMT + - Thu, 22 Apr 2021 15:21:36 GMT etag: - - '637503113942230000' + - '637547016929730000' 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_success.yaml b/sdk/servicebus/azure-servicebus/tests/mgmt_tests/recordings/test_mgmt_rules.test_mgmt_rule_update_success.yaml index 69338e822c52..4e78f638e63b 100644 --- a/sdk/servicebus/azure-servicebus/tests/mgmt_tests/recordings/test_mgmt_rules.test_mgmt_rule_update_success.yaml +++ b/sdk/servicebus/azure-servicebus/tests/mgmt_tests/recordings/test_mgmt_rules.test_mgmt_rule_update_success.yaml @@ -9,18 +9,18 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-servicebusmanagementclient/2017-04 Python/3.8.2 (Windows-10-10.0.18362-SP0) + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.9 (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://servicebustestafjalzt3of.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-042020-12-03T18:23:33Z + string: Topicshttps://servicebustestlzb7z2tqdh.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-042021-04-22T15:18:56Z headers: content-type: - application/atom+xml;type=feed;charset=utf-8 date: - - Thu, 03 Dec 2020 18:23:32 GMT + - Thu, 22 Apr 2021 15:18:56 GMT server: - Microsoft-HTTPAPI/2.0 transfer-encoding: @@ -45,21 +45,21 @@ interactions: Content-Type: - application/atom+xml User-Agent: - - azsdk-python-servicebusmanagementclient/2017-04 Python/3.8.2 (Windows-10-10.0.18362-SP0) + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: PUT uri: https://servicebustestsbname.servicebus.windows.net/fjrui?api-version=2017-04 response: body: - string: https://servicebustestafjalzt3of.servicebus.windows.net/fjrui?api-version=2017-04fjrui2020-12-03T18:23:33Z2020-12-03T18:23:33Zservicebustestafjalzt3ofhttps://servicebustestlzb7z2tqdh.servicebus.windows.net/fjrui?api-version=2017-04fjrui2021-04-22T15:18:57Z2021-04-22T15:18:57Zservicebustestlzb7z2tqdhP10675199DT2H48M5.4775807S1024falsePT10Mtrue0falsefalseActive2020-12-03T18:23:33.547Z2020-12-03T18:23:33.6ZtrueP10675199DT2H48M5.4775807SfalseAvailablefalsefalse + xmlns:i="http://www.w3.org/2001/XMLSchema-instance">P10675199DT2H48M5.4775807S1024falsePT10Mtrue0falsefalseActive2021-04-22T15:18:57.323Z2021-04-22T15:18:57.377ZtrueP10675199DT2H48M5.4775807SfalseAvailablefalsefalse headers: content-type: - application/atom+xml;type=entry;charset=utf-8 date: - - Thu, 03 Dec 2020 18:23:33 GMT + - Thu, 22 Apr 2021 15:18:57 GMT server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -86,23 +86,23 @@ interactions: Content-Type: - application/atom+xml User-Agent: - - azsdk-python-servicebusmanagementclient/2017-04 Python/3.8.2 (Windows-10-10.0.18362-SP0) + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.9 (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://servicebustestafjalzt3of.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04eqkovc2020-12-03T18:23:34Z2020-12-03T18:23:34Zhttps://servicebustestlzb7z2tqdh.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04eqkovc2021-04-22T15:18:58Z2021-04-22T15:18:58ZPT1MfalseP10675199DT2H48M5.4775807Sfalsetrue010trueActive2020-12-03T18:23:34.0827453Z2020-12-03T18:23:34.0827453Z0001-01-01T00:00:00P10675199DT2H48M5.4775807SAvailable + xmlns:i="http://www.w3.org/2001/XMLSchema-instance">PT1MfalseP10675199DT2H48M5.4775807Sfalsetrue010trueActive2021-04-22T15:18:58.0416933Z2021-04-22T15:18:58.0416933Z0001-01-01T00:00:00P10675199DT2H48M5.4775807SAvailable headers: content-type: - application/atom+xml;type=entry;charset=utf-8 date: - - Thu, 03 Dec 2020 18:23:33 GMT + - Thu, 22 Apr 2021 15:18:58 GMT etag: - - '637426166136000000' + - '637547015373770000' server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -131,25 +131,25 @@ interactions: Content-Type: - application/atom+xml User-Agent: - - azsdk-python-servicebusmanagementclient/2017-04 Python/3.8.2 (Windows-10-10.0.18362-SP0) + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.9 (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://servicebustestafjalzt3of.servicebus.windows.net/fjrui/subscriptions/eqkovc/rules/rule?api-version=2017-04rule2020-12-03T18:23:34Z2020-12-03T18:23:34Zhttps://servicebustestlzb7z2tqdh.servicebus.windows.net/fjrui/subscriptions/eqkovc/rules/rule?api-version=2017-04rule2021-04-22T15:18:58Z2021-04-22T15:18:58ZPriority = 'low'20true2020-12-03T18:23:34.2858696Zrule + i:type="EmptyRuleAction"/>2021-04-22T15:18:58.4948313Zrule headers: content-type: - application/atom+xml;type=entry;charset=utf-8 date: - - Thu, 03 Dec 2020 18:23:33 GMT + - Thu, 22 Apr 2021 15:18:58 GMT etag: - - '637426166136000000' + - '637547015373770000' server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -169,25 +169,25 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-servicebusmanagementclient/2017-04 Python/3.8.2 (Windows-10-10.0.18362-SP0) + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET uri: https://servicebustestsbname.servicebus.windows.net/fjrui/subscriptions/eqkovc/rules/rule?enrich=false&api-version=2017-04 response: body: - string: sb://servicebustestafjalzt3of.servicebus.windows.net/fjrui/subscriptions/eqkovc/rules/rule?enrich=false&api-version=2017-04rule2020-12-03T18:23:34Z2020-12-03T18:23:34Zsb://servicebustestlzb7z2tqdh.servicebus.windows.net/fjrui/subscriptions/eqkovc/rules/rule?enrich=false&api-version=2017-04rule2021-04-22T15:18:58Z2021-04-22T15:18:58ZPriority = 'low'20true2020-12-03T18:23:34.2878054Zrule + i:type="EmptyRuleAction"/>2021-04-22T15:18:58.4985986Zrule headers: content-type: - application/atom+xml;type=entry;charset=utf-8 date: - - Thu, 03 Dec 2020 18:23:33 GMT + - Thu, 22 Apr 2021 15:18:58 GMT etag: - - '637426166136000000' + - '637547015373770000' server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -203,7 +203,7 @@ interactions: testcidSET Priority = ''low''20true2020-12-03T18:23:34.287805Zrule' + xsi:type="SqlRuleAction">SET Priority = ''low''20true2021-04-22T15:18:58.498598Zrule' headers: Accept: - application/xml @@ -218,24 +218,24 @@ interactions: If-Match: - '*' User-Agent: - - azsdk-python-servicebusmanagementclient/2017-04 Python/3.8.2 (Windows-10-10.0.18362-SP0) + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.9 (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://servicebustestafjalzt3of.servicebus.windows.net/fjrui/subscriptions/eqkovc/rules/rule?api-version=2017-04rule2020-12-03T18:23:34Z2020-12-03T18:23:34Zhttps://servicebustestlzb7z2tqdh.servicebus.windows.net/fjrui/subscriptions/eqkovc/rules/rule?api-version=2017-04rule2021-04-22T15:18:59Z2021-04-22T15:18:59ZtestcidSET Priority = 'low'20true2020-12-03T18:23:34.488995Zrule + i:type="SqlRuleAction">SET Priority = 'low'20true2021-04-22T15:18:59.041708Zrule headers: content-type: - application/atom+xml;type=entry;charset=utf-8 date: - - Thu, 03 Dec 2020 18:23:34 GMT + - Thu, 22 Apr 2021 15:18:58 GMT etag: - - '637426166136000000' + - '637547015373770000' server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -255,24 +255,109 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-servicebusmanagementclient/2017-04 Python/3.8.2 (Windows-10-10.0.18362-SP0) + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET uri: https://servicebustestsbname.servicebus.windows.net/fjrui/subscriptions/eqkovc/rules/rule?enrich=false&api-version=2017-04 response: body: - string: sb://servicebustestafjalzt3of.servicebus.windows.net/fjrui/subscriptions/eqkovc/rules/rule?enrich=false&api-version=2017-04rule2020-12-03T18:23:34Z2020-12-03T18:23:34Zsb://servicebustestlzb7z2tqdh.servicebus.windows.net/fjrui/subscriptions/eqkovc/rules/rule?enrich=false&api-version=2017-04rule2021-04-22T15:18:58Z2021-04-22T15:18:58ZtestcidSET Priority = 'low'20true2020-12-03T18:23:34.2878054Zrule + i:type="SqlRuleAction">SET Priority = 'low'20true2021-04-22T15:18:58.4985986Zrule headers: content-type: - application/atom+xml;type=entry;charset=utf-8 date: - - Thu, 03 Dec 2020 18:23:34 GMT + - Thu, 22 Apr 2021 15:18:59 GMT etag: - - '637426166136000000' + - '637547015373770000' + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000 + transfer-encoding: + - chunked + status: + code: 200 + message: OK +- request: + body: ' + + updatedcid2021-04-22T15:18:58.498598Zrule' + headers: + Accept: + - application/xml + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '508' + Content-Type: + - application/atom+xml + If-Match: + - '*' + User-Agent: + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.9 (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://servicebustestlzb7z2tqdh.servicebus.windows.net/fjrui/subscriptions/eqkovc/rules/rule?api-version=2017-04rule2021-04-22T15:18:59Z2021-04-22T15:18:59Zupdatedcid2021-04-22T15:18:59.6198338Zrule + headers: + content-type: + - application/atom+xml;type=entry;charset=utf-8 + date: + - Thu, 22 Apr 2021 15:18:59 GMT + etag: + - '637547015373770000' + 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.9 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://servicebustestsbname.servicebus.windows.net/fjrui/subscriptions/eqkovc/rules/rule?enrich=false&api-version=2017-04 + response: + body: + string: sb://servicebustestlzb7z2tqdh.servicebus.windows.net/fjrui/subscriptions/eqkovc/rules/rule?enrich=false&api-version=2017-04rule2021-04-22T15:18:58Z2021-04-22T15:18:58Zupdatedcid2021-04-22T15:18:58.4985986Zrule + headers: + content-type: + - application/atom+xml;type=entry;charset=utf-8 + date: + - Thu, 22 Apr 2021 15:18:59 GMT + etag: + - '637547015373770000' server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -294,7 +379,7 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-servicebusmanagementclient/2017-04 Python/3.8.2 (Windows-10-10.0.18362-SP0) + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: DELETE uri: https://servicebustestsbname.servicebus.windows.net/fjrui/subscriptions/eqkovc/rules/rule?api-version=2017-04 response: @@ -304,9 +389,9 @@ interactions: content-length: - '0' date: - - Thu, 03 Dec 2020 18:23:34 GMT + - Thu, 22 Apr 2021 15:19:00 GMT etag: - - '637426166136000000' + - '637547015373770000' server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -326,7 +411,7 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-servicebusmanagementclient/2017-04 Python/3.8.2 (Windows-10-10.0.18362-SP0) + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: DELETE uri: https://servicebustestsbname.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04 response: @@ -336,9 +421,9 @@ interactions: content-length: - '0' date: - - Thu, 03 Dec 2020 18:23:34 GMT + - Thu, 22 Apr 2021 15:19:00 GMT etag: - - '637426166136000000' + - '637547015373770000' server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -358,7 +443,7 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-servicebusmanagementclient/2017-04 Python/3.8.2 (Windows-10-10.0.18362-SP0) + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: DELETE uri: https://servicebustestsbname.servicebus.windows.net/fjrui?api-version=2017-04 response: @@ -368,9 +453,9 @@ interactions: content-length: - '0' date: - - Thu, 03 Dec 2020 18:23:34 GMT + - Thu, 22 Apr 2021 15:19:01 GMT etag: - - '637426166136000000' + - '637547015373770000' 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 d60e109c5d9f..e74795606c89 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 @@ -9,18 +9,18 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.9 (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://servicebustestnkxyo36wpb.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-042021-03-02T19:51:50Z + string: Topicshttps://servicebustestf27vchuqgf.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-042021-04-22T15:04:58Z headers: content-type: - application/atom+xml;type=feed;charset=utf-8 date: - - Tue, 02 Mar 2021 19:51:50 GMT + - Thu, 22 Apr 2021 15:04:58 GMT server: - Microsoft-HTTPAPI/2.0 transfer-encoding: @@ -45,21 +45,21 @@ interactions: Content-Type: - application/atom+xml User-Agent: - - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: PUT uri: https://servicebustestsbname.servicebus.windows.net/fjruid?api-version=2017-04 response: body: - string: https://servicebustestnkxyo36wpb.servicebus.windows.net/fjruid?api-version=2017-04fjruid2021-03-02T19:51:51Z2021-03-02T19:51:51Zservicebustestnkxyo36wpbhttps://servicebustestf27vchuqgf.servicebus.windows.net/fjruid?api-version=2017-04fjruid2021-04-22T15:04:59Z2021-04-22T15:04:59Zservicebustestf27vchuqgfP10675199DT2H48M5.4775807S1024falsePT10Mtrue0falsefalseActive2021-03-02T19:51:51.15Z2021-03-02T19:51:51.23ZtrueP10675199DT2H48M5.4775807SfalseAvailablefalsefalse + xmlns:i="http://www.w3.org/2001/XMLSchema-instance">P10675199DT2H48M5.4775807S1024falsePT10Mtrue0falsefalseActive2021-04-22T15:04:59.14Z2021-04-22T15:04:59.19ZtrueP10675199DT2H48M5.4775807SfalseAvailablefalsefalse headers: content-type: - application/atom+xml;type=entry;charset=utf-8 date: - - Tue, 02 Mar 2021 19:51:51 GMT + - Thu, 22 Apr 2021 15:04:59 GMT server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -86,23 +86,23 @@ interactions: Content-Type: - application/atom+xml User-Agent: - - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.9 (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://servicebustestnkxyo36wpb.servicebus.windows.net/fjruid/subscriptions/eqkovcd?api-version=2017-04eqkovcd2021-03-02T19:51:51Z2021-03-02T19:51:51Zhttps://servicebustestf27vchuqgf.servicebus.windows.net/fjruid/subscriptions/eqkovcd?api-version=2017-04eqkovcd2021-04-22T15:04:59Z2021-04-22T15:04:59ZPT1MfalseP10675199DT2H48M5.4775807Sfalsetrue010trueActive2021-03-02T19:51:51.7276022Z2021-03-02T19:51:51.7276022Z0001-01-01T00:00:00P10675199DT2H48M5.4775807SAvailable + xmlns:i="http://www.w3.org/2001/XMLSchema-instance">PT1MfalseP10675199DT2H48M5.4775807Sfalsetrue010trueActive2021-04-22T15:04:59.8631553Z2021-04-22T15:04:59.8631553Z0001-01-01T00:00:00P10675199DT2H48M5.4775807SAvailable headers: content-type: - application/atom+xml;type=entry;charset=utf-8 date: - - Tue, 02 Mar 2021 19:51:51 GMT + - Thu, 22 Apr 2021 15:04:59 GMT etag: - - '637503115112300000' + - '637547006991900000' server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -131,23 +131,23 @@ interactions: If-Match: - '*' User-Agent: - - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.9 (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://servicebustestnkxyo36wpb.servicebus.windows.net/fjruid/subscriptions/eqkovcd?api-version=2017-04eqkovcd2021-03-02T19:51:52Z2021-03-02T19:51:52Zhttps://servicebustestf27vchuqgf.servicebus.windows.net/fjruid/subscriptions/eqkovcd?api-version=2017-04eqkovcd2021-04-22T15:05:00Z2021-04-22T15:05:00ZPT2MfalseP10675199DT2H48M5.477539Sfalsetrue010trueActive2021-03-02T19:51:52.0088215Z2021-03-02T19:51:52.0088215Z0001-01-01T00:00:00P10675199DT2H48M5.477539SAvailable + xmlns:i="http://www.w3.org/2001/XMLSchema-instance">PT2MfalseP10675199DT2H48M5.477539Sfalsetrue010trueActive2021-04-22T15:05:00.2068751Z2021-04-22T15:05:00.2068751Z0001-01-01T00:00:00P10675199DT2H48M5.477539SAvailable headers: content-type: - application/atom+xml;type=entry;charset=utf-8 date: - - Tue, 02 Mar 2021 19:51:51 GMT + - Thu, 22 Apr 2021 15:04:59 GMT etag: - - '637503115112300000' + - '637547006991900000' server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -167,24 +167,24 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.9 (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://servicebustestnkxyo36wpb.servicebus.windows.net/fjruid/subscriptions/eqkovcd?enrich=false&api-version=2017-04eqkovcd2021-03-02T19:51:51Z2021-03-02T19:51:52Zsb://servicebustestf27vchuqgf.servicebus.windows.net/fjruid/subscriptions/eqkovcd?enrich=false&api-version=2017-04eqkovcd2021-04-22T15:04:59Z2021-04-22T15:05:00ZPT2MfalseP10675199DT2H48M5.477539Sfalsetrue010trueActive2021-03-02T19:51:51.7272898Z2021-03-02T19:51:52.1803839Z2021-03-02T19:51:51.7272898ZPT2MfalseP10675199DT2H48M5.477539Sfalsetrue010trueActive2021-04-22T15:04:59.8612051Z2021-04-22T15:05:00.2049828Z2021-04-22T15:04:59.8612051Z00000P10675199DT2H48M5.477539SAvailable headers: content-type: - application/atom+xml;type=entry;charset=utf-8 date: - - Tue, 02 Mar 2021 19:51:51 GMT + - Thu, 22 Apr 2021 15:05:00 GMT etag: - - '637503115112300000' + - '637547006991900000' server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -213,23 +213,23 @@ interactions: If-Match: - '*' User-Agent: - - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.9 (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://servicebustestnkxyo36wpb.servicebus.windows.net/fjruid/subscriptions/eqkovcd?api-version=2017-04eqkovcd2021-03-02T19:51:52Z2021-03-02T19:51:52Zhttps://servicebustestf27vchuqgf.servicebus.windows.net/fjruid/subscriptions/eqkovcd?api-version=2017-04eqkovcd2021-04-22T15:05:00Z2021-04-22T15:05:00ZPT12SfalsePT11Mtruetrue014trueActive2021-03-02T19:51:52.4306993Z2021-03-02T19:51:52.4306993Z0001-01-01T00:00:00PT10MAvailable + xmlns:i="http://www.w3.org/2001/XMLSchema-instance">PT12SfalsePT11Mtruetrue014trueActive2021-04-22T15:05:00.7589009Z2021-04-22T15:05:00.7589009Z0001-01-01T00:00:00PT10MAvailable headers: content-type: - application/atom+xml;type=entry;charset=utf-8 date: - - Tue, 02 Mar 2021 19:51:52 GMT + - Thu, 22 Apr 2021 15:05:00 GMT etag: - - '637503115112300000' + - '637547006991900000' server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -249,24 +249,24 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.9 (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://servicebustestnkxyo36wpb.servicebus.windows.net/fjruid/subscriptions/eqkovcd?enrich=false&api-version=2017-04eqkovcd2021-03-02T19:51:51Z2021-03-02T19:51:52Zsb://servicebustestf27vchuqgf.servicebus.windows.net/fjruid/subscriptions/eqkovcd?enrich=false&api-version=2017-04eqkovcd2021-04-22T15:04:59Z2021-04-22T15:05:00ZPT12SfalsePT11Mtruetrue014trueActive2021-03-02T19:51:51.7272898Z2021-03-02T19:51:52.430416Z2021-03-02T19:51:51.7272898ZPT12SfalsePT11Mtruetrue014trueActive2021-04-22T15:04:59.8612051Z2021-04-22T15:05:00.8768405Z2021-04-22T15:04:59.8612051Z00000PT10MAvailable headers: content-type: - application/atom+xml;type=entry;charset=utf-8 date: - - Tue, 02 Mar 2021 19:51:52 GMT + - Thu, 22 Apr 2021 15:05:00 GMT etag: - - '637503115112300000' + - '637547006991900000' server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -280,7 +280,7 @@ interactions: body: ' PT12SfalsePT11Mtruetrue14trueActivesb://servicebustestnkxyo36wpb.servicebus.windows.net/fjruidsb://servicebustestnkxyo36wpb.servicebus.windows.net/fjruidPT10MAvailable' + type="application/xml">PT12SfalsePT11Mtruetrue14trueActivesb://servicebustestf27vchuqgf.servicebus.windows.net/fjruidsb://servicebustestf27vchuqgf.servicebus.windows.net/fjruidPT10MAvailable' headers: Accept: - application/xml @@ -295,27 +295,27 @@ interactions: If-Match: - '*' ServiceBusDlqSupplementaryAuthorization: - - SharedAccessSignature sr=sb%3A%2F%2Fservicebustestnkxyo36wpb.servicebus.windows.net%2Ffjruid&sig=0ptYwRjZfISzRAtqHGhoVbMF6wWu5io4DKGQkiQebOk%3d&se=1614718311&skn=RootManageSharedAccessKey + - SharedAccessSignature sr=sb%3A%2F%2Fservicebustestf27vchuqgf.servicebus.windows.net%2Ffjruid&sig=FwaFbEXORavfgL47hbYM5djMQSSvoy4%2bQ6XOjrEujI8%3d&se=1619107501&skn=RootManageSharedAccessKey ServiceBusSupplementaryAuthorization: - - SharedAccessSignature sr=sb%3A%2F%2Fservicebustestnkxyo36wpb.servicebus.windows.net%2Ffjruid&sig=0ptYwRjZfISzRAtqHGhoVbMF6wWu5io4DKGQkiQebOk%3d&se=1614718311&skn=RootManageSharedAccessKey + - SharedAccessSignature sr=sb%3A%2F%2Fservicebustestf27vchuqgf.servicebus.windows.net%2Ffjruid&sig=FwaFbEXORavfgL47hbYM5djMQSSvoy4%2bQ6XOjrEujI8%3d&se=1619107501&skn=RootManageSharedAccessKey User-Agent: - - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.9 (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://servicebustestnkxyo36wpb.servicebus.windows.net/fjruid/subscriptions/eqkovcd?api-version=2017-04eqkovcd2021-03-02T19:51:52Z2021-03-02T19:51:52Zhttps://servicebustestf27vchuqgf.servicebus.windows.net/fjruid/subscriptions/eqkovcd?api-version=2017-04eqkovcd2021-04-22T15:05:01Z2021-04-22T15:05:01ZPT12SfalsePT11Mtruetrue014trueActivesb://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 + xmlns:i="http://www.w3.org/2001/XMLSchema-instance">PT12SfalsePT11Mtruetrue014trueActivesb://servicebustestf27vchuqgf.servicebus.windows.net/fjruid2021-04-22T15:05:01.4307831Z2021-04-22T15:05:01.4307831Z0001-01-01T00:00:00sb://servicebustestf27vchuqgf.servicebus.windows.net/fjruidP10675199DT2H48M5.4775807SAvailable headers: content-type: - application/atom+xml;type=entry;charset=utf-8 date: - - Tue, 02 Mar 2021 19:51:52 GMT + - Thu, 22 Apr 2021 15:05:01 GMT etag: - - '637503115112300000' + - '637547006991900000' server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -335,24 +335,106 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.9 (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://servicebustestnkxyo36wpb.servicebus.windows.net/fjruid/subscriptions/eqkovcd?enrich=false&api-version=2017-04eqkovcd2021-03-02T19:51:51Z2021-03-02T19:51:52Zsb://servicebustestf27vchuqgf.servicebus.windows.net/fjruid/subscriptions/eqkovcd?enrich=false&api-version=2017-04eqkovcd2021-04-22T15:04:59Z2021-04-22T15:05:01ZPT12SfalsePT11Mtruetrue014trueActivesb://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 + xmlns:i="http://www.w3.org/2001/XMLSchema-instance">PT12SfalsePT11Mtruetrue014trueActivesb://servicebustestf27vchuqgf.servicebus.windows.net/fjruid2021-04-22T15:04:59.8612051Z2021-04-22T15:05:01.4393735Z2021-04-22T15:04:59.8612051Z00000sb://servicebustestf27vchuqgf.servicebus.windows.net/fjruidP10675199DT2H48M5.4775807SAvailable headers: content-type: - application/atom+xml;type=entry;charset=utf-8 date: - - Tue, 02 Mar 2021 19:51:52 GMT + - Thu, 22 Apr 2021 15:05:01 GMT etag: - - '637503115112300000' + - '637547006991900000' + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000 + transfer-encoding: + - chunked + status: + code: 200 + message: OK +- request: + body: ' + + PT17SfalsePT16Mfalsetrue15trueActivePT15MAvailable' + headers: + Accept: + - application/xml + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '797' + Content-Type: + - application/atom+xml + If-Match: + - '*' + User-Agent: + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.9 (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://servicebustestf27vchuqgf.servicebus.windows.net/fjruid/subscriptions/eqkovcd?api-version=2017-04eqkovcd2021-04-22T15:05:01Z2021-04-22T15:05:01ZPT17SfalsePT16Mfalsetrue015trueActive2021-04-22T15:05:01.9777217Z2021-04-22T15:05:01.9777217Z0001-01-01T00:00:00PT15MAvailable + headers: + content-type: + - application/atom+xml;type=entry;charset=utf-8 + date: + - Thu, 22 Apr 2021 15:05:01 GMT + etag: + - '637547006991900000' + 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.9 (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://servicebustestf27vchuqgf.servicebus.windows.net/fjruid/subscriptions/eqkovcd?enrich=false&api-version=2017-04eqkovcd2021-04-22T15:04:59Z2021-04-22T15:05:02ZPT17SfalsePT16Mfalsetrue015trueActive2021-04-22T15:04:59.8612051Z2021-04-22T15:05:02.0018556Z2021-04-22T15:04:59.8612051Z00000PT15MAvailable + headers: + content-type: + - application/atom+xml;type=entry;charset=utf-8 + date: + - Thu, 22 Apr 2021 15:05:01 GMT + etag: + - '637547006991900000' server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -374,7 +456,7 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: DELETE uri: https://servicebustestsbname.servicebus.windows.net/fjruid/subscriptions/eqkovcd?api-version=2017-04 response: @@ -384,9 +466,9 @@ interactions: content-length: - '0' date: - - Tue, 02 Mar 2021 19:51:52 GMT + - Thu, 22 Apr 2021 15:05:02 GMT etag: - - '637503115112300000' + - '637547006991900000' server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -406,7 +488,7 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: DELETE uri: https://servicebustestsbname.servicebus.windows.net/fjruid?api-version=2017-04 response: @@ -416,9 +498,9 @@ interactions: content-length: - '0' date: - - Tue, 02 Mar 2021 19:51:53 GMT + - Thu, 22 Apr 2021 15:05:02 GMT etag: - - '637503115112300000' + - '637547006991900000' 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_success.yaml b/sdk/servicebus/azure-servicebus/tests/mgmt_tests/recordings/test_mgmt_subscriptions.test_mgmt_subscription_update_success.yaml index a54a97bea0a3..111b8b5f3205 100644 --- a/sdk/servicebus/azure-servicebus/tests/mgmt_tests/recordings/test_mgmt_subscriptions.test_mgmt_subscription_update_success.yaml +++ b/sdk/servicebus/azure-servicebus/tests/mgmt_tests/recordings/test_mgmt_subscriptions.test_mgmt_subscription_update_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://servicebustest7eewws4lfm.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-042021-04-15T16:43:23Z + string: Topicshttps://servicebustestskjauwsb3z.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-042021-04-22T15:02:39Z headers: content-type: - application/atom+xml;type=feed;charset=utf-8 date: - - Thu, 15 Apr 2021 16:43:23 GMT + - Thu, 22 Apr 2021 15:02:39 GMT server: - Microsoft-HTTPAPI/2.0 transfer-encoding: @@ -50,16 +50,16 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/dfkla?api-version=2017-04 response: body: - string: https://servicebustest7eewws4lfm.servicebus.windows.net/dfkla?api-version=2017-04dfkla2021-04-15T16:43:24Z2021-04-15T16:43:24Zservicebustest7eewws4lfmhttps://servicebustestskjauwsb3z.servicebus.windows.net/dfkla?api-version=2017-04dfkla2021-04-22T15:02:40Z2021-04-22T15:02:40Zservicebustestskjauwsb3zPT1M1024falsefalseP10675199DT2H48M5.4775807SfalsePT10M10true00falseActive2021-04-15T16:43:24.613Z2021-04-15T16:43:24.66ZtrueP10675199DT2H48M5.4775807SfalseAvailablefalse + xmlns:i="http://www.w3.org/2001/XMLSchema-instance">PT1M1024falsefalseP10675199DT2H48M5.4775807SfalsePT10M10true00falseActive2021-04-22T15:02:40.057Z2021-04-22T15:02:40.09ZtrueP10675199DT2H48M5.4775807SfalseAvailablefalse headers: content-type: - application/atom+xml;type=entry;charset=utf-8 date: - - Thu, 15 Apr 2021 16:43:24 GMT + - Thu, 22 Apr 2021 15:02:40 GMT server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -91,16 +91,16 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjrui?api-version=2017-04 response: body: - string: https://servicebustest7eewws4lfm.servicebus.windows.net/fjrui?api-version=2017-04fjrui2021-04-15T16:43:25Z2021-04-15T16:43:25Zservicebustest7eewws4lfmhttps://servicebustestskjauwsb3z.servicebus.windows.net/fjrui?api-version=2017-04fjrui2021-04-22T15:02:41Z2021-04-22T15:02:41Zservicebustestskjauwsb3zP10675199DT2H48M5.4775807S1024falsePT10Mtrue0falsefalseActive2021-04-15T16:43:25.79Z2021-04-15T16:43:25.84ZtrueP10675199DT2H48M5.4775807SfalseAvailablefalsefalse + xmlns:i="http://www.w3.org/2001/XMLSchema-instance">P10675199DT2H48M5.4775807S1024falsePT10Mtrue0falsefalseActive2021-04-22T15:02:41.223Z2021-04-22T15:02:41.26ZtrueP10675199DT2H48M5.4775807SfalseAvailablefalsefalse headers: content-type: - application/atom+xml;type=entry;charset=utf-8 date: - - Thu, 15 Apr 2021 16:43:25 GMT + - Thu, 22 Apr 2021 15:02:41 GMT server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -132,18 +132,18 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04 response: body: - string: https://servicebustest7eewws4lfm.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04eqkovc2021-04-15T16:43:26Z2021-04-15T16:43:26Zhttps://servicebustestskjauwsb3z.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04eqkovc2021-04-22T15:02:41Z2021-04-22T15:02:41ZPT1MfalseP10675199DT2H48M5.4775807Sfalsetrue010trueActive2021-04-15T16:43:26.4995414Z2021-04-15T16:43:26.4995414Z0001-01-01T00:00:00P10675199DT2H48M5.4775807SAvailable + xmlns:i="http://www.w3.org/2001/XMLSchema-instance">PT1MfalseP10675199DT2H48M5.4775807Sfalsetrue010trueActive2021-04-22T15:02:41.9375754Z2021-04-22T15:02:41.9375754Z0001-01-01T00:00:00P10675199DT2H48M5.4775807SAvailable headers: content-type: - application/atom+xml;type=entry;charset=utf-8 date: - - Thu, 15 Apr 2021 16:43:26 GMT + - Thu, 22 Apr 2021 15:02:41 GMT etag: - - '637541018058400000' + - '637547005612600000' server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -157,7 +157,7 @@ interactions: body: ' PT2MfalseP10675199DT2H48M5.477539Sfalsetrue010trueActive2021-04-15T16:43:26.499541Z2021-04-15T16:43:26.499541Z0001-01-01T00:00:00.000ZP10675199DT2H48M5.477539SAvailable' + type="application/xml">PT2MfalseP10675199DT2H48M5.477539Sfalsetrue010trueActive2021-04-22T15:02:41.937575Z2021-04-22T15:02:41.937575Z0001-01-01T00:00:00.000ZP10675199DT2H48M5.477539SAvailable' headers: Accept: - application/xml @@ -177,18 +177,18 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04 response: body: - string: https://servicebustest7eewws4lfm.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04eqkovc2021-04-15T16:43:26Z2021-04-15T16:43:26Zhttps://servicebustestskjauwsb3z.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04eqkovc2021-04-22T15:02:42Z2021-04-22T15:02:42ZPT2MfalseP10675199DT2H48M5.477539Sfalsetrue010trueActive2021-04-15T16:43:26.9683085Z2021-04-15T16:43:26.9683085Z0001-01-01T00:00:00P10675199DT2H48M5.477539SAvailable + xmlns:i="http://www.w3.org/2001/XMLSchema-instance">PT2MfalseP10675199DT2H48M5.477539Sfalsetrue010trueActive2021-04-22T15:02:42.2813253Z2021-04-22T15:02:42.2813253Z0001-01-01T00:00:00P10675199DT2H48M5.477539SAvailable headers: content-type: - application/atom+xml;type=entry;charset=utf-8 date: - - Thu, 15 Apr 2021 16:43:26 GMT + - Thu, 22 Apr 2021 15:02:42 GMT etag: - - '637541018058400000' + - '637547005612600000' server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -213,19 +213,19 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjrui/subscriptions/eqkovc?enrich=false&api-version=2017-04 response: body: - string: sb://servicebustest7eewws4lfm.servicebus.windows.net/fjrui/subscriptions/eqkovc?enrich=false&api-version=2017-04eqkovc2021-04-15T16:43:26Z2021-04-15T16:43:26Zsb://servicebustestskjauwsb3z.servicebus.windows.net/fjrui/subscriptions/eqkovc?enrich=false&api-version=2017-04eqkovc2021-04-22T15:02:41Z2021-04-22T15:02:42ZPT2MfalseP10675199DT2H48M5.477539Sfalsetrue010trueActive2021-04-15T16:43:26.4945316Z2021-04-15T16:43:26.9944691Z2021-04-15T16:43:26.4945316ZPT2MfalseP10675199DT2H48M5.477539Sfalsetrue010trueActive2021-04-22T15:02:41.9344853Z2021-04-22T15:02:42.2783438Z2021-04-22T15:02:41.9344853Z00000P10675199DT2H48M5.477539SAvailable headers: content-type: - application/atom+xml;type=entry;charset=utf-8 date: - - Thu, 15 Apr 2021 16:43:27 GMT + - Thu, 22 Apr 2021 15:02:42 GMT etag: - - '637541018058400000' + - '637547005612600000' server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -240,7 +240,7 @@ interactions: PT12SfalsePT11Mtruetrue014trueActive2021-04-15T16:43:26.494531Z2021-04-15T16:43:26.994469Z2021-04-15T16:43:26.494531Z00000PT10MAvailable' + type="application/xml">PT12SfalsePT11Mtruetrue014trueActive2021-04-22T15:02:41.934485Z2021-04-22T15:02:42.278343Z2021-04-22T15:02:41.934485Z00000PT10MAvailable' headers: Accept: - application/xml @@ -260,18 +260,18 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04 response: body: - string: https://servicebustest7eewws4lfm.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04eqkovc2021-04-15T16:43:27Z2021-04-15T16:43:27Zhttps://servicebustestskjauwsb3z.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04eqkovc2021-04-22T15:02:42Z2021-04-22T15:02:42ZPT12SfalsePT11Mtruetrue014trueActive2021-04-15T16:43:27.5776655Z2021-04-15T16:43:27.5776655Z0001-01-01T00:00:00PT10MAvailable + xmlns:i="http://www.w3.org/2001/XMLSchema-instance">PT12SfalsePT11Mtruetrue014trueActive2021-04-22T15:02:42.8282366Z2021-04-22T15:02:42.8282366Z0001-01-01T00:00:00PT10MAvailable headers: content-type: - application/atom+xml;type=entry;charset=utf-8 date: - - Thu, 15 Apr 2021 16:43:27 GMT + - Thu, 22 Apr 2021 15:02:42 GMT etag: - - '637541018058400000' + - '637547005612600000' server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -296,19 +296,19 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjrui/subscriptions/eqkovc?enrich=false&api-version=2017-04 response: body: - string: sb://servicebustest7eewws4lfm.servicebus.windows.net/fjrui/subscriptions/eqkovc?enrich=false&api-version=2017-04eqkovc2021-04-15T16:43:26Z2021-04-15T16:43:27Zsb://servicebustestskjauwsb3z.servicebus.windows.net/fjrui/subscriptions/eqkovc?enrich=false&api-version=2017-04eqkovc2021-04-22T15:02:41Z2021-04-22T15:02:42ZPT12SfalsePT11Mtruetrue014trueActive2021-04-15T16:43:26.4945316Z2021-04-15T16:43:27.5937263Z2021-04-15T16:43:26.4945316ZPT12SfalsePT11Mtruetrue014trueActive2021-04-22T15:02:41.9344853Z2021-04-22T15:02:42.840715Z2021-04-22T15:02:41.9344853Z00000PT10MAvailable headers: content-type: - application/atom+xml;type=entry;charset=utf-8 date: - - Thu, 15 Apr 2021 16:43:27 GMT + - Thu, 22 Apr 2021 15:02:43 GMT etag: - - '637541018058400000' + - '637547005612600000' server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -323,7 +323,7 @@ interactions: PT12SfalsePT11Mtruetrue014trueActivesb://servicebustest7eewws4lfm.servicebus.windows.net/fjrui2021-04-15T16:43:26.494531Z2021-04-15T16:43:27.593726Z2021-04-15T16:43:26.494531Z00000sb://servicebustest7eewws4lfm.servicebus.windows.net/fjruiPT10MAvailable' + type="application/xml">PT12SfalsePT11Mtruetrue014trueActivesb://servicebustestskjauwsb3z.servicebus.windows.net/fjrui2021-04-22T15:02:41.934485Z2021-04-22T15:02:42.840715Z2021-04-22T15:02:41.934485Z00000sb://servicebustestskjauwsb3z.servicebus.windows.net/fjruiPT10MAvailable' headers: Accept: - application/xml @@ -338,27 +338,27 @@ interactions: If-Match: - '*' ServiceBusDlqSupplementaryAuthorization: - - SharedAccessSignature sr=sb%3A%2F%2Fservicebustest7eewws4lfm.servicebus.windows.net%2Ffjrui&sig=VYyDru7TdwzzfjgvSV%2fV1nFqsCid36ntnnVBMEXRb4o%3d&se=1618508608&skn=RootManageSharedAccessKey + - SharedAccessSignature sr=sb%3A%2F%2Fservicebustestskjauwsb3z.servicebus.windows.net%2Ffjrui&sig=GczHvExOSistT0gXxQw4codO2SJpvfvqRaYEfR3kkRk%3d&se=1619107363&skn=RootManageSharedAccessKey ServiceBusSupplementaryAuthorization: - - SharedAccessSignature sr=sb%3A%2F%2Fservicebustest7eewws4lfm.servicebus.windows.net%2Ffjrui&sig=VYyDru7TdwzzfjgvSV%2fV1nFqsCid36ntnnVBMEXRb4o%3d&se=1618508608&skn=RootManageSharedAccessKey + - SharedAccessSignature sr=sb%3A%2F%2Fservicebustestskjauwsb3z.servicebus.windows.net%2Ffjrui&sig=GczHvExOSistT0gXxQw4codO2SJpvfvqRaYEfR3kkRk%3d&se=1619107363&skn=RootManageSharedAccessKey User-Agent: - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.9 (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://servicebustest7eewws4lfm.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04eqkovc2021-04-15T16:43:28Z2021-04-15T16:43:28Zhttps://servicebustestskjauwsb3z.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04eqkovc2021-04-22T15:02:43Z2021-04-22T15:02:43ZPT12SfalsePT11Mtruetrue014trueActivesb://servicebustest7eewws4lfm.servicebus.windows.net/fjrui2021-04-15T16:43:28.1401685Z2021-04-15T16:43:28.1401685Z0001-01-01T00:00:00sb://servicebustest7eewws4lfm.servicebus.windows.net/fjruiP10675199DT2H48M5.4775807SAvailable + xmlns:i="http://www.w3.org/2001/XMLSchema-instance">PT12SfalsePT11Mtruetrue014trueActivesb://servicebustestskjauwsb3z.servicebus.windows.net/fjrui2021-04-22T15:02:43.4063673Z2021-04-22T15:02:43.4063673Z0001-01-01T00:00:00sb://servicebustestskjauwsb3z.servicebus.windows.net/fjruiP10675199DT2H48M5.4775807SAvailable headers: content-type: - application/atom+xml;type=entry;charset=utf-8 date: - - Thu, 15 Apr 2021 16:43:27 GMT + - Thu, 22 Apr 2021 15:02:43 GMT etag: - - '637541018058400000' + - '637547005612600000' server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -383,19 +383,19 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjrui/subscriptions/eqkovc?enrich=false&api-version=2017-04 response: body: - string: sb://servicebustest7eewws4lfm.servicebus.windows.net/fjrui/subscriptions/eqkovc?enrich=false&api-version=2017-04eqkovc2021-04-15T16:43:26Z2021-04-15T16:43:28Zsb://servicebustestskjauwsb3z.servicebus.windows.net/fjrui/subscriptions/eqkovc?enrich=false&api-version=2017-04eqkovc2021-04-22T15:02:41Z2021-04-22T15:02:43ZPT12SfalsePT11Mtruetrue014trueActivesb://servicebustest7eewws4lfm.servicebus.windows.net/fjrui2021-04-15T16:43:26.4945316Z2021-04-15T16:43:28.157193Z2021-04-15T16:43:26.4945316Z00000sb://servicebustest7eewws4lfm.servicebus.windows.net/fjruiP10675199DT2H48M5.4775807SAvailable + xmlns:i="http://www.w3.org/2001/XMLSchema-instance">PT12SfalsePT11Mtruetrue014trueActivesb://servicebustestskjauwsb3z.servicebus.windows.net/fjrui2021-04-22T15:02:41.9344853Z2021-04-22T15:02:43.5438339Z2021-04-22T15:02:41.9344853Z00000sb://servicebustestskjauwsb3z.servicebus.windows.net/fjruiP10675199DT2H48M5.4775807SAvailable headers: content-type: - application/atom+xml;type=entry;charset=utf-8 date: - - Thu, 15 Apr 2021 16:43:28 GMT + - Thu, 22 Apr 2021 15:02:44 GMT etag: - - '637541018058400000' + - '637547005612600000' server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -410,7 +410,7 @@ interactions: PT12SfalsePT11Mtruetrue014trueActivesb://servicebustest7eewws4lfm.servicebus.windows.net/dfkla2021-04-15T16:43:26.494531Z2021-04-15T16:43:28.157193Z2021-04-15T16:43:26.494531Z00000sb://servicebustest7eewws4lfm.servicebus.windows.net/dfklaP10675199DT2H48M5.477539SAvailable' + type="application/xml">PT12SfalsePT11Mtruetrue014trueActivesb://servicebustestskjauwsb3z.servicebus.windows.net/dfkla2021-04-22T15:02:41.934485Z2021-04-22T15:02:43.543833Z2021-04-22T15:02:41.934485Z00000sb://servicebustestskjauwsb3z.servicebus.windows.net/dfklaP10675199DT2H48M5.477539SAvailable' headers: Accept: - application/xml @@ -425,27 +425,27 @@ interactions: If-Match: - '*' ServiceBusDlqSupplementaryAuthorization: - - SharedAccessSignature sr=sb%3A%2F%2Fservicebustest7eewws4lfm.servicebus.windows.net%2Fdfkla&sig=ZoBhAFc3r0vcl%2fsyse52IEjyfriZbHReZU1NhDpKjYo%3d&se=1618508608&skn=RootManageSharedAccessKey + - SharedAccessSignature sr=sb%3A%2F%2Fservicebustestskjauwsb3z.servicebus.windows.net%2Fdfkla&sig=aK4FMuVQQCSc9KroxJpqQnt0VvYDiFQ85VhdunumOsI%3d&se=1619107364&skn=RootManageSharedAccessKey ServiceBusSupplementaryAuthorization: - - SharedAccessSignature sr=sb%3A%2F%2Fservicebustest7eewws4lfm.servicebus.windows.net%2Fdfkla&sig=ZoBhAFc3r0vcl%2fsyse52IEjyfriZbHReZU1NhDpKjYo%3d&se=1618508608&skn=RootManageSharedAccessKey + - SharedAccessSignature sr=sb%3A%2F%2Fservicebustestskjauwsb3z.servicebus.windows.net%2Fdfkla&sig=aK4FMuVQQCSc9KroxJpqQnt0VvYDiFQ85VhdunumOsI%3d&se=1619107364&skn=RootManageSharedAccessKey User-Agent: - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.9 (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://servicebustest7eewws4lfm.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04eqkovc2021-04-15T16:43:28Z2021-04-15T16:43:28Zhttps://servicebustestskjauwsb3z.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04eqkovc2021-04-22T15:02:44Z2021-04-22T15:02:44ZPT12SfalsePT11Mtruetrue014trueActivesb://servicebustest7eewws4lfm.servicebus.windows.net/dfkla2021-04-15T16:43:28.6870418Z2021-04-15T16:43:28.6870418Z0001-01-01T00:00:00sb://servicebustest7eewws4lfm.servicebus.windows.net/dfklaP10675199DT2H48M5.4775807SAvailable + xmlns:i="http://www.w3.org/2001/XMLSchema-instance">PT12SfalsePT11Mtruetrue014trueActivesb://servicebustestskjauwsb3z.servicebus.windows.net/dfkla2021-04-22T15:02:44.3594638Z2021-04-22T15:02:44.3594638Z0001-01-01T00:00:00sb://servicebustestskjauwsb3z.servicebus.windows.net/dfklaP10675199DT2H48M5.4775807SAvailable headers: content-type: - application/atom+xml;type=entry;charset=utf-8 date: - - Thu, 15 Apr 2021 16:43:28 GMT + - Thu, 22 Apr 2021 15:02:44 GMT etag: - - '637541018058400000' + - '637547005612600000' server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -470,19 +470,19 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjrui/subscriptions/eqkovc?enrich=false&api-version=2017-04 response: body: - string: sb://servicebustest7eewws4lfm.servicebus.windows.net/fjrui/subscriptions/eqkovc?enrich=false&api-version=2017-04eqkovc2021-04-15T16:43:26Z2021-04-15T16:43:28Zsb://servicebustestskjauwsb3z.servicebus.windows.net/fjrui/subscriptions/eqkovc?enrich=false&api-version=2017-04eqkovc2021-04-22T15:02:41Z2021-04-22T15:02:44ZPT12SfalsePT11Mtruetrue014trueActivesb://servicebustest7eewws4lfm.servicebus.windows.net/dfkla2021-04-15T16:43:26.4945316Z2021-04-15T16:43:28.6944192Z2021-04-15T16:43:26.4945316Z00000sb://servicebustest7eewws4lfm.servicebus.windows.net/dfklaP10675199DT2H48M5.4775807SAvailable + xmlns:i="http://www.w3.org/2001/XMLSchema-instance">PT12SfalsePT11Mtruetrue014trueActivesb://servicebustestskjauwsb3z.servicebus.windows.net/dfkla2021-04-22T15:02:41.9344853Z2021-04-22T15:02:44.3719549Z2021-04-22T15:02:41.9344853Z00000sb://servicebustestskjauwsb3z.servicebus.windows.net/dfklaP10675199DT2H48M5.4775807SAvailable headers: content-type: - application/atom+xml;type=entry;charset=utf-8 date: - - Thu, 15 Apr 2021 16:43:28 GMT + - Thu, 22 Apr 2021 15:02:44 GMT etag: - - '637541018058400000' + - '637547005612600000' server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -497,7 +497,7 @@ interactions: PT12SfalsePT11Mtruetrue014trueActive2021-04-15T16:43:26.494531Z2021-04-15T16:43:28.694419Z2021-04-15T16:43:26.494531Z00000P10675199DT2H48M5.477539SAvailable' + type="application/xml">PT12SfalsePT11Mtruetrue014trueActive2021-04-22T15:02:41.934485Z2021-04-22T15:02:44.371954Z2021-04-22T15:02:41.934485Z00000P10675199DT2H48M5.477539SAvailable' headers: Accept: - application/xml @@ -517,18 +517,18 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04 response: body: - string: https://servicebustest7eewws4lfm.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04eqkovc2021-04-15T16:43:29Z2021-04-15T16:43:29Zhttps://servicebustestskjauwsb3z.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04eqkovc2021-04-22T15:02:44Z2021-04-22T15:02:44ZPT12SfalsePT11Mtruetrue014trueActive2021-04-15T16:43:29.2182957Z2021-04-15T16:43:29.2182957Z0001-01-01T00:00:00P10675199DT2H48M5.477539SAvailable + xmlns:i="http://www.w3.org/2001/XMLSchema-instance">PT12SfalsePT11Mtruetrue014trueActive2021-04-22T15:02:44.9376476Z2021-04-22T15:02:44.9376476Z0001-01-01T00:00:00P10675199DT2H48M5.477539SAvailable headers: content-type: - application/atom+xml;type=entry;charset=utf-8 date: - - Thu, 15 Apr 2021 16:43:28 GMT + - Thu, 22 Apr 2021 15:02:44 GMT etag: - - '637541018058400000' + - '637547005612600000' server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -553,19 +553,19 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjrui/subscriptions/eqkovc?enrich=false&api-version=2017-04 response: body: - string: sb://servicebustest7eewws4lfm.servicebus.windows.net/fjrui/subscriptions/eqkovc?enrich=false&api-version=2017-04eqkovc2021-04-15T16:43:26Z2021-04-15T16:43:29Zsb://servicebustestskjauwsb3z.servicebus.windows.net/fjrui/subscriptions/eqkovc?enrich=false&api-version=2017-04eqkovc2021-04-22T15:02:41Z2021-04-22T15:02:44ZPT12SfalsePT11Mtruetrue014trueActive2021-04-15T16:43:26.4945316Z2021-04-15T16:43:29.225702Z2021-04-15T16:43:26.4945316ZPT12SfalsePT11Mtruetrue014trueActive2021-04-22T15:02:41.9344853Z2021-04-22T15:02:44.9500921Z2021-04-22T15:02:41.9344853Z00000P10675199DT2H48M5.477539SAvailable headers: content-type: - application/atom+xml;type=entry;charset=utf-8 date: - - Thu, 15 Apr 2021 16:43:29 GMT + - Thu, 22 Apr 2021 15:02:45 GMT etag: - - '637541018058400000' + - '637547005612600000' server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -580,7 +580,7 @@ interactions: PT3M3SfalsePT11M2Struetrue014trueActive2021-04-15T16:43:26.494531Z2021-04-15T16:43:29.225702Z2021-04-15T16:43:26.494531Z00000PT10M1SAvailable' + type="application/xml">PT3M3SfalsePT11M2Struetrue014trueActive2021-04-22T15:02:41.934485Z2021-04-22T15:02:44.950092Z2021-04-22T15:02:41.934485Z00000PT10M1SAvailable' headers: Accept: - application/xml @@ -600,18 +600,18 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04 response: body: - string: https://servicebustest7eewws4lfm.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04eqkovc2021-04-15T16:43:29Z2021-04-15T16:43:29Zhttps://servicebustestskjauwsb3z.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04eqkovc2021-04-22T15:02:45Z2021-04-22T15:02:45ZPT3M3SfalsePT11M2Struetrue014trueActive2021-04-15T16:43:29.7808002Z2021-04-15T16:43:29.7808002Z0001-01-01T00:00:00PT10M1SAvailable + xmlns:i="http://www.w3.org/2001/XMLSchema-instance">PT3M3SfalsePT11M2Struetrue014trueActive2021-04-22T15:02:45.4844637Z2021-04-22T15:02:45.4844637Z0001-01-01T00:00:00PT10M1SAvailable headers: content-type: - application/atom+xml;type=entry;charset=utf-8 date: - - Thu, 15 Apr 2021 16:43:29 GMT + - Thu, 22 Apr 2021 15:02:45 GMT etag: - - '637541018058400000' + - '637547005612600000' server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -636,19 +636,102 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjrui/subscriptions/eqkovc?enrich=false&api-version=2017-04 response: body: - string: sb://servicebustest7eewws4lfm.servicebus.windows.net/fjrui/subscriptions/eqkovc?enrich=false&api-version=2017-04eqkovc2021-04-15T16:43:26Z2021-04-15T16:43:29Zsb://servicebustestskjauwsb3z.servicebus.windows.net/fjrui/subscriptions/eqkovc?enrich=false&api-version=2017-04eqkovc2021-04-22T15:02:41Z2021-04-22T15:02:45ZPT3M3SfalsePT11M2Struetrue014trueActive2021-04-15T16:43:26.4945316Z2021-04-15T16:43:29.788181Z2021-04-15T16:43:26.4945316ZPT3M3SfalsePT11M2Struetrue014trueActive2021-04-22T15:02:41.9344853Z2021-04-22T15:02:45.4813476Z2021-04-22T15:02:41.9344853Z00000PT10M1SAvailable headers: content-type: - application/atom+xml;type=entry;charset=utf-8 date: - - Thu, 15 Apr 2021 16:43:29 GMT + - Thu, 22 Apr 2021 15:02:45 GMT etag: - - '637541018058400000' + - '637547005612600000' + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000 + transfer-encoding: + - chunked + status: + code: 200 + message: OK +- request: + body: ' + + PT17SfalsePT16Mfalsetrue015trueActive2021-04-22T15:02:41.934485Z2021-04-22T15:02:45.481347Z2021-04-22T15:02:41.934485Z00000PT15MAvailable' + headers: + Accept: + - application/xml + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '1383' + Content-Type: + - application/atom+xml + If-Match: + - '*' + User-Agent: + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.9 (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://servicebustestskjauwsb3z.servicebus.windows.net/fjrui/subscriptions/eqkovc?api-version=2017-04eqkovc2021-04-22T15:02:46Z2021-04-22T15:02:46ZPT17SfalsePT16Mfalsetrue015trueActive2021-04-22T15:02:46.0001018Z2021-04-22T15:02:46.0001018Z0001-01-01T00:00:00PT15MAvailable + headers: + content-type: + - application/atom+xml;type=entry;charset=utf-8 + date: + - Thu, 22 Apr 2021 15:02:45 GMT + etag: + - '637547005612600000' + 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.9 (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://servicebustestskjauwsb3z.servicebus.windows.net/fjrui/subscriptions/eqkovc?enrich=false&api-version=2017-04eqkovc2021-04-22T15:02:41Z2021-04-22T15:02:46ZPT17SfalsePT16Mfalsetrue015trueActive2021-04-22T15:02:41.9344853Z2021-04-22T15:02:46.0126234Z2021-04-22T15:02:41.9344853Z00000PT15MAvailable + headers: + content-type: + - application/atom+xml;type=entry;charset=utf-8 + date: + - Thu, 22 Apr 2021 15:02:46 GMT + etag: + - '637547005612600000' server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -680,9 +763,9 @@ interactions: content-length: - '0' date: - - Thu, 15 Apr 2021 16:43:29 GMT + - Thu, 22 Apr 2021 15:02:46 GMT etag: - - '637541018058400000' + - '637547005612600000' server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -712,9 +795,9 @@ interactions: content-length: - '0' date: - - Thu, 15 Apr 2021 16:43:30 GMT + - Thu, 22 Apr 2021 15:02:47 GMT etag: - - '637541018058400000' + - '637547005612600000' server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -744,9 +827,9 @@ interactions: content-length: - '0' date: - - Thu, 15 Apr 2021 16:43:31 GMT + - Thu, 22 Apr 2021 15:02:47 GMT etag: - - '637541018046600000' + - '637547005600900000' 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 111aa9c7038e..c8ca6b41ba55 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 @@ -9,18 +9,18 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.9 (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://servicebustestrzdukahnat.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-042021-03-02T19:52:15Z + string: Topicshttps://servicebustest5xccvzoibz.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-042021-04-22T14:45:40Z headers: content-type: - application/atom+xml;type=feed;charset=utf-8 date: - - Tue, 02 Mar 2021 19:52:15 GMT + - Thu, 22 Apr 2021 14:45:40 GMT server: - Microsoft-HTTPAPI/2.0 transfer-encoding: @@ -45,21 +45,21 @@ interactions: Content-Type: - application/atom+xml User-Agent: - - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: PUT uri: https://servicebustestsbname.servicebus.windows.net/fjruid?api-version=2017-04 response: body: - string: https://servicebustestrzdukahnat.servicebus.windows.net/fjruid?api-version=2017-04fjruid2021-03-02T19:52:15Z2021-03-02T19:52:15Zservicebustestrzdukahnathttps://servicebustest5xccvzoibz.servicebus.windows.net/fjruid?api-version=2017-04fjruid2021-04-22T14:45:41Z2021-04-22T14:45:41Zservicebustest5xccvzoibzP10675199DT2H48M5.4775807S1024falsePT10Mtrue0falsefalseActive2021-03-02T19:52:15.907Z2021-03-02T19:52:15.957ZtrueP10675199DT2H48M5.4775807SfalseAvailablefalsefalse + xmlns:i="http://www.w3.org/2001/XMLSchema-instance">P10675199DT2H48M5.4775807S1024falsePT10Mtrue0falsefalseActive2021-04-22T14:45:41.447Z2021-04-22T14:45:41.48ZtrueP10675199DT2H48M5.4775807SfalseAvailablefalsefalse headers: content-type: - application/atom+xml;type=entry;charset=utf-8 date: - - Tue, 02 Mar 2021 19:52:15 GMT + - Thu, 22 Apr 2021 14:45:41 GMT server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -89,23 +89,23 @@ interactions: If-Match: - '*' User-Agent: - - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: PUT uri: https://servicebustestsbname.servicebus.windows.net/fjruid?api-version=2017-04 response: body: - string: https://servicebustestrzdukahnat.servicebus.windows.net/fjruid?api-version=2017-04fjruid2021-03-02T19:52:16Zservicebustestrzdukahnathttps://servicebustest5xccvzoibz.servicebus.windows.net/fjruid?api-version=2017-04fjruid2021-04-22T14:45:42Zservicebustest5xccvzoibzPT2M1024falsePT10Mtrue0ActivetrueP10675199DT2H48M5.477539SfalseAvailablefalse headers: content-type: - application/atom+xml;type=entry;charset=utf-8 date: - - Tue, 02 Mar 2021 19:52:16 GMT + - Thu, 22 Apr 2021 14:45:41 GMT etag: - - '637503115359570000' + - '637546995414800000' server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -125,24 +125,24 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.9 (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://servicebustestrzdukahnat.servicebus.windows.net/fjruid?enrich=false&api-version=2017-04fjruid2021-03-02T19:52:15Z2021-03-02T19:52:16Zservicebustestrzdukahnathttps://servicebustest5xccvzoibz.servicebus.windows.net/fjruid?enrich=false&api-version=2017-04fjruid2021-04-22T14:45:41Z2021-04-22T14:45:42Zservicebustest5xccvzoibzPT2M1024falsePT10Mtrue0falsefalseActive2021-03-02T19:52:15.907Z2021-03-02T19:52:16.49Z0001-01-01T00:00:00ZtruePT2M1024falsePT10Mtrue0falsefalseActive2021-04-22T14:45:41.447Z2021-04-22T14:45:42.17Z0001-01-01T00:00:00Ztrue000000P10675199DT2H48M5.477539SfalseAvailablefalsefalse headers: content-type: - application/atom+xml;type=entry;charset=utf-8 date: - - Tue, 02 Mar 2021 19:52:16 GMT + - Thu, 22 Apr 2021 14:45:42 GMT etag: - - '637503115364900000' + - '637546995421700000' server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -172,23 +172,23 @@ interactions: If-Match: - '*' User-Agent: - - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: PUT uri: https://servicebustestsbname.servicebus.windows.net/fjruid?api-version=2017-04 response: body: - string: https://servicebustestrzdukahnat.servicebus.windows.net/fjruid?api-version=2017-04fjruid2021-03-02T19:52:16Zservicebustestrzdukahnathttps://servicebustest5xccvzoibz.servicebus.windows.net/fjruid?api-version=2017-04fjruid2021-04-22T14:45:42Zservicebustest5xccvzoibzPT11M3072falsePT12Mtrue0ActivetruePT10MfalseAvailabletrue headers: content-type: - application/atom+xml;type=entry;charset=utf-8 date: - - Tue, 02 Mar 2021 19:52:16 GMT + - Thu, 22 Apr 2021 14:45:42 GMT etag: - - '637503115364900000' + - '637546995421700000' server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -208,24 +208,107 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.9 (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://servicebustestrzdukahnat.servicebus.windows.net/fjruid?enrich=false&api-version=2017-04fjruid2021-03-02T19:52:15Z2021-03-02T19:52:16Zservicebustestrzdukahnathttps://servicebustest5xccvzoibz.servicebus.windows.net/fjruid?enrich=false&api-version=2017-04fjruid2021-04-22T14:45:41Z2021-04-22T14:45:42Zservicebustest5xccvzoibzPT11M3072falsePT12Mtrue0falsefalseActive2021-03-02T19:52:15.907Z2021-03-02T19:52:16.947Z0001-01-01T00:00:00ZtruePT11M3072falsePT12Mtrue0falsefalseActive2021-04-22T14:45:41.447Z2021-04-22T14:45:42.717Z0001-01-01T00:00:00Ztrue000000PT10MfalseAvailablefalsetrue headers: content-type: - application/atom+xml;type=entry;charset=utf-8 date: - - Tue, 02 Mar 2021 19:52:16 GMT + - Thu, 22 Apr 2021 14:45:42 GMT etag: - - '637503115369470000' + - '637546995427170000' + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000 + transfer-encoding: + - chunked + status: + code: 200 + message: OK +- request: + body: ' + + PT15M2048falsePT16Mfalse0ActivefalsePT14MfalseAvailablefalse' + headers: + Accept: + - application/xml + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '865' + Content-Type: + - application/atom+xml + If-Match: + - '*' + User-Agent: + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.9 (Windows-10-10.0.19041-SP0) + method: PUT + uri: https://servicebustestsbname.servicebus.windows.net/fjruid?api-version=2017-04 + response: + body: + string: https://servicebustest5xccvzoibz.servicebus.windows.net/fjruid?api-version=2017-04fjruid2021-04-22T14:45:43Zservicebustest5xccvzoibzPT15M2048falsePT16Mfalse0ActivefalsePT14MfalseAvailablefalse + headers: + content-type: + - application/atom+xml;type=entry;charset=utf-8 + date: + - Thu, 22 Apr 2021 14:45:42 GMT + etag: + - '637546995427170000' + 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.9 (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://servicebustest5xccvzoibz.servicebus.windows.net/fjruid?enrich=false&api-version=2017-04fjruid2021-04-22T14:45:41Z2021-04-22T14:45:43Zservicebustest5xccvzoibzPT15M2048falsePT16Mfalse0falsefalseActive2021-04-22T14:45:41.447Z2021-04-22T14:45:43.307Z0001-01-01T00:00:00Zfalse000000PT14MfalseAvailablefalsefalse + headers: + content-type: + - application/atom+xml;type=entry;charset=utf-8 + date: + - Thu, 22 Apr 2021 14:45:43 GMT + etag: + - '637546995433070000' server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -247,7 +330,7 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: DELETE uri: https://servicebustestsbname.servicebus.windows.net/fjruid?api-version=2017-04 response: @@ -257,9 +340,9 @@ interactions: content-length: - '0' date: - - Tue, 02 Mar 2021 19:52:17 GMT + - Thu, 22 Apr 2021 14:45:44 GMT etag: - - '637503115369470000' + - '637546995433070000' 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_success.yaml b/sdk/servicebus/azure-servicebus/tests/mgmt_tests/recordings/test_mgmt_topics.test_mgmt_topic_update_success.yaml index 0b4b083c5848..ac87b0b32eb1 100644 --- a/sdk/servicebus/azure-servicebus/tests/mgmt_tests/recordings/test_mgmt_topics.test_mgmt_topic_update_success.yaml +++ b/sdk/servicebus/azure-servicebus/tests/mgmt_tests/recordings/test_mgmt_topics.test_mgmt_topic_update_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://servicebustestbyp6d4w4js.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-042021-04-15T16:38:24Z + string: Topicshttps://servicebustestosez4o2u7d.servicebus.windows.net/$Resources/topics?$skip=0&$top=100&api-version=2017-042021-04-22T14:40:20Z headers: content-type: - application/atom+xml;type=feed;charset=utf-8 date: - - Thu, 15 Apr 2021 16:38:23 GMT + - Thu, 22 Apr 2021 14:40:19 GMT server: - Microsoft-HTTPAPI/2.0 transfer-encoding: @@ -50,16 +50,16 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjrui?api-version=2017-04 response: body: - string: https://servicebustestbyp6d4w4js.servicebus.windows.net/fjrui?api-version=2017-04fjrui2021-04-15T16:38:24Z2021-04-15T16:38:24Zservicebustestbyp6d4w4jshttps://servicebustestosez4o2u7d.servicebus.windows.net/fjrui?api-version=2017-04fjrui2021-04-22T14:40:20Z2021-04-22T14:40:20Zservicebustestosez4o2u7dP10675199DT2H48M5.4775807S1024falsePT10Mtrue0falsefalseActive2021-04-15T16:38:24.813Z2021-04-15T16:38:24.937ZtrueP10675199DT2H48M5.4775807SfalseAvailablefalsefalse + xmlns:i="http://www.w3.org/2001/XMLSchema-instance">P10675199DT2H48M5.4775807S1024falsePT10Mtrue0falsefalseActive2021-04-22T14:40:20.72Z2021-04-22T14:40:20.787ZtrueP10675199DT2H48M5.4775807SfalseAvailablefalsefalse headers: content-type: - application/atom+xml;type=entry;charset=utf-8 date: - - Thu, 15 Apr 2021 16:38:24 GMT + - Thu, 22 Apr 2021 14:40:20 GMT server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -74,7 +74,7 @@ interactions: PT2M1024falsePT10Mtrue0falsefalseActive2021-04-15T16:38:24.813Z2021-04-15T16:38:24.937ZtrueP10675199DT2H48M5.477539SfalseAvailablefalsefalse' + />Active2021-04-22T14:40:20.720Z2021-04-22T14:40:20.787ZtrueP10675199DT2H48M5.477539SfalseAvailablefalsefalse' headers: Accept: - application/xml @@ -94,18 +94,18 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjrui?api-version=2017-04 response: body: - string: https://servicebustestbyp6d4w4js.servicebus.windows.net/fjrui?api-version=2017-04fjrui2021-04-15T16:38:25Zservicebustestbyp6d4w4jshttps://servicebustestosez4o2u7d.servicebus.windows.net/fjrui?api-version=2017-04fjrui2021-04-22T14:40:21Zservicebustestosez4o2u7dPT2M1024falsePT10Mtrue0falsefalseActive2021-04-15T16:38:24.813Z2021-04-15T16:38:24.937ZtrueP10675199DT2H48M5.477539SfalseAvailablefalsefalse + xmlns:i="http://www.w3.org/2001/XMLSchema-instance">PT2M1024falsePT10Mtrue0falsefalseActive2021-04-22T14:40:20.72Z2021-04-22T14:40:20.787ZtrueP10675199DT2H48M5.477539SfalseAvailablefalsefalse headers: content-type: - application/atom+xml;type=entry;charset=utf-8 date: - - Thu, 15 Apr 2021 16:38:25 GMT + - Thu, 22 Apr 2021 14:40:21 GMT etag: - - '637541015049370000' + - '637546992207870000' server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -130,19 +130,19 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjrui?enrich=false&api-version=2017-04 response: body: - string: https://servicebustestbyp6d4w4js.servicebus.windows.net/fjrui?enrich=false&api-version=2017-04fjrui2021-04-15T16:38:24Z2021-04-15T16:38:25Zservicebustestbyp6d4w4jshttps://servicebustestosez4o2u7d.servicebus.windows.net/fjrui?enrich=false&api-version=2017-04fjrui2021-04-22T14:40:20Z2021-04-22T14:40:21Zservicebustestosez4o2u7dPT2M1024falsePT10Mtrue0falsefalseActive2021-04-15T16:38:24.813Z2021-04-15T16:38:25.67Z0001-01-01T00:00:00ZtruePT2M1024falsePT10Mtrue0falsefalseActive2021-04-22T14:40:20.72Z2021-04-22T14:40:21.46Z0001-01-01T00:00:00Ztrue000000P10675199DT2H48M5.477539SfalseAvailablefalsefalse headers: content-type: - application/atom+xml;type=entry;charset=utf-8 date: - - Thu, 15 Apr 2021 16:38:25 GMT + - Thu, 22 Apr 2021 14:40:21 GMT etag: - - '637541015056700000' + - '637546992214600000' server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -158,7 +158,7 @@ interactions: PT11M3072falsePT12Mtrue0falsefalseActive2021-04-15T16:38:24.813Z2021-04-15T16:38:25.670Z0001-01-01T00:00:00.000Ztrue000000PT10MfalseAvailablefalsetrue' + />Active2021-04-22T14:40:20.720Z2021-04-22T14:40:21.460Z0001-01-01T00:00:00.000Ztrue000000PT10MfalseAvailablefalsetrue' headers: Accept: - application/xml @@ -178,19 +178,19 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjrui?api-version=2017-04 response: body: - string: https://servicebustestbyp6d4w4js.servicebus.windows.net/fjrui?api-version=2017-04fjrui2021-04-15T16:38:26Zservicebustestbyp6d4w4jshttps://servicebustestosez4o2u7d.servicebus.windows.net/fjrui?api-version=2017-04fjrui2021-04-22T14:40:22Zservicebustestosez4o2u7dPT11M3072falsePT12Mtrue0falsefalseActive2021-04-15T16:38:24.813Z2021-04-15T16:38:25.67Z0001-01-01T00:00:00ZtruePT11M3072falsePT12Mtrue0falsefalseActive2021-04-22T14:40:20.72Z2021-04-22T14:40:21.46Z0001-01-01T00:00:00Ztrue000000PT10MfalseAvailablefalsetrue headers: content-type: - application/atom+xml;type=entry;charset=utf-8 date: - - Thu, 15 Apr 2021 16:38:25 GMT + - Thu, 22 Apr 2021 14:40:21 GMT etag: - - '637541015056700000' + - '637546992214600000' server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -215,19 +215,19 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjrui?enrich=false&api-version=2017-04 response: body: - string: https://servicebustestbyp6d4w4js.servicebus.windows.net/fjrui?enrich=false&api-version=2017-04fjrui2021-04-15T16:38:24Z2021-04-15T16:38:26Zservicebustestbyp6d4w4jshttps://servicebustestosez4o2u7d.servicebus.windows.net/fjrui?enrich=false&api-version=2017-04fjrui2021-04-22T14:40:20Z2021-04-22T14:40:21Zservicebustestosez4o2u7dPT11M3072falsePT12Mtrue0falsefalseActive2021-04-15T16:38:24.813Z2021-04-15T16:38:26.23Z0001-01-01T00:00:00ZtruePT11M3072falsePT12Mtrue0falsefalseActive2021-04-22T14:40:20.72Z2021-04-22T14:40:21.99Z0001-01-01T00:00:00Ztrue000000PT10MfalseAvailablefalsetrue headers: content-type: - application/atom+xml;type=entry;charset=utf-8 date: - - Thu, 15 Apr 2021 16:38:26 GMT + - Thu, 22 Apr 2021 14:40:22 GMT etag: - - '637541015062300000' + - '637546992219900000' server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -243,7 +243,7 @@ interactions: PT11M2S3072falsePT12M3Strue0falsefalseActive2021-04-15T16:38:24.813Z2021-04-15T16:38:26.230Z0001-01-01T00:00:00.000Ztrue000000PT10M1SfalseAvailablefalsetrue' + />Active2021-04-22T14:40:20.720Z2021-04-22T14:40:21.990Z0001-01-01T00:00:00.000Ztrue000000PT10M1SfalseAvailablefalsetrue' headers: Accept: - application/xml @@ -263,19 +263,19 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjrui?api-version=2017-04 response: body: - string: https://servicebustestbyp6d4w4js.servicebus.windows.net/fjrui?api-version=2017-04fjrui2021-04-15T16:38:26Zservicebustestbyp6d4w4jshttps://servicebustestosez4o2u7d.servicebus.windows.net/fjrui?api-version=2017-04fjrui2021-04-22T14:40:22Zservicebustestosez4o2u7dPT11M2S3072falsePT12M3Strue0falsefalseActive2021-04-15T16:38:24.813Z2021-04-15T16:38:26.23Z0001-01-01T00:00:00ZtruePT11M2S3072falsePT12M3Strue0falsefalseActive2021-04-22T14:40:20.72Z2021-04-22T14:40:21.99Z0001-01-01T00:00:00Ztrue000000PT10M1SfalseAvailablefalsetrue headers: content-type: - application/atom+xml;type=entry;charset=utf-8 date: - - Thu, 15 Apr 2021 16:38:26 GMT + - Thu, 22 Apr 2021 14:40:22 GMT etag: - - '637541015062300000' + - '637546992219900000' server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -300,19 +300,104 @@ interactions: uri: https://servicebustestsbname.servicebus.windows.net/fjrui?enrich=false&api-version=2017-04 response: body: - string: https://servicebustestbyp6d4w4js.servicebus.windows.net/fjrui?enrich=false&api-version=2017-04fjrui2021-04-15T16:38:24Z2021-04-15T16:38:26Zservicebustestbyp6d4w4jshttps://servicebustestosez4o2u7d.servicebus.windows.net/fjrui?enrich=false&api-version=2017-04fjrui2021-04-22T14:40:20Z2021-04-22T14:40:22Zservicebustestosez4o2u7dPT11M2S3072falsePT12M3Strue0falsefalseActive2021-04-15T16:38:24.813Z2021-04-15T16:38:26.76Z0001-01-01T00:00:00ZtruePT11M2S3072falsePT12M3Strue0falsefalseActive2021-04-22T14:40:20.72Z2021-04-22T14:40:22.517Z0001-01-01T00:00:00Ztrue000000PT10M1SfalseAvailablefalsetrue headers: content-type: - application/atom+xml;type=entry;charset=utf-8 date: - - Thu, 15 Apr 2021 16:38:26 GMT + - Thu, 22 Apr 2021 14:40:22 GMT etag: - - '637541015067600000' + - '637546992225170000' + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000 + transfer-encoding: + - chunked + status: + code: 200 + message: OK +- request: + body: ' + + PT15M2048falsePT16Mfalse0falsefalseActive2021-04-22T14:40:20.720Z2021-04-22T14:40:22.517Z0001-01-01T00:00:00.000Zfalse000000PT14MfalseAvailablefalsefalse' + headers: + Accept: + - application/xml + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '1650' + Content-Type: + - application/atom+xml + If-Match: + - '*' + User-Agent: + - azsdk-python-servicebusmanagementclient/2017-04 Python/3.7.9 (Windows-10-10.0.19041-SP0) + method: PUT + uri: https://servicebustestsbname.servicebus.windows.net/fjrui?api-version=2017-04 + response: + body: + string: https://servicebustestosez4o2u7d.servicebus.windows.net/fjrui?api-version=2017-04fjrui2021-04-22T14:40:23Zservicebustestosez4o2u7dPT15M2048falsePT16Mfalse0falsefalseActive2021-04-22T14:40:20.72Z2021-04-22T14:40:22.517Z0001-01-01T00:00:00Zfalse000000PT14MfalseAvailablefalsefalse + headers: + content-type: + - application/atom+xml;type=entry;charset=utf-8 + date: + - Thu, 22 Apr 2021 14:40:22 GMT + etag: + - '637546992225170000' + 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.9 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://servicebustestsbname.servicebus.windows.net/fjrui?enrich=false&api-version=2017-04 + response: + body: + string: https://servicebustestosez4o2u7d.servicebus.windows.net/fjrui?enrich=false&api-version=2017-04fjrui2021-04-22T14:40:20Z2021-04-22T14:40:23Zservicebustestosez4o2u7dPT15M2048falsePT16Mfalse0falsefalseActive2021-04-22T14:40:20.72Z2021-04-22T14:40:23.067Z0001-01-01T00:00:00Zfalse000000PT14MfalseAvailablefalsefalse + headers: + content-type: + - application/atom+xml;type=entry;charset=utf-8 + date: + - Thu, 22 Apr 2021 14:40:23 GMT + etag: + - '637546992230670000' server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -344,9 +429,9 @@ interactions: content-length: - '0' date: - - Thu, 15 Apr 2021 16:38:27 GMT + - Thu, 22 Apr 2021 14:40:23 GMT etag: - - '637541015067600000' + - '637546992230670000' server: - Microsoft-HTTPAPI/2.0 strict-transport-security: 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 d22b15ac62e5..014e3b3e9c51 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 @@ -412,6 +412,39 @@ def test_mgmt_queue_update_success(self, servicebus_namespace_connection_string, assert queue_description.auto_delete_on_idle == datetime.timedelta(minutes=10, seconds=1) assert queue_description.default_message_time_to_live == datetime.timedelta(minutes=11, seconds=2) assert queue_description.duplicate_detection_history_time_window == datetime.timedelta(minutes=12, seconds=3) + + # updating all settings with keyword arguments. + mgmt_service.update_queue( + queue_description, + auto_delete_on_idle=datetime.timedelta(minutes=15), + dead_lettering_on_message_expiration=False, + default_message_time_to_live=datetime.timedelta(minutes=16), + duplicate_detection_history_time_window=datetime.timedelta(minutes=17), + enable_batched_operations=False, + enable_express=False, + lock_duration=datetime.timedelta(seconds=18), + max_delivery_count=15, + max_size_in_megabytes=2048, + forward_to=None, + forward_dead_lettered_messages_to=None + ) + queue_description = mgmt_service.get_queue(queue_name) + assert queue_description.auto_delete_on_idle == datetime.timedelta(minutes=15) + assert queue_description.dead_lettering_on_message_expiration == False + assert queue_description.default_message_time_to_live == datetime.timedelta(minutes=16) + assert queue_description.duplicate_detection_history_time_window == datetime.timedelta(minutes=17) + assert queue_description.enable_batched_operations == False + assert queue_description.enable_express == False + #assert queue_description.enable_partitioning == True + assert queue_description.lock_duration == datetime.timedelta(seconds=18) + assert queue_description.max_delivery_count == 15 + assert queue_description.max_size_in_megabytes == 2048 + # 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 == None + assert queue_description.forward_dead_lettered_messages_to == None + #assert queue_description.requires_duplicate_detection == True + #assert queue_description.requires_session == True + finally: mgmt_service.delete_queue(queue_name) mgmt_service.delete_topic(topic_name) @@ -603,6 +636,39 @@ def test_mgmt_queue_update_dict_success(self, servicebus_namespace_connection_st 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 + + # updating all settings with keyword arguments. + mgmt_service.update_queue( + dict(queue_description), + auto_delete_on_idle=datetime.timedelta(minutes=15), + dead_lettering_on_message_expiration=False, + default_message_time_to_live=datetime.timedelta(minutes=16), + duplicate_detection_history_time_window=datetime.timedelta(minutes=17), + enable_batched_operations=False, + enable_express=False, + lock_duration=datetime.timedelta(seconds=18), + max_delivery_count=15, + max_size_in_megabytes=2048, + forward_to=None, + forward_dead_lettered_messages_to=None + ) + queue_description = mgmt_service.get_queue(queue_name) + assert queue_description.auto_delete_on_idle == datetime.timedelta(minutes=15) + assert queue_description.dead_lettering_on_message_expiration == False + assert queue_description.default_message_time_to_live == datetime.timedelta(minutes=16) + assert queue_description.duplicate_detection_history_time_window == datetime.timedelta(minutes=17) + assert queue_description.enable_batched_operations == False + assert queue_description.enable_express == False + #assert queue_description.enable_partitioning == True + assert queue_description.lock_duration == datetime.timedelta(seconds=18) + assert queue_description.max_delivery_count == 15 + assert queue_description.max_size_in_megabytes == 2048 + # 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 == None + assert queue_description.forward_dead_lettered_messages_to == None + #assert queue_description.requires_duplicate_detection == True + #assert queue_description.requires_session == True + 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 43733b2f21a0..93914a98d546 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 @@ -167,6 +167,19 @@ def test_mgmt_rule_update_success(self, servicebus_namespace_connection_string, assert rule_desc.filter.correlation_id == 'testcid' assert rule_desc.action.sql_expression == "SET Priority = 'low'" + mgmt_service.update_rule( + topic_description.name, + subscription_description.name, + rule_desc, + filter=CorrelationRuleFilter(correlation_id='updatedcid'), + action=None + ) + + rule_desc = mgmt_service.get_rule(topic_name, subscription_name, rule_name) + assert type(rule_desc.filter) == CorrelationRuleFilter + assert rule_desc.filter.correlation_id == 'updatedcid' + assert rule_desc.action == None + finally: mgmt_service.delete_rule(topic_name, subscription_name, rule_name) mgmt_service.delete_subscription(topic_name, subscription_name) @@ -301,6 +314,19 @@ def test_mgmt_rule_update_dict_success(self, servicebus_namespace_connection_str assert rule_desc.filter.correlation_id == 'testcid' assert rule_desc.action.sql_expression == "SET Priority = 'low'" + mgmt_service.update_rule( + topic_description.name, + subscription_description.name, + dict(rule_desc), + filter=CorrelationRuleFilter(correlation_id='updatedcid'), + action=None + ) + + rule_desc = mgmt_service.get_rule(topic_name, subscription_name, rule_name) + assert type(rule_desc.filter) == CorrelationRuleFilter + assert rule_desc.filter.correlation_id == 'updatedcid' + assert rule_desc.action == None + finally: mgmt_service.delete_rule(topic_name, subscription_name, rule_name) mgmt_service.delete_subscription(topic_name, subscription_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 1c1e7bab5b7c..b31a9a882c75 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 @@ -220,6 +220,28 @@ def test_mgmt_subscription_update_success(self, servicebus_namespace_connection_ assert subscription_description.default_message_time_to_live == datetime.timedelta(minutes=11, seconds=2) assert subscription_description.lock_duration == datetime.timedelta(minutes=3, seconds=3) + # updating all settings with keyword arguments. + mgmt_service.update_subscription( + topic_description.name, + subscription_description, + auto_delete_on_idle = datetime.timedelta(minutes=15), + dead_lettering_on_message_expiration=False, + default_message_time_to_live=datetime.timedelta(minutes=16), + lock_duration=datetime.timedelta(seconds=17), + max_delivery_count=15, + forward_to=None, + forward_dead_lettered_messages_to=None + ) + + subscription_description = mgmt_service.get_subscription(topic_description.name, subscription_name) + + assert subscription_description.auto_delete_on_idle == datetime.timedelta(minutes=15) + assert subscription_description.dead_lettering_on_message_expiration == False + assert subscription_description.default_message_time_to_live == datetime.timedelta(minutes=16) + assert subscription_description.max_delivery_count == 15 + assert subscription_description.lock_duration == datetime.timedelta(seconds=17) + assert subscription_description.forward_to == None + assert subscription_description.forward_dead_lettered_messages_to == None finally: mgmt_service.delete_subscription(topic_name, subscription_name) mgmt_service.delete_topic(topic_name) @@ -438,6 +460,29 @@ def test_mgmt_subscription_update_dict_success(self, servicebus_namespace_connec 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)) + # updating all settings with keyword arguments. + mgmt_service.update_subscription( + topic_description.name, + dict(subscription_description), + auto_delete_on_idle=datetime.timedelta(minutes=15), + dead_lettering_on_message_expiration=False, + default_message_time_to_live=datetime.timedelta(minutes=16), + lock_duration=datetime.timedelta(seconds=17), + max_delivery_count=15, + forward_to=None, + forward_dead_lettered_messages_to=None + ) + + subscription_description = mgmt_service.get_subscription(topic_description.name, subscription_name) + + assert subscription_description.auto_delete_on_idle == datetime.timedelta(minutes=15) + assert subscription_description.dead_lettering_on_message_expiration == False + assert subscription_description.default_message_time_to_live == datetime.timedelta(minutes=16) + assert subscription_description.max_delivery_count == 15 + assert subscription_description.lock_duration == datetime.timedelta(seconds=17) + assert subscription_description.forward_to == None + assert subscription_description.forward_dead_lettered_messages_to == None + 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 6d85e8674591..9e9bfbb7da05 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 @@ -157,6 +157,29 @@ def test_mgmt_topic_update_success(self, servicebus_namespace_connection_string, assert topic_description.default_message_time_to_live == datetime.timedelta(minutes=11, seconds=2) assert topic_description.duplicate_detection_history_time_window == datetime.timedelta(minutes=12, seconds=3) + # updating all settings with keyword arguments. + mgmt_service.update_topic( + topic_description, + auto_delete_on_idle=datetime.timedelta(minutes=14), + default_message_time_to_live=datetime.timedelta(minutes=15), + duplicate_detection_history_time_window=datetime.timedelta(minutes=16), + enable_batched_operations=False, + enable_express=False, + max_size_in_megabytes=2048, + support_ordering=False + ) + topic_description = mgmt_service.get_topic(topic_name) + + assert topic_description.auto_delete_on_idle == datetime.timedelta(minutes=14) + assert topic_description.default_message_time_to_live == datetime.timedelta(minutes=15) + assert topic_description.duplicate_detection_history_time_window == datetime.timedelta(minutes=16) + assert topic_description.enable_batched_operations == False + assert topic_description.enable_express == False + # assert topic_description.enable_partitioning == True + assert topic_description.max_size_in_megabytes == 2048 + # assert topic_description.requires_duplicate_detection == True + # assert topic_description.requires_session == True + assert topic_description.support_ordering == False finally: mgmt_service.delete_topic(topic_name) @@ -337,6 +360,31 @@ def test_mgmt_topic_update_dict_success(self, servicebus_namespace_connection_st # assert topic_description.requires_duplicate_detection == True # assert topic_description.requires_session == True assert topic_description.support_ordering == True + + # updating all settings with keyword arguments. + mgmt_service.update_topic( + dict(topic_description), + auto_delete_on_idle=datetime.timedelta(minutes=14), + default_message_time_to_live=datetime.timedelta(minutes=15), + duplicate_detection_history_time_window=datetime.timedelta(minutes=16), + enable_batched_operations=False, + enable_express=False, + max_size_in_megabytes=2048, + support_ordering=False + ) + topic_description = mgmt_service.get_topic(topic_name) + + assert topic_description.auto_delete_on_idle == datetime.timedelta(minutes=14) + assert topic_description.default_message_time_to_live == datetime.timedelta(minutes=15) + assert topic_description.duplicate_detection_history_time_window == datetime.timedelta(minutes=16) + assert topic_description.enable_batched_operations == False + assert topic_description.enable_express == False + # assert topic_description.enable_partitioning == True + assert topic_description.max_size_in_megabytes == 2048 + # assert topic_description.requires_duplicate_detection == True + # assert topic_description.requires_session == True + assert topic_description.support_ordering == False + finally: mgmt_service.delete_topic(topic_name) From 8d535cfddac24b02bda50d3e662b646c4b9e6220 Mon Sep 17 00:00:00 2001 From: "Adam Ling (MSFT)" Date: Thu, 22 Apr 2021 08:31:22 -0700 Subject: [PATCH 04/14] version bump, changelog update --- sdk/servicebus/azure-servicebus/CHANGELOG.md | 4 +++- sdk/servicebus/azure-servicebus/azure/servicebus/_version.py | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/sdk/servicebus/azure-servicebus/CHANGELOG.md b/sdk/servicebus/azure-servicebus/CHANGELOG.md index 687784764630..816a92f0334a 100644 --- a/sdk/servicebus/azure-servicebus/CHANGELOG.md +++ b/sdk/servicebus/azure-servicebus/CHANGELOG.md @@ -1,8 +1,10 @@ # Release History -## 7.1.2 (Unreleased) +## 7.2.0 (Unreleased) +**New Features** +* `ServiceBusAdministrationClient.update_*` methods now accept keyword arguments to override the properties specified in the model instance. ## 7.1.1 (2021-04-07) diff --git a/sdk/servicebus/azure-servicebus/azure/servicebus/_version.py b/sdk/servicebus/azure-servicebus/azure/servicebus/_version.py index 8f3b22b47f45..3bc87c4ae902 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.1.2" +VERSION = "7.2.0" From fd4f29b5ab30d2941d50e29d0c9a87d9b6a6ff8b Mon Sep 17 00:00:00 2001 From: "Adam Ling (MSFT)" Date: Thu, 22 Apr 2021 08:35:30 -0700 Subject: [PATCH 05/14] bug fix log --- sdk/servicebus/azure-servicebus/CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sdk/servicebus/azure-servicebus/CHANGELOG.md b/sdk/servicebus/azure-servicebus/CHANGELOG.md index 816a92f0334a..a6cee84b9911 100644 --- a/sdk/servicebus/azure-servicebus/CHANGELOG.md +++ b/sdk/servicebus/azure-servicebus/CHANGELOG.md @@ -6,6 +6,10 @@ * `ServiceBusAdministrationClient.update_*` methods now accept keyword arguments to override the properties specified in the model instance. +**Bug Fixes** + +* Fixed a bug that `update_queue` and `update_subscription` mutating the properties `forward_to` and `forward_dead_lettered_messages_to` of the model instance when those properties are entities instead of full paths. + ## 7.1.1 (2021-04-07) This version and all future versions will require Python 2.7 or Python 3.6+, Python 3.5 is no longer supported. From c54e4fd3f20bddeea4f0356365d44cb9d40a0010 Mon Sep 17 00:00:00 2001 From: "Adam Ling (MSFT)" Date: Thu, 22 Apr 2021 09:09:50 -0700 Subject: [PATCH 06/14] fix pylint --- .../azure-servicebus/azure/servicebus/management/_utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sdk/servicebus/azure-servicebus/azure/servicebus/management/_utils.py b/sdk/servicebus/azure-servicebus/azure/servicebus/management/_utils.py index 41f5d7f40301..94f5851d463d 100644 --- a/sdk/servicebus/azure-servicebus/azure/servicebus/management/_utils.py +++ b/sdk/servicebus/azure-servicebus/azure/servicebus/management/_utils.py @@ -374,6 +374,6 @@ def override_properties_with_keyword_arguments(properties, **kwargs): # type: (PropertiesType, Any) -> None if not kwargs: return - for key in kwargs.keys(): - if key in properties.keys(): + for key, _ in kwargs: + if key in properties: properties[key] = kwargs.get(key) From 5e06035497eba0e327618c68198935b7dd964ebf Mon Sep 17 00:00:00 2001 From: "Adam Ling (MSFT)" Date: Thu, 22 Apr 2021 11:08:17 -0700 Subject: [PATCH 07/14] fix pylint and mypy --- .../azure-servicebus/azure/servicebus/management/_utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sdk/servicebus/azure-servicebus/azure/servicebus/management/_utils.py b/sdk/servicebus/azure-servicebus/azure/servicebus/management/_utils.py index 94f5851d463d..19143ca063ec 100644 --- a/sdk/servicebus/azure-servicebus/azure/servicebus/management/_utils.py +++ b/sdk/servicebus/azure-servicebus/azure/servicebus/management/_utils.py @@ -374,6 +374,6 @@ def override_properties_with_keyword_arguments(properties, **kwargs): # type: (PropertiesType, Any) -> None if not kwargs: return - for key, _ in kwargs: - if key in properties: + for key, _ in kwargs.items(): + if key in properties.keys(): properties[key] = kwargs.get(key) From ae831d1b29134dc2dd44a63336d6c79a7136408e Mon Sep 17 00:00:00 2001 From: "Adam Ling (MSFT)" Date: Thu, 22 Apr 2021 12:19:35 -0700 Subject: [PATCH 08/14] pr review feedback --- sdk/servicebus/azure-servicebus/CHANGELOG.md | 3 ++- .../aio/management/_management_client_async.py | 13 +++++++++++++ .../servicebus/management/_management_client.py | 13 +++++++++++++ .../mgmt_tests/test_mgmt_queues_async.py | 1 + .../async_tests/mgmt_tests/test_mgmt_rules_async.py | 2 ++ .../mgmt_tests/test_mgmt_subscriptions_async.py | 1 + .../mgmt_tests/test_mgmt_topics_async.py | 2 ++ .../tests/mgmt_tests/test_mgmt_queues.py | 2 ++ .../tests/mgmt_tests/test_mgmt_rules.py | 2 ++ .../tests/mgmt_tests/test_mgmt_subscriptions.py | 2 ++ .../tests/mgmt_tests/test_mgmt_topics.py | 2 ++ 11 files changed, 42 insertions(+), 1 deletion(-) diff --git a/sdk/servicebus/azure-servicebus/CHANGELOG.md b/sdk/servicebus/azure-servicebus/CHANGELOG.md index a6cee84b9911..73ff718c77ef 100644 --- a/sdk/servicebus/azure-servicebus/CHANGELOG.md +++ b/sdk/servicebus/azure-servicebus/CHANGELOG.md @@ -8,7 +8,8 @@ **Bug Fixes** -* Fixed a bug that `update_queue` and `update_subscription` mutating the properties `forward_to` and `forward_dead_lettered_messages_to` of the model instance when those properties are entities instead of full paths. +* Fixed a bug where `update_queue` and `update_subscription` methods were mutating the properties `forward_to` and `forward_dead_lettered_messages_to` of + the model instance when those properties are entities instead of full paths. ## 7.1.1 (2021-04-07) 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 2d225741f312..c2753607dc37 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 @@ -421,6 +421,9 @@ async def update_queue( Before calling this method, you should use `get_queue`, `create_queue` or `list_queues` to get a `QueueProperties` instance, then update the properties. Only a portion of properties can be updated. Refer to https://docs.microsoft.com/en-us/rest/api/servicebus/update-queue. + You could also pass keyword arguments for updating properties in the form of + `=` which will override whatever was specified in + the `QueueProperties` instance. Refer to ~azure.servicebus.management.QueueProperties for names of properties. :param queue: The queue that is returned from `get_queue`, `create_queue` or `list_queues` and has the updated properties. @@ -666,6 +669,9 @@ async def update_topic( Before calling this method, you should use `get_topic`, `create_topic` or `list_topics` to get a `TopicProperties` instance, then update the properties. Only a portion of properties can be updated. Refer to https://docs.microsoft.com/en-us/rest/api/servicebus/update-topic. + You could also pass keyword arguments for updating properties in the form of + `=` which will override whatever was specified in + the `TopicProperties` instance. Refer to ~azure.servicebus.management.TopicProperties for names of properties. :param topic: The topic that is returned from `get_topic`, `create_topic`, or `list_topics` and has the updated properties. @@ -927,6 +933,10 @@ async def update_subscription( Before calling this method, you should use `get_subscription`, `update_subscription` or `list_subscription` to get a `SubscriptionProperties` instance, then update the properties. + You could also pass keyword arguments for updating properties in the form of + `=` which will override whatever was specified in + the `SubscriptionProperties` instance. + Refer to ~azure.servicebus.management.SubscriptionProperties for names of properties. :param str topic_name: The topic that owns the subscription. :param ~azure.servicebus.management.SubscriptionProperties subscription: The subscription that is returned @@ -1139,6 +1149,9 @@ async def update_rule( Before calling this method, you should use `get_rule`, `create_rule` or `list_rules` to get a `RuleProperties` instance, then update the properties. + You could also pass keyword arguments for updating properties in the form of + `=` which will override whatever was specified in + the `RuleProperties` instance. Refer to ~azure.servicebus.management.RuleProperties for names of properties. :param str topic_name: The topic that owns the subscription. :param str subscription_name: The subscription that 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 672a84f99460..8ee2fae15518 100644 --- a/sdk/servicebus/azure-servicebus/azure/servicebus/management/_management_client.py +++ b/sdk/servicebus/azure-servicebus/azure/servicebus/management/_management_client.py @@ -412,6 +412,9 @@ def update_queue(self, queue, **kwargs): Before calling this method, you should use `get_queue`, `create_queue` or `list_queues` to get a `QueueProperties` instance, then update the properties. Only a portion of properties can be updated. Refer to https://docs.microsoft.com/en-us/rest/api/servicebus/update-queue. + You could also pass keyword arguments for updating properties in the form of + `=` which will override whatever was specified in + the `QueueProperties` instance. Refer to ~azure.servicebus.management.QueueProperties for names of properties. :param queue: The queue that is returned from `get_queue`, `create_queue` or `list_queues` and has the updated properties. @@ -656,6 +659,9 @@ def update_topic(self, topic, **kwargs): Before calling this method, you should use `get_topic`, `create_topic` or `list_topics` to get a `TopicProperties` instance, then update the properties. Only a portion of properties can be updated. Refer to https://docs.microsoft.com/en-us/rest/api/servicebus/update-topic. + You could also pass keyword arguments for updating properties in the form of + `=` which will override whatever was specified in + the `TopicProperties` instance. Refer to ~azure.servicebus.management.TopicProperties for names of properties. :param topic: The topic that is returned from `get_topic`, `create_topic`, or `list_topics` and has the updated properties. @@ -913,6 +919,10 @@ def update_subscription(self, topic_name, subscription, **kwargs): Before calling this method, you should use `get_subscription`, `update_subscription` or `list_subscription` to get a `SubscriptionProperties` instance, then update the properties. + You could also pass keyword arguments for updating properties in the form of + `=` which will override whatever was specified in + the `SubscriptionProperties` instance. + Refer to ~azure.servicebus.management.SubscriptionProperties for names of properties. :param str topic_name: The topic that owns the subscription. :param ~azure.servicebus.management.SubscriptionProperties subscription: The subscription that is returned @@ -1114,6 +1124,9 @@ def update_rule(self, topic_name, subscription_name, rule, **kwargs): Before calling this method, you should use `get_rule`, `create_rule` or `list_rules` to get a `RuleProperties` instance, then update the properties. + You could also pass keyword arguments for updating properties in the form of + `=` which will override whatever was specified in + the `RuleProperties` instance. Refer to ~azure.servicebus.management.RuleProperties for names of properties. :param str topic_name: The topic that owns the subscription. :param str subscription_name: The subscription that 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 b4addd6564ef..03cadc769631 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 @@ -643,6 +643,7 @@ async def test_mgmt_queue_async_update_dict_success(self, servicebus_namespace_c finally: await mgmt_service.delete_queue(queue_name) + await mgmt_service.close() @pytest.mark.liveTest @CachedResourceGroupPreparer(name_prefix='servicebustest') 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 b3ed139f59e7..59b810bba498 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 @@ -167,6 +167,7 @@ async def test_async_mgmt_rule_update_success(self, servicebus_namespace_connect 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() @CachedResourceGroupPreparer(name_prefix='servicebustest') @CachedServiceBusNamespacePreparer(name_prefix='servicebustest') @@ -310,6 +311,7 @@ async def test_mgmt_rule_async_update_dict_success(self, servicebus_namespace_co 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() @CachedResourceGroupPreparer(name_prefix='servicebustest') @CachedServiceBusNamespacePreparer(name_prefix='servicebustest') 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 6032da90c0f8..66aeb265279a 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 @@ -485,6 +485,7 @@ async def test_mgmt_subscription_async_update_dict_success(self, servicebus_name finally: await mgmt_service.delete_subscription(topic_name, subscription_name) await mgmt_service.delete_topic(topic_name) + await mgmt_service.close() @CachedResourceGroupPreparer(name_prefix='servicebustest') @CachedServiceBusNamespacePreparer(name_prefix='servicebustest') 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 8d4b346caa66..60c37bc90906 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 @@ -182,6 +182,7 @@ async def test_async_mgmt_topic_update_success(self, servicebus_namespace_connec finally: await mgmt_service.delete_topic(topic_name) + await mgmt_service.close() @CachedResourceGroupPreparer(name_prefix='servicebustest') @CachedServiceBusNamespacePreparer(name_prefix='servicebustest') @@ -383,6 +384,7 @@ async def test_mgmt_topic_async_update_dict_success(self, servicebus_namespace_c assert topic_description.support_ordering == False finally: await mgmt_service.delete_topic(topic_name) + await mgmt_service.close() @pytest.mark.liveTest @CachedResourceGroupPreparer(name_prefix='servicebustest') 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 014e3b3e9c51..f9094fd130e4 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 @@ -448,6 +448,7 @@ def test_mgmt_queue_update_success(self, servicebus_namespace_connection_string, finally: mgmt_service.delete_queue(queue_name) mgmt_service.delete_topic(topic_name) + mgmt_service.close() @pytest.mark.liveTest @CachedResourceGroupPreparer(name_prefix='servicebustest') @@ -671,6 +672,7 @@ def test_mgmt_queue_update_dict_success(self, servicebus_namespace_connection_st finally: mgmt_service.delete_queue(queue_name) + mgmt_service.close() @pytest.mark.liveTest @CachedResourceGroupPreparer(name_prefix='servicebustest') 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 93914a98d546..c4e7b311c325 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 @@ -184,6 +184,7 @@ def test_mgmt_rule_update_success(self, servicebus_namespace_connection_string, mgmt_service.delete_rule(topic_name, subscription_name, rule_name) mgmt_service.delete_subscription(topic_name, subscription_name) mgmt_service.delete_topic(topic_name) + mgmt_service.close() @CachedResourceGroupPreparer(name_prefix='servicebustest') @CachedServiceBusNamespacePreparer(name_prefix='servicebustest') @@ -331,6 +332,7 @@ def test_mgmt_rule_update_dict_success(self, servicebus_namespace_connection_str mgmt_service.delete_rule(topic_name, subscription_name, rule_name) mgmt_service.delete_subscription(topic_name, subscription_name) mgmt_service.delete_topic(topic_name) + mgmt_service.close() @CachedResourceGroupPreparer(name_prefix='servicebustest') @CachedServiceBusNamespacePreparer(name_prefix='servicebustest') 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 b31a9a882c75..dae57cdeb90d 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 @@ -246,6 +246,7 @@ def test_mgmt_subscription_update_success(self, servicebus_namespace_connection_ mgmt_service.delete_subscription(topic_name, subscription_name) mgmt_service.delete_topic(topic_name) mgmt_service.delete_queue(queue_name) + mgmt_service.close() @CachedResourceGroupPreparer(name_prefix='servicebustest') @CachedServiceBusNamespacePreparer(name_prefix='servicebustest') @@ -486,6 +487,7 @@ def test_mgmt_subscription_update_dict_success(self, servicebus_namespace_connec finally: mgmt_service.delete_subscription(topic_name, subscription_name) mgmt_service.delete_topic(topic_name) + mgmt_service.close() @CachedResourceGroupPreparer(name_prefix='servicebustest') @CachedServiceBusNamespacePreparer(name_prefix='servicebustest') 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 9e9bfbb7da05..bf5eca8c1981 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 @@ -182,6 +182,7 @@ def test_mgmt_topic_update_success(self, servicebus_namespace_connection_string, assert topic_description.support_ordering == False finally: mgmt_service.delete_topic(topic_name) + mgmt_service.close() @CachedResourceGroupPreparer(name_prefix='servicebustest') @CachedServiceBusNamespacePreparer(name_prefix='servicebustest') @@ -387,6 +388,7 @@ def test_mgmt_topic_update_dict_success(self, servicebus_namespace_connection_st finally: mgmt_service.delete_topic(topic_name) + mgmt_service.close() @CachedResourceGroupPreparer(name_prefix='servicebustest') @CachedServiceBusNamespacePreparer(name_prefix='servicebustest') From ff61fc1982704b2215bdf56018eac4925521eb0f Mon Sep 17 00:00:00 2001 From: "Adam Ling (MSFT)" Date: Fri, 23 Apr 2021 20:09:21 +0800 Subject: [PATCH 09/14] Update sdk/servicebus/azure-servicebus/CHANGELOG.md Co-authored-by: swathipil <76007337+swathipil@users.noreply.github.com> --- 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 73ff718c77ef..e8a3f5872d3e 100644 --- a/sdk/servicebus/azure-servicebus/CHANGELOG.md +++ b/sdk/servicebus/azure-servicebus/CHANGELOG.md @@ -8,8 +8,7 @@ **Bug Fixes** -* Fixed a bug where `update_queue` and `update_subscription` methods were mutating the properties `forward_to` and `forward_dead_lettered_messages_to` of - the model instance when those properties are entities instead of full paths. +* Fixed a bug where `update_queue` and `update_subscription` methods were mutating the properties `forward_to` and `forward_dead_lettered_messages_to` of the model instance when those properties are entities instead of full paths. ## 7.1.1 (2021-04-07) From 4250615d73b15de39fb6a08aa11bbca4f3861522 Mon Sep 17 00:00:00 2001 From: "Adam Ling (MSFT)" Date: Thu, 29 Apr 2021 12:17:45 -0700 Subject: [PATCH 10/14] review feedback --- .../management/_management_client_async.py | 60 +----- .../management/_management_client.py | 62 +----- .../azure/servicebus/management/_models.py | 190 ++++++++++++------ .../azure/servicebus/management/_utils.py | 9 - 4 files changed, 134 insertions(+), 187 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 c2753607dc37..9bab5820522a 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 @@ -73,13 +73,11 @@ ) from ...management._xml_workaround_policy import ServiceBusXMLWorkaroundPolicy from ...management._handle_response_error import _handle_response_error -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, create_properties_from_dict_if_needed, - override_properties_with_keyword_arguments, _normalize_entity_path_to_full_path_if_needed, _validate_entity_name_type, _validate_topic_and_subscription_types, @@ -432,27 +430,7 @@ async def update_queue( """ # we should not mutate the input, making a copy first for update queue = deepcopy(create_properties_from_dict_if_needed(queue, QueueProperties)) - queue.forward_to = _normalize_entity_path_to_full_path_if_needed( - queue.forward_to, self.fully_qualified_namespace - ) - queue.forward_dead_lettered_messages_to = ( - _normalize_entity_path_to_full_path_if_needed( - queue.forward_dead_lettered_messages_to, - self.fully_qualified_namespace, - ) - ) - - property_keyword_arguments = {key: kwargs.pop(key) for key in set(kwargs.keys()) if key in queue.keys()} - override_properties_with_keyword_arguments(queue, **property_keyword_arguments) - - 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 - ) + to_update = queue._to_internal_entity(self.fully_qualified_namespace, kwargs) create_entity_body = CreateQueueBody( content=CreateQueueBodyContent( @@ -680,16 +658,7 @@ async def update_topic( """ topic = deepcopy(create_properties_from_dict_if_needed(topic, TopicProperties)) - property_keyword_arguments = {key: kwargs.pop(key) for key in set(kwargs.keys()) if key in topic.keys()} - override_properties_with_keyword_arguments(topic, **property_keyword_arguments) - to_update = topic._to_internal_entity() - - to_update.default_message_time_to_live = avoid_timedelta_overflow( # type: ignore - to_update.default_message_time_to_live - ) - to_update.auto_delete_on_idle = avoid_timedelta_overflow( # type: ignore - to_update.auto_delete_on_idle - ) + to_update = topic._to_internal_entity(kwargs) create_entity_body = CreateTopicBody( content=CreateTopicBodyContent( @@ -947,26 +916,7 @@ async def update_subscription( _validate_entity_name_type(topic_name, display_name="topic_name") # we should not mutate the input, making a copy first for update subscription = deepcopy(create_properties_from_dict_if_needed(subscription, SubscriptionProperties)) - subscription.forward_to = _normalize_entity_path_to_full_path_if_needed( - subscription.forward_to, self.fully_qualified_namespace - ) - subscription.forward_dead_lettered_messages_to = ( - _normalize_entity_path_to_full_path_if_needed( - subscription.forward_dead_lettered_messages_to, - self.fully_qualified_namespace, - ) - ) - property_keyword_arguments = {key: kwargs.pop(key) for key in set(kwargs.keys()) if key in subscription.keys()} - override_properties_with_keyword_arguments(subscription, **property_keyword_arguments) - - to_update = subscription._to_internal_entity() - - to_update.default_message_time_to_live = avoid_timedelta_overflow( # type: ignore - to_update.default_message_time_to_live - ) - to_update.auto_delete_on_idle = avoid_timedelta_overflow( # type: ignore - to_update.auto_delete_on_idle - ) + to_update = subscription._to_internal_entity(self.fully_qualified_namespace, kwargs) create_entity_body = CreateSubscriptionBody( content=CreateSubscriptionBodyContent( @@ -1164,9 +1114,7 @@ async def update_rule( _validate_topic_and_subscription_types(topic_name, subscription_name) # we should not mutate the input, making a copy first for update rule = deepcopy(create_properties_from_dict_if_needed(rule, RuleProperties)) - property_keyword_arguments = {key: kwargs.pop(key) for key in set(kwargs.keys()) if key in rule.keys()} - override_properties_with_keyword_arguments(rule, **property_keyword_arguments) - to_update = rule._to_internal_entity() + to_update = rule._to_internal_entity(kwargs) 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 8ee2fae15518..404e04179630 100644 --- a/sdk/servicebus/azure-servicebus/azure/servicebus/management/_management_client.py +++ b/sdk/servicebus/azure-servicebus/azure/servicebus/management/_management_client.py @@ -48,7 +48,6 @@ serialize_rule_key_values, extract_rule_data_template, create_properties_from_dict_if_needed, - override_properties_with_keyword_arguments, _normalize_entity_path_to_full_path_if_needed, _validate_entity_name_type, _validate_topic_and_subscription_types, @@ -71,7 +70,6 @@ from ._generated._service_bus_management_client import ( ServiceBusManagementClient as ServiceBusManagementClientImpl, ) -from ._model_workaround import avoid_timedelta_overflow from . import _constants as constants from ._models import ( QueueRuntimeProperties, @@ -380,7 +378,7 @@ def create_queue(self, queue_name, **kwargs): forward_dead_lettered_messages_to=forward_dead_lettered_messages_to, user_metadata=kwargs.pop("user_metadata", None), ) - to_create = queue._to_internal_entity() + to_create = queue._to_internal_entity(self.fully_qualified_namespace) create_entity_body = CreateQueueBody( content=CreateQueueBodyContent( queue_description=to_create, # type: ignore @@ -423,26 +421,7 @@ def update_queue(self, queue, **kwargs): """ # we should not mutate the input, making a copy first for update queue = deepcopy(create_properties_from_dict_if_needed(queue, QueueProperties)) - queue.forward_to = _normalize_entity_path_to_full_path_if_needed( - queue.forward_to, self.fully_qualified_namespace - ) - queue.forward_dead_lettered_messages_to = ( - _normalize_entity_path_to_full_path_if_needed( - queue.forward_dead_lettered_messages_to, - self.fully_qualified_namespace, - ) - ) - - property_keyword_arguments = {key: kwargs.pop(key) for key in set(kwargs.keys()) if key in queue.keys()} - override_properties_with_keyword_arguments(queue, **property_keyword_arguments) - - 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 - ) + to_update = queue._to_internal_entity(self.fully_qualified_namespace, kwargs) create_entity_body = CreateQueueBody( content=CreateQueueBodyContent( @@ -670,16 +649,7 @@ def update_topic(self, topic, **kwargs): """ # we should not mutate the input, making a copy first for update topic = deepcopy(create_properties_from_dict_if_needed(topic, TopicProperties)) - property_keyword_arguments = {key: kwargs.pop(key) for key in set(kwargs.keys()) if key in topic.keys()} - override_properties_with_keyword_arguments(topic, **property_keyword_arguments) - to_update = topic._to_internal_entity() - - to_update.default_message_time_to_live = avoid_timedelta_overflow( # type: ignore - to_update.default_message_time_to_live - ) - to_update.auto_delete_on_idle = avoid_timedelta_overflow( # type: ignore - to_update.auto_delete_on_idle - ) + to_update = topic._to_internal_entity(kwargs) create_entity_body = CreateTopicBody( content=CreateTopicBodyContent( @@ -886,7 +856,7 @@ def create_subscription(self, topic_name, subscription_name, **kwargs): auto_delete_on_idle=kwargs.pop("auto_delete_on_idle", None), availability_status=None, ) - to_create = subscription._to_internal_entity() # type: ignore # pylint:disable=protected-access + to_create = subscription._to_internal_entity(self.fully_qualified_namespace) # type: ignore # pylint:disable=protected-access create_entity_body = CreateSubscriptionBody( content=CreateSubscriptionBodyContent( @@ -934,26 +904,8 @@ def update_subscription(self, topic_name, subscription, **kwargs): subscription = deepcopy( create_properties_from_dict_if_needed(subscription, SubscriptionProperties) # type: ignore ) - subscription.forward_to = _normalize_entity_path_to_full_path_if_needed( - subscription.forward_to, self.fully_qualified_namespace - ) - subscription.forward_dead_lettered_messages_to = ( - _normalize_entity_path_to_full_path_if_needed( - subscription.forward_dead_lettered_messages_to, - self.fully_qualified_namespace, - ) - ) - property_keyword_arguments = {key: kwargs.pop(key) for key in set(kwargs.keys()) if key in subscription.keys()} - override_properties_with_keyword_arguments(subscription, **property_keyword_arguments) - - to_update = subscription._to_internal_entity() + to_update = subscription._to_internal_entity(self.fully_qualified_namespace, kwargs) - to_update.default_message_time_to_live = avoid_timedelta_overflow( # type: ignore - to_update.default_message_time_to_live - ) - to_update.auto_delete_on_idle = avoid_timedelta_overflow( # type: ignore - to_update.auto_delete_on_idle - ) create_entity_body = CreateSubscriptionBody( content=CreateSubscriptionBodyContent( subscription_description=to_update, @@ -1140,9 +1092,7 @@ def update_rule(self, topic_name, subscription_name, rule, **kwargs): _validate_topic_and_subscription_types(topic_name, subscription_name) # we should not mutate the input, making a copy first for update rule = deepcopy(create_properties_from_dict_if_needed(rule, RuleProperties)) - property_keyword_arguments = {key: kwargs.pop(key) for key in set(kwargs.keys()) if key in rule.keys()} - override_properties_with_keyword_arguments(rule, **property_keyword_arguments) - to_update = rule._to_internal_entity() + to_update = rule._to_internal_entity(kwargs) create_entity_body = CreateRuleBody( content=CreateRuleBodyContent( diff --git a/sdk/servicebus/azure-servicebus/azure/servicebus/management/_models.py b/sdk/servicebus/azure-servicebus/azure/servicebus/management/_models.py index 4f6e8b264ae2..f9db0491bac2 100644 --- a/sdk/servicebus/azure-servicebus/azure/servicebus/management/_models.py +++ b/sdk/servicebus/azure-servicebus/azure/servicebus/management/_models.py @@ -27,8 +27,12 @@ AuthorizationRule as InternalAuthorizationRule, ) -from ._model_workaround import adjust_attribute_map +from ._model_workaround import ( + adjust_attribute_map, + avoid_timedelta_overflow +) from ._constants import RULE_SQL_COMPATIBILITY_LEVEL +from ._utils import _normalize_entity_path_to_full_path_if_needed adjust_attribute_map() @@ -316,43 +320,63 @@ def _from_internal_entity(cls, name, internal_qd): qd._internal_qd = deepcopy(internal_qd) # pylint:disable=protected-access return qd - def _to_internal_entity(self): + def _to_internal_entity(self, fully_qualified_namespace, kwargs=None): + # type: (str, Optional[Dict]) -> InternalQueueDescription + kwargs = kwargs or {} + if not self._internal_qd: internal_qd = InternalQueueDescription() self._internal_qd = internal_qd + authorization_rules = kwargs.pop("authorization_rules", self.authorization_rules) self._internal_qd.authorization_rules = ( - [r._to_internal_entity() for r in self.authorization_rules] - if self.authorization_rules - else self.authorization_rules + [r._to_internal_entity() for r in authorization_rules] + if authorization_rules + else authorization_rules + ) + + self._internal_qd.auto_delete_on_idle = avoid_timedelta_overflow( + kwargs.pop("auto_delete_on_idle", self.auto_delete_on_idle) ) - self._internal_qd.auto_delete_on_idle = self.auto_delete_on_idle self._internal_qd.dead_lettering_on_message_expiration = ( - self.dead_lettering_on_message_expiration + kwargs.pop("dead_lettering_on_message_expiration", self.dead_lettering_on_message_expiration) ) - self._internal_qd.default_message_time_to_live = ( - self.default_message_time_to_live + self._internal_qd.default_message_time_to_live = avoid_timedelta_overflow( + kwargs.pop("default_message_time_to_live", self.default_message_time_to_live) ) self._internal_qd.duplicate_detection_history_time_window = ( - self.duplicate_detection_history_time_window + kwargs.pop("duplicate_detection_history_time_window", self.duplicate_detection_history_time_window) + ) + self._internal_qd.entity_availability_status = kwargs.pop("availability_status", self.availability_status) + self._internal_qd.enable_batched_operations = ( + kwargs.pop("enable_batched_operations", self.enable_batched_operations) ) - self._internal_qd.entity_availability_status = self.availability_status - self._internal_qd.enable_batched_operations = self.enable_batched_operations - self._internal_qd.enable_express = self.enable_express - self._internal_qd.enable_partitioning = self.enable_partitioning - self._internal_qd.lock_duration = self.lock_duration - self._internal_qd.max_delivery_count = self.max_delivery_count - self._internal_qd.max_size_in_megabytes = self.max_size_in_megabytes + self._internal_qd.enable_express = kwargs.pop("enable_express", self.enable_express) + self._internal_qd.enable_partitioning = kwargs.pop("enable_partitioning", self.enable_partitioning) + self._internal_qd.lock_duration = kwargs.pop("lock_duration", self.lock_duration) + self._internal_qd.max_delivery_count = kwargs.pop("max_delivery_count", self.max_delivery_count) + self._internal_qd.max_size_in_megabytes = kwargs.pop("max_size_in_megabytes", self.max_size_in_megabytes) self._internal_qd.requires_duplicate_detection = ( - self.requires_duplicate_detection + kwargs.pop("requires_duplicate_detection", self.requires_duplicate_detection) ) - self._internal_qd.requires_session = self.requires_session - self._internal_qd.status = self.status - self._internal_qd.forward_to = self.forward_to - self._internal_qd.forward_dead_lettered_messages_to = ( - self.forward_dead_lettered_messages_to + self._internal_qd.requires_session = kwargs.pop("requires_session", self.requires_session) + self._internal_qd.status = kwargs.pop("status", self.status) + + forward_to = kwargs.pop("forward_to", self.forward_to) + self._internal_qd.forward_to = _normalize_entity_path_to_full_path_if_needed( + forward_to, + fully_qualified_namespace ) - self._internal_qd.user_metadata = self.user_metadata + + forward_dead_lettered_messages_to = ( + kwargs.pop("forward_dead_lettered_messages_to", self.forward_dead_lettered_messages_to) + ) + self._internal_qd.forward_dead_lettered_messages_to = _normalize_entity_path_to_full_path_if_needed( + forward_dead_lettered_messages_to, + fully_qualified_namespace + ) + + self._internal_qd.user_metadata = kwargs.pop("user_metadata", self.user_metadata) return self._internal_qd @@ -577,34 +601,42 @@ def _from_internal_entity(cls, name, internal_td): td._internal_td = deepcopy(internal_td) return td - def _to_internal_entity(self): - # type: () -> InternalTopicDescription + def _to_internal_entity(self, kwargs=None): + # type: (Optional[Dict]) -> InternalTopicDescription + kwargs = kwargs or {} + if not self._internal_td: self._internal_td = InternalTopicDescription() - self._internal_td.default_message_time_to_live = ( - self.default_message_time_to_live + self._internal_td.default_message_time_to_live = avoid_timedelta_overflow( + kwargs.pop("default_message_time_to_live", self.default_message_time_to_live) ) - self._internal_td.max_size_in_megabytes = self.max_size_in_megabytes + self._internal_td.max_size_in_megabytes = kwargs.pop("max_size_in_megabytes", self.max_size_in_megabytes) self._internal_td.requires_duplicate_detection = ( - self.requires_duplicate_detection + kwargs.pop("requires_duplicate_detection", self.requires_duplicate_detection) ) self._internal_td.duplicate_detection_history_time_window = ( - self.duplicate_detection_history_time_window + kwargs.pop("duplicate_detection_history_time_window", self.duplicate_detection_history_time_window) + ) + self._internal_td.enable_batched_operations = ( + kwargs.pop("enable_batched_operations", self.enable_batched_operations) ) - self._internal_td.enable_batched_operations = self.enable_batched_operations - self._internal_td.size_in_bytes = self.size_in_bytes + self._internal_td.size_in_bytes = kwargs.pop("size_in_bytes", self.size_in_bytes) + + authorization_rules = kwargs.pop("authorization_rules", self.authorization_rules) self._internal_td.authorization_rules = ( - [r._to_internal_entity() for r in self.authorization_rules] - if self.authorization_rules - else self.authorization_rules + [r._to_internal_entity() for r in authorization_rules] + if authorization_rules + else authorization_rules ) - self._internal_td.status = self.status - self._internal_td.support_ordering = self.support_ordering - self._internal_td.auto_delete_on_idle = self.auto_delete_on_idle - self._internal_td.enable_partitioning = self.enable_partitioning - self._internal_td.entity_availability_status = self.availability_status - self._internal_td.enable_express = self.enable_express - self._internal_td.user_metadata = self.user_metadata + self._internal_td.status = kwargs.pop("status", self.status) + self._internal_td.support_ordering = kwargs.pop("support_ordering", self.support_ordering) + self._internal_td.auto_delete_on_idle = avoid_timedelta_overflow( + kwargs.pop("auto_delete_on_idle", self.auto_delete_on_idle) + ) + self._internal_td.enable_partitioning = kwargs.pop("enable_partitioning", self.enable_partitioning) + self._internal_td.entity_availability_status = kwargs.pop("availability_status", self.availability_status) + self._internal_td.enable_express = kwargs.pop("enable_express", self.enable_express) + self._internal_td.user_metadata = kwargs.pop("user_metadata", self.user_metadata) return self._internal_td @@ -790,31 +822,51 @@ def _from_internal_entity(cls, name, internal_subscription): subscription._internal_sd = deepcopy(internal_subscription) return subscription - def _to_internal_entity(self): - # type: () -> InternalSubscriptionDescription + def _to_internal_entity(self, fully_qualified_namespace, kwargs=None): + # type: (str, Optional[Dict]) -> InternalSubscriptionDescription + kwargs = kwargs or {} + if not self._internal_sd: self._internal_sd = InternalSubscriptionDescription() - self._internal_sd.lock_duration = self.lock_duration - self._internal_sd.requires_session = self.requires_session - self._internal_sd.default_message_time_to_live = ( - self.default_message_time_to_live + self._internal_sd.lock_duration = kwargs.pop("lock_duration", self.lock_duration) + self._internal_sd.requires_session = kwargs.pop("requires_session", self.requires_session) + self._internal_sd.default_message_time_to_live = avoid_timedelta_overflow( + kwargs.pop("default_message_time_to_live", self.default_message_time_to_live) ) self._internal_sd.dead_lettering_on_message_expiration = ( - self.dead_lettering_on_message_expiration + kwargs.pop("dead_lettering_on_message_expiration", self.dead_lettering_on_message_expiration) ) self._internal_sd.dead_lettering_on_filter_evaluation_exceptions = ( - self.dead_lettering_on_filter_evaluation_exceptions + kwargs.pop( + "dead_lettering_on_filter_evaluation_exceptions", + self.dead_lettering_on_filter_evaluation_exceptions + ) ) - self._internal_sd.max_delivery_count = self.max_delivery_count - self._internal_sd.enable_batched_operations = self.enable_batched_operations - self._internal_sd.status = self.status - self._internal_sd.forward_to = self.forward_to - self._internal_sd.user_metadata = self.user_metadata - self._internal_sd.forward_dead_lettered_messages_to = ( - self.forward_dead_lettered_messages_to + self._internal_sd.max_delivery_count = kwargs.pop("max_delivery_count", self.max_delivery_count) + self._internal_sd.enable_batched_operations = ( + kwargs.pop("enable_batched_operations", self.enable_batched_operations) ) - self._internal_sd.auto_delete_on_idle = self.auto_delete_on_idle - self._internal_sd.entity_availability_status = self.availability_status + self._internal_sd.status = kwargs.pop("status", self.status) + + forward_to = kwargs.pop("forward_to", self.forward_to) + self._internal_sd.forward_to = _normalize_entity_path_to_full_path_if_needed( + forward_to, + fully_qualified_namespace + ) + + forward_dead_lettered_messages_to = ( + kwargs.pop("forward_dead_lettered_messages_to", self.forward_dead_lettered_messages_to) + ) + self._internal_sd.forward_dead_lettered_messages_to = _normalize_entity_path_to_full_path_if_needed( + forward_dead_lettered_messages_to, + fully_qualified_namespace + ) + + self._internal_sd.user_metadata = kwargs.pop("user_metadata", self.user_metadata) + self._internal_sd.auto_delete_on_idle = avoid_timedelta_overflow( + kwargs.pop("auto_delete_on_idle", self.auto_delete_on_idle) + ) + self._internal_sd.entity_availability_status = kwargs.pop("availability_status", self.availability_status) return self._internal_sd @@ -964,16 +1016,22 @@ def _from_internal_entity(cls, name, internal_rule): rule._internal_rule = deepcopy(internal_rule) return rule - def _to_internal_entity(self): - # type: () -> InternalRuleDescription + def _to_internal_entity(self, kwargs=None): + # type: (Optional[Dict]) -> InternalRuleDescription + kwargs = kwargs or {} if not self._internal_rule: self._internal_rule = InternalRuleDescription() - self._internal_rule.filter = self.filter._to_internal_entity() if self.filter else TRUE_FILTER # type: ignore + + filter = kwargs.pop("filter", self.filter) + self._internal_rule.filter = filter._to_internal_entity() if filter else TRUE_FILTER # type: ignore + + action = kwargs.pop("action", self.action) self._internal_rule.action = ( - self.action._to_internal_entity() if self.action else EMPTY_RULE_ACTION + action._to_internal_entity() if action else EMPTY_RULE_ACTION ) - self._internal_rule.created_at = self.created_at_utc - self._internal_rule.name = self.name + + self._internal_rule.created_at = kwargs.pop("created_at_utc", self.created_at_utc) + self._internal_rule.name = kwargs.pop("name", self.name) return self._internal_rule diff --git a/sdk/servicebus/azure-servicebus/azure/servicebus/management/_utils.py b/sdk/servicebus/azure-servicebus/azure/servicebus/management/_utils.py index 19143ca063ec..311b1a61277f 100644 --- a/sdk/servicebus/azure-servicebus/azure/servicebus/management/_utils.py +++ b/sdk/servicebus/azure-servicebus/azure/servicebus/management/_utils.py @@ -368,12 +368,3 @@ def create_properties_from_dict_if_needed(properties, sb_resource_type): sb_resource_type.__name__ ) ) - - -def override_properties_with_keyword_arguments(properties, **kwargs): - # type: (PropertiesType, Any) -> None - if not kwargs: - return - for key, _ in kwargs.items(): - if key in properties.keys(): - properties[key] = kwargs.get(key) From a55b94e2e084387b893ed60494b76c19e406aeef Mon Sep 17 00:00:00 2001 From: "Adam Ling (MSFT)" Date: Thu, 29 Apr 2021 13:01:50 -0700 Subject: [PATCH 11/14] fix mypy and pylint --- .../aio/management/_management_client_async.py | 5 +++-- .../azure/servicebus/management/_models.py | 12 ++++++------ 2 files changed, 9 insertions(+), 8 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 9bab5820522a..9e9dfdb6a4c8 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 @@ -386,7 +386,7 @@ async def create_queue(self, queue_name: str, **kwargs) -> QueueProperties: forward_dead_lettered_messages_to=forward_dead_lettered_messages_to, user_metadata=kwargs.pop("user_metadata", None), ) - to_create = queue._to_internal_entity() + to_create = queue._to_internal_entity(self.fully_qualified_namespace) create_entity_body = CreateQueueBody( content=CreateQueueBodyContent( queue_description=to_create, # type: ignore @@ -832,6 +832,7 @@ async def create_subscription( :type auto_delete_on_idle: Union[~datetime.timedelta, str] :rtype: ~azure.servicebus.management.SubscriptionProperties """ + # pylint:disable=protected-access _validate_entity_name_type(topic_name, display_name="topic_name") forward_to = _normalize_entity_path_to_full_path_if_needed( kwargs.pop("forward_to", None), self.fully_qualified_namespace @@ -865,7 +866,7 @@ async def create_subscription( auto_delete_on_idle=kwargs.pop("auto_delete_on_idle", None), availability_status=None, ) - to_create = subscription._to_internal_entity() # type: ignore # pylint:disable=protected-access + to_create = subscription._to_internal_entity(self.fully_qualified_namespace) # type: ignore create_entity_body = CreateSubscriptionBody( content=CreateSubscriptionBodyContent( diff --git a/sdk/servicebus/azure-servicebus/azure/servicebus/management/_models.py b/sdk/servicebus/azure-servicebus/azure/servicebus/management/_models.py index f9db0491bac2..ac1092a7c460 100644 --- a/sdk/servicebus/azure-servicebus/azure/servicebus/management/_models.py +++ b/sdk/servicebus/azure-servicebus/azure/servicebus/management/_models.py @@ -335,13 +335,13 @@ def _to_internal_entity(self, fully_qualified_namespace, kwargs=None): else authorization_rules ) - self._internal_qd.auto_delete_on_idle = avoid_timedelta_overflow( + self._internal_qd.auto_delete_on_idle = avoid_timedelta_overflow( # type: ignore kwargs.pop("auto_delete_on_idle", self.auto_delete_on_idle) ) self._internal_qd.dead_lettering_on_message_expiration = ( kwargs.pop("dead_lettering_on_message_expiration", self.dead_lettering_on_message_expiration) ) - self._internal_qd.default_message_time_to_live = avoid_timedelta_overflow( + self._internal_qd.default_message_time_to_live = avoid_timedelta_overflow( # type: ignore kwargs.pop("default_message_time_to_live", self.default_message_time_to_live) ) self._internal_qd.duplicate_detection_history_time_window = ( @@ -607,7 +607,7 @@ def _to_internal_entity(self, kwargs=None): if not self._internal_td: self._internal_td = InternalTopicDescription() - self._internal_td.default_message_time_to_live = avoid_timedelta_overflow( + self._internal_td.default_message_time_to_live = avoid_timedelta_overflow( # type: ignore kwargs.pop("default_message_time_to_live", self.default_message_time_to_live) ) self._internal_td.max_size_in_megabytes = kwargs.pop("max_size_in_megabytes", self.max_size_in_megabytes) @@ -630,7 +630,7 @@ def _to_internal_entity(self, kwargs=None): ) self._internal_td.status = kwargs.pop("status", self.status) self._internal_td.support_ordering = kwargs.pop("support_ordering", self.support_ordering) - self._internal_td.auto_delete_on_idle = avoid_timedelta_overflow( + self._internal_td.auto_delete_on_idle = avoid_timedelta_overflow( # type: ignore kwargs.pop("auto_delete_on_idle", self.auto_delete_on_idle) ) self._internal_td.enable_partitioning = kwargs.pop("enable_partitioning", self.enable_partitioning) @@ -830,7 +830,7 @@ def _to_internal_entity(self, fully_qualified_namespace, kwargs=None): self._internal_sd = InternalSubscriptionDescription() self._internal_sd.lock_duration = kwargs.pop("lock_duration", self.lock_duration) self._internal_sd.requires_session = kwargs.pop("requires_session", self.requires_session) - self._internal_sd.default_message_time_to_live = avoid_timedelta_overflow( + self._internal_sd.default_message_time_to_live = avoid_timedelta_overflow( # type: ignore kwargs.pop("default_message_time_to_live", self.default_message_time_to_live) ) self._internal_sd.dead_lettering_on_message_expiration = ( @@ -863,7 +863,7 @@ def _to_internal_entity(self, fully_qualified_namespace, kwargs=None): ) self._internal_sd.user_metadata = kwargs.pop("user_metadata", self.user_metadata) - self._internal_sd.auto_delete_on_idle = avoid_timedelta_overflow( + self._internal_sd.auto_delete_on_idle = avoid_timedelta_overflow( # type: ignore kwargs.pop("auto_delete_on_idle", self.auto_delete_on_idle) ) self._internal_sd.entity_availability_status = kwargs.pop("availability_status", self.availability_status) From f36310e18cca2a8bb9b00193e827bbd79ab9caca Mon Sep 17 00:00:00 2001 From: "Adam Ling (MSFT)" Date: Thu, 29 Apr 2021 13:26:35 -0700 Subject: [PATCH 12/14] fix pylint --- .../azure-servicebus/azure/servicebus/management/_models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sdk/servicebus/azure-servicebus/azure/servicebus/management/_models.py b/sdk/servicebus/azure-servicebus/azure/servicebus/management/_models.py index ac1092a7c460..a121efe5c6b8 100644 --- a/sdk/servicebus/azure-servicebus/azure/servicebus/management/_models.py +++ b/sdk/servicebus/azure-servicebus/azure/servicebus/management/_models.py @@ -1022,8 +1022,8 @@ def _to_internal_entity(self, kwargs=None): if not self._internal_rule: self._internal_rule = InternalRuleDescription() - filter = kwargs.pop("filter", self.filter) - self._internal_rule.filter = filter._to_internal_entity() if filter else TRUE_FILTER # type: ignore + rule_filter = kwargs.pop("filter", self.filter) + self._internal_rule.filter = rule_filter._to_internal_entity() if rule_filter else TRUE_FILTER # type: ignore action = kwargs.pop("action", self.action) self._internal_rule.action = ( From 0370d6b78f35123d66edcc8a71638edf1b6ad84d Mon Sep 17 00:00:00 2001 From: "Adam Ling (MSFT)" Date: Mon, 3 May 2021 12:16:55 -0700 Subject: [PATCH 13/14] header bearer should use normalized path to generate token instead of raw input --- .../servicebus/aio/management/_management_client_async.py | 8 ++++---- .../azure/servicebus/management/_management_client.py | 8 ++++---- 2 files changed, 8 insertions(+), 8 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 9e9dfdb6a4c8..da2c08ec1e5a 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 @@ -393,7 +393,7 @@ async def create_queue(self, queue_name: str, **kwargs) -> QueueProperties: ) ) request_body = create_entity_body.serialize(is_xml=True) - await self._create_forward_to_header_tokens(queue, kwargs) + await self._create_forward_to_header_tokens(to_create, kwargs) with _handle_response_error(): entry_ele = cast( ElementTree, @@ -438,7 +438,7 @@ async def update_queue( ) ) request_body = create_entity_body.serialize(is_xml=True) - await self._create_forward_to_header_tokens(queue, kwargs) + await self._create_forward_to_header_tokens(to_update, kwargs) with _handle_response_error(): await self._impl.entity.put( queue.name, # type: ignore @@ -874,7 +874,7 @@ async def create_subscription( ) ) request_body = create_entity_body.serialize(is_xml=True) - await self._create_forward_to_header_tokens(subscription, kwargs) + await self._create_forward_to_header_tokens(to_create, kwargs) with _handle_response_error(): entry_ele = cast( ElementTree, @@ -925,7 +925,7 @@ async def update_subscription( ) ) request_body = create_entity_body.serialize(is_xml=True) - await self._create_forward_to_header_tokens(subscription, kwargs) + await self._create_forward_to_header_tokens(to_update, kwargs) with _handle_response_error(): await self._impl.subscription.put( topic_name, 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 404e04179630..cad49cee7372 100644 --- a/sdk/servicebus/azure-servicebus/azure/servicebus/management/_management_client.py +++ b/sdk/servicebus/azure-servicebus/azure/servicebus/management/_management_client.py @@ -385,7 +385,7 @@ def create_queue(self, queue_name, **kwargs): ) ) request_body = create_entity_body.serialize(is_xml=True) - self._create_forward_to_header_tokens(queue, kwargs) + self._create_forward_to_header_tokens(to_create, kwargs) with _handle_response_error(): entry_ele = cast( ElementTree, @@ -429,7 +429,7 @@ def update_queue(self, queue, **kwargs): ) ) request_body = create_entity_body.serialize(is_xml=True) - self._create_forward_to_header_tokens(queue, kwargs) + self._create_forward_to_header_tokens(to_update, kwargs) with _handle_response_error(): self._impl.entity.put( queue.name, # type: ignore @@ -864,7 +864,7 @@ def create_subscription(self, topic_name, subscription_name, **kwargs): ) ) request_body = create_entity_body.serialize(is_xml=True) - self._create_forward_to_header_tokens(subscription, kwargs) + self._create_forward_to_header_tokens(to_create, kwargs) with _handle_response_error(): entry_ele = cast( ElementTree, @@ -912,7 +912,7 @@ def update_subscription(self, topic_name, subscription, **kwargs): ) ) request_body = create_entity_body.serialize(is_xml=True) - self._create_forward_to_header_tokens(subscription, kwargs) + self._create_forward_to_header_tokens(to_update, kwargs) with _handle_response_error(): self._impl.subscription.put( topic_name, From 1f3ffa4e9600c6663e44f4321e004c4ff038b809 Mon Sep 17 00:00:00 2001 From: "Adam Ling (MSFT)" Date: Tue, 4 May 2021 11:05:19 -0700 Subject: [PATCH 14/14] update code snippets to show update keyword argument usage --- .../samples/async_samples/mgmt_queue_async.py | 5 ++++ .../samples/async_samples/mgmt_rule_async.py | 25 ++++++++++++++++++ .../async_samples/mgmt_subscription_async.py | 5 ++++ .../samples/async_samples/mgmt_topic_async.py | 11 +++++++- .../samples/sync_samples/mgmt_queue.py | 5 ++++ .../samples/sync_samples/mgmt_rule.py | 26 ++++++++++++++++++- .../samples/sync_samples/mgmt_subscription.py | 5 ++++ .../samples/sync_samples/mgmt_topic.py | 11 +++++++- 8 files changed, 90 insertions(+), 3 deletions(-) diff --git a/sdk/servicebus/azure-servicebus/samples/async_samples/mgmt_queue_async.py b/sdk/servicebus/azure-servicebus/samples/async_samples/mgmt_queue_async.py index bac54851e511..44f941cb8d19 100644 --- a/sdk/servicebus/azure-servicebus/samples/async_samples/mgmt_queue_async.py +++ b/sdk/servicebus/azure-servicebus/samples/async_samples/mgmt_queue_async.py @@ -56,9 +56,14 @@ async def get_and_update_queue(servicebus_mgmt_client): print("Dead Lettering on Message Expiration:", queue_properties.dead_lettering_on_message_expiration) print("Please refer to QueueProperties for complete available settings.") print("") + # update by updating the properties in the model queue_properties.max_delivery_count = 5 await servicebus_mgmt_client.update_queue(queue_properties) + # update by passing keyword arguments + queue_properties = await servicebus_mgmt_client.get_queue(QUEUE_NAME) + await servicebus_mgmt_client.update_queue(queue_properties, max_delivery_count=3) + async def get_queue_runtime_properties(servicebus_mgmt_client): print("-- Get Queue Runtime Properties") diff --git a/sdk/servicebus/azure-servicebus/samples/async_samples/mgmt_rule_async.py b/sdk/servicebus/azure-servicebus/samples/async_samples/mgmt_rule_async.py index f9bb276e2eff..0fe27038a163 100644 --- a/sdk/servicebus/azure-servicebus/samples/async_samples/mgmt_rule_async.py +++ b/sdk/servicebus/azure-servicebus/samples/async_samples/mgmt_rule_async.py @@ -71,8 +71,33 @@ async def get_and_update_rule(servicebus_mgmt_client): print("Rule Name:", rule_properties.name) print("Please refer to RuleProperties for complete available properties.") print("") + + # update by updating the properties in the model + rule_properties.filter = SqlRuleFilter( + "property1 = @param1 AND property2 = @param2", + parameters={ + "@param1": "value2", + "@param2": 2 + } + ) await servicebus_mgmt_client.update_rule(TOPIC_NAME, SUBSCRIPTION_NAME, rule_properties) + # update by passing keyword arguments + rule_properties = await servicebus_mgmt_client.get_rule(TOPIC_NAME, SUBSCRIPTION_NAME, RULE_NAME) + await servicebus_mgmt_client.update_rule( + TOPIC_NAME, + SUBSCRIPTION_NAME, + rule_properties, + filter=SqlRuleFilter( + "property1 = @param1 AND property2 = @param2", + parameters={ + "@param1": "value3", + "@param2": 3 + } + ) + ) + + async def main(): async with ServiceBusAdministrationClient.from_connection_string(CONNECTION_STR) as servicebus_mgmt_client: await create_rule(servicebus_mgmt_client) diff --git a/sdk/servicebus/azure-servicebus/samples/async_samples/mgmt_subscription_async.py b/sdk/servicebus/azure-servicebus/samples/async_samples/mgmt_subscription_async.py index d2ceec52cb25..a74c597dc496 100644 --- a/sdk/servicebus/azure-servicebus/samples/async_samples/mgmt_subscription_async.py +++ b/sdk/servicebus/azure-servicebus/samples/async_samples/mgmt_subscription_async.py @@ -53,9 +53,14 @@ async def get_and_update_subscription(servicebus_mgmt_client): print("Subscription Name:", subscription_properties.name) print("Please refer to SubscriptionDescription for complete available settings.") print("") + # update by updating the properties in the model subscription_properties.max_delivery_count = 5 await servicebus_mgmt_client.update_subscription(TOPIC_NAME, subscription_properties) + # update by passing keyword arguments + subscription_properties = await servicebus_mgmt_client.get_subscription(TOPIC_NAME, SUBSCRIPTION_NAME) + await servicebus_mgmt_client.update_subscription(TOPIC_NAME, subscription_properties, max_delivery_count=3) + async def get_subscription_runtime_properties(servicebus_mgmt_client): print("-- Get Subscription Runtime Properties") diff --git a/sdk/servicebus/azure-servicebus/samples/async_samples/mgmt_topic_async.py b/sdk/servicebus/azure-servicebus/samples/async_samples/mgmt_topic_async.py index 29bec799c8fc..901e19d6478b 100644 --- a/sdk/servicebus/azure-servicebus/samples/async_samples/mgmt_topic_async.py +++ b/sdk/servicebus/azure-servicebus/samples/async_samples/mgmt_topic_async.py @@ -19,6 +19,7 @@ import os import asyncio import uuid +import datetime from azure.servicebus.aio.management import ServiceBusAdministrationClient CONNECTION_STR = os.environ['SERVICE_BUS_CONNECTION_STR'] @@ -52,9 +53,17 @@ async def get_and_update_topic(servicebus_mgmt_client): print("Topic Name:", topic_properties.name) print("Please refer to TopicDescription for complete available settings.") print("") - topic_properties.max_delivery_count = 5 + # update by updating the properties in the model + topic_properties.default_message_time_to_live = datetime.timedelta(minutes=10) await servicebus_mgmt_client.update_topic(topic_properties) + # update by passing keyword arguments + topic_properties = await servicebus_mgmt_client.get_topic(TOPIC_NAME) + await servicebus_mgmt_client.update_topic( + topic_properties, + default_message_time_to_live=datetime.timedelta(minutes=15) + ) + async def get_topic_runtime_properties(servicebus_mgmt_client): print("-- Get Topic Runtime Properties") diff --git a/sdk/servicebus/azure-servicebus/samples/sync_samples/mgmt_queue.py b/sdk/servicebus/azure-servicebus/samples/sync_samples/mgmt_queue.py index db4cbe15222c..5090e2f2e519 100644 --- a/sdk/servicebus/azure-servicebus/samples/sync_samples/mgmt_queue.py +++ b/sdk/servicebus/azure-servicebus/samples/sync_samples/mgmt_queue.py @@ -55,9 +55,14 @@ def get_and_update_queue(servicebus_mgmt_client): print("Dead Lettering on Message Expiration:", queue_properties.dead_lettering_on_message_expiration) print("Please refer to QueueDescription for complete available settings.") print("") + # update by updating the properties in the model queue_properties.max_delivery_count = 5 servicebus_mgmt_client.update_queue(queue_properties) + # update by passing keyword arguments + queue_properties = servicebus_mgmt_client.get_queue(QUEUE_NAME) + servicebus_mgmt_client.update_queue(queue_properties, max_delivery_count=3) + def get_queue_runtime_properties(servicebus_mgmt_client): print("-- Get Queue Runtime Properties") diff --git a/sdk/servicebus/azure-servicebus/samples/sync_samples/mgmt_rule.py b/sdk/servicebus/azure-servicebus/samples/sync_samples/mgmt_rule.py index e361339943d8..80bec0346918 100644 --- a/sdk/servicebus/azure-servicebus/samples/sync_samples/mgmt_rule.py +++ b/sdk/servicebus/azure-servicebus/samples/sync_samples/mgmt_rule.py @@ -42,7 +42,7 @@ def create_rule(servicebus_mgmt_client): "property1 = @param1 AND property2 = @param2", parameters={ "@param1": "value", - "@param2" : 1 + "@param2": 1 } ) servicebus_mgmt_client.create_rule(TOPIC_NAME, SUBSCRIPTION_NAME, RULE_WITH_SQL_FILTER_NAME, filter=sql_filter_parametrized) @@ -72,8 +72,32 @@ def get_and_update_rule(servicebus_mgmt_client): print("Rule Name:", rule_properties.name) print("Please refer to RuleProperties for complete available properties.") print("") + + # update by updating the properties in the model + rule_properties.filter = SqlRuleFilter( + "property1 = @param1 AND property2 = @param2", + parameters={ + "@param1": "value2", + "@param2": 2 + } + ) servicebus_mgmt_client.update_rule(TOPIC_NAME, SUBSCRIPTION_NAME, rule_properties) + # update by passing keyword arguments + rule_properties = servicebus_mgmt_client.get_rule(TOPIC_NAME, SUBSCRIPTION_NAME, RULE_NAME) + servicebus_mgmt_client.update_rule( + TOPIC_NAME, + SUBSCRIPTION_NAME, + rule_properties, + filter=SqlRuleFilter( + "property1 = @param1 AND property2 = @param2", + parameters={ + "@param1": "value3", + "@param2": 3 + } + ) + ) + with ServiceBusAdministrationClient.from_connection_string(CONNECTION_STR) as servicebus_mgmt_client: create_rule(servicebus_mgmt_client) diff --git a/sdk/servicebus/azure-servicebus/samples/sync_samples/mgmt_subscription.py b/sdk/servicebus/azure-servicebus/samples/sync_samples/mgmt_subscription.py index 89a3b5a3207b..37e2d3e55950 100644 --- a/sdk/servicebus/azure-servicebus/samples/sync_samples/mgmt_subscription.py +++ b/sdk/servicebus/azure-servicebus/samples/sync_samples/mgmt_subscription.py @@ -53,9 +53,14 @@ def get_and_update_subscription(servicebus_mgmt_client): print("Subscription Name:", subscription_properties.name) print("Please refer to SubscriptionDescription for complete available settings.") print("") + # update by updating the properties in the model subscription_properties.max_delivery_count = 5 servicebus_mgmt_client.update_subscription(TOPIC_NAME, subscription_properties) + # update by passing keyword arguments + subscription_properties = servicebus_mgmt_client.get_subscription(TOPIC_NAME, SUBSCRIPTION_NAME) + servicebus_mgmt_client.update_subscription(TOPIC_NAME, subscription_properties, max_delivery_count=3) + def get_subscription_runtime_properties(servicebus_mgmt_client): print("-- Get Subscription Runtime Properties") diff --git a/sdk/servicebus/azure-servicebus/samples/sync_samples/mgmt_topic.py b/sdk/servicebus/azure-servicebus/samples/sync_samples/mgmt_topic.py index 792b1088bfe3..f5c78dd80801 100644 --- a/sdk/servicebus/azure-servicebus/samples/sync_samples/mgmt_topic.py +++ b/sdk/servicebus/azure-servicebus/samples/sync_samples/mgmt_topic.py @@ -18,6 +18,7 @@ import os import uuid +import datetime from azure.servicebus.management import ServiceBusAdministrationClient CONNECTION_STR = os.environ['SERVICE_BUS_CONNECTION_STR'] @@ -52,9 +53,17 @@ def get_and_update_topic(servicebus_mgmt_client): print("Topic Name:", topic_properties.name) print("Please refer to TopicDescription for complete available settings.") print("") - topic_properties.max_delivery_count = 5 + # update by updating the properties in the model + topic_properties.default_message_time_to_live = datetime.timedelta(minutes=10) servicebus_mgmt_client.update_topic(topic_properties) + # update by passing keyword arguments + topic_properties = servicebus_mgmt_client.get_topic(TOPIC_NAME) + servicebus_mgmt_client.update_topic( + topic_properties, + default_message_time_to_live=datetime.timedelta(minutes=15) + ) + def get_topic_runtime_properties(servicebus_mgmt_client): print("-- Get Topic Runtime Properties")