summaryrefslogtreecommitdiff
path: root/ironic/tests/unit/conductor
diff options
context:
space:
mode:
authorDmitry Tantsur <dtantsur@protonmail.com>2020-09-14 16:01:36 +0200
committerDmitry Tantsur <dtantsur@protonmail.com>2020-09-14 16:09:54 +0200
commitbc04a42a96672f70e9327e805586b48c825bb5a0 (patch)
tree56d5a261c00e3ac3a218a0ace8274a47ef5b2f78 /ironic/tests/unit/conductor
parent72baa1da581e42042e488abbdb293e5f9f26b9a2 (diff)
downloadironic-bc04a42a96672f70e9327e805586b48c825bb5a0.tar.gz
Also wipe agent token on manual power off or reboot
We have a check in the code that is never true for manual power actions because of what happens in the conductor manager. Remove it. Change-Id: I50b7b78a41188c41e4944894851f1d12684f824a
Diffstat (limited to 'ironic/tests/unit/conductor')
-rw-r--r--ironic/tests/unit/conductor/test_utils.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/ironic/tests/unit/conductor/test_utils.py b/ironic/tests/unit/conductor/test_utils.py
index 776a07217..b956bffd5 100644
--- a/ironic/tests/unit/conductor/test_utils.py
+++ b/ironic/tests/unit/conductor/test_utils.py
@@ -386,6 +386,7 @@ class NodePowerActionTestCase(db_base.DbTestCase):
self.assertEqual(states.POWER_OFF, node['power_state'])
self.assertEqual(states.NOSTATE, node['target_power_state'])
self.assertIsNone(node['last_error'])
+ self.assertNotIn('agent_secret_token', node['driver_internal_info'])
@mock.patch.object(conductor_utils, 'LOG', autospec=True)
@mock.patch.object(fake.FakePower, 'set_power_state', autospec=True)