The nova.tests.test_powervm Module

Test suite for PowerVMDriver.

class FakeBlockAdapter

Bases: nova.virt.powervm.blockdev.PowerVMLocalVolumeAdapter

class FakeIVMOperator(ivm_connection)

Bases: nova.virt.powervm.operator.IVMOperator

attach_disk_to_vhost(disk, vhost)
create_lpar(lpar)
get_cpu_info()
get_disk_info()
get_disk_name_by_vhost(vhost)
get_hostname()
get_logical_vol_size(diskname)
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()
macs_for_instance(instance)
remove_disk(disk_name)
remove_lpar(instance_name)
rename_lpar(old, new)
run_cfg_dev(device_name)
run_vios_command(cmd)
set_lpar_mac_base_value(instance_name, mac)
start_lpar(instance_name)
stop_lpar(instance_name, time_out=30)
class FakePowerVMOperator

Bases: nova.virt.powervm.operator.PowerVMOperator

get_lpar(instance_name, resource_type='lpar')
run_vios_command(cmd)
class PowerVMDriverTestCase(*args, **kwargs)

Bases: nova.test.TestCase

Unit tests for PowerVM connection calls.

setUp()
test_deploy_from_migrated_file()
test_destroy()
test_finish_revert_migration_after_crash()
test_finish_revert_migration_after_crash_before_backup()
test_finish_revert_migration_after_crash_before_new()
test_get_host_stats()
test_get_info()
test_get_long_resize_name()
test_get_resize_name()
test_instance_exists()
test_list_instances()
test_migrate_build_scp_command()
test_migrate_volume_use_instance_name()
test_migrate_volume_use_lv_name()
test_remote_utility_1()
test_remote_utility_2()
test_remote_utility_3()
test_remote_utility_4()
test_set_lpar_mac_base_value()
test_set_lpar_mac_base_value_command()
test_snapshot()
test_spawn()
test_spawn_cleanup_on_fail()
test_spawn_create_lpar_fail()
class PowerVMLocalVolumeAdapterTestCase(*args, **kwargs)

Bases: nova.test.TestCase

Unit tests for nova.virt.powervm.blockdev.PowerVMLocalVolumeAdapter.

setUp()
test_checksum_local_file()
test_copy_image_file_from_host_with_wrong_checksum()
test_copy_image_file_ftp_failed()
test_copy_image_file_wrong_checksum()
fake_get_powervm_operator()
fake_lpar(instance_name)

Previous topic

The nova.tests.test_policy Module

Next topic

The nova.tests.test_quota Module

This Page