]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
python-common/tests: Remove filstore tests in test_disk_selector.py 44626/head
authorSebastian Wagner <sewagner@redhat.com>
Thu, 25 Nov 2021 16:38:35 +0000 (17:38 +0100)
committerSebastian Wagner <sewagner@redhat.com>
Wed, 19 Jan 2022 10:47:31 +0000 (11:47 +0100)
Signed-off-by: Sebastian Wagner <sewagner@redhat.com>
(cherry picked from commit 1c40ca1e37e5e798cfd9cf317f39b11dd22ea086)

src/python-common/ceph/tests/test_disk_selector.py

index 3f154c4d77b098145f67cf535503ef9a927ab768..0b7826c4b0697793ce7285c62a539b8278424038 100644 (file)
@@ -344,11 +344,6 @@ class TestDriveGroup(object):
                 }
 
             dgo = DriveGroupSpec.from_json(raw_sample)
-            if disk_format == 'filestore':
-                with pytest.raises(DriveGroupValidationError):
-                    dgo.validate()
-            else:
-                dgo.validate()
             return dgo
 
         return make_sample_data
@@ -424,20 +419,10 @@ class TestDriveGroup(object):
             limit=0,
         )
 
-    def test_journal_device_prop(self, test_fix):
-        test_fix = test_fix(disk_format='filestore')
-        assert test_fix.journal_devices == DeviceSelection(
-            size=':20G'
-        )
-
     def test_wal_device_prop_empty(self, test_fix):
         test_fix = test_fix(empty=True)
         assert test_fix.wal_devices is None
 
-    def test_filestore_format_prop(self, test_fix):
-        test_fix = test_fix(disk_format='filestore')
-        assert test_fix.objectstore == 'filestore'
-
     def test_bluestore_format_prop(self, test_fix):
         test_fix = test_fix(disk_format='bluestore')
         assert test_fix.objectstore == 'bluestore'
@@ -446,10 +431,6 @@ class TestDriveGroup(object):
         test_fix = test_fix(empty=True)
         assert test_fix.objectstore == 'bluestore'
 
-    def test_journal_size(self, test_fix):
-        test_fix = test_fix(disk_format='filestore')
-        assert test_fix.journal_size == '5G'
-
     def test_osds_per_device(self, test_fix):
         test_fix = test_fix(osds_per_device='3')
         assert test_fix.osds_per_device == '3'