Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
API CHANGE: ValueError in add/remove key in Root
This is an API change to the exceptions thrown in Root.add_key() and Root.remove_key(). The reason for that change is that in my opinion the correct exceptions in these cases should be "ValueError" instead of "KeyError" as the problems are in the given values - role doesn't exist or key is not used by a particular role. Additionally, document the thrown exceptions in "Root.add_key" and add a test which invokes that exception. Signed-off-by: Martin Vrachev <mvrachev@vmware.com>
- Loading branch information