quickjs-tart

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

test1510 (1812B)


      1 <testcase>
      2 <info>
      3 <keywords>
      4 HTTP
      5 verbose logs
      6 flaky
      7 </keywords>
      8 </info>
      9 
     10 # Server-side
     11 <reply>
     12 <data1>
     13 HTTP/1.1 200 OK
     14 Date: Tue, 09 Nov 2010 14:49:00 GMT
     15 Server: test-server/fake
     16 Content-Length: 47
     17 
     18 file contents should appear once for each file
     19 </data1>
     20 <data2>
     21 HTTP/1.1 200 OK
     22 Date: Tue, 09 Nov 2010 14:49:00 GMT
     23 Server: test-server/fake
     24 Content-Length: 47
     25 
     26 file contents should appear once for each file
     27 </data2>
     28 <data3>
     29 HTTP/1.1 200 OK
     30 Date: Tue, 09 Nov 2010 14:49:00 GMT
     31 Server: test-server/fake
     32 Content-Length: 47
     33 
     34 file contents should appear once for each file
     35 </data3>
     36 <data4>
     37 HTTP/1.1 200 OK
     38 Date: Tue, 09 Nov 2010 14:49:00 GMT
     39 Server: test-server/fake
     40 Content-Length: 47
     41 
     42 file contents should appear once for each file
     43 </data4>
     44 </reply>
     45 
     46 # Client-side
     47 <client>
     48 <server>
     49 http
     50 </server>
     51 <tool>
     52 lib%TESTNUMBER
     53 </tool>
     54 <name>
     55 HTTP GET connection cache limit (CURLOPT_MAXCONNECTS)
     56 </name>
     57 <command>
     58 http://%HOSTIP:%HTTPPORT/path/%TESTNUMBER %HOSTIP %HTTPPORT
     59 </command>
     60 </client>
     61 
     62 # Verify data after the test has been "shot"
     63 <verify>
     64 <protocol>
     65 GET /path/%TESTNUMBER0001 HTTP/1.1
     66 Host: %HOSTIP:%HTTPPORT
     67 Accept: */*
     68 
     69 GET /path/%TESTNUMBER0002 HTTP/1.1
     70 Host: %HOSTIP:%HTTPPORT
     71 Accept: */*
     72 
     73 GET /path/%TESTNUMBER0003 HTTP/1.1
     74 Host: %HOSTIP:%HTTPPORT
     75 Accept: */*
     76 
     77 GET /path/%TESTNUMBER0004 HTTP/1.1
     78 Host: %HOSTIP:%HTTPPORT
     79 Accept: */*
     80 
     81 </protocol>
     82 <strip>
     83 ^Host:.*
     84 </strip>
     85 <file name="%LOGDIR/stderr%TESTNUMBER" mode="text">
     86 * Connection #0 to host server1.example.com left intact
     87 * Connection #1 to host server2.example.com left intact
     88 * Connection #2 to host server3.example.com left intact
     89 * Connection #3 to host server4.example.com left intact
     90 </file>
     91 <stripfile>
     92 $_ = '' if(($_ !~ /left intact/) && ($_ !~ /Closing connection/))
     93 </stripfile>
     94 </verify>
     95 </testcase>