quickjs-tart

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

test1955 (1382B)


      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 without X-Xxx-Content-Sha256
     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 GET /aws_sigv4/testapi/test HTTP/1.1
     67 Host: exam.ple.com:9000
     68 Authorization: XXX4-HMAC-SHA256 Credential=xxx/19700101/ple/exam/xxx4_request, SignedHeaders=content-type;host;tesmixcase;test2;test3;test_space;x-xxx-date, Signature=dd39202e9fb7b836ebf2abb83b114cae11ff3b6a169f0c64b290a774a873db9d
     69 X-Xxx-Date: 19700101T000000Z
     70 test3: 1234
     71 test2:
     72 test_space: t	s  m	   end    
     73 tesMixCase: MixCase
     74 
     75 </protocol>
     76 </verify>
     77 </testcase>