vmware-nsx/neutron/tests/unit/vmware/vshield
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
..
__init__.py Finish off rebranding of the Nicira NVP plugin 2014-03-01 18:14:52 -08:00
fake_vcns.py Fix duplicate name of NVP LBaaS objs not allowed on vShield Edge 2014-03-20 14:26:24 +08:00
test_edge_router.py NSX: fix intermetting UT failure on vshield test_router_create 2014-03-14 08:07:53 -07:00
test_firewall_driver.py Finish off rebranding of the Nicira NVP plugin 2014-03-01 18:14:52 -08:00
test_fwaas_plugin.py Fix NVP FWaaS errors when creating firewall without policy 2014-03-03 08:31:44 +08:00
test_lbaas_plugin.py Fix duplicate name of NVP LBaaS objs not allowed on vShield Edge 2014-03-20 14:26:24 +08:00
test_loadbalancer_driver.py Fix duplicate name of NVP LBaaS objs not allowed on vShield Edge 2014-03-20 14:26:24 +08:00
test_vcns_driver.py Finish off rebranding of the Nicira NVP plugin 2014-03-01 18:14:52 -08:00
test_vpnaas_plugin.py UT: do not hide an original error in test resource ctxtmgr 2014-03-28 05:49:13 +00:00