neutron/neutron
Brian Haley 7594bb0627 Remove the dependency on the "mock" package
Now that we are python3 only, we should move to using the built
in version of mock that supports all of our testing needs and
remove the dependency on the "mock" package.

This patch moves all references to "import mock" to
"from unittest import mock". It also cleans up some new line
inconsistency.

Fixed an inconsistency in the OVSBridge.deferred() definition
as it needs to also have an *args argument.

Fixed an issue where an l3-agent test was mocking
functools.partial, causing a python3.8 failure.

Unit tests only, removing from tests/base.py affects
functional tests which need additional work.

Change-Id: I40e8a8410840c3774c72ae1a8054574445d66ece
2020-04-28 18:05:37 -04:00
..
agent Remove the dependency on the "mock" package 2020-04-28 18:05:37 -04:00
api [Security] fix allowed-address-pair 0.0.0.0/0 issue 2020-03-21 17:54:34 +08:00
cmd Refactor OVN client QoS extension 2020-04-10 13:11:00 +00:00
common [OVN] External ports: Account for VNIC_DIRECT_PHYSICAL / VNIC_MACVTAP 2020-04-21 15:32:05 +01:00
conf Merge "[OVN] Add IGMP snooping support" 2020-03-09 15:29:33 +00:00
core_extensions Add "qos_network_policy_id" to port definition 2020-01-17 17:57:11 +00:00
db Merge "Lock subnets during port creation and subnet deletion" 2020-04-24 10:35:40 +00:00
debug Fix neutron debug probe to use integration_bridge 2020-03-31 11:17:47 +00:00
extensions Merge "Allow sharing of subnet pools via RBAC mechanism" 2020-04-12 17:20:24 +00:00
hacking Allow usage of assert_called_once method in unit tests 2020-03-02 14:17:26 +02:00
ipam IPv6 accepts first address only for routers 2020-01-12 20:39:07 +00:00
locale Imported Translations from Zanata 2020-04-25 08:15:28 +00:00
notifiers Use openstacksdk for ironic notifiers 2019-09-19 06:56:24 +00:00
objects Merge "Remove redundant implementation of "get_projects" in NetworkRBAC" 2020-04-25 19:48:53 +00:00
pecan_wsgi Set DB retry for quota_enforcement pecan_wsgi hook 2019-11-08 15:34:17 +04:00
plugins Merge "Remove some native openflow driver 'deferred' code" 2020-04-28 03:23:13 +00:00
privileged Replace ctype.CDLL by ctypes.PyDLL in linux.ip_lib 2020-04-02 13:59:29 +00:00
profiling Add profiler decorator to Neutron 2019-10-31 10:05:01 -05:00
quota Set DB retry for quota_enforcement pecan_wsgi hook 2019-11-08 15:34:17 +04:00
scheduler [OVN] Import OVN Client, L3 and QoS related code 2019-12-14 19:17:40 +00:00
server Re-use existing ProcessLauncher from wsgi in RPC workers 2020-02-07 14:51:06 +01:00
services Merge "Improve port retrieval when validating auto address" 2020-04-20 17:46:44 +00:00
tests Remove the dependency on the "mock" package 2020-04-28 18:05:37 -04:00
__init__.py Fix incorrect usage of '# flake8: noqa' 2018-10-29 15:27:50 -04:00
_i18n.py Make code follow log translation guideline 2017-08-14 02:01:48 +00:00
auth.py Use oslo.context class method to construct context object 2017-03-23 09:02:46 +00:00
manager.py Support L3 agent cleanup on shutdown 2019-12-16 17:01:31 -05:00
neutron_plugin_base_v2.py Do not load default service plugins if core plugin is not DB based 2017-11-09 20:34:52 +00:00
opts.py Fix duplicate ID warning during doc build 2020-02-04 12:13:14 -05:00
policy.py List SG rules which belongs to tenant's SG 2019-11-27 15:45:09 +01:00
service.py Re-use existing ProcessLauncher from wsgi in RPC workers 2020-02-07 14:51:06 +01:00
version.py
worker.py Change process name of neutron-server to match worker role 2019-03-01 14:18:09 -05:00
wsgi.py Re-use existing ProcessLauncher from wsgi in RPC workers 2020-02-07 14:51:06 +01:00