]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Plugin aware extensions should also be reset at each test setup
authorYusuke Muraoka <yusuke@nttmcl.com>
Tue, 28 Aug 2012 09:59:42 +0000 (09:59 +0000)
committerYusuke Muraoka <yusuke@nttmcl.com>
Tue, 28 Aug 2012 12:44:50 +0000 (12:44 +0000)
commit19e553e1deeb8939decd1ed9554a3c6eb6770386
tree396686ed9e9ce5a13c4a38db4296e7c99e1e0ec5
parent8fb4e6efe8dcf1987d41917f71da8db345647321
Plugin aware extensions should also be reset at each test setup

PluginAwareExtensionManager caches extension according plugin.
At each db plugin test setup, testing plugin and router are newly
created.
However, the extension manager held the extensions for first time
loaded plugin. Because of their cache.

So if a plugin conditional extension exists, it could not be loaded by
testing order.

Fixes bug 1043381.

Change-Id: Ic994aab61c3d67aa9d422594484049f41ff8b321
quantum/tests/unit/test_db_plugin.py