mirror of
https://github.com/isc-projects/bind9.git
synced 2026-05-28 04:34:54 -04:00
[9.20] fix: test: 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. Closes #5075 Backport of MR !9829 Merge branch 'backport-5075-database-rndc-reload-ensure-all-zones-loaded-9.20' into 'bind-9.20' See merge request isc-projects/bind9!9900
This commit is contained in:
commit
504c92bee7
1 changed files with 3 additions and 1 deletions
|
|
@ -28,7 +28,9 @@ def test_database(servers, templates):
|
|||
)
|
||||
|
||||
templates.render("ns1/named.conf", {"rname": "marka.isc.org."})
|
||||
servers["ns1"].rndc("reload")
|
||||
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")
|
||||
|
|
|
|||
Loading…
Reference in a new issue