quickjs-tart

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

test1065 (1244B)


      1 <testcase>
      2 <info>
      3 <keywords>
      4 HTTP
      5 HTTP PUT
      6 HTTP GET
      7 </keywords>
      8 </info>
      9 
     10 <reply>
     11 <data nocheck="yes">
     12 HTTP/1.1 200 A OK
     13 Server: curl test
     14 Content-Type: text/html; charset=iso-8859-1
     15 Content-Length: 3
     16 
     17 ok
     18 </data>
     19 <data2 nocheck="yes">
     20 HTTP/1.1 200 A OK
     21 Server: curl test
     22 Content-Type: text/html; charset=iso-8859-1
     23 Content-Length: 9
     24 
     25 still ok
     26 </data2>
     27 </reply>
     28 
     29 # Client-side
     30 <client>
     31 #
     32 <server>
     33 http
     34 </server>
     35 <name>
     36 HTTP PUT with one file but two URLs
     37 </name>
     38 <command>
     39 -H "Expect:" -T %LOGDIR/%TESTNUMBER http://%HOSTIP:%HTTPPORT/%TESTNUMBER.upload1 http://%HOSTIP:%HTTPPORT/%TESTNUMBER0002.url2
     40 </command>
     41 <file name="%LOGDIR/%TESTNUMBER">
     42 test
     43 </file>
     44 </client>
     45 
     46 # Verify data after the test has been "shot"
     47 <verify>
     48 <protocol>
     49 PUT /%TESTNUMBER.upload1 HTTP/1.1
     50 Host: %HOSTIP:%HTTPPORT
     51 User-Agent: curl/%VERSION
     52 Accept: */*
     53 Content-Length: 5
     54 
     55 test
     56 GET /%TESTNUMBER0002.url2 HTTP/1.1
     57 Host: %HOSTIP:%HTTPPORT
     58 User-Agent: curl/%VERSION
     59 Accept: */*
     60 
     61 </protocol>
     62 <stdout>
     63 HTTP/1.1 200 A OK
     64 Server: curl test
     65 Content-Type: text/html; charset=iso-8859-1
     66 Content-Length: 3
     67 
     68 ok
     69 HTTP/1.1 200 A OK
     70 Server: curl test
     71 Content-Type: text/html; charset=iso-8859-1
     72 Content-Length: 9
     73 
     74 still ok
     75 </stdout>
     76 </verify>
     77 </testcase>