quickjs-tart

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

test1933 (1250B)


      1 <testcase>
      2 <info>
      3 <keywords>
      4 HTTP
      5 CURLOPT_AWS_SIGV4
      6 </keywords>
      7 </info>
      8 
      9 # Server-side
     10 <reply>
     11 <data nocheck="yes">
     12 HTTP/1.1 302 OK
     13 Date: Tue, 09 Nov 2010 14:49:00 GMT
     14 Server: test-server/fake
     15 Content-Type: text/html
     16 Content-Length: 0
     17 Location: /%TESTNUMBER0002
     18 
     19 </data>
     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-Type: text/html
     25 Content-Length: 0
     26 
     27 </data2>
     28 </reply>
     29 
     30 # Client-side
     31 <client>
     32 <server>
     33 http
     34 </server>
     35 # this relies on the debug feature which allows tests to set the time
     36 <features>
     37 SSL
     38 Debug
     39 crypto
     40 aws
     41 </features>
     42 
     43 <name>
     44 HTTP AWS_SIGV4 with one provider and auth cred via URL
     45 </name>
     46 <tool>
     47 lib%TESTNUMBER
     48 </tool>
     49 
     50 <command>
     51 http://xxx:yyy@127.0.0.1:9000/%TESTNUMBER/testapi/test 127.0.0.1:9000:%HOSTIP:%HTTPPORT
     52 </command>
     53 </client>
     54 
     55 # Verify data after the test has been "shot"
     56 <verify>
     57 <strip>
     58 ^User-Agent:.*
     59 ^Content-Type:.*
     60 ^Accept:.*
     61 </strip>
     62 <protocol>
     63 GET /%TESTNUMBER/testapi/test HTTP/1.1
     64 Host: 127.0.0.1:9000
     65 Authorization: XXX4-HMAC-SHA256 Credential=xxx/19700101/0/127/xxx4_request, SignedHeaders=content-type;host;x-xxx-date, Signature=3d8e00a02e437211a596143dcd590fcc805b731365c68f7f48951ea6eda39c4f
     66 X-Xxx-Date: 19700101T000000Z
     67 
     68 </protocol>
     69 </verify>
     70 </testcase>