Пример #1
0
 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
Пример #2
0
 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
Пример #3
0
 def test_get_by_name(self):
     dm = VNXVdm.get(name='VDM_ESA', cli=t_nas())
     self.verify_vdm_2(dm)
Пример #4
0
 def test_get_by_id_invalid(self):
     dm = VNXVdm.get(vdm_id=1, cli=t_nas())
     assert_that(dm.existed, equal_to(False))
Пример #5
0
 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)
Пример #6
0
 def test_get_by_name(self):
     dm = VNXVdm.get(name='VDM_ESA', cli=t_nas())
     self.verify_vdm_2(dm)
Пример #7
0
 def test_get_by_id_invalid(self):
     dm = VNXVdm.get(vdm_id=1, cli=t_nas())
     assert_that(dm.existed, equal_to(False))
Пример #8
0
 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)