Bases: ironic.tests.base.TestCase
Bases: ironic.tests.base.TestCase
Bases: ironic.tests.unit.db.base.DbTestCase
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 for exception when we can’t get the current power state.
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 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.