Ejemplo n.º 1
0
 def test_get_by_mover(self):
     mover = self.get_mover_1()
     shares = VNXCifsShare.get(cli=t_nas(), mover=mover)
     for share in shares:
         assert_that(share.mover.get_mover_id(),
                     equal_to(mover.get_mover_id()))
         assert_that(share.mover.is_vdm, equal_to(mover.is_vdm))
Ejemplo n.º 2
0
 def test_get_by_mover(self):
     mover = self.get_mover_1()
     shares = VNXCifsShare.get(cli=t_nas(), mover=mover)
     for share in shares:
         assert_that(share.mover.get_mover_id(),
                     equal_to(mover.get_mover_id()))
         assert_that(share.mover.is_vdm, equal_to(mover.is_vdm))
Ejemplo n.º 3
0
 def get_cifs_share(self, name=None, mover=None, server_name=None):
     return VNXCifsShare.get(
         self._file_cli, name=name, mover=mover, server_name=server_name)
Ejemplo n.º 4
0
 def test_get_not_found(self):
     mover = self.get_mover_1()
     cifs = VNXCifsShare.get(name='not_exists', mover=mover, cli=t_nas())
     assert_that(cifs.existed, equal_to(False))
Ejemplo n.º 5
0
 def test_get_cifs_share(self):
     mover = self.get_mover_1()
     share = VNXCifsShare.get(name='zhuanc_cifs_100g', mover=mover,
                              cli=t_nas())
     self.verify_share_zhuanc(share)
Ejemplo n.º 6
0
 def test_get_by_share_name(self):
     shares = VNXCifsShare.get(cli=t_nas(), name='zhuanc_cifs_100g')
     assert_that(len(shares), equal_to(1))
     self.verify_share_zhuanc(shares[0])
Ejemplo n.º 7
0
 def test_get_all(self):
     shares = VNXCifsShare.get(cli=t_nas())
     assert_that(len(shares), equal_to(16))
     share = next(s for s in shares if s.name == 'zhuanc_cifs_100g')
     self.verify_share_zhuanc(share)
Ejemplo n.º 8
0
 def test_get_not_found(self):
     mover = self.get_mover_1()
     cifs = VNXCifsShare.get(name='not_exists', mover=mover, cli=t_nas())
     assert_that(cifs.existed, equal_to(False))
Ejemplo n.º 9
0
 def test_get_cifs_share(self):
     mover = self.get_mover_1()
     share = VNXCifsShare.get(name='zhuanc_cifs_100g', mover=mover,
                              cli=t_nas())
     self.verify_share_zhuanc(share)
Ejemplo n.º 10
0
 def test_get_by_share_name(self):
     shares = VNXCifsShare.get(cli=t_nas(), name='zhuanc_cifs_100g')
     assert_that(len(shares), equal_to(1))
     self.verify_share_zhuanc(shares[0])
Ejemplo n.º 11
0
 def test_get_all(self):
     shares = VNXCifsShare.get(cli=t_nas())
     assert_that(len(shares), equal_to(16))
     share = next(s for s in shares if s.name == 'zhuanc_cifs_100g')
     self.verify_share_zhuanc(share)
Ejemplo n.º 12
0
 def get_cifs_share(self, name=None, mover=None, server_name=None):
     return VNXCifsShare.get(self._file_cli,
                             name=name,
                             mover=mover,
                             server_name=server_name)