tests.yaml 25.1 KB
Newer Older
Alexandre's avatar
Alexandre committed
1001
1002
1003
      markers:
          - 'doh'
          - 'streams'
Alexandre's avatar
Alexandre committed
1004
          - 'exception'
Alexandre's avatar
Alexandre committed
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
      args:
          - '--multistreams'
          - '--file'
          - 'input_file'
          - 'dot.bortzmeyer.fr'
          - 'framagit.org'
      retcode: 1
      partstderr: 'Wrong number of arguments'
      stdout: ''

    - exe : './homer.py'
Alexandre's avatar
Alexandre committed
1016
      name: '[doh] Multistreams invalid URL'
Alexandre's avatar
Alexandre committed
1017
1018
1019
      markers:
          - 'doh'
          - 'streams'
Alexandre's avatar
Alexandre committed
1020
          - 'exception'
Alexandre's avatar
Alexandre committed
1021
1022
1023
1024
1025
1026
1027
1028
      args:
          - '--multistreams'
          - '--file'
          - 'input_file'
          - 'dot.bortzmeyer.fr'
      retcode: 1
      partstderr: 'DoH requires a valid'
      stdout: ''
Alexandre's avatar
Alexandre committed
1029

Alexandre's avatar
Alexandre committed
1030
    - exe : './homer.py'
Alexandre's avatar
Alexandre committed
1031
      name: '[doh] Multistreams with 1 request'
Alexandre's avatar
Alexandre committed
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
      markers:
          - 'doh'
          - 'streams'
      args:
          - '--multistreams'
          - '--file'
          - 'input_file'
          - 'https://doh.bortzmeyer.fr'
      retcode: 0
      stderr: ''
      partstdout: 'NOERR'
Alexandre's avatar
Alexandre committed
1043

1044
1045
1046
1047
1048
      # This test might fail
      # this is due to the fact that it will check that libcurl
      # uses HTTP/2 streams or sometimes the connection is
      # available very quickly making unnecessary to use
      # different streams
Alexandre's avatar
Alexandre committed
1049
    - exe : './homer.py'
1050
      name: '[doh] Multistreams with 3 requests (can fail)'
Alexandre's avatar
Alexandre committed
1051
1052
1053
      markers:
          - 'doh'
          - 'streams'
1054
          - 'xfail'
Alexandre's avatar
Alexandre committed
1055
1056
1057
1058
1059
1060
      args:
          - '-v'
          - '--multistreams'
          - '--file'
          - 'input_file'
          - '--repeat'
1061
1062
          - '3'
          - 'https://doh.powerdns.org'
Alexandre's avatar
Alexandre committed
1063
1064
1065
1066
      retcode: 0
      partstderr: 'Multiplexed connection found'
      partstdout: 'Return code 200'

1067
      # same as previous test
Alexandre's avatar
Alexandre committed
1068
1069
1070
1071
1072
    - exe : './homer.py'
      name: '[doh] Multistreams with 5 requests'
      markers:
          - 'doh'
          - 'streams'
1073
          - 'xfail'
Alexandre's avatar
Alexandre committed
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
      args:
          - '-v'
          - '--multistreams'
          - '--file'
          - 'input_file'
          - '--repeat'
          - '5'
          - 'https://doh.bortzmeyer.fr'
      retcode: 0
      partstderr: 'Multiplexed connection found'
      partstdout: 'Return code 200'