]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
UTs: Disable auto deletion of ports/subnets/nets
authorKevin Benton <blak111@gmail.com>
Wed, 25 Jun 2014 06:12:43 +0000 (06:12 +0000)
committerKevin Benton <blak111@gmail.com>
Tue, 9 Sep 2014 14:09:02 +0000 (07:09 -0700)
commit0113250ccc3f1d0280bef849b338bba55977f5ba
tree1a5b2d14b877fa94fad3a74d031cd5701e2138dd
parentaaea5dd1c4f396bbd760fa677ced3518149bd6db
UTs: Disable auto deletion of ports/subnets/nets

Change the behavior of the unit test context managers
for ports, networks, and subnets to skip the deletion
of the objects they create.

Adds explicit delete calls to the tests that require
deletion of the objects.

This is the first patch in a series to eliminate the
automatic deletion of objects created during tests to
improve test performance and make testing more explicit.

Implements: blueprint remove-unit-test-autodeletion
Change-Id: Ifc4490b121310ad64e18936e6fd94a2c9a1e36f2
21 files changed:
neutron/tests/unit/bigswitch/test_restproxy_plugin.py
neutron/tests/unit/bigswitch/test_router_db.py
neutron/tests/unit/bigswitch/test_servermanager.py
neutron/tests/unit/cisco/n1kv/test_n1kv_plugin.py
neutron/tests/unit/cisco/test_network_plugin.py
neutron/tests/unit/db/vpn/test_db_vpnaas.py
neutron/tests/unit/ml2/drivers/cisco/nexus/test_cisco_mech.py
neutron/tests/unit/ml2/drivers/test_l2population.py
neutron/tests/unit/mlnx/test_mlnx_plugin.py
neutron/tests/unit/nec/test_nec_plugin.py
neutron/tests/unit/nec/test_packet_filter.py
neutron/tests/unit/nuage/test_nuage_plugin.py
neutron/tests/unit/openvswitch/test_agent_scheduler.py
neutron/tests/unit/services/loadbalancer/drivers/embrane/test_plugin_driver.py
neutron/tests/unit/services/loadbalancer/drivers/radware/test_plugin_driver.py
neutron/tests/unit/test_db_plugin.py
neutron/tests/unit/test_extension_ext_net.py
neutron/tests/unit/test_extension_extraroute.py
neutron/tests/unit/test_extension_portsecurity.py
neutron/tests/unit/test_l3_plugin.py
neutron/tests/unit/vmware/test_nsx_plugin.py