quickjs-tart

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

test1972 (1496B)


      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: Thu, 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: Thu, 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 <setenv>
     43 CURL_FORCEHOST=1
     44 </setenv>
     45 
     46 <name>
     47 HTTP AWS_SIGV4 for AWS S3: MIMEPOST
     48 </name>
     49 <tool>
     50 lib%TESTNUMBER
     51 </tool>
     52 
     53 <command>
     54 http://exam.ple.com:9000/aws_sigv4/testapi/test exam.ple.com:9000:%HOSTIP:%HTTPPORT
     55 </command>
     56 </client>
     57 
     58 # Verify data after the test has been "shot"
     59 <verify>
     60 <strip>
     61 ^User-Agent:.*
     62 ^Content-Type:.*
     63 ^Accept:.*
     64 </strip>
     65 <protocol>
     66 POST /aws_sigv4/testapi/test HTTP/1.1
     67 Host: exam.ple.com:9000
     68 Authorization: AWS4-HMAC-SHA256 Credential=xxx/19700101/us-east-1/s3/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=eaee0f1c5984ad5d81c8bc7805f28c7b83b35322de654b2ace18cb8cf6d5a9cb
     69 X-Amz-Date: 19700101T000000Z
     70 x-amz-content-sha256: UNSIGNED-PAYLOAD
     71 Content-Length: 154
     72 
     73 --------------------------qrstuvwxyz0123456789AB
     74 Content-Disposition: attachment; name="foo"
     75 
     76 bar
     77 --------------------------qrstuvwxyz0123456789AB--
     78 </protocol>
     79 </verify>
     80 </testcase>