The nova.tests.scheduler.test_scheduler Module

Tests For Scheduler

class SchedulerDriverBaseTestCase(methodName='runTest')

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

Bases: nova.test.TestCase

Test case for scheduler driver module methods

setUp()
test_cast_to_compute_host_update_db_with_instance_uuid()
test_cast_to_compute_host_update_db_without_instance_uuid()
test_cast_to_host_compute_topic()
test_cast_to_host_network_topic()
test_cast_to_host_unknown_topic()
test_cast_to_host_volume_topic()
test_cast_to_network_host()
test_cast_to_volume_host_update_db_with_volume_id()
test_cast_to_volume_host_update_db_without_volume_id()
test_encode_instance()
class SchedulerManagerTestCase(methodName='runTest')

Bases: nova.test.TestCase

Test case for scheduler manager

exception AnException

Bases: exceptions.Exception

SchedulerManagerTestCase.driver_cls

alias of Scheduler

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

alias of SchedulerManager

SchedulerManagerTestCase.setUp()
SchedulerManagerTestCase.test_1_correct_init()
SchedulerManagerTestCase.test_prep_resize_exception_host_in_error_state_and_raise()

Test that a NoValidHost exception for prep_resize puts the instance in ACTIVE state

SchedulerManagerTestCase.test_prep_resize_no_valid_host_back_in_active_state()

Test that a NoValidHost exception for prep_resize puts the instance in ACTIVE state

SchedulerManagerTestCase.test_run_instance_exception_puts_instance_in_error_state()

Test that a NoValidHost exception for run_instance puts the instance in ERROR state and eats the exception.

SchedulerManagerTestCase.test_show_host_resources()
SchedulerManagerTestCase.test_update_service_capabilities()
class SchedulerTestCase(methodName='runTest')

Bases: nova.test.TestCase

Test case for base scheduler driver class

driver_cls

alias of Scheduler

setUp()
test_hosts_up()
test_live_migration_all_checks_pass()

Test live migration when all checks pass.

test_live_migration_basic()

Test basic schedule_live_migration functionality

test_live_migration_compute_dest_not_alive()

Raise exception when dest compute node is not alive.

test_live_migration_compute_src_not_alive()

Raise exception when src compute node is not alive.

test_live_migration_compute_src_not_exist()

Raise exception when src compute node is does not exist.

test_live_migration_dest_check_service_lack_memory()

Confirms exception raises when dest doesn’t have enough memory.

test_live_migration_dest_check_service_same_host()

Confirms exception raises in case dest and src is same host.

test_live_migration_dest_hypervisor_version_older_raises()

Confirm live migration to older hypervisor raises

test_live_migration_different_hypervisor_type_raises()

Confirm live_migration to hypervisor of different type raises

test_live_migration_instance_not_running()

The instance given by instance_id is 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