示例#1
0
文件: system.py 项目: crook/storops
 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
文件: system.py 项目: seven/storops
 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
文件: test_vdm.py 项目: crook/storops
 def test_get_by_name(self):
     dm = VNXVdm.get(name='VDM_ESA', cli=t_nas())
     self.verify_vdm_2(dm)
示例#4
0
文件: test_vdm.py 项目: crook/storops
 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
文件: test_vdm.py 项目: crook/storops
 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)