diff options
author | Dao Cong Tien <tiendc@vn.fujitsu.com> | 2017-01-04 09:22:30 +0700 |
---|---|---|
committer | Dao Cong Tien <tiendc@vn.fujitsu.com> | 2017-06-29 10:06:20 +0000 |
commit | e7664a161d3a99d5ddd351489910d535bdec3752 (patch) | |
tree | 1d4170148036a90fb23bfd6568e5d157f8997a1a /ironic/tests/unit/drivers/third_party_driver_mocks.py | |
parent | 352120378f471214d51a71db9fbcb7586b9a5457 (diff) | |
download | ironic-e7664a161d3a99d5ddd351489910d535bdec3752.tar.gz |
Adds clean step 'restore_irmc_bios_config' to iRMC drivers
- Adds new boot interface 'irmc-pxe'. Deprecates 'pxe' boot interface
from using with hardware type 'irmc'.
- Adds functions backup_bios_config and restore_bios_config to iRMC
management interface for implementing the BIOS BACKUP/RESTORE
mechanism supporting iRMC S4 hardware. The function backup_bios_config()
will be called automatically before deploying.
- Adds clean step restore_irmc_bios_config to restore BIOS config
for a node during automatic cleaning.
Change-Id: I04aa5bc2f5e287e048d0b52fee123e53ae2eaa99
Partial-Bug: #1639688
Diffstat (limited to 'ironic/tests/unit/drivers/third_party_driver_mocks.py')
-rw-r--r-- | ironic/tests/unit/drivers/third_party_driver_mocks.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ironic/tests/unit/drivers/third_party_driver_mocks.py b/ironic/tests/unit/drivers/third_party_driver_mocks.py index 0cb3ebcbb..31fec78b7 100644 --- a/ironic/tests/unit/drivers/third_party_driver_mocks.py +++ b/ironic/tests/unit/drivers/third_party_driver_mocks.py @@ -164,6 +164,8 @@ if not scciclient: UNMOUNT_CD=mock.sentinel.UNMOUNT_CD, MOUNT_FD=mock.sentinel.MOUNT_FD, UNMOUNT_FD=mock.sentinel.UNMOUNT_FD) + sys.modules['scciclient.irmc.elcm'] = mock.MagicMock( + spec_set=mock_specs.SCCICLIENT_IRMC_ELCM_SPEC) # if anything has loaded the iRMC driver yet, reload it now that the |