Keystone cannot pass tox -epy27 on an environment which has
installed keystone service because we do not prevent oslo.config
searching all possible directories for configuration file, the
failed test is:
Unit test code should not rely on or be affected by real
environment, this patch mocks the oslo.config find_config_files to
empty as we expected, so it can succeed in every environment.
Reviewed: https:/ /review. openstack. org/309882 /git.openstack. org/cgit/ openstack/ keystone/ commit/ ?id=2183b47af24 adc224a45e5ddfd bca1166a39a059
Committed: https:/
Submitter: Jenkins
Branch: master
commit 2183b47af24adc2 24a45e5ddfdbca1 166a39a059
Author: ZhiQiang Fan <email address hidden>
Date: Tue Apr 26 00:15:09 2016 +0800
do not search file on real environment
Keystone cannot pass tox -epy27 on an environment which has
installed keystone service because we do not prevent oslo.config
searching all possible directories for configuration file, the
failed test is:
keystone. tests.unit. test_cli. CliNoConfigTest Case.test_ cli
Unit test code should not rely on or be affected by real
environment, this patch mocks the oslo.config find_config_files to
empty as we expected, so it can succeed in every environment.
Change-Id: I0e8ade7414dbc9 2ca9334242c1369 e0f51d2eba5
Closes-Bug: #1574493