tests that mock os.path.exists should initialize policy first
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
Fix Released
|
Undecided
|
Ihar Hrachyshka |
Bug Description
Some tests mock os.path.exists. By doing so, they break config file search code located in oslo.config.
=======
ERROR: neutron.
-------
Empty attachments:
pythonlogging:''
pythonlogging
Traceback (most recent call last):
File "neutron/
agent.
File "neutron/
self.
File "neutron/
self.context = context.
File "neutron/
read_
File "neutron/
self.is_advsvc = policy.
File "neutron/
init()
File "neutron/
_ENFORCER.
File "neutron/
self.
File "neutron/
raise cfg.ConfigFiles
ConfigFilesNotF
Solution is to initialize policy at the start of any unit test.
Changed in neutron: | |
assignee: | nobody → Ihar Hrachyshka (ihar-hrachyshka) |
Changed in neutron: | |
milestone: | none → kilo-3 |
status: | Fix Committed → Fix Released |
Changed in neutron: | |
milestone: | kilo-3 → 2015.1.0 |
Fix proposed to branch: master /review. openstack. org/159863
Review: https:/