quickjs-tart

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

test2103 (538B)


      1 <testcase>
      2 <info>
      3 <keywords>
      4 DNS fail
      5 </keywords>
      6 </info>
      7 
      8 #
      9 # Server-side
     10 <reply>
     11 <dns>
     12 A: none
     13 AAAA: none
     14 </dns>
     15 </reply>
     16 
     17 #
     18 # Client-side
     19 <client>
     20 <server>
     21 dns
     22 </server>
     23 <features>
     24 override-dns
     25 </features>
     26 <name>
     27 HTTP GET with bad host name
     28 </name>
     29 <setenv>
     30 CURL_DNS_SERVER=127.0.0.1:%DNSPORT
     31 </setenv>
     32 <command>
     33 http://examplehost.example/%TESTNUMBER
     34 </command>
     35 </client>
     36 
     37 #
     38 # Verify data after the test has been "shot"
     39 <verify>
     40 # curl: (6) Could not resolve host: examplehost.example
     41 <errorcode>
     42 6
     43 </errorcode>
     44 </verify>
     45 </testcase>