Merge pull request #311085 from mweinelt/knot-test-xfr

nixos/tests/knot: wait for successful zone transfers
This commit is contained in:
Martin Weinelt 2024-05-12 21:01:40 +02:00 committed by GitHub
commit 6ce8bb794d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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()