Commit 764f1fca authored by Dridi Boukelmoune's avatar Dridi Boukelmoune

Refer to VCL subs as subroutines in the test suite

Except in r02275.vtc until the code it refers to stops referring to
subroutines as methods. While I was searching for relevant tests cases
I also broke some long lines.

Refs 17457b48
parent cca228f5
......@@ -19,21 +19,25 @@ client c1 {
# missing :path
stream 3 {
txreq -noadd -hdr ":authority" "example.com" -hdr ":method" "GET" -hdr ":scheme" "http"
txreq -noadd -hdr ":authority" "example.com" \
-hdr ":method" "GET" -hdr ":scheme" "http"
rxrst
expect rst.err == PROTOCOL_ERROR
} -run
# missing :method
stream 5 {
txreq -noadd -hdr ":authority" "example.com" -hdr ":path" "/foo" -hdr ":scheme" "http"
txreq -noadd -hdr ":authority" "example.com" \
-hdr ":path" "/foo" -hdr ":scheme" "http"
rxrst
expect rst.err == PROTOCOL_ERROR
} -run
# Duplicate :path
stream 7 {
txreq -noadd -hdr ":path" "/" -hdr ":path" "/foo" -hdr ":method" "GET" -hdr ":authority" "example.com" -hdr ":scheme" "http"
txreq -noadd -hdr ":path" "/" -hdr ":path" "/foo" \
-hdr ":method" "GET" -hdr ":authority" "example.com" \
-hdr ":scheme" "http"
rxrst
expect rst.err == PROTOCOL_ERROR
} -run
......
varnishtest "Check function calls with no action return"
varnishtest "Check subroutine calls with no action return"
server s1 {
rxreq
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment