Tests For Scheduler Host Filters.
Bases: nova.test.TestCase
-
class HostFiltersTestCase(*args, **kwargs)
Bases: nova.test.TestCase
Test case for host filters.
-
fake_oat_request(*args, **kwargs)
Stubs out the response from OAT service.
-
setUp()
-
test_affinity_different_filter_fails()
-
test_affinity_different_filter_handles_deleted_instance()
-
test_affinity_different_filter_handles_none()
-
test_affinity_different_filter_no_list_passes()
-
test_affinity_different_filter_passes()
-
test_affinity_same_filter_fails()
-
test_affinity_same_filter_handles_deleted_instance()
-
test_affinity_same_filter_handles_none()
-
test_affinity_same_filter_no_list_passes()
-
test_affinity_same_filter_passes()
-
test_affinity_simple_cidr_filter_fails()
-
test_affinity_simple_cidr_filter_handles_none()
-
test_affinity_simple_cidr_filter_passes()
-
test_aggregate_multi_tenancy_isolation_fails()
-
test_aggregate_multi_tenancy_isolation_no_meta_passes()
-
test_aggregate_multi_tenancy_isolation_with_meta_passes()
-
test_aggregate_type_filter()
-
test_all_filters()
-
test_all_host_filter()
-
test_availability_zone_filter_different()
-
test_availability_zone_filter_same()
-
test_compute_filter_fails_on_capability_disabled()
-
test_compute_filter_fails_on_service_disabled()
-
test_compute_filter_fails_on_service_down()
-
test_compute_filter_passes()
-
test_core_filter_fails()
-
test_core_filter_fails_safe()
-
test_core_filter_passes()
-
test_disk_filter_fails()
-
test_disk_filter_oversubscribe()
-
test_disk_filter_oversubscribe_fail()
-
test_disk_filter_passes()
-
test_filter_num_instances_fails()
-
test_filter_num_instances_passes()
-
test_filter_num_iops_fails()
-
test_filter_num_iops_passes()
-
test_group_anti_affinity_filter_fails()
-
test_group_anti_affinity_filter_passes()
-
test_image_properties_filter_fails_different_inst_props()
-
test_image_properties_filter_fails_partial_inst_props()
-
test_image_properties_filter_fails_without_host_props()
-
test_image_properties_filter_passes_partial_inst_props()
-
test_image_properties_filter_passes_same_inst_props()
-
test_image_properties_filter_passes_without_inst_props()
-
test_isolated_hosts_fails_isolated_on_non_isolated()
-
test_isolated_hosts_fails_non_isolated_on_isolated()
-
test_isolated_hosts_passes_isolated_on_isolated()
-
test_isolated_hosts_passes_non_isolated_on_non_isolated()
-
test_json_filter_basic_operators()
-
test_json_filter_empty_filters_pass()
-
test_json_filter_fails_on_caps_disabled()
-
test_json_filter_fails_on_disk()
-
test_json_filter_fails_on_memory()
-
test_json_filter_fails_on_service_disabled()
-
test_json_filter_happy_day()
-
test_json_filter_invalid_num_arguments_fails()
-
test_json_filter_passes()
-
test_json_filter_passes_with_no_query()
-
test_json_filter_unknown_operator_raises()
-
test_json_filter_unknown_variable_ignored()
-
test_ram_filter_fails_on_memory()
-
test_ram_filter_oversubscribe()
-
test_ram_filter_passes()
-
test_retry_filter_disabled()
-
test_retry_filter_fail()
-
test_retry_filter_pass()
-
test_standard_filters_is_deprecated()
-
test_trusted_filter_default_passes()
-
test_trusted_filter_trusted_and_trusted_passes()
-
test_trusted_filter_trusted_and_untrusted_fails()
-
test_trusted_filter_untrusted_and_trusted_fails()
-
test_trusted_filter_untrusted_and_untrusted_passes()
-
test_trusted_filter_update_cache()
-
test_trusted_filter_update_cache_timezone()
-
test_type_filter()
-
class TestBogusFilter
Bases: object
Class that doesn’t inherit from BaseHostFilter.
-
class TestFilter
Bases: nova.scheduler.filters.BaseHostFilter