]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
test/rgw: add multisite test_bucket_creation_time() 31648/head
authorCasey Bodley <cbodley@redhat.com>
Thu, 9 May 2019 14:07:52 +0000 (10:07 -0400)
committerNathan Cutler <ncutler@suse.com>
Thu, 14 Nov 2019 18:24:46 +0000 (19:24 +0100)
does not create any buckets itself, but checks that all creation times
match on buckets created by other tests

Signed-off-by: Casey Bodley <cbodley@redhat.com>
(cherry picked from commit 8df991c5cc48a6709185edf506d8bdec4d28e371)

src/test/rgw/rgw_multi/tests.py

index 97f2409267cfaad3061802a76f30e764e94e9b76..ae80b229d7ee37a6d551fd14f3b7c3ac8f379485 100644 (file)
@@ -1224,3 +1224,13 @@ def test_bucket_index_log_trim():
     # verify cold bucket has empty bilog
     cold_bilog = bilog_list(zone.zone, cold_bucket.name)
     assert(len(cold_bilog) == 0)
+
+def test_bucket_creation_time():
+    zonegroup = realm.master_zonegroup()
+    zonegroup_conns = ZonegroupConns(zonegroup)
+
+    zone_buckets = [zone.get_connection().get_all_buckets() for zone in zonegroup_conns.rw_zones]
+    for z1, z2 in combinations(zone_buckets, 2):
+        for a, b in zip(z1, z2):
+            eq(a.name, b.name)
+            eq(a.creation_date, b.creation_date)