nova/nova
Eric Fried c36782a96a hacking: force explicit import of python's mock
Since we dropped support for python 2 [1], we no longer need to use the
mock library, which existed to backport py3 functionality into py2.
Change Ib44b5bff657c8e76c4f701e14d51a4efda3f6d32 cut over to importing
the stock mock, which must be done by saying::

    from unittest import mock

...because if you say::

    import mock

...you will be using the third party mock library instead, which may or
may not be installed.

This commit adds hacking check N371 to enforce the former.

[1] https://review.opendev.org/#/c/687954/

Change-Id: I71439580e80d33cff62aba807df2b35164a47cbe
2022-08-02 15:31:19 +02:00
..
accelerator smartnic support - reject server move and suspend 2021-08-05 15:58:41 +08:00
api api: Drop generating a keypair and add special chars to naming 2022-07-28 11:05:50 +02:00
cmd Remove use of pkg_resources 2022-07-14 15:20:55 +01:00
compute api: Drop generating a keypair and add special chars to naming 2022-07-28 11:05:50 +02:00
conductor Merge "Add a workaround to skip hypervisor version check on LM" 2022-07-27 13:46:29 +00:00
conf Add a workaround to skip hypervisor version check on LM 2022-07-27 12:20:03 +02:00
console Fix typos 2022-05-30 17:40:00 +05:30
db Merge "db: Resolve additional SAWarning warnings" 2022-04-29 05:25:46 +00:00
hacking hacking: force explicit import of python's mock 2022-08-02 15:31:19 +02:00
image Merge "Close Glance image if downloading failed." 2022-01-17 10:31:21 +00:00
keymgr
limit Follow up for unified limits 2022-03-04 03:42:58 +00:00
locale Imported Translations from Zanata 2022-06-22 03:52:44 +00:00
network Merge "Record SRIOV PF MAC in the binding profile" 2022-06-13 17:25:14 +00:00
notifications object/notification for Adds Pick guest CPU architecture based on host 2022-02-24 12:06:55 -05:00
objects ignore deleted server groups in validation 2022-06-21 19:13:55 +01:00
pci Allow claiming PCI PF if child VF is unavailable 2022-05-04 10:57:18 +02:00
policies Allow unshelve to a specific host (REST API part) 2022-07-22 10:22:34 +02:00
privsep Retry lvm volume and volume group query 2021-06-15 12:39:26 +02:00
releasenotes/notes api: enable oslo.reports when using uWSGI 2021-10-14 09:23:08 +03:00
scheduler Remove return from rpc cast 2022-06-18 16:23:26 +05:30
servicegroup Remove six.binary_type/integer_types/string_types 2020-12-13 11:25:14 +00:00
storage Add autopep8 to tox and pre-commit 2021-11-08 12:37:27 +00:00
tests hacking: force explicit import of python's mock 2022-08-02 15:31:19 +02:00
virt Merge "libvirt: Remove unnecessary TODO" 2022-07-19 11:47:39 +00:00
volume Retry attachment delete API call for 504 Gateway Timeout 2022-06-13 17:32:35 +09:00
__init__.py
availability_zones.py Remove six.PY2 and six.PY3 2020-08-15 07:45:23 +00:00
baserpc.py
block_device.py Fix typos 2022-05-30 17:40:00 +05:30
cache_utils.py trivial: Remove unused 'cache_utils' APIs 2020-02-05 17:20:28 +00:00
config.py conf: Allow cinderclient and os_brick to independently log at DEBUG 2021-12-03 18:21:16 +00:00
context.py Log the exception returned from a cell during API.get() 2022-05-03 02:03:26 +00:00
crypto.py Replace md5 for fips 2021-02-25 16:01:43 -05:00
debugger.py trivial: Remove remaining '_LW' instances 2020-05-18 17:00:41 +01:00
exception.py Allow unshelve to a specific host (Compute API part) 2022-07-22 10:22:24 +02:00
exception_wrapper.py rpc: Rework 'get_notifier', 'wrap_exception' 2021-03-01 11:06:48 +00:00
filters.py Add autopep8 to tox and pre-commit 2021-11-08 12:37:27 +00:00
i18n.py trivial: Remove remaining '_LI' instances 2020-05-18 17:00:57 +01:00
loadables.py trivial: Remove dead code 2019-12-12 10:55:02 +00:00
manager.py db: Unify 'nova.db.api', 'nova.db.sqlalchemy.api' 2021-08-09 15:34:40 +01:00
middleware.py Allow X-OpenStack-Nova-API-Version header in CORS 2021-06-15 07:35:36 -04:00
monkey_patch.py reenable greendns in nova. 2022-03-08 16:16:11 +00:00
policy.py Reuse code from oslo lib for JSON policy migration 2021-01-14 22:41:33 +00:00
profiler.py
quota.py Follow up for unified limits 2022-03-04 03:42:58 +00:00
rpc.py rpc: Rework 'get_notifier', 'wrap_exception' 2021-03-01 11:06:48 +00:00
safe_utils.py
service.py Add service version check workaround for FFU 2022-01-24 08:45:58 -08:00
service_auth.py
test.py Remove double mocking 2022-08-02 15:31:15 +02:00
utils.py Fix eventlet.tpool import 2022-02-22 12:40:15 +01:00
version.py Change API unexpected exception message 2021-02-17 21:30:07 +00:00
weights.py Add debug log for scheduler weight calculation 2021-11-11 19:10:32 +01:00
wsgi.py trivial: Remove remaining '_LI' instances 2020-05-18 17:00:57 +01:00