tests.yaml 1.48 KB
Newer Older
Stephane Bortzmeyer's avatar
Stephane Bortzmeyer committed
1
---
Alexandre's avatar
Alexandre committed
2
tests:
Stephane Bortzmeyer's avatar
Stephane Bortzmeyer committed
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
- 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: ''
Alexandre's avatar
Alexandre committed
26
27
  partstdout: '2a01:4f8:'

Stephane Bortzmeyer's avatar
Stephane Bortzmeyer committed
28
29
30
31
32
33
34
35
- exe: './homer.py'
  args:
      - '--dot'
      - 'dot.bortzmeyer.fr'
      - 'framagit.org'

  retcode: 0
  stderr: ''
Alexandre's avatar
Alexandre committed
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
  partstdout: '2a01:4f8:'


- exe : './homer.py'
  args:
      - '--multistreams'
      - '--dot'
      - 'dot.bortzmeyer.fr'
      - 'framagit.org'
  retcode: 1
  partstderr: 'Multi-streams makes no sense for DoT'
  stdout: ''

- exe : './homer.py'
  args:
      - '--multistreams'
      - 'dot.bortzmeyer.fr'
      - 'framagit.org'
  retcode: 1
  partstderr: 'Multi-streams requires an input file'
  stdout: ''

- exe : './homer.py'
  args:
      - '--multistreams'
      - '--file'
      - 'input_file'
      - 'dot.bortzmeyer.fr'
      - 'framagit.org'
  retcode: 1
  partstderr: 'Wrong number of arguments'
  stdout: ''

- exe : './homer.py'
  args:
      - '--multistreams'
      - '--file'
      - 'input_file'
      - 'dot.bortzmeyer.fr'
  retcode: 1
  partstderr: 'DoH requires a valid'
  stdout: ''

- exe : './homer.py'
  args:
      - '--multistreams'
      - '--file'
      - 'input_file'
      - 'https://doh.bortzmeyer.fr'
  retcode: 0
  stderr: ''
  partstdout: 'NOERR'