¡@

Home 

OpenStack Study: nova

OpenStack Index

Previous

Next

    def test_register_for_zone(self):

    def test_register_for_project(self):

    def test_delete_by_domain(self):

    def test_get_all(self):

class TestDNSDomainObject(test_objects._LocalTest, _TestDNSDomain):

class TestRemoteDNSDomainObject(test_objects._RemoteTest, _TestDNSDomain):

\OpenStack\nova-2014.1\nova\tests\objects\test_external_event.py

class _TestInstanceExternalEventObject(object):

    def test_make_key(self):

    def test_make_key_no_tag(self):

    def test_key(self):

class TestInstanceExternalEventObject(test_objects._LocalTest, _TestInstanceExternalEventObject):

class TestRemoteInstanceExternalEventObject(test_objects._RemoteTest, _TestInstanceExternalEventObject):

\OpenStack\nova-2014.1\nova\tests\objects\test_fields.py

class FakeFieldType(fields.FieldType):

    def coerce(self, obj, attr, value):

    def to_primitive(self, obj, attr, value):

    def from_primitive(self, obj, attr, value):

class TestField(test.NoDBTestCase):

    def setUp(self):

    def test_coerce_good_values(self):

    def test_coerce_bad_values(self):

    def test_to_primitive(self):

    def test_from_primitive(self):

class TestString(TestField):

    def setUp(self):

class TestInteger(TestField):

    def setUp(self):

class TestFloat(TestField):

    def setUp(self):

class TestBoolean(TestField):

    def setUp(self):

class TestDateTime(TestField):

    def setUp(self):

class TestIPAddress(TestField):

    def setUp(self):

class TestIPAddressV4(TestField):

    def setUp(self):

class TestIPAddressV6(TestField):

    def setUp(self):

class TestDict(TestField):

    def setUp(self):

class TestDictOfStrings(TestField):

    def setUp(self):

class TestDictOfStringsNone(TestField):

    def setUp(self):

class TestList(TestField):

    def setUp(self):

class TestListOfStrings(TestField):

    def setUp(self):

class TestObject(TestField):

    def setUp(self):

class TestNetworkModel(TestField):

    def setUp(self):

class TestIPNetwork(TestField):

    def setUp(self):

class TestIPV4Network(TestField):

    def setUp(self):

class TestIPV6Network(TestField):

    def setUp(self):

\OpenStack\nova-2014.1\nova\tests\objects\test_fixed_ip.py

class _TestFixedIPObject(object):

    def _compare(self, obj, db_obj):

    def test_get_by_id(self, get):

    def test_get_by_id_with_extras(self, network_get, fixed_get):

    def test_get_by_address(self, get):

    def test_get_by_address_with_extras(self, instance_get, network_get, fixed_get):

    def test_get_by_address_with_extras_deleted_instance(self, instance_get, network_get, fixed_get):

    def test_get_by_floating_ip(self, get):

    def test_get_by_network_and_host(self, get):

    def test_associate(self, associate):

    def test_associate_pool(self, associate):

    def test_disassociate_by_address(self, disassociate):

    def test_disassociate_all_by_timeout(self, disassociate):

    def test_create(self, create):

    def test_save(self, update):

    def test_disassociate(self, disassociate):

    def test_get_all(self, get_all):

    def test_get_by_instance(self, get):

    def test_get_by_host(self, get):

    def test_get_by_virtual_interface_id(self, get):

    def test_bulk_create(self, bulk):

    def test_get_by_network(self, get):

class TestFixedIPObject(test_objects._LocalTest, _TestFixedIPObject):

class TestRemoteFixedIPObject(test_objects._RemoteTest, _TestFixedIPObject):

\OpenStack\nova-2014.1\nova\tests\objects\test_flavor.py

class _TestFlavor(object):

    def _compare(test, db, obj):

    def test_get_by_id(self):

    def test_get_by_name(self):

    def test_get_by_flavor_id(self):

    def test_add_access(self):

    def test_add_access_with_dirty_projects(self):

    def test_remove_access(self):

    def test_create(self):

    def test_create_with_projects(self):

    def test_create_with_id(self):

    def test_save(self):

    def test_save_invalid_fields(self):

    def test_destroy(self):

    def test_load_projects(self):

    def test_load_anything_else(self):

class TestFlavor(test_objects._LocalTest, _TestFlavor):

class TestFlavorRemote(test_objects._RemoteTest, _TestFlavor):

class _TestFlavorList(object):

    def test_get_all(self):

class TestFlavorList(test_objects._LocalTest, _TestFlavorList):

class TestFlavorListRemote(test_objects._RemoteTest, _TestFlavorList):

\OpenStack\nova-2014.1\nova\tests\objects\test_floating_ip.py

class _TestFloatingIPObject(object):

    def _compare(self, obj, db_obj):

    def test_get_by_id(self, get):

    def test_get_by_address(self, get):

    def test_get_pool_names(self, get):

    def test_allocate_address(self, allocate):

    def test_associate(self, associate):

    def test_deallocate(self, deallocate):

    def test_destroy(self, destroy):

    def test_disassociate(self, disassociate):

    def test_save(self, update):

    def test_get_all(self, get):

    def test_get_by_host(self, get):

    def test_get_by_project(self, get):

    def test_get_by_fixed_address(self, get):

    def test_get_by_fixed_ip_id(self, get):

class TestFloatingIPObject(test_objects._LocalTest, _TestFloatingIPObject):

class TestRemoteFloatingIPObject(test_objects._RemoteTest, _TestFloatingIPObject):

\OpenStack\nova-2014.1\nova\tests\objects\test_instance.py

class _TestInstanceObject(object):

    def fake_instance(self):

    def test_datetime_deserialization(self):

    def test_ip_deserialization(self):

    def test_get_without_expected(self):

    def test_get_with_expected(self):

    def test_get_by_id(self):

    def test_load(self):

    def test_load_invalid(self):

    def test_get_remote(self):

    def test_refresh(self):

    def test_refresh_does_not_recurse(self):

    def _save_test_helper(self, cell_type, save_kwargs):

    def test_save(self):

    def test_save_in_api_cell(self):

    def test_save_in_compute_cell(self):

    def test_save_exp_vm_state(self):

    def test_save_exp_task_state(self):

    def test_save_exp_task_state_havana(self):

    def test_save_exp_vm_state_api_cell(self):

    def test_save_exp_task_state_api_cell(self):

    def test_save_exp_task_state_api_cell_admin_reset(self):

    def test_save_rename_sends_notification(self):

    def test_get_deleted(self):

    def test_get_not_cleaned(self):

    def test_get_cleaned(self):

    def test_with_info_cache(self):

    def test_with_info_cache_none(self):

    def test_with_security_groups(self):

    def test_with_empty_security_groups(self):

    def test_with_empty_pci_devices(self):

    def test_with_pci_devices(self):

    def test_with_fault(self):

    def test_iteritems_with_extra_attrs(self):

    def _test_metadata_change_tracking(self, which):

    def test_metadata_change_tracking(self):

    def test_system_metadata_change_tracking(self):

    def test_create_stubbed(self):

    def test_create(self):

    def test_create_with_values(self):

    def test_recreate_fails(self):

    def test_create_with_special_things(self):

    def test_destroy_stubbed(self):

    def test_destroy(self):

    def test_destroy_host_constraint(self):

    def test_name_does_not_trigger_lazy_loads(self):

    def test_from_db_object_not_overwrite_info_cache(self):

    def test_compat_strings(self):

    def test_compat_pci_devices(self):

    def test_compat_info_cache(self):

    def _test_get_flavor(self, namespace):

    def test_get_flavor(self):

    def _test_set_flavor(self, namespace):

    def test_set_flavor(self):

    def test_delete_flavor(self):

    def test_delete_flavor_no_namespace_fails(self):

    def test_delete_metadata_key(self, db_delete):

    def test_reset_changes(self):

class TestInstanceObject(test_objects._LocalTest, _TestInstanceObject):

class TestRemoteInstanceObject(test_objects._RemoteTest, _TestInstanceObject):

class _TestInstanceListObject(object):

    def fake_instance(self, id, updates=None):

    def test_get_all_by_filters(self):

    def test_get_all_by_filters_works_for_cleaned(self):

    def test_get_by_host(self):

    def test_get_by_host_and_node(self):

    def test_get_by_host_and_not_type(self):

    def test_get_hung_in_rebooting(self):

    def test_get_active_by_window_joined(self):

        def fake_instance_get_active_by_window_joined(context, begin, end, project_id, host):

    def test_with_fault(self):

    def test_fill_faults(self):

    def test_get_by_security_group(self):

class TestInstanceListObject(test_objects._LocalTest, _TestInstanceListObject):

class TestRemoteInstanceListObject(test_objects._RemoteTest, _TestInstanceListObject):

class TestInstanceObjectMisc(test.NoDBTestCase):

    def test_expected_cols(self):

\OpenStack\nova-2014.1\nova\tests\objects\test_instance_action.py

class _TestInstanceActionObject(object):

    def test_get_by_request_id(self, mock_get):

    def test_pack_action_start(self):

    def test_pack_action_finish(self):

    def test_action_start(self, mock_start):

    def test_action_start_no_result(self, mock_start):

    def test_action_finish(self, mock_finish):

    def test_action_finish_no_result(self, mock_finish):

    def test_finish(self, mock_start, mock_finish):

    def test_get_list(self, mock_get):

class TestInstanceActionObject(test_objects._LocalTest, _TestInstanceActionObject):

class TestRemoteInstanceActionObject(test_objects._RemoteTest, _TestInstanceActionObject):

class _TestInstanceActionEventObject(object):

    def test_get_by_id(self, mock_get):

    def test_event_start(self, mock_start):

    def test_event_start_no_result(self, mock_start):

    def test_event_finish(self, mock_finish):

    def test_event_finish_no_result(self, mock_finish):

    def test_event_finish_with_failure(self, mock_finish, mock_tb):

    def test_event_finish_with_failure_no_result(self, mock_finish, mock_tb):

    def test_get_by_action(self, mock_get):

\OpenStack\nova-2014.1\nova\tests\objects\test_instance_fault.py

class _TestInstanceFault(object):

    def test_get_latest_for_instance(self):

    def test_get_latest_for_instance_with_none(self):

    def test_get_by_instance(self):

    def test_get_by_instance_with_none(self):

class TestInstanceFault(test_objects._LocalTest, _TestInstanceFault):

class TestInstanceFaultRemote(test_objects._RemoteTest, _TestInstanceFault):

\OpenStack\nova-2014.1\nova\tests\objects\test_instance_group.py

class _TestInstanceGroupObjects(test.TestCase):

    def setUp(self):

    def _get_default_values(self):

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

    def test_get_by_uuid(self):

    def test_refresh(self):

    def test_save_simple(self):

    def test_save_policies(self):

    def test_save_members(self):

    def test_save_metadata(self):

    def test_create(self):

    def test_create_with_policies(self):

    def test_create_with_members(self):

    def test_create_with_metadata(self):

    def test_recreate_fails(self):

    def test_destroy(self):

    def _populate_instances(self):

    def test_list_all(self):

    def test_list_by_project_id(self):

    def test_get_by_name(self):

    def test_add_members(self):

    def test_get_hosts(self):

    def test_get_hosts_with_some_none(self):

class TestInstanceGroupObject(test_objects._LocalTest, _TestInstanceGroupObjects):

class TestRemoteInstanceGroupObject(test_objects._RemoteTest, _TestInstanceGroupObjects):

\OpenStack\nova-2014.1\nova\tests\objects\test_instance_info_cache.py

class _TestInstanceInfoCacheObject(object):

    def test_get_by_instance_uuid(self):

    def test_get_by_instance_uuid_no_entries(self):

    def test_new(self):

    def _save_helper(self, cell_type, update_cells):

    def test_save_with_update_cells_and_compute_cell(self):

    def test_save_with_update_cells_and_non_compute_cell(self):

    def test_save_without_update_cells(self):

    def test_refresh(self):

class TestInstanceInfoCacheObject(test_objects._LocalTest, _TestInstanceInfoCacheObject):

class TestInstanceInfoCacheObjectRemote(test_objects._RemoteTest, _TestInstanceInfoCacheObject):

\OpenStack\nova-2014.1\nova\tests\objects\test_keypair.py

class _TestKeyPairObject(object):

    def test_get_by_name(self):

    def test_create(self):

    def test_recreate_fails(self):

    def test_destroy(self):

    def test_destroy_by_name(self):

    def test_get_by_user(self):

class TestMigrationObject(test_objects._LocalTest, _TestKeyPairObject):

class TestRemoteMigrationObject(test_objects._RemoteTest, _TestKeyPairObject):

\OpenStack\nova-2014.1\nova\tests\objects\test_migration.py

def fake_db_migration(**updates):

class _TestMigrationObject(object):

    def test_get_by_id(self):

    def test_get_by_instance_and_status(self):

    def test_create(self):

    def test_recreate_fails(self):

    def test_save(self):

    def test_instance(self):

    def test_get_unconfirmed_by_dest_compute(self):

    def test_get_in_progress_by_host_and_node(self):

    def test_get_by_filters(self):

class TestMigrationObject(test_objects._LocalTest, _TestMigrationObject):

class TestRemoteMigrationObject(test_objects._RemoteTest, _TestMigrationObject):

\OpenStack\nova-2014.1\nova\tests\objects\test_network.py

class _TestNetworkObject(object):

    def _compare(self, obj, db_obj):

    def test_get_by_id(self, get):

    def test_get_by_uuid(self, get):

    def test_get_by_cidr(self, get):

    def test_save(self, set_host, update):

    def test_save_with_host(self, get, set_host, update):

    def test_save_with_host_and_other(self, set_host, update):

    def test_associate(self, associate):

    def test_disassociate(self, disassociate):

    def test_create(self, create):

    def test_destroy(self, delete):

    def test_get_all(self, get_all):

    def test_get_all_by_uuids(self, get_all):

    def test_get_all_by_host(self, get_all):

    def test_in_use_on_host(self, in_use):

    def test_get_all_by_project(self, get_nets):

class TestNetworkObject(test_objects._LocalTest, _TestNetworkObject):

class TestRemoteNetworkObject(test_objects._RemoteTest, _TestNetworkObject):

\OpenStack\nova-2014.1\nova\tests\objects\test_objects.py

class MyObj(base.NovaPersistentObject, base.NovaObject):

    def _from_db_object(context, obj, db_obj):

    def obj_load_attr(self, attrname):

    def query(cls, context):

    def marco(self, context):

    def _update_test(self, context):

    def save(self, context):

    def refresh(self, context):

    def modify_save_modify(self, context):

    def obj_make_compatible(self, primitive, target_version):

class MyObj2(object):

    def obj_name(cls):

    def query(cls, *args, **kwargs):

class RandomMixInWithNoFields(object):

class TestSubclassedObject(RandomMixInWithNoFields, MyObj):

class TestMetaclass(test.TestCase):

    def test_obj_tracking(self):

class TestUtils(test.TestCase):

    def test_datetime_or_none(self):

    def test_datetime_or_str_or_none(self):

    def test_int_or_none(self):

    def test_str_or_none(self):

    def test_str_value(self):

    def test_cstring(self):

    def test_ip_or_none(self):

    def test_list_of_strings_or_none(self):

    def test_dict_of_strings_or_none(self):

    def test_dt_serializer(self):

    def test_dt_deserializer(self):

    def test_obj_to_primitive_list(self):

    def test_obj_to_primitive_dict(self):

    def test_obj_to_primitive_recursive(self):

    def test_obj_to_primitive_with_ip_addr(self):

    def test_obj_make_list(self):

def compare_obj(test, obj, db_obj, subs=None, allow_missing=None, comparators=None):

class _BaseTestCase(test.TestCase):

    def setUp(self):

    def compare_obj(self, obj, db_obj, subs=None, allow_missing=None, comparators=None):

    def json_comparator(self, expected, obj_val):

    def assertNotIsInstance(self, obj, cls, msg=None):

class _LocalTest(_BaseTestCase):

    def setUp(self):

    def assertRemotes(self):

def things_temporarily_local():

class _RemoteTest(_BaseTestCase):

    def _testable_conductor(self):

        def fake_object_class_action(*args, **kwargs):

        def fake_object_action(*args, **kwargs):

    def setUp(self):

    def assertRemotes(self):

class _TestObject(object):

    def test_hydration_type_error(self):

    def test_hydration(self):

        def _obj_from_primitive(*args):

    def test_hydration_version_different(self):

    def test_hydration_bad_ns(self):

    def test_dehydration(self):

    def test_object_property(self):

    def test_object_property_type_error(self):

        def fail():

    def test_object_dict_syntax(self):

    def test_load(self):

    def test_load_in_base(self):

    def test_loaded_in_primitive(self):

    def test_changes_in_primitive(self):

    def test_unknown_objtype(self):

    def test_obj_class_from_name_supported_version(self):

    def test_with_alternate_context(self):

    def test_orphaned_object(self):

    def test_changed_1(self):

    def test_changed_2(self):

    def test_changed_3(self):

    def test_changed_4(self):

    def test_changed_with_sub_object(self):

    def test_static_result(self):

    def test_updates(self):

    def test_base_attributes(self):

    def test_contains(self):

    def test_obj_attr_is_set(self):

    def test_get(self):

    def test_object_inheritance(self):

    def test_get_changes(self):

    def test_obj_fields(self):

    def test_obj_constructor(self):

class TestObject(_LocalTest, _TestObject):

class TestRemoteObject(_RemoteTest, _TestObject):

    def test_major_version_mismatch(self):

    def test_minor_version_greater(self):

    def test_minor_version_less(self):

    def test_compat(self):

class TestObjectListBase(test.TestCase):

    def test_list_like_operations(self):

    def test_serialization(self):

    def _test_object_list_version_mappings(self, list_obj_class):

    def test_object_version_mappings(self):

    def test_list_changes(self):

class TestObjectSerializer(_BaseTestCase):

    def test_serialize_entity_primitive(self):

    def test_deserialize_entity_primitive(self):

    def test_deserialize_entity_newer_version(self):

    def test_object_serialization(self):

    def test_object_serialization_iterables(self):

\OpenStack\nova-2014.1\nova\tests\objects\test_pci_device.py

class _TestPciDeviceObject(object):

    def _create_fake_instance(self):

    def _create_fake_pci_device(self):

    def test_create_pci_device(self):

    def test_pci_device_extra_info(self):

    def test_update_device(self):

    def test_update_device_same_value(self):

    def test_get_by_dev_addr(self):

    def test_get_by_dev_id(self):

    def test_claim_device(self):

    def test_claim_device_fail(self):

    def test_allocate_device(self):

    def test_allocacte_device_fail_status(self):

    def test_allocacte_device_fail_owner(self):

    def test_free_claimed_device(self):

    def test_free_allocated_device(self):

    def test_free_device_fail(self):

    def test_remove_device(self):

    def test_remove_device_fail(self):

    def test_save(self):

    def test_save_no_extra_info(self):

        def _fake_update(ctxt, node_id, addr, updates):

    def test_save_removed(self):

    def test_save_deleted(self):

        def _fake_destroy(ctxt, node_id, addr):

        def _fake_update(ctxt, node_id, addr, updates):

class TestPciDeviceObject(test_objects._LocalTest, _TestPciDeviceObject):

class TestPciDeviceObjectRemote(test_objects._RemoteTest, _TestPciDeviceObject):

class _TestPciDeviceListObject(object):

    def test_get_by_compute_node(self):

    def test_get_by_instance_uuid(self):

class TestPciDeviceListObject(test_objects._LocalTest, _TestPciDeviceListObject):

class TestPciDeviceListObjectRemote(test_objects._RemoteTest, _TestPciDeviceListObject):

\OpenStack\nova-2014.1\nova\tests\objects\test_quotas.py

class TestQuotasModule(test.NoDBTestCase):

    def setUp(self):

    def test_ids_from_instance_non_admin(self):

    def test_ids_from_instance_admin(self):

class _TestQuotasObject(object):

    def setUp(self):

    def test_from_reservations(self):

    def test_from_reservations_bogus(self):

    def test_from_reservations_instance(self):

    def test_from_reservations_instance_admin(self):

    def test_reserve(self):

    def test_commit(self):

    def test_commit_none_reservations(self):

    def test_rollback(self):

    def test_rollback_none_reservations(self):

class TestQuotasObject(_TestQuotasObject, test_objects._LocalTest):

class TestRemoteQuotasObject(_TestQuotasObject, test_objects._RemoteTest):

\OpenStack\nova-2014.1\nova\tests\objects\test_security_group.py

class _TestSecurityGroupObject(object):

    def _fix_deleted(self, db_secgroup):

    def test_get(self):

    def test_get_by_name(self):

    def test_in_use(self):

    def test_save(self):

    def test_save_no_changes(self):

    def test_refresh(self):

class TestSecurityGroupObject(test_objects._LocalTest, _TestSecurityGroupObject):

class TestSecurityGroupObjectRemote(test_objects._RemoteTest, _TestSecurityGroupObject):

class _TestSecurityGroupListObject(object):

    def test_get_all(self):

    def test_get_by_project(self):

    def test_get_by_instance(self):

class TestSecurityGroupListObject(test_objects._LocalTest, _TestSecurityGroupListObject):

class TestSecurityGroupListObjectRemote(test_objects._RemoteTest, _TestSecurityGroupListObject):

\OpenStack\nova-2014.1\nova\tests\objects\test_security_group_rule.py

class _TestSecurityGroupRuleObject(object):

    def test_get_by_id(self):

    def test_get_by_security_group(self):

class TestSecurityGroupRuleObject(test_objects._LocalTest, _TestSecurityGroupRuleObject):

class TestSecurityGroupRuleObjectRemote(test_objects._RemoteTest, _TestSecurityGroupRuleObject):

\OpenStack\nova-2014.1\nova\tests\objects\test_service.py

class _TestServiceObject(object):

    def _test_query(self, db_method, obj_method, *args, **kwargs):

    def test_get_by_id(self):

    def test_get_by_host_and_topic(self):

    def test_get_by_compute_host(self):

    def test_get_by_args(self):

    def test_with_compute_node(self):

    def test_create(self):

    def test_recreate_fails(self):

    def test_save(self):

    def _test_destroy(self):

    def test_destroy(self):

    def test_get_by_topic(self):

    def test_get_by_host(self):

    def test_get_all(self):

    def test_get_all_with_az(self):

    def test_compute_node(self):

    def test_load_when_orphaned(self):

class TestServiceObject(test_objects._LocalTest, _TestServiceObject):

class TestRemoteServiceObject(test_objects._RemoteTest, _TestServiceObject):

\OpenStack\nova-2014.1\nova\tests\objects\test_virtual_interface.py

class _TestVirtualInterface(object):

    def _compare(test, db, obj):

    def test_get_by_id(self):

    def test_get_by_uuid(self):

    def test_get_by_address(self):

    def test_get_by_instance_and_network(self):

    def test_create(self):

    def test_delete_by_instance_uuid(self):

class TestVirtualInterfaceObject(test_objects._LocalTest, _TestVirtualInterface):

class TestRemoteVirtualInterfaceObject(test_objects._RemoteTest, _TestVirtualInterface):

class _TestVirtualInterfaceList(object):

    def test_get_all(self):

    def test_get_by_instance_uuid(self):

class TestVirtualInterfaceList(test_objects._LocalTest, _TestVirtualInterfaceList):

class TestRemoteVirtualInterfaceList(test_objects._RemoteTest, _TestVirtualInterfaceList):

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

\OpenStack\nova-2014.1\nova\tests\pci\test_pci_manager.py

class PciDevTrackerTestCase(test.TestCase):

    def _create_fake_instance(self):

    def _fake_get_pci_devices(self, ctxt, node_id):

    def _fake_pci_device_update(self, ctxt, node_id, address, value):

    def _fake_pci_device_destroy(self, ctxt, node_id, address):

    def _fake_get_instance_pci_requests(self, instance, prefix=''):

    def setUp(self):

    def test_pcidev_tracker_create(self):

    def test_pcidev_tracker_create_no_nodeid(self):

    def test_get_free_devices_for_requests(self):

    def test_get_free_devices_for_requests_empty(self):

    def test_get_free_devices_for_requests_meet_partial(self):

    def test_set_hvdev_new_dev(self):

    def test_set_hvdev_changed(self):

    def test_set_hvdev_remove(self):

    def test_set_hvdev_changed_stal(self):

    def test_update_pci_for_instance_active(self):

    def test_update_pci_for_instance_fail(self):

    def test_update_pci_for_instance_deleted(self):

    def test_update_pci_for_instance_resize_source(self):

    def test_update_pci_for_instance_resize_dest(self):

    def test_update_pci_for_migration_in(self):

    def test_update_pci_for_migration_out(self):

    def test_save(self):

    def test_save_removed(self):

    def test_set_compute_node_id(self):

    def test_clean_usage(self):

    def test_clean_usage_claims(self):

    def test_clean_usage_no_request_match_no_claims(self):

class PciGetInstanceDevs(test.TestCase):

    def test_get_devs_non_object(self):

        def _fake_pci_device_get_by_instance_uuid(context, uuid):

    def test_get_devs_object(self):

        def _fake_obj_load_attr(foo, attrname):

\OpenStack\nova-2014.1\nova\tests\pci\test_pci_request.py

class AliasTestCase(test.NoDBTestCase):

    def setUp(self):

    def test_good_alias(self):

    def test_multispec_alias(self):

    def test_wrong_type_aliase(self):

    def test_wrong_product_id_aliase(self):

    def test_wrong_vendor_id_aliase(self):

    def test_wrong_cap_type_aliase(self):

    def test_dup_aliase(self):

    def test_aliase_2_request(self):

    def test_aliase_2_request_invalid(self):

    def test_get_pci_requests_from_flavor(self):

    def test_get_pci_requests_from_flavor_no_extra_spec(self):

    def test_get_instance_pci_requests_no_meta(self):

    def test_get_instance_pci_requests_no_request(self):

    def test_get_instance_pci_requests(self):

    def test_get_instance_pci_requests_prefix(self):

    def test_save_flavor_pci_info(self):

    def test_delete_flavor_pci_info(self):

\OpenStack\nova-2014.1\nova\tests\pci\test_pci_stats.py

class PciDeviceStatsTestCase(test.NoDBTestCase):

    def _create_fake_devs(self):

    def setUp(self):

    def test_add_device(self):

    def test_remove_device(self):

    def test_remove_device_exception(self):

    def test_json_creat(self):

    def test_support_requests(self):

    def test_support_requests_failed(self):

    def test_apply_requests(self):

    def test_apply_requests_failed(self):

\OpenStack\nova-2014.1\nova\tests\pci\test_pci_utils.py

class PciDeviceMatchTestCase(test.NoDBTestCase):

    def setUp(self):

    def test_single_spec_match(self):

    def test_multiple_spec_match(self):

    def test_spec_dismatch(self):

    def test_spec_extra_key(self):

class PciDeviceAddressParserTestCase(test.NoDBTestCase):

    def test_parse_address(self):

    def test_parse_address_wrong(self):

    def test_parse_address_invalid_character(self):

\OpenStack\nova-2014.1\nova\tests\pci\test_pci_whitelist.py

class PciHostDevicesWhiteListTestCase(test.NoDBTestCase):

    def setUp(self):

    def test_whitelist_wrong_format(self):

    def test_whitelist_missed_fields(self):

    def test_whitelist(self):

    def test_whitelist_empty(self):

    def test_whitelist_multiple(self):

    def test_device_assignable(self):

    def test_device_assignable_multiple(self):

    def test_get_pci_devices_filter(self):

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

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

class PolicyFixture(fixtures.Fixture):

    def setUp(self):

    def set_rules(self, rules):

class RoleBasedPolicyFixture(fixtures.Fixture):

    def __init__(self, role="admin", *args, **kwargs):

    def setUp(self):

\OpenStack\nova-2014.1\nova\tests\scheduler\fakes.py

class FakeFilterScheduler(filter_scheduler.FilterScheduler):

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

class FakeHostManager(host_manager.HostManager):

    def __init__(self):

class FakeHostState(host_manager.HostState):

    def __init__(self, host, node, attribute_dict):

class FakeInstance(object):

    def __init__(self, context=None, params=None):

    def _create_fake_instance(self, params=None):

class FakeComputeAPI(object):

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

def mox_host_manager_db_calls(mock, context):

\OpenStack\nova-2014.1\nova\tests\scheduler\test_caching_scheduler.py

class CachingSchedulerTestCase(test_scheduler.SchedulerTestCase):

    def test_run_periodic_tasks_loads_hosts(self, mock_up_hosts):

    def test_get_all_host_states_returns_cached_value(self, mock_up_hosts):

    def test_get_all_host_states_loads_hosts(self, mock_up_hosts):

    def test_get_up_hosts(self):

    def test_select_destination_raises_with_no_hosts(self):

    def test_select_destination_works(self):

    def _test_select_destinations(self, request_spec):

    def _get_fake_request_spec(self):

    def _get_fake_host_state(self, index=0):

    def test_performance_check_select_destination(self):

        def run_test():

\OpenStack\nova-2014.1\nova\tests\scheduler\test_chance_scheduler.py

class ChanceSchedulerTestCase(test_scheduler.SchedulerTestCase):

    def test_filter_hosts_avoid(self):

    def test_filter_hosts_no_avoid(self):

    def test_basic_schedule_run_instance(self):

        def inc_launch_index(*args):

    def test_basic_schedule_run_instance_no_hosts(self):

    def test_select_destinations(self):

    def test_select_destinations_no_valid_host(self):

        def _return_no_host(*args, **kwargs):

\OpenStack\nova-2014.1\nova\tests\scheduler\test_filters.py

class Filter1(filters.BaseFilter):

class Filter2(filters.BaseFilter):

class FiltersTestCase(test.NoDBTestCase):

    def test_filter_all(self):

    def test_filter_all_recursive_yields(self):

    def test_get_filtered_objects(self):

        def _fake_base_loader_init(*args, **kwargs):

    def test_get_filtered_objects_for_index(self):

        def _fake_base_loader_init(*args, **kwargs):

    def test_get_filtered_objects_none_response(self):

        def _fake_base_loader_init(*args, **kwargs):

\OpenStack\nova-2014.1\nova\tests\scheduler\test_filter_scheduler.py

def fake_get_filtered_hosts(hosts, filter_properties, index):

def fake_get_group_filtered_hosts(hosts, filter_properties, index):

def fake_get_group_filtered_affinity_hosts(hosts, filter_properties, index):

class FilterSchedulerTestCase(test_scheduler.SchedulerTestCase):

    def test_run_instance_no_hosts(self):

        def _fake_empty_call_zone_method(*args, **kwargs):

    def test_run_instance_non_admin(self):

        def fake_get(context, *args, **kwargs):

    def test_scheduler_includes_launch_index(self):

        def _has_launch_index(expected_index):

    def test_schedule_happy_day(self):

        def _fake_weigh_objects(_self, functions, hosts, options):

    def test_max_attempts(self):

    def test_invalid_max_attempts(self):

    def test_retry_disabled(self):

    def test_retry_force_hosts(self):

    def test_retry_force_nodes(self):

    def test_retry_attempt_one(self):

    def test_retry_attempt_two(self):

    def test_retry_exceeded_max_attempts(self):

    def test_add_retry_host(self):

    def test_post_select_populate(self):

    def test_group_details_in_filter_properties(self):

    def test_schedule_host_pool(self):

    def test_schedule_large_host_pool(self):

    def test_schedule_chooses_best_host(self):

        def _fake_weigh_objects(_self, functions, hosts, options):

    def test_select_destinations(self):

        def _fake_weigh_objects(_self, functions, hosts, options):

    def test_select_destinations_no_valid_host(self):

        def _return_no_host(*args, **kwargs):

    def test_handles_deleted_instance(self):

        def _raise_instance_not_found(*args, **kwargs):

    def test_pci_request_in_filter_properties(self):

\OpenStack\nova-2014.1\nova\tests\scheduler\test_host_filters.py

class TestFilter(filters.BaseHostFilter):

class TestBogusFilter(object):

class ExtraSpecsOpsTestCase(test.NoDBTestCase):

    def _do_extra_specs_ops_test(self, value, req, matches):

    def test_extra_specs_matches_simple(self):

    def test_extra_specs_fails_simple(self):

    def test_extra_specs_fails_simple2(self):

    def test_extra_specs_fails_simple3(self):

    def test_extra_specs_fails_with_bogus_ops(self):

    def test_extra_specs_matches_with_op_eq(self):

    def test_extra_specs_matches_with_op_eq2(self):

    def test_extra_specs_fails_with_op_eq(self):

    def test_extra_specs_fails_with_op_eq3(self):

    def test_extra_specs_matches_with_op_seq(self):

    def test_extra_specs_fails_with_op_seq(self):

    def test_extra_specs_matches_with_op_sneq(self):

    def test_extra_specs_fails_with_op_sneq(self):

    def test_extra_specs_fails_with_op_sge(self):

    def test_extra_specs_fails_with_op_sle(self):

    def test_extra_specs_fails_with_op_sl(self):

    def test_extra_specs_fails_with_op_sg(self):

    def test_extra_specs_matches_with_op_in(self):

    def test_extra_specs_matches_with_op_in2(self):

    def test_extra_specs_matches_with_op_in3(self):

    def test_extra_specs_fails_with_op_in(self):

    def test_extra_specs_fails_with_op_in2(self):

    def test_extra_specs_matches_with_op_or(self):

    def test_extra_specs_matches_with_op_or2(self):

    def test_extra_specs_fails_with_op_or(self):

    def test_extra_specs_fails_with_op_or2(self):

    def test_extra_specs_matches_with_op_le(self):

    def test_extra_specs_fails_with_op_le(self):

    def test_extra_specs_matches_with_op_ge(self):

    def test_extra_specs_fails_with_op_ge(self):

class HostFiltersTestCase(test.NoDBTestCase):

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

    def setUp(self):

    def test_all_filters(self):

    def test_all_host_filter(self):

    def _stub_service_is_up(self, ret_value):

        def fake_service_is_up(self, service):

    def test_affinity_different_filter_passes(self):

    def test_affinity_different_filter_no_list_passes(self):

    def test_affinity_different_filter_fails(self):

    def test_affinity_different_filter_handles_none(self):

    def test_affinity_different_filter_handles_deleted_instance(self):

    def test_affinity_same_filter_no_list_passes(self):

    def test_affinity_same_filter_passes(self):

    def test_affinity_same_filter_fails(self):

    def test_affinity_same_filter_handles_none(self):

    def test_affinity_same_filter_handles_deleted_instance(self):

    def test_affinity_simple_cidr_filter_passes(self):

    def test_affinity_simple_cidr_filter_fails(self):

    def test_affinity_simple_cidr_filter_handles_none(self):

    def test_compute_filter_passes(self):

    def test_type_filter(self):

    def test_aggregate_type_filter(self):

    def test_ram_filter_fails_on_memory(self):

    def test_ram_filter_passes(self):

    def test_ram_filter_oversubscribe(self):

    def test_aggregate_ram_filter_value_error(self):

    def test_aggregate_ram_filter_default_value(self):

    def test_aggregate_ram_filter_conflict_values(self):

    def test_disk_filter_passes(self):

    def test_disk_filter_fails(self):

    def test_disk_filter_oversubscribe(self):

    def test_disk_filter_oversubscribe_fail(self):

    def _test_compute_filter_fails_on_service_disabled(self, reason=None):

    def test_compute_filter_fails_on_service_disabled_no_reason(self):

    def test_compute_filter_fails_on_service_disabled(self):

    def test_compute_filter_fails_on_service_down(self):

    def test_image_properties_filter_passes_same_inst_props_and_version(self):

    def test_image_properties_filter_fails_different_inst_props(self):

    def test_image_properties_filter_fails_different_hyper_version(self):

    def test_image_properties_filter_passes_partial_inst_props(self):

    def test_image_properties_filter_fails_partial_inst_props(self):

    def test_image_properties_filter_passes_without_inst_props(self):

    def test_image_properties_filter_fails_without_host_props(self):

    def test_image_properties_filter_passes_without_hyper_version(self):

    def test_image_properties_filter_fails_with_unsupported_hyper_ver(self):

    def test_image_properties_filter_pv_mode_compat(self):

    def test_image_properties_filter_hvm_mode_compat(self):

    def _do_test_compute_filter_extra_specs(self, ecaps, especs, passes):

    def test_compute_filter_passes_extra_specs_simple(self):

    def test_compute_filter_fails_extra_specs_simple(self):

    def test_compute_filter_pass_extra_specs_simple_with_scope(self):

    def test_compute_filter_pass_extra_specs_same_as_scope(self):

    def test_compute_filter_extra_specs_simple_with_wrong_scope(self):

    def test_compute_filter_extra_specs_pass_multi_level_with_scope(self):

    def test_aggregate_filter_passes_no_extra_specs(self):

    def _create_aggregate_with_host(self, name='fake_aggregate', metadata=None, hosts=['host1']):

    def _do_test_aggregate_filter_extra_specs(self, emeta, especs, passes):

    def test_aggregate_filter_fails_extra_specs_deleted_host(self):

    def test_aggregate_filter_passes_extra_specs_simple(self):

    def test_aggregate_filter_passes_with_key_same_as_scope(self):

    def test_aggregate_filter_fails_extra_specs_simple(self):

    def _do_test_isolated_hosts(self, host_in_list, image_in_list, set_flags=True, restrict_isolated_hosts_to_isolated_images=True):

    def test_isolated_hosts_fails_isolated_on_non_isolated(self):

    def test_isolated_hosts_fails_non_isolated_on_isolated(self):

    def test_isolated_hosts_passes_isolated_on_isolated(self):

    def test_isolated_hosts_passes_non_isolated_on_non_isolated(self):

    def test_isolated_hosts_no_config(self):

    def test_isolated_hosts_no_hosts_config(self):

    def test_isolated_hosts_no_images_config(self):

    def test_isolated_hosts_less_restrictive(self):

    def test_json_filter_passes(self):

    def test_json_filter_passes_with_no_query(self):

    def test_json_filter_fails_on_memory(self):

    def test_json_filter_fails_on_disk(self):

    def test_json_filter_fails_on_service_disabled(self):

    def test_json_filter_happy_day(self):

    def test_json_filter_basic_operators(self):

    def test_json_filter_unknown_operator_raises(self):

    def test_json_filter_empty_filters_pass(self):

    def test_json_filter_invalid_num_arguments_fails(self):

    def test_json_filter_unknown_variable_ignored(self):

    def test_trusted_filter_default_passes(self):

    def test_trusted_filter_trusted_and_trusted_passes(self):

    def test_trusted_filter_trusted_and_untrusted_fails(self):

    def test_trusted_filter_untrusted_and_trusted_fails(self):

    def test_trusted_filter_untrusted_and_untrusted_passes(self):

    def test_trusted_filter_update_cache(self):

    def test_trusted_filter_update_cache_timezone(self):

    def test_core_filter_passes(self):

    def test_core_filter_fails_safe(self):

    def test_core_filter_fails(self):

    def test_aggregate_core_filter_value_error(self):

    def test_aggregate_core_filter_default_value(self):

    def test_aggregate_core_filter_conflict_values(self):

    def _make_zone_request(zone, is_admin=False):

    def test_availability_zone_filter_same(self):

    def test_availability_zone_filter_different(self):

    def test_retry_filter_disabled(self):

    def test_retry_filter_pass(self):

    def test_retry_filter_fail(self):

    def test_filter_num_iops_passes(self):

    def test_filter_num_iops_fails(self):

    def test_filter_num_instances_passes(self):

    def test_filter_num_instances_fails(self):

    def _test_group_anti_affinity_filter_passes(self, cls, policy):

    def test_group_anti_affinity_filter_passes(self):

    def test_group_anti_affinity_filter_passes_legacy(self):

    def _test_group_anti_affinity_filter_fails(self, cls, policy):

    def test_group_anti_affinity_filter_fails(self):

    def test_group_anti_affinity_filter_fails_legacy(self):

    def _test_group_affinity_filter_passes(self, cls, policy):

    def test_group_affinity_filter_passes(self):

    def test_group_affinity_filter_passes_legacy(self):

    def _test_group_affinity_filter_fails(self, cls, policy):

    def test_group_affinity_filter_fails(self):

    def test_group_affinity_filter_fails_legacy(self):

    def test_aggregate_multi_tenancy_isolation_with_meta_passes(self):

    def test_aggregate_multi_tenancy_isolation_fails(self):

    def test_aggregate_multi_tenancy_isolation_no_meta_passes(self):

    def _fake_pci_support_requests(self, pci_requests):

    def test_pci_passthrough_pass(self):

    def test_pci_passthrough_fail(self):

    def test_pci_passthrough_no_pci_request(self):

    def test_pci_passthrough_comopute_stats(self):

    def test_aggregate_image_properties_isolation_passes(self):

    def test_aggregate_image_properties_isolation_multi_props_passes(self):

    def test_aggregate_image_properties_isolation_props_with_meta_passes(self):

    def test_aggregate_image_properties_isolation_props_imgprops_passes(self):

    def test_aggregate_image_properties_isolation_props_not_match_fails(self):

    def test_aggregate_image_properties_isolation_props_not_match2_fails(self):

    def test_aggregate_image_properties_isolation_props_namespace(self):

    def test_metrics_filter_pass(self):

    def test_metrics_filter_missing_metrics(self):

\OpenStack\nova-2014.1\nova\tests\scheduler\test_host_manager.py

class FakeFilterClass1(filters.BaseHostFilter):

    def host_passes(self, host_state, filter_properties):

class FakeFilterClass2(filters.BaseHostFilter):

    def host_passes(self, host_state, filter_properties):

class HostManagerTestCase(test.NoDBTestCase):

    def setUp(self):

    def test_choose_host_filters_not_found(self):

    def test_choose_host_filters(self):

    def _mock_get_filtered_hosts(self, info, specified_filters=None):

        def fake_filter_one(_self, obj, filter_props):

    def _verify_result(self, info, result, filters=True):

    def test_get_filtered_hosts(self):

    def test_get_filtered_hosts_with_specified_filters(self):

    def test_get_filtered_hosts_with_ignore(self):

    def test_get_filtered_hosts_with_force_hosts(self):

    def test_get_filtered_hosts_with_no_matching_force_hosts(self):

    def test_get_filtered_hosts_with_ignore_and_force_hosts(self):

    def test_get_filtered_hosts_with_force_host_and_many_nodes(self):

    def test_get_filtered_hosts_with_force_nodes(self):

    def test_get_filtered_hosts_with_force_hosts_and_nodes(self):

    def test_get_filtered_hosts_with_force_hosts_and_wrong_nodes(self):

    def test_get_filtered_hosts_with_ignore_hosts_and_force_nodes(self):

    def test_get_filtered_hosts_with_ignore_hosts_and_force_same_nodes(self):

    def test_get_all_host_states(self):

class HostManagerChangedNodesTestCase(test.NoDBTestCase):

    def setUp(self):

    def test_get_all_host_states(self):

    def test_get_all_host_states_after_delete_one(self):

    def test_get_all_host_states_after_delete_all(self):

class HostStateTestCase(test.NoDBTestCase):

    def test_stat_consumption_from_compute_node(self):

    def test_stat_consumption_from_compute_node_non_pci(self):

    def test_stat_consumption_from_instance(self):

    def test_resources_consumption_from_compute_node(self):

\OpenStack\nova-2014.1\nova\tests\scheduler\test_rpcapi.py

class SchedulerRpcAPITestCase(test.NoDBTestCase):

    def _test_scheduler_api(self, method, rpc_method, **kwargs):

    def test_run_instance(self):

    def test_prep_resize(self):

    def test_select_destinations(self):

\OpenStack\nova-2014.1\nova\tests\scheduler\test_scheduler.py

class SchedulerManagerTestCase(test.NoDBTestCase):

    def setUp(self):

    def test_1_correct_init(self):

    def test_show_host_resources(self):

OpenStack Index

Previous

Next