@

Home 

OpenStack Study: nova

OpenStack Index

Previous

Next

    def test_instance_action_start(self):

    def test_instance_action_finish(self):

    def test_instance_action_finish_without_started_event(self):

    def test_instance_actions_get_by_instance(self):

    def test_instance_actions_get_are_in_order(self):

    def test_instance_action_get_by_instance_and_action(self):

    def test_instance_action_event_start(self):

    def test_instance_action_event_start_without_action(self):

    def test_instance_action_event_finish_without_started_event(self):

    def test_instance_action_event_finish_without_action(self):

    def test_instance_action_event_finish_success(self):

    def test_instance_action_event_finish_error(self):

    def test_instance_action_and_event_start_string_time(self):

    def test_instance_action_events_get_are_in_order(self):

    def test_instance_action_event_get_by_id(self):

class InstanceFaultTestCase(test.TestCase, ModelsObjectComparatorMixin):

    def setUp(self):

    def _create_fault_values(self, uuid, code=404):

    def test_instance_fault_create(self):

    def test_instance_fault_get_by_instance(self):

    def test_instance_faults_get_by_instance_uuids_no_faults(self):

    def test_instance_faults_get_by_instance_uuids_no_uuids(self):

class InstanceTypeTestCase(BaseInstanceTypeTestCase):

    def test_flavor_create(self):

    def test_flavor_create_with_projects(self):

    def test_flavor_destroy(self):

    def test_flavor_destroy_not_found(self):

    def test_flavor_create_duplicate_name(self):

    def test_flavor_create_duplicate_flavorid(self):

    def test_flavor_create_with_extra_specs(self):

    def test_flavor_get_all(self):

        def assert_multi_filter_flavor_get(filters=None):

    def test_flavor_get_all_limit_sort(self):

        def assert_sorted_by_key_dir(sort_key, asc=True):

        def assert_sorted_by_key_both_dir(sort_key):

    def test_flavor_get_all_limit(self):

    def test_flavor_get_all_list_marker(self):

    def test_flavor_get_all_marker_not_found(self):

    def test_flavor_get(self):

    def test_flavor_get_non_public(self):

    def test_flavor_get_by_name(self):

    def test_flavor_get_by_name_not_found(self):

    def test_flavor_get_by_name_non_public(self):

    def test_flavor_get_by_flavor_id(self):

    def test_flavor_get_by_flavor_not_found(self):

    def test_flavor_get_by_flavor_id_non_public(self):

    def test_flavor_get_by_flavor_id_deleted(self):

    def test_flavor_get_by_flavor_id_deleted_and_recreat(self):

class InstanceTypeExtraSpecsTestCase(BaseInstanceTypeTestCase):

    def setUp(self):

    def test_flavor_extra_specs_get(self):

    def test_flavor_extra_specs_get_item(self):

    def test_flavor_extra_specs_delete(self):

    def test_flavor_extra_specs_delete_failed(self):

    def test_flavor_extra_specs_update_or_create(self):

    def test_flavor_extra_specs_update_or_create_flavor_not_found(self):

    def test_flavor_extra_specs_update_or_create_retry(self):

        def counted():

class InstanceTypeAccessTestCase(BaseInstanceTypeTestCase):

    def _create_flavor_access(self, flavor_id, project_id):

    def test_flavor_access_get_by_flavor_id(self):

    def test_flavor_access_get_by_flavor_id_flavor_not_found(self):

    def test_flavor_access_add(self):

    def test_flavor_access_add_to_non_existing_flavor(self):

    def test_flavor_access_add_duplicate_project_id_flavor(self):

    def test_flavor_access_remove(self):

    def test_flavor_access_remove_flavor_not_found(self):

    def test_flavor_access_remove_access_not_found(self):

    def test_flavor_access_removed_after_flavor_destroy(self):

class FixedIPTestCase(BaseInstanceTypeTestCase):

    def _timeout_test(self, ctxt, timeout, multi_host):

    def mock_db_query_first_to_raise_data_error_exception(self):

    def test_fixed_ip_disassociate_all_by_timeout_single_host(self):

    def test_fixed_ip_disassociate_all_by_timeout_multi_host(self):

    def test_fixed_ip_get_by_floating_address(self):

    def test_fixed_ip_get_by_host(self):

    def test_fixed_ip_get_by_network_host_not_found_exception(self):

    def test_fixed_ip_get_by_network_host_fixed_ip_found(self):

    def _create_instance(self, **kwargs):

    def test_fixed_ip_get_by_instance_fixed_ip_found(self):

    def test_fixed_ip_get_by_instance_multiple_fixed_ips_found(self):

    def test_fixed_ip_get_by_instance_inappropriate_ignored(self):

    def test_fixed_ip_get_by_instance_not_found_exception(self):

    def test_fixed_ips_by_virtual_interface_fixed_ip_found(self):

    def test_fixed_ips_by_virtual_interface_multiple_fixed_ips_found(self):

    def test_fixed_ips_by_virtual_interface_inappropriate_ignored(self):

    def test_fixed_ips_by_virtual_interface_no_ip_found(self):

    def create_fixed_ip(self, **params):

    def test_fixed_ip_associate_fails_if_ip_not_in_network(self):

    def test_fixed_ip_associate_fails_if_ip_in_use(self):

    def test_fixed_ip_associate_succeeds(self):

    def test_fixed_ip_associate_succeeds_and_sets_network(self):

    def test_fixed_ip_associate_pool_invalid_uuid(self):

    def test_fixed_ip_associate_pool_no_more_fixed_ips(self):

    def test_fixed_ip_associate_pool_succeeds(self):

    def test_fixed_ip_create_same_address(self):

    def test_fixed_ip_create_success(self):

    def test_fixed_ip_bulk_create_same_address(self):

    def test_fixed_ip_bulk_create_success(self):

    def test_fixed_ip_disassociate(self):

    def test_fixed_ip_get_not_found_exception(self):

    def test_fixed_ip_get_success2(self):

    def test_fixed_ip_get_success(self):

    def test_fixed_ip_get_by_address(self):

    def test_fixed_ip_get_by_address_detailed_not_found_exception(self):

    def test_fixed_ip_get_by_address_with_data_error_exception(self):

    def test_fixed_ip_get_by_address_detailed_sucsess(self):

    def test_fixed_ip_update_not_found_for_address(self):

    def test_fixed_ip_update(self):

class FloatingIpTestCase(test.TestCase, ModelsObjectComparatorMixin):

    def setUp(self):

    def _get_base_values(self):

    def mock_db_query_first_to_raise_data_error_exception(self):

    def _create_floating_ip(self, values):

    def test_floating_ip_get(self):

    def test_floating_ip_get_not_found(self):

    def test_floating_ip_get_with_long_id_not_found(self):

    def test_floating_ip_get_pools(self):

    def test_floating_ip_allocate_address(self):

    def test_floating_ip_allocate_auto_assigned(self):

    def test_floating_ip_allocate_address_no_more_floating_ips(self):

    def test_floating_ip_allocate_not_authorized(self):

    def _get_existing_ips(self):

    def test_floating_ip_bulk_create(self):

    def test_floating_ip_bulk_create_duplicate(self):

    def test_floating_ip_bulk_destroy(self):

        def create_ips(i, j):

    def test_floating_ip_create(self):

    def test_floating_ip_create_duplicate(self):

    def _create_fixed_ip(self, params):

    def test_floating_ip_fixed_ip_associate(self):

    def test_floating_ip_fixed_ip_associate_float_ip_not_found(self):

    def test_floating_ip_deallocate(self):

    def test_floating_ip_destroy(self):

    def test_floating_ip_disassociate(self):

    def test_floating_ip_disassociate_not_found(self):

    def test_floating_ip_set_auto_assigned(self):

    def test_floating_ip_get_all(self):

    def test_floating_ip_get_all_not_found(self):

    def test_floating_ip_get_all_by_host(self):

    def test_floating_ip_get_all_by_host_not_found(self):

    def test_floating_ip_get_all_by_project(self):

    def test_floating_ip_get_all_by_project_not_authorized(self):

    def test_floating_ip_get_by_address(self):

    def test_floating_ip_get_by_address_not_found(self):

    def test_floating_ip_get_by_invalid_address(self):

    def test_floating_ip_get_by_fixed_address(self):

    def test_floating_ip_get_by_fixed_ip_id(self):

    def test_floating_ip_update(self):

    def test_floating_ip_update_to_duplicate(self):

class InstanceDestroyConstraints(test.TestCase):

    def test_destroy_with_equal_any_constraint_met_single_value(self):

    def test_destroy_with_equal_any_constraint_met(self):

    def test_destroy_with_equal_any_constraint_not_met(self):

    def test_destroy_with_not_equal_constraint_met(self):

    def test_destroy_with_not_equal_constraint_not_met(self):

class VolumeUsageDBApiTestCase(test.TestCase):

    def setUp(self):

    def test_vol_usage_update_no_totals_update(self):

        def _compare(vol_usage, expected):

    def test_vol_usage_update_totals_update(self):

    def test_vol_usage_update_when_blockdevicestats_reset(self):

    def test_vol_usage_update_totals_update_when_blockdevicestats_reset(self):

class TaskLogTestCase(test.TestCase):

    def setUp(self):

    def test_task_log_get(self):

    def test_task_log_get_all(self):

    def test_task_log_begin_task(self):

    def test_task_log_begin_task_duplicate(self):

    def test_task_log_end_task(self):

    def test_task_log_end_task_task_not_running(self):

class BlockDeviceMappingTestCase(test.TestCase):

    def setUp(self):

    def _create_bdm(self, values):

    def test_scrub_empty_str_values_no_effect(self):

    def test_scrub_empty_str_values_empty_string(self):

    def test_scrub_empty_str_values_empty_unicode(self):

    def test_block_device_mapping_create(self):

    def test_block_device_mapping_update(self):

    def test_block_device_mapping_update_or_create(self):

    def test_block_device_mapping_update_or_create_multiple_ephemeral(self):

    def test_block_device_mapping_update_or_create_check_remove_virt(self):

    def test_block_device_mapping_get_all_by_instance(self):

    def test_block_device_mapping_destroy(self):

    def test_block_device_mapping_destroy_by_instance_and_volumne(self):

    def test_block_device_mapping_destroy_by_instance_and_device(self):

    def test_block_device_mapping_get_by_volume_id(self):

    def test_block_device_mapping_get_by_volume_id_join_instance(self):

class AgentBuildTestCase(test.TestCase, ModelsObjectComparatorMixin):

    def setUp(self):

    def test_agent_build_create_and_get_all(self):

    def test_agent_build_get_by_triple(self):

    def test_agent_build_destroy(self):

    def test_agent_build_update(self):

    def test_agent_build_destroy_destroyed(self):

    def test_agent_build_update_destroyed(self):

    def test_agent_build_exists(self):

    def test_agent_build_get_all_by_hypervisor(self):

class VirtualInterfaceTestCase(test.TestCase, ModelsObjectComparatorMixin):

    def setUp(self):

    def _get_base_values(self):

    def mock_db_query_first_to_raise_data_error_exception(self):

    def _create_virt_interface(self, values):

    def test_virtual_interface_create(self):

    def test_virtual_interface_create_with_duplicate_address(self):

    def test_virtual_interface_get(self):

    def test_virtual_interface_get_by_address(self):

    def test_virtual_interface_get_by_address_not_found(self):

    def test_virtual_interface_get_by_address_data_error_exception(self):

    def test_virtual_interface_get_by_uuid(self):

    def test_virtual_interface_get_by_instance(self):

    def test_virtual_interface_get_by_instance_and_network(self):

    def test_virtual_interface_delete_by_instance(self):

    def test_virtual_interface_get_all(self):

class NetworkTestCase(test.TestCase, ModelsObjectComparatorMixin):

    def setUp(self):

    def _get_associated_fixed_ip(self, host, cidr, ip):

    def test_network_get_associated_fixed_ips(self):

    def test_network_create_safe(self):

    def test_network_create_with_duplicate_vlan(self):

    def test_network_delete_safe(self):

    def test_network_in_use_on_host(self):

    def test_network_update_nonexistent(self):

    def test_network_update_with_duplicate_vlan(self):

    def test_network_update(self):

    def test_network_set_host_nonexistent_network(self):

    def test_network_set_host_with_initially_no_host(self):

    def test_network_set_host(self):

    def test_network_get_all_by_host(self):

    def test_network_get_by_cidr(self):

    def test_network_get_by_cidr_nonexistent(self):

    def test_network_get_by_uuid(self):

    def test_network_get_by_uuid_nonexistent(self):

    def test_network_get_all_by_uuids_no_networks(self):

    def test_network_get_all_by_uuids(self):

    def test_network_get_all_no_networks(self):

    def test_network_get_all(self):

    def test_network_get_all_admin_user(self):

    def test_network_get_all_normal_user(self):

    def test_network_get(self):

    def test_network_associate(self):

    def test_network_diassociate(self):

    def test_network_count_reserved_ips(self):

class KeyPairTestCase(test.TestCase, ModelsObjectComparatorMixin):

    def setUp(self):

    def _create_key_pair(self, values):

    def test_key_pair_create(self):

    def test_key_pair_create_with_duplicate_name(self):

    def test_key_pair_get(self):

    def test_key_pair_get_no_results(self):

    def test_key_pair_get_deleted(self):

    def test_key_pair_get_all_by_user(self):

    def test_key_pair_count_by_user(self):

    def test_key_pair_destroy(self):

    def test_key_pair_destroy_no_such_key(self):

class QuotaTestCase(test.TestCase, ModelsObjectComparatorMixin):

    def setUp(self):

    def test_quota_create(self):

    def test_quota_get(self):

    def test_quota_get_all_by_project(self):

    def test_quota_get_all_by_project_and_user(self):

    def test_quota_update(self):

    def test_quota_update_nonexistent(self):

    def test_quota_get_nonexistent(self):

    def test_quota_reserve_all_resources(self):

    def test_quota_destroy_all_by_project(self):

    def test_quota_destroy_all_by_project_and_user(self):

    def test_quota_usage_get_nonexistent(self):

    def test_quota_usage_get(self):

    def test_quota_usage_get_all_by_project(self):

    def test_quota_usage_get_all_by_project_and_user(self):

    def test_quota_usage_update_nonexistent(self):

    def test_quota_usage_update(self):

    def test_quota_create_exists(self):

class QuotaClassTestCase(test.TestCase, ModelsObjectComparatorMixin):

    def setUp(self):

    def test_quota_class_get_default(self):

    def test_quota_class_create(self):

    def test_quota_class_get(self):

    def test_quota_class_get_nonexistent(self):

    def test_quota_class_get_all_by_name(self):

    def test_quota_class_update(self):

    def test_quota_class_update_nonexistent(self):

class S3ImageTestCase(test.TestCase):

    def setUp(self):

    def test_s3_image_create(self):

    def test_s3_image_get_by_uuid(self):

    def test_s3_image_get(self):

    def test_s3_image_get_not_found(self):

    def test_s3_image_get_by_uuid_not_found(self):

class ComputeNodeTestCase(test.TestCase, ModelsObjectComparatorMixin):

    def setUp(self):

    def test_compute_node_create(self):

    def test_compute_node_get_all(self):

    def test_compute_node_get_all_deleted_compute_node(self):

    def test_compute_node_get_all_mult_compute_nodes_one_service_entry(self):

    def test_compute_node_get(self):

    def test_compute_node_update(self):

    def test_compute_node_delete(self):

    def test_compute_node_search_by_hypervisor(self):

    def test_compute_node_statistics(self):

    def test_compute_node_not_found(self):

    def test_compute_node_update_always_updates_updated_at(self):

    def test_compute_node_update_override_updated_at(self):

class ProviderFwRuleTestCase(test.TestCase, ModelsObjectComparatorMixin):

    def setUp(self):

    def _get_rule_values(self):

    def test_provider_fw_rule_create(self):

    def test_provider_fw_rule_get_all(self):

    def test_provider_fw_rule_destroy(self):

class CertificateTestCase(test.TestCase, ModelsObjectComparatorMixin):

    def setUp(self):

    def _get_certs_values(self):

    def _certificates_create(self):

    def test_certificate_create(self):

    def test_certificate_get_all_by_project(self):

    def test_certificate_get_all_by_user(self):

    def test_certificate_get_all_by_user_and_project(self):

class ConsoleTestCase(test.TestCase, ModelsObjectComparatorMixin):

    def setUp(self):

    def test_console_create(self):

    def test_console_get_by_id(self):

    def test_console_get_by_id_uuid(self):

    def test_console_get_by_pool_instance(self):

    def test_console_get_all_by_instance(self):

    def test_console_get_all_by_instance_with_pool(self):

    def test_console_get_all_by_instance_empty(self):

    def test_console_delete(self):

    def test_console_get_by_pool_instance_not_found(self):

    def test_console_get_not_found(self):

    def test_console_get_not_found_instance(self):

class CellTestCase(test.TestCase, ModelsObjectComparatorMixin):

    def setUp(self):

    def _get_cell_base_values(self):

    def _cell_value_modify(self, value, step):

    def _create_cells(self):

    def test_cell_create(self):

    def test_cell_update(self):

    def test_cell_delete(self):

    def test_cell_get(self):

    def test_cell_get_all(self):

    def test_cell_get_not_found(self):

    def test_cell_update_not_found(self):

    def test_cell_create_exists(self):

class ConsolePoolTestCase(test.TestCase, ModelsObjectComparatorMixin):

    def setUp(self):

    def test_console_pool_create(self):

    def test_console_pool_create_duplicate(self):

    def test_console_pool_get_by_host_type(self):

    def test_console_pool_get_by_host_type_no_resuls(self):

    def test_console_pool_get_all_by_host_type(self):

    def test_console_pool_get_all_by_host_type_no_results(self):

class DnsdomainTestCase(test.TestCase):

    def setUp(self):

    def test_dnsdomain_register_for_zone(self):

    def test_dnsdomain_register_for_project(self):

    def test_dnsdomain_list(self):

    def test_dnsdomain_unregister(self):

    def test_dnsdomain_get_all(self):

class BwUsageTestCase(test.TestCase, ModelsObjectComparatorMixin):

    def setUp(self):

    def test_bw_usage_get_by_uuids(self):

    def test_bw_usage_get(self):

class Ec2TestCase(test.TestCase):

    def setUp(self):

    def test_ec2_ids_not_found_are_printable(self):

        def check_exc_format(method, value):

    def test_ec2_volume_create(self):

    def test_get_ec2_volume_id_by_uuid(self):

    def test_get_volume_uuid_by_ec2_id(self):

    def test_get_ec2_volume_id_by_uuid_not_found(self):

    def test_get_volume_uuid_by_ec2_id_not_found(self):

    def test_ec2_snapshot_create(self):

    def test_get_ec2_snapshot_id_by_uuid(self):

    def test_get_snapshot_uuid_by_ec2_id(self):

    def test_get_ec2_snapshot_id_by_uuid_not_found(self):

    def test_get_snapshot_uuid_by_ec2_id_not_found(self):

    def test_ec2_instance_create(self):

    def test_get_ec2_instance_id_by_uuid(self):

    def test_get_instance_uuid_by_ec2_id(self):

    def test_get_ec2_instance_id_by_uuid_not_found(self):

    def test_get_instance_uuid_by_ec2_id_not_found(self):

class ArchiveTestCase(test.TestCase):

    def setUp(self):

    def tearDown(self):

    def test_shadow_tables(self):

    def test_archive_deleted_rows(self):

    def test_archive_deleted_rows_for_every_uuid_table(self):

    def _test_archive_deleted_rows_for_one_uuid_table(self, tablename):

    def test_archive_deleted_rows_no_id_column(self):

    def test_archive_deleted_rows_fk_constraint(self):

    def test_archive_deleted_rows_2_tables(self):

class InstanceGroupDBApiTestCase(test.TestCase, ModelsObjectComparatorMixin):

    def setUp(self):

    def _get_default_values(self):

    def _create_instance_group(self, context, values, policies=None, metadata=None, members=None):

    def test_instance_group_create_no_key(self):

    def test_instance_group_create_with_key(self):

    def test_instance_group_create_with_same_key(self):

    def test_instance_group_get(self):

    def test_instance_group_update_simple(self):

    def test_instance_group_delete(self):

    def test_instance_group_get_nonexistent(self):

    def test_instance_group_delete_nonexistent(self):

    def test_instance_group_get_all(self):

    def test_instance_group_get_all_by_project_id(self):

    def test_instance_group_update(self):

class InstanceGroupMetadataDBApiTestCase(InstanceGroupDBApiTestCase):

    def test_instance_group_metadata_on_create(self):

    def test_instance_group_metadata_add(self):

    def test_instance_group_update(self):

    def test_instance_group_delete(self):

    def test_instance_group_metadata_invalid_ids(self):

class InstanceGroupMembersDBApiTestCase(InstanceGroupDBApiTestCase):

    def test_instance_group_members_on_create(self):

    def test_instance_group_members_add(self):

    def test_instance_group_members_update(self):

    def test_instance_group_members_delete(self):

    def test_instance_group_members_invalid_ids(self):

class InstanceGroupPoliciesDBApiTestCase(InstanceGroupDBApiTestCase):

    def test_instance_group_policies_on_create(self):

    def test_instance_group_policies_add(self):

    def test_instance_group_policies_update(self):

    def test_instance_group_policies_delete(self):

    def test_instance_group_policies_invalid_ids(self):

class PciDeviceDBApiTestCase(test.TestCase, ModelsObjectComparatorMixin):

    def setUp(self):

    def _get_fake_pci_devs(self):

    def _create_fake_pci_devs(self):

    def test_pci_device_get_by_addr(self):

    def test_pci_device_get_by_addr_not_found(self):

    def test_pci_device_get_by_addr_low_priv(self):

    def test_pci_device_get_by_id(self):

    def test_pci_device_get_by_id_not_found(self):

    def test_pci_device_get_by_id_low_priv(self):

    def test_pci_device_get_all_by_node(self):

    def test_pci_device_get_all_by_node_empty(self):

    def test_pci_device_get_all_by_node_low_priv(self):

    def test_pci_device_get_by_instance_uuid(self):

    def test_pci_device_get_by_instance_uuid_check_status(self):

    def test_pci_device_update(self):

    def test_pci_device_update_low_priv(self):

    def test_pci_device_destroy(self):

    def test_pci_device_destroy_exception(self):

class RetryOnDeadlockTestCase(test.TestCase):

    def test_without_deadlock(self):

        def call_api(*args, **kwargs):

    def test_raise_deadlock(self):

        def call_api(*args, **kwargs):

\OpenStack\nova-2014.1\nova\tests\db\test_migrations.py

def _get_connect_string(backend, user, passwd, database):

def _is_backend_avail(backend, user, passwd, database):

def _have_mysql(user, passwd, database):

def _have_postgresql(user, passwd, database):

def get_mysql_connection_info(conn_pieces):

def get_pgsql_connection_info(conn_pieces):

class CommonTestsMixIn(object):

    def test_walk_versions(self):

    def test_mysql_opportunistically(self):

    def test_mysql_connect_fail(self):

    def test_postgresql_opportunistically(self):

    def test_postgresql_connect_fail(self):

class BaseMigrationTestCase(test.NoDBTestCase):

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

    def setUp(self):

    def _load_config(self):

    def execute_cmd(self, cmd=None):

    def _reset_pg(self, conn_pieces):

    def _reset_mysql(self, conn_pieces):

    def _reset_sqlite(self, conn_pieces):

    def _create_databases(self):

    def _create_database(self, key):

    def _reset_databases(self):

    def _reset_database(self, key):

class BaseWalkMigrationTestCase(BaseMigrationTestCase):

    def _load_config(self):

    def _test_mysql_opportunistically(self):

    def _test_postgresql_opportunistically(self):

    def _walk_versions(self, engine=None, snake_walk=False, downgrade=True):

    def _migrate_down(self, engine, version, with_data=False):

    def _migrate_up(self, engine, version, with_data=False):

class TestNovaMigrations(BaseWalkMigrationTestCase, CommonTestsMixIn):

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

    def setUp(self):

    def assertColumnExists(self, engine, table, column):

    def assertColumnNotExists(self, engine, table, column):

    def assertTableNotExists(self, engine, table):

    def assertIndexExists(self, engine, table, index):

    def assertIndexMembers(self, engine, table, index, members):

    def _check_227(self, engine, data):

    def _check_228(self, engine, data):

    def _post_downgrade_228(self, engine):

    def _check_229(self, engine, data):

    def _post_downgrade_229(self, engine):

    def _check_230(self, engine, data):

    def _post_downgrade_230(self, engine):

    def _check_231(self, engine, data):

    def _post_downgrade_231(self, engine):

    def _check_232(self, engine, data):

    def _check_233(self, engine, data):

    def _post_downgrade_233(self, engine):

class TestBaremetalMigrations(BaseWalkMigrationTestCase, CommonTestsMixIn):

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

    def setUp(self):

    def _pre_upgrade_002(self, engine):

    def _check_002(self, engine, data):

    def _post_downgrade_004(self, engine):

    def _check_005(self, engine, data):

    def _pre_upgrade_006(self, engine):

    def _check_006(self, engine, data):

    def _post_downgrade_006(self, engine):

    def _check_007(self, engine, data):

    def _check_008(self, engine, data):

    def _post_downgrade_008(self, engine):

    def _pre_upgrade_010(self, engine):

    def _check_010(self, engine, data):

    def _post_downgrade_010(self, engine):

class ProjectTestCase(test.NoDBTestCase):

    def test_all_migrations_have_downgrade(self):

\OpenStack\nova-2014.1\nova\tests\db\test_migration_utils.py

class CustomType(UserDefinedType):

    def get_col_spec(self):

class TestMigrationUtils(test_migrations.BaseMigrationTestCase):

    def test_delete_from_select(self):

    def test_insert_from_select(self):

    def test_utils_drop_unique_constraint(self):

    def test_util_drop_unique_constraint_with_not_supported_sqlite_type(self):

    def _populate_db_for_drop_duplicate_entries(self, engine, meta, table_name):

    def test_drop_old_duplicate_entries_from_table(self):

    def test_drop_old_duplicate_entries_from_table_soft_delete(self):

    def test_check_shadow_table(self):

    def test_check_shadow_table_different_types(self):

    def test_check_shadow_table_with_unsupported_sqlite_type(self):

    def test_create_shadow_table_by_table_instance(self):

    def test_create_shadow_table_by_name(self):

    def test_create_shadow_table_not_supported_type(self):

    def test_create_shadow_both_table_and_table_name_are_none(self):

    def test_create_shadow_both_table_and_table_name_are_specified(self):

    def test_create_duplicate_shadow_table(self):

    def test_change_deleted_column_type_doesnt_drop_index(self):

    def test_change_deleted_column_type_to_id_type_integer(self):

    def test_change_deleted_column_type_to_id_type_string(self):

    def test_change_deleted_column_type_to_id_type_custom(self):

    def test_change_deleted_column_type_to_boolean(self):

    def test_change_deleted_column_type_to_boolean_type_custom(self):

    def test_drop_unique_constraint_in_sqlite_fk_recreate(self):

\OpenStack\nova-2014.1\nova\tests\db\test_sqlalchemy_utils.py

class SqlAlchemyUtilsTestCase(test.NoDBTestCase):

    def test_modify_indexes_checks_index_before_dropping_in_postgresql(self):

    def test_modify_indexes_checks_index_before_dropping_in_mysql(self):

    def test_modify_indexes(self):

\OpenStack\nova-2014.1\nova\tests\db\test_sqlite.py

class TestSqlite(test.NoDBTestCase):

    def test_big_int_mapping(self):

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

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

class GuestFS(object):

    def __init__(self, **kwargs):

    def launch(self):

    def shutdown(self):

    def close(self):

    def add_drive_opts(self, file, *args, **kwargs):

    def inspect_os(self):

    def inspect_get_mountpoints(self, dev):

    def mount_options(self, options, device, mntpoint):

    def mkdir_p(self, path):

    def read_file(self, path):

    def write(self, path, content):

    def write_append(self, path, content):

    def stat(self, path):

    def chown(self, uid, gid, path):

    def chmod(self, mode, path):

    def aug_init(self, root, flags):

    def aug_close(self):

    def aug_get(self, cfgpath):

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

class FakeDbBlockDeviceDict(block_device.BlockDeviceDict):

    def __init__(self, bdm_dict=None, **kwargs):

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

def ensure_ca_filesystem():

def fetch_ca(project_id=None):

def generate_x509_cert(user_id, project_id, bits=1024):

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

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

def fake_db_secgroups(instance, names):

def fake_db_instance(**updates):

def fake_instance_obj(context, **updates):

def fake_fault_obj(context, instance_uuid, code=404, message='HTTPNotFound', details='Stock details for test', **updates):

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

def fake_action_event_start(*args):

def fake_action_event_finish(*args):

def stub_out_action_events(stubs):

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

class Store(object):

    def __init__(self):

    def instance(cls):

class _StorageDict(dict):

    def keys(self, pat=None):

    def delete(self, key):

    def flushdb(self):

    def hgetall(self, key):

    def hget(self, key, field):

    def hset(self, key, field, val):

    def hmset(self, key, value_dict):

class NO_SUCH_OBJECT(Exception):

class OBJECT_CLASS_VIOLATION(Exception):

class SERVER_DOWN(Exception):

def initialize(_uri):

def _match_query(query, attrs):

def _paren_groups(source):

def _match(key, value, attrs):

def _subs(value):

def _from_json(encoded):

def _to_json(unencoded):

class FakeLDAP(object):

    def simple_bind_s(self, dn, password):

    def unbind_s(self):

    def add_s(self, dn, attr):

    def delete_s(self, dn):

    def modify_s(self, dn, attrs):

    def modrdn_s(self, dn, newrdn):

    def search_s(self, dn, scope, query=None, fields=None):

    def __prefix(self):

\OpenStack\nova-2014.1\nova\tests\fake_loadables\fake_loadable1.py

class FakeLoadableSubClass1(fake_loadables.FakeLoadable):

class FakeLoadableSubClass2(fake_loadables.FakeLoadable):

class _FakeLoadableSubClass3(fake_loadables.FakeLoadable):

class FakeLoadableSubClass4(object):

def return_valid_classes():

def return_invalid_classes():

\OpenStack\nova-2014.1\nova\tests\fake_loadables\fake_loadable2.py

class FakeLoadableSubClass5(fake_loadables.FakeLoadable):

class FakeLoadableSubClass6(fake_loadables.FakeLoadable):

class _FakeLoadableSubClass7(fake_loadables.FakeLoadable):

class FakeLoadableSubClass8(BaseException):

def return_valid_class():

\OpenStack\nova-2014.1\nova\tests\fake_loadables\__init__.py

class FakeLoadable(object):

class FakeLoader(loadables.BaseLoader):

    def __init__(self):

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

class FakeIptablesFirewallDriver(object):

    def __init__(self, **kwargs):

    def setattr(self, key, val):

    def apply_instance_filter(self, instance, network_info):

class FakeVIFDriver(object):

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

    def setattr(self, key, val):

    def get_config(self, instance, vif, image_meta, inst_type):

    def plug(self, instance, vif):

    def unplug(self, instance, vif):

class FakeModel(dict):

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

class FakeNetworkManager(network_manager.NetworkManager):

    def __init__(self, stubs=None):

    def deallocate_fixed_ip(self, context, address=None, host=None, instance=None):

    def _create_fixed_ips(self, context, network_id, fixed_cidr=None):

    def get_instance_nw_info(context, instance_id, rxtx_factor, host, instance_uuid=None, **kwargs):

def fake_network(network_id, ipv6=None):

def vifs(n):

def floating_ip_ids():

def fixed_ip_ids():

def next_fixed_ip(network_id, num_floating_ips=0):

def next_floating_ip(fixed_ip_id):

def ipv4_like(ip, match_string):

def fake_get_instance_nw_info(stubs, num_networks=1, ips_per_vif=2, floating_ips_per_fixed_ip=0):

    def fixed_ips_fake(*args, **kwargs):

    def floating_ips_fake(context, address):

    def fixed_ips_v6_fake():

    def virtual_interfaces_fake(*args, **kwargs):

    def vif_by_uuid_fake(context, uuid):

    def network_get_fake(context, network_id, project_only='allow_none'):

    def update_cache_fake(*args, **kwargs):

    def get_subnets_by_net_id(self, context, project_id, network_uuid, vif_uuid):

    def get_network_by_uuid(context, uuid):

    def get_v4_fake(*args, **kwargs):

    def get_v6_fake(*args, **kwargs):

        def is_admin(self):

    def get_instance_nw_info(self, context, instance, conductor_api=None):

def stub_out_network_cleanup(stubs):

def set_stub_network_methods(stubs):

    def fake_networkinfo(*args, **kwargs):

    def fake_async_networkinfo(*args, **kwargs):

def unset_stub_network_methods(stubs):

def stub_compute_with_ips(stubs):

    def fake_get(*args, **kwargs):

    def fake_get_all(*args, **kwargs):

    def fake_create(*args, **kwargs):

    def fake_pci_device_get_by_addr(context, node_id, dev_addr):

def _get_fake_cache():

    def _ip(ip, fixed=True, floats=None):

def _get_instances_with_cached_ips(orig_func, *args, **kwargs):

    def _info_cache_for(instance):

def _create_instances_with_cached_ips(orig_func, *args, **kwargs):

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

def new_ip(ip_dict=None):

def new_fixed_ip(ip_dict=None):

def new_route(route_dict=None):

def new_subnet(subnet_dict=None):

def new_network(network_dict=None):

def new_vif(vif_dict=None):

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

def reset():

class FakeNotifier(object):

    def __init__(self, transport, publisher_id, serializer=None):

    def prepare(self, publisher_id=None):

    def _notify(self, priority, ctxt, event_type, payload):

def stub_notifier(stubs):

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

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

def fake_execute_get_log():

def fake_execute_clear_log():

def fake_execute_set_repliers(repliers):

def fake_execute_default_reply_handler(*ignore_args, **ignore_kwargs):

def fake_execute(*cmd_parts, **kwargs):

def stub_out_processutils_execute(stubs):

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

def stub_out_utils_spawn_n(stubs):

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

class fake_volume():

    def __init__(self, size, name, description, volume_id, snapshot, volume_type, metadata, availability_zone):

    def get(self, key, default=None):

    def __setitem__(self, key, value):

    def __getitem__(self, key):

class fake_snapshot():

    def __init__(self, volume_id, size, name, desc, id=None):

    def get(self, key, default=None):

    def __setitem__(self, key, value):

    def __getitem__(self, key):

class API(object):

    def __init__(self):

    def create(self, context, size, name, description, snapshot=None, volume_type=None, metadata=None, availability_zone=None):

    def create_with_kwargs(self, context, **kwargs):

    def get(self, context, volume_id):

    def get_all(self, context):

    def delete(self, context, volume_id):

    def check_attach(self, context, volume, instance=None):

    def check_detach(self, context, volume):

    def attach(self, context, volume_id, instance_uuid, mountpoint):

    def fake_set_snapshot_id(self, context, volume, snapshot_id):

    def reset_fake_api(self, context):

    def detach(self, context, volume_id):

    def initialize_connection(self, context, volume_id, connector):

    def terminate_connection(self, context, volume_id, connector):

    def get_snapshot(self, context, snapshot_id):

    def get_all_snapshots(self, context):

    def create_snapshot(self, context, volume_id, name, description, id=None):

    def create_snapshot_with_kwargs(self, context, **kwargs):

    def create_snapshot_force(self, context, volume_id, name, description, id=None):

    def delete_snapshot(self, context, snapshot_id):

    def reserve_volume(self, context, volume_id):

    def unreserve_volume(self, context, volume_id):

    def begin_detaching(self, context, volume_id):

    def roll_detaching(self, context, volume_id):

\OpenStack\nova-2014.1\nova\tests\glance\stubs.py

class StubGlanceClient(object):

    def __init__(self, images=None, version=None, endpoint=None, **params):

    def list(self, filters=None, marker=None, limit=30, page_size=20):

    def get(self, image_id):

    def data(self, image_id):

    def create(self, **metadata):

    def update(self, image_id, **metadata):

    def delete(self, image_id):

class FakeImage(object):

    def __init__(self, metadata):

    def __getattr__(self, key):

    def __setattr__(self, key, value):

\OpenStack\nova-2014.1\nova\tests\glance\__init__.py

\OpenStack\nova-2014.1\nova\tests\image\fake.py

class _FakeImageService(object):

    def __init__(self):

    def detail(self, context, **kwargs):

    def download(self, context, image_id, dst_path=None, data=None):

    def show(self, context, image_id):

    def create(self, context, metadata, data=None):

    def update(self, context, image_id, metadata, data=None, purge_props=False):

    def delete(self, context, image_id):

    def get_location(self, context, image_id):

def FakeImageService():

def FakeImageService_reset():

def get_valid_image_id():

def stub_out_image_service(stubs):

\OpenStack\nova-2014.1\nova\tests\image\test_fake.py

class FakeImageServiceTestCase(test.NoDBTestCase):

    def setUp(self):

    def tearDown(self):

    def test_detail(self):

    def test_show_raises_imagenotfound_for_invalid_id(self):

    def test_create_adds_id(self):

    def test_create_keeps_id(self):

    def test_create_rejects_duplicate_ids(self):

    def test_update(self):

    def test_delete(self):

    def test_create_then_get(self):

\OpenStack\nova-2014.1\nova\tests\image\test_glance.py

class NullWriter(object):

    def write(self, *arg, **kwargs):

class TestGlanceSerializer(test.NoDBTestCase):

    def test_serialize(self):

class TestGlanceImageService(test.NoDBTestCase):

    def setUp(self):

    def tearDown(self):

    def _get_tempfile(self):

    def _create_image_service(self, client):

        def _fake_create_glance_client(context, host, port, use_ssl, version):

    def _make_fixture(**kwargs):

    def _make_datetime_fixture(self):

    def test_create_with_instance_id(self):

    def test_create_without_instance_id(self):

    def test_create(self):

    def test_create_and_show_non_existing_image(self):

    def test_show_makes_datetimes(self):

    def test_detail_makes_datetimes(self):

    def test_page_size(self):

    def test_update(self):

    def test_delete(self):

    def test_download_with_retries(self):

    def test_download_file_url(self):

    def test_download_module_filesystem_match(self):

    def test_download_module_no_filesystem_match(self):

        def _fake_copyfile(source, dest):

    def test_download_module_mountpoints(self):

        def _fake_copyfile(source, dest):

    def test_download_module_file_bad_module(self):

    def test_client_forbidden_converts_to_imagenotauthed(self):

    def test_client_httpforbidden_converts_to_imagenotauthed(self):

    def test_client_notfound_converts_to_imagenotfound(self):

    def test_client_httpnotfound_converts_to_imagenotfound(self):

    def test_glance_client_image_id(self):

    def test_glance_client_image_ref(self):

        def get(self, image_id):

class TestIsImageAvailable(test.NoDBTestCase):

    def test_auth_token_override(self):

    def test_admin_override(self):

    def test_v2_visibility(self):

    def test_v1_is_public(self):

    def test_project_is_owner(self):

    def test_project_context_matches_project_prop(self):

    def test_no_user_in_props(self):

    def test_user_matches_context(self):

class TestShow(test.NoDBTestCase):

    def test_show_success(self, is_avail_mock, trans_from_mock):

    def test_show_not_available(self, is_avail_mock, trans_from_mock):

    def test_show_client_failure(self, is_avail_mock, trans_from_mock, reraise_mock):

class TestDetail(test.NoDBTestCase):

    def test_detail_success_available(self, is_avail_mock, trans_from_mock, ext_query_mock):

    def test_detail_success_unavailable(self, is_avail_mock, trans_from_mock, ext_query_mock):

    def test_detail_params_passed(self, is_avail_mock, _trans_from_mock, ext_query_mock):

    def test_detail_client_failure(self, is_avail_mock, trans_from_mock, ext_query_mock, reraise_mock):

class TestGlanceClientWrapper(test.NoDBTestCase):

    def setUp(self):

        def _fake_sleep(secs):

    def test_headers_passed_glanceclient(self):

        def _get_fake_glanceclient(version, endpoint, **params):

    def test_static_client_without_retries(self):

        def _fake_create_glance_client(context, host, port, use_ssl, version):

    def test_default_client_without_retries(self):

        def _fake_shuffle(servers):

        def _fake_create_glance_client(context, host, port, use_ssl, version):

        def _fake_shuffle2(servers):

    def test_static_client_with_retries(self):

        def _fake_create_glance_client(context, host, port, use_ssl, version):

    def test_default_client_with_retries(self):

        def _fake_shuffle(servers):

        def _fake_create_glance_client(context, host, port, use_ssl, version):

        def _fake_shuffle2(servers):

class TestGlanceUrl(test.NoDBTestCase):

    def test_generate_glance_http_url(self):

    def test_generate_glance_https_url(self):

class TestGlanceApiServers(test.TestCase):

    def test_get_ipv4_api_servers(self):

    def test_get_ipv6_api_servers(self):

class TestUpdateGlanceImage(test.NoDBTestCase):

    def test_start(self):

\OpenStack\nova-2014.1\nova\tests\image\test_s3.py

class TestS3ImageService(test.TestCase):

    def setUp(self):

    def tearDown(self):

    def _assertEqualList(self, list0, list1, keys):

    def test_show_cannot_use_uuid(self):

    def test_show_translates_correctly(self):

    def test_show_translates_image_state_correctly(self):

        def my_fake_show(self, context, image_id):

    def test_detail(self):

    def test_s3_create(self):

    def _initialize_mocks(self):

    def test_s3_create_image_locations(self):

    def test_s3_create_is_public(self):

    def test_s3_malicious_tarballs(self):

\OpenStack\nova-2014.1\nova\tests\image\__init__.py

\OpenStack\nova-2014.1\nova\tests\integrated\api\client.py

class OpenStackApiException(Exception):

    def __init__(self, message=None, response=None):

class OpenStackApiAuthenticationException(OpenStackApiException):

    def __init__(self, response=None, message=None):

class OpenStackApiAuthorizationException(OpenStackApiException):

    def __init__(self, response=None, message=None):

class OpenStackApiNotFoundException(OpenStackApiException):

    def __init__(self, response=None, message=None):

class TestOpenStackClient(object):

    def __init__(self, auth_user, auth_key, auth_uri):

    def request(self, url, method='GET', body=None, headers=None):

    def _authenticate(self):

    def api_request(self, relative_uri, check_response_status=None, strip_version=False, **kwargs):

    def _decode_json(self, response):

    def api_get(self, relative_uri, **kwargs):

    def api_post(self, relative_uri, body, **kwargs):

    def api_put(self, relative_uri, body, **kwargs):

    def api_delete(self, relative_uri, **kwargs):

    def get_server(self, server_id):

    def get_servers(self, detail=True, search_opts=None):

    def post_server(self, server):

    def put_server(self, server_id, server):

    def post_server_action(self, server_id, data):

    def delete_server(self, server_id):

    def get_image(self, image_id):

    def get_images(self, detail=True):

    def post_image(self, image):

    def delete_image(self, image_id):

    def get_flavor(self, flavor_id):

    def get_flavors(self, detail=True):

    def post_flavor(self, flavor):

    def delete_flavor(self, flavor_id):

    def get_volume(self, volume_id):

    def get_volumes(self, detail=True):

    def post_volume(self, volume):

    def delete_volume(self, volume_id):

    def get_server_volume(self, server_id, attachment_id):

    def get_server_volumes(self, server_id):

    def post_server_volume(self, server_id, volume_attachment):

    def delete_server_volume(self, server_id, attachment_id):

class TestOpenStackClientV3(TestOpenStackClient):

    def get_image(self, image_id):

    def get_images(self, detail=True):

    def post_image(self, image):

    def delete_image(self, image_id):

    def post_server(self, server):

class TestOpenStackClientV3Mixin(object):

    def _get_test_client(self):

\OpenStack\nova-2014.1\nova\tests\integrated\api\__init__.py

\OpenStack\nova-2014.1\nova\tests\integrated\api_samples_test_base.py

class NoMatch(test.TestingException):

class ApiSampleTestBase(integrated_helpers._IntegratedTestBase):

    def _pretty_data(self, data):

    def _objectify(self, data):

    def _get_sample_path(cls, name, dirname, suffix=''):

    def _get_sample(cls, name):

    def _get_template(cls, name):

OpenStack Index

Previous

Next