]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
tests/unit: Initialize core plugin in TestL3GwModeMixin
authorIsaku Yamahata <isaku.yamahata@intel.com>
Tue, 18 Feb 2014 02:02:56 +0000 (11:02 +0900)
committerIsaku Yamahata <isaku.yamahata@intel.com>
Thu, 20 Feb 2014 04:01:28 +0000 (13:01 +0900)
commit9e247277e2d916fa705715e018ef5f3f221f0efa
tree21a66272894b00e3418365d6ef46adf23831b61c
parent7fb2d579ae5d14fdb538b6f7fde6f58b533c82ba
tests/unit: Initialize core plugin in TestL3GwModeMixin

TestL3GwModeMixin can fail randomly because it doesn't initialize
core_plugin and can be run random core plugin depending on execution
order of tests. It also fails with core plugin uninitialized when it
is run without other tests.

This patch refactors the setup code of core plugin and apply it to the
related tests.
This patch reveled the same bug of test_metaplugin.py which is also
fixed by this patch.

Closes-bug: #1273259
Change-Id: I3c1d4d8b3d69262b89c7747daa8267bf2c8e7f6b
15 files changed:
neutron/tests/base.py
neutron/tests/unit/metaplugin/test_metaplugin.py
neutron/tests/unit/nicira/test_networkgw.py
neutron/tests/unit/services/loadbalancer/test_loadbalancer_plugin.py
neutron/tests/unit/services/vpn/test_vpnaas_extension.py
neutron/tests/unit/test_api_v2.py
neutron/tests/unit/test_db_plugin.py
neutron/tests/unit/test_extension_ext_gw_mode.py
neutron/tests/unit/test_extension_extended_attribute.py
neutron/tests/unit/test_extension_firewall.py
neutron/tests/unit/test_extension_pnet.py
neutron/tests/unit/test_neutron_manager.py
neutron/tests/unit/test_quota_ext.py
neutron/tests/unit/test_routerserviceinsertion.py
neutron/tests/unit/test_servicetype.py