test1510 1.7 KB

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