diff options
author | Rob Crittenden <rcritten@redhat.com> | 2010-08-18 14:04:58 -0400 |
---|---|---|
committer | Rob Crittenden <rcritten@redhat.com> | 2010-08-19 10:51:55 -0400 |
commit | 110d46b79209b74c0081e0baffc90b0cfc9f3ba2 (patch) | |
tree | 79e4a0ff2c095e7edb6123a2bcafae937ab33698 /tests | |
parent | 3e15e6ed6dd0fa6f5606fd77b5104fd067798cde (diff) | |
download | freeipa-110d46b79209b74c0081e0baffc90b0cfc9f3ba2.tar.gz freeipa-110d46b79209b74c0081e0baffc90b0cfc9f3ba2.tar.xz freeipa-110d46b79209b74c0081e0baffc90b0cfc9f3ba2.zip |
Use global time and size limit values when searching.
Add test to verify that limit is honored and truncated flag set.
ticket #48
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_xmlrpc/test_user_plugin.py | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/tests/test_xmlrpc/test_user_plugin.py b/tests/test_xmlrpc/test_user_plugin.py index 4bae4c8df..1cbccbbc4 100644 --- a/tests/test_xmlrpc/test_user_plugin.py +++ b/tests/test_xmlrpc/test_user_plugin.py @@ -209,6 +209,31 @@ class test_user(Declarative): dict( + desc='Search for all users with a limit of 1', + command=( + 'user_find', [], dict(sizelimit=1,), + ), + expected=dict( + result=[ + dict( + dn=u'uid=admin,cn=users,cn=accounts,' + api.env.basedn, + homedirectory=[u'/home/admin'], + loginshell=[u'/bin/bash'], + sn=[u'Administrator'], + uid=[u'admin'], + memberof_group=[u'admins'], + memberof_rolegroup=[u'replicaadmin'], + memberof_taskgroup=[u'managereplica', u'deletereplica'], + ), + ], + summary=u'1 user matched', + count=1, + truncated=True, + ), + ), + + + dict( desc='Lock %r' % user1, command=( 'user_lock', [user1], {} |