neutron/neutron/tests/unit/services
Ihar Hrachyshka a8da782051 Guard against config_dirs not defined on ConfigOpts
Turned out that if the code extracts config_dirs value from ConfigOpts
objects before config files are parsed, then oslo.config will raise
NoSuchOptError exception.

This is not a usual mode of operation for the code, since main()
function of the process using it is expected to parse CLI and config
files before using it, it may nevertheless happen in some test code.

This patch guards against those exceptions, falling back to
/etc/neutron, as we already do when --config-dir is not specified.

Change-Id: I00cf824baa8580b7aa7ec4518a4741e49c998364
Closes-Bug: #1587359
2016-05-31 17:01:53 +02:00
..
auto_allocate Use exceptions from neutron-lib 2016-04-21 21:29:44 -04:00
metering Do not inherit test case classes from regular Neutron classes 2016-05-26 13:06:49 +03:00
qos Refactor QoS plugin to avoid code duplication 2016-05-25 22:56:21 -04:00
trunk Data models for vlan-aware-vms 2016-04-24 19:41:54 -07:00
__init__.py Empty files should not contain copyright or license 2014-10-20 00:50:32 +00:00
test_provider_configuration.py Guard against config_dirs not defined on ConfigOpts 2016-05-31 17:01:53 +02:00