
By having a mock patch on the testcase class it was requiring 40+ functions to have 'mock_sleep' in their argument list. When we are only checking the mock about five times. Instead put it into the setUp() function. Also fix mistakes introduced by previous patches that did not realize that: @mock.patch.object(ipmi, '_make_password_file', _make_password_file_stub) def some_func(self, mock_pass): ... The mock.patch.object() is defining the object completely and thus it (mock_pass) is not actually passed as an argument to the function. When removing the 'mock_sleep' mock I discovered this issue. Change-Id: Iac5dfa8382d04bead745260598d5228c6114b70d
Team and repository tags
Ironic
Ironic consists of an API and plug-ins for managing and provisioning physical machines in a security-aware and fault-tolerant manner. It can be used with nova as a hypervisor driver, or standalone service using bifrost. By default, it will use PXE and IPMI to interact with bare metal machines. Ironic also supports vendor-specific plug-ins which may implement additional functionality.
Ironic is distributed under the terms of the Apache License, Version 2.0. The full terms and conditions of this license are detailed in the LICENSE file.
Project resources
- Documentation: https://docs.openstack.org/ironic/latest
- Source: https://git.openstack.org/cgit/openstack/ironic
- Bugs: https://bugs.launchpad.net/ironic
- Wiki: https://wiki.openstack.org/wiki/Ironic
- APIs: https://developer.openstack.org/api-ref/baremetal/index.html
Project status, bugs, and requests for feature enhancements (RFEs) are tracked on Launchpad: https://launchpad.net/ironic
For information on how to contribute to ironic, see https://docs.openstack.org/ironic/latest/contributor