The ironic.tests.unit.conductor.test_manager Module

The ironic.tests.unit.conductor.test_manager Module

Test class for Ironic ManagerService.

class ironic.tests.unit.conductor.test_manager.ChangeNodePowerStateTestCase(*args, **kwds)[source]

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

test_change_node_power_state_exception_in_background_task(*args, **keywargs)[source]
test_change_node_power_state_node_already_locked(*args, **keywargs)[source]
test_change_node_power_state_power_on(*args, **keywargs)[source]
test_change_node_power_state_soft_power_off_timeout(*args, **keywargs)[source]
test_change_node_power_state_unsupported_state(*args, **keywargs)[source]
test_change_node_power_state_validate_fail(*args, **keywargs)[source]
test_change_node_power_state_worker_pool_full(*args, **keywargs)[source]
test_node_set_power_state_notif_get_power_fail(*args, **keywargs)[source]
test_node_set_power_state_notif_no_state_change(*args, **keywargs)[source]
test_node_set_power_state_notif_set_power_fail(*args, **keywargs)[source]
test_node_set_power_state_notif_spawn_fail(*args, **keywargs)[source]
test_node_set_power_state_notif_success(*args, **keywargs)[source]
class ironic.tests.unit.conductor.test_manager.ConsoleTestCase(*args, **kwds)[source]

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

test_disable_console_already_disabled(*args, **keywargs)[source]
test_enable_console_already_enabled(*args, **keywargs)[source]
test_get_console(*args, **keywargs)[source]
test_get_console_disabled(*args, **keywargs)[source]
test_get_console_not_supported(*args, **keywargs)[source]
test_get_console_validate_fail(*args, **keywargs)[source]
test_set_console_mode_disabled(*args, **keywargs)[source]
test_set_console_mode_enabled(*args, **keywargs)[source]
test_set_console_mode_not_supported(*args, **keywargs)[source]
test_set_console_mode_start_fail(*args, **keywargs)[source]
test_set_console_mode_stop_fail(*args, **keywargs)[source]
test_set_console_mode_validation_fail(*args, **keywargs)[source]
test_set_console_mode_worker_pool_full(*args, **keywargs)[source]
class ironic.tests.unit.conductor.test_manager.CreateNodeTestCase(*args, **kwds)[source]

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

test_create_node(*args, **keywargs)[source]
test_create_node_validation_fails(*args, **keywargs)[source]
class ironic.tests.unit.conductor.test_manager.CreatePortTestCase(*args, **kwds)[source]

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

test_create_port(*args, **keywargs)[source]
test_create_port_mac_exists(*args, **keywargs)[source]
test_create_port_node_locked(*args, **keywargs)[source]
test_create_port_physnet_validation_failure_conflict(*args, **keywargs)[source]
test_create_port_physnet_validation_failure_inconsistent(*args, **keywargs)[source]
class ironic.tests.unit.conductor.test_manager.DestroyNodeTestCase(*args, **kwds)[source]

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

test_destroy_node(*args, **keywargs)[source]
test_destroy_node_adopt_failed_no_power_change(*args, **keywargs)[source]
test_destroy_node_allowed_in_maintenance(*args, **keywargs)[source]
test_destroy_node_associated(*args, **keywargs)[source]
test_destroy_node_console_disable_fail(*args, **keywargs)[source]
test_destroy_node_console_enabled(*args, **keywargs)[source]
test_destroy_node_invalid_provision_state(*args, **keywargs)[source]
test_destroy_node_power_off(*args, **keywargs)[source]
test_destroy_node_reserved(*args, **keywargs)[source]
class ironic.tests.unit.conductor.test_manager.DestroyPortTestCase(*args, **kwds)[source]

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

test_destroy_port(*args, **keywargs)[source]
test_destroy_port_node_locked(*args, **keywargs)[source]
class ironic.tests.unit.conductor.test_manager.DestroyPortgroupTestCase(*args, **kwds)[source]

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

test_destroy_portgroup(*args, **keywargs)[source]
test_destroy_portgroup_node_locked(*args, **keywargs)[source]
class ironic.tests.unit.conductor.test_manager.DestroyVolumeConnectorTestCase(*args, **kwds)[source]

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

test_destroy_volume_connector(*args, **keywargs)[source]
test_destroy_volume_connector_node_locked(*args, **keywargs)[source]
test_destroy_volume_connector_node_power_on(*args, **keywargs)[source]
class ironic.tests.unit.conductor.test_manager.DestroyVolumeTargetTestCase(*args, **kwds)[source]

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

test_destroy_volume_target(*args, **keywargs)[source]
test_destroy_volume_target_already_destroyed(*args, **keywargs)[source]
test_destroy_volume_target_node_gone(*args, **keywargs)[source]
test_destroy_volume_target_node_locked(*args, **keywargs)[source]
test_destroy_volume_target_node_power_on(*args, **keywargs)[source]
class ironic.tests.unit.conductor.test_manager.DoNodeAdoptionTestCase(*args, **kwds)[source]

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

test__do_adoption_boot_validate_failure(*args, **keywargs)[source]

Test that adoption fails if the boot validation fails

test__do_adoption_take_over_failure(*args, **keywargs)[source]

Test that adoption failed if an exception is raised

test__do_adoption_with_takeover(*args, **keywargs)[source]

Test a successful node adoption

test_do_provisioning_action_adopt_node(*args, **keywargs)[source]

Test an adoption request results in the node in ADOPTING

test_do_provisioning_action_adopt_node_retry(*args, **keywargs)[source]

Test a retried adoption from ADOPTFAIL results in ADOPTING state

test_do_provisioning_action_manage_of_failed_adoption(*args, **keywargs)[source]

Test a node in ADOPTFAIL can be taken to MANAGEABLE

test_heartbeat(*args, **keywargs)[source]

Test heartbeating.

test_heartbeat_agent_version(*args, **keywargs)[source]

Test heartbeating.

test_heartbeat_agent_version_deprecated(*args, **keywargs)[source]

Test heartbeating.

class ironic.tests.unit.conductor.test_manager.DoNodeCleanTestCase(*args, **kwds)[source]

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

setUp()[source]
test__do_next_clean_step_automated_bad_step_return_value(*args, **keywargs)[source]
test__do_next_clean_step_automated_execute_fail(*args, **keywargs)[source]
test__do_next_clean_step_automated_fail_in_tear_down_cleaning(*args, **keywargs)[source]
test__do_next_clean_step_automated_last_step_noop(*args, **keywargs)[source]
test__do_next_clean_step_automated_no_steps(*args, **keywargs)[source]
test__do_next_clean_step_manual_bad_step_return_value(*args, **keywargs)[source]
test__do_next_clean_step_manual_execute_fail(*args, **keywargs)[source]
test__do_next_clean_step_manual_fail_in_tear_down_cleaning(*args, **keywargs)[source]
test__do_next_clean_step_manual_last_step_noop(*args, **keywargs)[source]
test__do_next_clean_step_manual_no_steps(*args, **keywargs)[source]
test__do_node_clean_automated(*args, **keywargs)[source]
test__do_node_clean_automated_disabled(*args, **keywargs)[source]
test__do_node_clean_automated_network_validate_fail(*args, **keywargs)[source]
test__do_node_clean_automated_power_validate_fail(*args, **keywargs)[source]
test__do_node_clean_automated_prepare_clean_fail(*args, **keywargs)[source]
test__do_node_clean_automated_prepare_clean_wait(*args, **keywargs)[source]
test__do_node_clean_automated_steps_fail(*args, **keywargs)[source]
test__do_node_clean_manual(*args, **keywargs)[source]
test__do_node_clean_manual_network_validate_fail(*args, **keywargs)[source]
test__do_node_clean_manual_power_validate_fail(*args, **keywargs)[source]
test__do_node_clean_manual_prepare_clean_fail(*args, **keywargs)[source]
test__do_node_clean_manual_prepare_clean_wait(*args, **keywargs)[source]
test__do_node_clean_manual_steps_fail(*args, **keywargs)[source]
test__get_node_next_clean_steps(*args, **keywargs)[source]
test__get_node_next_clean_steps_no_skip(*args, **keywargs)[source]
test__get_node_next_clean_steps_unset_clean_step(*args, **keywargs)[source]
test_continue_node_clean_automated(*args, **keywargs)[source]
test_continue_node_clean_automated_abort(*args, **keywargs)[source]
test_continue_node_clean_automated_abort_last_clean_step(*args, **keywargs)[source]
test_continue_node_clean_manual(*args, **keywargs)[source]
test_continue_node_clean_manual_abort(*args, **keywargs)[source]
test_continue_node_clean_manual_abort_last_clean_step(*args, **keywargs)[source]
test_continue_node_clean_no_skip_step(*args, **keywargs)[source]
test_continue_node_clean_skip_step(*args, **keywargs)[source]
test_continue_node_clean_worker_pool_full(*args, **keywargs)[source]
test_continue_node_clean_wrong_state(*args, **keywargs)[source]
test_do_next_clean_step_automated_all(*args, **keywargs)[source]
test_do_next_clean_step_automated_first_step_async(*args, **keywargs)[source]
test_do_next_clean_step_continue_from_last_cleaning(*args, **keywargs)[source]
test_do_next_clean_step_manual_all(*args, **keywargs)[source]
test_do_next_clean_step_manual_continue_from_last_cleaning(*args, **keywargs)[source]
test_do_next_clean_step_manual_first_step_async(*args, **keywargs)[source]
test_do_node_clean_invalid_state(*args, **keywargs)[source]
test_do_node_clean_maintenance(*args, **keywargs)[source]
test_do_node_clean_network_validate_fail(*args, **keywargs)[source]
test_do_node_clean_ok(*args, **keywargs)[source]
test_do_node_clean_power_validate_fail(*args, **keywargs)[source]
test_do_node_clean_worker_pool_full(*args, **keywargs)[source]
class ironic.tests.unit.conductor.test_manager.DoNodeDeployTearDownTestCase(*args, **kwds)[source]

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

test__check_cleanwait_timeouts_automated_clean(*args, **keywargs)[source]
test__check_cleanwait_timeouts_manual_clean(*args, **keywargs)[source]
test__check_deploy_timeouts(*args, **keywargs)[source]
test__do_node_clean_abort(*args, **keywargs)[source]
test__do_node_clean_abort_tear_down_fail(*args, **keywargs)[source]
test__do_node_clean_abort_with_step_name(*args, **keywargs)[source]
test__do_node_deploy_configdrive_db_error(*args, **keywargs)[source]
test__do_node_deploy_configdrive_swift_error(*args, **keywargs)[source]
test__do_node_deploy_configdrive_unexpected_error(*args, **keywargs)[source]
test__do_node_deploy_driver_raises_error(*args, **keywargs)[source]
test__do_node_deploy_driver_raises_prepare_error(*args, **keywargs)[source]
test__do_node_deploy_driver_unexpected_exception(*args, **keywargs)[source]
test__do_node_deploy_ok(*args, **keywargs)[source]
test__do_node_deploy_ok_2(*args, **keywargs)[source]
test__do_node_deploy_ok_configdrive(*args, **keywargs)[source]
test__do_node_deploy_unexpected_prepare_error(*args, **keywargs)[source]
test__do_node_tear_down_from_valid_states(*args, **keywargs)[source]
test__do_node_tear_down_ok_with_console(*args, **keywargs)[source]
test__do_node_tear_down_ok_without_console(*args, **keywargs)[source]
test_check_rescuewait_timeouts(*args, **keywargs)[source]
test_do_node_tear_down_console_raises_error(*args, **keywargs)[source]
test_do_node_tear_down_driver_raises_error(*args, **keywargs)[source]
test_do_node_tear_down_invalid_state(*args, **keywargs)[source]
test_do_node_tear_down_validate_fail(*args, **keywargs)[source]
test_do_node_tear_down_worker_pool_full(*args, **keywargs)[source]
test_do_provision_action_abort_automated_clean(*args, **keywargs)[source]
test_do_provision_action_abort_clean_step_not_abortable(*args, **keywargs)[source]
test_do_provision_action_abort_manual_clean(*args, **keywargs)[source]
test_do_provision_action_manage(*args, **keywargs)[source]
test_do_provision_action_provide(*args, **keywargs)[source]
test_do_provisioning_action_worker_pool_full(*args, **keywargs)[source]
class ironic.tests.unit.conductor.test_manager.DoNodeRescueTestCase(*args, **kwds)[source]

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

test__do_node_rescue_abort(*args, **keywargs)[source]
test__do_node_rescue_abort_clean_up_fail(*args, **keywargs)[source]
test__do_node_rescue_bad_state(*args, **keywargs)[source]
test__do_node_rescue_errors(*args, **keywargs)[source]
test__do_node_rescue_returns_rescue(*args, **keywargs)[source]
test__do_node_rescue_returns_rescuewait(*args, **keywargs)[source]
test__do_node_unrescue(*args, **keywargs)[source]
test__do_node_unrescue_bad_state(*args, **keywargs)[source]
test__do_node_unrescue_ironic_error(*args, **keywargs)[source]
test__do_node_unrescue_other_error(*args, **keywargs)[source]
test_do_node_rescue(*args, **keywargs)[source]
test_do_node_rescue_invalid_state()[source]
test_do_node_rescue_maintenance()[source]
test_do_node_rescue_not_supported()[source]
test_do_node_rescue_when_network_validate_fail(*args, **keywargs)[source]
test_do_node_rescue_when_power_validate_fail(*args, **keywargs)[source]
test_do_node_rescue_when_rescue_validate_fail(*args, **keywargs)[source]
test_do_node_unrescue(*args, **keywargs)[source]
test_do_node_unrescue_invalid_state()[source]
test_do_node_unrescue_maintenance()[source]
test_do_node_unrescue_not_supported()[source]
test_do_node_unrescue_validate_fail(*args, **keywargs)[source]
test_provision_rescue_abort(*args, **keywargs)[source]
class ironic.tests.unit.conductor.test_manager.DoNodeTakeOverTestCase(*args, **kwds)[source]

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

test__do_takeover(*args, **keywargs)[source]
test__do_takeover_with_console_enabled(*args, **keywargs)[source]
test__do_takeover_with_console_exception(*args, **keywargs)[source]
class ironic.tests.unit.conductor.test_manager.DoNodeVerifyTestCase(*args, **kwds)[source]

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

test__do_node_verify(*args, **keywargs)[source]
test__do_node_verify_get_state_fails(*args, **keywargs)[source]
test__do_node_verify_validation_fails(*args, **keywargs)[source]
class ironic.tests.unit.conductor.test_manager.ManagerCheckDeployTimeoutsTestCase(*args, **kwds)[source]

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

setUp()[source]
test_acquire_node_disappears(*args, **keywargs)[source]
test_acquire_node_locked(*args, **keywargs)[source]
test_disabled(*args, **keywargs)[source]
test_exiting_no_worker_avail(*args, **keywargs)[source]
test_exiting_with_other_exception(*args, **keywargs)[source]
test_maintenance_after_lock(*args, **keywargs)[source]
test_no_deploywait_after_lock(*args, **keywargs)[source]
test_not_mapped(*args, **keywargs)[source]
test_timeout(*args, **keywargs)[source]
test_worker_limit(*args, **keywargs)[source]
class ironic.tests.unit.conductor.test_manager.ManagerCheckInspectTimeoutsTestCase(*args, **kwds)[source]

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

setUp()[source]
test__check_inspect_timeout(*args, **keywargs)[source]
test__check_inspect_timeouts_acquire_node_disappears(*args, **keywargs)[source]
test__check_inspect_timeouts_acquire_node_locked(*args, **keywargs)[source]
test__check_inspect_timeouts_disabled(*args, **keywargs)[source]
test__check_inspect_timeouts_exit_with_other_exception(*args, **keywargs)[source]
test__check_inspect_timeouts_exiting_no_worker_avail(*args, **keywargs)[source]
test__check_inspect_timeouts_no_acquire_after_lock(*args, **keywargs)[source]
test__check_inspect_timeouts_not_mapped(*args, **keywargs)[source]
test__check_inspect_timeouts_to_maintenance_after_lock(*args, **keywargs)[source]
test__check_inspect_timeouts_worker_limit(*args, **keywargs)[source]
class ironic.tests.unit.conductor.test_manager.ManagerCheckOrphanNodesTestCase(*args, **kwds)[source]

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

setUp()[source]
test__check_orphan_nodes(*args, **keywargs)[source]
test__check_orphan_nodes_alive(*args, **keywargs)[source]
test__check_orphan_nodes_cleaning(*args, **keywargs)[source]
test__check_orphan_nodes_maintenance(*args, **keywargs)[source]
test__check_orphan_nodes_release_exceptions_skipping(*args, **keywargs)[source]
test__check_orphan_nodes_release_node_not_locked(*args, **keywargs)[source]
class ironic.tests.unit.conductor.test_manager.ManagerDoSyncPowerStateTestCase(*args, **kwds)[source]

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

setUp()[source]
test_correct_power_state_on_upgrade_lock(*args, **keywargs)[source]
test_get_power_state_error(*args, **keywargs)[source]
test_get_power_state_fail(*args, **keywargs)[source]
test_maintenance_on_upgrade_lock(*args, **keywargs)[source]
test_max_retries_exceeded(*args, **keywargs)[source]
test_max_retries_exceeded2(*args, **keywargs)[source]
test_max_retries_exceeded_notify(*args, **keywargs)[source]
test_power_state_sync_max_retries_gps_exception(*args, **keywargs)[source]
test_retry_then_success(*args, **keywargs)[source]
test_state_changed_no_sync(*args, **keywargs)[source]
test_state_changed_no_sync_notify(*args, **keywargs)[source]
test_state_changed_sync(*args, **keywargs)[source]
test_state_changed_sync_failed(*args, **keywargs)[source]
test_state_not_set(*args, **keywargs)[source]
test_state_unchanged(*args, **keywargs)[source]
test_validate_fail(*args, **keywargs)[source]
test_wrong_provision_state_on_upgrade_lock(*args, **keywargs)[source]
class ironic.tests.unit.conductor.test_manager.ManagerSyncLocalStateTestCase(*args, **kwds)[source]

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

setUp()[source]
test_already_mapped(*args, **keywargs)[source]
test_good(*args, **keywargs)[source]
test_no_free_worker(*args, **keywargs)[source]
test_node_locked(*args, **keywargs)[source]
test_not_mapped(*args, **keywargs)[source]
test_worker_limit(*args, **keywargs)[source]
class ironic.tests.unit.conductor.test_manager.ManagerSyncPowerStatesTestCase(*args, **kwds)[source]

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

setUp()[source]
test__sync_power_state_multiple_nodes(*args, **keywargs)[source]
test_node_disappears_on_acquire(*args, **keywargs)[source]
test_node_in_deploywait_on_acquire(*args, **keywargs)[source]
test_node_in_enroll_on_acquire(*args, **keywargs)[source]
test_node_in_maintenance_on_acquire(*args, **keywargs)[source]
test_node_in_power_transition_on_acquire(*args, **keywargs)[source]
test_node_locked_on_acquire(*args, **keywargs)[source]
test_node_not_mapped(*args, **keywargs)[source]
test_single_node(*args, **keywargs)[source]
class ironic.tests.unit.conductor.test_manager.ManagerTestHardwareTypeProperties(*args, **kwds)[source]

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

test_hardware_type_properties_manual_management(*args, **keywargs)[source]
class ironic.tests.unit.conductor.test_manager.ManagerTestProperties(*args, **kwds)[source]

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

setUp()[source]
test_driver_properties_agent_ilo(*args, **keywargs)[source]
test_driver_properties_fail(*args, **keywargs)[source]
test_driver_properties_fake(*args, **keywargs)[source]
test_driver_properties_fake_ilo(*args, **keywargs)[source]
test_driver_properties_fake_ipmitool(*args, **keywargs)[source]
test_driver_properties_fake_pxe(*args, **keywargs)[source]
test_driver_properties_fake_snmp(*args, **keywargs)[source]
test_driver_properties_ilo_iscsi(*args, **keywargs)[source]
test_driver_properties_pxe_ipmitool(*args, **keywargs)[source]
test_driver_properties_pxe_snmp(*args, **keywargs)[source]
class ironic.tests.unit.conductor.test_manager.MiscTestCase(*args, **kwds)[source]

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

test__mapped_to_this_conductor(*args, **keywargs)[source]
test_iter_nodes(*args, **keywargs)[source]
test_iter_nodes_shutdown(*args, **keywargs)[source]
test_validate_driver_interfaces(*args, **keywargs)[source]
test_validate_driver_interfaces_validation_fail(*args, **keywargs)[source]
test_validate_driver_interfaces_validation_fail_unexpected(*args, **keywargs)[source]
test_validate_dynamic_driver_interfaces(*args, **keywargs)[source]
class ironic.tests.unit.conductor.test_manager.NodeInspectHardware(*args, **kwds)[source]

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

test__check_inspect_timeouts(*args, **keywargs)[source]
test_inspect_hardware_ok(*args, **keywargs)[source]
test_inspect_hardware_power_validate_fail(*args, **keywargs)[source]
test_inspect_hardware_raises_error(*args, **keywargs)[source]
test_inspect_hardware_return_inspecting(*args, **keywargs)[source]
test_inspect_hardware_return_other_state(*args, **keywargs)[source]
test_inspect_hardware_unexpected_error(*args, **keywargs)[source]
test_inspect_hardware_validate_fail(*args, **keywargs)[source]
test_inspect_hardware_worker_pool_full(*args, **keywargs)[source]
class ironic.tests.unit.conductor.test_manager.NodeTraitsTestCase(*args, **kwds)[source]

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

setUp()[source]
test_add_node_traits(*args, **keywargs)[source]
test_add_node_traits_invalid_parameter_value(*args, **keywargs)[source]
test_add_node_traits_node_locked(*args, **keywargs)[source]
test_add_node_traits_node_not_found(*args, **keywargs)[source]
test_add_node_traits_replace(*args, **keywargs)[source]
test_remove_node_traits(*args, **keywargs)[source]
test_remove_node_traits_all(*args, **keywargs)[source]
test_remove_node_traits_empty(*args, **keywargs)[source]
test_remove_node_traits_node_locked(*args, **keywargs)[source]
test_remove_node_traits_node_not_found(*args, **keywargs)[source]
test_remove_node_traits_node_trait_not_found(*args, **keywargs)[source]
class ironic.tests.unit.conductor.test_manager.RaidHardwareTypeTestCases(*args, **kwds)[source]

Bases: ironic.tests.unit.conductor.test_manager.RaidTestCases

test_get_raid_logical_disk_properties(*args, **keywargs)
test_get_raid_logical_disk_properties_iface_not_supported(*args, **keywargs)[source]
test_set_target_raid_config(*args, **keywargs)
test_set_target_raid_config_empty(*args, **keywargs)
test_set_target_raid_config_iface_not_supported(*args, **keywargs)[source]
test_set_target_raid_config_invalid_parameter_value(*args, **keywargs)
class ironic.tests.unit.conductor.test_manager.RaidTestCases(*args, **kwds)[source]

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

setUp()[source]
test_get_raid_logical_disk_properties(*args, **keywargs)[source]
test_get_raid_logical_disk_properties_iface_not_supported(*args, **keywargs)[source]
test_set_target_raid_config(*args, **keywargs)[source]
test_set_target_raid_config_empty(*args, **keywargs)[source]
test_set_target_raid_config_iface_not_supported(*args, **keywargs)[source]
test_set_target_raid_config_invalid_parameter_value(*args, **keywargs)[source]
class ironic.tests.unit.conductor.test_manager.ServiceDoNodeDeployTestCase(*args, **kwds)[source]

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

test_do_node_deploy_invalid_state(*args, **keywargs)[source]
test_do_node_deploy_maintenance(*args, **keywargs)[source]
test_do_node_deploy_partial_ok(*args, **keywargs)[source]
test_do_node_deploy_power_validate_fail(*args, **keywargs)[source]
test_do_node_deploy_rebuild_active_state(*args, **keywargs)[source]
test_do_node_deploy_rebuild_active_state_done(*args, **keywargs)[source]
test_do_node_deploy_rebuild_active_state_waiting(*args, **keywargs)[source]
test_do_node_deploy_rebuild_deployfail_state(*args, **keywargs)[source]
test_do_node_deploy_rebuild_error_state(*args, **keywargs)[source]
test_do_node_deploy_rebuild_from_available_state(*args, **keywargs)[source]
test_do_node_deploy_validate_fail(*args, **keywargs)[source]
test_do_node_deploy_worker_pool_full(*args, **keywargs)[source]
class ironic.tests.unit.conductor.test_manager.StoreConfigDriveTestCase(*args, **kwds)[source]

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

setUp()[source]
test_store_configdrive(*args, **keywargs)[source]
test_store_configdrive_swift(*args, **keywargs)[source]
class ironic.tests.unit.conductor.test_manager.TestIndirectionApiConductor(*args, **kwds)[source]

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

setUp()[source]
test_object_action()[source]
test_object_action_copies_object()[source]
test_object_action_on_object()[source]
test_object_action_on_raise()[source]
test_object_backport_versions()[source]
test_object_class_action()[source]
test_object_class_action_on_object()[source]
test_object_class_action_on_raise()[source]
class ironic.tests.unit.conductor.test_manager.UpdateNodeTestCase(*args, **kwds)[source]

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

class UpdateInterfaces(old, new)

Bases: tuple

test_associate_node_powered_off(*args, **keywargs)[source]
test_associate_node_powered_on(*args, **keywargs)[source]
test_update_node(*args, **keywargs)[source]
test_update_node_already_associated(*args, **keywargs)[source]
test_update_node_already_locked(*args, **keywargs)[source]
test_update_node_clears_maintenance_reason(*args, **keywargs)[source]
test_update_node_from_invalid_driver(*args, **keywargs)[source]
test_update_node_hardware_type(*args, **keywargs)[source]
test_update_node_interface_in_allowed_state(*args, **keywargs)[source]
test_update_node_interface_in_maintenance(*args, **keywargs)[source]
test_update_node_interface_in_not_allowed_state(*args, **keywargs)[source]
test_update_node_interface_invalid(*args, **keywargs)[source]
test_update_node_invalid_driver(*args, **keywargs)[source]
test_update_resource_class_allowed_state(*args, **keywargs)[source]
test_update_resource_class_no_previous_value(*args, **keywargs)[source]
test_update_resource_class_not_allowed(*args, **keywargs)[source]
class ironic.tests.unit.conductor.test_manager.UpdatePortTestCase(*args, **kwds)[source]

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

test___send_sensor_data(*args, **keywargs)[source]
test___send_sensor_data_disabled(*args, **keywargs)[source]
test___send_sensor_data_multiple_workers(*args, **keywargs)[source]
test__filter_out_unsupported_types_all(*args, **keywargs)[source]
test__filter_out_unsupported_types_non(*args, **keywargs)[source]
test__filter_out_unsupported_types_part(*args, **keywargs)[source]
test_get_boot_device(*args, **keywargs)[source]
test_get_boot_device_node_locked(*args, **keywargs)[source]
test_get_boot_device_not_supported(*args, **keywargs)[source]
test_get_boot_device_validate_fail(*args, **keywargs)[source]
test_get_supported_boot_devices(*args, **keywargs)[source]
test_get_supported_boot_devices_iface_not_supported(*args, **keywargs)[source]
test_inject_nmi(*args, **keywargs)[source]
test_inject_nmi_node_locked(*args, **keywargs)[source]
test_inject_nmi_not_implemented(*args, **keywargs)[source]
test_inject_nmi_not_supported(*args, **keywargs)[source]
test_inject_nmi_validate_invalid_param(*args, **keywargs)[source]
test_inject_nmi_validate_missing_param(*args, **keywargs)[source]
test_send_sensor_task(*args, **keywargs)[source]
test_send_sensor_task_no_management(*args, **keywargs)[source]
test_send_sensor_task_shutdown(*args, **keywargs)[source]
test_set_boot_device(*args, **keywargs)[source]
test_set_boot_device_node_locked(*args, **keywargs)[source]
test_set_boot_device_not_supported(*args, **keywargs)[source]
test_set_boot_device_validate_fail(*args, **keywargs)[source]
test_update_port(*args, **keywargs)[source]
test_update_port_address_active_node(*args, **keywargs)[source]
test_update_port_address_maintenance(*args, **keywargs)[source]
test_update_port_node_active_state_and_maintenance(*args, **keywargs)[source]
test_update_port_node_deleting_state(*args, **keywargs)[source]
test_update_port_node_locked(*args, **keywargs)[source]
test_update_port_node_manageable_state(*args, **keywargs)[source]
test_update_port_physnet_maintenance(*args, **keywargs)[source]
test_update_port_physnet_node_deleting_state(*args, **keywargs)[source]
test_update_port_physnet_validation_failure_conflict(*args, **keywargs)[source]
test_update_port_physnet_validation_failure_inconsistent(*args, **keywargs)[source]
test_update_port_port_changed_failure(*args, **keywargs)[source]
test_update_port_portgroup_active_node(*args, **keywargs)[source]
test_update_port_portgroup_enroll_node(*args, **keywargs)[source]
class ironic.tests.unit.conductor.test_manager.UpdatePortgroupTestCase(*args, **kwds)[source]

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

test_update_portgroup(*args, **keywargs)[source]
test_update_portgroup_association_with_ports(*args, **keywargs)[source]
test_update_portgroup_failure(*args, **keywargs)[source]
test_update_portgroup_node_locked(*args, **keywargs)[source]
test_update_portgroup_to_node_in_active_state_and_maintenance(*args, **keywargs)[source]
test_update_portgroup_to_node_in_deleting_state(*args, **keywargs)[source]
test_update_portgroup_to_node_in_manageable_state(*args, **keywargs)[source]
class ironic.tests.unit.conductor.test_manager.UpdateVolumeConnectorTestCase(*args, **kwds)[source]

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

test_update_volume_connector(*args, **keywargs)[source]
test_update_volume_connector_duplicate(*args, **keywargs)[source]
test_update_volume_connector_node_locked(*args, **keywargs)[source]
test_update_volume_connector_node_power_on(*args, **keywargs)[source]
test_update_volume_connector_type(*args, **keywargs)[source]
test_update_volume_connector_uuid(*args, **keywargs)[source]
class ironic.tests.unit.conductor.test_manager.UpdateVolumeTargetTestCase(*args, **kwds)[source]

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

test_update_volume_target(*args, **keywargs)[source]
test_update_volume_target_duplicate(*args, **keywargs)[source]
test_update_volume_target_node_locked(*args, **keywargs)[source]
test_update_volume_target_node_not_found(*args, **keywargs)[source]
test_update_volume_target_node_power_on(*args, **keywargs)[source]
test_update_volume_target_not_found(*args, **keywargs)[source]
test_update_volume_target_uuid(*args, **keywargs)[source]
test_update_volume_target_volume_type(*args, **keywargs)[source]
class ironic.tests.unit.conductor.test_manager.VendorPassthruTestCase(*args, **kwds)[source]

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

test_driver_vendor_passthru_async(*args, **keywargs)[source]
test_driver_vendor_passthru_driver_not_found(*args, **keywargs)[source]
test_driver_vendor_passthru_http_method_not_supported(*args, **keywargs)[source]
test_driver_vendor_passthru_method_not_supported(*args, **keywargs)[source]
test_driver_vendor_passthru_no_default_interface(*args, **keywargs)[source]
test_driver_vendor_passthru_sync(*args, **keywargs)[source]
test_driver_vendor_passthru_sync_hw_type(*args, **keywargs)[source]
test_driver_vendor_passthru_validation_failed(*args, **keywargs)[source]
test_driver_vendor_passthru_vendor_interface_not_supported(*args, **keywargs)[source]
test_get_driver_vendor_passthru_methods(*args, **keywargs)[source]
test_get_driver_vendor_passthru_methods_hw_type(*args, **keywargs)[source]
test_get_driver_vendor_passthru_methods_no_default_interface(*args, **keywargs)[source]
test_get_driver_vendor_passthru_methods_not_supported(*args, **keywargs)[source]
test_get_node_vendor_passthru_methods(*args, **keywargs)[source]
test_get_node_vendor_passthru_methods_not_supported(*args, **keywargs)[source]
test_vendor_passthru_async(*args, **keywargs)[source]
test_vendor_passthru_async_hw_type(*args, **keywargs)[source]
test_vendor_passthru_http_method_not_supported(*args, **keywargs)[source]
test_vendor_passthru_missing_method_parameters(*args, **keywargs)[source]
test_vendor_passthru_node_already_locked(*args, **keywargs)[source]
test_vendor_passthru_shared_lock(*args, **keywargs)[source]
test_vendor_passthru_sync(*args, **keywargs)[source]
test_vendor_passthru_unsupported_method(*args, **keywargs)[source]
test_vendor_passthru_vendor_interface_not_supported(*args, **keywargs)[source]
test_vendor_passthru_worker_pool_full(*args, **keywargs)[source]
class ironic.tests.unit.conductor.test_manager.VifTestCase(*args, **kwds)[source]

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

setUp()[source]
test_vif_attach(*args, **keywargs)[source]
test_vif_attach_node_locked(*args, **keywargs)[source]
test_vif_attach_raises_network_error(*args, **keywargs)[source]
test_vif_attach_raises_portgroup_physnet_inconsistent(*args, **keywargs)[source]
test_vif_attach_raises_vif_invalid_for_attach(*args, **keywargs)[source]
test_vif_attach_validate_error(*args, **keywargs)[source]
test_vif_detach(*args, **keywargs)[source]
test_vif_detach_node_locked(*args, **keywargs)[source]
test_vif_detach_raises_network_error(*args, **keywargs)[source]
test_vif_detach_validate_error(*args, **keywargs)[source]
test_vif_list(*args, **keywargs)[source]
Creative Commons Attribution 3.0 License

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.