bb0ded
From cd735099e86304294217147ed578ac902fcf3dd3 Mon Sep 17 00:00:00 2001
bb0ded
From: Florence Blanc-Renaud <flo@redhat.com>
bb0ded
Date: Wed, 15 Dec 2021 10:51:05 +0100
bb0ded
Subject: [PATCH] config plugin: add a test ensuring EmptyModlist is returned
bb0ded
bb0ded
Add a test to test_config_plugin, that calls ipa config-mod
bb0ded
with the same value as already present in LDAP.
bb0ded
The call must return EmptyModlist.
bb0ded
bb0ded
Related: https://pagure.io/freeipa/issue/9063
bb0ded
Reviewed-By: Rob Crittenden <rcritten@redhat.com>
bb0ded
---
bb0ded
 ipatests/test_xmlrpc/test_config_plugin.py | 9 +++++++++
bb0ded
 1 file changed, 9 insertions(+)
bb0ded
bb0ded
diff --git a/ipatests/test_xmlrpc/test_config_plugin.py b/ipatests/test_xmlrpc/test_config_plugin.py
bb0ded
index e981bb4a03d39de450fc459d4b1ce4b636c19029..a8ec9f0e558d7efa091b50deca9fa7ca59fd7b11 100644
bb0ded
--- a/ipatests/test_xmlrpc/test_config_plugin.py
bb0ded
+++ b/ipatests/test_xmlrpc/test_config_plugin.py
bb0ded
@@ -312,4 +312,13 @@ class test_config(Declarative):
bb0ded
                 'value': None,
bb0ded
             },
bb0ded
         ),
bb0ded
+        dict(
bb0ded
+            desc='Set the value to the already set value, no modifications',
bb0ded
+            command=(
bb0ded
+                'config_mod', [], {
bb0ded
+                    'ipasearchrecordslimit': u'100',
bb0ded
+                },
bb0ded
+            ),
bb0ded
+            expected=errors.EmptyModlist(),
bb0ded
+        ),
bb0ded
     ]
bb0ded
-- 
bb0ded
2.34.1
bb0ded