The ironic.tests.unit.conductor.test_task_manager Module

Tests for ironic.conductor.task_manager.

class ironic.tests.unit.conductor.test_task_manager.ExclusiveLockDecoratorTestCase(*args, **kwargs)[source]

Bases: ironic.tests.base.TestCase

setUp()[source]
test_with_excl_lock_task_first_arg()[source]
test_with_excl_lock_task_second_arg()[source]
test_with_shared_lock_task_first_arg()[source]
test_with_shared_lock_task_second_arg()[source]
class ironic.tests.unit.conductor.test_task_manager.TaskManagerStateModelTestCases(*args, **kwargs)[source]

Bases: ironic.tests.base.TestCase

setUp()[source]
test_process_event_callback_stable_state()[source]
test_process_event_fsm_raises()[source]
test_process_event_no_callback_stable_state()[source]
test_process_event_sets_callback()[source]
test_process_event_sets_callback_and_error_handler()[source]
test_process_event_sets_target_state()[source]
test_release_clears_resources()[source]
class ironic.tests.unit.conductor.test_task_manager.TaskManagerTestCase(*args, **kwargs)[source]

Bases: ironic.tests.unit.db.base.DbTestCase

setUp()[source]
test_excl_lock(*args, **keywargs)[source]
test_excl_lock_build_driver_exception(*args, **keywargs)[source]
test_excl_lock_exception_then_lock(*args, **keywargs)[source]
test_excl_lock_get_portgroups_exception(*args, **keywargs)[source]
test_excl_lock_get_ports_exception(*args, **keywargs)[source]
test_excl_lock_reserve_exception(*args, **keywargs)[source]
test_excl_lock_with_driver(*args, **keywargs)[source]
test_excl_nested_acquire(*args, **keywargs)[source]
test_init_prepares_fsm(*args, **keywargs)[source]
test_shared_lock(*args, **keywargs)[source]
test_shared_lock_build_driver_exception(*args, **keywargs)[source]
test_shared_lock_get_portgroups_exception(*args, **keywargs)[source]
test_shared_lock_get_ports_exception(*args, **keywargs)[source]
test_shared_lock_node_get_exception(*args, **keywargs)[source]
test_shared_lock_with_driver(*args, **keywargs)[source]
test_spawn_after(*args, **keywargs)[source]
test_spawn_after_exception_while_yielded(*args, **keywargs)[source]
test_spawn_after_on_error_hook(*args, **keywargs)[source]
test_spawn_after_on_error_hook_exception(*args, **keywargs)[source]
test_spawn_after_spawn_fails(*args, **keywargs)[source]
test_upgrade_lock(*args, **keywargs)[source]
test_upgrade_lock_refreshes_fsm(*args, **keywargs)[source]
class ironic.tests.unit.conductor.test_task_manager.ThreadExceptionTestCase(*args, **kwargs)[source]

Bases: ironic.tests.base.TestCase

setUp()[source]
test_set_node_last_error()[source]
test_set_node_last_error_cancelled(*args, **keywargs)[source]
test_set_node_last_error_exists()[source]
test_set_node_last_error_no_error()[source]

Project Source

This Page