neutron/neutron/tests/functional/objects
Slawek Kaplonski 9db653a974 [Functional] Fix tests for oslo.db>=12.1.0
oslo.db 12.1.0 uncovered some issues in functional
tests, Fix:-
- test__get_dvr_subnet_ids_on_host_query by adding a db reader
  context as without it _get_dvr_subnet_ids_on_host_query method was
  returning a query object with an active db context and other
  db transactions can't be executed with an active context.
- test_get_total_reservations_map by adding a db reader context
  for get_total_reservations_map call
- _TestIsSessionActive by calling neutron.objects.network as it looks
  for active session and since now autocommit is False for active
  session we need to have _connections[1] in transaction object.

[1] https://review.opendev.org/c/openstack/neutron/+/843256

Co-authored-by: Yatin Karel <ykarel@redhat.com>

Closes-bug: #1989057
Change-Id: Ic0b91f03b4eea817fa130e28236d7e007b481e30
2022-09-08 17:48:28 +00:00
..
plugins Randomize segmentation ID assignation 2021-03-24 13:56:09 +00:00
__init__.py Test SQL cast in "get_total_reservations_map" 2021-03-18 09:47:58 +00:00
test_quota.py [Functional] Fix tests for oslo.db>=12.1.0 2022-09-08 17:48:28 +00:00