summaryrefslogtreecommitdiffstats
path: root/tests/test_xmlrpc/test_sudocmdgroup_plugin.py
diff options
context:
space:
mode:
authorJr Aquino <jr.aquino@citrix.com>2010-11-02 09:00:40 -0700
committerRob Crittenden <rcritten@redhat.com>2010-11-03 10:23:40 -0400
commitc99fda0d1e880a444a1b3f92465fdf11539a8154 (patch)
tree4c6c1a1909dc7e1950997c207992af9e8af997e9 /tests/test_xmlrpc/test_sudocmdgroup_plugin.py
parent813dfe501348a671eeb3655cc7406c8e37a3860c (diff)
downloadfreeipa-c99fda0d1e880a444a1b3f92465fdf11539a8154.tar.gz
freeipa-c99fda0d1e880a444a1b3f92465fdf11539a8154.tar.xz
freeipa-c99fda0d1e880a444a1b3f92465fdf11539a8154.zip
Added fixes to adjust for sudocmd attribute for sudocmds. Added fix for sudorule to allow for cmdCategory all Added fixes for xmlrpc tests to reflect sudocmd changes.
Diffstat (limited to 'tests/test_xmlrpc/test_sudocmdgroup_plugin.py')
-rw-r--r--tests/test_xmlrpc/test_sudocmdgroup_plugin.py10
1 files changed, 5 insertions, 5 deletions
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),
),
),