mirror of
https://github.com/ceph/ceph
synced 2025-02-23 19:17:37 +00:00
ceph-volume tests update to get_lv from get_journal_lv
Signed-off-by: Alfredo Deza <adeza@redhat.com>
This commit is contained in:
parent
d5984bad97
commit
9be1012072
@ -43,13 +43,13 @@ class TestGetJournalLV(object):
|
||||
def test_no_journal_on_invalid_path(self, monkeypatch, arg):
|
||||
monkeypatch.setattr(lvm.prepare.api, 'get_lv', lambda **kw: False)
|
||||
prepare = lvm.prepare.Prepare([])
|
||||
assert prepare.get_journal_lv(arg) is None
|
||||
assert prepare.get_lv(arg) is None
|
||||
|
||||
def test_no_journal_lv_found(self, monkeypatch):
|
||||
# patch it with 0 so we know we are getting to get_lv
|
||||
monkeypatch.setattr(lvm.prepare.api, 'get_lv', lambda **kw: 0)
|
||||
prepare = lvm.prepare.Prepare([])
|
||||
assert prepare.get_journal_lv('vg/lv') == 0
|
||||
assert prepare.get_lv('vg/lv') == 0
|
||||
|
||||
|
||||
class TestActivate(object):
|
||||
|
Loading…
Reference in New Issue
Block a user