test1510 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. verbose logs
  6. flaky
  7. </keywords>
  8. </info>
  9. # Server-side
  10. <reply>
  11. <data1>
  12. HTTP/1.1 200 OK
  13. Date: Tue, 09 Nov 2010 14:49:00 GMT
  14. Server: test-server/fake
  15. Content-Length: 47
  16. file contents should appear once for each file
  17. </data1>
  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-Length: 47
  23. file contents should appear once for each file
  24. </data2>
  25. <data3>
  26. HTTP/1.1 200 OK
  27. Date: Tue, 09 Nov 2010 14:49:00 GMT
  28. Server: test-server/fake
  29. Content-Length: 47
  30. file contents should appear once for each file
  31. </data3>
  32. <data4>
  33. HTTP/1.1 200 OK
  34. Date: Tue, 09 Nov 2010 14:49:00 GMT
  35. Server: test-server/fake
  36. Content-Length: 47
  37. file contents should appear once for each file
  38. </data4>
  39. </reply>
  40. # Client-side
  41. <client>
  42. <server>
  43. http
  44. </server>
  45. <tool>
  46. lib%TESTNUMBER
  47. </tool>
  48. <name>
  49. HTTP GET connection cache limit (CURLOPT_MAXCONNECTS)
  50. </name>
  51. <command>
  52. http://%HOSTIP:%HTTPPORT/path/%TESTNUMBER %HOSTIP %HTTPPORT
  53. </command>
  54. </client>
  55. # Verify data after the test has been "shot"
  56. <verify>
  57. <protocol>
  58. GET /path/%TESTNUMBER0001 HTTP/1.1
  59. Host: %HOSTIP:%HTTPPORT
  60. Accept: */*
  61. GET /path/%TESTNUMBER0002 HTTP/1.1
  62. Host: %HOSTIP:%HTTPPORT
  63. Accept: */*
  64. GET /path/%TESTNUMBER0003 HTTP/1.1
  65. Host: %HOSTIP:%HTTPPORT
  66. Accept: */*
  67. GET /path/%TESTNUMBER0004 HTTP/1.1
  68. Host: %HOSTIP:%HTTPPORT
  69. Accept: */*
  70. </protocol>
  71. <strip>
  72. ^Host:.*
  73. </strip>
  74. <file name="%LOGDIR/stderr%TESTNUMBER" mode="text">
  75. * Connection #0 to host server1.example.com left intact
  76. * Connection #1 to host server2.example.com left intact
  77. * Connection #2 to host server3.example.com left intact
  78. * Closing connection 0
  79. * Connection #3 to host server4.example.com left intact
  80. </file>
  81. <stripfile>
  82. $_ = '' if (($_ !~ /left intact/) && ($_ !~ /Closing connection/))
  83. </stripfile>
  84. </verify>
  85. </testcase>