vmware-nsx/neutron/tests/unit/vmware
Akihiro Motoki 0d73de9bc6 UT: do not hide an original error in test resource ctxtmgr
In unit tests, resource contextmanagers such as network(), subnet()
try to delete themselves after returning from yield even if an
exception occurs. However when an exception occurs, there is a case
where deletion fails. In this case original exception will be hidden
and it makes difficult to debug test failures.

Before each test starts, resources like database entries will be
recreated, so there is no need to try to delete resources even
when an exception occurs. This commit removes try-finally clause
from resource contextmanagers to make original errors visible.

Closes-Bug: #1295887
Change-Id: Ia844d2aa2c9fc036e643068c5284f64798963ee3
2014-03-28 05:49:13 +00:00
..
apiclient Finish off rebranding of the Nicira NVP plugin 2014-03-01 18:14:52 -08:00
db Finish off rebranding of the Nicira NVP plugin 2014-03-01 18:14:52 -08:00
etc Rename Neutron core/service plugins for VMware NSX 2014-02-23 19:12:35 -08:00
extensions UT: do not hide an original error in test resource ctxtmgr 2014-03-28 05:49:13 +00:00
nsxlib Merge "NSX: Make replication mode configurable" 2014-03-21 18:52:20 +00:00
vshield UT: do not hide an original error in test resource ctxtmgr 2014-03-28 05:49:13 +00:00
__init__.py Remove nvplib and move utility methods into nsxlib 2014-03-03 06:37:59 -08:00
test_agent_scheduler.py Remove individual cfg.CONF.resets from tests 2014-03-17 12:34:56 -04:00
test_dhcpmeta.py Remove individual cfg.CONF.resets from tests 2014-03-17 12:34:56 -04:00
test_nsx_opts.py NSX: Make replication mode configurable 2014-03-10 16:34:39 -07:00
test_nsx_plugin.py NSX: Fix router-interface-delete returns 404 when router not in nsx 2014-03-17 15:35:06 -07:00
test_nsx_sync.py UT: do not hide an original error in test resource ctxtmgr 2014-03-28 05:49:13 +00:00
test_nsx_utils.py Removes calls to mock.patch.stopall in unit tests 2014-03-12 04:17:11 +00:00