Commit 67cacec6 authored by Alexandre's avatar Alexandre
Browse files

Fix missing option + tests

parent af917ad2
......@@ -914,8 +914,9 @@ if not monitoring:
message = None
try:
optlist, args = getopt.getopt (sys.argv[1:], "hvPkeV:r:f:d:t46",
["help", "verbose", "debug", "dot", "head",
"insecure", "POST", "vhost=", "multistreams",
["help", "verbose", "debug", "dot",
"head", "HEAD", "post", "POST",
"insecure", "vhost=", "multistreams",
"sync", "no-display-results", "time",
"dnssec", "noedns", "ecs", "repeat=", "file=", "delay=",
"key=", "nosni",
......
......@@ -18,14 +18,14 @@ tests:
args:
- '-h'
retcode: 0
partstderr: 'url-or-servername domain-name [DNS type]'
partstderr: 'url-or-servername [domain-name [DNS type]]'
stdout: ''
- exe: './homer.py'
args:
- '--zzz'
retcode: 1
partstderr: 'url-or-servername domain-name [DNS type]'
partstderr: 'url-or-servername [domain-name [DNS type]]'
stdout: ''
- exe: './homer.py'
......@@ -131,7 +131,7 @@ tests:
- 'check'
- 'fail'
- 'slow'
timeout: 10
timeout: 12
args:
- '--check'
- 'https://doh.42l.fr/dns-query'
......@@ -944,7 +944,19 @@ tests:
stdout: ''
- exe: './homer.py'
name: '[doh] POST'
name: '[doh] POST --post'
markers:
- 'doh'
args:
- '--post'
- 'https://doh.bortzmeyer.fr'
- 'framagit.org'
retcode: 0
stderr: ''
partstdout: '2a01:4f8:'
- exe: './homer.py'
name: '[doh] POST --POST'
markers:
- 'doh'
args:
......@@ -956,7 +968,19 @@ tests:
partstdout: '2a01:4f8:'
- exe: './homer.py'
name: '[doh] HEAD'
name: '[doh] POST -P'
markers:
- 'doh'
args:
- '-P'
- 'https://doh.bortzmeyer.fr'
- 'framagit.org'
retcode: 0
stderr: ''
partstdout: '2a01:4f8:'
- exe: './homer.py'
name: '[doh] HEAD --head'
markers:
- 'doh'
args:
......@@ -967,6 +991,30 @@ tests:
stderr: ''
partstdout: 'HEAD'
- exe: './homer.py'
name: '[doh] HEAD --HEAD'
markers:
- 'doh'
args:
- '--HEAD'
- 'https://doh.bortzmeyer.fr'
- 'framagit.org'
retcode: 0
stderr: ''
partstdout: 'HEAD'
- exe: './homer.py'
name: '[doh] HEAD -e'
markers:
- 'doh'
args:
- '-e'
- 'https://doh.bortzmeyer.fr'
- 'framagit.org'
retcode: 0
stderr: ''
partstdout: 'HEAD'
- exe : './homer.py'
name: '[doh] Multistreams with DoT (error)'
markers:
......
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