test1937 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. HTTP POST
  6. CURLOPT_AWS_SIGV4
  7. </keywords>
  8. </info>
  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. </data>
  19. <data2>
  20. HTTP/1.1 200 OK
  21. Date: Thu, 09 Nov 2010 14:49:00 GMT
  22. Server: test-server/fake
  23. Content-Type: text/html
  24. Content-Length: 0
  25. </data2>
  26. </reply>
  27. # Client-side
  28. <client>
  29. <server>
  30. http
  31. </server>
  32. # this relies on the debug feature which allow to set the time
  33. <features>
  34. SSL
  35. debug
  36. crypto
  37. </features>
  38. <name>
  39. HTTP POST with AWS_SIGV4
  40. </name>
  41. <tool>
  42. lib%TESTNUMBER
  43. </tool>
  44. <command>
  45. http://%HOSTIP:%HTTPPORT/%TESTNUMBER/testapi/test
  46. </command>
  47. </client>
  48. # Verify data after the test has been "shot"
  49. <verify>
  50. <strip>
  51. ^User-Agent:.*
  52. ^Content-Type:.*
  53. ^Accept:.*
  54. </strip>
  55. <protocol nonewline="yes">
  56. POST /%TESTNUMBER/testapi/test HTTP/1.1
  57. Host: %HOSTIP:%HTTPPORT
  58. Authorization: PROVIDER14-HMAC-SHA256 Credential=keyId/19700101/region/service/provider14_request, SignedHeaders=content-type;host;x-provider2-date, Signature=391e410177d0e9ee80728082446ef69d6b29157fe71f8b4805fce7c186fd956d
  59. X-Provider2-Date: 19700101T000000Z
  60. Content-Length: 8
  61. postData
  62. </protocol>
  63. </verify>
  64. </testcase>