Test suite for PowerVMDriver.
-
class FakeIVMOperator
Bases: object
-
attach_disk_to_vhost(disk, vhost)
-
copy_file_to_device(sourcePath, device)
-
copy_image_file(sourcePath, remotePath)
-
create_logical_volume(size)
-
create_lpar(lpar)
-
get_cpu_info()
-
get_disk_info()
-
get_disk_name_by_vhost(vhost)
-
get_lpar(instance_name, resource_type='lpar')
-
get_memory_info()
-
get_vhost_by_instance_id(instance_id)
-
get_virtual_eth_adapter_id()
-
list_lpar_instances()
-
remove_disk(disk_name)
-
remove_logical_volume(lv_name)
-
remove_lpar(instance_name)
-
run_cfg_dev(device_name)
-
start_lpar(instance_name)
-
stop_lpar(instance_name)
-
class PowerVMDriverTestCase(methodName='runTest')
Bases: nova.test.TestCase
Unit tests for PowerVM connection calls.
-
setUp()
-
test_destroy()
-
test_get_info()
-
test_instance_exists()
-
test_list_instances()
-
test_spawn()
-
fake_get_powervm_operator()
-
fake_lpar(instance_name)