2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 06:25:31 +00:00

Rename kasp function to check_*

If a function is expected to assert / raise on failure (rather than
return boolean), its name should start with "check_".

(cherry picked from commit 67957d1f54)
This commit is contained in:
Nicki Křížek
2024-10-08 14:09:05 +02:00
committed by Matthijs Mekking
parent f5adeb6800
commit e806d8c6f5
2 changed files with 12 additions and 12 deletions

View File

@@ -232,7 +232,7 @@ class Key:
return self.path
def zone_is_signed(server, zone):
def check_zone_is_signed(server, zone):
addr = server.ip
fqdn = f"{zone}."
@@ -283,7 +283,7 @@ def zone_is_signed(server, zone):
assert signed
def dnssec_verify(server, zone):
def check_dnssec_verify(server, zone):
# Check if zone if DNSSEC valid with dnssec-verify.
fqdn = f"{zone}."
transfer = _query(server, fqdn, dns.rdatatype.AXFR)