Verified Commit 8db0203f authored by Petr Špaček's avatar Petr Špaček
Browse files

Deckard: fail on unknown keywords in CONFIG section

All unknown (and, formerly, silently ignored) keywords were removed from
existing tests. This allows us to detect typos.
parent 61d00397
Pipeline #32098 failed with stage
in 5 seconds
......@@ -947,11 +947,11 @@ def parse_config(scn_cfg, qmin, installdir):
# Enable selectively for some tests
if k == 'do-not-query-localhost':
do_not_query_localhost = str2bool(v)
if k == 'domain-insecure':
elif k == 'domain-insecure':
negative_ta_list.append(v)
if k == 'harden-glue':
elif k == 'harden-glue':
harden_glue = str2bool(v)
if k == 'query-minimization':
elif k == 'query-minimization':
qmin = str2bool(v)
elif k == 'trust-anchor':
trust_anchor = v.strip('"\'')
......@@ -1003,6 +1003,8 @@ def parse_config(scn_cfg, qmin, installdir):
% (v, str(ex)))
elif k == 'force-ipv6' and v.upper() == 'TRUE':
sockfamily = socket.AF_INET6
else:
raise NotImplementedError('unsupported CONFIG key "%s"' % k)
ctx = {
"DO_NOT_QUERY_LOCALHOST": str(do_not_query_localhost).lower(),
......
name: "."
; name: "."
stub-addr: 193.0.14.129 # K.ROOT-SERVERS.NET.
CONFIG_END
......
; config options
target-fetch-policy: "3 2 1 0 0"
name: "."
; target-fetch-policy: "3 2 1 0 0"
; name: "."
stub-addr: 193.0.14.129 # K.ROOT-SERVERS.NET.
CONFIG_END
......
; config options
target-fetch-policy: "0 0 0 0 0"
name: "."
; target-fetch-policy: "0 0 0 0 0"
; name: "."
stub-addr: 193.0.14.129 # K.ROOT-SERVERS.NET.
CONFIG_END
......
; config options
target-fetch-policy: "0 0 0 0 0"
name: "."
; target-fetch-policy: "0 0 0 0 0"
; name: "."
stub-addr: 193.0.14.129 # K.ROOT-SERVERS.NET.
CONFIG_END
......
; config options
target-fetch-policy: "0 0 0 0 0"
name: "."
; target-fetch-policy: "0 0 0 0 0"
; name: "."
stub-addr: 193.0.14.129 # K.ROOT-SERVERS.NET.
CONFIG_END
......
; config options
target-fetch-policy: "0 0 0 0 0"
name: "."
; target-fetch-policy: "0 0 0 0 0"
; name: "."
stub-addr: 193.0.14.129 # K.ROOT-SERVERS.NET.
CONFIG_END
......
; config options
target-fetch-policy: "0 0 0 0 0"
name: "."
; target-fetch-policy: "0 0 0 0 0"
; name: "."
stub-addr: 193.0.14.129 # K.ROOT-SERVERS.NET.
CONFIG_END
......
; config options
harden-glue: "no"
target-fetch-policy: "0 0 0 0 0"
name: "."
; target-fetch-policy: "0 0 0 0 0"
; name: "."
stub-addr: 193.0.14.129 # K.ROOT-SERVERS.NET.
CONFIG_END
......
; config options
target-fetch-policy: "0 0 0 0 0"
name: "."
; target-fetch-policy: "0 0 0 0 0"
; name: "."
stub-addr: 193.0.14.129 # K.ROOT-SERVERS.NET.
CONFIG_END
......
; config options
target-fetch-policy: "0 0 0 0 0"
name: "."
; target-fetch-policy: "0 0 0 0 0"
; name: "."
stub-addr: 193.0.14.129 # K.ROOT-SERVERS.NET.
CONFIG_END
......
; config options
name: "."
; name: "."
stub-addr: 193.0.14.129 # K.ROOT-SERVERS.NET.
CONFIG_END
......
; config options
harden-referral-path: no
target-fetch-policy: "0 0 0 0 0"
name: "."
; harden-referral-path: no
; target-fetch-policy: "0 0 0 0 0"
; name: "."
stub-addr: 193.0.14.129 # K.ROOT-SERVERS.NET.
CONFIG_END
......
; config options
target-fetch-policy: "0 0 0 0 0"
name: "."
; target-fetch-policy: "0 0 0 0 0"
; name: "."
stub-addr: 193.0.14.129 # K.ROOT-SERVERS.NET.
; minimization does not affect priming query
query-minimization: off
......
; config options
target-fetch-policy: "0 0 0 0 0"
name: "."
; target-fetch-policy: "0 0 0 0 0"
; name: "."
stub-addr: 193.0.14.129 # K.ROOT-SERVERS.NET.
CONFIG_END
......
; config options
harden-referral-path: no
target-fetch-policy: "0 0 0 0 0"
name: "."
; harden-referral-path: no
; target-fetch-policy: "0 0 0 0 0"
; name: "."
stub-addr: 193.0.14.129 # K.ROOT-SERVERS.NET.
; test with pre-scripted replies does not make sense with qmin
query-minimization: off
......
; config options
target-fetch-policy: "0 0 0 0 0"
name: "."
; target-fetch-policy: "0 0 0 0 0"
; name: "."
stub-addr: 193.0.14.129 # K.ROOT-SERVERS.NET.
CONFIG_END
......
; config options
name: "."
; name: "."
stub-addr: 193.0.14.129 # K.ROOT-SERVERS.NET.
CONFIG_END
......
; config options
target-fetch-policy: "0 0 0 0 0"
; target-fetch-policy: "0 0 0 0 0"
query-minimization: on
name: "."
; name: "."
stub-addr: 127.0.0.10 # K.ROOT-SERVERS.NET.
CONFIG_END
......
; config options
target-fetch-policy: "0 0 0 0 0"
; target-fetch-policy: "0 0 0 0 0"
query-minimization: on
name: "."
; name: "."
stub-addr: 193.0.14.129 # K.ROOT-SERVERS.NET.
CONFIG_END
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment