示例#1
0
文件: system.py 项目: crook/storops
 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)
示例#2
0
 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))
示例#3
0
 def test_get_by_name(self):
     cifs = VNXCifsServer.get(t_nas(), 'CIFS')
     self.verify_pie_cifs(cifs)
示例#4
0
 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)
示例#5
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)
示例#6
0
 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)
示例#7
0
 def test_get_by_name(self):
     cifs = VNXCifsServer.get(t_nas(), 'CIFS')
     self.verify_pie_cifs(cifs)
示例#8
0
 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))
示例#9
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)
示例#10
0
 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)