The ironic.tests.unit.conductor.test_base_manager Module

Test class for Ironic BaseConductorManager.

class ironic.tests.unit.conductor.test_base_manager.CheckInterfacesTestCase(*args, **kwargs)[source]

Bases: ironic.tests.unit.conductor.mgr_utils.ServiceSetUpMixin, ironic.tests.unit.db.base.DbTestCase

test__check_enabled_interfaces_failure()[source]
test__check_enabled_interfaces_skip_if_no_hw_types()[source]
test__check_enabled_interfaces_success()[source]
class ironic.tests.unit.conductor.test_base_manager.KeepAliveTestCase(*args, **kwargs)[source]

Bases: ironic.tests.unit.conductor.mgr_utils.ServiceSetUpMixin, ironic.tests.unit.db.base.DbTestCase

test__conductor_service_record_keepalive()[source]
test__conductor_service_record_keepalive_failed_db_conn()[source]
class ironic.tests.unit.conductor.test_base_manager.ManagerSpawnWorkerTestCase(*args, **kwargs)[source]

Bases: ironic.tests.base.TestCase

setUp()[source]
test__spawn_worker()[source]
test__spawn_worker_none_free()[source]
class ironic.tests.unit.conductor.test_base_manager.RegisterInterfacesTestCase(*args, **kwargs)[source]

Bases: ironic.tests.unit.conductor.mgr_utils.ServiceSetUpMixin, ironic.tests.unit.db.base.DbTestCase

setUp()[source]
test__register_and_validate_hardware_interfaces(*args, **keywargs)[source]
test__register_and_validate_no_valid_default(*args, **keywargs)[source]
class ironic.tests.unit.conductor.test_base_manager.StartConsolesTestCase(*args, **kwargs)[source]

Bases: ironic.tests.unit.conductor.mgr_utils.ServiceSetUpMixin, ironic.tests.unit.db.base.DbTestCase

test__start_consoles(*args, **keywargs)[source]
test__start_consoles_failed(*args, **keywargs)[source]
test__start_consoles_no_console_enabled(*args, **keywargs)[source]
test__start_consoles_node_locked(*args, **keywargs)[source]
test__start_consoles_node_not_found(*args, **keywargs)[source]
class ironic.tests.unit.conductor.test_base_manager.StartStopTestCase(*args, **kwargs)[source]

Bases: ironic.tests.unit.conductor.mgr_utils.ServiceSetUpMixin, ironic.tests.unit.db.base.DbTestCase

test_del_host_waits_on_workerpool(*args, **keywargs)[source]
test_prevent_double_start(*args, **keywargs)[source]
test_start_clears_conductor_locks(*args, **keywargs)[source]
test_start_fails_hw_type_register(*args, **keywargs)[source]
test_start_fails_on_missing_driver(*args, **keywargs)[source]
test_start_fails_on_name_conflict(*args, **keywargs)[source]
test_start_fails_on_no_driver_or_hw_types(*args, **keywargs)[source]
test_start_fails_on_no_enabled_interfaces(*args, **keywargs)[source]
test_start_registers_conductor(*args, **keywargs)[source]
test_start_registers_driver_names(*args, **keywargs)[source]
test_start_registers_driver_specific_tasks(*args, **keywargs)[source]
test_starts_with_only_classic_drivers(*args, **keywargs)[source]
test_starts_with_only_dynamic_drivers(*args, **keywargs)[source]
test_starts_without_enabled_hardware_types(*args, **keywargs)[source]
test_stop_doesnt_unregister_conductor(*args, **keywargs)[source]
test_stop_uninitialized_conductor(*args, **keywargs)[source]
test_stop_unregisters_conductor(*args, **keywargs)[source]
test_warning_on_low_workers_pool(*args, **keywargs)[source]