]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Make DHCP tests cleanup neutron manager reference
authorKevin Benton <blak111@gmail.com>
Wed, 18 Mar 2015 15:14:09 +0000 (08:14 -0700)
committerKevin Benton <blak111@gmail.com>
Wed, 18 Mar 2015 15:57:04 +0000 (08:57 -0700)
commit387f396db83179ce109162022ab23e0c8b59c9bf
tree29210645631da47c74765c5c5223c20e246d88eb
parent906ede185c0ddba4e994f41dacbd96d845de4bde
Make DHCP tests cleanup neutron manager reference

The DHCP scheduler unit tests occasionally call methods
on the core plugin via the neutron manager (e.g. in report_state).
However, they weren't calling the normal unit test cleanup routines
for tests that call the core plugin so they were leaving stale
references in the manager.

This patch uses the setup_coreplugin helper that sets up the
configuration for the core plugin and adds the cleanup call
to ensure that the neutron manager is cleaned up at the end
of each test.

Closes-Bug: #1434278
Change-Id: Ic35629659574121c739574c1ed39364d6977c3ea
neutron/tests/unit/test_dhcp_scheduler.py