]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw/test/notification: add more info when retry test fail 64535/head
authorYuval Lifshitz <ylifshit@ibm.com>
Wed, 16 Jul 2025 14:51:22 +0000 (14:51 +0000)
committerYuval Lifshitz <ylifshit@ibm.com>
Thu, 17 Jul 2025 07:54:57 +0000 (07:54 +0000)
Signed-off-by: Yuval Lifshitz <ylifshit@ibm.com>
src/test/rgw/bucket_notification/test_bn.py

index 4f5fd92a2925925ca4c1e1ca480d83ae1b7d7c29..229dc316481dfbc09fcc1deb6f82b281ef3aa18b 100644 (file)
@@ -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