]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Ensures API v2 router does not load plugin twice
authorSalvatore Orlando <salv.orlando@gmail.com>
Thu, 12 Jul 2012 12:14:39 +0000 (05:14 -0700)
committerSalvatore Orlando <salv.orlando@gmail.com>
Sat, 14 Jul 2012 16:52:10 +0000 (09:52 -0700)
commit825c00b96f049f39278d794a0e4968edce8abce6
tree098884ee047812a7f999ee139dbb41da9c033b86
parent627a03766d1eb22ed04f0e208aca9b8e16a0303c
Ensures API v2 router does not load plugin twice

Fixes bug 1020024

The router will simply use the QuantumManager which stores the instance
of the plugin being used by the Quantum server. Changes to unit tests
are for ensuring plugin instances are recycled across tests.

Change-Id: I339a40ee6fef74d938245e9c50c7ed695d866e3b
quantum/api/v2/router.py
quantum/manager.py
quantum/tests/unit/test_api_v2.py
quantum/tests/unit/test_db_plugin.py