config plugin: add a test ensuring EmptyModlist is returned

Add a test to test_config_plugin, that calls ipa config-mod
with the same value as already present in LDAP.
The call must return EmptyModlist.

Related: https://pagure.io/freeipa/issue/9063
Reviewed-By: Rob Crittenden <rcritten@redhat.com>
This commit is contained in:
Florence Blanc-Renaud authored and Rob Crittenden committed 2022-01-13 14:20:59 -05:00
1 parent 327e023203
commit 325415bb66
1 file changed
+9
@@ -312,4 +312,13 @@ class test_config(Declarative):
'value': None,
},
),
dict(
desc='Set the value to the already set value, no modifications',
command=(
'config_mod', [], {
'ipasearchrecordslimit': u'100',
},
),
expected=errors.EmptyModlist(),
),
]