X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=ceph%2Fsrc%2Fpython-common%2Fceph%2Ftests%2Ftest_disk_selector.py;h=6931544d45313071b72a018cbd6e305bb20ae541;hb=f6b5b4d738b87d88d2de35127b6b0e41eae2a272;hp=b60e0e30f03f3b2ccec08756d6d59b994340228a;hpb=12732ca2e80d168d344a265acffc1fbd1fa1f1b5;p=ceph.git diff --git a/ceph/src/python-common/ceph/tests/test_disk_selector.py b/ceph/src/python-common/ceph/tests/test_disk_selector.py index b60e0e30f..6931544d4 100644 --- a/ceph/src/python-common/ceph/tests/test_disk_selector.py +++ b/ceph/src/python-common/ceph/tests/test_disk_selector.py @@ -325,7 +325,10 @@ class TestDriveGroup(object): if empty: raw_sample = { 'service_type': 'osd', - 'placement': {'host_pattern': 'data*'} + 'placement': {'host_pattern': 'data*'}, + 'data_devices': { + 'all': True + }, } dgo = DriveGroupSpec.from_json(raw_sample) @@ -384,7 +387,7 @@ class TestDriveGroup(object): def test_data_devices_prop_empty(self, test_fix): test_fix = test_fix(empty=True) - assert test_fix.data_devices is None + assert test_fix.db_devices is None def test_db_devices_prop(self, test_fix): test_fix = test_fix()