tests: don't allow oslo.config to autodiscover config files
oslo.config makes attempts to autodiscover configuration files using
find_config_files() helper. If e.g. /etc/neutron/neutron.conf exists,
and is not readable, the following test failure can be experienced:
oslo_config.cfg.ConfigFilesPermissionDeniedError: Failed to open some
config files: /etc/neutron/neutron.conf
Unit tests must not rely on any external state of the system and run
successfully no matter whether neutron is actually installed on the
system, or not.
Closes-Bug: #1442543
Change-Id: Ic90d8c40b2072fdda152703b84081719936b5f4e
(cherry picked from commit 54fc39308277d4aedc3e399286714d719ecacfbb)
Reviewed: https:/ /review. openstack. org/189324 /git.openstack. org/cgit/ openstack/ neutron/ commit/ ?id=415adbf4a22 72e09fbd809b378 19a21bdedf6861
Committed: https:/
Submitter: Jenkins
Branch: stable/kilo
commit 415adbf4a2272e0 9fbd809b37819a2 1bdedf6861
Author: Ihar Hrachyshka <email address hidden>
Date: Fri Apr 10 11:29:56 2015 +0200
tests: don't allow oslo.config to autodiscover config files
oslo.config makes attempts to autodiscover configuration files using config_ files() helper. If e.g. /etc/neutron/ neutron. conf exists,
find_
and is not readable, the following test failure can be experienced:
oslo_ config. cfg.ConfigFiles PermissionDenie dError: Failed to open some neutron. conf
config files: /etc/neutron/
Unit tests must not rely on any external state of the system and run
successfully no matter whether neutron is actually installed on the
system, or not.
Closes-Bug: #1442543 dda152703b84081 719936b5f4e edc3e399286714d 719ecacfbb)
Change-Id: Ic90d8c40b2072f
(cherry picked from commit 54fc39308277d4a