tests.yaml 22.2 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"
9
      - "check: test related to the compliance option --check"
10
11
      - "forceIPv4: test using the option -4"
      - "forceIPv6: test using the option -6"
12
      - "fail: mark test with a resolver currently failing our tests"
13

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

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

29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
    - 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
45

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

57
58
59
60
61
###############################################################################

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

    - exe: './homer.py'
      name: '--check of a broken DoH'
      markers:
74
75
          - 'doh'
          - 'check'
76
77
78
79
80
81
82
83
84
85
86
      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:
87
88
          - 'doh'
          - 'check'
89
90
91
92
93
94
95
      args:
          - '--check'
          - '--mandatory-level'
          - 'nicetohave'
          - 'https://doh.42l.fr/dns-query'
          - 'ressources-pedagogiques.org'
      retcode: 1
Alexandre's avatar
Alexandre committed
96
      partstderr: "Test HEAD: HTTP error 405: [No details]\n"
97
98
99
100
101
      stdout: "KO\n"

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

Alexandre's avatar
Alexandre committed
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
    - 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'
      timeout: 10
      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
139
    - exe: './homer.py'
Alexandre's avatar
Alexandre committed
140
      name: '[doh][check] Test that all the resolved IPs are tried, try a first IP'
Alexandre's avatar
Alexandre committed
141
      markers:
142
143
          - 'doh'
          - 'check'
Alexandre's avatar
Alexandre committed
144
145
146
147
      args:
          - '-v'
          - '--check'
          - 'https://doh.bortzmeyer.fr'
148
          - 'www.afnic.fr'
Alexandre's avatar
Alexandre committed
149
150
151
      partstderr: "Connecting to hostname: 2001:41d0:302:2200::180"

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

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

    - exe: './homer.py'
Alexandre's avatar
Alexandre committed
177
      name: '[doh][check] Test that all the resolved IPs are tried, try another IP'
Alexandre's avatar
Alexandre committed
178
      markers:
179
180
          - 'dot'
          - 'check'
Alexandre's avatar
Alexandre committed
181
182
183
184
185
      args:
          - '-v'
          - '--check'
          - '--dot'
          - 'dot.bortzmeyer.fr'
186
187
188
189
          - '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
190
      name: '[dot][check] Test all the IPs, force IPv4'
191
192
193
194
195
196
197
198
199
200
201
202
203
204
      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
205
      name: '[dot][check] Test all the IPs, force IPv4, check another IP'
206
207
208
209
210
211
212
213
214
215
216
217
218
219
      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
220
      name: '[dot][check] Test all the IPs, force IPv6'
221
222
223
224
225
226
227
228
229
230
231
232
233
234
      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
235
      name: '[dot][check] Test all the IPs, force IPv6, check another IP'
236
237
238
239
240
241
242
243
244
245
246
247
248
249
      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
250
      name: '[doh][check] Test all the IPs, force IPv4'
251
252
253
254
255
256
257
258
259
260
261
262
263
      markers:
          - 'doh'
          - 'check'
          - 'forceIPv4'
      args:
          - '-v'
          - '-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
264
      name: '[doh][check] Test all the IPs, force IPv4, check another IP'
265
266
267
268
269
270
271
272
273
274
275
276
277
      markers:
          - 'doh'
          - 'check'
          - 'forceIPv4'
      args:
          - '-v'
          - '-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
278
      name: '[doh][check] Test all the IPs, force IPv6'
279
280
281
282
283
284
285
286
287
288
289
290
291
      markers:
          - 'doh'
          - 'check'
          - 'forceIPv6'
      args:
          - '-v'
          - '-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
292
      name: '[doh][check] Test all the IPs, force IPv6, check another IP'
293
294
295
296
297
298
299
300
301
302
303
      markers:
          - 'doh'
          - 'check'
          - 'forceIPv6'
      args:
          - '-v'
          - '-6'
          - '--check'
          - 'https://dns.google/dns-query'
          - 'curl.haxx.se'
      partstderr: "Connecting to hostname: 2001:4860:4860::8844"
Alexandre's avatar
Alexandre committed
304

Alexandre's avatar
Alexandre committed
305
306
307
308
309
310
311
312
313
314
315
316
    - exe: './homer.py'
      name: '[dot][check] Test all IPs on brok.sources.org'
      timeout: 6
      markers:
          - 'dot'
          - 'check'
      args:
          - '-k'
          - '--check'
          - '--dot'
          - 'brok.sources.org'
          - 'in'
317
318
319
320
321
322
323
324
325
326
327
328
329
330
      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'
      args:
          - '-k'
          - '--check'
          - '--dot'
          - 'brok.sources.org'
          - 'in'
331
      partstdout: "KO\n"
Alexandre's avatar
Alexandre committed
332

333

334
335
336
337
###############################################################################

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

Alexandre's avatar
Alexandre committed
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
    - 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'
471
          - 'forceIPv6'
Alexandre's avatar
Alexandre committed
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
      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: ''

496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
    - 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'

524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
    - exe: './homer.py'
      name: '[dot][check][fail] Resolver returning a malformed DNS message'
      markers:
          - 'dot'
          - 'check'
          - 'fail'
      args:
          - '--dot'
          - '--check'
          - 'dns.digitale-gesellschaft.ch'
          - 'framagit.org'
      retcode: 1
      partstderr: 'Received DNS message is malformed'
      stdout: "KO\n"

Alexandre's avatar
Alexandre committed
539
540
541
542
543
544
545
546
547
548
549
550
551
    - 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'

552
553
554
555
556
################################################################################

     # check_dot
    - exe: './check_dot'
      name: '[check_dot] Use an IPv6'
Alexandre's avatar
Alexandre committed
557
558
559
      markers:
          - 'dot'
          - 'monitoring'
560
561
562
563
564
565
566
567
568
569
570
571
572
      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
573
574
575
      markers:
          - 'dot'
          - 'monitoring'
576
          - 'forceIPv6'
577
578
579
580
581
582
583
584
585
586
587
588
589
590
      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
591
592
593
      markers:
          - 'dot'
          - 'monitoring'
594
595
596
597
598
599
600
601
602
603
604
605
606
      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
607
608
609
      markers:
          - 'dot'
          - 'monitoring'
610
          - 'forceIPv4'
611
612
613
614
615
616
617
618
619
620
621
622
623
624
      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
625
626
627
628
      markers:
          - 'dot'
          - 'monitoring'
          - 'exception'
629
630
          - 'forceIPv4'
          - 'forceIPv6'
631
632
633
634
635
636
637
638
639
      args:
          - '-4'
          - '-6'
          - '-H'
          - '2001:41d0:302:2200::180'
          - '-V'
          - 'dot.bortzmeyer.fr'
          - '-n'
          - 'framagit.org'
640
641
642
      retcode: 2
      stderr: ''
      partstout: 'IPv4 *or* IPv6'
643
644
645

    - exe: './check_dot'
      name: '[check_dot] Force IPv4 and IPv6 with an IPv4'
Alexandre's avatar
Alexandre committed
646
647
648
649
      markers:
          - 'dot'
          - 'monitoring'
          - 'exception'
650
651
          - 'forceIPv4'
          - 'forceIPv6'
652
653
654
655
656
657
658
659
660
      args:
          - '-4'
          - '-6'
          - '-H'
          - '193.70.85.11'
          - '-V'
          - 'dot.bortzmeyer.fr'
          - '-n'
          - 'framagit.org'
661
662
663
      retcode: 2
      stderr: ''
      partstdout: 'IPv4 *or* IPv6'
664
665
666

    - exe: './check_dot'
      name: '[check_dot] Use IPv4 address and force IPv6'
Alexandre's avatar
Alexandre committed
667
668
669
670
      markers:
          - 'dot'
          - 'monitoring'
          - 'exception'
671
          - 'forceIPv6'
672
673
674
675
676
677
678
679
      args:
          - '-6'
          - '-H'
          - '193.70.85.11'
          - '-V'
          - 'dot.bortzmeyer.fr'
          - '-n'
          - 'framagit.org'
680
681
682
      retcode: 2
      stderr: ''
      partstdout: 'litteral IPv4'
683
684
685

    - exe: './check_dot'
      name: '[check_dot] Use IPv6 address and force IPv4'
Alexandre's avatar
Alexandre committed
686
687
688
689
      markers:
          - 'dot'
          - 'monitoring'
          - 'exception'
690
          - 'forceIPv4'
691
692
693
694
695
696
697
698
      args:
          - '-4'
          - '-H'
          - '2001:41d0:302:2200::180'
          - '-V'
          - 'dot.bortzmeyer.fr'
          - '-n'
          - 'framagit.org'
699
700
701
      retcode: 2
      stderr: ''
      partstdout: 'litteral IPv6'
702

703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
    - 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'

737
738
739
740
741
742

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

     # check_doh
    - exe: './check_doh'
      name: '[check_doh] Use an IPv6'
Alexandre's avatar
Alexandre committed
743
744
745
      markers:
          - 'doh'
          - 'monitoring'
746
747
748
749
750
751
752
753
754
755
756
757
758
      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
759
760
761
      markers:
          - 'doh'
          - 'monitoring'
762
          - 'forceIPv6'
763
764
765
766
767
768
769
770
771
772
773
774
775
776
      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
777
778
779
      markers:
          - 'doh'
          - 'monitoring'
780
781
782
783
784
785
786
787
788
789
790
791
792
      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
793
794
795
      markers:
          - 'doh'
          - 'monitoring'
796
          - 'forceIPv4'
797
798
799
800
801
802
803
804
805
806
807
808
809
810
      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
811
812
813
814
      markers:
          - 'doh'
          - 'monitoring'
          - 'exception'
815
816
          - 'forceIPv4'
          - 'forceIPv6'
817
818
819
820
821
822
823
824
825
      args:
          - '-4'
          - '-6'
          - '-H'
          - '2001:41d0:302:2200::180'
          - '-V'
          - 'doh.bortzmeyer.fr'
          - '-n'
          - 'framagit.org'
826
827
828
      retcode: 2
      stderr: ''
      partstdout: 'IPv4 *or* IPv6'
829
830
831

    - exe: './check_doh'
      name: '[check_doh] Force IPv4 and IPv6 with an IPv4'
Alexandre's avatar
Alexandre committed
832
833
834
835
      markers:
          - 'doh'
          - 'monitoring'
          - 'exception'
836
837
          - 'forceIPv4'
          - 'forceIPv6'
838
839
840
841
842
843
844
845
846
      args:
          - '-4'
          - '-6'
          - '-H'
          - '193.70.85.11'
          - '-V'
          - 'doh.bortzmeyer.fr'
          - '-n'
          - 'framagit.org'
847
848
849
      retcode: 2
      stderr: ''
      partstdout: 'IPv4 *or* IPv6'
850
851
852

    - exe: './check_doh'
      name: '[check_doh] Use IPv4 address and force IPv6'
Alexandre's avatar
Alexandre committed
853
854
855
856
      markers:
          - 'doh'
          - 'monitoring'
          - 'exception'
857
          - 'forceIPv6'
858
859
860
861
862
863
864
865
      args:
          - '-6'
          - '-H'
          - '193.70.85.11'
          - '-V'
          - 'doh.bortzmeyer.fr'
          - '-n'
          - 'framagit.org'
866
867
868
      retcode: 2
      stderr: ''
      partstdout: 'litteral IPv4'
869
870
871

    - exe: './check_doh'
      name: '[check_doh] Use IPv6 address and force IPv4'
Alexandre's avatar
Alexandre committed
872
873
874
875
      markers:
          - 'doh'
          - 'monitoring'
          - 'exception'
876
          - 'forceIPv4'
877
878
879
880
881
882
883
884
      args:
          - '-4'
          - '-H'
          - '2001:41d0:302:2200::180'
          - '-V'
          - 'doh.bortzmeyer.fr'
          - '-n'
          - 'framagit.org'
885
886
887
      retcode: 2
      stderr: ''
      partstdout: 'litteral IPv6'
888

889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
    - 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
923
924
925
926
################################################################################

    - exe: './homer.py'
      name: '[doh] HEAD and POST'
Alexandre's avatar
Alexandre committed
927
928
929
      markers:
          - 'doh'
          - 'exception'
Alexandre's avatar
Alexandre committed
930
931
932
933
934
935
936
937
938
939
940
      args:
          - '--head'
          - '--POST'
          - 'https://doh.bortzmeyer.fr'
          - 'framagit.org'
      retcode: 1
      partstderr: 'POST or HEAD'
      stdout: ''

    - exe: './homer.py'
      name: '[doh] POST'
Alexandre's avatar
Alexandre committed
941
942
      markers:
          - 'doh'
Alexandre's avatar
Alexandre committed
943
944
945
946
947
948
949
950
951
952
      args:
          - '--POST'
          - 'https://doh.bortzmeyer.fr'
          - 'framagit.org'
      retcode: 0
      stderr: ''
      partstdout: '2a01:4f8:'

    - exe: './homer.py'
      name: '[doh] HEAD'
Alexandre's avatar
Alexandre committed
953
954
      markers:
          - 'doh'
Alexandre's avatar
Alexandre committed
955
956
957
958
959
960
961
      args:
          - '--head'
          - 'https://doh.bortzmeyer.fr'
          - 'framagit.org'
      retcode: 0
      stderr: ''
      partstdout: 'HEAD'