Revision ebeb600f qa/qa_rapi.py
b/qa/qa_rapi.py | ||
---|---|---|
198 | 198 |
_VerifyReturnsJob, 'PUT', None), |
199 | 199 |
]) |
200 | 200 |
|
201 |
# Test OpPrepareExport |
|
202 |
(job_id, ) = _DoTests([ |
|
203 |
("/2/instances/%s/prepare-export?mode=%s" % |
|
204 |
(instance["name"], constants.EXPORT_MODE_REMOTE), |
|
205 |
_VerifyReturnsJob, "PUT", None), |
|
206 |
]) |
|
207 |
|
|
208 |
result = _WaitForRapiJob(job_id)[0] |
|
209 |
AssertEqual(len(result["handshake"]), 3) |
|
210 |
AssertEqual(result["handshake"][0], constants.RIE_VERSION) |
|
211 |
AssertEqual(len(result["x509_key_name"]), 3) |
|
212 |
AssertIn("-----BEGIN CERTIFICATE-----", result["x509_ca"]) |
|
213 |
|
|
201 | 214 |
|
202 | 215 |
def TestNode(node): |
203 | 216 |
"""Testing getting node(s) info via remote API. |
... | ... | |
259 | 272 |
("/2/jobs/%s" % job_id, _VerifyJob, "GET", None), |
260 | 273 |
]) |
261 | 274 |
|
262 |
rapi.client_utils.PollJob(_rapi_client, job_id, cli.StdioJobPollReportCb()) |
|
275 |
return rapi.client_utils.PollJob(_rapi_client, job_id, |
|
276 |
cli.StdioJobPollReportCb()) |
|
263 | 277 |
|
264 | 278 |
|
265 | 279 |
def TestRapiInstanceAdd(node, use_client): |
Also available in: Unified diff