]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Fix some NVP tests do not do cleanup of nvp ports
authorAaron Rosen <arosen@nicira.com>
Wed, 7 Aug 2013 18:24:01 +0000 (11:24 -0700)
committerAaron Rosen <arosen@nicira.com>
Mon, 12 Aug 2013 22:03:13 +0000 (15:03 -0700)
commit2e7f35c88b0192f553be34f973f35d39927f1746
tree3a3a18e5abec7188f7574bed5aed9c8cae260ad6
parentf3c016d76ae205365e939e320a6e394b61593adb
Fix some NVP tests do not do cleanup of nvp ports

Some of the NVP test do not execute self.addCleanup(self.fc.reset_all)
from setUp() as NiciraPluginV2TestCase is not the first mixin.
This casuses left over ports to still exist between different testcases.
This patch only fixes this issue for TestNiciraPortsV2 and
NiciraPortSecurityTestCaseas, some of the other tests require the setUp()
for the first mixin to be called for their tests to work.

Note: this is why the tests for the Remove DHCP lease logic are failing.

Fixes bug: 1209355

Change-Id: I932471cdb8925353c5825cd70c8217511d6d7938
neutron/tests/unit/nicira/test_nicira_plugin.py