search for: _finalized

Displaying 6 results from an estimated 6 matches for "_finalized".

Did you mean: finalized
2018 Sep 20
0
[PATCH v2 3/3] v2v: -o rhv-upload: Add a test.
...return types.Disk() + + def remove(self): + pass + +class DisksService(object): + def add(self, disk=None): + return disk + + def disk_service(self, disk_id): + return DiskService(disk_id) + +class ImageTransferService(object): + def __init__(self): + self._finalized = False + + def get(self): + if self._finalized: + raise NotFoundError + else: + return types.ImageTransfer() + + def finalize(self): + self._finalized = True + +class ImageTransfersService(object): + def add(self, transfer): + return trans...
2018 Sep 20
7
[PATCH v2 0/3] v2v: -o rhv-upload: Add a test.
v1 was here: https://www.redhat.com/archives/libguestfs/2018-September/msg00121.html v2: - Rewrote patch 2 from scratch so it incorporates Nir's suggestions. - Add fake module to EXTRA_DIST. - Retested. Unfortunately I am no longer able to test the ordinary conversion path because ovirtsdk4 is incompatible with Fedora 29 / Python 3.7:
2019 Sep 19
2
[PATCH] v2v: -o rhv-upload: adapt phony ovirtsdk4 module to recent changes
...: pass class DisksService(object): def add(self, disk=None): + disk.id = "756d81b0-d5c0-41bc-9bbe-b343c3fa3490" return disk def disk_service(self, disk_id): @@ -89,6 +98,9 @@ class ImageTransferService(object): def __init__(self): self._finalized = False + def cancel(self): + pass + def get(self): if self._finalized: raise NotFoundError @@ -105,11 +117,8 @@ class ImageTransfersService(object): def image_transfer_service(self, id): return ImageTransferService() -class StorageDomain(objec...
2018 Sep 19
4
[PATCH 0/3] v2v: -o rhv-upload: Add a test.
This adds a test of -o rhv-upload. Obviously for an upstream test we cannot require a working oVirt server. This test works by faking the ovirtsdk4 Python module, setting PYTHONPATH so that the fake module is picked up instead of the real module (if installed). However it's more complex than that because the nbdkit plugin also expects to talk to a working imageio HTTPS server. Therefore
2018 Oct 09
2
Re: [PATCH v2 3/3] v2v: -o rhv-upload: Add a test.
...pass > + > +class DisksService(object): > + def add(self, disk=None): > + return disk > + > + def disk_service(self, disk_id): > + return DiskService(disk_id) > + > +class ImageTransferService(object): > + def __init__(self): > + self._finalized = False > + > + def get(self): > + if self._finalized: > + raise NotFoundError > + else: > + return types.ImageTransfer() > + > + def finalize(self): > + self._finalized = True > + > +class ImageTransfersService(objec...
2020 Jan 10
7
[v2v PATCH 0/6] Various Python pycodestyle fixes
Fixes the majority of the pycodestyle issues in the Python scripts, and fix the existing test-v2v-python-syntax.sh to use pycodestyle to actually perform style checks. Pino Toscano (6): PEP 8: adapt whitespaces in lines PEP 8: move imports at the top PEP 8: adapt empty lines tests: find all the Python scripts for syntax checks -o rhv-upload: remove unused Python imports Revamp check