]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Make pep8 job succeed when /etc/neutron/neutron.conf is not installed
authorIhar Hrachyshka <ihrachys@redhat.com>
Tue, 9 Jun 2015 10:46:54 +0000 (12:46 +0200)
committerIhar Hrachyshka <ihrachys@redhat.com>
Tue, 9 Jun 2015 10:50:35 +0000 (12:50 +0200)
commitd0be7bc57f573d5696108b571c731decfbde9f0b
tree2812d9d84361581afecb70e57cd462ce1c498b6b
parentd0bbfc090bb25f1e05b98f0ad70c18209b87ed6b
Make pep8 job succeed when /etc/neutron/neutron.conf is not installed

Currently, if /etc/neutron/neutron.conf is not installed in the system,
neutron-db-manage fails in oslo.config code when trying to determine the
default configuration file to use.

Test job should not rely on any contents inside /etc/.

Instead, pass --config-file with test-only configuration explicitly into
the utility.

neutron.conf.test was renamed into neutron.conf since for some reason
oslo.config does not support a name that does not have .conf at its
filename end.

Change-Id: I719829fc83a7b20a49c338aaf1dbef916dcc768c
neutron/tests/base.py
neutron/tests/etc/neutron.conf [moved from neutron/tests/etc/neutron.conf.test with 100% similarity]
neutron/tests/unit/agent/dhcp/test_agent.py
neutron/tests/unit/api/test_extensions.py
neutron/tests/unit/db/test_db_base_plugin_v2.py
tox.ini