tests.yaml 27.3 KB
Newer Older
Stephane Bortzmeyer's avatar
Stephane Bortzmeyer committed
1
---
2
config:
3
  timeout: 4
Alexandre's avatar
Alexandre committed
4
5
6
7
8
  markers:
      - "dot: test specific to DoT"
      - "doh: test specific to DoH"
      - "monitoring: test using monitoring"
      - "exception: test raising an exception"
Alexandre's avatar
Alexandre committed
9
      - "streams: test multistreams with DoH"
10
      - "check: test related to the compliance option --check"
11
12
      - "forceIPv4: test using the option -4"
      - "forceIPv6: test using the option -6"
Alexandre's avatar
Alexandre committed
13
      - "pipelining: test with --pipelining option"
14
      - "fail: mark test with a resolver currently failing our tests"
Alexandre's avatar
Alexandre committed
15
      - "slow: test that need time to run"
16

17
18
19
20
21
tests:
    - exe: './homer.py'
      args:
          - '-h'
      retcode: 0
Alexandre's avatar
Alexandre committed
22
      partstderr: 'url-or-servername [domain-name [DNS type]]'
23
      stdout: ''
Stephane Bortzmeyer's avatar
Stephane Bortzmeyer committed
24

25
26
27
28
    - exe: './homer.py'
      args:
          - '--zzz'
      retcode: 1
Alexandre's avatar
Alexandre committed
29
      partstderr: 'url-or-servername [domain-name [DNS type]]'
30
      stdout: ''
Stephane Bortzmeyer's avatar
Stephane Bortzmeyer committed
31

32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
    - 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:'
Stephane Bortzmeyer's avatar
Stephane Bortzmeyer committed
48

Alexandre's avatar
Alexandre committed
49
50
51
52
53
54
55
56
57
58
59
    - exe: './homer.py'
      markers:
          - 'exception'
      args:
          - '--dot'
          - 'https//doh.bortzmeyer.fr'
          - 'framagit.org'
      retcode: 1
      partstderr: 'not a name or'
      stdout: ''

60
61
62
63
64
###############################################################################

    - exe: './homer.py'
      name: '--check of a correct DoH'
      markers:
65
66
          - 'doh'
          - 'check'
67
68
69
70
71
72
73
74
75
76
      args:
          - '--check'
          - 'https://doh.bortzmeyer.fr/'
          - 'ressources-pedagogiques.org'
      retcode: 0
      stdout: "OK\n"

    - exe: './homer.py'
      name: '--check of a broken DoH'
      markers:
77
78
          - 'doh'
          - 'check'
79
80
81
82
83
84
85
86
87
88
89
      args:
          - '--check'
          - 'https://www.bortzmeyer.org/'
          - 'ressources-pedagogiques.org'
      retcode: 1
      stderr: ''
      stdout: "KO\n"

    - exe: './homer.py'
      name: '--check of a DoH with HEAD unimplemented'
      markers:
90
91
          - 'doh'
          - 'check'
92
93
94
95
96
97
98
      args:
          - '--check'
          - '--mandatory-level'
          - 'nicetohave'
          - 'https://doh.42l.fr/dns-query'
          - 'ressources-pedagogiques.org'
      retcode: 1
Alexandre's avatar
Alexandre committed
99
      partstderr: "Test HEAD: HTTP error 405: [No details]\n"
100
101
102
103
104
      stdout: "KO\n"

    - exe: './homer.py'
      name: '--check of a correct DoT'
      markers:
105
106
          - 'dot'
          - 'check'
107
108
109
110
111
112
113
114
115
      args:
          - '--check'
          - '--dot'
          - 'dot.bortzmeyer.fr'
          - 'ressources-pedagogiques.org'
      retcode: 0
      stderr: ''
      stdout: "OK\n"

Alexandre's avatar
Alexandre committed
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
    - exe: './homer.py'
      name: "[doh][check] Successcul check"
      markers:
          - 'doh'
          - 'check'
      args:
          - '--check'
          - 'https://dns.google/dns-query'
          - 'framagit.org'
      stderr: ''
      stdout: "OK\n"

    - exe: './homer.py'
      name: "[doh][fail][check] 502 Bad Gateway"
      markers:
          - 'doh'
          - 'check'
          - 'fail'
Alexandre's avatar
Alexandre committed
134
          - 'slow'
Alexandre's avatar
Alexandre committed
135
      timeout: 12
Alexandre's avatar
Alexandre committed
136
137
138
139
140
141
142
      args:
          - '--check'
          - 'https://doh.42l.fr/dns-query'
          - 'framagit.org'
      partstderr: 'Test truncated data: HTTP error 502'
      stdout: "KO\n"

Alexandre's avatar
Alexandre committed
143
    - exe: './homer.py'
Alexandre's avatar
Alexandre committed
144
      name: '[doh][check] Test that all the resolved IPs are tried, try a first IP'
Alexandre's avatar
Alexandre committed
145
      markers:
146
147
          - 'doh'
          - 'check'
Alexandre's avatar
Alexandre committed
148
      args:
Alexandre's avatar
Alexandre committed
149
          - '--debug'
Alexandre's avatar
Alexandre committed
150
151
          - '--check'
          - 'https://doh.bortzmeyer.fr'
152
          - 'www.afnic.fr'
Alexandre's avatar
Alexandre committed
153
154
155
      partstderr: "Connecting to hostname: 2001:41d0:302:2200::180"

    - exe: './homer.py'
Alexandre's avatar
Alexandre committed
156
      name: '[doh][check] Test that all the resolved IPs are tried, try another IP'
Alexandre's avatar
Alexandre committed
157
      markers:
158
159
          - 'doh'
          - 'check'
Alexandre's avatar
Alexandre committed
160
      args:
Alexandre's avatar
Alexandre committed
161
          - '--debug'
Alexandre's avatar
Alexandre committed
162
163
          - '--check'
          - 'https://doh.bortzmeyer.fr'
164
          - 'curl.haxx.se'
Alexandre's avatar
Alexandre committed
165
166
167
      partstderr: "Connecting to hostname: 193.70.85.11"

    - exe: './homer.py'
Alexandre's avatar
Alexandre committed
168
      name: '[dot][check] Test that all the resolved IPs are tried, try a first IP'
Alexandre's avatar
Alexandre committed
169
      markers:
170
171
          - 'dot'
          - 'check'
Alexandre's avatar
Alexandre committed
172
173
174
175
176
      args:
          - '-v'
          - '--check'
          - '--dot'
          - 'dot.bortzmeyer.fr'
177
178
          - 'www.afnic.fr'
      partstdout: "on 193.70.85.11 ...\nConnecting to ('193.70.85.11', 853) ..."
Alexandre's avatar
Alexandre committed
179
180

    - exe: './homer.py'
Alexandre's avatar
Alexandre committed
181
      name: '[doh][check] Test that all the resolved IPs are tried, try another IP'
Alexandre's avatar
Alexandre committed
182
      markers:
183
184
          - 'dot'
          - 'check'
Alexandre's avatar
Alexandre committed
185
186
187
188
189
      args:
          - '-v'
          - '--check'
          - '--dot'
          - 'dot.bortzmeyer.fr'
190
191
192
193
          - 'www.afnic.fr'
      partstdout: "on 2001:41d0:302:2200::180 ...\nConnecting to ('2001:41d0:302:2200::180', 853, 0, 0) ..."

    - exe: './homer.py'
Alexandre's avatar
Alexandre committed
194
      name: '[dot][check] Test all the IPs, force IPv4'
195
196
197
198
199
200
201
202
203
204
205
206
207
208
      markers:
          - 'dot'
          - 'check'
          - 'forceIPv4'
      args:
          - '-v'
          - '-4'
          - '--check'
          - '--dot'
          - 'dns.google'
          - 'framagit.org'
      partstdout: "on 8.8.8.8 ...\nConnecting to ('8.8.8.8', 853) ..."

    - exe: './homer.py'
Alexandre's avatar
Alexandre committed
209
      name: '[dot][check] Test all the IPs, force IPv4, check another IP'
210
211
212
213
214
215
216
217
218
219
220
221
222
223
      markers:
          - 'dot'
          - 'check'
          - 'forceIPv4'
      args:
          - '-v'
          - '-4'
          - '--check'
          - '--dot'
          - 'dns.google'
          - 'framagit.org'
      partstdout: "on 8.8.4.4 ...\nConnecting to ('8.8.4.4', 853) ..."

    - exe: './homer.py'
Alexandre's avatar
Alexandre committed
224
      name: '[dot][check] Test all the IPs, force IPv6'
225
226
227
228
229
230
231
232
233
234
235
236
237
238
      markers:
          - 'dot'
          - 'check'
          - 'forceIPv6'
      args:
          - '-v'
          - '-6'
          - '--check'
          - '--dot'
          - 'dns.google'
          - 'framagit.org'
      partstdout: "on 2001:4860:4860::8844 ...\nConnecting to ('2001:4860:4860::8844', 853, 0, 0) ..."

    - exe: './homer.py'
Alexandre's avatar
Alexandre committed
239
      name: '[dot][check] Test all the IPs, force IPv6, check another IP'
240
241
242
243
244
245
246
247
248
249
250
251
252
253
      markers:
          - 'dot'
          - 'check'
          - 'forceIPv6'
      args:
          - '-v'
          - '-6'
          - '--check'
          - '--dot'
          - 'dns.google'
          - 'framagit.org'
      partstdout: "on 2001:4860:4860::8888 ...\nConnecting to ('2001:4860:4860::8888', 853, 0, 0) ..."

    - exe: './homer.py'
Alexandre's avatar
Alexandre committed
254
      name: '[doh][check] Test all the IPs, force IPv4'
255
256
257
258
259
      markers:
          - 'doh'
          - 'check'
          - 'forceIPv4'
      args:
Alexandre's avatar
Alexandre committed
260
          - '--debug'
261
262
263
264
265
266
267
          - '-4'
          - '--check'
          - 'https://dns.google/dns-query'
          - 'www.afnic.fr'
      partstderr: "Connecting to hostname: 8.8.8.8"

    - exe: './homer.py'
Alexandre's avatar
Alexandre committed
268
      name: '[doh][check] Test all the IPs, force IPv4, check another IP'
269
270
271
272
273
      markers:
          - 'doh'
          - 'check'
          - 'forceIPv4'
      args:
Alexandre's avatar
Alexandre committed
274
          - '--debug'
275
276
277
278
279
280
281
          - '-4'
          - '--check'
          - 'https://dns.google/dns-query'
          - 'curl.haxx.se'
      partstderr: "Connecting to hostname: 8.8.4.4"

    - exe: './homer.py'
Alexandre's avatar
Alexandre committed
282
      name: '[doh][check] Test all the IPs, force IPv6'
283
284
285
286
287
      markers:
          - 'doh'
          - 'check'
          - 'forceIPv6'
      args:
Alexandre's avatar
Alexandre committed
288
          - '--debug'
289
290
291
292
293
294
295
          - '-6'
          - '--check'
          - 'https://dns.google/dns-query'
          - 'www.afnic.fr'
      partstderr: "Connecting to hostname: 2001:4860:4860::8888"

    - exe: './homer.py'
Alexandre's avatar
Alexandre committed
296
      name: '[doh][check] Test all the IPs, force IPv6, check another IP'
297
298
299
300
301
      markers:
          - 'doh'
          - 'check'
          - 'forceIPv6'
      args:
Alexandre's avatar
Alexandre committed
302
          - '--debug'
303
304
305
306
307
          - '-6'
          - '--check'
          - 'https://dns.google/dns-query'
          - 'curl.haxx.se'
      partstderr: "Connecting to hostname: 2001:4860:4860::8844"
Alexandre's avatar
Alexandre committed
308

Alexandre's avatar
Alexandre committed
309
310
311
312
313
314
    - exe: './homer.py'
      name: '[dot][check] Test all IPs on brok.sources.org'
      timeout: 6
      markers:
          - 'dot'
          - 'check'
Alexandre's avatar
Alexandre committed
315
          - 'slow'
Alexandre's avatar
Alexandre committed
316
317
318
319
320
321
      args:
          - '-k'
          - '--check'
          - '--dot'
          - 'brok.sources.org'
          - 'in'
322
323
324
325
326
327
328
329
      partstdout: 'Could not connect to'

    - exe: './homer.py'
      name: '[dot][check] Test all IPs on brok.sources.org, get a KO'
      timeout: 6
      markers:
          - 'dot'
          - 'check'
Alexandre's avatar
Alexandre committed
330
          - 'slow'
331
332
333
334
335
336
      args:
          - '-k'
          - '--check'
          - '--dot'
          - 'brok.sources.org'
          - 'in'
337
      partstdout: "KO\n"
Alexandre's avatar
Alexandre committed
338

339

340
341
342
343
###############################################################################

    - exe: './homer.py'
      name: '[doh] Force IPv4 and IPv6'
Alexandre's avatar
Alexandre committed
344
345
346
      markers:
          - 'doh'
          - 'exception'
347
348
          - 'forceIPv4'
          - 'forceIPv6'
349
350
351
352
353
354
355
356
357
358
359
      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'
Alexandre's avatar
Alexandre committed
360
361
362
      markers:
          - 'dot'
          - 'exception'
363
364
          - 'forceIPv4'
          - 'forceIPv6'
365
366
367
368
369
370
371
372
373
374
375
376
      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)'
Alexandre's avatar
Alexandre committed
377
378
379
      markers:
          - 'dot'
          - 'exception'
380
381
382
383
384
385
386
387
388
389
      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)'
Alexandre's avatar
Alexandre committed
390
391
      markers:
          - 'dot'
392
393
394
395
396
397
398
399
400
401
402
      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)'
Alexandre's avatar
Alexandre committed
403
404
405
      markers:
          - 'dot'
          - 'exception'
406
          - 'forceIPv6'
407
408
409
410
411
412
413
414
415
416
417
418
      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)'
Alexandre's avatar
Alexandre committed
419
420
421
      markers:
          - 'dot'
          - 'exception'
422
423
424
425
426
427
428
429
430
431
      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)'
Alexandre's avatar
Alexandre committed
432
433
      markers:
          - 'dot'
434
435
436
437
438
439
440
441
442
443
444
      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)'
Alexandre's avatar
Alexandre committed
445
446
447
      markers:
          - 'dot'
          - 'exception'
448
          - 'forceIPv4'
449
450
451
452
453
454
455
456
457
458
      args:
          - '-4'
          - '--insecure'
          - '--dot'
          - '2001:620:0:ff::2'
          - 'framagit.org'
      retcode: 1
      partstderr: 'litteral IPv6'
      stdout: ''

Alexandre's avatar
Alexandre committed
459
460
461
462
    - exe: './homer.py'
      name: '[dot] Loop on all ips on connection error (brok.sources.org)'
      markers:
          - 'dot'
Alexandre's avatar
Alexandre committed
463
          - 'slow'
Alexandre's avatar
Alexandre committed
464
465
466
467
468
469
470
471
472
473
474
475
476
477
      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'
478
          - 'forceIPv6'
Alexandre's avatar
Alexandre committed
479
          - 'slow'
Alexandre's avatar
Alexandre committed
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
      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: ''

504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
    - exe: './homer.py'
      name: '[dot] Authenticates with the key (SPKI)'
      markers:
          - 'dot'
      timeout: 5
      args:
          - '--dot'
          - '--key'
          - '62lKu9HsDVbyiPenApnc4sfmSYTHOVfFgL3pyB+cBL4='
          - '145.100.185.15'
          - 'sinodun.com'
      retcode: 0
      stderr: ''

    - exe: './homer.py'
      name: '[dot] Authenticates with the WRONG key (SPKI)'
      markers:
          - 'dot'
      timeout: 5
      args:
          - '--dot'
          - '--key'
          - '62pKu9HsDVbyiPenApnc4sfmSYTHOVfFgL3pyB+cBL5='
          - '145.100.185.15'
          - 'sinodun.com'
      retcode: 1
      partstderr: 'Key error'

Alexandre's avatar
Alexandre committed
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574

################################################################################

    - exe: './homer.py'
      name: '[dot][pipelining] Pipelining only with dot'
      markers:
          - 'pipelining'
      args:
          - '--pipelining'
          - 'dot.bortzmeyer.fr'
      retcode: 1
      partstderr: 'Pipelining is only accepted for DoT'
      stdout: ''

    - exe: './homer.py'
      name: '[dot][pipelining] Pipelining only with input file'
      markers:
          - 'pipelining'
      args:
          - '--dot'
          - '--pipelining'
          - 'dot.bortzmeyer.fr'
      retcode: 1
      partstderr: 'Pipelining requires an input file'
      stdout: ''

    - exe: './homer.py'
      name: '[dot][pipelining] 5 requests from input file'
      markers:
          - 'dot'
          - 'pipelining'
      args:
          - '--dot'
          - '--pipelining'
          - '--file'
          - 'input_file'
          - '--repeat'
          - '5'
          - 'dot.bortzmeyer.fr'
      retcode: 0
      stderr: ''
      partstdout: "OK\n"

575
576
577

################################################################################

578
    - exe: './homer.py'
579
      name: '[dot][check] Resolver returning a malformed DNS message'
580
581
582
      markers:
          - 'dot'
          - 'check'
583
          - 'exception'
584
585
586
587
588
      args:
          - '--dot'
          - '--check'
          - 'dns.digitale-gesellschaft.ch'
          - 'framagit.org'
589
590
591
      retcode: 0
      stderr: ''
      stdout: "OK\n"
592

Alexandre's avatar
Alexandre committed
593
594
595
596
597
598
599
600
601
602
603
604
605
    - exe: './homer.py'
      name: '[dot][fail] Resolver with an invalid certificate'
      markers:
          - 'dot'
          - 'fail'
      args:
          - '--dot'
          - '-v'
          - 'ns0.ldn-fai.net'
          - 'framagit.org'
      retcode: 1
      partstdout: 'certificate verify failed'

606
607
608
609
610
################################################################################

     # check_dot
    - exe: './check_dot'
      name: '[check_dot] Use an IPv6'
Alexandre's avatar
Alexandre committed
611
612
613
      markers:
          - 'dot'
          - 'monitoring'
614
615
616
617
618
619
620
621
622
623
624
625
626
      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'
Alexandre's avatar
Alexandre committed
627
628
629
      markers:
          - 'dot'
          - 'monitoring'
630
          - 'forceIPv6'
631
632
633
634
635
636
637
638
639
640
641
642
643
644
      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'
Alexandre's avatar
Alexandre committed
645
646
647
      markers:
          - 'dot'
          - 'monitoring'
648
649
650
651
652
653
654
655
656
657
658
659
660
      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'
Alexandre's avatar
Alexandre committed
661
662
663
      markers:
          - 'dot'
          - 'monitoring'
664
          - 'forceIPv4'
665
666
667
668
669
670
671
672
673
674
675
676
677
678
      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'
Alexandre's avatar
Alexandre committed
679
680
681
682
      markers:
          - 'dot'
          - 'monitoring'
          - 'exception'
683
684
          - 'forceIPv4'
          - 'forceIPv6'
685
686
687
688
689
690
691
692
693
      args:
          - '-4'
          - '-6'
          - '-H'
          - '2001:41d0:302:2200::180'
          - '-V'
          - 'dot.bortzmeyer.fr'
          - '-n'
          - 'framagit.org'
694
695
696
      retcode: 2
      stderr: ''
      partstout: 'IPv4 *or* IPv6'
697
698
699

    - exe: './check_dot'
      name: '[check_dot] Force IPv4 and IPv6 with an IPv4'
Alexandre's avatar
Alexandre committed
700
701
702
703
      markers:
          - 'dot'
          - 'monitoring'
          - 'exception'
704
705
          - 'forceIPv4'
          - 'forceIPv6'
706
707
708
709
710
711
712
713
714
      args:
          - '-4'
          - '-6'
          - '-H'
          - '193.70.85.11'
          - '-V'
          - 'dot.bortzmeyer.fr'
          - '-n'
          - 'framagit.org'
715
716
717
      retcode: 2
      stderr: ''
      partstdout: 'IPv4 *or* IPv6'
718
719
720

    - exe: './check_dot'
      name: '[check_dot] Use IPv4 address and force IPv6'
Alexandre's avatar
Alexandre committed
721
722
723
724
      markers:
          - 'dot'
          - 'monitoring'
          - 'exception'
725
          - 'forceIPv6'
726
727
728
729
730
731
732
733
      args:
          - '-6'
          - '-H'
          - '193.70.85.11'
          - '-V'
          - 'dot.bortzmeyer.fr'
          - '-n'
          - 'framagit.org'
734
735
736
      retcode: 2
      stderr: ''
      partstdout: 'litteral IPv4'
737
738
739

    - exe: './check_dot'
      name: '[check_dot] Use IPv6 address and force IPv4'
Alexandre's avatar
Alexandre committed
740
741
742
743
      markers:
          - 'dot'
          - 'monitoring'
          - 'exception'
744
          - 'forceIPv4'
745
746
747
748
749
750
751
752
      args:
          - '-4'
          - '-H'
          - '2001:41d0:302:2200::180'
          - '-V'
          - 'dot.bortzmeyer.fr'
          - '-n'
          - 'framagit.org'
753
754
755
      retcode: 2
      stderr: ''
      partstdout: 'litteral IPv6'
756

757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
    - 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'

791
792
793
794
795
796

################################################################################

     # check_doh
    - exe: './check_doh'
      name: '[check_doh] Use an IPv6'
Alexandre's avatar
Alexandre committed
797
798
799
      markers:
          - 'doh'
          - 'monitoring'
800
801
802
803
804
805
806
807
808
809
810
811
812
      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'
Alexandre's avatar
Alexandre committed
813
814
815
      markers:
          - 'doh'
          - 'monitoring'
816
          - 'forceIPv6'
817
818
819
820
821
822
823
824
825
826
827
828
829
830
      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'
Alexandre's avatar
Alexandre committed
831
832
833
      markers:
          - 'doh'
          - 'monitoring'
834
835
836
837
838
839
840
841
842
843
844
845
846
      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'
Alexandre's avatar
Alexandre committed
847
848
849
      markers:
          - 'doh'
          - 'monitoring'
850
          - 'forceIPv4'
851
852
853
854
855
856
857
858
859
860
861
862
863
864
      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'
Alexandre's avatar
Alexandre committed
865
866
867
868
      markers:
          - 'doh'
          - 'monitoring'
          - 'exception'
869
870
          - 'forceIPv4'
          - 'forceIPv6'
871
872
873
874
875
876
877
878
879
      args:
          - '-4'
          - '-6'
          - '-H'
          - '2001:41d0:302:2200::180'
          - '-V'
          - 'doh.bortzmeyer.fr'
          - '-n'
          - 'framagit.org'
880
881
882
      retcode: 2
      stderr: ''
      partstdout: 'IPv4 *or* IPv6'
883
884
885

    - exe: './check_doh'
      name: '[check_doh] Force IPv4 and IPv6 with an IPv4'
Alexandre's avatar
Alexandre committed
886
887
888
889
      markers:
          - 'doh'
          - 'monitoring'
          - 'exception'
890
891
          - 'forceIPv4'
          - 'forceIPv6'
892
893
894
895
896
897
898
899
900
      args:
          - '-4'
          - '-6'
          - '-H'
          - '193.70.85.11'
          - '-V'
          - 'doh.bortzmeyer.fr'
          - '-n'
          - 'framagit.org'
901
902
903
      retcode: 2
      stderr: ''
      partstdout: 'IPv4 *or* IPv6'
904
905
906

    - exe: './check_doh'
      name: '[check_doh] Use IPv4 address and force IPv6'
Alexandre's avatar
Alexandre committed
907
908
909
910
      markers:
          - 'doh'
          - 'monitoring'
          - 'exception'
911
          - 'forceIPv6'
912
913
914
915
916
917
918
919
      args:
          - '-6'
          - '-H'
          - '193.70.85.11'
          - '-V'
          - 'doh.bortzmeyer.fr'
          - '-n'
          - 'framagit.org'
920
921
922
      retcode: 2
      stderr: ''
      partstdout: 'litteral IPv4'
923
924
925

    - exe: './check_doh'
      name: '[check_doh] Use IPv6 address and force IPv4'
Alexandre's avatar
Alexandre committed
926
927
928
929
      markers:
          - 'doh'
          - 'monitoring'
          - 'exception'
930
          - 'forceIPv4'
931
932
933
934
935
936
937
938
      args:
          - '-4'
          - '-H'
          - '2001:41d0:302:2200::180'
          - '-V'
          - 'doh.bortzmeyer.fr'
          - '-n'
          - 'framagit.org'
939
940
941
      retcode: 2
      stderr: ''
      partstdout: 'litteral IPv6'
942

943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
    - 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'

Alexandre's avatar
Alexandre committed
977
978
979
980
################################################################################

    - exe: './homer.py'
      name: '[doh] HEAD and POST'
Alexandre's avatar
Alexandre committed
981
982
983
      markers:
          - 'doh'
          - 'exception'
Alexandre's avatar
Alexandre committed
984
985
986
987
988
989
990
991
992
993
      args:
          - '--head'
          - '--POST'
          - 'https://doh.bortzmeyer.fr'
          - 'framagit.org'
      retcode: 1
      partstderr: 'POST or HEAD'
      stdout: ''

    - exe: './homer.py'
Alexandre's avatar
Alexandre committed
994
995
996
997
998
999
1000
      name: '[doh] POST --post'
      markers:
          - 'doh'
      args:
          - '--post'
          - 'https://doh.bortzmeyer.fr'
          - 'framagit.org'