def filesystem(self): return VNXFileSystem(fs_id=self.fs_id, cli=self._cli)
def test_create_success(self): fs = VNXFileSystem(name='zzz', cli=t_nas()) mover = self.get_mover_1() share = VNXCifsShare.create(t_nas(), fs, 'CIFS', mover) assert_that(share.path, equal_to('\zzz'))
def test_get_by_id(self): fs = VNXFileSystem(fs_id=27, cli=t_nas()) assert_that(fs.existed, equal_to(True)) assert_that(fs.volume, equal_to(125))
def test_get_not_found(self): fs = VNXFileSystem('abc', cli=t_nas()) assert_that(fs._get_name(), equal_to('abc')) assert_that(fs.existed, equal_to(False))
def test_create_fs_snap(self): fs = VNXFileSystem(cli=t_nas(), fs_id=222) snap = fs.create_snap('test', pool=61) assert_that(snap.name, equal_to('test')) assert_that(snap.fs_id, equal_to(222)) assert_that(snap.existed, equal_to(True))
def test_get(self): fs = VNXFileSystem('fs_src0', cli=t_nas()) self.verify_fs_src0(fs)
def f(): fs = VNXFileSystem(cli=t_nas(), fs_id=243) fs.extend(1024 * 2)
def test_extend_fs(self): fs = VNXFileSystem(cli=t_nas(), fs_id=243) resp = fs.extend(1024 * 4) assert_that(resp.is_ok(), equal_to(True))
def test_delete_fs_success(self): fs = VNXFileSystem(fs_id=98, cli=t_nas()) resp = fs.delete() assert_that(resp.is_ok(), equal_to(True))
def f(): fs = VNXFileSystem(fs_id=99, cli=t_nas()) fs.delete()
def f(): fs = VNXFileSystem(fs_id=99, cli=t_nas()) fs.remove()