neutron/neutron/tests/functional/pecan_wsgi
Kevin Benton 4c40016dfb Init policy in pecan after hook as well
policy.init() is called in the before hook, but this isn't
invoked on GET calls so if the first call a thread receives
is a GET call, we can end up with an uninitialized policy
enforcer and get a traceback.

This just calls policy.init() in the after hook as well.

Change-Id: I29ebc9a91b98a27e707d5b35ad1a24a26e8c8f44
Closes-Bug: #1671267
2017-03-08 14:48:03 -08:00
..
__init__.py Use addCleanup instead of tearDown 2017-02-02 22:07:26 +01:00
config.py Rename 'newapi' to 'pecan_wsgi' 2015-09-02 15:53:34 +00:00
test_controllers.py Spin off context module 2017-03-06 16:25:29 +00:00
test_functional.py Spin off context module 2017-03-06 16:25:29 +00:00
test_hooks.py Init policy in pecan after hook as well 2017-03-08 14:48:03 -08:00
utils.py Use ExtensionDescriptor from neutron-lib 2016-12-02 14:16:06 -05:00