test2402 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. HTTP/2
  6. multi
  7. verbose logs
  8. </keywords>
  9. </info>
  10. # Server-side
  11. <reply>
  12. <data1 crlf="yes">
  13. HTTP/1.1 200 OK
  14. Date: Tue, 09 Nov 2010 14:49:00 GMT
  15. Server: server.example.com
  16. Content-Length: 47
  17. file contents should appear once for each file
  18. </data1>
  19. <data2>
  20. HTTP/1.1 200 OK
  21. Date: Tue, 09 Nov 2010 14:49:00 GMT
  22. Server: server.example.com
  23. Content-Length: 47
  24. file contents should appear once for each file
  25. </data2>
  26. <data3>
  27. HTTP/1.1 200 OK
  28. Date: Tue, 09 Nov 2010 14:49:00 GMT
  29. Server: server.example.com
  30. Content-Length: 47
  31. file contents should appear once for each file
  32. </data3>
  33. <data4>
  34. HTTP/1.1 200 OK
  35. Date: Tue, 09 Nov 2010 14:49:00 GMT
  36. Server: server.example.com
  37. Content-Length: 47
  38. file contents should appear once for each file
  39. </data4>
  40. </reply>
  41. # Client-side
  42. <client>
  43. <features>
  44. h2c
  45. SSL
  46. </features>
  47. <server>
  48. http
  49. http/2
  50. </server>
  51. <tool>
  52. lib%TESTNUMBER
  53. </tool>
  54. <name>
  55. HTTP GET multiple over HTTP/2
  56. </name>
  57. <command>
  58. https://%HOSTIP:%HTTP2TLSPORT/path/%TESTNUMBER %HOSTIP %HTTP2TLSPORT
  59. </command>
  60. </client>
  61. # Verify data after the test has been "shot"
  62. <verify>
  63. <protocol crlf="yes">
  64. GET /path/%TESTNUMBER0001 HTTP/1.1
  65. Host: %HOSTIP:%HTTPPORT
  66. Accept: */*
  67. X-Forwarded-Proto: https
  68. Via: 2 nghttpx
  69. GET /path/%TESTNUMBER0002 HTTP/1.1
  70. Host: %HOSTIP:%HTTPPORT
  71. Accept: */*
  72. X-Forwarded-Proto: https
  73. Via: 2 nghttpx
  74. GET /path/%TESTNUMBER0003 HTTP/1.1
  75. Host: %HOSTIP:%HTTPPORT
  76. Accept: */*
  77. X-Forwarded-Proto: https
  78. Via: 2 nghttpx
  79. GET /path/%TESTNUMBER0004 HTTP/1.1
  80. Host: %HOSTIP:%HTTPPORT
  81. Accept: */*
  82. X-Forwarded-Proto: https
  83. Via: 2 nghttpx
  84. </protocol>
  85. <strip>
  86. ^Host:.*
  87. </strip>
  88. <file name="%LOGDIR/stderr%TESTNUMBER" mode="text">
  89. * Connection #0 to host localhost left intact
  90. * Connection #0 to host localhost left intact
  91. * Connection #0 to host localhost left intact
  92. * Connection #0 to host localhost left intact
  93. </file>
  94. <stripfile>
  95. $_ = '' if (($_ !~ /left intact/) && ($_ !~ /Closing connection/))
  96. </stripfile>
  97. </verify>
  98. </testcase>