neutron-dynamic-routing/neutron_dynamic_routing/tests/unit
YAMAMOTO Takashi 7f82a19155 Remove unnecessary mocking of get_admin_context
Because:
- They are not necessary.
- Neutron agent scheduler code (reschedule_resources_from_down_agents)
  seems to (correctly) assume each get_admin_context() call returns
  a fresh context.  This mocking breaks it.
- Right now, Neutron agentdb uses the new engine facade [1] and
  Neutron agent scheduler doesn't. It causes caching issue in our
  unit tests. (See the Related-Bug)  Stopping reusing contexts
  (thus sessions) would prevent the issue.

[1] https://review.openstack.org/#/c/611462/

Related-Bug: #1803745
Change-Id: Ia986f98f8bda9c7cde33af3dfdf2e45a2685fd6d
2018-11-28 19:54:50 +09:00
..
api Use neutron-lib's context module 2017-03-06 15:45:54 -08:00
db Fix unit tests for floating IP creation 2018-02-11 09:29:52 +00:00
services Remove unnecessary mocking of get_admin_context 2018-11-28 19:54:50 +09:00
__init__.py Prepare initial sandbox for neutron-dynamic-routing 2016-04-23 04:11:57 +00:00