Commit f822f73c authored by Geoff Simmons's avatar Geoff Simmons

test the extract() function in the test based on Varnish r00896.vtc

parent fc312153
......@@ -38,6 +38,9 @@ varnish v1 -vcl+backend {
set resp.http.longall
= re2.suball("^(abcdefghij|abcdefghij|abcdefghij|abcdefghij|abcdefghij|abcdefghij|abcdefghij|abcdefghij|abcdefghij|abcdefghij|abcdefghij|abcdefghij|abcdefghij|abcdefghij|abcdefghij|abcdefghij|abcdefghij|abcdefghij|abcdefghij|abcdefghij|abcdefghij|abcdefghij|abcdefghij|abcdefghij|abcdefghij|abcdefghij)",
req.http.host, "z", "fallback");
set resp.http.longextract
= re2.extract("^(abcdefghij|abcdefghij|abcdefghij|abcdefghij|abcdefghij|abcdefghij|abcdefghij|abcdefghij|abcdefghij|abcdefghij|abcdefghij|abcdefghij|abcdefghij|abcdefghij|abcdefghij|abcdefghij|abcdefghij|abcdefghij|abcdefghij|abcdefghij|abcdefghij|abcdefghij|abcdefghij|abcdefghij|abcdefghij|abcdefghij)",
req.http.host, "z", "fallback");
}
} -start
......@@ -47,4 +50,5 @@ client c1 {
expect resp.status == 200
expect resp.http.long == "fallback"
expect resp.http.longall == "fallback"
expect resp.http.longextract == "fallback"
} -run
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