test1681 894 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. HTTP GET
  6. --no-clobber
  7. </keywords>
  8. </info>
  9. #
  10. # Server-side
  11. <reply>
  12. <data nocheck="yes">
  13. HTTP/1.0 200 OK
  14. Connection: close
  15. Content-Type: text/plain
  16. Content-Length: 4
  17. foo
  18. </data>
  19. </reply>
  20. #
  21. # Client-side
  22. <client>
  23. <name>
  24. HTTP GET without clobber
  25. </name>
  26. <server>
  27. http
  28. </server>
  29. <features>
  30. http
  31. </features>
  32. <command option="no-output">
  33. http://%HOSTIP:%HTTPPORT/%TESTNUMBER -o %LOGDIR/exist%TESTNUMBER --no-clobber -w '%{filename_effective}\n'
  34. </command>
  35. <file name="%LOGDIR/exist%TESTNUMBER">
  36. to stay the same
  37. </file>
  38. </client>
  39. #
  40. # Verify data after the test has been "shot"
  41. <verify>
  42. <file name="%LOGDIR/exist%TESTNUMBER">
  43. to stay the same
  44. </file>
  45. <file1 name="%LOGDIR/exist%TESTNUMBER.1">
  46. HTTP/1.0 200 OK
  47. Connection: close
  48. Content-Type: text/plain
  49. Content-Length: 4
  50. foo
  51. </file1>
  52. <stdout mode="text">
  53. %LOGDIR/exist%TESTNUMBER.1
  54. </stdout>
  55. </verify>
  56. </testcase>