The nova.tests.scheduler.test_scheduler Module

Tests For Scheduler

class SchedulerDriverBaseTestCase(*args, **kwargs)

Bases: nova.tests.scheduler.test_scheduler.SchedulerTestCase

Test cases for base scheduler driver class methods that can’t will fail if the driver is changed

test_unimplemented_schedule_prep_resize()
test_unimplemented_schedule_run_instance()
class SchedulerDriverModuleTestCase(*args, **kwargs)

Bases: nova.test.TestCase

Test case for scheduler driver module methods.

setUp()
test_encode_instance()
class SchedulerManagerTestCase(*args, **kwargs)

Bases: nova.test.TestCase

Test case for scheduler manager.

driver_cls

alias of Scheduler

driver_cls_name = 'nova.scheduler.driver.Scheduler'
manager_cls

alias of SchedulerManager

setUp()
stub_out_client_exceptions()
test_1_correct_init()
test_live_migration_compute_service_notavailable()
test_live_migration_schedule_novalidhost()
test_prep_resize_exception_host_in_error_state_and_raise()
test_prep_resize_no_valid_host_back_in_active_state()
test_run_instance_exception_puts_instance_in_error_state()
test_set_vm_state_and_notify_adds_instance_fault()
test_show_host_resources()
test_update_service_capabilities()
test_update_service_multiple_capabilities()
class SchedulerTestCase(*args, **kwargs)

Bases: nova.test.TestCase

Test case for base scheduler driver class.

driver_cls

alias of Scheduler

setUp()
test_handle_schedule_error_adds_instance_fault()
test_hosts_up()
test_live_migration_all_checks_pass()
test_live_migration_auto_set_dest()
test_live_migration_basic()
test_live_migration_compute_dest_not_alive()
test_live_migration_compute_dest_not_exist()
test_live_migration_compute_src_not_alive()
test_live_migration_compute_src_not_exist()
test_live_migration_dest_check_auto_set_host()
test_live_migration_dest_check_no_image()
test_live_migration_dest_check_service_lack_memory()
test_live_migration_dest_check_service_same_host()
test_live_migration_dest_hypervisor_version_older_raises()
test_live_migration_different_hypervisor_type_raises()
test_live_migration_instance_not_running()
test_update_service_capabilities()

Previous topic

The nova.tests.scheduler.test_rpcapi Module

Next topic

The nova.tests.scheduler.test_scheduler_options Module

This Page