Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
DNS testing tools
Remoh
Commits
e86f4bf4
Commit
e86f4bf4
authored
Mar 31, 2020
by
Alexandre
Browse files
[DoH] Check HTTP code not in 400 range
parent
17b3cd4c
Changes
2
Hide whitespace changes
Inline
Side-by-side
homer.py
View file @
e86f4bf4
...
...
@@ -708,7 +708,7 @@ def run_check_trunc(connection):
if
print_result
(
connection
,
request
,
prefix
=
test_name
,
display_err
=
True
):
# The test must fail, or returns FORMERR.
ok
=
(
request
.
rcode
==
dns
.
rcode
.
FORMERR
)
else
:
ok
=
False
ok
=
(
request
.
rcode
>=
400
and
request
.
rcode
<
500
)
return
ok
def
run_check_additionals
(
connection
):
...
...
tests.yaml
View file @
e86f4bf4
...
...
@@ -66,7 +66,6 @@ tests:
-
'
https://doh.bortzmeyer.fr/'
-
'
ressources-pedagogiques.org'
retcode
:
0
stderr
:
'
'
stdout
:
"
OK
\n
"
-
exe
:
'
./homer.py'
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment