]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph-volume/test: patch VolumeGroups 32559/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:11:22 +0000 (23:11 +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 e5f366b443385e93ebc028fbe1857a8d784975ca..2bfe8327db0b8cda5f7b8b38f240ee5b63c719c7 100644 (file)
@@ -62,6 +62,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], [])