Commit 8f18b3b909 for bind
commit 8f18b3b909dcab071c9b99554340b2c7d6c14278
Author: Nicki Křížek <nicki@isc.org>
Date: Wed Nov 11 12:43:57 2026 +0000
Parametrize the nsprocessinglimit test cases
The checks of a configured max-delegation-servers differed only in the
limit, and so did the checks of an out-of-range one.
Assisted-by: Claude:claude-mythos-5-2
diff --git a/bin/tests/system/nsprocessinglimit/tests_nsprocessinglimit.py b/bin/tests/system/nsprocessinglimit/tests_nsprocessinglimit.py
index fcfd36a6a3..3a34b05c6f 100644
--- a/bin/tests/system/nsprocessinglimit/tests_nsprocessinglimit.py
+++ b/bin/tests/system/nsprocessinglimit/tests_nsprocessinglimit.py
@@ -11,6 +11,8 @@
import os
+import pytest
+
import isctest
import isctest.mark
@@ -96,26 +98,12 @@ def reconfig_maxdelegationservers_failure(ns, templates, count):
@isctest.mark.with_querytrace
-def test_nsprocessinglimit_13ns(ns4, templates):
- reconfig_maxdelegationservers(ns4, templates, 13)
- check_nsprocessinglimit(ns4, "limit13", 13)
-
-
-@isctest.mark.with_querytrace
-def test_nsprocessinglimit_5ns(ns4, templates):
- reconfig_maxdelegationservers(ns4, templates, 5)
- check_nsprocessinglimit(ns4, "limit5", 5)
-
-
-@isctest.mark.with_querytrace
-def test_nsprocessinglimit_20ns(ns4, templates):
- reconfig_maxdelegationservers(ns4, templates, 20)
- check_nsprocessinglimit(ns4, "limit20", 20)
-
-
-def test_nsprocessinglimit_lower(ns4, templates):
- reconfig_maxdelegationservers_failure(ns4, templates, 0)
+@pytest.mark.parametrize("count", [13, 5, 20])
+def test_nsprocessinglimit_configured(ns4, templates, count):
+ reconfig_maxdelegationservers(ns4, templates, count)
+ check_nsprocessinglimit(ns4, f"limit{count}", count)
-def test_nsprocessinglimit_upper(ns4, templates):
- reconfig_maxdelegationservers_failure(ns4, templates, 101)
+@pytest.mark.parametrize("count", [0, 101])
+def test_nsprocessinglimit_out_of_range(ns4, templates, count):
+ reconfig_maxdelegationservers_failure(ns4, templates, count)