quickjs-tart

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

test453 (461B)


      1 <testcase>
      2 <info>
      3 <keywords>
      4 HTTP
      5 variables
      6 </keywords>
      7 </info>
      8 
      9 #
     10 # Client-side
     11 <client>
     12 <server>
     13 http
     14 </server>
     15 <name>
     16 Variable output containing null byte
     17 </name>
     18 <file name="%LOGDIR/junk">
     19 %hex[%01%02%03%00%04%05%06]hex%
     20 </file>
     21 <command>
     22 http://%HOSTIP:%HTTPPORT/%TESTNUMBER --variable what@%LOGDIR/junk --expand-data "{{what}}"
     23 </command>
     24 </client>
     25 
     26 #
     27 # Verify data after the test has been "shot"
     28 <verify>
     29 <errorcode>
     30 2
     31 </errorcode>
     32 </verify>
     33 </testcase>