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.
Reviewed: https:/ /review. openstack. org/172354 /git.openstack. org/cgit/ openstack/ neutron/ commit/ ?id=54fc3930827 7d4aedc3e399286 714d719ecacfbb
Committed: https:/
Submitter: Jenkins
Branch: master
commit 54fc39308277d4a edc3e399286714d 719ecacfbb
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
Change-Id: Ic90d8c40b2072f