vmware-nsx/neutron/tests/unit/nec
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 Rename Quantum to Neutron 2013-07-06 15:02:43 -04:00
fake_ofc_manager.py Refactor unit tests for NEC Plugin 2013-07-12 15:40:33 +09:00
stub_ofc_driver.py NEC plugin: PFC packet fitler support 2014-03-04 09:08:29 +09:00
test_agent_scheduler.py Removes calls to mock.patch.stopall in unit tests 2014-03-12 04:17:11 +00:00
test_config.py NEC plugin: Allow to add prefix to OFC REST URL 2014-03-22 04:51:25 +09:00
test_db.py NEC plugin: Rename quantum_id column to neutron_id 2014-03-22 06:30:13 +09:00
test_nec_agent.py Merge "Fix bug:range() is not same in py3.x and py2.x" 2014-03-22 05:22:24 +00:00
test_nec_plugin.py nec plugin: allow to delete resource with ERROR status 2014-03-27 00:34:06 +09:00
test_ofc_client.py NEC plugin: Allow to add prefix to OFC REST URL 2014-03-22 04:51:25 +09:00
test_ofc_manager.py Removes calls to mock.patch.stopall in unit tests 2014-03-12 04:17:11 +00:00
test_packet_filter.py UT: do not hide an original error in test resource ctxtmgr 2014-03-28 05:49:13 +00:00
test_pfc_driver.py Removes calls to mock.patch.stopall in unit tests 2014-03-12 04:17:11 +00:00
test_portbindings.py Merge "Add enable_security_group option" 2014-03-22 02:15:52 +00:00
test_router.py Removes calls to mock.patch.stopall in unit tests 2014-03-12 04:17:11 +00:00
test_security_group.py Removes calls to mock.patch.stopall in unit tests 2014-03-12 04:17:11 +00:00
test_trema_driver.py Merge "Fix bug:range() is not same in py3.x and py2.x" 2014-03-22 05:22:24 +00:00
test_utils.py nec plugin: Compare OFS datapath_id as hex int 2014-02-13 10:37:29 +00:00