Esempio n. 1
0
 def test_create_fs_mp_success(self):
     cli = t_nas()
     mover = VNXMover(mover_id=2, cli=cli)
     VNXFsMountPoint.create(cli, '/fs_100g', 244, mover)
Esempio n. 2
0
 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))
Esempio n. 3
0
 def f():
     cli = t_nas()
     mover = VNXMover(mover_id=2, cli=cli)
     VNXFsMountPoint.create(cli, '/zhuanc_fs_100g', 244, mover)
Esempio n. 4
0
 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)
Esempio n. 5
0
 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))
Esempio n. 6
0
 def test_create_fs_mp_success(self):
     cli = t_nas()
     mover = VNXMover(mover_id=2, cli=cli)
     VNXFsMountPoint.create(cli, '/fs_100g', 244, mover)
Esempio n. 7
0
 def f():
     cli = t_nas()
     mover = VNXMover(mover_id=2, cli=cli)
     VNXFsMountPoint.create(cli, '/zhuanc_fs_100g', 244, mover)
Esempio n. 8
0
 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))