[EventHub/ServiceBus] temporarily skip Canary, not supported by TME tenant #37796
Azure Pipelines / python - servicebus - tests
failed
Oct 10, 2024 in 2h 56m 13s
Build #20241010.2 had test failures
Details
- Failed: 1 (0.04%)
- Passed: 2,240 (94.75%)
- Other: 123 (5.20%)
- Total: 2,364
- 21598 of 26300 line covered (82.12%)
Annotations
Check failure on line 3083 in Build log
azure-pipelines / python - servicebus - tests
Build log #L3083
PowerShell exited with code '1'.
Check failure on line 19 in Build log
azure-pipelines / python - servicebus - tests
Build log #L19
There are one or more test failures detected in result files. Detailed summary of published test results can be viewed in the Tests tab.
Check failure on line 1 in test_async_session_by_servicebus_client_renew_client_locks[pyamqp]
azure-pipelines / python - servicebus - tests
test_async_session_by_servicebus_client_renew_client_locks[pyamqp]
Exception: Preparer failure when creating resource ServiceBusQueuePreparer for test <test_sessions_async.TestServiceBusAsyncSession object at 0x103c3e610>: Operation returned an invalid status 'Internal Server Error'
Raw output
self = <tests.servicebus_preparer.ServiceBusQueuePreparer object at 0x103e807d0>
test_class_instance = <test_sessions_async.TestServiceBusAsyncSession object at 0x103c3e610>
kwargs = {'__aggregate_cache_key': (('ServiceBusQueuePreparer', False, False, True, 'PT30S'), (('ServiceBusNamespacePreparer', ... 'servicebus_namespace': <azure.mgmt.servicebus.v2021_11_01.models._models_py3.SBNamespace object at 0x1041dde90>, ...}
resource_name = 'servicebustestciiwlxuzlk', retries = 4, i = 0
msg = "Preparer failure when creating resource ServiceBusQueuePreparer for test <test_sessions_async.TestServiceBusAsyncSession object at 0x103c3e610>: Operation returned an invalid status 'Internal Server Error'"
def _prepare_create_resource(self, test_class_instance, **kwargs):
self.test_class_instance = test_class_instance
# This latter conditional is to triage a specific failure mode:
# If the first cached test run does not have any http traffic, a recording will not have been
# generated, so in_recording will be True even if live_test is false, so a random name would be given.
# In cached mode we need to avoid this because then for tests with recordings, they would not have a moniker.
if test_class_instance.in_recording and not (
not test_class_instance.is_live and test_class_instance.in_recording and self._use_cache
):
resource_name = self.random_name
else:
resource_name = self.moniker
_logger.debug("Creating resource %s for %s", resource_name, self.__class__.__name__)
with self.override_disable_recording():
retries = 4
for i in range(retries):
try:
> parameter_update = self.create_resource(resource_name, **kwargs)
.tox/whl/lib/python3.11/site-packages/devtools_testutils/preparers.py:54:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <tests.servicebus_preparer.ServiceBusQueuePreparer object at 0x103e807d0>
name = 'servicebustestciiwlxuzlk'
kwargs = {'__aggregate_cache_key': (('ServiceBusQueuePreparer', False, False, True, 'PT30S'), (('ServiceBusNamespacePreparer', ... 'servicebus_namespace': <azure.mgmt.servicebus.v2021_11_01.models._models_py3.SBNamespace object at 0x1041dde90>, ...}
group = FakeResource(name='rg-servicebus-t1817b34a2c104b4f', id='/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg-servicebus-t1817b34a2c104b4f')
namespace = <azure.mgmt.servicebus.v2021_11_01.models._models_py3.SBNamespace object at 0x1041dde90>
retries = 4, i = 0
error = "The requested resource {'additional_properties': {}, 'id': '/subscriptions/4d042dc6-fe17-4698-a23f-ec6a8d1e98f4/resou...tion': None, 'private_endpoint_connections': None, 'disable_local_auth': False, 'alternate_name': None} does not exist"
not_found_error = "Operation returned an invalid status code 'Not Found'"
def create_resource(self, name, **kwargs):
if self.is_live:
self.client = self.create_mgmt_client(ServiceBusManagementClient, base_url=BASE_URL, credential_scopes=CREDENTIAL_SCOPES)
group = self._get_resource_group(**kwargs)
namespace = self._get_namespace(**kwargs)
retries = 4
for i in range(retries):
try:
> self.resource = self.client.queues.create_or_update(
group.name,
namespace.name,
name,
SBQueue(
lock_duration=self.lock_duration,
requires_duplicate_detection = self.requires_duplicate_detection,
dead_lettering_on_message_expiration = self.dead_lettering_on_message_expiration,
requires_session = self.requires_session)
)
tests/servicebus_preparer.py:419:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
Loading