Commit 6b980a00 authored by Alexandre's avatar Alexandre
Browse files

Write tests for multistreams

parent d373fbbb
www.afnic.fr
framagit.org
tools.ietf.org
docs.python.org
curl.haxx.se
......@@ -591,9 +591,11 @@ tests:
partstdout: 'HEAD'
- exe : './homer.py'
name: '[doh] Multistreams with DoT (error)'
markers:
- 'doh'
- 'streams'
- 'exception'
args:
- '--multistreams'
- '--dot'
......@@ -604,9 +606,11 @@ tests:
stdout: ''
- exe : './homer.py'
name: '[doh] Multistreams without input file (error)'
markers:
- 'doh'
- 'streams'
- 'exception'
args:
- '--multistreams'
- 'dot.bortzmeyer.fr'
......@@ -616,9 +620,11 @@ tests:
stdout: ''
- exe : './homer.py'
name: '[doh] Multistreams too many arguments (error)'
markers:
- 'doh'
- 'streams'
- 'exception'
args:
- '--multistreams'
- '--file'
......@@ -630,9 +636,11 @@ tests:
stdout: ''
- exe : './homer.py'
name: '[doh] Multistreams invalid URL'
markers:
- 'doh'
- 'streams'
- 'exception'
args:
- '--multistreams'
- '--file'
......@@ -643,6 +651,7 @@ tests:
stdout: ''
- exe : './homer.py'
name: '[doh] Multistreams with 1 request'
markers:
- 'doh'
- 'streams'
......@@ -654,3 +663,37 @@ tests:
retcode: 0
stderr: ''
partstdout: 'NOERR'
- exe : './homer.py'
name: '[doh] Multistreams with 2 requests'
markers:
- 'doh'
- 'streams'
args:
- '-v'
- '--multistreams'
- '--file'
- 'input_file'
- '--repeat'
- '2'
- 'https://doh.bortzmeyer.fr'
retcode: 0
partstderr: 'Multiplexed connection found'
partstdout: 'Return code 200'
- exe : './homer.py'
name: '[doh] Multistreams with 5 requests'
markers:
- 'doh'
- 'streams'
args:
- '-v'
- '--multistreams'
- '--file'
- 'input_file'
- '--repeat'
- '5'
- 'https://doh.bortzmeyer.fr'
retcode: 0
partstderr: 'Multiplexed connection found'
partstdout: 'Return code 200'
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