Displaying 12 results from an estimated 12 matches for "serve_forever".
2018 Sep 26
1
Re: [PATCH v2 3/3] v2v: -o rhv-upload: Add a test.
...Jones wrote:
> +# Choose a random port number in range [50000,59999]
> +imageio_port = random.randint(50000,60000)
> +
> [...]
> +
> +def server():
> + server_address = ("", imageio_port)
> + httpd = HTTPServer(server_address, RequestHandler)
> + httpd.serve_forever()
The random port can be chosen directly by the OS, using the special
port 0:
>>> from http.server import HTTPServer, SimpleHTTPRequestHandler
>>> server_address = ("", 0)
>>> httpd = HTTPServer(server_address, SimpleHTTPRequestHandler)
>>> pr...
2018 Oct 09
2
Re: [PATCH v2 3/3] v2v: -o rhv-upload: Add a test.
...t that this server close the connection at
the end
of the request.
> + self.send_response(200)
> + self.end_headers()
> +
> +def server():
> + server_address = ("", imageio_port)
> + httpd = HTTPServer(server_address, RequestHandler)
> + httpd.serve_forever()
>
Using HTTP instead of HTTPS is not a good idea. We are not testing the same
code
on the client side.
It is easy to run HTTPS server using pre-created certificate, if we disable
certificate
verification on the client side (e.g. --insecure).
Nir
> +
> +thread = threading.Thread(targ...
2018 Oct 15
0
Re: [PATCH v2 3/3] v2v: -o rhv-upload: Add a test.
...s covered by the attached patch.
> > + self.send_response(200)
> > + self.end_headers()
> > +
> > +def server():
> > + server_address = ("", imageio_port)
> > + httpd = HTTPServer(server_address, RequestHandler)
> > + httpd.serve_forever()
> >
>
> Using HTTP instead of HTTPS is not a good idea. We are not testing
> the same code on the client side.
>
> It is easy to run HTTPS server using pre-created certificate, if we
> disable certificate verification on the client side
> (e.g. --insecure).
This one do...
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 20
0
[PATCH v2 3/3] v2v: -o rhv-upload: Add a test.
...nd_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, RequestHandler)
+ httpd.serve_forever()
+
+thread = threading.Thread(target = server, args = [], daemon = True)
+thread.start()
diff --git a/v2v/test-v2v-o-rhv-upload-module/ovirtsdk4/types.py b/v2v/test-v2v-o-rhv-upload-module/ovirtsdk4/types.py
new file mode 100644
index 000000000..9b3f557ee
--- /dev/null
+++ b/v2v/test-v2v-o-rhv-upl...
2018 Oct 15
3
Re: [PATCH v2 3/3] v2v: -o rhv-upload: Add a test.
...gt; > > + self.send_response(200)
> > > + self.end_headers()
> > > +
> > > +def server():
> > > + server_address = ("", imageio_port)
> > > + httpd = HTTPServer(server_address, RequestHandler)
> > > + httpd.serve_forever()
> > >
> >
> > Using HTTP instead of HTTPS is not a good idea. We are not testing
> > the same code on the client side.
> >
> > It is easy to run HTTPS server using pre-created certificate, if we
> > disable certificate verification on the client side
&...
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
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
2016 May 04
9
[PATCH 0/8] python: PEP 8 fixes
Hi,
this series cleans up the Python sources, either static or generated,
including also tests, to make them PEP 8 compliant; see
https://www.python.org/dev/peps/pep-0008/ and tools like pep8.
Almost all the issues reported by pep8 are fixed, reducing the issues
from 3818 to 7.
The changes should have no effect on the actual code, while it will
help Python users with consistency with other
2020 Jul 06
2
failed to compile samba-4.12.5
...9 at 7m32s, 2 errors] samba.tests.dcerpc.misc
[12(1837)/2659 at 7m32s, 2 errors] samba.tests.dcerpc.integer
Can't use string ("") as a HASH ref while "strict refs" in use at /home/alex/workspace/samba-4.12.5/selftest/selftest.pl line 861.
dns_hub: after poll()
dns_hub: after serve_forever()
dns_hub: before exit()
[13(1872)/2659 at 7m32s, 2 errors] samba.tests.param
[14(1885)/2659 at 7m32s, 2 errors] samba.tests.upgrade
[15(1887)/2659 at 7m33s, 2 errors] samba.tests.core
[16(1896)/2659 at 7m33s, 2 errors] samba.tests.common
[17(1899)/2659 at 7m33s, 2 errors] samba.tests.provision
[18...
2019 Apr 06
2
selftest, help with a single test
...ore
teardown_env(fl2000dc)
samba_parent_shutdown: samba_shutdown of samba 6465: from 6536
samba child process 6465 exited with value 0
teardown_env(ad_dc)
samba_parent_shutdown: samba_shutdown of samba 6089: from 6537
samba child process 6089 exited with value 0
dns_hub: after poll()
dns_hub: after serve_forever()
dns_hub: before exit()
FAILED (0 failures, 0 errors and 0 unexpected successes in 1 testsuites)
A summary with detailed information can be found in:
./st/summary
TOP 10 slowest tests
samba3.blackbox.smbclient_machine_auth.plain (s4member:local)(s4member:local) -> 1554585606
samba3.blackbox...
2019 Apr 01
5
selftest
Thanks for the reply,
Besides the problem with
source4/lib/messaging/messaging_handlers.c,
Good to hear that selftest is actively used, then do I understand it
right that 'make test' should succeed?
My bigger problem is that it failed with lots of errors.
This must be a problem with my build, then, but since this is a fresh
tarball I am a bit puzzled.
I would appreciate some hint on