From ece68f381a1bcf38d2f9c2d1b7f960438d5e2241 Mon Sep 17 00:00:00 2001 From: Petr Viktorin Date: Thu, 10 May 2012 11:03:41 -0400 Subject: Check for empty/single value parameters before calling callbacks https://fedorahosted.org/freeipa/ticket/2701 --- tests/test_xmlrpc/test_config_plugin.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'tests/test_xmlrpc') diff --git a/tests/test_xmlrpc/test_config_plugin.py b/tests/test_xmlrpc/test_config_plugin.py index fbe38910..da549bfb 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'), + ), + ] -- cgit