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