Commit a5c2e4fd authored by Alexandre's avatar Alexandre
Browse files

Write tests for IPv4 and IPv6 exceptions

parent bbffbc9d
homer.py
\ No newline at end of file
./homer.py
\ No newline at end of file
---
config:
timeout: 2
tests:
- exe: './homer.py'
args:
......@@ -38,4 +38,325 @@ tests:
stderr: ''
partstdout: '2a01:4f8:'
###############################################################################
- exe: './homer.py'
name: '[doh] Force IPv4 and IPv6'
args:
- '-4'
- '-6'
- 'https://doh.bortzmeyer.fr/'
- 'framagit.org'
retcode: 1
partstderr: 'IPv4 *or* IPv6'
stdout: ''
- exe: './homer.py'
name: '[dot] Force IPv4 and IPv6'
args:
- '-4'
- '-6'
- '--dot'
- 'dot.bortzmeyer.fr'
- 'framagit.org'
retcode: 1
partstderr: 'IPv4 *or* IPv6'
stdout: ''
- exe: './homer.py'
name: '[dot] Use IPv4 address (raise certificate error)'
args:
- '--dot'
- '193.70.85.11'
- 'framagit.org'
retcode: 1
partstderr: 'Certificate error'
stdout: ''
- exe: './homer.py'
name: '[dot] Use IPv4 address (without certificate check)'
args:
- '--insecure'
- '--dot'
- '193.70.85.11'
- 'framagit.org'
retcode: 0
stderr: ''
partstdout: '2a01:4f8:'
- exe: './homer.py'
name: '[dot] Use IPv4 address and force IPv6 (without certificate check)'
args:
- '-6'
- '--insecure'
- '--dot'
- '193.70.85.11'
- 'framagit.org'
retcode: 1
partstderr: 'litteral IPv4'
stdout: ''
- exe: './homer.py'
name: '[dot] Use IPv6 address (raise certificate error)'
args:
- '--dot'
- '2001:620:0:ff::2'
- 'framagit.org'
retcode: 1
partstderr: 'Certificate error'
stdout: ''
- exe: './homer.py'
name: '[dot] Use IPv6 address (without certificate check)'
args:
- '--insecure'
- '--dot'
- '2001:620:0:ff::2'
- 'framagit.org'
retcode: 0
stderr: ''
partstdout: '2a01:4f8:'
- exe: './homer.py'
name: '[dot] Use IPv6 address and force IPv4 (without certificate check)'
args:
- '-4'
- '--insecure'
- '--dot'
- '2001:620:0:ff::2'
- 'framagit.org'
retcode: 1
partstderr: 'litteral IPv6'
stdout: ''
################################################################################
# check_dot
- exe: './check_dot'
name: '[check_dot] Use an IPv6'
args:
- '-H'
- '2001:41d0:302:2200::180'
- '-V'
- 'dot.bortzmeyer.fr'
- '-n'
- 'framagit.org'
retcode: 0
stderr: ''
partstdout: 'OK'
- exe: './check_dot'
name: '[check_dot] Use IPv6 address and force IPv6'
args:
- '-6'
- '-H'
- '2001:41d0:302:2200::180'
- '-V'
- 'dot.bortzmeyer.fr'
- '-n'
- 'framagit.org'
retcode: 0
stderr: ''
partstdout: 'OK'
- exe: './check_dot'
name: '[check_dot] Use an IPv4'
args:
- '-H'
- '193.70.85.11'
- '-V'
- 'dot.bortzmeyer.fr'
- '-n'
- 'framagit.org'
retcode: 0
stderr: ''
partstdout: 'OK'
- exe: './check_dot'
name: '[check_dot] Use IPv4 address and force IPv4'
args:
- '-4'
- '-H'
- '193.70.85.11'
- '-V'
- 'dot.bortzmeyer.fr'
- '-n'
- 'framagit.org'
retcode: 0
stderr: ''
partstdout: 'OK'
- exe: './check_dot'
name: '[check_dot] Force IPv4 and IPv6 with an IPv6'
args:
- '-4'
- '-6'
- '-H'
- '2001:41d0:302:2200::180'
- '-V'
- 'dot.bortzmeyer.fr'
- '-n'
- 'framagit.org'
retcode: 1
partstderr: 'IPv4 *or* IPv6'
stdout: ''
- exe: './check_dot'
name: '[check_dot] Force IPv4 and IPv6 with an IPv4'
args:
- '-4'
- '-6'
- '-H'
- '193.70.85.11'
- '-V'
- 'dot.bortzmeyer.fr'
- '-n'
- 'framagit.org'
retcode: 1
partstderr: 'IPv4 *or* IPv6'
stdout: ''
- exe: './check_dot'
name: '[check_dot] Use IPv4 address and force IPv6'
args:
- '-6'
- '-H'
- '193.70.85.11'
- '-V'
- 'dot.bortzmeyer.fr'
- '-n'
- 'framagit.org'
retcode: 1
partstderr: 'litteral IPv4'
stdout: ''
- exe: './check_dot'
name: '[check_dot] Use IPv6 address and force IPv4'
args:
- '-4'
- '-H'
- '2001:41d0:302:2200::180'
- '-V'
- 'dot.bortzmeyer.fr'
- '-n'
- 'framagit.org'
retcode: 1
partstderr: 'litteral IPv6'
stdout: ''
################################################################################
# check_doh
- exe: './check_doh'
name: '[check_doh] Use an IPv6'
args:
- '-H'
- '2001:41d0:302:2200::180'
- '-V'
- 'doh.bortzmeyer.fr'
- '-n'
- 'framagit.org'
retcode: 0
stderr: ''
partstdout: 'OK'
- exe: './check_doh'
name: '[check_doh] Use IPv6 address and force IPv6'
args:
- '-6'
- '-H'
- '2001:41d0:302:2200::180'
- '-V'
- 'doh.bortzmeyer.fr'
- '-n'
- 'framagit.org'
retcode: 0
stderr: ''
partstdout: 'OK'
- exe: './check_doh'
name: '[check_doh] Use an IPv4'
args:
- '-H'
- '193.70.85.11'
- '-V'
- 'doh.bortzmeyer.fr'
- '-n'
- 'framagit.org'
retcode: 0
stderr: ''
partstdout: 'OK'
- exe: './check_doh'
name: '[check_doh] Use IPv4 address and force IPv4'
args:
- '-4'
- '-H'
- '193.70.85.11'
- '-V'
- 'doh.bortzmeyer.fr'
- '-n'
- 'framagit.org'
retcode: 0
stderr: ''
partstdout: 'OK'
- exe: './check_doh'
name: '[check_doh] Force IPv4 and IPv6 with an IPv6'
args:
- '-4'
- '-6'
- '-H'
- '2001:41d0:302:2200::180'
- '-V'
- 'doh.bortzmeyer.fr'
- '-n'
- 'framagit.org'
retcode: 1
partstderr: 'IPv4 *or* IPv6'
stdout: ''
- exe: './check_doh'
name: '[check_doh] Force IPv4 and IPv6 with an IPv4'
args:
- '-4'
- '-6'
- '-H'
- '193.70.85.11'
- '-V'
- 'doh.bortzmeyer.fr'
- '-n'
- 'framagit.org'
retcode: 1
partstderr: 'IPv4 *or* IPv6'
stdout: ''
- exe: './check_doh'
name: '[check_doh] Use IPv4 address and force IPv6'
args:
- '-6'
- '-H'
- '193.70.85.11'
- '-V'
- 'doh.bortzmeyer.fr'
- '-n'
- 'framagit.org'
retcode: 1
partstderr: 'litteral IPv4'
stdout: ''
- exe: './check_doh'
name: '[check_doh] Use IPv6 address and force IPv4'
args:
- '-4'
- '-H'
- '2001:41d0:302:2200::180'
- '-V'
- 'doh.bortzmeyer.fr'
- '-n'
- 'framagit.org'
retcode: 1
partstderr: 'litteral IPv6'
stdout: ''
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