Exemplo n.º 1
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)
Exemplo n.º 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))
Exemplo n.º 3
0
 def test_get_by_name(self):
     cifs = VNXCifsServer.get(t_nas(), 'CIFS')
     self.verify_pie_cifs(cifs)
Exemplo n.º 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)
Exemplo n.º 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)
Exemplo n.º 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)
Exemplo n.º 7
0
 def test_get_by_name(self):
     cifs = VNXCifsServer.get(t_nas(), 'CIFS')
     self.verify_pie_cifs(cifs)
Exemplo n.º 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))
Exemplo n.º 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)
Exemplo n.º 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)