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