test1933 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: Tue, 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: Tue, 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 one provider and auth cred via URL
  39. </name>
  40. <tool>
  41. lib%TESTNUMBER
  42. </tool>
  43. <command>
  44. http://xxx:yyy@%HOSTIP:%HTTPPORT/%TESTNUMBER/testapi/test
  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: %HOSTIP:%HTTPPORT
  57. Authorization: XXX4-HMAC-SHA256 Credential=xxx/19700101/0/127/xxx4_request, SignedHeaders=content-type;host;x-xxx-date, Signature=d2c2dff48c59ec49dc31ef94f18c5dc1ac3eae2a70d51633a4342dadc0683664
  58. X-Xxx-Date: 19700101T000000Z
  59. </protocol>
  60. </verify>
  61. </testcase>