7eb9d9d316
oslo_db 1.12[1] decorates oslo_context.context.RequestContext with session management[2][3] and add a read-only attribute 'session'. Such feature breaks Brocade plugin and its unittests because they define on RequestContext the 'session' attribute which now is a read-only property. This change uses neutron.context instead of oslo_context.context in order to delegate session management to the neutron.context and remove read-only attribute set. A follow-up change will refactor neutron.context in order to use oslo_db 1.12 session management instead of homemade one. [1] https://github.com/openstack/oslo.db/releases/tag/1.12.0 [2] https://github.com/openstack/oslo.db/commit/\ fdbd928b1fdf0334e1740e565ab8206fff54eaa6 [3] https://github.com/openstack/oslo.db/blob/\ fdbd928b1fdf0334e1740e565ab8206fff54eaa6/oslo_db/sqlalchemy/\ enginefacade.py#L782 Closes-Bug: #1468128 Change-Id: I0e3331f9a383fa2562706eeadb229f55593b888c |
||
---|---|---|
.. | ||
__init__.py | ||
test_brocade_db.py | ||
test_brocade_plugin.py | ||
test_brocade_vlan.py |