The ironic.tests.conductor.test_conductor_utils Module

class ironic.tests.conductor.test_conductor_utils.CleanupAfterTimeoutTestCase(*args, **kwargs)[source]

Bases: ironic.tests.base.TestCase

setUp()[source]
test_cleanup_after_timeout()[source]
test_cleanup_after_timeout_cleanup_ironic_exception()[source]
test_cleanup_after_timeout_cleanup_random_exception()[source]
test_cleanup_after_timeout_shared_lock()[source]
class ironic.tests.conductor.test_conductor_utils.NodePowerActionTestCase(*args, **kwargs)[source]

Bases: ironic.tests.db.base.DbTestCase

setUp()[source]
test_node_power_action_already_being_processed()[source]

Test node power action after aborted power action.

The target_power_state is expected to be None so it isn’t checked in the code. This is what happens if it is not None. (Eg, if a conductor had died during a previous power-off attempt and left the target_power_state set to states.POWER_OFF, and the user is attempting to power-off again.)

test_node_power_action_failed_getting_state()[source]

Test for exception when we can’t get the current power state.

test_node_power_action_in_same_state()[source]

Test setting node state to its present state.

Test that we don’t try to set the power state if the requested state is the same as the current state.

test_node_power_action_in_same_state_db_not_in_sync()[source]

Test setting node state to its present state if DB is out of sync.

Under rare conditions (see bug #1403106) database might contain stale information, make sure we fix it.

test_node_power_action_invalid_state()[source]

Test for exception when changing to an invalid power state.

test_node_power_action_power_off()[source]

Test node_power_action to turn node power off.

test_node_power_action_power_on()[source]

Test node_power_action to turn node power on.

test_node_power_action_power_reboot()[source]

Test for reboot a node.

test_node_power_action_set_power_failure()[source]

Test if an exception is thrown when the set_power call fails.

class ironic.tests.conductor.test_conductor_utils.NodeSetBootDeviceTestCase(*args, **kwargs)[source]

Bases: ironic.tests.db.base.DbTestCase

test_node_set_boot_device_non_existent_device()[source]
test_node_set_boot_device_valid()[source]

This Page