def get_nfs_share(self, mover=None, path=None): return VNXNfsShare.get(cli=self._file_cli, mover=mover, path=path)
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)
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)
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)
def f(): path = '/EEE' shares = VNXNfsShare.get(t_nas(), path=path) assert_that(len(shares), equal_to(1))
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'))
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))
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)