def get_mover(self, name=None, mover_id=None, is_vdm=False): if is_vdm: ret = VNXVdm.get(cli=self._file_cli, name=name, vdm_id=mover_id) else: ret = VNXMover.get(cli=self._file_cli, name=name, mover_id=mover_id) return ret
def test_get_by_name(self): dm = VNXVdm.get(name='VDM_ESA', cli=t_nas()) self.verify_vdm_2(dm)
def test_get_by_id_invalid(self): dm = VNXVdm.get(vdm_id=1, cli=t_nas()) assert_that(dm.existed, equal_to(False))
def test_get_all(self): vdm_list = VNXVdm.get(t_nas()) assert_that(len(vdm_list), greater_than_or_equal_to(1)) dm = next(dm for dm in vdm_list if dm.vdm_id == 2) self.verify_vdm_2(dm)