quickjs-tart

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

test3010 (755B)


      1 <testcase>
      2 <info>
      3 <keywords>
      4 HTTP
      5 HTTP Basic
      6 RETRY-AFTER
      7 </keywords>
      8 </info>
      9 
     10 # Server-side
     11 <reply>
     12 <data nocheck="yes">
     13 HTTP/1.1 301 Moved Permanently
     14 Date: Tue, 09 Nov 2010 14:49:00 GMT
     15 Server: test-server/fake
     16 Content-Type: text/html
     17 Content-Length: 0
     18 Retry-After: 2
     19 Location: /%TESTNUMBER0002
     20 
     21 </data>
     22 <data2>
     23 HTTP/1.1 200 OK
     24 Date: Tue, 09 Nov 2010 14:49:00 GMT
     25 Server: test-server/fake
     26 Content-Type: text/html
     27 Content-Length: 0
     28 
     29 </data2>
     30 </reply>
     31 
     32 # Client-side
     33 <client>
     34 <server>
     35 http
     36 </server>
     37 
     38 <name>
     39 HTTP retry-after reset
     40 </name>
     41 <tool>
     42 lib%TESTNUMBER
     43 </tool>
     44 
     45 <command>
     46 %HOSTIP:%HTTPPORT/%TESTNUMBER
     47 </command>
     48 </client>
     49 
     50 # Verify data after the test has been "shot"
     51 <verify>
     52 <stdout>
     53 Retry-After 2
     54 Retry-After 0
     55 </stdout>
     56 </verify>
     57 </testcase>