quickjs-tart

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

test378 (550B)


      1 <testcase>
      2 <info>
      3 <keywords>
      4 HTTP PUT
      5 HTTP POST
      6 </keywords>
      7 </info>
      8 
      9 #
     10 # Server-side
     11 <reply>
     12 </reply>
     13 
     14 #
     15 # Client-side
     16 <client>
     17 <server>
     18 none
     19 </server>
     20 <name>
     21 Reject using -T and -d at once
     22 </name>
     23 <command>
     24 -T %LOGDIR/%TESTNUMBER -d input http://never-accessed
     25 </command>
     26 </client>
     27 
     28 #
     29 # Verify data after the test has been "shot"
     30 <verify>
     31 <errorcode>
     32 2
     33 </errorcode>
     34 <stderr mode="text">
     35 Warning: You can only select one HTTP request method! You asked for both PUT 
     36 Warning: (-T, --upload-file) and POST (-d, --data).
     37 </stderr>
     38 </verify>
     39 </testcase>