Revision bc696589 qa/qa_instance.py
b/qa/qa_instance.py | ||
---|---|---|
280 | 280 |
|
281 | 281 |
|
282 | 282 |
def TestInstanceExport(instance, node): |
283 |
"""gnt-backup export""" |
|
283 |
"""gnt-backup export -n ..."""
|
|
284 | 284 |
master = qa_config.GetMasterNode() |
285 | 285 |
|
286 | 286 |
cmd = ['gnt-backup', 'export', '-n', node['primary'], instance['name']] |
... | ... | |
300 | 300 |
utils.ShellQuoteArgs(cmd)).wait(), 0) |
301 | 301 |
|
302 | 302 |
|
303 |
def TestInstanceExportNoTarget(instance): |
|
304 |
"""gnt-backup export (without target node, should fail)""" |
|
305 |
master = qa_config.GetMasterNode() |
|
306 |
|
|
307 |
cmd = ["gnt-backup", "export", instance["name"]] |
|
308 |
AssertNotEqual(StartSSH(master['primary'], |
|
309 |
utils.ShellQuoteArgs(cmd)).wait(), 0) |
|
310 |
|
|
311 |
|
|
303 | 312 |
def TestInstanceImport(node, newinst, expnode, name): |
304 | 313 |
"""gnt-backup import""" |
305 | 314 |
master = qa_config.GetMasterNode() |
Also available in: Unified diff