mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-12-12 13:11:11 +01:00
REGTEST: Enable reg tests with HEAD HTTP method usage.
This patch enables the part of this reg test which could not work due to a vtest
(formerly varnishtest) bug.
NOTE: You must have a vtest version with 4e43cc1 commit for this bug fix to make this
script succeed (see 4e43cc1fec
for more information).
This commit is contained in:
parent
3c4fb953ce
commit
47e4e13c01
@ -25,7 +25,7 @@ server s1 {
|
|||||||
txresp \
|
txresp \
|
||||||
-status 200 \
|
-status 200 \
|
||||||
-body "response 4"
|
-body "response 4"
|
||||||
} -repeat 2 -start
|
} -repeat 3 -start
|
||||||
|
|
||||||
haproxy h1 -conf {
|
haproxy h1 -conf {
|
||||||
defaults
|
defaults
|
||||||
@ -87,47 +87,47 @@ client c1h1 -connect ${h1_feh1_sock} {
|
|||||||
# HEAD requests
|
# HEAD requests
|
||||||
# Note: for now they fail with varnishtest, which expects the amount of
|
# Note: for now they fail with varnishtest, which expects the amount of
|
||||||
# data advertised in the content-length response.
|
# data advertised in the content-length response.
|
||||||
#client c2h1 -connect ${h1_feh1_sock} {
|
client c2h1 -connect ${h1_feh1_sock} {
|
||||||
# # first request is valid
|
# first request is valid
|
||||||
# txreq \
|
txreq \
|
||||||
# -req "HEAD" \
|
-req "HEAD" \
|
||||||
# -url "/test11.html"
|
-url "/test11.html"
|
||||||
# rxresp
|
rxresp
|
||||||
# expect resp.status == 200
|
expect resp.status == 200
|
||||||
#
|
|
||||||
# # second request is valid and advertises C-L:0
|
# second request is valid and advertises C-L:0
|
||||||
# txreq \
|
txreq \
|
||||||
# -req "HEAD" \
|
-req "HEAD" \
|
||||||
# -url "/test12.html" \
|
-url "/test12.html" \
|
||||||
# -hdr "content-length: 0"
|
-hdr "content-length: 0"
|
||||||
# rxresp
|
rxresp
|
||||||
# expect resp.status == 200
|
expect resp.status == 200
|
||||||
#
|
|
||||||
# # third request sends a body with a GET
|
# third request sends a body with a GET
|
||||||
# txreq \
|
txreq \
|
||||||
# -req "GET" \
|
-req "GET" \
|
||||||
# -url "/test13.html" \
|
-url "/test13.html" \
|
||||||
# -body "this must be delivered, like it or not"
|
-body "this must be delivered, like it or not"
|
||||||
# rxresp
|
rxresp
|
||||||
# expect resp.status == 200
|
expect resp.status == 200
|
||||||
#
|
|
||||||
# # fourth request is valid and advertises C-L:0, and close, and is
|
# fourth request is valid and advertises C-L:0, and close, and is
|
||||||
# # followed by a string "this is not sent\r\n\r\n" which must be
|
# followed by a string "this is not sent\r\n\r\n" which must be
|
||||||
# # dropped.
|
# dropped.
|
||||||
# txreq \
|
txreq \
|
||||||
# -req "HEAD" \
|
-req "HEAD" \
|
||||||
# -url "/test14.html" \
|
-url "/test14.html" \
|
||||||
# -hdr "content-length: 0" \
|
-hdr "content-length: 0" \
|
||||||
# -hdr "connection: close"
|
-hdr "connection: close"
|
||||||
# # "this is not sent"
|
# "this is not sent"
|
||||||
# sendhex "74787973207973206E6F742073656E740D0A0D0A"
|
sendhex "74787973207973206E6F742073656E740D0A0D0A"
|
||||||
# rxresp
|
rxresp
|
||||||
# expect resp.status == 200
|
expect resp.status == 200
|
||||||
#
|
|
||||||
# # the connection is expected to be closed and no more response must
|
# the connection is expected to be closed and no more response must
|
||||||
# # arrive here.
|
# arrive here.
|
||||||
# expect_close
|
expect_close
|
||||||
#} -run
|
} -run
|
||||||
|
|
||||||
client c1h1 -connect ${h1_feh1_sock} {
|
client c1h1 -connect ${h1_feh1_sock} {
|
||||||
# first request is valid
|
# first request is valid
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user