From 325415bb66542455212b0613a79f3cc1c19c42a8 Mon Sep 17 00:00:00 2001 From: Florence Blanc-Renaud Date: Wed, 15 Dec 2021 10:51:05 +0100 Subject: [PATCH] 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 --- ipatests/test_xmlrpc/test_config_plugin.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/ipatests/test_xmlrpc/test_config_plugin.py b/ipatests/test_xmlrpc/test_config_plugin.py index e981bb4a0..a8ec9f0e5 100644 --- a/ipatests/test_xmlrpc/test_config_plugin.py +++ b/ipatests/test_xmlrpc/test_config_plugin.py @@ -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(), + ), ]