[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [libvirt] [PATCHv2] test driver: Add authentication to test driver.



On Wed, Jan 08, 2014 at 01:10:52PM -0700, Eric Blake wrote:
> On 01/08/2014 12:45 PM, Richard W.M. Jones wrote:
> > There is no easy way to test authentication against libvirt.  This
> > commit modifies the test driver to allow simple username/password
> > authentication.
> > 
> > You modify the test XML by adding:
> > 
> >  <node>
> >    ...
> >    <auth>
> >      <user password="123456">rich</user>
> >      <user>jane</user>
> >    </auth>
> >  </node>
> > 
> 
> > 
> > Signed-off-by: Richard W.M. Jones <rjones redhat com>
> > ---
> >  src/test/test_driver.c | 111 ++++++++++++++++++++++++++++++++++++++++++++++++-
> >  1 file changed, 110 insertions(+), 1 deletion(-)
> 
> ACK.

Thanks, I have pushed this.

Two libguestfs regression tests now use this infrastructure when a
sufficiently new version of libvirt is detected:

https://github.com/libguestfs/libguestfs/commit/873db60c0e52893a38c374d867d0a305e5419d6a
https://github.com/libguestfs/libguestfs/commit/746a0b1f19667606ee63c8d3ab6a75531a8bd71c

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming blog: http://rwmj.wordpress.com
Fedora now supports 80 OCaml packages (the OPEN alternative to F#)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]