The nova.tests.scheduler.test_filter_scheduler Module

Tests For Filter Scheduler.

class FilterSchedulerTestCase(methodName='runTest')

Bases: nova.tests.scheduler.test_scheduler.SchedulerTestCase

Test case for Filter Scheduler.

driver_cls

alias of FilterScheduler

test_add_retry_host()
test_get_cost_functions()
test_invalid_max_attempts()
test_max_attempts()
test_retry_attempt_one()

Test retry logic on initial scheduling attempt

test_retry_attempt_two()

Test retry logic when re-scheduling

test_retry_disabled()

Retry info should not get populated when re-scheduling is off

test_retry_exceeded_max_attempts()

Test for necessary explosion when max retries is exceeded

test_run_instance_no_hosts()

Ensure empty hosts & child_zones result in NoValidHosts exception.

test_run_instance_non_admin()

Test creating an instance locally using run_instance, passing a non-admin context. DB actions should work.

test_schedule_bad_topic()

Parameter checking.

test_schedule_happy_day()

Make sure there’s nothing glaringly wrong with _schedule() by doing a happy day pass through.

test_schedule_prep_resize_doesnt_update_host()
test_scheduler_includes_launch_index()
fake_filter_hosts(hosts, filter_properties)

Previous topic

The nova.tests.scheduler.test_chance_scheduler Module

Next topic

The nova.tests.scheduler.test_host_filters Module

This Page