The nova.tests.scheduler.test_host_filters Module

Tests For Scheduler Host Filters.

class ExtraSpecsOpsTestCase(methodName='runTest')

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(methodName='runTest')

Bases: nova.test.TestCase

Test case for host filters.

setUp()
test_affinity_different_filter_fails()
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_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_type_filter()
test_all_host_filter()
test_availability_zone_filter_different()
test_availability_zone_filter_same()
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_passes()
test_compute_filter_passes_extra_specs_simple()
test_compute_filter_passes_on_no_instance_type()
test_compute_filter_passes_on_volume()
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_get_filter_classes()
test_get_filter_classes_raises_on_invalid_classes()
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 more thoroughly

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 case where retry/re-scheduling is disabled

test_retry_filter_fail()

Host was already tried

test_retry_filter_pass()

Host not previously tried

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_type_filter()
class TestBogusFilter

Bases: object

Class that doesn’t inherit from BaseHostFilter

class TestFilter

Bases: nova.scheduler.filters.BaseHostFilter

stub_out_https_backend(stubs)
Stubs out the httplib.HTTPRequest.getresponse to return

faked-out data instead of grabbing actual contents of a resource

The stubbed getresponse() returns an iterator over the data “I am a teapot, short and stout

param stubs:Set of stubout stubs

Previous topic

The nova.tests.scheduler.test_filter_scheduler Module

Next topic

The nova.tests.scheduler.test_host_manager Module

This Page