test1456 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. HTTP GET
  6. proxy
  7. haproxy
  8. IPv6
  9. </keywords>
  10. </info>
  11. #
  12. # Server-side
  13. <reply>
  14. <data nocheck="yes">
  15. HTTP/1.1 200 OK
  16. Date: Tue, 09 Nov 2010 14:49:00 GMT
  17. Server: test-server/fake
  18. Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT
  19. ETag: "21025-dc7-39462498"
  20. Accept-Ranges: bytes
  21. Content-Length: 6
  22. Connection: close
  23. Content-Type: text/html
  24. Funny-head: yesyes
  25. These data aren't actually sent to the client
  26. </data>
  27. </reply>
  28. #
  29. # Client-side
  30. <client>
  31. <features>
  32. ipv6
  33. </features>
  34. <server>
  35. http-ipv6
  36. </server>
  37. <name>
  38. HTTP-IPv6 GET with PROXY protocol
  39. </name>
  40. <command>
  41. -g "http://%HOST6IP:%HTTP6PORT/%TESTNUMBER" --haproxy-protocol
  42. </command>
  43. <features>
  44. proxy
  45. </features>
  46. </client>
  47. #
  48. # Verify data after the test has been "shot"
  49. <verify>
  50. # Strip off the (random) local port number. This test used to use a fixed
  51. # local port number that frequently causes the test to fail
  52. <strippart>
  53. s/PROXY TCP6 ::1 ::1 (\d+) (\d+)/PROXY TCP6 ::1 ::1 $2/
  54. </strippart>
  55. <protocol>
  56. PROXY TCP6 ::1 ::1 %HTTP6PORT
  57. GET /%TESTNUMBER HTTP/1.1
  58. Host: %HOST6IP:%HTTP6PORT
  59. User-Agent: curl/%VERSION
  60. Accept: */*
  61. </protocol>
  62. </verify>
  63. </testcase>