summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorPetr Viktorin <pviktori@redhat.com>2012-05-10 11:03:41 -0400
committerMartin Kosek <mkosek@redhat.com>2012-05-15 10:02:26 +0200
commitece68f381a1bcf38d2f9c2d1b7f960438d5e2241 (patch)
treec776ec94026a3bc33f9ca58d81cebabf553205b3 /tests
parent26ab9a504f504f59cfd3af929dbeac2ddc201ed3 (diff)
downloadfreeipa-ece68f381a1bcf38d2f9c2d1b7f960438d5e2241.tar.gz
freeipa-ece68f381a1bcf38d2f9c2d1b7f960438d5e2241.tar.xz
freeipa-ece68f381a1bcf38d2f9c2d1b7f960438d5e2241.zip
Check for empty/single value parameters before calling callbacks
https://fedorahosted.org/freeipa/ticket/2701
Diffstat (limited to 'tests')
-rw-r--r--tests/test_xmlrpc/test_config_plugin.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/test_xmlrpc/test_config_plugin.py b/tests/test_xmlrpc/test_config_plugin.py
index fbe389106..da549bfb3 100644
--- a/tests/test_xmlrpc/test_config_plugin.py
+++ b/tests/test_xmlrpc/test_config_plugin.py
@@ -21,6 +21,7 @@
Test the `ipalib/plugins/config.py` module.
"""
+from ipalib import errors
from xmlrpc_test import Declarative, fuzzy_digits, fuzzy_uuid
class test_config(Declarative):
@@ -52,4 +53,11 @@ class test_config(Declarative):
),
),
+ dict(
+ desc='Try to remove ipausersearchfields',
+ command=('config_mod', [],
+ dict(delattr=u'ipausersearchfields=uid,givenname,sn,telephonenumber,ou,title')),
+ expected=errors.RequirementError(name='ipausersearchfields'),
+ ),
+
]