def test_create_fs_mp_success(self): cli = t_nas() mover = VNXMover(mover_id=2, cli=cli) VNXFsMountPoint.create(cli, '/fs_100g', 244, mover)
def test_get_not_found(self): mover = VNXMover(mover_id=1) mp = VNXFsMountPoint(mover=mover, path='/not_found', cli=t_nas()) assert_that(mp.existed, equal_to(False))
def f(): cli = t_nas() mover = VNXMover(mover_id=2, cli=cli) VNXFsMountPoint.create(cli, '/zhuanc_fs_100g', 244, mover)
def test_get_by_path(self): mover = VNXMover(mover_id=1) mp = VNXFsMountPoint(mover=mover, path='/zhuanc_fs_100g', cli=t_nas()) self.verify_fs_100g(mp)
def test_delete_fs_mp(self): cli = t_nas() mover = VNXMover(mover_id=2, cli=cli) resp = VNXFsMountPoint(mover, '/testfs', cli).delete() assert_that(resp.is_ok(), equal_to(True))
def test_create_fs_mp_success(self): cli = t_nas() mover = VNXMover(mover_id=2, cli=cli) VNXFsMountPoint.create(cli, '/fs_100g', 244, mover)
def f(): cli = t_nas() mover = VNXMover(mover_id=2, cli=cli) VNXFsMountPoint.create(cli, '/zhuanc_fs_100g', 244, mover)
def test_delete_fs_mp(self): cli = t_nas() mover = VNXMover(mover_id=2, cli=cli) resp = VNXFsMountPoint(mover, '/testfs', cli).delete() assert_that(resp.is_ok(), equal_to(True))