]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph-volume/test: patch VolumeGroups 32558/head
authorJan Fajerski <jfajerski@suse.com>
Tue, 3 Dec 2019 15:42:18 +0000 (16:42 +0100)
committerShyukri Shyukriev <shshyukriev@suse.com>
Wed, 8 Jan 2020 21:10:20 +0000 (23:10 +0200)
In ceph_volume/tests/devices/lvm/strategies/test_bluestore.py the test
TestMixedType.test_filter_all_data_devs must patch VolumeGroups.

Fixes: https://tracker.ceph.com/issues/43107
Signed-off-by: Jan Fajerski <jfajerski@suse.com>
(cherry picked from commit 5e115fd3763b182afc8d3f9f34f7a95a19c1d9d4)

src/ceph-volume/ceph_volume/tests/devices/lvm/strategies/test_bluestore.py

index 69be0d5c0a348233c208021a2207b1febc0930a2..a652aa28f1a86e0f3b3ba46bbf2006bb441c21c0 100644 (file)
@@ -61,6 +61,7 @@ class TestMixedType(object):
                        block_db_size=None, block_wal_size=None,
                        osd_ids=[])
         monkeypatch.setattr(lvm, 'VolumeGroup', lambda x, **kw: [])
+        monkeypatch.setattr(lvm, 'VolumeGroups', lambda: [])
         bluestore.MixedType(args, [], [db_dev], [])