summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStanisław Pitucha <stanislaw.pitucha@hp.com>2015-10-16 09:26:19 +1100
committerStanisław Pitucha <stanislaw.pitucha@hp.com>2015-10-16 09:26:19 +1100
commite23a26f10157cd7b5c16a55fc2ce0a459af1db3a (patch)
treef444e9df168189d82f319f418923f9b330a11952
parent41f19fb2950da268855c4b95155e35207d195756 (diff)
downloadpycadf-e23a26f10157cd7b5c16a55fc2ce0a459af1db3a.tar.gz
Add authenticate and evaluate actions
Make constants for authenticate / evaluate actions, as proposed in Anchor audit patch. Change-Id: Ib9fb6f5d4ab92904097c8c2d77a8b70db0a77c36
-rw-r--r--pycadf/cadftaxonomy.py7
1 files 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',