a99c7c
From 465f1669a6c5abc72da1ecaf9aefa8488f80806c Mon Sep 17 00:00:00 2001
a99c7c
From: Anuja More <amore@redhat.com>
a99c7c
Date: Mon, 13 Dec 2021 17:37:05 +0530
a99c7c
Subject: [PATCH] ipatests: Test default value of nsslapd-sizelimit.
a99c7c
a99c7c
related : https://pagure.io/freeipa/issue/8962
a99c7c
a99c7c
Signed-off-by: Anuja More <amore@redhat.com>
a99c7c
Reviewed-By: Florence Blanc-Renaud <flo@redhat.com>
a99c7c
---
a99c7c
 ipatests/test_integration/test_installation.py | 13 +++++++++++++
a99c7c
 1 file changed, 13 insertions(+)
a99c7c
a99c7c
diff --git a/ipatests/test_integration/test_installation.py b/ipatests/test_integration/test_installation.py
a99c7c
index 95cfaad54c33a581c6af352097ea95ed435ea2b1..0947241ae2738419c4855e2517670c9033e634f0 100644
a99c7c
--- a/ipatests/test_integration/test_installation.py
a99c7c
+++ b/ipatests/test_integration/test_installation.py
a99c7c
@@ -1067,6 +1067,19 @@ class TestInstallMaster(IntegrationTest):
a99c7c
         )
a99c7c
         assert "nsslapd-db-locks" not in result.stdout_text
a99c7c
 
a99c7c
+    def test_nsslapd_sizelimit(self):
a99c7c
+        """ Test for default value of nsslapd-sizelimit.
a99c7c
+
a99c7c
+        Related : https://pagure.io/freeipa/issue/8962
a99c7c
+        """
a99c7c
+        result = tasks.ldapsearch_dm(
a99c7c
+            self.master,
a99c7c
+            "cn=config",
a99c7c
+            ["nsslapd-sizelimit"],
a99c7c
+            scope="base"
a99c7c
+        )
a99c7c
+        assert "nsslapd-sizelimit: 100000" in result.stdout_text
a99c7c
+
a99c7c
     def test_admin_root_alias_CVE_2020_10747(self):
a99c7c
         # Test for CVE-2020-10747 fix
a99c7c
         # https://bugzilla.redhat.com/show_bug.cgi?id=1810160
a99c7c
-- 
a99c7c
2.34.1
a99c7c