]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Extenuate register_dhcp_agent code duplication in tests
authorAssaf Muller <amuller@redhat.com>
Fri, 1 May 2015 17:29:26 +0000 (13:29 -0400)
committerAssaf Muller <amuller@redhat.com>
Fri, 8 May 2015 19:26:28 +0000 (15:26 -0400)
commit801dedebbfc7ff4ae6421c793a1154ca0d169e6c
treef7436659f172691ed40b47b08c43e97d2fbf72b6
parent8c7bc3536b38350cffcc2932b576f4ace1e7b91c
Extenuate register_dhcp_agent code duplication in tests

Non-obvious changes:
* Change helpers.register_agent to use a slimmed down version
  of a plugin that knows how to register an agent. This allows
  the helper to be used with tests that do not register a core
  plugin.

Change-Id: Iefb1af676af6a984b01cdc1e9050541dffb5951a
neutron/tests/common/helpers.py
neutron/tests/functional/scheduler/test_dhcp_agent_scheduler.py
neutron/tests/unit/extensions/test_agent.py
neutron/tests/unit/plugins/openvswitch/test_agent_scheduler.py
neutron/tests/unit/scheduler/test_dhcp_agent_scheduler.py