The nova.tests.scheduler.test_host_filters Module

Tests For Scheduler Host Filters.

class ExtraSpecsOpsTestCase(*args, **kwargs)

Bases: nova.test.TestCase

test_extra_specs_fails_simple()
test_extra_specs_fails_simple2()
test_extra_specs_fails_simple3()
test_extra_specs_fails_with_bogus_ops()
test_extra_specs_fails_with_op_eq()
test_extra_specs_fails_with_op_eq3()
test_extra_specs_fails_with_op_ge()
test_extra_specs_fails_with_op_in()
test_extra_specs_fails_with_op_in2()
test_extra_specs_fails_with_op_le()
test_extra_specs_fails_with_op_or()
test_extra_specs_fails_with_op_or2()
test_extra_specs_fails_with_op_seq()
test_extra_specs_fails_with_op_sg()
test_extra_specs_fails_with_op_sge()
test_extra_specs_fails_with_op_sl()
test_extra_specs_fails_with_op_sle()
test_extra_specs_fails_with_op_sneq()
test_extra_specs_matches_simple()
test_extra_specs_matches_with_op_eq()
test_extra_specs_matches_with_op_eq2()
test_extra_specs_matches_with_op_ge()
test_extra_specs_matches_with_op_in()
test_extra_specs_matches_with_op_in2()
test_extra_specs_matches_with_op_in3()
test_extra_specs_matches_with_op_le()
test_extra_specs_matches_with_op_or()
test_extra_specs_matches_with_op_or2()
test_extra_specs_matches_with_op_seq()
test_extra_specs_matches_with_op_sneq()
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_filter_fails_extra_specs_deleted_host()
test_aggregate_filter_fails_extra_specs_simple()
test_aggregate_filter_passes_extra_specs_simple()
test_aggregate_filter_passes_no_extra_specs()
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_extra_specs_pass_multi_level_with_scope()
test_compute_filter_extra_specs_simple_with_wrong_scope()
test_compute_filter_fails_extra_specs_simple()
test_compute_filter_fails_on_capability_disabled()
test_compute_filter_fails_on_service_disabled()
test_compute_filter_fails_on_service_down()
test_compute_filter_pass_extra_specs_simple_with_scope()
test_compute_filter_passes()
test_compute_filter_passes_extra_specs_simple()
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

Previous topic

The nova.tests.scheduler.test_filter_scheduler Module

Next topic

The nova.tests.scheduler.test_host_manager Module

This Page