Revision ed54b47e qa/qa_cluster.py
b/qa/qa_cluster.py | ||
---|---|---|
54 | 54 |
content) |
55 | 55 |
|
56 | 56 |
|
57 |
@qa_utils.DefineHook('cluster-init') |
|
58 | 57 |
def TestClusterInit(): |
59 | 58 |
"""gnt-cluster init""" |
60 | 59 |
master = qa_config.GetMasterNode() |
... | ... | |
79 | 78 |
utils.ShellQuoteArgs(cmd)).wait(), 0) |
80 | 79 |
|
81 | 80 |
|
82 |
@qa_utils.DefineHook('cluster-rename') |
|
83 | 81 |
def TestClusterRename(): |
84 | 82 |
"""gnt-cluster rename""" |
85 | 83 |
master = qa_config.GetMasterNode() |
... | ... | |
110 | 108 |
utils.ShellQuoteArgs(cmd_verify)).wait(), 0) |
111 | 109 |
|
112 | 110 |
|
113 |
@qa_utils.DefineHook('cluster-verify') |
|
114 | 111 |
def TestClusterVerify(): |
115 | 112 |
"""gnt-cluster verify""" |
116 | 113 |
master = qa_config.GetMasterNode() |
... | ... | |
120 | 117 |
utils.ShellQuoteArgs(cmd)).wait(), 0) |
121 | 118 |
|
122 | 119 |
|
123 |
@qa_utils.DefineHook('cluster-info') |
|
124 | 120 |
def TestClusterInfo(): |
125 | 121 |
"""gnt-cluster info""" |
126 | 122 |
master = qa_config.GetMasterNode() |
... | ... | |
130 | 126 |
utils.ShellQuoteArgs(cmd)).wait(), 0) |
131 | 127 |
|
132 | 128 |
|
133 |
@qa_utils.DefineHook('cluster-getmaster') |
|
134 | 129 |
def TestClusterGetmaster(): |
135 | 130 |
"""gnt-cluster getmaster""" |
136 | 131 |
master = qa_config.GetMasterNode() |
... | ... | |
140 | 135 |
utils.ShellQuoteArgs(cmd)).wait(), 0) |
141 | 136 |
|
142 | 137 |
|
143 |
@qa_utils.DefineHook('cluster-version') |
|
144 | 138 |
def TestClusterVersion(): |
145 | 139 |
"""gnt-cluster version""" |
146 | 140 |
master = qa_config.GetMasterNode() |
... | ... | |
150 | 144 |
utils.ShellQuoteArgs(cmd)).wait(), 0) |
151 | 145 |
|
152 | 146 |
|
153 |
@qa_utils.DefineHook('cluster-burnin') |
|
154 | 147 |
def TestClusterBurnin(): |
155 | 148 |
"""Burnin""" |
156 | 149 |
master = qa_config.GetMasterNode() |
... | ... | |
191 | 184 |
qa_config.ReleaseInstance(inst) |
192 | 185 |
|
193 | 186 |
|
194 |
@qa_utils.DefineHook('cluster-master-failover') |
|
195 | 187 |
def TestClusterMasterFailover(): |
196 | 188 |
"""gnt-cluster masterfailover""" |
197 | 189 |
master = qa_config.GetMasterNode() |
... | ... | |
209 | 201 |
qa_config.ReleaseNode(failovermaster) |
210 | 202 |
|
211 | 203 |
|
212 |
@qa_utils.DefineHook('cluster-copyfile') |
|
213 | 204 |
def TestClusterCopyfile(): |
214 | 205 |
"""gnt-cluster copyfile""" |
215 | 206 |
master = qa_config.GetMasterNode() |
... | ... | |
234 | 225 |
_RemoveFileFromAllNodes(testname) |
235 | 226 |
|
236 | 227 |
|
237 |
@qa_utils.DefineHook('cluster-command') |
|
238 | 228 |
def TestClusterCommand(): |
239 | 229 |
"""gnt-cluster command""" |
240 | 230 |
master = qa_config.GetMasterNode() |
... | ... | |
252 | 242 |
_RemoveFileFromAllNodes(rfile) |
253 | 243 |
|
254 | 244 |
|
255 |
@qa_utils.DefineHook('cluster-destroy') |
|
256 | 245 |
def TestClusterDestroy(): |
257 | 246 |
"""gnt-cluster destroy""" |
258 | 247 |
master = qa_config.GetMasterNode() |
Also available in: Unified diff