def get_cifs_server(self, name=None, mover_id=None, is_vdm=None): return VNXCifsServer.get(cli=self._file_cli, name=name, mover_id=mover_id, is_vdm=is_vdm)
def test_get_all_by_mover_not_found(self): cifs_list = VNXCifsServer.get(t_nas(), mover_id=1, is_vdm=True) assert_that(len(cifs_list), equal_to(0))
def test_get_by_name(self): cifs = VNXCifsServer.get(t_nas(), 'CIFS') self.verify_pie_cifs(cifs)
def test_get_all(self): cifs_list = VNXCifsServer.get(t_nas()) assert_that(len(cifs_list), greater_than_or_equal_to(1)) cifs = next(cifs for cifs in cifs_list if cifs.name == 'CIFS') self.verify_pie_cifs(cifs)
def test_get_all_by_mover(self): cifs_list = VNXCifsServer.get(t_nas(), mover_id=1) cifs = next(cifs for cifs in cifs_list if cifs.name == 'CIFS') self.verify_pie_cifs(cifs)
def get_cifs_server(self, name=None, mover_id=None, is_vdm=None): return VNXCifsServer.get(cli=self._file_cli, name=name, mover_id=mover_id, is_vdm=is_vdm)
def test_get_by_name(self): cifs = VNXCifsServer.get(t_nas(), 'CIFS') self.verify_pie_cifs(cifs)
def test_get_all_by_mover_not_found(self): cifs_list = VNXCifsServer.get(t_nas(), mover_id=1, is_vdm=True) assert_that(len(cifs_list), equal_to(0))
def test_get_all_by_mover(self): cifs_list = VNXCifsServer.get(t_nas(), mover_id=1) cifs = next(cifs for cifs in cifs_list if cifs.name == 'CIFS') self.verify_pie_cifs(cifs)
def test_get_all(self): cifs_list = VNXCifsServer.get(t_nas()) assert_that(len(cifs_list), greater_than_or_equal_to(1)) cifs = next(cifs for cifs in cifs_list if cifs.name == 'CIFS') self.verify_pie_cifs(cifs)