From: Yuval Lifshitz Date: Wed, 16 Jul 2025 14:51:22 +0000 (+0000) Subject: rgw/test/notification: add more info when retry test fail X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=af9038831e045652f6ba4054c2fce6014c8ee3a1;p=ceph.git rgw/test/notification: add more info when retry test fail Signed-off-by: Yuval Lifshitz --- diff --git a/src/test/rgw/bucket_notification/test_bn.py b/src/test/rgw/bucket_notification/test_bn.py index 4f5fd92a29259..229dc316481df 100644 --- a/src/test/rgw/bucket_notification/test_bn.py +++ b/src/test/rgw/bucket_notification/test_bn.py @@ -572,7 +572,15 @@ def get_stats_persistent_topic(topic_name, assert_entries_number=None): assert_equal(result[1], 0) parsed_result = json.loads(result[0]) if assert_entries_number: - assert_equal(parsed_result['Topic Stats']['Entries'], assert_entries_number) + actual_number = parsed_result['Topic Stats']['Entries'] + if actual_number != assert_entries_number: + log.warning('Topic stats: %s', parsed_result) + result = admin(['topic', 'dump', '--topic', topic_name], get_config_cluster()) + parsed_result = json.loads(result[0]) + log.warning('Topic dump:') + for entry in parsed_result: + log.warning(entry) + assert_equal(actual_number, assert_entries_number) return parsed_result