]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
ofa_test_base: Fix NoSuchOptError in UT
authorYAMAMOTO Takashi <yamamoto@valinux.co.jp>
Fri, 14 Nov 2014 03:39:37 +0000 (12:39 +0900)
committerYAMAMOTO Takashi <yamamoto@valinux.co.jp>
Wed, 10 Dec 2014 04:23:37 +0000 (13:23 +0900)
commit5da567f6035a97cd989f1da9f6bafc4c4396bfa2
tree3a1252a01c71bd1ca920f308e7f80e2f1cfd1558
parente55e71524f7431f3947f994e8552aab047e5b0cb
ofa_test_base: Fix NoSuchOptError in UT

Ensure setting up cfg.CONF.
Otherwise, depending on the execution order of tests,
some tests in test_ofa_neutron_agent can fail with
the following exception:

    NoSuchOptError: no such option: config_dir

The problem has been exposed by the recently merged change
for policy module, commit d83731a96d3b47fab1295de1fb53cfe30576619c .

Closes-Bug: #1392569
Change-Id: I0d38df0510b95160c67ea7b76ed413138fa3d770
neutron/tests/base.py
neutron/tests/unit/ofagent/ofa_test_base.py
neutron/tests/unit/test_db_plugin.py