summaryrefslogtreecommitdiffstats
path: root/tests-extra/tests/modules/stats/test.py
diff options
context:
space:
mode:
authorLibor Peltan <libor.peltan@nic.cz>2023-06-16 11:18:37 +0200
committerDaniel Salzman <daniel.salzman@nic.cz>2023-06-20 08:42:49 +0200
commit0547f80b7a0d52ffa87baaa6d5d6cfb8d1ca1462 (patch)
tree1a8a7173a944b6dd93e68dfa2b9727b4407b18db /tests-extra/tests/modules/stats/test.py
parentstats: add basic per zone statistics (zone.size and zone.max-ttl) (diff)
downloadknot-0547f80b7a0d52ffa87baaa6d5d6cfb8d1ca1462.tar.xz
knot-0547f80b7a0d52ffa87baaa6d5d6cfb8d1ca1462.zip
stats/basic-per-zone: doc and test
Diffstat (limited to '')
-rw-r--r--tests-extra/tests/modules/stats/test.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests-extra/tests/modules/stats/test.py b/tests-extra/tests/modules/stats/test.py
index 9f45b441f..6c43bd869 100644
--- a/tests-extra/tests/modules/stats/test.py
+++ b/tests-extra/tests/modules/stats/test.py
@@ -49,7 +49,7 @@ proto = random.choice([4, 6])
t = Test(stress=False, tsig=False, address=proto)
knot = t.server("knot")
-zones = t.zone_rnd(2)
+zones = t.zone("example.") + t.zone(".")
t.link(zones, knot)
@@ -62,6 +62,8 @@ knot.zones_wait(zones)
knot.ctl("-f reload") # Reset module statistics after wait!
check_item(knot, "server", "zone-count", 2)
+check_item(knot, "zone", "max-ttl", 3600, zone=knot.zones["example."])
+check_item(knot, "zone", "max-ttl", 518400, zone=knot.zones["."])
resp = knot.dig(zones[0].name, "SOA", tries=1, udp=True)
query_size1 = resp.query_size()