search for: do_patch

Displaying 7 results from an estimated 7 matches for "do_patch".

Did you mean: wo_patch
2018 Oct 09
2
Re: [PATCH v2 3/3] v2v: -o rhv-upload: Add a test.
...application/json; > charset=UTF-8") > + self.end_headers() > + # Advertize only zero support. > + self.wfile.write(b'''{ "features": [ "zero" ] }''') > + > + # eg. zero request. Just ignore it. > + def do_PATCH(self): > This must read content-length bytes from self.rfile. > + self.send_response(200) > + self.end_headers() > + > + # Flush request. Ignore it. > + def do_PUT(self): > This must read content-length bytes from self.rfile. Both bugs are hidden by th...
2018 Oct 15
3
Re: [PATCH v2 3/3] v2v: -o rhv-upload: Add a test.
...self.end_headers() > > > + # Advertize only zero support. > > > + self.wfile.write(b'''{ "features": [ "zero" ] }''') > > > + > > > + # eg. zero request. Just ignore it. > > > + def do_PATCH(self): > > > > > > > This must read content-length bytes from self.rfile. > > > > > > > + self.send_response(200) > > > + self.end_headers() > > > + > > > + # Flush request. Ignore it. > > > + def do_...
2018 Oct 15
0
Re: [PATCH v2 3/3] v2v: -o rhv-upload: Add a test.
...=UTF-8") > > + self.end_headers() > > + # Advertize only zero support. > > + self.wfile.write(b'''{ "features": [ "zero" ] }''') > > + > > + # eg. zero request. Just ignore it. > > + def do_PATCH(self): > > > > This must read content-length bytes from self.rfile. > > > > + self.send_response(200) > > + self.end_headers() > > + > > + # Flush request. Ignore it. > > + def do_PUT(self): > > > > This must read...
2018 Nov 20
2
Re: [PATCH v2 3/3] v2v: -o rhv-upload: Add a test.
...self.send_header("Content-type", "application/json; charset=UTF-8") > + self.send_header("Content-Length", length) > + self.end_headers() > + self.wfile.write(content) > > # eg. zero request. Just ignore it. > def do_PATCH(self): > + self.discard_request() > self.send_response(200) > + self.send_header("Content-Length", "0") > self.end_headers() > > # Flush request. Ignore it. > def do_PUT(self): > + self.discard_request()...
2018 Sep 20
0
[PATCH v2 3/3] v2v: -o rhv-upload: Add a test.
...er("Content-type", "application/json; charset=UTF-8") + self.end_headers() + # Advertize only zero support. + self.wfile.write(b'''{ "features": [ "zero" ] }''') + + # eg. zero request. Just ignore it. + def do_PATCH(self): + self.send_response(200) + self.end_headers() + + # Flush request. Ignore it. + def do_PUT(self): + self.send_response(200) + self.end_headers() + +def server(): + server_address = ("", imageio_port) + httpd = HTTPServer(server_address, Req...
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:
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