@

Home 

OpenStack Study: nova

OpenStack Index

Previous

Next

    def test_get_my_ipv4_address_bad_process(self):

        def fake_execute(*args, **kwargs):

    def test_get_my_ipv4_address_with_single_interface(self):

        def fake_execute(*args, **kwargs):

    def test_get_my_ipv4_address_with_multi_ipv4_on_single_interface(self):

        def fake_execute(*args, **kwargs):

    def test_get_my_ipv4_address_with_multiple_interfaces(self):

        def fake_execute(*args, **kwargs):

class GenericUtilsTestCase(test.NoDBTestCase):

    def test_parse_server_string(self):

    def test_hostname_unicode_sanitization(self):

    def test_hostname_sanitize_periods(self):

    def test_hostname_sanitize_dashes(self):

    def test_hostname_sanitize_characters(self):

    def test_hostname_translate(self):

    def test_read_cached_file(self):

    def test_read_modified_cached_file(self):

        def test_reload(reloaded_data):

    def test_generate_password(self):

    def test_read_file_as_root(self):

        def fake_execute(*args, **kwargs):

    def test_temporary_chown(self):

        def fake_execute(*args, **kwargs):

    def test_xhtml_escape(self):

    def test_is_valid_ipv4(self):

    def test_is_valid_ipv6(self):

    def test_is_valid_ipv6_cidr(self):

    def test_get_shortened_ipv6(self):

    def test_get_shortened_ipv6_cidr(self):

    def test_get_hash_str(self):

    def test_cpu_count(self):

        def fake_cpu_count():

    def test_cpu_count_not_implemented_returns_1(self):

        def fake_cpu_count():

class MonkeyPatchTestCase(test.NoDBTestCase):

    def setUp(self):

    def test_monkey_patch(self):

class MonkeyPatchDefaultTestCase(test.NoDBTestCase):

    def setUp(self):

    def test_monkey_patch_default_mod(self):

class AuditPeriodTest(test.NoDBTestCase):

    def setUp(self):

    def tearDown(self):

    def test_hour(self):

    def test_hour_with_offset_before_current(self):

    def test_hour_with_offset_after_current(self):

    def test_day(self):

    def test_day_with_offset_before_current(self):

    def test_day_with_offset_after_current(self):

    def test_month(self):

    def test_month_with_offset_before_current(self):

    def test_month_with_offset_after_current(self):

    def test_year(self):

    def test_year_with_offset_before_current(self):

    def test_year_with_offset_after_current(self):

class MkfsTestCase(test.NoDBTestCase):

    def test_mkfs(self):

    def test_mkfs_with_label(self):

class LastBytesTestCase(test.NoDBTestCase):

    def setUp(self):

    def test_truncated(self):

    def test_read_all(self):

    def test_seek_too_far_real_file(self):

class IntLikeTestCase(test.NoDBTestCase):

    def test_is_int_like(self):

class MetadataToDictTestCase(test.NoDBTestCase):

    def test_metadata_to_dict(self):

    def test_metadata_to_dict_empty(self):

    def test_dict_to_metadata(self):

    def test_dict_to_metadata_empty(self):

class WrappedCodeTestCase(test.NoDBTestCase):

    def _wrapper(self, function):

        def decorated_function(self, *args, **kwargs):

    def test_single_wrapped(self):

        def wrapped(self, instance, red=None, blue=None):

    def test_double_wrapped(self):

        def wrapped(self, instance, red=None, blue=None):

    def test_triple_wrapped(self):

        def wrapped(self, instance, red=None, blue=None):

class ExpectedArgsTestCase(test.NoDBTestCase):

    def test_passes(self):

        def dec(f):

        def func(foo, bar, baz="lol"):

    def test_raises(self):

        def dec(f):

        def func(bar, baz):

    def test_var_no_of_args(self):

        def dec(f):

        def func(bar, *args, **kwargs):

    def test_more_layers(self):

        def dec(f):

        def dec_2(f):

        def func(bar, baz):

class StringLengthTestCase(test.NoDBTestCase):

    def test_check_string_length(self):

class ValidateIntegerTestCase(test.NoDBTestCase):

    def test_valid_inputs(self):

    def test_invalid_inputs(self):

class ValidateNeutronConfiguration(test.NoDBTestCase):

    def setUp(self):

    def test_nova_network(self):

    def test_neutron(self):

    def test_quantum(self):

class AutoDiskConfigUtilTestCase(test.NoDBTestCase):

    def test_is_auto_disk_config_disabled(self):

    def test_is_auto_disk_config_disabled_none(self):

    def test_is_auto_disk_config_disabled_false(self):

class GetSystemMetadataFromImageTestCase(test.NoDBTestCase):

    def get_image(self):

    def get_flavor(self):

    def test_base_image_properties(self):

    def test_inherit_image_properties(self):

    def test_vhd_min_disk_image(self):

    def test_dont_inherit_empty_values(self):

class GetImageFromSystemMetadataTestCase(test.NoDBTestCase):

    def get_system_metadata(self):

    def test_image_from_system_metadata(self):

    def test_dont_inherit_empty_values(self):

    def test_non_inheritable_image_properties(self):

class VersionTestCase(test.NoDBTestCase):

    def test_convert_version_to_int(self):

    def test_convert_version_to_string(self):

    def test_convert_version_to_tuple(self):

\OpenStack\nova-2014.1\nova\tests\test_versions.py

class VersionTestCase(test.NoDBTestCase):

    def test_version_string_with_package_is_good(self):

    def test_release_file(self):

        def fake_find_file(self, name):

        def fake_open(path, *args, **kwargs):

\OpenStack\nova-2014.1\nova\tests\test_weights.py

class TestWeigher(test.NoDBTestCase):

    def test_no_multiplier(self):

    def test_no_weight_object(self):

    def test_normalization(self):

\OpenStack\nova-2014.1\nova\tests\test_wsgi.py

class TestLoaderNothingExists(test.NoDBTestCase):

    def setUp(self):

    def test_relpath_config_not_found(self):

    def test_asbpath_config_not_found(self):

class TestLoaderNormalFilesystem(test.NoDBTestCase):

    def setUp(self):

    def test_config_found(self):

    def test_app_not_found(self):

    def test_app_found(self):

    def tearDown(self):

class TestWSGIServer(test.NoDBTestCase):

    def test_no_app(self):

    def test_custom_max_header_line(self):

    def test_start_random_port(self):

    def test_start_random_port_with_ipv6(self):

    def test_uri_length_limit(self):

class TestWSGIServerWithSSL(test.NoDBTestCase):

    def setUp(self):

    def test_ssl_server(self):

        def test_app(env, start_response):

    def test_two_servers(self):

        def test_app(env, start_response):

    def test_app_using_ipv6_and_ssl(self):

        def hello_world(req):

\OpenStack\nova-2014.1\nova\tests\utils.py

def get_test_admin_context():

def get_test_image_info(context, instance_ref):

def get_test_flavor(context=None, options=None):

def get_test_instance(context=None, flavor=None, obj=False):

def get_test_network_info(count=1):

def is_osx():

def dns_manager():

def cleanup_dns_managers():

def killer_xml_body():

def is_ipv6_supported():

\OpenStack\nova-2014.1\nova\tests\virt\baremetal\db\base.py

class Database(test.Database):

    def post_migrations(self):

class BMDBTestCase(test.TestCase):

    def setUp(self):

\OpenStack\nova-2014.1\nova\tests\virt\baremetal\db\test_bm_interface.py

class BareMetalInterfaceTestCase(base.BMDBTestCase):

    def test_unique_address(self):

    def test_unique_vif_uuid(self):

    def test_vif_not_found(self):

\OpenStack\nova-2014.1\nova\tests\virt\baremetal\db\test_bm_node.py

class BareMetalNodesTestCase(base.BMDBTestCase):

    def _create_nodes(self):

    def test_get_all(self):

    def test_get(self):

    def test_get_by_service_host(self):

    def test_get_associated(self):

    def test_destroy(self):

    def test_destroy_with_interfaces(self):

    def test_find_free(self):

\OpenStack\nova-2014.1\nova\tests\virt\baremetal\db\utils.py

def new_bm_node(**kwargs):

def new_bm_interface(**kwargs):

\OpenStack\nova-2014.1\nova\tests\virt\baremetal\db\__init__.py

\OpenStack\nova-2014.1\nova\tests\virt\baremetal\test_driver.py

class BareMetalDriverNoDBTestCase(test.NoDBTestCase):

    def setUp(self):

    def test_validate_driver_loading(self):

    def test_driver_capabilities(self):

class BareMetalDriverWithDBTestCase(bm_db_base.BMDBTestCase):

    def setUp(self):

    def _create_node(self, node_info=None, nic_info=None, ephemeral=True):

    def test_get_host_stats(self):

    def test_spawn_ok(self):

    def test_spawn_no_ephemeral_ok(self):

    def _test_rebuild(self, ephemeral):

    def test_rebuild_ok(self):

    def test_rebuild_preserve_ephemeral(self):

    def test_macs_from_nic_for_instance(self):

    def test_macs_for_instance_after_spawn(self):

    def test_macs_for_instance(self):

    def test_macs_for_instance_no_interfaces(self):

    def test_spawn_node_already_associated(self):

    def test_spawn_node_in_use(self):

    def test_spawn_node_not_found(self):

    def test_spawn_fails(self):

    def test_spawn_prepared(self):

        def update_2prepared(context, node, instance, state):

    def test_spawn_fails_to_cleanup(self):

    def test_spawn_destroy_images_on_deploy(self):

    def test_destroy_ok(self):

    def test_destroy_fails(self):

    def test_get_available_resources(self):

    def test_get_available_nodes(self):

    def test_list_instances(self):

    def test_get_info_no_such_node(self):

    def test_get_info_ok(self):

    def test_get_info_with_defunct_pm(self):

    def test_attach_volume(self):

    def test_detach_volume(self):

    def test_attach_block_devices(self):

    def test_detach_block_devices(self):

\OpenStack\nova-2014.1\nova\tests\virt\baremetal\test_iboot_pdu.py

class BareMetalIbootPDUTestCase(test.TestCase):

    def setUp(self):

    def test_construct(self):

    def test_construct_with_port_and_relay(self):

    def test_construct_with_invalid_port(self):

    def test_construct_with_relay_id(self):

    def test_activate_node(self):

    def test_deactivate_node(self):

    def test_reboot_node(self):

    def test_is_power_on(self):

\OpenStack\nova-2014.1\nova\tests\virt\baremetal\test_ipmi.py

class BareMetalIPMITestCase(test.NoDBTestCase):

    def setUp(self):

    def test_construct(self):

    def test_make_password_file(self):

    def test_make_empty_password_file(self):

    def test_exec_ipmitool(self):

    def test_is_power_on_ok(self):

    def test_is_power_no_answer(self):

    def test_power_already_on(self):

    def test_power_on_ok(self):

    def test_power_on_fail(self):

    def test_power_on_max_retries(self):

    def test_power_off_ok(self):

    def test_get_console_pid_path(self):

    def test_console_pid(self):

    def test_console_pid_nan(self):

    def test_console_pid_file_not_found(self):

\OpenStack\nova-2014.1\nova\tests\virt\baremetal\test_nova_baremetal_deploy_helper.py

class WorkerTestCase(bm_db_base.BMDBTestCase):

    def setUp(self):

    def tearDown(self):

    def wait_queue_empty(self, timeout):

    def test_run_calls_deploy(self):

        def fake_deploy(**params):

    def test_run_with_failing_deploy(self):

        def fake_deploy(**params):

class PhysicalWorkTestCase(test.NoDBTestCase):

    def setUp(self):

        def noop(*args, **kwargs):

    def _deploy_mox(self):

    def test_deploy_no_ephemeral(self):

    def test_deploy_with_ephemeral(self):

    def test_deploy_preserve_ephemeral(self):

    def test_always_logout_iscsi(self):

class WorkOnDiskTestCase(test.NoDBTestCase):

    def setUp(self):

    def test_no_parent_device(self):

    def test_no_root_partition(self):

    def test_no_swap_partition(self):

    def test_no_ephemeral_partition(self):

class SwitchPxeConfigTestCase(test.NoDBTestCase):

    def setUp(self):

    def tearDown(self):

    def test_switch_pxe_config(self):

class OtherFunctionTestCase(test.NoDBTestCase):

    def test_get_dev(self):

    def test_get_image_mb(self):

        def fake_getsize(path):

\OpenStack\nova-2014.1\nova\tests\virt\baremetal\test_nova_baremetal_manage.py

class BareMetalDbCommandsTestCase(bm_db_base.BMDBTestCase):

    def setUp(self):

    def test_sync_and_version(self):

\OpenStack\nova-2014.1\nova\tests\virt\baremetal\test_pxe.py

class BareMetalPXETestCase(bm_db_base.BMDBTestCase):

    def setUp(self):

    def _create_node(self):

class PXEClassMethodsTestCase(BareMetalPXETestCase):

    def test_build_pxe_config(self):

    def test_build_pxe_network_config(self):

    def test_build_network_config(self):

    def test_build_network_config_dhcp(self):

    def test_build_network_config_static(self):

    def test_build_network_config_static_parameters(self):

    def test_image_dir_path(self):

    def test_image_file_path(self):

    def test_pxe_config_file_path(self):

    def test_pxe_mac_path(self):

    def test_get_instance_deploy_ids(self):

    def test_get_default_deploy_ids(self):

    def test_get_partition_sizes(self):

    def test_swap_not_zero(self):

    def test_get_tftp_image_info(self):

class PXEPrivateMethodsTestCase(BareMetalPXETestCase):

    def test_collect_mac_addresses(self):

    def test_cache_tftp_images(self):

    def test_cache_image(self):

    def test_inject_into_image(self):

class PXEPublicMethodsTestCase(BareMetalPXETestCase):

    def test_cache_images(self):

    def test_destroy_images(self):

    def test_dhcp_options_for_instance(self):

    def test_activate_bootloader_passes_details(self):

    def test_activate_and_deactivate_bootloader(self):

    def test_deactivate_bootloader_for_nonexistent_instance(self):

    def test_activate_node(self):

\OpenStack\nova-2014.1\nova\tests\virt\baremetal\test_tilera.py

class BareMetalTileraTestCase(bm_db_base.BMDBTestCase):

    def setUp(self):

    def _create_node(self):

class TileraClassMethodsTestCase(BareMetalTileraTestCase):

    def test_build_network_config(self):

    def test_build_network_config_dhcp(self):

    def test_build_network_config_static(self):

    def test_image_dir_path(self):

    def test_image_file_path(self):

    def test_tilera_nfs_path(self):

    def test_get_partition_sizes(self):

    def test_swap_not_zero(self):

    def test_get_tftp_image_info(self):

class TileraPrivateMethodsTestCase(BareMetalTileraTestCase):

    def test_collect_mac_addresses(self):

    def test_cache_tftp_images(self):

    def test_cache_image(self):

    def test_inject_into_image(self):

class TileraPublicMethodsTestCase(BareMetalTileraTestCase):

    def test_cache_images(self):

    def test_destroy_images(self):

    def test_activate_bootloader_passes_details(self):

    def test_activate_and_deactivate_bootloader(self):

    def test_deactivate_bootloader_for_nonexistent_instance(self):

    def test_activate_node(self):

\OpenStack\nova-2014.1\nova\tests\virt\baremetal\test_tilera_pdu.py

class BareMetalPduTestCase(test.NoDBTestCase):

    def setUp(self):

    def test_construct(self):

    def test_exec_pdutool(self):

    def test_is_power(self):

    def test_power_already_on(self):

    def test_power_on_ok(self):

    def test_power_on_fail(self):

    def test_power_on_max_retries(self):

    def test_power_off_ok(self):

\OpenStack\nova-2014.1\nova\tests\virt\baremetal\test_utils.py

class BareMetalUtilsTestCase(test.NoDBTestCase):

    def test_random_alnum(self):

    def test_unlink(self):

    def test_unlink_ENOENT(self):

    def test_create_link(self):

    def test_create_link_EEXIST(self):

    def test_cache_image_with_clean(self):

\OpenStack\nova-2014.1\nova\tests\virt\baremetal\test_virtual_power_driver.py

class BareMetalVPDTestCase(bm_db_base.BMDBTestCase):

    def setUp(self):

    def _create_node(self):

    def _create_pm(self):

class VPDMissingOptionsTestCase(BareMetalVPDTestCase):

    def test_get_conn_missing_options(self):

class VPDClassMethodsTestCase(BareMetalVPDTestCase):

    def setUp(self):

    def test_get_conn_success_pass(self):

    def test_get_conn_success_key(self):

    def test_get_full_node_list(self):

    def test_check_for_node(self):

    def test_check_for_node_not_found(self):

    def test_activate_node(self):

    def test_activate_node_fail(self):

    def test_deactivate_node(self):

    def test_deactivate_node_fail(self):

    def test_reboot_node(self):

    def test_reboot_node_fail(self):

    def test_is_power_on(self):

    def test_is_power_on_fail(self):

    def test_is_power_on_match_subname(self):

    def test_run_command(self):

    def test_run_command_raises_exception(self):

    def test_activate_node_with_exception(self):

\OpenStack\nova-2014.1\nova\tests\virt\baremetal\test_volume_driver.py

def fake_show_tgtadm():

class BareMetalVolumeTestCase(test.NoDBTestCase):

    def setUp(self):

    def test_list_backingstore_path(self):

    def test_get_next_tid(self):

    def test_find_tid_found(self):

    def test_find_tid_not_found(self):

    def test_get_iqn(self):

class FakeConf(object):

    def __init__(self, source_path):

class BareMetalLibVirtVolumeDriverTestCase(test.TestCase):

    def setUp(self):

    def test_init_loads_volume_drivers(self):

    def test_fake_connect_volume(self):

    def test_volume_driver_method_ok(self):

    def test_volume_driver_method_driver_type_not_found(self):

    def test_connect_volume(self):

    def test_disconnect_volume(self):

    def test_publish_iscsi(self):

    def test_depublish_iscsi_ok(self):

    def test_depublish_iscsi_do_nothing_if_tid_is_not_found(self):

    def test_attach_volume(self):

    def test_detach_volume(self):

\OpenStack\nova-2014.1\nova\tests\virt\baremetal\__init__.py

\OpenStack\nova-2014.1\nova\tests\virt\disk\test_api.py

class FakeMount(object):

    def instance_for_format(imgfile, mountdir, partition, imgfmt):

    def get_dev(self):

    def unget_dev(self):

class APITestCase(test.NoDBTestCase):

    def setUp(self):

    def test_can_resize_need_fs_type_specified(self):

        def _fake_get_disk_size(path):

        def fake_trycmd(*args, **kwargs):

        def fake_returns_true(*args, **kwargs):

        def fake_import_fails(*args, **kwargs):

    def test_resize2fs_success(self):

    def test_resize2fs_e2fsck_fails(self):

    def test_extend_qcow_success(self):

    def test_extend_raw_success(self):

\OpenStack\nova-2014.1\nova\tests\virt\disk\test_loop.py

def _fake_noop(*args, **kwargs):

def _fake_trycmd_losetup_works(*args, **kwargs):

def _fake_trycmd_losetup_fails(*args, **kwards):

class LoopTestCase(test.NoDBTestCase):

    def test_get_dev(self):

    def test_inner_get_dev_fails(self):

    def test_get_dev_timeout(self):

        def fake_get_dev_fails():

    def test_unget_dev(self):

\OpenStack\nova-2014.1\nova\tests\virt\disk\test_nbd.py

def _fake_exists_no_users(path):

def _fake_listdir_nbd_devices(path):

def _fake_exists_all_used(path):

def _fake_detect_nbd_devices_none(self):

def _fake_detect_nbd_devices(self):

def _fake_noop(*args, **kwargs):

class NbdTestCase(test.NoDBTestCase):

    def setUp(self):

    def test_nbd_no_devices(self):

    def test_nbd_no_free_devices(self):

    def test_nbd_not_loaded(self):

        def fake_exists(path):

    def test_nbd_allocation(self):

    def test_nbd_allocation_one_in_use(self):

        def fake_exists(path):

    def test_inner_get_dev_no_devices(self):

    def test_inner_get_dev_qemu_fails(self):

        def fake_trycmd(*args, **kwargs):

    def test_inner_get_dev_qemu_timeout(self):

        def fake_trycmd(*args, **kwargs):

    def fake_exists_one(self, path):

    def fake_trycmd_creates_pid(self, *args, **kwargs):

        def fake_exists_two(path):

    def test_inner_get_dev_works(self):

    def test_unget_dev_simple(self):

    def test_get_dev(self):

    def test_get_dev_timeout(self):

        def fake_get_dev_fails(self):

    def test_do_mount_need_to_specify_fs_type(self):

        def fake_trycmd(*args, **kwargs):

        def fake_returns_true(*args, **kwargs):

    def test_device_creation_race(self):

        def fake_find_unused(self):

        def delay_and_remove_device(*args, **kwargs):

        def pid_exists(pidfile):

        def get_a_device():

\OpenStack\nova-2014.1\nova\tests\virt\disk\__init__.py

\OpenStack\nova-2014.1\nova\tests\virt\hyperv\db_fakes.py

def get_fake_instance_data(name, project_id, user_id):

def get_fake_image_data(project_id, user_id):

def get_fake_volume_info_data(target_portal, volume_id):

def get_fake_block_device_info(target_portal, volume_id):

def stub_out_db_instance_api(stubs):

\OpenStack\nova-2014.1\nova\tests\virt\hyperv\fake.py

class PathUtils(object):

    def open(self, path, mode):

    def exists(self, path):

    def makedirs(self, path):

    def remove(self, path):

    def rename(self, src, dest):

    def copyfile(self, src, dest):

    def copy(self, src, dest):

    def rmtree(self, path):

    def get_instances_dir(self, remote_server=None):

    def get_instance_migr_revert_dir(self, instance_name, create_dir=False, remove_dir=False):

    def get_instance_dir(self, instance_name, remote_server=None, create_dir=True, remove_dir=False):

    def lookup_root_vhd_path(self, instance_name):

    def lookup_ephemeral_vhd_path(self, instance_name):

    def get_root_vhd_path(self, instance_name, format_ext):

    def get_ephemeral_vhd_path(self, instance_name, format_ext):

    def get_base_vhd_dir(self):

    def get_export_dir(self, instance_name):

    def vhd_exists(self, path):

\OpenStack\nova-2014.1\nova\tests\virt\hyperv\test_hypervapi.py

class HyperVAPIBaseTestCase(test.NoDBTestCase):

    def __init__(self, test_case_name):

    def setUp(self):

    def _setup_stubs(self):

        def fake_fetch(context, image_id, target, user, project):

        def fake_get_remote_image_service(context, name):

        def fake_check_min_windows_version(fake_self, major, minor):

        def fake_sleep(ms):

        def fake_vmutils__init__(self, host='.'):

    def tearDown(self):

class HyperVAPITestCase(HyperVAPIBaseTestCase):

    def test_get_available_resource(self):

    def test_get_host_stats(self):

    def test_list_instances(self):

    def test_get_info(self):

    def test_get_info_instance_not_found(self):

    def test_spawn_cow_image(self):

    def test_spawn_cow_image_vhdx(self):

    def test_spawn_no_cow_image(self):

    def test_spawn_dynamic_memory(self):

    def test_spawn_no_cow_image_vhdx(self):

    def _setup_spawn_config_drive_mocks(self, use_cdrom):

    def _test_spawn_config_drive(self, use_cdrom, format_error=False):

    def test_spawn_config_drive(self):

    def test_spawn_config_drive_format_error(self):

    def test_spawn_config_drive_cdrom(self):

    def test_spawn_no_config_drive(self):

    def _test_spawn_nova_net_vif(self, with_port):

        def setup_vif_mocks():

    def test_spawn_nova_net_vif_with_port(self):

    def test_spawn_nova_net_vif_without_port(self):

    def test_spawn_nova_net_vif_no_vswitch_exception(self):

        def setup_vif_mocks():

    def test_spawn_with_metrics_collection(self):

    def test_spawn_with_ephemeral_storage(self):

    def _check_instance_name(self, vm_name):

    def _test_vm_state_change(self, action, from_state, to_state):

    def test_pause(self):

    def test_pause_already_paused(self):

    def test_unpause(self):

    def test_unpause_already_running(self):

    def test_suspend(self):

    def test_suspend_already_suspended(self):

    def test_resume(self):

    def test_resume_already_running(self):

    def test_power_off(self):

    def test_power_off_already_powered_off(self):

    def test_power_on(self):

    def test_power_on_already_running(self):

    def test_reboot(self):

    def _setup_destroy_mocks(self, destroy_disks=True):

    def test_destroy(self):

    def test_live_migration_unsupported_os(self):

    def test_live_migration_without_volumes(self):

    def test_live_migration_with_volumes(self):

    def test_live_migration_with_target_failure(self):

    def _test_live_migration(self, test_failure=False, with_volumes=False, unsupported_os=False):

    def test_pre_live_migration_cow_image(self):

    def test_pre_live_migration_no_cow_image(self):

    def test_pre_live_migration_with_volumes(self):

    def _test_pre_live_migration(self, cow, with_volumes):

    def test_snapshot_with_update_failure(self):

    def _setup_snapshot_mocks(self):

        def copy_dest_disk_path(src, dest):

        def copy_dest_base_disk_path(src, dest):

        def check_dest_disk_path(path):

        def check_dest_base_disk_path(path):

        def check_snapshot_path(snapshot_path):

    def test_snapshot(self):

    def _get_instance_data(self):

    def _spawn_instance(self, cow, block_device_info=None, ephemeral_storage=False):

    def _add_ide_disk(self, vm_name, path, ctrller_addr, drive_addr, drive_type):

    def _add_volume_disk(self, vm_name, controller_path, address, mounted_disk_path):

    def _check_img_path(self, image_path):

    def _setup_create_instance_mocks(self, setup_vif_mocks_func=None, boot_from_volume=False, block_device_info=None, admin_permissions=True, ephemeral_storage=False):

    def _set_vm_name(self, vm_name):

    def _check_vm_name(self, vm_name):

    def _setup_check_admin_permissions_mocks(self, admin_permissions=True):

    def _setup_get_cached_image_mocks(self, cow=True, vhd_format=constants.DISK_FORMAT_VHD):

        def check_img_path_with_ext(image_path):

    def _setup_spawn_instance_mocks(self, cow, setup_vif_mocks_func=None, with_exception=False, block_device_info=None, boot_from_volume=False, config_drive=False, use_cdrom=False, admin_permissions=True, vhd_format=constants.DISK_FORMAT_VHD, ephemeral_storage=False):

    def _test_spawn_instance(self, cow=True, expected_ide_disks=1, expected_ide_dvds=0, setup_vif_mocks_func=None, with_exception=False, config_drive=False, use_cdrom=False, admin_permissions=True, vhd_format=constants.DISK_FORMAT_VHD, ephemeral_storage=False):

    def _mock_get_mounted_disk_from_lun(self, target_iqn, target_lun, fake_mounted_disk, fake_device_number):

    def _mock_login_storage_target(self, target_iqn, target_lun, target_portal, fake_mounted_disk, fake_device_number):

    def _mock_attach_volume(self, instance_name, target_iqn, target_lun, target_portal=None, boot_from_volume=False):

    def _test_util_class_version(self, v1_class, v2_class, get_instance_action, is_hyperv_2012, force_v1_flag, force_utils_v1):

    def test_volumeutils_version_hyperv_2012(self):

    def test_volumeutils_version_hyperv_2012_force_v1(self):

    def test_volumeutils_version_hyperv_2008R2(self):

    def test_vmutils_version_hyperv_2012(self):

    def test_vmutils_version_hyperv_2012_force_v1(self):

    def test_vmutils_version_hyperv_2008R2(self):

    def test_vhdutils_version_hyperv_2012(self):

    def test_vhdutils_version_hyperv_2012_force_v1(self):

    def test_vhdutils_version_hyperv_2008R2(self):

    def test_networkutils_version_hyperv_2012(self):

    def test_networkutils_version_hyperv_2012_force_v1(self):

    def test_networkutils_version_hyperv_2008R2(self):

    def test_attach_volume(self):

    def _mock_get_mounted_disk_from_lun_error(self, target_iqn, target_lun, fake_mounted_disk, fake_device_number):

    def _mock_attach_volume_target_logout(self, instance_name, target_iqn, target_lun, target_portal=None, boot_from_volume=False):

    def test_attach_volume_logout(self):

    def test_attach_volume_connection_error(self):

        def fake_login_storage_target(connection_info):

    def _mock_detach_volume(self, target_iqn, target_lun):

    def test_detach_volume(self):

    def test_boot_from_volume(self):

    def test_get_volume_connector(self):

    def _setup_test_migrate_disk_and_power_off_mocks(self, same_host=False, copy_exception=False, size_exception=False):

    def test_migrate_disk_and_power_off(self):

    def test_migrate_disk_and_power_off_same_host(self):

    def test_migrate_disk_and_power_off_copy_exception(self):

    def test_migrate_disk_and_power_off_smaller_root_vhd_size_exception(self):

    def _test_finish_migration(self, power_on, ephemeral_storage=False):

    def test_finish_migration_power_on(self):

    def test_finish_migration_power_off(self):

    def test_finish_migration_with_ephemeral_storage(self):

    def test_confirm_migration(self):

    def _test_finish_revert_migration(self, power_on, ephemeral_storage=False):

    def test_finish_revert_migration_power_on(self):

    def test_finish_revert_migration_power_off(self):

    def test_spawn_no_admin_permissions(self):

    def test_finish_revert_migration_with_ephemeral_storage(self):

    def test_plug_vifs(self):

    def test_unplug_vifs(self):

    def test_rollback_live_migration_at_destination(self):

    def test_refresh_instance_security_rules(self):

    def test_get_rdp_console(self):

class VolumeOpsTestCase(HyperVAPIBaseTestCase):

    def setUp(self):

    def test_get_mounted_disk_from_lun(self):

    def test_get_mounted_disk_from_lun_failure(self):

\OpenStack\nova-2014.1\nova\tests\virt\hyperv\test_networkutilsv2.py

class NetworkUtilsV2TestCase(test.NoDBTestCase):

    def setUp(self):

    def test_get_external_vswitch(self):

    def test_get_external_vswitch_not_found(self):

    def test_get_external_vswitch_no_name(self):

\OpenStack\nova-2014.1\nova\tests\virt\hyperv\test_rdpconsoleutils.py

class RDPConsoleUtilsTestCase(test.NoDBTestCase):

    def setUp(self):

    def test_get_rdp_console_port(self):

\OpenStack\nova-2014.1\nova\tests\virt\hyperv\test_rdpconsoleutilsv2.py

class RDPConsoleUtilsV2TestCase(test.NoDBTestCase):

    def setUp(self):

    def test_get_rdp_console_port(self):

\OpenStack\nova-2014.1\nova\tests\virt\hyperv\test_vhdutils.py

class VHDUtilsTestCase(test.NoDBTestCase):

    def setUp(self):

    def test_create_dynamic_vhd(self):

    def test_get_internal_vhd_size_by_file_size_fixed(self):

    def test_get_internal_vhd_size_by_file_size_dynamic(self):

    def test_get_internal_vhd_size_by_file_size_unsupported(self):

    def test_get_vhd_format_vhdx(self):

    def test_get_vhd_format_vhd(self):

    def test_get_vhd_format_invalid_format(self):

    def test_get_vhd_format_zero_length_file(self):

\OpenStack\nova-2014.1\nova\tests\virt\hyperv\test_vhdutilsv2.py

class VHDUtilsV2TestCase(test.NoDBTestCase):

    def setUp(self):

    def test_get_vhd_info(self):

    def test_create_dynamic_vhd(self):

    def test_create_differencing_vhd(self):

    def test_reconnect_parent_vhd(self):

    def test_resize_vhd(self):

    def test_get_vhdx_internal_size(self):

    def test_get_vhdx_current_header(self):

    def test_get_vhdx_metadata_size(self):

    def test_get_block_size(self):

    def test_get_log_size(self):

\OpenStack\nova-2014.1\nova\tests\virt\hyperv\test_vmutils.py

class VMUtilsTestCase(test.NoDBTestCase):

    def setUp(self):

    def test_enable_vm_metrics_collection(self):

    def _lookup_vm(self):

    def test_set_vm_memory_static(self):

    def test_set_vm_memory_dynamic(self):

    def _test_set_vm_memory_dynamic(self, dynamic_memory_ratio):

    def test_get_vm_storage_paths(self, mock_get_vm_disks):

    def test_get_vm_disks(self):

    def _create_mock_disks(self):

\OpenStack\nova-2014.1\nova\tests\virt\hyperv\test_vmutilsv2.py

class VMUtilsV2TestCase(test.NoDBTestCase):

    def setUp(self):

    def _lookup_vm(self):

    def test_create_vm(self):

    def test_attach_ide_drive(self):

    def test_attach_volume_to_controller(self):

    def test_create_scsi_controller(self):

    def test_get_vm_storage_paths(self):

    def test_destroy(self):

    def test_get_vm_state(self):

    def test_take_vm_snapshot(self):

    def test_remove_vm_snapshot(self):

    def test_set_nic_connection(self):

    def test_add_virt_resource(self):

    def test_modify_virt_resource(self):

    def test_remove_virt_resource(self):

    def test_enable_vm_metrics_collection(self, mock_get_vm_disks):

\OpenStack\nova-2014.1\nova\tests\virt\hyperv\__init__.py

\OpenStack\nova-2014.1\nova\tests\virt\libvirt\fakelibvirt.py

def _reset():

def _parse_disk_info(element):

class libvirtError(Exception):

    def __init__(self, msg, error_code=VIR_ERR_INTERNAL_ERROR, error_domain=VIR_FROM_QEMU):

    def get_error_code(self):

    def get_error_domain(self):

class NWFilter(object):

    def __init__(self, connection, xml):

    def _parse_xml(self, xml):

    def undefine(self):

class Domain(object):

    def __init__(self, connection, xml, running=False, transient=False):

    def _parse_definition(self, xml):

    def create(self):

    def createWithFlags(self, flags):

    def isActive(self):

    def undefine(self):

    def undefineFlags(self, flags):

    def destroy(self):

    def ID(self):

    def name(self):

    def UUIDString(self):

    def interfaceStats(self, device):

    def blockStats(self, device):

    def suspend(self):

    def shutdown(self):

    def reset(self, flags):

    def info(self):

    def migrateToURI(self, desturi, flags, dname, bandwidth):

    def attachDevice(self, xml):

    def attachDeviceFlags(self, xml, flags):

    def detachDevice(self, xml):

    def detachDeviceFlags(self, xml, _flags):

    def XMLDesc(self, flags):

    def managedSave(self, flags):

    def managedSaveRemove(self, flags):

    def hasManagedSaveImage(self, flags):

    def resume(self):

    def snapshotCreateXML(self, xml, flags):

    def vcpus(self):

    def memoryStats(self):

    def maxMemory(self):

    def blockJobInfo(self, disk, flags):

class DomainSnapshot(object):

    def __init__(self, name, domain):

    def delete(self, flags):

class Connection(object):

    def __init__(self, uri=None, readonly=False, version=9007):

    def _add_filter(self, nwfilter):

    def _remove_filter(self, nwfilter):

    def _mark_running(self, dom):

    def _mark_not_running(self, dom):

    def _undefine(self, dom):

    def getInfo(self):

    def numOfDomains(self):

    def listDomainsID(self):

    def lookupByID(self, id):

    def lookupByName(self, name):

    def _emit_lifecycle(self, dom, event, detail):

    def defineXML(self, xml):

    def createXML(self, xml, flags):

    def getType(self):

    def getLibVersion(self):

    def getVersion(self):

    def getHostname(self):

    def domainEventRegisterAny(self, dom, eventid, callback, opaque):

    def registerCloseCallback(self, cb, opaque):

    def getCapabilities(self):

    def compareCPU(self, xml, flags):

    def getCPUStats(self, cpuNum, flag):

    def nwfilterLookupByName(self, name):

    def nwfilterDefineXML(self, xml):

    def listDefinedDomains(self):

    def listDevices(self, cap, flags):

    def baselineCPU(self, cpu, flag):

def openAuth(uri, auth, flags):

def virEventRunDefaultImpl():

def virEventRegisterDefaultImpl():

def registerErrorHandler(handler, ctxt):

\OpenStack\nova-2014.1\nova\tests\virt\libvirt\fake_imagebackend.py

class Backend(object):

    def __init__(self, use_cow):

    def image(self, instance, name, image_type=''):

    def snapshot(self, path, image_type=''):

\OpenStack\nova-2014.1\nova\tests\virt\libvirt\fake_libvirt_utils.py

def get_iscsi_initiator():

def get_fc_hbas():

def get_fc_hbas_info():

def get_fc_wwpns():

def get_fc_wwnns():

def create_image(disk_format, path, size):

def create_cow_image(backing_file, path):

def get_disk_backing_file(path):

def get_disk_type(path):

def copy_image(src, dest):

def resize2fs(path):

def create_lvm_image(vg, lv, size, sparse=False):

def import_rbd_image(path, *args):

def volume_group_free_space(vg):

def remove_logical_volumes(*paths):

def write_to_file(path, contents, umask=None):

def chown(path, owner):

def extract_snapshot(disk_path, source_fmt, out_path, dest_fmt):

class File(object):

    def __init__(self, path, mode=None):

    def __enter__(self):

    def __exit__(self, *args):

    def close(self, *args, **kwargs):

def file_open(path, mode=None):

def find_disk(virt_dom):

def load_file(path):

def logical_volume_info(path):

def file_delete(path):

def get_fs_info(path):

def fetch_image(context, target, image_id, user_id, project_id, max_size=0):

def get_instance_path(instance, forceold=False, relative=False):

def pick_disk_driver_name(hypervisor_version, is_block_dev=False):

def list_rbd_volumes(pool):

def remove_rbd_volumes(pool, *names):

def get_arch(image_meta):

\OpenStack\nova-2014.1\nova\tests\virt\libvirt\test_designer.py

class DesignerTestCase(test.NoDBTestCase):

    def test_set_vif_bandwidth_config_no_extra_specs(self):

\OpenStack\nova-2014.1\nova\tests\virt\libvirt\test_dmcrypt.py

class LibvirtDmcryptTestCase(test.TestCase):

    def setUp(self):

        def fake_execute(*cmd, **kwargs):

        def fake_listdir(path):

    def test_create_volume(self):

    def test_delete_volume(self):

    def test_list_volumes(self):

\OpenStack\nova-2014.1\nova\tests\virt\libvirt\test_fakelibvirt.py

def get_vm_xml(name="testname", uuid=None, source_type='file', interface_type='bridge'):

class FakeLibvirtTests(test.NoDBTestCase):

    def tearDown(self):

    def get_openAuth_curry_func(self, readOnly=False):

        def fake_cb(credlist):

    def test_openAuth_accepts_None_uri_by_default(self):

    def test_openAuth_can_refuse_None_uri(self):

    def test_openAuth_refuses_invalid_URI(self):

    def test_getInfo(self):

    def test_createXML_detects_invalid_xml(self):

    def test_defineXML_detects_invalid_xml(self):

    def _test_XML_func_detects_invalid_xml(self, xmlfunc_name, args):

    def test_defineXML_defines_domain(self):

    def test_blockStats(self):

    def test_attach_detach(self):

    def test_info(self):

    def test_createXML_runs_domain(self):

    def test_defineXML_remembers_uuid(self):

    def test_createWithFlags(self):

    def test_managedSave(self):

    def test_listDomainsId_and_lookupById(self):

    def test_define_and_retrieve(self):

    def _test_accepts_source_type(self, source_type):

    def test_accepts_source_dev(self):

    def test_accepts_source_path(self):

    def test_network_type_bridge_sticks(self):

    def test_network_type_network_sticks(self):

    def _test_network_type_sticks(self, network_type):

    def test_getType(self):

    def test_getVersion(self):

    def test_getCapabilities(self):

    def test_nwfilter_define_undefine(self):

    def test_compareCPU_compatible(self):

    def test_compareCPU_incompatible_vendor(self):

    def test_compareCPU_incompatible_arch(self):

    def test_compareCPU_incompatible_model(self):

    def test_compareCPU_compatible_unspecified_model(self):

\OpenStack\nova-2014.1\nova\tests\virt\libvirt\test_imagebackend.py

class _ImageTestCase(object):

    def mock_create_image(self, image):

        def create_image(fn, base, size, *args, **kwargs):

    def setUp(self):

        def fake_chown(path, owner_uid=None):

    def tearDown(self):

    def test_prealloc_image(self):

        def fake_fetch(target, *args, **kwargs):

    def test_prealloc_image_without_write_access(self):

        def fake_fetch(target, *args, **kwargs):

class RawTestCase(_ImageTestCase, test.NoDBTestCase):

    def setUp(self):

        def fake_chown(path, owner_uid=None):

    def prepare_mocks(self):

    def test_cache(self):

    def test_cache_image_exists(self):

    def test_cache_base_dir_exists(self):

    def test_cache_template_exists(self):

    def test_create_image(self):

    def test_create_image_generated(self):

    def test_create_image_extend(self):

    def test_correct_format(self):

        def fake_chown(path, owner_uid=None):

    def test_resolve_driver_format(self):

class Qcow2TestCase(_ImageTestCase, test.NoDBTestCase):

    def setUp(self):

        def fake_chown(path, owner_uid=None):

    def prepare_mocks(self):

    def test_cache(self):

    def test_cache_image_exists(self):

    def test_cache_base_dir_exists(self):

    def test_cache_template_exists(self):

    def test_create_image(self):

    def test_create_image_with_size(self):

OpenStack Index

Previous

Next