mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Check for empty/single value parameters before calling callbacks
https://fedorahosted.org/freeipa/ticket/2701
This commit is contained in:
committed by
Martin Kosek
parent
26ab9a504f
commit
ece68f381a
@@ -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'),
|
||||
),
|
||||
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user