]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Avoid DuplicateOptError in functional tests
authorSergey Belous <sbelous@mirantis.com>
Tue, 13 Oct 2015 14:50:05 +0000 (17:50 +0300)
committerSergey Belous <sbelous@mirantis.com>
Tue, 13 Oct 2015 14:52:18 +0000 (17:52 +0300)
commit5c3f5d035015af72da8b0320964f13d3092ac44c
tree2db46d1c84208711265499e19e16cce363c60dcc
parent8a7391f00f2ebabcdd4abff00dec50fdd70d0f62
Avoid DuplicateOptError in functional tests

Some test require to register options with oslo.Config,
but now some of them use global cfg.CONF for it.
This can cause the DuplicateOptError if two tests tried to
register the same option with different values of config.
We should use the oslo_config fixture [1]
in functional tests to avoid it.

[1] http://git.openstack.org/cgit/openstack/oslo.config/tree/oslo_config/fixture.py

Closes-bug: #1505715
Change-Id: I5c2340c0af054dfa78788cbc61dfb1fd9feea535
neutron/tests/functional/agent/l3/test_keepalived_state_change.py