Revision 9b3939ea qa/qa_env.py
b/qa/qa_env.py | ||
---|---|---|
23 | 23 |
from ganeti import utils |
24 | 24 |
|
25 | 25 |
import qa_config |
26 |
import qa_utils |
|
26 | 27 |
|
27 | 28 |
from qa_utils import AssertEqual, StartSSH |
28 | 29 |
|
29 | 30 |
|
31 |
@qa_utils.DefineHook('env-ssh-connection') |
|
30 | 32 |
def TestSshConnection(): |
31 | 33 |
"""Test SSH connection. |
32 | 34 |
|
... | ... | |
35 | 37 |
AssertEqual(StartSSH(node['primary'], 'exit').wait(), 0) |
36 | 38 |
|
37 | 39 |
|
40 |
@qa_utils.DefineHook('env-ganeti-commands') |
|
38 | 41 |
def TestGanetiCommands(): |
39 | 42 |
"""Test availibility of Ganeti commands. |
40 | 43 |
|
... | ... | |
53 | 56 |
AssertEqual(StartSSH(node['primary'], cmd).wait(), 0) |
54 | 57 |
|
55 | 58 |
|
59 |
@qa_utils.DefineHook('env-icmp-ping') |
|
56 | 60 |
def TestIcmpPing(): |
57 | 61 |
"""ICMP ping each node. |
58 | 62 |
|
Also available in: Unified diff