Statistics
| Branch: | Tag: | Revision:

root / qa / qa_utils.py @ f623cc78

History | View | Annotate | Download (11.8 kB)

# Date Author Comment
3582eef6 01/12/2011 12:41 pm Iustin Pop

Run pylint over QA code too

Right now, the QA code is not covered by pylint, and this shows at
least one low-impact bug.

This patch does the necessary changes to make QA pylint-clean, and the
changes the makefile to run pylint for it.

Notable changes:
...

f7e6f3c8 01/12/2011 11:18 am Iustin Pop

QA: use a persistent SSH connection to the master

The recent additions to QA (many more tests) make QA slow if the
machine on which the QA runs is not very close to the tested nodes —
or in general, when the SSH handhaske is costly.

We discussed before about using a persistent connection, and here is...

0a05f959 01/10/2011 06:32 pm Adeodato Simo

Fix docstring for "cmd" in qa_utils.GetSSHCommand

Docstring indicated "cmd" should be a list, when it's expected that
it'll be a string.

Also, converted docstring to current epydoc-style list of function
arguments.

Signed-off-by: Adeodato Simo <>...

c694367b 12/21/2010 08:14 pm Michael Hanselmann

Fix QA for “list-fields” commands

The list of fields is not only sorted, but sorted in a nice way.

Signed-off-by: Michael Hanselmann <>
Reviewed-by: Iustin Pop <>

b9955569 12/16/2010 09:57 am René Nussbaumer

QA: Allow upload of string data

Signed-off-by: René Nussbaumer <>
Reviewed-by: Michael Hanselmann <>

2214cf14 12/14/2010 03:23 pm Michael Hanselmann

QA: Extend unittests for query operations, add tests for list-fields

Signed-off-by: Michael Hanselmann <>
Reviewed-by: René Nussbaumer <>

288d6440 12/10/2010 06:26 pm Michael Hanselmann

QA: Improve tests for instance/node list

- Query all known fields
- Random combinations (using a PRNG with a fixed seed) of fields
- Order of result names

Signed-off-by: Michael Hanselmann <>
Reviewed-by: Iustin Pop <>

2f4b4f78 11/29/2010 03:37 pm Iustin Pop

Simplify QA commands

Currently, 95% of the QA commands are executed in the same way: on the
master, based on a command list and with expectancies for succes:

AssertEqual(StartSSH(master['primary'],
utils.ShellQuoteArgs(cmd)).wait(), 0)...
46f9a948 11/01/2010 05:02 pm Michael Hanselmann

Change qa_utils.ResolveInstanceName to take name

… instead of an object. Allows it to be used in places where
only the name is available.

Signed-off-by: Michael Hanselmann <>
Reviewed-by: René Nussbaumer <>

5d831182 06/14/2010 07:57 pm Michael Hanselmann

qa_rapi: Test inter-cluster instance move script

This test moves an instance on the same cluster and, if successful,
moves it back. While not testing a real move between two clusters,
this is certainly better than nothing.

Signed-off-by: Michael Hanselmann <>...

49d50e52 05/11/2010 06:04 pm Michael Hanselmann

QA: Add function create temporary backup file

Signed-off-by: Michael Hanselmann <>
Reviewed-by: Iustin Pop <>

e6ce18ac 03/26/2010 03:56 pm René Nussbaumer

Adding QA RAPI tests for activate-disks and deactivate-disks calls

  • This also adds support for authenticated RAPI calls
  • Other HTTP methods than GET/POST

Signed-off-by: René Nussbaumer <>
Reviewed-by: Guido Trotter <>

26a61f87 09/05/2008 03:19 pm Michael Hanselmann

QA: Remove dry run mode

It didn't work as planned because some commands depend on the return
value or output of some operations.

Reviewed-by: iustinp

305cb9bb 08/26/2008 06:53 pm Michael Hanselmann

QA: Use pseudo-tty via SSH

This gives continous output instead it being buffered.

Reviewed-by: ultrotter

eaef8a05 08/18/2008 12:58 pm Michael Hanselmann

Copy qa_utils.AssertIn from 1.2 branch

Apparently it was forgotten when import the remote API QA tests.

Reviewed-by: schreiberal

ed54b47e 08/15/2008 11:43 am Michael Hanselmann

Remove QA hook functionality

To my knowledge they're used nowhere and it's at least slightly
confusing to people adding new QA checks.

Reviewed-by: ultrotter

c68d1f43 02/14/2008 05:39 pm Michael Hanselmann

Code style updates for QA code.

Reviewed-by: iustinp

abe3db55 12/03/2007 03:54 pm Michael Hanselmann

Add comment about PEP 318 to qa_utils.py.

Reviewed-by: iustinp

f9fe750a 11/22/2007 02:17 pm Michael Hanselmann

List loading hooks in QA.

Reviewed-by: schreiberal

1672a0d1 11/08/2007 01:50 pm Michael Hanselmann

Implement hooks infrastructure.

Reviewed-by: schreiberal

dfe11bad 11/01/2007 04:31 pm Michael Hanselmann

Cleanup colouring functions.

Make the code somewhat smaller. Disable disk failure test for master for now.

Reviewed-by: schreiberal

e8ae0c20 10/18/2007 04:02 pm Michael Hanselmann

Implement disk failure QA test.

Testing failure on the primary node is currently disabled due to drbd problems.

Reviewed-by: iustinp

90ab92e3 10/15/2007 03:08 pm Michael Hanselmann

Don't take unused parameter in qa_utils.py:Print{Info,Error}.

Reviewed-by: iustinp

4b62db14 10/12/2007 05:33 pm Michael Hanselmann

Test “gnt-node evacuate” and “gnt-node failover” in QA.

Reviewed-by: schreiberal

23269c5b 10/10/2007 06:51 pm Michael Hanselmann

Colours and warnings.

- Implement colours in qa_utils.
- Print warning for cron script.

Reviewed-by: iustinp

5d640672 09/26/2007 09:27 pm Michael Hanselmann

Enhance QA.

- Test “gnt-backup export” and “gnt-backup import”.
- Move “ResolveInstanceName” to qa_utils.py.
- Fix tests for “ganeti-watcher”.
- Make instance shutdown and startup configurable.

Reviewed-by: schreiberal

cec9845c 09/13/2007 03:46 pm Michael Hanselmann

Split QA script into different modules.

Reviewed-by: iustinp