diff options
author | Martin Basti <mbasti@redhat.com> | 2016-05-19 13:50:38 +0200 |
---|---|---|
committer | Martin Basti <mbasti@redhat.com> | 2016-05-31 14:08:54 +0200 |
commit | 5f42b42bd4557a669ab5cfcf1af6596f1a2535f1 (patch) | |
tree | 1e79933fb82d3166dd6a76be453b29728302a795 /ipatests/test_xmlrpc/test_servicedelegation_plugin.py | |
parent | 91572afc60f590f0d81ad18234189a0b48144bf5 (diff) | |
download | freeipa-5f42b42bd4557a669ab5cfcf1af6596f1a2535f1.tar.gz freeipa-5f42b42bd4557a669ab5cfcf1af6596f1a2535f1.tar.xz freeipa-5f42b42bd4557a669ab5cfcf1af6596f1a2535f1.zip |
Performance: Find commands: do not process members by default
In all *-find commands, member attributes shouldn't be processed due
high amount fo ldpaserches cause serious performance issues. For this
reason --no-members option is set by default in CLI and API.
To get members in *-find command option --all in CLI is rquired or
'no_members=False' or 'all=True' must be set in API call.
For other commands processing of members stays unchanged. WebUI is not
affected by this change.
https://fedorahosted.org/freeipa/ticket/4995
Reviewed-By: Martin Babinsky <mbabinsk@redhat.com>
Diffstat (limited to 'ipatests/test_xmlrpc/test_servicedelegation_plugin.py')
-rw-r--r-- | ipatests/test_xmlrpc/test_servicedelegation_plugin.py | 30 |
1 files changed, 28 insertions, 2 deletions
diff --git a/ipatests/test_xmlrpc/test_servicedelegation_plugin.py b/ipatests/test_xmlrpc/test_servicedelegation_plugin.py index 02dc0800f..bf7897581 100644 --- a/ipatests/test_xmlrpc/test_servicedelegation_plugin.py +++ b/ipatests/test_xmlrpc/test_servicedelegation_plugin.py @@ -134,8 +134,8 @@ class test_servicedelegation(Declarative): dict( - desc='Search for all rules', - command=('servicedelegationrule_find', [], {}), + desc='Search for all rules with members', + command=('servicedelegationrule_find', [], {'no_members': False}), expected=dict( summary=u'3 service delegation rules matched', count=3, @@ -163,6 +163,32 @@ class test_servicedelegation(Declarative): dict( + desc='Search for all rules', + command=('servicedelegationrule_find', [], {}), + expected=dict( + summary=u'3 service delegation rules matched', + count=3, + truncated=False, + result=[ + { + 'dn': get_servicedelegation_dn(u'ipa-http-delegation'), + 'cn': [u'ipa-http-delegation'], + 'memberprincipal': [princ1], + }, + dict( + dn=get_servicedelegation_dn(rule2), + cn=[rule2], + ), + dict( + dn=get_servicedelegation_dn(rule1), + cn=[rule1], + ), + ], + ), + ), + + + dict( desc='Create target %r' % target1, command=( 'servicedelegationtarget_add', [target1], {} |