Tests For Filter Scheduler.
-
class FilterSchedulerTestCase(*args, **kwargs)
Bases: nova.tests.scheduler.test_scheduler.SchedulerTestCase
Test case for Filter Scheduler.
-
driver_cls
alias of FilterScheduler
-
test_add_retry_host()
-
test_basic_schedule_run_instances_anti_affinity()
-
test_invalid_max_attempts()
-
test_live_migration_assert_memory_no_overcommit()
-
test_live_migration_assert_memory_no_overcommit_lack_memory()
-
test_live_migration_assert_memory_overcommit()
-
test_live_migration_assert_memory_overcommit_lack_memory()
-
test_live_migration_dest_check_service_memory_overcommit()
-
test_max_attempts()
-
test_post_select_populate()
-
test_prep_resize_post_populates_retry()
-
test_retry_attempt_one()
-
test_retry_attempt_two()
-
test_retry_disabled()
-
test_retry_exceeded_max_attempts()
-
test_run_instance_no_hosts()
-
test_run_instance_non_admin()
-
test_schedule_chooses_best_host()
If scheduler_host_subset_size is 1, the largest host with greatest
weight should be returned
-
test_schedule_happy_day()
Make sure there’s nothing glaringly wrong with _schedule()
by doing a happy day pass through.
-
test_schedule_host_pool()
Make sure the scheduler_host_subset_size property works properly.
-
test_schedule_large_host_pool()
Hosts should still be chosen if pool size
is larger than number of filtered hosts
-
test_schedule_prep_resize_doesnt_update_host()
-
test_scheduler_includes_launch_index()
-
test_select_hosts_happy_day()
select_hosts is basically a wrapper around the _select() method.
Similar to the _select tests, this just does a happy path test to
ensure there is nothing glaringly wrong.
-
fake_get_filtered_hosts(hosts, filter_properties)
-
fake_get_group_filtered_hosts(hosts, filter_properties)