From: Matan Breizman Date: Mon, 15 Aug 2022 11:43:38 +0000 (+0000) Subject: qa/suites/crimson-rados: Enable test_rados snap test in Crimson's suite X-Git-Tag: v18.0.0~197^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=dcca182d9f20961d167ba96eb58d359dc06b0b27;p=ceph.git qa/suites/crimson-rados: Enable test_rados snap test in Crimson's suite Re-enanling snap tests in test_rados.py. Currently disabling rollback tests. Signed-off-by: Matan Breizman --- diff --git a/qa/suites/crimson-rados/basic/tasks/rados_python.yaml b/qa/suites/crimson-rados/basic/tasks/rados_python.yaml index 5b67dde89e01..fda52a8b9746 100644 --- a/qa/suites/crimson-rados/basic/tasks/rados_python.yaml +++ b/qa/suites/crimson-rados/basic/tasks/rados_python.yaml @@ -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)' diff --git a/src/test/pybind/test_rados.py b/src/test/pybind/test_rados.py index 3720007d1a7d..aae1669cb43f 100644 --- a/src/test/pybind/test_rados.py +++ b/src/test/pybind/test_rados.py @@ -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([])