2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-30 22:15:20 +00:00

Wait for "all zones loaded" after rndc reload in "database" test

After the rndc reload command finished, we might have queried the
database zone sooner than it was reloaded because rndc reloads zones
asynchronously if no specific zone was provided. We should wait for "all
zones loaded" in the ns1 log to be sure.
This commit is contained in:
Michal Nowak
2024-12-05 11:58:12 +01:00
parent 2bce06e170
commit 0bdd03db66

View File

@@ -28,7 +28,9 @@ def test_database(servers, templates):
)
templates.render("ns1/named.conf", {"rname": "marka.isc.org."})
with servers["ns1"].watch_log_from_here() as watcher:
servers["ns1"].rndc("reload")
watcher.wait_for_line("all zones loaded")
# checking post reload zone
res = isctest.query.tcp(msg, "10.53.0.1")