Skip to content

Commit

Permalink
ceph-volume tests: ensure that better heuristics exist for objectstor…
Browse files Browse the repository at this point in the history
…e detection

Signed-off-by: Alfredo Deza <adeza@redhat.com>
  • Loading branch information
Alfredo Deza committed Jul 29, 2019
1 parent b6a449e commit e48ad3a
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/ceph-volume/ceph_volume/tests/devices/simple/test_activate.py
Expand Up @@ -159,11 +159,21 @@ def test_filestore_with_all_devices(self):
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': {}})
Expand Down

0 comments on commit e48ad3a

Please sign in to comment.