about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMartin Weinelt <hexa@darmstadt.ccc.de>2024-05-12 16:40:23 +0200
committergithub-actions[bot] <github-actions[bot]@users.noreply.github.com>2024-05-12 19:22:34 +0000
commit80bcd3c408e040c001e8747d109dad7f79f5033e (patch)
tree3f9021e4c33de6fe59b88ac8c3019fc49136dc2a
parent1ec269e9c36289a5aca9201597e856209cc78959 (diff)
nixos/tests/knot: wait for successful zone transfers
Depending on the startup order of the two machines it might take a few
moments to get both zones transfered, which can lead to SERVFAIL
responses on busy machines.

(cherry picked from commit c1b293ca0c770f3a422402093da5a7b9cc44d2aa)
-rw-r--r--nixos/tests/knot.nix4
1 files changed, 4 insertions, 0 deletions
diff --git a/nixos/tests/knot.nix b/nixos/tests/knot.nix
index 44efd93b6fa95..ae4023191aeee 100644
--- a/nixos/tests/knot.nix
+++ b/nixos/tests/knot.nix
@@ -172,6 +172,10 @@ in {
     primary.wait_for_unit("knot.service")
     secondary.wait_for_unit("knot.service")
 
+    for zone in ("example.com.", "sub.example.com."):
+        secondary.wait_until_succeeds(
+          f"knotc zone-status {zone} | grep -q 'serial: 2019031302'"
+        )
 
     def test(host, query_type, query, pattern):
         out = client.succeed(f"khost -t {query_type} {query} {host}").strip()