Commit ce9473e6 authored by Stéphane Bortzmeyer's avatar Stéphane Bortzmeyer
Browse files

Merge branch 'test_add_markers' into 'master'

Use markers to run specific tests

See merge request bortzmeyer/homer!3
parents edc518f7 79c6ba60
---
config:
timeout: 2
markers:
- "dot: test specific to DoT"
- "doh: test specific to DoH"
- "monitoring: test using monitoring"
- "exception: test raising an exception"
tests:
- exe: './homer.py'
args:
- '-h'
retcode: 0
partstderr: 'url-or-servername domain-name [DNS type]'
stdout: ''
......@@ -14,7 +18,6 @@ tests:
- exe: './homer.py'
args:
- '--zzz'
retcode: 1
partstderr: 'url-or-servername domain-name [DNS type]'
stdout: ''
......@@ -23,7 +26,6 @@ tests:
args:
- 'https://doh.bortzmeyer.fr/'
- 'framagit.org'
retcode: 0
stderr: ''
partstdout: '2a01:4f8:'
......@@ -33,7 +35,6 @@ tests:
- '--dot'
- 'dot.bortzmeyer.fr'
- 'framagit.org'
retcode: 0
stderr: ''
partstdout: '2a01:4f8:'
......@@ -42,6 +43,9 @@ tests:
- exe: './homer.py'
name: '[doh] Force IPv4 and IPv6'
markers:
- 'doh'
- 'exception'
args:
- '-4'
- '-6'
......@@ -53,6 +57,9 @@ tests:
- exe: './homer.py'
name: '[dot] Force IPv4 and IPv6'
markers:
- 'dot'
- 'exception'
args:
- '-4'
- '-6'
......@@ -65,6 +72,9 @@ tests:
- exe: './homer.py'
name: '[dot] Use IPv4 address (raise certificate error)'
markers:
- 'dot'
- 'exception'
args:
- '--dot'
- '193.70.85.11'
......@@ -75,6 +85,8 @@ tests:
- exe: './homer.py'
name: '[dot] Use IPv4 address (without certificate check)'
markers:
- 'dot'
args:
- '--insecure'
- '--dot'
......@@ -86,6 +98,9 @@ tests:
- exe: './homer.py'
name: '[dot] Use IPv4 address and force IPv6 (without certificate check)'
markers:
- 'dot'
- 'exception'
args:
- '-6'
- '--insecure'
......@@ -98,6 +113,9 @@ tests:
- exe: './homer.py'
name: '[dot] Use IPv6 address (raise certificate error)'
markers:
- 'dot'
- 'exception'
args:
- '--dot'
- '2001:620:0:ff::2'
......@@ -108,6 +126,8 @@ tests:
- exe: './homer.py'
name: '[dot] Use IPv6 address (without certificate check)'
markers:
- 'dot'
args:
- '--insecure'
- '--dot'
......@@ -119,6 +139,9 @@ tests:
- exe: './homer.py'
name: '[dot] Use IPv6 address and force IPv4 (without certificate check)'
markers:
- 'dot'
- 'exception'
args:
- '-4'
- '--insecure'
......@@ -134,6 +157,9 @@ tests:
# check_dot
- exe: './check_dot'
name: '[check_dot] Use an IPv6'
markers:
- 'dot'
- 'monitoring'
args:
- '-H'
- '2001:41d0:302:2200::180'
......@@ -147,6 +173,9 @@ tests:
- exe: './check_dot'
name: '[check_dot] Use IPv6 address and force IPv6'
markers:
- 'dot'
- 'monitoring'
args:
- '-6'
- '-H'
......@@ -161,6 +190,9 @@ tests:
- exe: './check_dot'
name: '[check_dot] Use an IPv4'
markers:
- 'dot'
- 'monitoring'
args:
- '-H'
- '193.70.85.11'
......@@ -174,6 +206,9 @@ tests:
- exe: './check_dot'
name: '[check_dot] Use IPv4 address and force IPv4'
markers:
- 'dot'
- 'monitoring'
args:
- '-4'
- '-H'
......@@ -188,6 +223,10 @@ tests:
- exe: './check_dot'
name: '[check_dot] Force IPv4 and IPv6 with an IPv6'
markers:
- 'dot'
- 'monitoring'
- 'exception'
args:
- '-4'
- '-6'
......@@ -203,6 +242,10 @@ tests:
- exe: './check_dot'
name: '[check_dot] Force IPv4 and IPv6 with an IPv4'
markers:
- 'dot'
- 'monitoring'
- 'exception'
args:
- '-4'
- '-6'
......@@ -218,6 +261,10 @@ tests:
- exe: './check_dot'
name: '[check_dot] Use IPv4 address and force IPv6'
markers:
- 'dot'
- 'monitoring'
- 'exception'
args:
- '-6'
- '-H'
......@@ -232,6 +279,10 @@ tests:
- exe: './check_dot'
name: '[check_dot] Use IPv6 address and force IPv4'
markers:
- 'dot'
- 'monitoring'
- 'exception'
args:
- '-4'
- '-H'
......@@ -250,6 +301,9 @@ tests:
# check_doh
- exe: './check_doh'
name: '[check_doh] Use an IPv6'
markers:
- 'doh'
- 'monitoring'
args:
- '-H'
- '2001:41d0:302:2200::180'
......@@ -263,6 +317,9 @@ tests:
- exe: './check_doh'
name: '[check_doh] Use IPv6 address and force IPv6'
markers:
- 'doh'
- 'monitoring'
args:
- '-6'
- '-H'
......@@ -277,6 +334,9 @@ tests:
- exe: './check_doh'
name: '[check_doh] Use an IPv4'
markers:
- 'doh'
- 'monitoring'
args:
- '-H'
- '193.70.85.11'
......@@ -290,6 +350,9 @@ tests:
- exe: './check_doh'
name: '[check_doh] Use IPv4 address and force IPv4'
markers:
- 'doh'
- 'monitoring'
args:
- '-4'
- '-H'
......@@ -304,6 +367,10 @@ tests:
- exe: './check_doh'
name: '[check_doh] Force IPv4 and IPv6 with an IPv6'
markers:
- 'doh'
- 'monitoring'
- 'exception'
args:
- '-4'
- '-6'
......@@ -319,6 +386,10 @@ tests:
- exe: './check_doh'
name: '[check_doh] Force IPv4 and IPv6 with an IPv4'
markers:
- 'doh'
- 'monitoring'
- 'exception'
args:
- '-4'
- '-6'
......@@ -334,6 +405,10 @@ tests:
- exe: './check_doh'
name: '[check_doh] Use IPv4 address and force IPv6'
markers:
- 'doh'
- 'monitoring'
- 'exception'
args:
- '-6'
- '-H'
......@@ -348,6 +423,10 @@ tests:
- exe: './check_doh'
name: '[check_doh] Use IPv6 address and force IPv4'
markers:
- 'doh'
- 'monitoring'
- 'exception'
args:
- '-4'
- '-H'
......@@ -364,6 +443,9 @@ tests:
- exe: './homer.py'
name: '[doh] HEAD and POST'
markers:
- 'doh'
- 'exception'
args:
- '--head'
- '--POST'
......@@ -375,6 +457,8 @@ tests:
- exe: './homer.py'
name: '[doh] POST'
markers:
- 'doh'
args:
- '--POST'
- 'https://doh.bortzmeyer.fr'
......@@ -385,6 +469,8 @@ tests:
- exe: './homer.py'
name: '[doh] HEAD'
markers:
- 'doh'
args:
- '--head'
- 'https://doh.bortzmeyer.fr'
......
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