Commit 9a6ced92 authored by Alexandre's avatar Alexandre
Browse files

Add tests for --truncated-option

parent 6c5d90e4
...@@ -11,6 +11,7 @@ config: ...@@ -11,6 +11,7 @@ config:
- "forceIPv4: test using the option -4" - "forceIPv4: test using the option -4"
- "forceIPv6: test using the option -6" - "forceIPv6: test using the option -6"
- "pipelining: test with --pipelining option" - "pipelining: test with --pipelining option"
- "trunc: test with --truncated-data"
- "fail: mark test with a resolver currently failing our tests" - "fail: mark test with a resolver currently failing our tests"
- "slow: test that need time to run" - "slow: test that need time to run"
...@@ -590,6 +591,33 @@ tests: ...@@ -590,6 +591,33 @@ tests:
stderr: '' stderr: ''
stdout: "OK\n" stdout: "OK\n"
- exe: './homer.py'
name: '[dot][trunc] Resolver returning a malformed DNS message'
markers:
- 'dot'
- 'trunc'
- 'exception'
args:
- '--dot'
- '--truncated-data'
- 'dns.digitale-gesellschaft.ch'
- 'wikipedia.org'
retcode: 1
partstderr: 'Error: Received DNS message is malformed'
partstdout: "KO\n"
- exe: './homer.py'
name: '[doh][trunc] Resolver returning a malformed DNS message'
markers:
- 'trunc'
- 'exception'
args:
- '--truncated-data'
- 'https://dns.digitale-gesellschaft.ch/dns-query'
- 'wikipedia.org'
retcode: 1
partstdout: "KO\n"
- exe: './homer.py' - exe: './homer.py'
name: '[dot][fail] Resolver with an invalid certificate' name: '[dot][fail] Resolver with an invalid certificate'
markers: 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