summaryrefslogtreecommitdiffstats
path: root/tests/test_xmlrpc
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_xmlrpc')
-rw-r--r--tests/test_xmlrpc/test_sudocmd_plugin.py18
-rw-r--r--tests/test_xmlrpc/test_sudocmdgroup_plugin.py10
2 files changed, 14 insertions, 14 deletions
diff --git a/tests/test_xmlrpc/test_sudocmd_plugin.py b/tests/test_xmlrpc/test_sudocmd_plugin.py
index 31457c24d..dd70b2411 100644
--- a/tests/test_xmlrpc/test_sudocmd_plugin.py
+++ b/tests/test_xmlrpc/test_sudocmd_plugin.py
@@ -69,9 +69,9 @@ class test_sudocmd(Declarative):
value=sudocmd1,
summary=u'Added sudo command "%s"' % sudocmd1,
result=dict(
- dn=u'cn=%s,cn=sudocmds,cn=accounts,%s' % (sudocmd1,
+ dn=u'sudocmd=%s,cn=sudocmds,cn=accounts,%s' % (sudocmd1,
api.env.basedn),
- cn=[sudocmd1],
+ sudocmd=[sudocmd1],
description=[u'Test sudo command 1'],
objectclass=objectclasses.sudocmd,
ipauniqueid=[fuzzy_uuid],
@@ -98,9 +98,9 @@ class test_sudocmd(Declarative):
value=sudocmd1,
summary=None,
result=dict(
- dn=u'cn=%s,cn=sudocmds,cn=accounts,%s' % (sudocmd1,
+ dn=u'sudocmd=%s,cn=sudocmds,cn=accounts,%s' % (sudocmd1,
api.env.basedn),
- cn=[sudocmd1],
+ sudocmd=[sudocmd1],
description=[u'Test sudo command 1'],
),
),
@@ -116,9 +116,9 @@ class test_sudocmd(Declarative):
summary=u'1 sudo command matched',
result=[
dict(
- dn=u'cn=%s,cn=sudocmds,cn=accounts,%s' % (sudocmd1,
+ dn=u'sudocmd=%s,cn=sudocmds,cn=accounts,%s' % (sudocmd1,
api.env.basedn),
- cn=[sudocmd1],
+ sudocmd=[sudocmd1],
description=[u'Test sudo command 1'],
),
],
@@ -134,7 +134,7 @@ class test_sudocmd(Declarative):
value=sudocmd1,
summary=u'Modified sudo command "%s"' % sudocmd1,
result=dict(
- cn=[sudocmd1],
+ sudocmd=[sudocmd1],
description=[u'Updated sudo command 1'],
),
),
@@ -148,9 +148,9 @@ class test_sudocmd(Declarative):
value=sudocmd1,
summary=None,
result=dict(
- dn=u'cn=%s,cn=sudocmds,cn=accounts,%s' % (sudocmd1,
+ dn=u'sudocmd=%s,cn=sudocmds,cn=accounts,%s' % (sudocmd1,
api.env.basedn),
- cn=[sudocmd1],
+ sudocmd=[sudocmd1],
description=[u'Updated sudo command 1'],
),
),
diff --git a/tests/test_xmlrpc/test_sudocmdgroup_plugin.py b/tests/test_xmlrpc/test_sudocmdgroup_plugin.py
index ec2164c49..a6b4ab2a2 100644
--- a/tests/test_xmlrpc/test_sudocmdgroup_plugin.py
+++ b/tests/test_xmlrpc/test_sudocmdgroup_plugin.py
@@ -42,16 +42,16 @@ class test_sudocmdgroup(Declarative):
dict(
desc='Create %r' % sudocmd1,
command=(
- 'sudocmd_add', [], dict(cn=sudocmd1,)
+ 'sudocmd_add', [], dict(sudocmd=sudocmd1,)
),
expected=dict(
value=sudocmd1,
summary=u'Added sudo command "%s"' % sudocmd1,
result=dict(
objectclass=objectclasses.sudocmd,
- cn=[u'/usr/bin/sudotestcmd1'],
+ sudocmd=[u'/usr/bin/sudotestcmd1'],
ipauniqueid=[fuzzy_uuid],
- dn=u'cn=%s,cn=sudocmds,cn=accounts,%s' % (sudocmd1,
+ dn=u'sudocmd=%s,cn=sudocmds,cn=accounts,%s' % (sudocmd1,
api.env.basedn),
),
),
@@ -65,8 +65,8 @@ class test_sudocmdgroup(Declarative):
value=sudocmd1,
summary=None,
result=dict(
- cn=[sudocmd1],
- dn=u'cn=%s,cn=sudocmds,cn=accounts,%s' % (sudocmd1,
+ sudocmd=[sudocmd1],
+ dn=u'sudocmd=%s,cn=sudocmds,cn=accounts,%s' % (sudocmd1,
api.env.basedn),
),
),