Displaying 4 results from an estimated 4 matches for "ovirt_imageio_daemon".
2018 Jun 18
2
Re: [PATCH] v2v: -o rhv-upload: Optimize http request sending
On Thu, Jun 14, 2018 at 09:24:48PM +0300, Nir Soffer wrote:
> On Thu, Jun 14, 2018 at 9:16 PM Nir Soffer <nirsof@gmail.com> wrote:
> > + headers = {"Content-Type": "application/json",
> > + "Content-Length", str(len(buf))}
There were a few Python syntax errors such as this one. They
can be found by running:
make -C v2v check
2018 Jun 18
2
Re: [PATCH] v2v: -o rhv-upload: Optimize http request sending
...of the
sources, so the rest of the instructions are useful. I think this
method looks most promising, but as you say I'd have to see about
mocking the other engine methods:
> Another option is to start the server from your tests like this. This
> is how we run our tests.
>
> from ovirt_imageio_daemon import server
> from ovirt_imageio_daemon import config
>
> config.daemon.pki_dir = test/pki
> config.daemon.poll_interval = 0.1
> config.images.port = 9876
> config.tickets.socket = "/tmp/ovirt-imageio-daemon.sock"
>
> server.start(config)
>
> # run your...
2018 Jun 18
0
Re: [PATCH] v2v: -o rhv-upload: Optimize http request sending
...can record all the
interactions, and the next time you run the tests it will use recorded data.
See https://il.pycon.org/2018/schedule/presentation/37/
>
> > Another option is to start the server from your tests like this. This
> > is how we run our tests.
> >
> > from ovirt_imageio_daemon import server
> > from ovirt_imageio_daemon import config
> >
> > config.daemon.pki_dir = test/pki
> > config.daemon.poll_interval = 0.1
> > config.images.port = 9876
> > config.tickets.socket = "/tmp/ovirt-imageio-daemon.sock"
> >
> > serve...
2018 Jun 18
0
Re: [PATCH] v2v: -o rhv-upload: Optimize http request sending
...change /etc/ovirt-imageio-daemon, or even install
the package. For example:
git clone https://github.com/oVirt/ovirt-imageio.git
src/ovirt-image/daemon/ovirt-imageio-daemon -f my-test.conf
Another option is to start the server from your tests like this. This
is how we run our tests.
from ovirt_imageio_daemon import server
from ovirt_imageio_daemon import config
config.daemon.pki_dir = test/pki
config.daemon.poll_interval = 0.1
config.images.port = 9876
config.tickets.socket = "/tmp/ovirt-imageio-daemon.sock"
server.start(config)
# run your test here...
server.stop()
Note that we did not...