]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/suites/crimson-rados: Enable test_rados snap test in Crimson's suite 46419/head
authorMatan Breizman <mbreizma@redhat.com>
Mon, 15 Aug 2022 11:43:38 +0000 (11:43 +0000)
committerMatan Breizman <mbreizma@redhat.com>
Thu, 18 Aug 2022 11:00:11 +0000 (11:00 +0000)
Re-enanling snap tests in test_rados.py.
Currently disabling rollback tests.

Signed-off-by: Matan Breizman <mbreizma@redhat.com>
qa/suites/crimson-rados/basic/tasks/rados_python.yaml
src/test/pybind/test_rados.py

index 5b67dde89e019a93cdc5fdde109d58c10bb9da20..fda52a8b9746ed4f6a8c2f36f8582bb9c1fd3644 100644 (file)
@@ -13,4 +13,4 @@ tasks:
     timeout: 1h
     clients:
       client.0:
-        - rados/test_python.sh --eval-attr 'not (wait or tier or snap or ec or bench or stats)'
+        - rados/test_python.sh --eval-attr 'not (wait or tier or rollback or ec or bench or stats)'
index 3720007d1a7d389abdbd18f8c0fc289e463104e2..aae1669cb43fa71bf9494cb6312ccff109364191 100644 (file)
@@ -367,17 +367,14 @@ class TestIoctx(object):
     def test_get_pool_name(self):
         eq(self.ioctx.get_pool_name(), 'test_pool')
 
-    @attr('snap')
     def test_create_snap(self):
         assert_raises(ObjectNotFound, self.ioctx.remove_snap, 'foo')
         self.ioctx.create_snap('foo')
         self.ioctx.remove_snap('foo')
 
-    @attr('snap')
     def test_list_snaps_empty(self):
         eq(list(self.ioctx.list_snaps()), [])
 
-    @attr('snap')
     def test_list_snaps(self):
         snaps = ['snap1', 'snap2', 'snap3']
         for snap in snaps:
@@ -385,19 +382,16 @@ class TestIoctx(object):
         listed_snaps = [snap.name for snap in self.ioctx.list_snaps()]
         eq(snaps, listed_snaps)
 
-    @attr('snap')
     def test_lookup_snap(self):
         self.ioctx.create_snap('foo')
         snap = self.ioctx.lookup_snap('foo')
         eq(snap.name, 'foo')
 
-    @attr('snap')
     def test_snap_timestamp(self):
         self.ioctx.create_snap('foo')
         snap = self.ioctx.lookup_snap('foo')
         snap.get_timestamp()
 
-    @attr('snap')
     def test_remove_snap(self):
         self.ioctx.create_snap('foo')
         (snap,) = self.ioctx.list_snaps()
@@ -405,7 +399,7 @@ class TestIoctx(object):
         self.ioctx.remove_snap('foo')
         eq(list(self.ioctx.list_snaps()), [])
 
-    @attr('snap')
+    @attr('rollback')
     def test_snap_rollback(self):
         self.ioctx.write("insnap", b"contents1")
         self.ioctx.create_snap("snap1")
@@ -415,7 +409,6 @@ class TestIoctx(object):
         self.ioctx.remove_snap("snap1")
         self.ioctx.remove_object("insnap")
 
-    @attr('snap')
     def test_snap_read(self):
         self.ioctx.write("insnap", b"contents1")
         self.ioctx.create_snap("snap1")
@@ -1262,7 +1255,6 @@ class TestObject(object):
         eq(self.object.read(3), b'bar')
         eq(self.object.read(3), b'baz')
 
-@attr('snap')
 class TestIoCtxSelfManagedSnaps(object):
     def setUp(self):
         self.rados = Rados(conffile='')
@@ -1278,6 +1270,7 @@ class TestIoCtxSelfManagedSnaps(object):
         self.rados.delete_pool('test_pool')
         self.rados.shutdown()
 
+    @attr('rollback')
     def test(self):
         # cannot mix-and-match pool and self-managed snapshot mode
         self.ioctx.set_self_managed_snap_write([])