- Jan 12, 2011
-
-
Iustin Pop authored
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: - qa_utils.GenericQueryTest: randfields was not used at all, and my belief is that it was indented to be used in order not to modify the input list; so I replaced randfields with fields, so we only shuffle the our local copy - qa_node.TestOutOfBand was using it's own copy of AcquireNode(), so I replaced it with the existing version - qa_os: was using 'dir' in a couple of places, replaced with dirname Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Iustin Pop authored
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 the patch that implements it. On a very small QA (very very small), it cuts down a lot of time (almost half), so it should be useful even for a full QA. I've also thought about changing from external ssh to paramiko, but I estimated that it would be more work to correctly interleave the IO from the remote process than just running a background SSH. Also note that yes, the global dict is ugly, but I don't know of another simple way to implement this. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
- Jan 10, 2011
-
-
Adeodato Simo authored
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 <dato@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
- Dec 21, 2010
-
-
Michael Hanselmann authored
The list of fields is not only sorted, but sorted in a nice way. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
- Dec 16, 2010
-
-
René Nussbaumer authored
Signed-off-by:
René Nussbaumer <rn@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
- Dec 14, 2010
-
-
Michael Hanselmann authored
Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
René Nussbaumer <rn@google.com>
-
- Dec 10, 2010
-
-
Michael Hanselmann authored
- Query all known fields - Random combinations (using a PRNG with a fixed seed) of fields - Order of result names Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
- Nov 29, 2010
-
-
Iustin Pop authored
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) The rest 5% are variations on this theme (maybe the command needs to fail, or the node is different, etc.). Based on this, we can simplify the code significantly if we abstract the common theme into a new AssertCommand() function. This saves ~250 lines of code in the QA suite, around 8% of the entire QA code size. Additionally, the output was very cryptic before (the famous "QA error: 1 != 0" messages), whereas now we show a clear error message (node, command, exit code and failure mode). The patch replaces single quotes with double quotes in all the parts of the code that I touch; let me know if that's not OK… Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
- Nov 01, 2010
-
-
Michael Hanselmann authored
… instead of an object. Allows it to be used in places where only the name is available. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
René Nussbaumer <rn@google.com>
-
- Jun 14, 2010
-
-
Michael Hanselmann authored
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 <hansmi@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
- May 11, 2010
-
-
Michael Hanselmann authored
Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
- Mar 26, 2010
-
-
René Nussbaumer authored
* This also adds support for authenticated RAPI calls * Other HTTP methods than GET/POST Signed-off-by:
René Nussbaumer <rn@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
- Sep 05, 2008
-
-
Michael Hanselmann authored
It didn't work as planned because some commands depend on the return value or output of some operations. Reviewed-by: iustinp
-
- Aug 26, 2008
-
-
Michael Hanselmann authored
This gives continous output instead it being buffered. Reviewed-by: ultrotter
-
- Aug 18, 2008
-
-
Michael Hanselmann authored
Apparently it was forgotten when import the remote API QA tests. Reviewed-by: schreiberal
-
- Aug 15, 2008
-
-
Michael Hanselmann authored
To my knowledge they're used nowhere and it's at least slightly confusing to people adding new QA checks. Reviewed-by: ultrotter
-
- Feb 14, 2008
-
-
Michael Hanselmann authored
Reviewed-by: iustinp
-
- Dec 03, 2007
-
-
Michael Hanselmann authored
Reviewed-by: iustinp
-
- Nov 22, 2007
-
-
Michael Hanselmann authored
Reviewed-by: schreiberal
-
- Nov 08, 2007
-
-
Michael Hanselmann authored
Reviewed-by: schreiberal
-
- Nov 01, 2007
-
-
Michael Hanselmann authored
Make the code somewhat smaller. Disable disk failure test for master for now. Reviewed-by: schreiberal
-
- Oct 18, 2007
-
-
Michael Hanselmann authored
Testing failure on the primary node is currently disabled due to drbd problems. Reviewed-by: iustinp
-
- Oct 15, 2007
-
-
Michael Hanselmann authored
Reviewed-by: iustinp
-
- Oct 12, 2007
-
-
Michael Hanselmann authored
Reviewed-by: schreiberal
-
- Oct 10, 2007
-
-
Michael Hanselmann authored
- Implement colours in qa_utils. - Print warning for cron script. Reviewed-by: iustinp
-
- Sep 26, 2007
-
-
Michael Hanselmann authored
- 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
-
- Sep 13, 2007
-
-
Michael Hanselmann authored
Reviewed-by: iustinp
-