summaryrefslogtreecommitdiff
path: root/ironic/tests/unit/drivers/modules/ibmc
Commit message (Collapse)AuthorAgeFilesLines
* Fix Mock objects as specsRiccardo Pittau2021-12-155-45/+63
| | | | | | | | | | | In Python 3.10 is not possible to use Mock objects as specs for Mock instances anymore. For more info see https://bugs.python.org/issue43478 Change-Id: Ia79ad659098c3e68432214782aeb5b8a9df99eb0 Story: 2009736 Task: 44161
* Use unittest mock instead of 3rd party mock in test_raidRiccardo Pittau2020-07-061-1/+2
| | | | | | | | | | We should use mock from unittest instead of 3rd party mock. Since we don't have mock in requirements anymore this could cause issues like in [1]. [1] https://zuul.opendev.org/t/openstack/build/ff068dc014be42aabde51f95c8c9828e Change-Id: I5a60aa820b60fd29d8ebbd851f3fd215458bab96
* Fix: review from dtantsur of 728123Qianbiao.NG2020-06-171-2/+1
| | | | | | | | This patch aims to fix issues proposed by dtantsur for 728123[1]. [1] https://review.opendev.org/#/c/728123/ Change-Id: I32c3e15aaa2ab0215d50921bdc9ee5c27c1c490c
* Feature: Add raid configuration support for ibmc driverQianbiao.NG2020-06-103-2/+187
| | | | | | | | | This patch proposes to adding raid configuration support for HUAWEI iBMC driver. Story: 2007554 Task: 39406 Signed-off-by: Qianbiao.NG <iampurse@vip.qq.com> Change-Id: Iace17b2d233323f4648d2857ec1b9fb83d42c045
* Change ibmcclient compatible versionRiccardo Pittau2020-05-151-2/+2
| | | | | | And fix a couple of things to adapt to latest release. Change-Id: I1cf2dadcfa66975f7f5020ca97a75ebf7b055d4a
* Switch to unittest mockIury Gregory Melo Ferreira2020-04-305-5/+7
| | | | | | | Python3 have a standard library for mock in the unittest module, let's drop the mock requirement and switch tests to unittest mock. Change-Id: I4f1b3e25c8adbc24cdda51c73da3b66967f7ef23
* Fix the remaining hacking issuesDmitry Tantsur2020-03-311-4/+4
| | | | | | | | | | Fixes W504 and E117, resulting in some indentation changes. Also fixes code that exceeds the complexity requirement, that is bumped to 20 (mostly to avoid refactoring the agent heartbeat call, resulting in conflicts for the deploy steps work). Change-Id: I8e49f2c039b0ddfca9138f8e148708b7e8b5df7e
* Mock out the correct greenthread sleep methodVladyslav Drok2019-11-202-3/+6
| | | | | | | | | | | | | It seems at some point oslo_service loopingcall started using eventletutils from oslo_utils to sleep during the loopingcall retries, and some untittests started taking up to 40 seconds to complete. This change mocks out the correct method offering significant speedup to unittests' run time. The EventletEvent class is introduced to eventletutils in version 3.38.0 so lower constraints are bumped as well. Change-Id: Id7e6ff2a4748b5301e2259acdc760ac7f56b96c3
* Split ibmc power/reboot classesJulia Kreger2019-04-091-36/+37
| | | | | | | | | | | | | | | | We've seen some fun things in the past with the test runner and things like sleep getting mocked in the background resulting in some odd behaviors when multiple tests are iterating and performing calls. Since that is the case, and we've seen the ibmc reboot test case sporatically fail, lets try splitting the reboot testing into its own test class which results in a different runner thread and some minor restructuring to limit variables. Change-Id: I2051995cc7080ba42aedb57816ab8f63154c7f51
* Optimize: HUAWEI iBMC driver utilsQianbiao NG2019-03-181-2/+2
| | | | | | Shorter the validation logic of `ibmc_verify_ca` driver info property. Change-Id: I779bfe1b535bce57ec437ea044fee00c9f9d9a22
* Add Huawei iBMC driver supportQianbiao NG2019-03-146-0/+834
This patch proposes to adding iBMC driver for deploying the Huawei 2288H V5, CH121 V5 series servers. The driver aims to add management and power interfaces using Huawei iBMC RESTful APIs for those series servers. Change-Id: Ic5e920e4e58811c6a6dfe927732595950aea64e7 Story: 2004635 Task: 28566