quickjs-tart

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

test75 (653B)


      1 <testcase>
      2 <info>
      3 <keywords>
      4 HTTP
      5 HTTP GET
      6 globbing
      7 FAILURE
      8 </keywords>
      9 </info>
     10 #
     11 # Server-side
     12 <reply>
     13 </reply>
     14 
     15 #
     16 # Client-side
     17 <client>
     18 <server>
     19 none
     20 </server>
     21 <features>
     22 http
     23 </features>
     24 <name>
     25 HTTP, urlglob retrieval with bad range
     26 </name>
     27  <command option="no-output">
     28 "http://a-site-never-accessed.example.org/[2-1]" -o "%LOGDIR/weee#1.dump" --stderr -
     29 </command>
     30 </client>
     31 
     32 #
     33 # Verify data after the test has been "shot"
     34 <verify>
     35 <errorcode>
     36 3
     37 </errorcode>
     38 <stdout mode="text">
     39 curl: (3) bad range in URL position 47:
     40 http://a-site-never-accessed.example.org/[2-1]
     41                                               ^
     42 </stdout>
     43 </verify>
     44 </testcase>