api unittest failed with policy config in '/etc/nova/policy.d'
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Low
|
Alex Xu |
Bug Description
After v2.1 policy separated into policy.d. The unittest will failed. Because fake policy fixture will load policy config from real '/etc/nova/
{7} nova.tests.
Captured traceback:
~~~~~~~~~~~~~~~~~~~
Traceback (most recent call last):
File "nova/tests/
res_dict = self.controller
File "nova/api/
return f(*args, **kwargs)
File "nova/api/
return function(*args, **kwargs)
File "nova/api/
File "nova/api/
File "nova/policy.py", line 104, in enforce
{'action': action, 'credentials': credentials})
File "/opt/stack/
File "nova/policy.py", line 98, in enforce
File "nova/openstack
raise exc(*args, **kwargs)
nova.
{5} nova.tests.
{7} nova.tests.
Captured traceback:
~~~~~~~~~~~~~~~~~~~
Traceback (most recent call last):
File "nova/tests/
res_dict = self.controller
File "nova/api/
return f(*args, **kwargs)
File "nova/api/
return function(*args, **kwargs)
File "nova/api/
File "nova/api/
File "nova/policy.py", line 104, in enforce
{'action': action, 'credentials': credentials})
File "/opt/stack/
File "nova/policy.py", line 98, in enforce
File "nova/openstack
raise exc(*args, **kwargs)
nova.
Changed in nova: | |
assignee: | nobody → Alex Xu (xuhj) |
Changed in nova: | |
importance: | Undecided → Low |
Changed in nova: | |
milestone: | none → kilo-rc1 |
status: | Fix Committed → Fix Released |
Changed in nova: | |
milestone: | kilo-rc1 → 2015.1.0 |
Fix proposed to branch: master /review. openstack. org/166811
Review: https:/