예제 #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)
예제 #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))
예제 #3
0
 def f():
     cli = t_nas()
     mover = VNXMover(mover_id=2, cli=cli)
     VNXFsMountPoint.create(cli, '/zhuanc_fs_100g', 244, mover)
예제 #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)
예제 #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))
예제 #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)
예제 #7
0
 def f():
     cli = t_nas()
     mover = VNXMover(mover_id=2, cli=cli)
     VNXFsMountPoint.create(cli, '/zhuanc_fs_100g', 244, mover)
예제 #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))