Commit f1b5d3f8 authored by Joshua Bussdieker's avatar Joshua Bussdieker

Autogenerated tests.

parent c580d436
varnishtest "Test Key matcher functionality"
server s1 {
rxreq
txresp -hdr "Key: Foobar;w=\"a\""
rxreq
txresp -hdr "Key: Foobar;w=\"a\""
} -start
varnish v1 -vcl+backend {} -start
client c1 {
txreq -hdr "Foobar: a"
rxresp
expect resp.status == 200
expect resp.http.X-Varnish == "1001"
txreq -hdr "Foobar: a"
rxresp
expect resp.status == 200
expect resp.http.X-Varnish == "1003 1002"
} -run
varnishtest "Test Key matcher functionality"
server s1 {
rxreq
txresp -hdr "Key: Foobar;w=\"a\""
rxreq
txresp -hdr "Key: Foobar;w=\"a\""
} -start
varnish v1 -vcl+backend {} -start
client c1 {
txreq -hdr "Foobar: b"
rxresp
expect resp.status == 200
expect resp.http.X-Varnish == "1001"
txreq -hdr "Foobar: b"
rxresp
expect resp.status == 200
expect resp.http.X-Varnish == "1003"
} -run
varnishtest "Test Key matcher functionality"
server s1 {
rxreq
txresp -hdr "Key: Foobar;c;w=\"a\""
rxreq
txresp -hdr "Key: Foobar;c;w=\"a\""
} -start
varnish v1 -vcl+backend {} -start
client c1 {
txreq -hdr "Foobar: A"
rxresp
expect resp.status == 200
expect resp.http.X-Varnish == "1001"
txreq -hdr "Foobar: A"
rxresp
expect resp.status == 200
expect resp.http.X-Varnish == "1003"
} -run
varnishtest "Test Key matcher functionality"
server s1 {
rxreq
txresp -hdr "Key: Foobar;n;w=\"a\""
rxreq
txresp -hdr "Key: Foobar;n;w=\"a\""
} -start
varnish v1 -vcl+backend {} -start
client c1 {
txreq -hdr "Foobar: b"
rxresp
expect resp.status == 200
expect resp.http.X-Varnish == "1001"
txreq -hdr "Foobar: b"
rxresp
expect resp.status == 200
expect resp.http.X-Varnish == "1003 1002"
} -run
varnishtest "Test Key matcher functionality"
server s1 {
rxreq
txresp -hdr "Key: Foobar;w=\"a\";n;w=\"b\""
rxreq
txresp -hdr "Key: Foobar;w=\"a\";n;w=\"b\""
} -start
varnish v1 -vcl+backend {} -start
client c1 {
txreq -hdr "Foobar: a, c"
rxresp
expect resp.status == 200
expect resp.http.X-Varnish == "1001"
txreq -hdr "Foobar: a, c"
rxresp
expect resp.status == 200
expect resp.http.X-Varnish == "1003 1002"
} -run
varnishtest "Test Key matcher functionality"
server s1 {
rxreq
txresp -hdr "Key: Foobar;w=\"a\";n;w=\"b\""
rxreq
txresp -hdr "Key: Foobar;w=\"a\";n;w=\"b\""
} -start
varnish v1 -vcl+backend {} -start
client c1 {
txreq -hdr "Foobar: a, b"
rxresp
expect resp.status == 200
expect resp.http.X-Varnish == "1001"
txreq -hdr "Foobar: a, b"
rxresp
expect resp.status == 200
expect resp.http.X-Varnish == "1003"
} -run
varnishtest "Test Key matcher functionality"
server s1 {
rxreq
txresp -hdr "Key: Foobar;w=\"\\\"a\\\"\""
rxreq
txresp -hdr "Key: Foobar;w=\"\\\"a\\\"\""
} -start
varnish v1 -vcl+backend {} -start
client c1 {
txreq -hdr "Foobar: \"a\""
rxresp
expect resp.status == 200
expect resp.http.X-Varnish == "1001"
txreq -hdr "Foobar: \"a\""
rxresp
expect resp.status == 200
expect resp.http.X-Varnish == "1003 1002"
} -run
varnishtest "Test Key matcher functionality"
server s1 {
rxreq
txresp -hdr "Key: Foobar;w=\"\\\"a\\\"\""
rxreq
txresp -hdr "Key: Foobar;w=\"\\\"a\\\"\""
} -start
varnish v1 -vcl+backend {} -start
client c1 {
txreq -hdr "Foobar: \"a\""
rxresp
expect resp.status == 200
expect resp.http.X-Varnish == "1001"
txreq -hdr "Foobar: \"a\""
rxresp
expect resp.status == 200
expect resp.http.X-Varnish == "1003 1002"
} -run
varnishtest "Test Key matcher functionality"
server s1 {
rxreq
txresp -hdr "Key: Foobar;w=\"\\a\""
rxreq
txresp -hdr "Key: Foobar;w=\"\\a\""
} -start
varnish v1 -vcl+backend {} -start
client c1 {
txreq -hdr "Foobar: \\a"
rxresp
expect resp.status == 200
expect resp.http.X-Varnish == "1001"
txreq -hdr "Foobar: \\a"
rxresp
expect resp.status == 200
expect resp.http.X-Varnish == "1003 1002"
} -run
varnishtest "Test Key matcher functionality"
server s1 {
rxreq
txresp -hdr "Key: Foobar;p=\"text/html\""
rxreq
txresp -hdr "Key: Foobar;p=\"text/html\""
} -start
varnish v1 -vcl+backend {} -start
client c1 {
txreq -hdr "Foobar: text/html"
rxresp
expect resp.status == 200
expect resp.http.X-Varnish == "1001"
txreq -hdr "Foobar: text/html"
rxresp
expect resp.status == 200
expect resp.http.X-Varnish == "1003 1002"
} -run
varnishtest "Test Key matcher functionality"
server s1 {
rxreq
txresp -hdr "Key: Foobar;p=\"text/html\""
rxreq
txresp -hdr "Key: Foobar;p=\"text/html\""
} -start
varnish v1 -vcl+backend {} -start
client c1 {
txreq -hdr "Foobar: text/html; q=0.5"
rxresp
expect resp.status == 200
expect resp.http.X-Varnish == "1001"
txreq -hdr "Foobar: text/html; q=0.5"
rxresp
expect resp.status == 200
expect resp.http.X-Varnish == "1003 1002"
} -run
varnishtest "Test Key matcher functionality"
server s1 {
rxreq
txresp -hdr "Key: Foobar;p=\"text/html\""
rxreq
txresp -hdr "Key: Foobar;p=\"text/html\""
} -start
varnish v1 -vcl+backend {} -start
client c1 {
txreq -hdr "Foobar: text/html;q=0.1"
rxresp
expect resp.status == 200
expect resp.http.X-Varnish == "1001"
txreq -hdr "Foobar: text/html;q=0.1"
rxresp
expect resp.status == 200
expect resp.http.X-Varnish == "1003 1002"
} -run
varnishtest "Test Key matcher functionality"
server s1 {
rxreq
txresp -hdr "Key: Foobar;p=\"text/html\""
rxreq
txresp -hdr "Key: Foobar;p=\"text/html\""
} -start
varnish v1 -vcl+backend {} -start
client c1 {
txreq -hdr "Foobar: text/html; foo=\"bar\""
rxresp
expect resp.status == 200
expect resp.http.X-Varnish == "1001"
txreq -hdr "Foobar: text/html; foo=\"bar\""
rxresp
expect resp.status == 200
expect resp.http.X-Varnish == "1003 1002"
} -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