test519 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. <testcase>
  2. #
  3. # Server-side
  4. <reply>
  5. <data mode="text">
  6. HTTP/1.1 200 OK swsbounce
  7. Date: Thu, 09 Nov 2010 14:49:00 GMT
  8. Server: test-server/fake
  9. Content-Length: 8
  10. content
  11. </data>
  12. <data1>
  13. HTTP/1.1 200 OK swsclose
  14. Date: Thu, 09 Nov 2010 14:49:00 GMT
  15. Server: test-server/fake
  16. Content-Length: 9
  17. content2
  18. </data1>
  19. <datacheck>
  20. HTTP/1.1 200 OK swsbounce
  21. Date: Thu, 09 Nov 2010 14:49:00 GMT
  22. Server: test-server/fake
  23. Content-Length: 8
  24. content
  25. HTTP/1.1 200 OK swsclose
  26. Date: Thu, 09 Nov 2010 14:49:00 GMT
  27. Server: test-server/fake
  28. Content-Length: 9
  29. content2
  30. </datacheck>
  31. </reply>
  32. # Client-side
  33. <client>
  34. <server>
  35. http
  36. </server>
  37. # tool is what to use instead of 'curl'
  38. <tool>
  39. lib519
  40. </tool>
  41. <name>
  42. GET same URL twice with different users
  43. </name>
  44. <command>
  45. http://%HOSTIP:%HTTPPORT/519
  46. </command>
  47. </client>
  48. #
  49. # Verify data after the test has been "shot"
  50. <verify>
  51. <protocol>
  52. GET /519 HTTP/1.1
  53. Authorization: Basic bW9uc3Rlcjp1bmRlcmJlZA==
  54. Host: %HOSTIP:%HTTPPORT
  55. Accept: */*
  56. GET /519 HTTP/1.1
  57. Authorization: Basic YW5vdGhlcm1vbnN0ZXI6aW53YXJkcm9iZQ==
  58. Host: %HOSTIP:%HTTPPORT
  59. Accept: */*
  60. </protocol>
  61. </verify>
  62. </testcase>