quickjs-tart

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

test3031 (1156B)


      1 <testcase>
      2 <info>
      3 <keywords>
      4 --dump-header
      5 </keywords>
      6 </info>
      7 #
      8 # Server-side
      9 <reply>
     10 <data nocheck="yes" crlf="yes">
     11 HTTP/1.1 200 OK
     12 Date: Tue, 09 Nov 2010 14:49:00 GMT
     13 Server: test-server/fake
     14 Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT
     15 ETag: "21025-dc7-39462498"
     16 Accept-Ranges: bytes
     17 Content-Length: 6
     18 Connection: close
     19 Content-Type: text/html
     20 Funny-head: yesyes
     21 
     22 -foo-
     23 </data>
     24 </reply>
     25 
     26 #
     27 # Client-side
     28 <client>
     29 <server>
     30 http
     31 </server>
     32 <features>
     33 http
     34 </features>
     35 <name>
     36 --output-dir with --create-dirs
     37 </name>
     38 <command>
     39 http://%HOSTIP:%HTTPPORT/this/is/the/%TESTNUMBER --dump-header %PWD/%LOGDIR/tmp/out.txt --create-dirs
     40 </command>
     41 </client>
     42 
     43 #
     44 # Verify data after the test has been "shot"
     45 <verify>
     46 <protocol>
     47 GET /this/is/the/%TESTNUMBER HTTP/1.1
     48 Host: %HOSTIP:%HTTPPORT
     49 User-Agent: curl/%VERSION
     50 Accept: */*
     51 
     52 </protocol>
     53 <file name="%LOGDIR/tmp/out.txt" crlf="yes">
     54 HTTP/1.1 200 OK
     55 Date: Tue, 09 Nov 2010 14:49:00 GMT
     56 Server: test-server/fake
     57 Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT
     58 ETag: "21025-dc7-39462498"
     59 Accept-Ranges: bytes
     60 Content-Length: 6
     61 Connection: close
     62 Content-Type: text/html
     63 Funny-head: yesyes
     64 
     65 </file>
     66 </verify>
     67 </testcase>