[libvirt] [test-API][PATCH] Update 2 functions for wrapped libs

2011-12-23 Thread Nan Zhang
* lib/nodedevAPI.py: remove non-existent function ref() * lib/secretAPI.py: fix case sensitive error on function name UUID() --- lib/nodedevAPI.py |9 - lib/secretAPI.py |2 +- 2 files changed, 1 insertions(+), 10 deletions(-) diff --git a/lib/nodedevAPI.py b/lib/nodedevAPI.py

Re: [libvirt] [test-API][PATCH] Add test case set_cpu_shares.py for setting cpu scheduler info

2011-12-12 Thread Nan Zhang
On 12/12/2011 03:46 PM, Osier Yang wrote: On 2011年12月12日 15:22, Nan Zhang wrote: * repos/domain/set_cpu_shares.py: set the value of cpu_shares property of the guest. --- repos/domain/set_cpu_shares.py | 111 1 files changed, 111 insertions(+), 0

[libvirt] [test-API][PATCH 2/2] Add test case set_cpu_shares.py for setting cpu scheduler info

2011-12-12 Thread Nan Zhang
+ cpu_shares + integer value + flags + current|live|config + + +__author__ = 'Nan Zhang: nzh...@redhat.com' +__date__ = 'Tue Sep 27, 2011' +__version__ = '0.1.0' +__credits__ = 'Copyright (C) 2011 Red Hat, Inc.' +__all__ = ['check_params', 'check_cpu_shares

[libvirt] [test-API][PATCH 1/2] Add test case get_cpu_shares.py for cpu scheduler info testing

2011-12-12 Thread Nan Zhang
+ flags + current|live|config + + +__author__ = 'Nan Zhang: nzh...@redhat.com' +__date__ = 'Tue Sep 27, 2011' +__version__ = '0.1.0' +__credits__ = 'Copyright (C) 2011 Red Hat, Inc.' +__all__ = ['check_params', 'check_cpu_shares', 'get_cpu_shares'] + +import os +import re +import sys

[libvirt] [test-API][PATCH] Add test case get_cpu_shares.py for cpu scheduler info testing

2011-12-11 Thread Nan Zhang
+ flags + 0|1|2 + + +__author__ = 'Nan Zhang: nzh...@redhat.com' +__date__ = 'Tue Sep 27, 2011' +__version__ = '0.1.0' +__credits__ = 'Copyright (C) 2011 Red Hat, Inc.' +__all__ = ['check_params', 'check_cpu_shares', 'get_cpu_shares'] + +import os +import re +import sys +import time

[libvirt] [test-API][PATCH] Add test case set_cpu_shares.py for setting cpu scheduler info

2011-12-11 Thread Nan Zhang
+ flags + 0|1|2 + + +__author__ = 'Nan Zhang: nzh...@redhat.com' +__date__ = 'Tue Sep 27, 2011' +__version__ = '0.1.0' +__credits__ = 'Copyright (C) 2011 Red Hat, Inc.' +__all__ = ['check_params', 'check_cpu_shares', 'set_cpu_shares'] + +import os +import re +import sys +import time

[libvirt] [test-API][PATCH] Add extra optional arguments for spice graphics type for installation test

2011-09-29 Thread Nan Zhang
Added options for 2 cases: graphtype, image, jpeg, zlib, playback, streaming, clipboard * repos/domain/install_linux_cdrom.py * repos/domain/install_linux_net.py --- repos/domain/blkstats.py | 103 -

[libvirt] [test-API][PATCH 1/2] Add support for spice graphics

2011-09-29 Thread Nan Zhang
* utils/Python/xmlgenerator.py: This extends graphics element for spice XML composing, and support sub-elements settings for audio, images, streaming and so on: graphics type='spice' autoport='yes' image compression='auto_glz'/ jpeg compression='auto'/ zlib

[libvirt] [test-API][PATCH 2/2] Add case for testing spice compression options

2011-09-29 Thread Nan Zhang
+ auto_glz|auto_lz|quic|glz|lz|off + jpeg + auto|never|always + zlib + auto|never|always + playback + on|off + + +__author__ = 'Nan Zhang: nzh...@redhat.com' +__date__ = 'Thu Sep 8, 2011' +__version__ = '0.1.0' +__credits__ = 'Copyright (C) 2011 Red Hat, Inc

Re: [libvirt] [test-API][PATCH 1/2] Add support for spice graphics type in xml test module

2011-09-29 Thread Nan Zhang
Sorry, the mail subject is missing some words, the whole should be: [libvirt] [test-API][PATCH 1/2] Add support for spice graphics type in xml test module On 09/29/2011 05:30 PM, Nan Zhang wrote: * utils/Python/xmlgenerator.py: This extends graphics element for spice XML composing

[libvirt] [test-API][PATCH v5] Add test case update_devflag.py for update device flag

2011-09-28 Thread Nan Zhang
+ devtype + cdrom|floppy + username + xxx + password + xxx + + +__author__ = 'Nan Zhang: nzh...@redhat.com' +__date__ = 'Fri Sep 2, 2011' +__version__ = '0.1.0' +__credits__ = 'Copyright (C) 2011 Red Hat, Inc.' +__all__ = ['check_updated_device

[libvirt] [test-API][PATCH v4] Add test case update_devflag.py for update device flag

2011-09-26 Thread Nan Zhang
000..e1bf559 --- /dev/null +++ b/repos/domain/update_devflag.py @@ -0,0 +1,276 @@ +#!/usr/bin/env python +Update virtual device to guest from an XML file + domain:update_devflag + guestname + xxx + devtype + cdrom|floppy + + +__author__ = 'Nan Zhang: nzh...@redhat.com

[libvirt] [test-API][PATCH v3] Add test case update_devflag.py for update device flag

2011-09-21 Thread Nan Zhang
000..3b736fc --- /dev/null +++ b/repos/domain/update_devflag.py @@ -0,0 +1,231 @@ +#!/usr/bin/env python +Update virtual device to guest from an XML file + domain:update_devflag + guestname + xxx + devtype + cdrom|floppy + + +__author__ = 'Nan Zhang: nzh...@redhat.com

[libvirt] [test-API][PATCH v2 2/2] Add case for testing spice compression options

2011-09-16 Thread Nan Zhang
+ auto_glz|auto_lz|quic|glz|lz|off + jpeg + auto|never|always + zlib + auto|never|always + playback + on|off + + +__author__ = 'Nan Zhang: nzh...@redhat.com' +__date__ = 'Thu Sep 8, 2011' +__version__ = '0.1.0' +__credits__ = 'Copyright (C) 2011 Red Hat

[libvirt] [PATCH] Fix typos for snapshot-create-as in virsh help cmd and doc

2011-09-14 Thread Nan Zhang
* tools/virsh.c: Using VSH_OT_STRING instead of VSH_OT_ARGV for diskspec * tools/virsh.pod: Fix missing -- tag for snapshot-create-as in docs --- tools/virsh.c |2 +- tools/virsh.pod |6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tools/virsh.c b/tools/virsh.c

Re: [libvirt] [PATCH] Fix typos for snapshot-create-as in virsh help cmd and doc

2011-09-14 Thread Nan Zhang
On 09/15/2011 02:16 AM, Eric Blake wrote: On 09/14/2011 12:14 PM, Eric Blake wrote: On 09/14/2011 12:06 PM, Nan Zhang wrote: * tools/virsh.c: Using VSH_OT_STRING instead of VSH_OT_ARGV for diskspec Nack. This MUST be VSH_OT_ARGV, in order to allow multiple diskspec. * tools/virsh.pod: Fix

[libvirt] [PATCH] Clarify the usage of diskspec option in doc

2011-09-14 Thread Nan Zhang
* tools/virsh.pod: Make clear for the usage of this option diskspec --- tools/virsh.pod |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/tools/virsh.pod b/tools/virsh.pod index e82567d..694b3cc 100644 --- a/tools/virsh.pod +++ b/tools/virsh.pod @@ -1773,7 +1773,7 @@ by

[libvirt] [test-API][PATCH 1/2] update xmlgenerator.py to support for spice graphics type

2011-09-08 Thread Nan Zhang
This extends graphics element for spice XML composing, and support sub-elements settings for audio, images, streaming and so on: graphics type='spice' autoport='yes' image compression='auto_glz'/ jpeg compression='auto'/ zlib compression='auto'/ playback

[libvirt] [test-API][PATCH 2/2] add case for testing spice compression options

2011-09-08 Thread Nan Zhang
..660805c --- /dev/null +++ b/repos/domain/spice_options.py @@ -0,0 +1,113 @@ +#!/usr/bin/evn python +Configuring spice compression options + + +__author__ = 'Nan Zhang: nzh...@redhat.com' +__date__ = 'Thu Sep 8, 2011' +__version__ = '0.1.0' +__credits__ = 'Copyright (C) 2011 Red Hat, Inc.' +__all__

[libvirt] [PATCH] Add test case update_devflag.py for update device flag

2011-09-07 Thread Nan Zhang
000..30f75b0 --- /dev/null +++ b/repos/domain/update_devflag.py @@ -0,0 +1,163 @@ +#!/usr/bin/evn python +Update virtual device to guest from an XML file + + +__author__ = 'Nan Zhang: nzh...@redhat.com' +__date__ = 'Fri Sep 2, 2011' +__version__ = '0.1.0' +__credits__ = 'Copyright (C) 2011 Red Hat

[libvirt] [test-API][PATCH] Add test case update_devflag.py for update device flag

2011-09-07 Thread Nan Zhang
000..30f75b0 --- /dev/null +++ b/repos/domain/update_devflag.py @@ -0,0 +1,163 @@ +#!/usr/bin/evn python +Update virtual device to guest from an XML file + + +__author__ = 'Nan Zhang: nzh...@redhat.com' +__date__ = 'Fri Sep 2, 2011' +__version__ = '0.1.0' +__credits__ = 'Copyright (C) 2011 Red Hat

Re: [libvirt] [PATCH] Add test case update_devflag.py for update device flag

2011-09-07 Thread Nan Zhang
Sorry, this patch is for test-API, missing the prefix, please ignore this mail. - nzhang On 09/07/2011 03:54 PM, Nan Zhang wrote: --- repos/domain/update_devflag.py | 163 1 files changed, 163 insertions(+), 0 deletions(-) create mode 100644

[libvirt] [test-API][PATCH] unify similar types of the test file name in repos

2011-09-07 Thread Nan Zhang
--- repos/domain/blkstats.py| 103 --- repos/domain/domain_blkstats.py | 103 +++ 2 files changed, 103 insertions(+), 103 deletions(-) delete mode 100644 repos/domain/blkstats.py create mode 100644

[libvirt] [test-API][PATCH v2] Add test case update_devflag.py for update device flag

2011-09-07 Thread Nan Zhang
000..287f2a5 --- /dev/null +++ b/repos/domain/update_devflag.py @@ -0,0 +1,163 @@ +#!/usr/bin/evn python +Update virtual device to guest from an XML file + + +__author__ = 'Nan Zhang: nzh...@redhat.com' +__date__ = 'Fri Sep 2, 2011' +__version__ = '0.1.0' +__credits__ = 'Copyright (C) 2011 Red Hat

[libvirt] [test-API][PATCH] Add a case for testing update device flag

2011-09-06 Thread Nan Zhang
000..b2d8d15 --- /dev/null +++ b/repos/domain/update_devflag.py @@ -0,0 +1,159 @@ +#!/usr/bin/evn python +Update virtual device to guest from an XML file + + +__author__ = 'Nan Zhang: nzh...@redhat.com' +__date__ = 'Fri Sep 2, 2011' +__version__ = '0.1.0' +__credits__ = 'Copyright (C) 2011 Red Hat

Re: [libvirt] [test-API][PATCH 2/2] Modify migration.py to support testing with tcp and tls

2011-09-05 Thread Nan Zhang
On 09/02/2011 03:23 PM, Guannan Ren wrote: --- repos/domain/migrate.py |7 +-- 1 files changed, 5 insertions(+), 2 deletions(-) diff --git a/repos/domain/migrate.py b/repos/domain/migrate.py index 3f80bd0..6b86188 100644 --- a/repos/domain/migrate.py +++ b/repos/domain/migrate.py @@

Re: [libvirt] [test-API][PATCH 1/2] Remove cases/migrate.conf testcases and create a set of migration testcases

2011-09-05 Thread Nan Zhang
On 09/02/2011 03:23 PM, Guannan Ren wrote: *cases/migrate.conf remove it. *cases/migration/* create a new set of migraion testcases with tcp, tls and sasl combination It's huge, so I send the header of commit here. --- cases/migrate.conf

Re: [libvirt] [PATCH 1/2] make remote_exec_pexpect return the output of command

2011-09-05 Thread Nan Zhang
On 09/01/2011 10:19 AM, Guannan Ren wrote: *utils/Python/utils.py return 0,child.before intead *repos/remoteAccess/tcp_setup.py repos/remoteAccess/tls_setup.py switch over to use new remote_exec_pexpect() --- repos/remoteAccess/tcp_setup.py | 18 +-

Re: [libvirt] [PATCH 2/2] Add new testcase for cpu topology testing

2011-09-05 Thread Nan Zhang
On 09/01/2011 10:19 AM, Guannan Ren wrote: *repos/domain/cpu_topology.py --- repos/domain/cpu_topology.py | 248 ++ 1 files changed, 248 insertions(+), 0 deletions(-) create mode 100644 repos/domain/cpu_topology.py diff --git

[libvirt] [test-API][PATCH] Add 2 methods to generate cdrom floppy XML for test

2011-09-02 Thread Nan Zhang
add the following 2 functions to utils/Python/xmlbuilder.py * build_cdrom() * build_floppy() --- utils/Python/xmlbuilder.py | 47 +- utils/Python/xmlgenerator.py | 15 +++-- 2 files changed, 54 insertions(+), 8 deletions(-) diff --git

Re: [libvirt] [test-API][PATCH] add imagetype argument for guest installation testcases

2011-08-26 Thread Nan Zhang
On 08/17/2011 09:13 PM, Guannan Ren wrote: Add disk format argument to installation test scripts. With them, we can test snapshot testing. The following is the conf file sample. domain:install_linux_cdrom guestname test-api-guest ... imagetype qcow2 ...

[libvirt] [test-API][PATCH] Add 2 functions to support get and set the scheduler parameters flag

2011-08-26 Thread Nan Zhang
Add 2 functions into domain API get_sched_params_flags() set_sched_params_flags() --- lib/domainAPI.py | 26 +- 1 files changed, 25 insertions(+), 1 deletions(-) diff --git a/lib/domainAPI.py b/lib/domainAPI.py index 5667c20..a6efab7 100644 --- a/lib/domainAPI.py +++

Re: [libvirt] [test-API][PATCH] Add testcases for testing permission control and sasl authentication of unix socket

2011-08-09 Thread Nan Zhang
On 08/06/2011 12:09 AM, Guannan Ren wrote: add new testcases repos/remoteAccess/unix_perm_sasl.py --- repos/remoteAccess/unix_perm_sasl.py | 234 ++ 1 files changed, 234 insertions(+), 0 deletions(-) create mode 100644

Re: [libvirt] [test-API][PATCH] Add new testcase for libvirtd connection with tcp socket and with SASL authentication

2011-08-09 Thread Nan Zhang
On 08/07/2011 05:46 PM, Guannan Ren wrote: --- repos/remoteAccess/tcp_setup.py | 242 +++ 1 files changed, 242 insertions(+), 0 deletions(-) create mode 100644 repos/remoteAccess/tcp_setup.py diff --git a/repos/remoteAccess/tcp_setup.py

Re: [libvirt] [test-API][PATCH 1/2] Declare hypervisor connection variable as the global

2011-08-09 Thread Nan Zhang
On 08/04/2011 04:37 PM, Guannan Ren wrote: The is solve the problem where the failure of open() will lead to null conn variable, and when we call close() later,it will report no global 'conn' attribute to the ConnectAPI object. remove a duplicated close() function --- lib/connectAPI.py | 19

Re: [libvirt] [test-API][PATCH 2/2] Add SASL testing points for TLS sockets connection and negative testing point

2011-08-09 Thread Nan Zhang
On 08/04/2011 04:37 PM, Guannan Ren wrote: add two option 'listen_tls' and 'auth_tls' --- repos/remoteAccess/tls_setup.py | 161 --- 1 files changed, 133 insertions(+), 28 deletions(-) diff --git a/repos/remoteAccess/tls_setup.py

[libvirt] [PATCH] virsh: fix missing prompt message for 'snapshot-delete' command

2011-07-13 Thread Nan Zhang
Make the command 'virsh snapshot-delete' has the appropriate prompt message when executing sucessful or failed. --- tools/virsh.c |6 +- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/tools/virsh.c b/tools/virsh.c index cd17f42..b7cea58 100644 --- a/tools/virsh.c +++

Re: [libvirt] [Libvirt-test-API][PATCH 5/6] add migration testing configuration file to cases

2011-07-01 Thread Nan Zhang
On 06/28/2011 01:54 PM, Guannan.ren wrote: --- cases/migrate.conf | 97 1 files changed, 97 insertions(+), 0 deletions(-) create mode 100644 cases/migrate.conf diff --git a/cases/migrate.conf b/cases/migrate.conf new file mode 100644

Re: [libvirt] [Libvirt-test-API][PATCH 6/6] add target_machine variable and login name with root default and password variable into env.cfg

2011-07-01 Thread Nan Zhang
On 06/28/2011 01:54 PM, Guannan.ren wrote: --- env.cfg |6 ++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/env.cfg b/env.cfg index e1237de..b5e404a 100644 --- a/env.cfg +++ b/env.cfg @@ -135,3 +135,9 @@ testnic = eth1 # a PCI device to use for attach/detach/reset

Re: [libvirt] [Libvirt-test-API][PATCH 4/6] add migrate.py testcases based on Daniel Berrage's migration testing scenarios

2011-07-01 Thread Nan Zhang
On 06/28/2011 01:54 PM, Guannan.ren wrote: --- repos/domain/migrate.py | 335 +++ 1 files changed, 335 insertions(+), 0 deletions(-) create mode 100644 repos/domain/migrate.py diff --git a/repos/domain/migrate.py b/repos/domain/migrate.py new

Re: [libvirt] [Libvirt-test-API][PATCH 2/6] add flags option to create.py to support creating domain with running or paused state

2011-06-29 Thread Nan Zhang
On 06/28/2011 01:54 PM, Guannan.ren wrote: --- repos/domain/create.py | 53 --- 1 files changed, 40 insertions(+), 13 deletions(-) diff --git a/repos/domain/create.py b/repos/domain/create.py index 343aba2..a06a2d3 100644 ---

Re: [libvirt] [Libvirt-test-API][PATCH 3/6] add flags option to start to have domain started with flags support

2011-06-29 Thread Nan Zhang
On 06/28/2011 01:54 PM, Guannan.ren wrote: --- repos/domain/start.py | 32 ++-- 1 files changed, 30 insertions(+), 2 deletions(-) diff --git a/repos/domain/start.py b/repos/domain/start.py index 34906e5..39ac47f 100644 --- a/repos/domain/start.py +++

Re: [libvirt] [Libvirt-test-API][PATCH] Add a pair of keywords in parser.py for supportting testcases loop

2011-06-18 Thread Nan Zhang
On 06/18/2011 02:19 PM, Guannan Ren wrote: On 06/16/2011 01:14 PM, Nan Zhang wrote: For example: - domain:start guestname vm1 domain:save start_loop guestname vm1 domain:restore end_loop 10 guestname vm1 domain:destroy guestname

[libvirt] [Libvirt-test-API][PATCH] Add a pair of keywords in parser.py for supportting testcases loop

2011-06-18 Thread Nan Zhang
To support test cases loop in config, adding a pair of keywords start_loop, end_loop follows loop times. For example: - domain:start guestname vm1 domain:save start_loop guestname vm1 domain:restore end_loop 10 guestname vm1 domain:destroy

Re: [libvirt] [Libvirt-test-API][PATCH] Add a pair of keywords in parser.py for supportting testcases loop

2011-06-18 Thread Nan Zhang
On 06/16/2011 04:45 PM, ajia wrote: On 06/16/2011 01:14 PM, Nan Zhang wrote: For example: - domain:start guestname vm1 domain:save start_loop guestname vm1 domain:restore end_loop 10 guestname vm1 If we need to add a new loop

[libvirt] [Libvirt-test-API][PATCH] Add a pair of keywords in parser.py for supportting testcases loop

2011-06-15 Thread Nan Zhang
For example: - domain:start guestname vm1 domain:save start_loop guestname vm1 domain:restore end_loop 10 guestname vm1 domain:destroy guestname vm1 - --- parser.py | 46