Commit 5dcb7d06 authored by Alexandre's avatar Alexandre
Browse files

[DoH] Write tests for --header option

parent 227f7bbf
......@@ -10,6 +10,7 @@ config:
- "check: test related to the compliance option --check"
- "forceIPv4: test using the option -4"
- "forceIPv6: test using the option -6"
- "header: test using --header option"
- "fail: mark test with a resolver currently failing our tests"
- "slow: test that need time to run"
......@@ -354,6 +355,32 @@ tests:
partstderr: 'IPv4 *or* IPv6'
stdout: ''
- exe: './homer.py'
name: '[doh][header] Command line option --header (accept)'
markers:
- 'doh'
- 'header'
args:
- '--debug'
- '--header'
- 'Accept: application/dns-json'
- 'https://doh.bortzmeyer.fr'
- 'framagit.org'
partstderr: 'accept: application/dns-json'
- exe: './homer.py'
name: '[doh][header] Command line option --header (content-type)'
markers:
- 'doh'
- 'header'
args:
- '--debug'
- '--header'
- 'Content-type: text/html'
- 'https://doh.bortzmeyer.fr'
- 'framagit.org'
partstderr: 'content-type: text/html'
- exe: './homer.py'
name: '[dot] Force IPv4 and IPv6'
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