示例#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")