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:
committed by
Matthijs Mekking
parent
f5adeb6800
commit
e806d8c6f5
@@ -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)
|
||||
|
Reference in New Issue
Block a user