quickjs-tart

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

test1971 (1258B)


      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 100 Continue
     13 
     14 HTTP/1.1 200 OK
     15 Date: Thu, 09 Nov 2010 14:49:00 GMT
     16 Server: test-server/fake
     17 Content-Type: text/html
     18 Content-Length: 0
     19 
     20 </data>
     21 </reply>
     22 
     23 # Client-side
     24 <client>
     25 <server>
     26 http
     27 </server>
     28 # this relies on the debug feature which allows tests to set the time
     29 <features>
     30 SSL
     31 Debug
     32 crypto
     33 aws
     34 </features>
     35 <setenv>
     36 CURL_FORCEHOST=1
     37 </setenv>
     38 
     39 <name>
     40 HTTP AWS_SIGV4 for AWS S3: UPLOAD with unknown INFILESIZE
     41 </name>
     42 <tool>
     43 lib%TESTNUMBER
     44 </tool>
     45 
     46 <command>
     47 http://exam.ple.com:9000/aws_sigv4/testapi/test exam.ple.com:9000:%HOSTIP:%HTTPPORT
     48 </command>
     49 </client>
     50 
     51 # Verify data after the test has been "shot"
     52 <verify>
     53 <strip>
     54 ^User-Agent:.*
     55 ^Content-Type:.*
     56 ^Accept:.*
     57 </strip>
     58 <protocol>
     59 PUT /aws_sigv4/testapi/test HTTP/1.1
     60 Host: exam.ple.com:9000
     61 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=4a6e9b4af0542ffb83744c6852f8e1bfec14f2a67e6f6f037b39f172f79d62af
     62 X-Amz-Date: 19700101T000000Z
     63 x-amz-content-sha256: UNSIGNED-PAYLOAD
     64 Transfer-Encoding: chunked
     65 Expect: 100-continue
     66 
     67 0
     68 
     69 </protocol>
     70 </verify>
     71 </testcase>