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_hostgroup_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_hostgroup_plugin.py')
-rw-r--r-- | ipatests/test_xmlrpc/test_hostgroup_plugin.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ipatests/test_xmlrpc/test_hostgroup_plugin.py b/ipatests/test_xmlrpc/test_hostgroup_plugin.py index 61fda819b..2e93e1013 100644 --- a/ipatests/test_xmlrpc/test_hostgroup_plugin.py +++ b/ipatests/test_xmlrpc/test_hostgroup_plugin.py @@ -116,6 +116,11 @@ class TestHostGroup(XMLRPC_test): hostgroup.ensure_exists() hostgroup.find() + def test_search_for_hostgroup_with_all(self, hostgroup): + """ Search for hostgroup """ + hostgroup.ensure_exists() + hostgroup.find(all=True) + def test_update_hostgroup(self, hostgroup): """ Update description of hostgroup and verify """ hostgroup.ensure_exists() |