neutron/neutron
Rodolfo Alonso Hernandez c7ef824941 Do not check the context object in ``TestMeteringPlugin``
Since [1], the admin context is not ``Context`` object created
but the new one created in ``ContextBase.elevated``. This method
copies the object itself (creating a new one), adds the "admin"
role (if not present) and returns this new object.

Because this method always returns a new object, it is not possible
to check the ``Context`` object used to make the function call, as
long as the test doesn't store the elevated context used in the call
(apart from the reference stored in the mock object).

[1]https://review.opendev.org/c/openstack/neutron-lib/+/880143

Closes-Bug: #2016144
Change-Id: I5d7eb73606428841caa24ce1e38d1bebd5db0a9b
2023-04-13 17:54:47 +02:00
..
agent Merge "[OVN] OVN agent should register "Chassis_Private" by default" 2023-03-30 10:12:55 +00:00
api Enable rpc notifications only when rpc_workers >= 1 2023-01-09 13:33:37 +05:30
cmd Add full support for OVN NB "Gateway_Chassis" table 2023-03-02 17:35:18 +00:00
common Ensure redirect-type=bridged not used for geneve networks 2023-03-31 23:10:18 +02:00
conf Fix a number of configuration typos 2023-03-22 18:35:43 -04:00
core_extensions Revert "Set system_scope='all' in elevated context" 2021-06-15 10:29:20 +02:00
db Merge "Filter out unsatisfied routers in SQL" 2023-04-12 15:19:18 +00:00
debug Fix some pylint indentation warnings 2022-12-12 11:48:25 -05:00
exceptions Add port-resource-request-groups extension 2021-10-21 14:30:07 +02:00
extensions [API] Add API extension and definition for default SG rules 2023-01-23 11:35:45 +00:00
hacking Fix some pylint indentation warnings 2022-12-12 11:48:25 -05:00
ipam Improve message for subnet gateway out of host IP addresses range 2023-01-30 18:43:24 -03:00
locale Imported Translations from Zanata 2023-01-27 03:53:21 +00:00
notifiers Fix some pylint indentation warnings 2022-12-12 11:48:25 -05:00
objects Merge "Filter out unsatisfied routers in SQL" 2023-04-12 15:19:18 +00:00
pecan_wsgi Fix some pylint indentation warnings 2022-12-12 11:48:25 -05:00
plugins Merge "Fix concurrent port binding activate" 2023-04-05 19:14:56 +00:00
privileged Fix get_link_devices() with index argument 2023-01-26 12:32:38 -05:00
profiling Fix some pylint indentation warnings 2022-12-12 11:48:25 -05:00
quota [sqlalchemy-20] Add missing DB context decorator 2022-12-02 02:38:36 +01:00
scheduler Filter out unsatisfied routers in SQL 2023-03-29 21:25:10 +08:00
server Remove extra call to config_logging() for neutron-server 2023-02-02 02:25:00 +00:00
services [OVN] Bump the port revision number in trunk driver 2023-02-10 16:08:56 +01:00
tests Do not check the context object in ``TestMeteringPlugin`` 2023-04-13 17:54:47 +02:00
__init__.py Remove usage of six.PY2 2020-05-22 12:59:01 -04:00
_i18n.py
auth.py Add fake_project_id middleware for noauth 2021-07-05 21:18:09 +05:30
manager.py Remove usage of six.add_metaclass 2020-05-21 14:41:18 -04:00
neutron_plugin_base_v2.py Remove usage of six.add_metaclass 2020-05-21 14:41:18 -04:00
opts.py Fix missing [designate] options 2022-11-22 12:00:50 +09:00
policy.py Bump oslo.policy to 3.12.0 2022-05-02 12:47:16 +02:00
service.py Re-use existing ProcessLauncher from wsgi in RPC workers 2020-02-07 14:51:06 +01:00
version.py
worker.py
wsgi.py Fix some pylint indentation warnings 2022-07-01 17:52:59 -04:00