patrole/patrole_tempest_plugin
Felipe Monteiro 0464e81c98 requirements authority: Use better exception/return code
This patch set makes some minor modifications to the requirements
authority module:

* return {} instead of None in RequirementsParser.parse since
  its return type is dict
* raise RbacParsingException if an invalid rule is passed to
  RequirementsAuthority.allowed since KeyError is a builtin type
  and is not specific enough
* change the exception message raise for the above case -- "API"
  is not the right word; the word should be "rule name" as that
  is what is being keyed into the roles_dict

Change-Id: Ia4408c0745d2b5ddb1c73c1eb9a6316ae0c1f646
2018-11-14 01:16:00 +00:00
..
hacking refactor: Rename PluginRbacTest => ExtRbacTest 2018-11-07 04:13:25 +00:00
tests requirements authority: Use better exception/return code 2018-11-14 01:16:00 +00:00
__init__.py Initial Cookiecutter commit 2017-01-04 15:11:34 -05:00
config.py Multi role RBAC validation 2018-10-31 20:45:13 +00:00
plugin.py feature flag: Policy feature enabled config group 2018-05-19 16:24:33 +01:00
policy_authority.py Multi role RBAC validation 2018-10-31 20:45:13 +00:00
rbac_authority.py Move RbacAuthority class into separate module 2018-05-31 19:07:15 -04:00
rbac_exceptions.py refactor: Break up RbacMalformedException into discrete exceptions 2018-11-07 16:23:51 -05:00
rbac_rule_validation.py refactor: Break up RbacMalformedException into discrete exceptions 2018-11-07 16:23:51 -05:00
rbac_utils.py Multi role RBAC validation 2018-10-31 20:45:13 +00:00
requirements_authority.py requirements authority: Use better exception/return code 2018-11-14 01:16:00 +00:00
version.py Add a page for release 0.1.0 to release notes 2017-06-02 18:44:56 +00:00