test1935 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. CURLOPT_AWS_SIGV4
  6. </keywords>
  7. </info>
  8. # Server-side
  9. <reply>
  10. <data nocheck="yes">
  11. HTTP/1.1 302 OK
  12. Date: Thu, 09 Nov 2010 14:49:00 GMT
  13. Server: test-server/fake
  14. Content-Type: text/html
  15. Content-Length: 0
  16. Location: /%TESTNUMBER0002
  17. </data>
  18. <data2>
  19. HTTP/1.1 200 OK
  20. Date: Thu, 09 Nov 2010 14:49:00 GMT
  21. Server: test-server/fake
  22. Content-Type: text/html
  23. Content-Length: 0
  24. </data2>
  25. </reply>
  26. # Client-side
  27. <client>
  28. <server>
  29. http
  30. </server>
  31. # this relies on the debug feature which allow to set the time
  32. <features>
  33. SSL
  34. debug
  35. crypto
  36. </features>
  37. <name>
  38. HTTP AWS_SIGV4 with two providers and region
  39. </name>
  40. <tool>
  41. lib%TESTNUMBER
  42. </tool>
  43. <command>
  44. http://127.0.0.1:9000/%TESTNUMBER/testapi/test 127.0.0.1:9000:%HOSTIP:%HTTPPORT
  45. </command>
  46. </client>
  47. # Verify data after the test has been "shot"
  48. <verify>
  49. <strip>
  50. ^User-Agent:.*
  51. ^Content-Type:.*
  52. ^Accept:.*
  53. </strip>
  54. <protocol>
  55. GET /%TESTNUMBER/testapi/test HTTP/1.1
  56. Host: 127.0.0.1:9000
  57. Authorization: XXX4-HMAC-SHA256 Credential=xxx/19700101/rrr/127/xxx4_request, SignedHeaders=content-type;host;x-yyy-date, Signature=a0b11b97b54689428d4188b788ed32865d607822d85d3e91cf06141f479dac0b
  58. X-Yyy-Date: 19700101T000000Z
  59. </protocol>
  60. </verify>
  61. </testcase>