summaryrefslogtreecommitdiffstats
path: root/tests/test_xmlrpc/test_delegation_plugin.py
diff options
context:
space:
mode:
authorRob Crittenden <rcritten@redhat.com>2010-12-17 16:57:28 -0500
committerSimo Sorce <ssorce@redhat.com>2010-12-17 18:04:37 -0500
commit34534a026f39e5c5c139d23ab70db72009789e5b (patch)
tree7e64d9a94bd2a6c5ac54e54f46e600b539727212 /tests/test_xmlrpc/test_delegation_plugin.py
parent7035ffe49ca8456a1efc155c9cb22ec01a881ba2 (diff)
downloadfreeipa-34534a026f39e5c5c139d23ab70db72009789e5b.tar.gz
freeipa-34534a026f39e5c5c139d23ab70db72009789e5b.tar.xz
freeipa-34534a026f39e5c5c139d23ab70db72009789e5b.zip
Don't use camel-case LDAP attributes in ACI and don't clear enrolledBy
We keep LDAP attributes lower-case elsewhere in the API we should do the same with all access controls. There were two ACIs pointing at the manage_host_keytab permission. This isn't allowed in general and we have decided separately to not clear out enrolledBy when a host is unenrolled so dropping it is the obvious thing to do. ticket 597
Diffstat (limited to 'tests/test_xmlrpc/test_delegation_plugin.py')
-rw-r--r--tests/test_xmlrpc/test_delegation_plugin.py12
1 files changed, 7 insertions, 5 deletions
diff --git a/tests/test_xmlrpc/test_delegation_plugin.py b/tests/test_xmlrpc/test_delegation_plugin.py
index ded6d4f0c..a4520f430 100644
--- a/tests/test_xmlrpc/test_delegation_plugin.py
+++ b/tests/test_xmlrpc/test_delegation_plugin.py
@@ -69,6 +69,8 @@ class test_delegation(Declarative):
),
+ # Note that we add postalCode but expect postalcode. This tests
+ # the attrs normalizer.
dict(
desc='Create %r' % delegation1,
command=(
@@ -83,7 +85,7 @@ class test_delegation(Declarative):
value=delegation1,
summary=u'Added delegation "%s"' % delegation1,
result=dict(
- attrs=[u'street', u'c', u'l', u'st', u'postalCode'],
+ attrs=[u'street', u'c', u'l', u'st', u'postalcode'],
permissions=[u'write'],
aciname=delegation1,
group=u'editors',
@@ -115,7 +117,7 @@ class test_delegation(Declarative):
value=delegation1,
summary=None,
result={
- 'attrs': [u'street', u'c', u'l', u'st', u'postalCode'],
+ 'attrs': [u'street', u'c', u'l', u'st', u'postalcode'],
'permissions': [u'write'],
'aciname': delegation1,
'group': u'editors',
@@ -135,7 +137,7 @@ class test_delegation(Declarative):
summary=u'1 delegation matched',
result=[
{
- 'attrs': [u'street', u'c', u'l', u'st', u'postalCode'],
+ 'attrs': [u'street', u'c', u'l', u'st', u'postalcode'],
'permissions': [u'write'],
'aciname': delegation1,
'group': u'editors',
@@ -156,7 +158,7 @@ class test_delegation(Declarative):
value=delegation1,
summary=u'Modified delegation "%s"' % delegation1,
result=dict(
- attrs=[u'street', u'c', u'l', u'st', u'postalCode'],
+ attrs=[u'street', u'c', u'l', u'st', u'postalcode'],
permissions=[u'read'],
aciname=delegation1,
group=u'editors',
@@ -174,7 +176,7 @@ class test_delegation(Declarative):
value=delegation1,
summary=None,
result={
- 'attrs': [u'street', u'c', u'l', u'st', u'postalCode'],
+ 'attrs': [u'street', u'c', u'l', u'st', u'postalcode'],
'permissions': [u'read'],
'aciname': delegation1,
'group': u'editors',