Revision 283f9d4c qa/qa_instance.py
b/qa/qa_instance.py | ||
---|---|---|
102 | 102 |
utils.ShellQuoteArgs(cmd)).wait(), 0) |
103 | 103 |
|
104 | 104 |
|
105 |
def TestInstanceReinstall(instance): |
|
106 |
"""gnt-instance reinstall""" |
|
107 |
master = qa_config.GetMasterNode() |
|
108 |
|
|
109 |
cmd = ['gnt-instance', 'reinstall', '-f', instance['name']] |
|
110 |
AssertEqual(StartSSH(master['primary'], |
|
111 |
utils.ShellQuoteArgs(cmd)).wait(), 0) |
|
112 |
|
|
113 |
|
|
105 | 114 |
def TestInstanceFailover(instance): |
106 | 115 |
"""gnt-instance failover""" |
107 | 116 |
master = qa_config.GetMasterNode() |
... | ... | |
120 | 129 |
utils.ShellQuoteArgs(cmd)).wait(), 0) |
121 | 130 |
|
122 | 131 |
|
132 |
def TestInstanceList(): |
|
133 |
"""gnt-instance list""" |
|
134 |
master = qa_config.GetMasterNode() |
|
135 |
|
|
136 |
cmd = ['gnt-instance', 'list'] |
|
137 |
AssertEqual(StartSSH(master['primary'], |
|
138 |
utils.ShellQuoteArgs(cmd)).wait(), 0) |
|
139 |
|
|
140 |
|
|
123 | 141 |
def TestInstanceExport(instance, node): |
124 | 142 |
"""gnt-backup export""" |
125 | 143 |
master = qa_config.GetMasterNode() |
... | ... | |
145 | 163 |
cmd.append(newinst['name']) |
146 | 164 |
AssertEqual(StartSSH(master['primary'], |
147 | 165 |
utils.ShellQuoteArgs(cmd)).wait(), 0) |
166 |
|
|
167 |
|
|
168 |
def TestBackupList(expnode): |
|
169 |
"""gnt-backup list""" |
|
170 |
master = qa_config.GetMasterNode() |
|
171 |
|
|
172 |
cmd = ['gnt-backup', 'list', '--nodes=%s' % expnode['primary']] |
|
173 |
AssertEqual(StartSSH(master['primary'], |
|
174 |
utils.ShellQuoteArgs(cmd)).wait(), 0) |
Also available in: Unified diff