--- config: timeout: 2 markers: - "dot: test specific to DoT" - "doh: test specific to DoH" - "monitoring: test using monitoring" - "exception: test raising an exception" - "streams: test multistreams with DoH" tests: - exe: './homer.py' args: - '-h' retcode: 0 partstderr: 'url-or-servername domain-name [DNS type]' stdout: '' - exe: './homer.py' args: - '--zzz' retcode: 1 partstderr: 'url-or-servername domain-name [DNS type]' stdout: '' - exe: './homer.py' args: - 'https://doh.bortzmeyer.fr/' - 'framagit.org' retcode: 0 stderr: '' partstdout: '2a01:4f8:' - exe: './homer.py' args: - '--dot' - 'dot.bortzmeyer.fr' - 'framagit.org' retcode: 0 stderr: '' partstdout: '2a01:4f8:' ############################################################################### - exe: './homer.py' name: '[doh] Force IPv4 and IPv6' markers: - 'doh' - 'exception' 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' markers: - 'dot' - 'exception' 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)' markers: - 'dot' - 'exception' 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)' markers: - 'dot' 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)' markers: - 'dot' - 'exception' 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)' markers: - 'dot' - 'exception' 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)' markers: - 'dot' 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)' markers: - 'dot' - 'exception' args: - '-4' - '--insecure' - '--dot' - '2001:620:0:ff::2' - 'framagit.org' retcode: 1 partstderr: 'litteral IPv6' stdout: '' - exe: './homer.py' name: '[dot] Loop on all ips on connection error (brok.sources.org)' markers: - 'dot' timeout: 6 args: - '--dot' - '--insecure' - 'brok.sources.org' - 'framagit.org' retcode: 0 stderr: '' partstdout: '2a01:4f8:' - exe: './homer.py' name: '[dot] Force IPv6 on brok.sources.org' markers: - 'dot' timeout: 6 args: - '-6' - '--insecure' - '--dot' - 'brok.sources.org' - 'framagit.org' retcode: 1 partstderr: 'not connect to' stdout: '' - exe: './homer.py' name: '[dot] Not a DoT server' markers: - 'dot' timeout: 5 args: - '--dot' - 'afnic.fr' - 'framagit.org' retcode: 1 partstderr: 'not connect to' stdout: '' ################################################################################ # check_dot - exe: './check_dot' name: '[check_dot] Use an IPv6' markers: - 'dot' - 'monitoring' 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' markers: - 'dot' - 'monitoring' 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' markers: - 'dot' - 'monitoring' 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' markers: - 'dot' - 'monitoring' 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' markers: - 'dot' - 'monitoring' - 'exception' args: - '-4' - '-6' - '-H' - '2001:41d0:302:2200::180' - '-V' - 'dot.bortzmeyer.fr' - '-n' - 'framagit.org' retcode: 2 stderr: '' partstout: 'IPv4 *or* IPv6' - exe: './check_dot' name: '[check_dot] Force IPv4 and IPv6 with an IPv4' markers: - 'dot' - 'monitoring' - 'exception' args: - '-4' - '-6' - '-H' - '193.70.85.11' - '-V' - 'dot.bortzmeyer.fr' - '-n' - 'framagit.org' retcode: 2 stderr: '' partstdout: 'IPv4 *or* IPv6' - exe: './check_dot' name: '[check_dot] Use IPv4 address and force IPv6' markers: - 'dot' - 'monitoring' - 'exception' args: - '-6' - '-H' - '193.70.85.11' - '-V' - 'dot.bortzmeyer.fr' - '-n' - 'framagit.org' retcode: 2 stderr: '' partstdout: 'litteral IPv4' - exe: './check_dot' name: '[check_dot] Use IPv6 address and force IPv4' markers: - 'dot' - 'monitoring' - 'exception' args: - '-4' - '-H' - '2001:41d0:302:2200::180' - '-V' - 'dot.bortzmeyer.fr' - '-n' - 'framagit.org' retcode: 2 stderr: '' partstdout: 'litteral IPv6' - exe: './check_dot' name: '[check_dot] Test there is the expected string' markers: - 'dot' - 'monitoring' - 'exception' args: - '-H' - 'dot.bortzmeyer.fr' - '-n' - 'ressources-pedagogiques.org' - '-e' - '2605:4500:2:245b::42' retcode: 0 stderr: '' partstdout: 'OK - No error' - exe: './check_dot' name: '[check_dot] Test there is *not* the expected string' markers: - 'dot' - 'monitoring' - 'exception' args: - '-H' - 'dot.bortzmeyer.fr' - '-n' - 'ressources-pedagogiques.org' - '-e' - 'foobar' retcode: 2 stderr: '' partstdout: 'Cannot find' ################################################################################ # check_doh - exe: './check_doh' name: '[check_doh] Use an IPv6' markers: - 'doh' - 'monitoring' 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' markers: - 'doh' - 'monitoring' 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' markers: - 'doh' - 'monitoring' 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' markers: - 'doh' - 'monitoring' 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' markers: - 'doh' - 'monitoring' - 'exception' args: - '-4' - '-6' - '-H' - '2001:41d0:302:2200::180' - '-V' - 'doh.bortzmeyer.fr' - '-n' - 'framagit.org' retcode: 2 stderr: '' partstdout: 'IPv4 *or* IPv6' - exe: './check_doh' name: '[check_doh] Force IPv4 and IPv6 with an IPv4' markers: - 'doh' - 'monitoring' - 'exception' args: - '-4' - '-6' - '-H' - '193.70.85.11' - '-V' - 'doh.bortzmeyer.fr' - '-n' - 'framagit.org' retcode: 2 stderr: '' partstdout: 'IPv4 *or* IPv6' - exe: './check_doh' name: '[check_doh] Use IPv4 address and force IPv6' markers: - 'doh' - 'monitoring' - 'exception' args: - '-6' - '-H' - '193.70.85.11' - '-V' - 'doh.bortzmeyer.fr' - '-n' - 'framagit.org' retcode: 2 stderr: '' partstdout: 'litteral IPv4' - exe: './check_doh' name: '[check_doh] Use IPv6 address and force IPv4' markers: - 'doh' - 'monitoring' - 'exception' args: - '-4' - '-H' - '2001:41d0:302:2200::180' - '-V' - 'doh.bortzmeyer.fr' - '-n' - 'framagit.org' retcode: 2 stderr: '' partstdout: 'litteral IPv6' - exe: './check_doh' name: '[check_doh] Test there is the expected string' markers: - 'doh' - 'monitoring' - 'exception' args: - '-H' - 'doh.bortzmeyer.fr' - '-n' - 'ressources-pedagogiques.org' - '-e' - '2605:4500:2:245b::42' retcode: 0 stderr: '' partstdout: 'OK - No error' - exe: './check_doh' name: '[check_doh] Test there is *not* the expected string' markers: - 'doh' - 'monitoring' - 'exception' args: - '-H' - 'doh.bortzmeyer.fr' - '-n' - 'ressources-pedagogiques.org' - '-e' - 'foobar' retcode: 2 stderr: '' partstdout: 'Cannot find' ################################################################################ - exe: './homer.py' name: '[doh] HEAD and POST' markers: - 'doh' - 'exception' args: - '--head' - '--POST' - 'https://doh.bortzmeyer.fr' - 'framagit.org' retcode: 1 partstderr: 'POST or HEAD' stdout: '' - exe: './homer.py' name: '[doh] POST' markers: - 'doh' args: - '--POST' - 'https://doh.bortzmeyer.fr' - 'framagit.org' retcode: 0 stderr: '' partstdout: '2a01:4f8:' - exe: './homer.py' name: '[doh] HEAD' markers: - 'doh' args: - '--head' - 'https://doh.bortzmeyer.fr' - 'framagit.org' retcode: 0 stderr: '' partstdout: 'HEAD' - exe : './homer.py' name: '[doh] Multistreams with DoT (error)' markers: - 'doh' - 'streams' - 'exception' args: - '--multistreams' - '--dot' - 'dot.bortzmeyer.fr' - 'framagit.org' retcode: 1 partstderr: 'Multi-streams makes no sense for DoT' stdout: '' - exe : './homer.py' name: '[doh] Multistreams without input file (error)' markers: - 'doh' - 'streams' - 'exception' args: - '--multistreams' - 'dot.bortzmeyer.fr' - 'framagit.org' retcode: 1 partstderr: 'Multi-streams requires an input file' stdout: '' - exe : './homer.py' name: '[doh] Multistreams too many arguments (error)' markers: - 'doh' - 'streams' - 'exception' args: - '--multistreams' - '--file' - 'input_file' - 'dot.bortzmeyer.fr' - 'framagit.org' retcode: 1 partstderr: 'Wrong number of arguments' stdout: '' - exe : './homer.py' name: '[doh] Multistreams invalid URL' markers: - 'doh' - 'streams' - 'exception' args: - '--multistreams' - '--file' - 'input_file' - 'dot.bortzmeyer.fr' retcode: 1 partstderr: 'DoH requires a valid' stdout: '' - exe : './homer.py' name: '[doh] Multistreams with 1 request' markers: - 'doh' - 'streams' args: - '--multistreams' - '--file' - 'input_file' - 'https://doh.bortzmeyer.fr' 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'