quickjs-tart

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

test1681 (894B)


      1 <testcase>
      2 <info>
      3 <keywords>
      4 HTTP
      5 HTTP GET
      6 --no-clobber
      7 </keywords>
      8 </info>
      9 
     10 #
     11 # Server-side
     12 <reply>
     13 <data nocheck="yes">
     14 HTTP/1.0 200 OK
     15 Connection: close
     16 Content-Type: text/plain
     17 Content-Length: 4
     18 
     19 foo
     20 </data>
     21 </reply>
     22 
     23 #
     24 # Client-side
     25 <client>
     26 <name>
     27 HTTP GET without clobber
     28 </name>
     29 <server>
     30 http
     31 </server>
     32 <features>
     33 http
     34 </features>
     35 <command option="no-output">
     36 http://%HOSTIP:%HTTPPORT/%TESTNUMBER -o %LOGDIR/exist%TESTNUMBER --no-clobber -w '%{filename_effective}\n'
     37 </command>
     38 <file name="%LOGDIR/exist%TESTNUMBER">
     39 to stay the same
     40 </file>
     41 </client>
     42 
     43 #
     44 # Verify data after the test has been "shot"
     45 <verify>
     46 <file name="%LOGDIR/exist%TESTNUMBER">
     47 to stay the same
     48 </file>
     49 <file1 name="%LOGDIR/exist%TESTNUMBER.1">
     50 HTTP/1.0 200 OK
     51 Connection: close
     52 Content-Type: text/plain
     53 Content-Length: 4
     54 
     55 foo
     56 </file1>
     57 <stdout mode="text">
     58 %LOGDIR/exist%TESTNUMBER.1
     59 </stdout>
     60 </verify>
     61 </testcase>