neutron-fwaas/neutron/tests/unit/ml2
Maru Newby 6db48dd688 Ensure core plugin deallocation after every test
The unit tests were previously consuming an excessive amount of memory
(4GB+) due to plugin instances persisting in memory.  Deallocation was
not possible where a combination of circular references and mocking
was involved.  This patch ensures that only NeutronManager holds a
plugin reference and that all other references are instances of
weakref.proxy.  Residual memory footprint for tox executed on a
12-core machine has been reduced to ~1.3GB.  Plugin deallocation is
validated at the end of each test to prevent regressions.

This change also includes fixes to unit tests that depended on plugin
instances persisting across tests.

Partial-Bug: #1234857
Change-Id: Ia1f868c2d206eb72ef77d290d054f3c48ab58c94
2014-05-08 23:40:46 -07:00
..
drivers Fix H302 violations in unit tests 2014-05-04 12:39:19 +02:00
__init__.py Rename Quantum to Neutron 2013-07-06 15:02:43 -04:00
_test_mech_agent.py ML2: Remove validate_port_binding() and unbind_port() 2014-03-20 10:03:46 -04:00
test_agent_scheduler.py Adds support for L3 routing/NAT as a service plugin 2013-09-11 12:12:10 +02:00
test_mech_hyperv.py Implement ML2 port binding 2013-09-03 18:05:20 -04:00
test_mech_linuxbridge.py Vxlan / L2population support to Linuxbridge Agent 2013-09-12 02:51:37 +02:00
test_mech_openvswitch.py Implement ML2 port binding 2013-09-03 18:05:20 -04:00
test_mechanism_ncs.py Remove individual cfg.CONF.resets from tests 2014-03-17 12:34:56 -04:00
test_mechanism_odl.py Ensure core plugin deallocation after every test 2014-05-08 23:40:46 -07:00
test_ml2_plugin.py Ensure core plugin deallocation after every test 2014-05-08 23:40:46 -07:00
test_port_binding.py ML2: ODL driver sets port status 2014-04-03 20:50:45 -04:00
test_rpcapi.py change port status only if port is bound to the good host 2013-10-02 15:14:18 +02:00
test_security_group.py Removes calls to mock.patch.stopall in unit tests 2014-03-12 04:17:11 +00:00
test_type_gre.py Fix H302 violations in unit tests 2014-05-04 12:39:19 +02:00
test_type_vxlan.py Fix H302 violations in unit tests 2014-05-04 12:39:19 +02:00