]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Remove auto deletion of routers in unit tests
authorKevin Benton <blak111@gmail.com>
Sat, 21 Mar 2015 01:56:51 +0000 (18:56 -0700)
committerKevin Benton <blak111@gmail.com>
Sat, 28 Mar 2015 02:03:07 +0000 (19:03 -0700)
commitfe210a6ae25a1b143ed97ef9ac366e16a18d9393
treecfce82de60ff6d9515c9b36c21dab6d84be30a83
parent5616315abc39753d95cdd635067fe8a1c31dd45c
Remove auto deletion of routers in unit tests

Remove the automatic deletion behavior of the router
context manager in the L3 unit tests. Any tests that
depend on the router being deleted should do so
explicitly.

It additionally removes the logic from the test_l3_plugin
unit tests that was just related to tearing down enough
stuff to allow the context managers to exit. It was code
that distracted from what the tests were actaully verifying.

All of the context managers for port, network, and subnet
do not auto delete by default and that will be extended to
the L3 constructs as well. The patch that did this for
ports/subnets/networks is here:
https://review.openstack.org/#/c/102465/

Change-Id: Iec97198f18e9fc390ff0747b795f7f309c8f3990
neutron/tests/unit/openvswitch/test_agent_scheduler.py
neutron/tests/unit/test_l3_plugin.py