vmware-nsx/neutron/tests
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
..
etc Revert "Disable debug messages when running unit tests" 2014-05-07 14:54:35 +02:00
functional Fix H302 violations in unit tests 2014-05-04 12:39:19 +02:00
unit Ensure core plugin deallocation after every test 2014-05-08 23:40:46 -07:00
var Allow combined certificate/key files for SSL 2014-04-13 09:22:23 +00:00
__init__.py Rename Quantum to Neutron 2013-07-06 15:02:43 -04:00
base.py Ensure core plugin deallocation after every test 2014-05-08 23:40:46 -07:00
post_mortem_debug.py Add post-mortem debug option for tests 2013-12-10 03:56:50 +00:00
tools.py Replace mox in unit tests with mock 2013-11-18 22:17:14 +09:00