From e23a26f10157cd7b5c16a55fc2ce0a459af1db3a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stanis=C5=82aw=20Pitucha?= Date: Fri, 16 Oct 2015 09:26:19 +1100 Subject: [PATCH] Add authenticate and evaluate actions Make constants for authenticate / evaluate actions, as proposed in Anchor audit patch. Change-Id: Ib9fb6f5d4ab92904097c8c2d77a8b70db0a77c36 --- pycadf/cadftaxonomy.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pycadf/cadftaxonomy.py b/pycadf/cadftaxonomy.py index f663fea..1cebdb3 100644 --- a/pycadf/cadftaxonomy.py +++ b/pycadf/cadftaxonomy.py @@ -23,6 +23,9 @@ ACTION_CREATE = 'create' ACTION_READ = 'read' ACTION_UPDATE = 'update' ACTION_DELETE = 'delete' +# Other CADF actions +ACTION_AUTHENTICATE = 'authenticate' +ACTION_EVALUATE = 'evaluate' # OpenStack specific, Profile or change CADF spec. to add this action ACTION_LIST = 'read/list' @@ -45,12 +48,12 @@ ACTION_TAXONOMY = frozenset([ 'disable', 'send', 'receive', - 'authenticate', + ACTION_AUTHENTICATE, 'authenticate/login', 'revoke', 'renew', 'restore', - 'evaluate', + ACTION_EVALUATE, 'allow', 'deny', 'notify',