From: Alfredo Deza Date: Mon, 29 Jul 2019 19:50:14 +0000 (-0400) Subject: ceph-volume tests: ensure that better heuristics exist for objectstore detection X-Git-Tag: v13.2.7~198^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=00c4ff0afcf284db205dbcc7a4f4579b120a28f9;p=ceph.git ceph-volume tests: ensure that better heuristics exist for objectstore detection Signed-off-by: Alfredo Deza (cherry picked from commit e48ad3ab26fdab72755bc933781db3bfc6001a30) --- diff --git a/src/ceph-volume/ceph_volume/tests/devices/simple/test_activate.py b/src/ceph-volume/ceph_volume/tests/devices/simple/test_activate.py index eea0b08675a7..97c155f18877 100644 --- a/src/ceph-volume/ceph_volume/tests/devices/simple/test_activate.py +++ b/src/ceph-volume/ceph_volume/tests/devices/simple/test_activate.py @@ -159,11 +159,21 @@ class TestValidateDevices(object): result = activation.validate_devices({'type': 'filestore', 'journal': {}, 'data': {}}) assert result is True + def test_filestore_without_type(self): + activation = activate.Activate([]) + result = activation.validate_devices({'journal': {}, 'data': {}}) + assert result is True + def test_bluestore_with_all_devices(self): activation = activate.Activate([]) result = activation.validate_devices({'type': 'bluestore', 'data': {}, 'block': {}}) assert result is True + def test_bluestore_without_type(self): + activation = activate.Activate([]) + result = activation.validate_devices({'data': {}, 'block': {}}) + assert result is True + def test_bluestore_is_default(self): activation = activate.Activate([]) result = activation.validate_devices({'data': {}, 'block': {}})