Example #1
0
 def get_nfs_share(self, mover=None, path=None):
     return VNXNfsShare.get(cli=self._file_cli, mover=mover, path=path)
Example #2
0
 def get_nfs_share(self, mover=None, path=None):
     return VNXNfsShare.get(cli=self._file_cli, mover=mover, path=path)
Example #3
0
 def test_get_share_by_path_success(self):
     path = '/EEE'
     shares = VNXNfsShare.get(t_nas(), path=path)
     assert_that(len(shares), equal_to(1))
     share = next(s for s in shares if s.path == path)
     self.verify_share_eee(share)
Example #4
0
 def test_get_share_by_mover_id(self):
     mover = self.get_mover_1()
     shares = VNXNfsShare.get(t_nas(), mover=mover)
     assert_that(len(shares), equal_to(24))
     share = next(s for s in shares if s.path == '/EEE')
     self.verify_share_eee(share)
Example #5
0
 def test_get_all_share(self):
     shares = VNXNfsShare.get(t_nas())
     assert_that(len(shares), equal_to(26))
     share = next(s for s in shares if s.path == '/EEE')
     self.verify_share_eee(share)
Example #6
0
 def f():
     path = '/EEE'
     shares = VNXNfsShare.get(t_nas(), path=path)
     assert_that(len(shares), equal_to(1))
Example #7
0
 def test_mover_property(self):
     mover = self.get_mover_1()
     share = VNXNfsShare.get(cli=t_nas(), mover=mover, path='/EEE')
     mover = share.mover
     assert_that(mover.existed, equal_to(True))
     assert_that(mover.role, equal_to('primary'))
Example #8
0
 def test_fs_property(self):
     mover = self.get_mover_1()
     share = VNXNfsShare.get(cli=t_nas(), mover=mover, path='/EEE')
     fs = share.fs
     assert_that(fs.existed, equal_to(True))
     assert_that(fs.fs_id, equal_to(243))
Example #9
0
 def test_get_share_by_mover_id(self):
     mover = self.get_mover_1()
     shares = VNXNfsShare.get(t_nas(), mover=mover)
     assert_that(len(shares), equal_to(24))
     share = next(s for s in shares if s.path == '/EEE')
     self.verify_share_eee(share)
Example #10
0
 def test_get_share_by_path(self):
     path = '/EEE'
     shares = VNXNfsShare.get(t_nas(), path=path)
     assert_that(len(shares), equal_to(1))
     share = next(s for s in shares if s.path == path)
     self.verify_share_eee(share)
Example #11
0
 def test_get_all_share(self):
     shares = VNXNfsShare.get(t_nas())
     assert_that(len(shares), equal_to(26))
     share = next(s for s in shares if s.path == '/EEE')
     self.verify_share_eee(share)
Example #12
0
 def test_fs_property(self):
     mover = self.get_mover_1()
     share = VNXNfsShare.get(cli=t_nas(), mover=mover, path='/EEE')
     fs = share.fs
     assert_that(fs.existed, equal_to(True))
     assert_that(fs.fs_id, equal_to(243))
Example #13
0
 def test_mover_property(self):
     mover = self.get_mover_1()
     share = VNXNfsShare.get(cli=t_nas(), mover=mover, path='/EEE')
     mover = share.mover
     assert_that(mover.existed, equal_to(True))
     assert_that(mover.role, equal_to('primary'))