tests.yaml 21.9 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"
Alexandre's avatar
Alexandre committed
12
      - "pipelining: test with --pipelining option"
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
    - exe: './homer.py'
      args:
          - '--zzz'
      retcode: 1
26
      partstderr: 'option --zzz not recognized'
27
      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
74
      args:
          - '--check'
          - 'https://doh.bortzmeyer.fr/'
          - 'ressources-pedagogiques.org'
      retcode: 0
      stderr: ''
      stdout: "OK\n"

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

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

Alexandre's avatar
Alexandre committed
114
    - exe: './homer.py'
Alexandre's avatar
Alexandre committed
115
      name: '[doh][check] Test that all the resolved IPs are tried, try a first IP'
Alexandre's avatar
Alexandre committed
116
      markers:
117
118
          - 'doh'
          - 'check'
Alexandre's avatar
Alexandre committed
119
120
121
122
      args:
          - '-v'
          - '--check'
          - 'https://doh.bortzmeyer.fr'
123
          - 'www.afnic.fr'
Alexandre's avatar
Alexandre committed
124
125
126
      partstderr: "Connecting to hostname: 2001:41d0:302:2200::180"

    - exe: './homer.py'
Alexandre's avatar
Alexandre committed
127
      name: '[doh][check] Test that all the resolved IPs are tried, try another IP'
Alexandre's avatar
Alexandre committed
128
      markers:
129
130
          - 'doh'
          - 'check'
Alexandre's avatar
Alexandre committed
131
132
133
134
      args:
          - '-v'
          - '--check'
          - 'https://doh.bortzmeyer.fr'
135
          - 'curl.haxx.se'
Alexandre's avatar
Alexandre committed
136
137
138
      partstderr: "Connecting to hostname: 193.70.85.11"

    - exe: './homer.py'
Alexandre's avatar
Alexandre committed
139
      name: '[dot][check] Test that all the resolved IPs are tried, try a first IP'
Alexandre's avatar
Alexandre committed
140
      markers:
141
142
          - 'dot'
          - 'check'
Alexandre's avatar
Alexandre committed
143
144
145
146
147
      args:
          - '-v'
          - '--check'
          - '--dot'
          - 'dot.bortzmeyer.fr'
148
149
          - 'www.afnic.fr'
      partstdout: "on 193.70.85.11 ...\nConnecting to ('193.70.85.11', 853) ..."
Alexandre's avatar
Alexandre committed
150
151

    - 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
          - 'dot'
          - 'check'
Alexandre's avatar
Alexandre committed
156
157
158
159
160
      args:
          - '-v'
          - '--check'
          - '--dot'
          - 'dot.bortzmeyer.fr'
161
162
163
164
          - '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
165
      name: '[dot][check] Test all the IPs, force IPv4'
166
167
168
169
170
171
172
173
174
175
176
177
178
179
      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
180
      name: '[dot][check] Test all the IPs, force IPv4, check another IP'
181
182
183
184
185
186
187
188
189
190
191
192
193
194
      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
195
      name: '[dot][check] Test all the IPs, force IPv6'
196
197
198
199
200
201
202
203
204
205
206
207
208
209
      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
210
      name: '[dot][check] Test all the IPs, force IPv6, check another IP'
211
212
213
214
215
216
217
218
219
220
221
222
223
224
      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
225
      name: '[doh][check] Test all the IPs, force IPv4'
226
227
228
229
230
231
232
233
234
235
236
237
238
      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
239
      name: '[doh][check] Test all the IPs, force IPv4, check another IP'
240
241
242
243
244
245
246
247
248
249
250
251
252
      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
253
      name: '[doh][check] Test all the IPs, force IPv6'
254
255
256
257
258
259
260
261
262
263
264
265
266
      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
267
      name: '[doh][check] Test all the IPs, force IPv6, check another IP'
268
269
270
271
272
273
274
275
276
277
278
      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
279

Alexandre's avatar
Alexandre committed
280
281
282
283
284
285
286
287
288
289
290
291
    - 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'
292
293
294
295
296
297
298
299
300
301
302
303
304
305
      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'
306
      partstdout: "KO\n"
Alexandre's avatar
Alexandre committed
307

308

309
310
311
312
###############################################################################

    - exe: './homer.py'
      name: '[doh] Force IPv4 and IPv6'
Alexandre's avatar
Alexandre committed
313
314
315
      markers:
          - 'doh'
          - 'exception'
316
317
          - 'forceIPv4'
          - 'forceIPv6'
318
319
320
321
322
323
324
325
326
327
328
      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
329
330
331
      markers:
          - 'dot'
          - 'exception'
332
333
          - 'forceIPv4'
          - 'forceIPv6'
334
335
336
337
338
339
340
341
342
343
344
345
      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
346
347
348
      markers:
          - 'dot'
          - 'exception'
349
350
351
352
353
354
355
356
357
358
      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
359
360
      markers:
          - 'dot'
361
362
363
364
365
366
367
368
369
370
371
      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
372
373
374
      markers:
          - 'dot'
          - 'exception'
375
          - 'forceIPv6'
376
377
378
379
380
381
382
383
384
385
386
387
      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
388
389
390
      markers:
          - 'dot'
          - 'exception'
391
392
393
394
395
396
397
398
399
400
      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
401
402
      markers:
          - 'dot'
403
404
405
406
407
408
409
410
411
412
413
      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
414
415
416
      markers:
          - 'dot'
          - 'exception'
417
          - 'forceIPv4'
418
419
420
421
422
423
424
425
426
427
      args:
          - '-4'
          - '--insecure'
          - '--dot'
          - '2001:620:0:ff::2'
          - 'framagit.org'
      retcode: 1
      partstderr: 'litteral IPv6'
      stdout: ''

Alexandre's avatar
Alexandre committed
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
    - 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'
446
          - 'forceIPv6'
Alexandre's avatar
Alexandre committed
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
      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: ''

471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
    - 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
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
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541

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

    - 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"

542
543
544
545
546
################################################################################

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

    - exe: './check_dot'
      name: '[check_dot] Force IPv4 and IPv6 with an IPv4'
Alexandre's avatar
Alexandre committed
636
637
638
639
      markers:
          - 'dot'
          - 'monitoring'
          - 'exception'
640
641
          - 'forceIPv4'
          - 'forceIPv6'
642
643
644
645
646
647
648
649
650
      args:
          - '-4'
          - '-6'
          - '-H'
          - '193.70.85.11'
          - '-V'
          - 'dot.bortzmeyer.fr'
          - '-n'
          - 'framagit.org'
651
652
653
      retcode: 2
      stderr: ''
      partstdout: 'IPv4 *or* IPv6'
654
655
656

    - exe: './check_dot'
      name: '[check_dot] Use IPv4 address and force IPv6'
Alexandre's avatar
Alexandre committed
657
658
659
660
      markers:
          - 'dot'
          - 'monitoring'
          - 'exception'
661
          - 'forceIPv6'
662
663
664
665
666
667
668
669
      args:
          - '-6'
          - '-H'
          - '193.70.85.11'
          - '-V'
          - 'dot.bortzmeyer.fr'
          - '-n'
          - 'framagit.org'
670
671
672
      retcode: 2
      stderr: ''
      partstdout: 'litteral IPv4'
673
674
675

    - exe: './check_dot'
      name: '[check_dot] Use IPv6 address and force IPv4'
Alexandre's avatar
Alexandre committed
676
677
678
679
      markers:
          - 'dot'
          - 'monitoring'
          - 'exception'
680
          - 'forceIPv4'
681
682
683
684
685
686
687
688
      args:
          - '-4'
          - '-H'
          - '2001:41d0:302:2200::180'
          - '-V'
          - 'dot.bortzmeyer.fr'
          - '-n'
          - 'framagit.org'
689
690
691
      retcode: 2
      stderr: ''
      partstdout: 'litteral IPv6'
692

693
694
695
696
697
698
699
700
701
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
    - 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'

727
728
729
730
731
732

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

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

    - exe: './check_doh'
      name: '[check_doh] Force IPv4 and IPv6 with an IPv4'
Alexandre's avatar
Alexandre committed
822
823
824
825
      markers:
          - 'doh'
          - 'monitoring'
          - 'exception'
826
827
          - 'forceIPv4'
          - 'forceIPv6'
828
829
830
831
832
833
834
835
836
      args:
          - '-4'
          - '-6'
          - '-H'
          - '193.70.85.11'
          - '-V'
          - 'doh.bortzmeyer.fr'
          - '-n'
          - 'framagit.org'
837
838
839
      retcode: 2
      stderr: ''
      partstdout: 'IPv4 *or* IPv6'
840
841
842

    - exe: './check_doh'
      name: '[check_doh] Use IPv4 address and force IPv6'
Alexandre's avatar
Alexandre committed
843
844
845
846
      markers:
          - 'doh'
          - 'monitoring'
          - 'exception'
847
          - 'forceIPv6'
848
849
850
851
852
853
854
855
      args:
          - '-6'
          - '-H'
          - '193.70.85.11'
          - '-V'
          - 'doh.bortzmeyer.fr'
          - '-n'
          - 'framagit.org'
856
857
858
      retcode: 2
      stderr: ''
      partstdout: 'litteral IPv4'
859
860
861

    - exe: './check_doh'
      name: '[check_doh] Use IPv6 address and force IPv4'
Alexandre's avatar
Alexandre committed
862
863
864
865
      markers:
          - 'doh'
          - 'monitoring'
          - 'exception'
866
          - 'forceIPv4'
867
868
869
870
871
872
873
874
      args:
          - '-4'
          - '-H'
          - '2001:41d0:302:2200::180'
          - '-V'
          - 'doh.bortzmeyer.fr'
          - '-n'
          - 'framagit.org'
875
876
877
      retcode: 2
      stderr: ''
      partstdout: 'litteral IPv6'
878

879
880
881
882
883
884
885
886
887
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
    - 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
913
914
915
916
################################################################################

    - exe: './homer.py'
      name: '[doh] HEAD and POST'
Alexandre's avatar
Alexandre committed
917
918
919
      markers:
          - 'doh'
          - 'exception'
Alexandre's avatar
Alexandre committed
920
921
922
923
924
925
926
927
928
929
930
      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
931
932
      markers:
          - 'doh'
Alexandre's avatar
Alexandre committed
933
934
935
936
937
938
939
940
941
942
      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
943
944
      markers:
          - 'doh'
Alexandre's avatar
Alexandre committed
945
946
947
948
949
950
951
      args:
          - '--head'
          - 'https://doh.bortzmeyer.fr'
          - 'framagit.org'
      retcode: 0
      stderr: ''
      partstdout: 'HEAD'