test1512 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. GLOBAL DNS CACHE
  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. lib1512
  46. </tool>
  47. <name>
  48. GLOBAL CACHE test over two easy performs
  49. </name>
  50. <command>
  51. http://%HOSTIP:%HTTPPORT/path/1512 %HOSTIP %HTTPPORT
  52. </command>
  53. </client>
  54. # Verify data after the test has been "shot"
  55. <verify>
  56. <protocol>
  57. GET /path/15120001 HTTP/1.1
  58. Host: %HOSTIP:%HTTPPORT
  59. Accept: */*
  60. GET /path/15120002 HTTP/1.1
  61. Host: %HOSTIP:%HTTPPORT
  62. Accept: */*
  63. </protocol>
  64. <strip>
  65. ^Host:.*
  66. </strip>
  67. <stripfile>
  68. $_ = '' if (($_ !~ /left intact/) && ($_ !~ /Closing connection/))
  69. </stripfile>
  70. </verify>
  71. </testcase>