diff options
author | Pavlo Shchelokovskyy <shchelokovskyy@gmail.com> | 2017-02-09 00:32:40 +0200 |
---|---|---|
committer | Pavlo Shchelokovskyy <shchelokovskyy@gmail.com> | 2017-02-09 08:09:03 +0000 |
commit | 02ce7246ecb20daae3883a45099434caa13a7f08 (patch) | |
tree | f0526adce1623bb361b5e3515e9a932e5b09f6aa /ironic/tests/unit/drivers/third_party_driver_mocks.py | |
parent | d601a11e91e2010cf10f6438147b6a015984d5f2 (diff) | |
download | ironic-02ce7246ecb20daae3883a45099434caa13a7f08.tar.gz |
Remove most unsupported drivers
In accordance with ironic CI policies, this patch removesi some drivers
that are not tested on upstream or third-party CI
and for which maintainers have not communicated any plans
to have such testing.
This includes:
- virtualbox drivers
- seamicro drivers
- msftocs drivers
Change-Id: Ia3a7d798c877f4628946ee6c56d850b9847e6c3e
Closes-Bug: #1663018
Diffstat (limited to 'ironic/tests/unit/drivers/third_party_driver_mocks.py')
-rw-r--r-- | ironic/tests/unit/drivers/third_party_driver_mocks.py | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/ironic/tests/unit/drivers/third_party_driver_mocks.py b/ironic/tests/unit/drivers/third_party_driver_mocks.py index 22aa8e76c..5c1a373e6 100644 --- a/ironic/tests/unit/drivers/third_party_driver_mocks.py +++ b/ironic/tests/unit/drivers/third_party_driver_mocks.py @@ -22,7 +22,6 @@ respective external libraries' actually being present. Any external library required by a third-party driver should be mocked here. Current list of mocked libraries: -- seamicroclient - ipminative - proliantutils - pysnmp @@ -43,24 +42,6 @@ from ironic.tests.unit.drivers import third_party_driver_mock_specs \ as mock_specs -# attempt to load the external 'seamicroclient' library, which is -# required by the optional drivers.modules.seamicro module -seamicroclient = importutils.try_import("seamicroclient") -if not seamicroclient: - smc = mock.MagicMock(spec_set=mock_specs.SEAMICRO_SPEC) - smc.client = mock.MagicMock(spec_set=mock_specs.SEAMICRO_CLIENT_MOD_SPEC) - smc.exceptions = mock.MagicMock(spec_set=mock_specs.SEAMICRO_EXC_SPEC) - smc.exceptions.ClientException = Exception - smc.exceptions.UnsupportedVersion = Exception - sys.modules['seamicroclient'] = smc - sys.modules['seamicroclient.client'] = smc.client - sys.modules['seamicroclient.exceptions'] = smc.exceptions - -# if anything has loaded the seamicro driver yet, reload it now that -# the external library has been mocked -if 'ironic.drivers.modules.seamicro' in sys.modules: - six.moves.reload_module(sys.modules['ironic.drivers.modules.seamicro']) - # IPMITool driver checks the system for presence of 'ipmitool' binary during # __init__. We bypass that check in order to run the unit tests, which do not # depend on 'ipmitool' being on the system. @@ -217,21 +198,6 @@ irmc_boot.check_share_fs_mounted_patcher = mock.patch( irmc_boot.check_share_fs_mounted_patcher.return_value = None -pyremotevbox = importutils.try_import('pyremotevbox') -if not pyremotevbox: - pyremotevbox = mock.MagicMock(spec_set=mock_specs.PYREMOTEVBOX_SPEC) - pyremotevbox.exception = mock.MagicMock( - spec_set=mock_specs.PYREMOTEVBOX_EXC_SPEC) - pyremotevbox.exception.PyRemoteVBoxException = Exception - pyremotevbox.exception.VmInWrongPowerState = Exception - pyremotevbox.vbox = mock.MagicMock( - spec_set=mock_specs.PYREMOTEVBOX_VBOX_SPEC) - sys.modules['pyremotevbox'] = pyremotevbox - if 'ironic.drivers.modules.virtualbox' in sys.modules: - six.moves.reload_module( - sys.modules['ironic.drivers.modules.virtualbox']) - - ironic_inspector_client = importutils.try_import('ironic_inspector_client') if not ironic_inspector_client: ironic_inspector_client = mock.MagicMock( |