Revision 3b7158ef qa/qa_rapi.py
b/qa/qa_rapi.py | ||
---|---|---|
358 | 358 |
_WaitForRapiJob(_rapi_client.RenameInstance(name1, name2)) |
359 | 359 |
|
360 | 360 |
|
361 |
def TestRapiInstanceModify(instance): |
|
362 |
"""Test modifying instance via RAPI""" |
|
363 |
def _ModifyInstance(**kwargs): |
|
364 |
_WaitForRapiJob(_rapi_client.ModifyInstance(instance["name"], **kwargs)) |
|
365 |
|
|
366 |
_ModifyInstance(hvparams={ |
|
367 |
constants.HV_KERNEL_ARGS: "single", |
|
368 |
}) |
|
369 |
|
|
370 |
_ModifyInstance(beparams={ |
|
371 |
constants.BE_VCPUS: 3, |
|
372 |
}) |
|
373 |
|
|
374 |
_ModifyInstance(beparams={ |
|
375 |
constants.BE_VCPUS: constants.VALUE_DEFAULT, |
|
376 |
}) |
|
377 |
|
|
378 |
_ModifyInstance(hvparams={ |
|
379 |
constants.HV_KERNEL_ARGS: constants.VALUE_DEFAULT, |
|
380 |
}) |
|
381 |
|
|
382 |
|
|
361 | 383 |
def TestInterClusterInstanceMove(src_instance, dest_instance, pnode, snode): |
362 | 384 |
"""Test tools/move-instance""" |
363 | 385 |
master = qa_config.GetMasterNode() |
Also available in: Unified diff