mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 06:53:01 +00:00
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.
This commit is contained in:
parent
29f0314ded
commit
c1b293ca0c
@ -190,6 +190,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()
|
||||
|
Loading…
Reference in New Issue
Block a user