예제 #1
0
def test_resize_map_failed(fake_multipathd):
    fake_multipathd.write(MULTIPATHD_SCRIPT.format("fail"))

    with pytest.raises(multipath.Error):
        multipath.resize_map("fake_device")
예제 #2
0
파일: multipath.py 프로젝트: dong-df/vdsm
def multipath_resize_map(name):
    return multipath.resize_map(name)
예제 #3
0
def test_resize_map(fake_multipathd):
    fake_multipathd.write(MULTIPATHD_SCRIPT.format("ok"))
    multipath.resize_map("fake_device")