armada/armada/tests/unit
Felipe Monteiro e573cf1ad5 fix: Use superior oslo.policy authorize over enforce
`oslo.policy` supports both enforce and authorize. authorize is
stricter because it'll raise an exception if the policy action is
not found in the list of registered rules. This means that attempting
to enforce anything not found in ``armada.common.policies`` will error
out with a 'Policy not registered' message and 403 status code.

This problem manifests itself through such cases: [0]

Please reference the oslo.policy docs on authorize [1] and
enforce [2] to better understand the discrepancy between the
two.

[0] https://review.openstack.org/#/c/610117/1
[1] feac3dcbfe/oslo_policy/policy.py (L960)
[2] feac3dcbfe/oslo_policy/policy.py (L792)

Change-Id: I5b0a28a2b5fb4dff150f13a56013a7a9b694c756
2018-10-15 20:24:51 +01:00
..
api fix: Fix controller enforcing a nonexistent policy 2018-10-12 18:07:12 +01:00
cli testing-utils-lib 2017-06-28 12:47:26 -05:00
common fix: Use superior oslo.policy authorize over enforce 2018-10-15 20:24:51 +01:00
handlers Add chart API to wait on k8s resource types/labels 2018-10-05 16:48:32 -05:00
resources Fix for get manifest 2018-09-14 15:27:03 +00:00
utils Manage temp dirs from git clone. 2018-06-25 19:08:18 -05:00
__init__.py Implement wait for timeout feature and unit test 2017-06-22 16:02:25 -05:00
base.py [test] Increase armada.handlers.armada test coverage 2018-06-11 10:15:28 -04:00
fake_policy.py Adding yapf config, plus formatted code. 2018-06-22 14:56:04 -05:00
fixtures.py chore(docstring): Fix up improper sphinx syntax in docstrings 2018-06-22 21:35:29 +00:00