diff --git a/ironic_tempest_plugin/tests/api/admin/test_nodes.py b/ironic_tempest_plugin/tests/api/admin/test_nodes.py index d6b262d0..65344666 100644 --- a/ironic_tempest_plugin/tests/api/admin/test_nodes.py +++ b/ironic_tempest_plugin/tests/api/admin/test_nodes.py @@ -915,6 +915,9 @@ class TestNodeProtected(base.BaseBaremetalTest): self.assertRaises(lib_exc.Forbidden, self.client.delete_node, self.node['uuid']) + # undo maintenance because we can't teardown something + # in maintenance. + self.client.update_node(self.node['uuid'], maintenance=False) @decorators.attr(type='negative') @decorators.idempotent_id('1c819f4c-6c1d-4150-ba4a-3b0dcb3c8694')