This is needed to avoid test cases breaking policy file search code from
oslo.config by mocking out stdlib functions from os module like
os.path.isdir or os.path.exists.
This also allows us to remove explicit policy setup from test_api_v2 and
test_policy files.
Note that for test_netns_cleanup, test_ovs_cleanup, and test_config, we
removed test_setup_conf test cases. They test a function that is used in
other test cases only, and hence do not belong to the suite. This allows
us to avoid hacks around those test cases that do not play nice with
global config-file options we set in BaseTestCase.
Reviewed: https:/ /review. openstack. org/159863 /git.openstack. org/cgit/ openstack/ neutron/ commit/ ?id=1349891fce5 28365e5d1abce95 d019ce40275234
Committed: https:/
Submitter: Jenkins
Branch: master
commit 1349891fce52836 5e5d1abce95d019 ce40275234
Author: Ihar Hrachyshka <email address hidden>
Date: Fri Feb 27 15:19:47 2015 +0100
tests: initialize policy in BaseTestCase
This is needed to avoid test cases breaking policy file search code from
oslo.config by mocking out stdlib functions from os module like
os.path.isdir or os.path.exists.
This also allows us to remove explicit policy setup from test_api_v2 and
test_policy files.
Note that for test_netns_cleanup, test_ovs_cleanup, and test_config, we
removed test_setup_conf test cases. They test a function that is used in
other test cases only, and hence do not belong to the suite. This allows
us to avoid hacks around those test cases that do not play nice with
global config-file options we set in BaseTestCase.
Change-Id: If14a3c74183719 3ad104467f0cf44 86a6a386e6d
Closes-Bug: #1426369