check_expire/tests.yaml

195 lines
3.5 KiB
YAML
Raw Normal View History

2021-07-05 20:49:49 +02:00
# Run these tests from test_exe_matrix (reference Web site is
# <https://framagit.org/feth/test_exe_matrix>). You can install it
# with 'pip3 install test_exe_matrix'.
---
config:
timeout: 20
tests:
- exe: './check_expire'
args:
- '-h'
retcode: 0
partstdout: '-H domain-name'
- exe: './check_expire'
args:
- '--zzz'
retcode: 3
partstdout: 'option --zzz not recognized'
- exe: './check_expire'
args:
- '-c'
- 'foobar'
- '-H'
- 'bortzmeyer.org'
retcode: 1
partstderr: 'ValueError'
# 2021-07-05: no RDAP server for this TLD
- exe: './check_expire'
args:
- '-H'
- 'bie.re'
2021-07-07 11:57:27 +02:00
retcode: 3
2021-07-05 20:49:49 +02:00
partstdout: 'No RDAP server'
# 2021-07-05: no expiration in RDAP for this TLD (but there is one
# in whois)
- exe: './check_expire'
args:
- '-H'
- 'hopkaup.is'
retcode: 2
partstdout: 'No expiration found'
2021-07-07 11:57:27 +02:00
# Far away and slow, timeout is expected
- exe: './check_expire'
args:
- '-t'
- '1'
- '-H'
- 'nic.ar'
retcode: 3
partstdout: 'Timeout'
2021-07-05 20:49:49 +02:00
- exe: './check_expire'
args:
- '-H'
- 'bortzmeyer.org'
retcode: 0
stderr: ''
partstdout: 'OK'
- exe: './check_expire'
args:
- '-v'
- '-H'
- 'bortzmeyer.org'
retcode: 0
stderr: ''
partstdout: 'RDAP server is'
2021-07-07 12:08:37 +02:00
- exe: './check_expire'
args:
- '-u'
- '-H'
- 'bortzmeyer.org'
retcode: 0
stderr: ''
# TODO how to test we get an integer?
2021-07-05 20:49:49 +02:00
- exe: './check_expire'
args:
- '-c'
- '1000'
- '-H'
- 'sources.org'
retcode: 2
stderr: ''
partstdout: 'HURRY UP'
- exe: './check_expire'
args:
- '-w'
- '1000'
- '-H'
- 'sources.org'
retcode: 1
stderr: ''
partstdout: 'renew now'
# Now, test various RDAP servers
# Verisign
- exe: './check_expire'
args:
- '-H'
- 'nagios.com'
retcode: 0
stderr: ''
# CentralNIC
- exe: './check_expire'
args:
- '-H'
- 'botsin.space'
retcode: 0
stderr: ''
# Fred
- exe: './check_expire'
args:
- '-H'
- 'turris.cz'
retcode: 0
stderr: ''
# Afnic
- exe: './check_expire'
args:
- '-H'
- 'brest.bzh'
retcode: 0
stderr: ''
# Donuts
- exe: './check_expire'
args:
- '-H'
- 'mastodon.social'
retcode: 0
stderr: ''
# Iran, expiration date in the past
- exe: './check_expire'
args:
- '-H'
- 'nic.pars'
retcode: 2
partstdout: "already expired"
stderr: ''
# Brazil
- exe: './check_expire'
args:
- '-H'
- 'nic.globo'
retcode: 0
stderr: ''
# Fury (Canada)
- exe: './check_expire'
args:
- '-H'
- 'blackbox.kiwi'
retcode: 0
stderr: ''
# JPRS
- exe: './check_expire'
args:
- '-H'
- 'nic.jprs'
retcode: 0
stderr: ''
# Nominet
- exe: './check_expire'
args:
- '-H'
- 'nic.abogado'
retcode: 0
stderr: ''
# .at
- exe: './check_expire'
args:
- '-H'
- 'nic.wien'
retcode: 0
stderr: ''