diff options
author | Jr Aquino <jr.aquino@citrix.com> | 2010-11-02 09:00:40 -0700 |
---|---|---|
committer | Rob Crittenden <rcritten@redhat.com> | 2010-11-03 10:23:40 -0400 |
commit | c99fda0d1e880a444a1b3f92465fdf11539a8154 (patch) | |
tree | 4c6c1a1909dc7e1950997c207992af9e8af997e9 /tests | |
parent | 813dfe501348a671eeb3655cc7406c8e37a3860c (diff) | |
download | freeipa-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')
-rw-r--r-- | tests/test_xmlrpc/test_sudocmd_plugin.py | 18 | ||||
-rw-r--r-- | tests/test_xmlrpc/test_sudocmdgroup_plugin.py | 10 |
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), ), ), |