neutron/neutron/tests/unit/plugins/brocade
Cedric Brandily 7eb9d9d316 Support oslo_db 1.12
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
2015-06-24 01:32:44 +02:00
..
__init__.py Reorganize unit test tree 2015-04-06 23:28:31 +00:00
test_brocade_db.py Reorganize unit test tree 2015-04-06 23:28:31 +00:00
test_brocade_plugin.py Reorganize unit test tree 2015-04-06 23:28:31 +00:00
test_brocade_vlan.py Support oslo_db 1.12 2015-06-24 01:32:44 +02:00