quickjs-tart

quickjs-based runtime for wallet-core logic
Log | Files | Refs | README | LICENSE

test2101 (620B)


      1 <testcase>
      2 <info>
      3 <keywords>
      4 HTTP
      5 HTTP GET
      6 DOH
      7 </keywords>
      8 </info>
      9 
     10 #
     11 # Server-side
     12 <reply>
     13 
     14 <servercmd>
     15 idle
     16 </servercmd>
     17 </reply>
     18 
     19 #
     20 # Client-side
     21 <client>
     22 <server>
     23 http
     24 </server>
     25 
     26 # requires debug so that it can use the DoH server without https
     27 
     28 <features>
     29 Debug
     30 DoH
     31 </features>
     32 <name>
     33 DoH without response
     34 </name>
     35 <command>
     36 http://neverreached.example.com/ --doh-url http://%HOSTIP:%HTTPPORT/%TESTNUMBER0001 -m 1
     37 </command>
     38 </client>
     39 
     40 #
     41 # Verify data after the test has been "shot"
     42 <verify>
     43 
     44 # curl: (28) Resolving timed out
     45 # curl: (6) Could not resolve hostname
     46 <errorcode>
     47 28,6
     48 </errorcode>
     49 </verify>
     50 </testcase>