Revision ed54b47e qa/qa_instance.py
b/qa/qa_instance.py | ||
---|---|---|
66 | 66 |
raise |
67 | 67 |
|
68 | 68 |
|
69 |
@qa_utils.DefineHook('instance-add-plain-disk') |
|
70 | 69 |
def TestInstanceAddWithPlainDisk(node): |
71 | 70 |
"""gnt-instance add -t plain""" |
72 | 71 |
return _DiskTest(node['primary'], 'plain') |
73 | 72 |
|
74 | 73 |
|
75 |
@qa_utils.DefineHook('instance-add-drbd-disk') |
|
76 | 74 |
def TestInstanceAddWithDrbdDisk(node, node2): |
77 | 75 |
"""gnt-instance add -t drbd""" |
78 | 76 |
return _DiskTest("%s:%s" % (node['primary'], node2['primary']), |
79 | 77 |
'drbd') |
80 | 78 |
|
81 | 79 |
|
82 |
@qa_utils.DefineHook('instance-remove') |
|
83 | 80 |
def TestInstanceRemove(instance): |
84 | 81 |
"""gnt-instance remove""" |
85 | 82 |
master = qa_config.GetMasterNode() |
... | ... | |
91 | 88 |
qa_config.ReleaseInstance(instance) |
92 | 89 |
|
93 | 90 |
|
94 |
@qa_utils.DefineHook('instance-startup') |
|
95 | 91 |
def TestInstanceStartup(instance): |
96 | 92 |
"""gnt-instance startup""" |
97 | 93 |
master = qa_config.GetMasterNode() |
... | ... | |
101 | 97 |
utils.ShellQuoteArgs(cmd)).wait(), 0) |
102 | 98 |
|
103 | 99 |
|
104 |
@qa_utils.DefineHook('instance-shutdown') |
|
105 | 100 |
def TestInstanceShutdown(instance): |
106 | 101 |
"""gnt-instance shutdown""" |
107 | 102 |
master = qa_config.GetMasterNode() |
... | ... | |
111 | 106 |
utils.ShellQuoteArgs(cmd)).wait(), 0) |
112 | 107 |
|
113 | 108 |
|
114 |
@qa_utils.DefineHook('instance-reboot') |
|
115 | 109 |
def TestInstanceReboot(instance): |
116 | 110 |
"""gnt-instance reboot""" |
117 | 111 |
master = qa_config.GetMasterNode() |
... | ... | |
123 | 117 |
utils.ShellQuoteArgs(cmd)).wait(), 0) |
124 | 118 |
|
125 | 119 |
|
126 |
@qa_utils.DefineHook('instance-reinstall') |
|
127 | 120 |
def TestInstanceReinstall(instance): |
128 | 121 |
"""gnt-instance reinstall""" |
129 | 122 |
master = qa_config.GetMasterNode() |
... | ... | |
133 | 126 |
utils.ShellQuoteArgs(cmd)).wait(), 0) |
134 | 127 |
|
135 | 128 |
|
136 |
@qa_utils.DefineHook('instance-failover') |
|
137 | 129 |
def TestInstanceFailover(instance): |
138 | 130 |
"""gnt-instance failover""" |
139 | 131 |
master = qa_config.GetMasterNode() |
... | ... | |
148 | 140 |
utils.ShellQuoteArgs(cmd)).wait(), 0) |
149 | 141 |
|
150 | 142 |
|
151 |
@qa_utils.DefineHook('instance-info') |
|
152 | 143 |
def TestInstanceInfo(instance): |
153 | 144 |
"""gnt-instance info""" |
154 | 145 |
master = qa_config.GetMasterNode() |
... | ... | |
158 | 149 |
utils.ShellQuoteArgs(cmd)).wait(), 0) |
159 | 150 |
|
160 | 151 |
|
161 |
@qa_utils.DefineHook('instance-modify') |
|
162 | 152 |
def TestInstanceModify(instance): |
163 | 153 |
"""gnt-instance modify""" |
164 | 154 |
master = qa_config.GetMasterNode() |
... | ... | |
191 | 181 |
utils.ShellQuoteArgs(cmd)).wait(), 0) |
192 | 182 |
|
193 | 183 |
|
194 |
@qa_utils.DefineHook('instance-list') |
|
195 | 184 |
def TestInstanceList(): |
196 | 185 |
"""gnt-instance list""" |
197 | 186 |
master = qa_config.GetMasterNode() |
... | ... | |
201 | 190 |
utils.ShellQuoteArgs(cmd)).wait(), 0) |
202 | 191 |
|
203 | 192 |
|
204 |
@qa_utils.DefineHook('instance-console') |
|
205 | 193 |
def TestInstanceConsole(instance): |
206 | 194 |
"""gnt-instance console""" |
207 | 195 |
master = qa_config.GetMasterNode() |
... | ... | |
211 | 199 |
utils.ShellQuoteArgs(cmd)).wait(), 0) |
212 | 200 |
|
213 | 201 |
|
214 |
@qa_utils.DefineHook('instance-replace-disks') |
|
215 | 202 |
def TestReplaceDisks(instance, pnode, snode, othernode): |
216 | 203 |
"""gnt-instance replace-disks""" |
217 | 204 |
master = qa_config.GetMasterNode() |
... | ... | |
240 | 227 |
utils.ShellQuoteArgs(cmd)).wait(), 0) |
241 | 228 |
|
242 | 229 |
|
243 |
@qa_utils.DefineHook('backup-export') |
|
244 | 230 |
def TestInstanceExport(instance, node): |
245 | 231 |
"""gnt-backup export""" |
246 | 232 |
master = qa_config.GetMasterNode() |
... | ... | |
252 | 238 |
return qa_utils.ResolveInstanceName(instance) |
253 | 239 |
|
254 | 240 |
|
255 |
@qa_utils.DefineHook('backup-import') |
|
256 | 241 |
def TestInstanceImport(node, newinst, expnode, name): |
257 | 242 |
"""gnt-backup import""" |
258 | 243 |
master = qa_config.GetMasterNode() |
... | ... | |
269 | 254 |
utils.ShellQuoteArgs(cmd)).wait(), 0) |
270 | 255 |
|
271 | 256 |
|
272 |
@qa_utils.DefineHook('backup-list') |
|
273 | 257 |
def TestBackupList(expnode): |
274 | 258 |
"""gnt-backup list""" |
275 | 259 |
master = qa_config.GetMasterNode() |
Also available in: Unified diff