Commit ab648c84 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Eliminated varnishd from these tests

parent b2075031
......@@ -12,9 +12,7 @@ server s1 {
txresp -hdr "Content-Type: text/plain" -body response
} -start
varnish v1 -vcl+backend {} -start -cliok "param.set debug +syncvsl"
client c1 {
client c1 -connect ${s1_sock} {
txreq -req POST -hdr "Content-Type: text/plain" -body request
# First, HTTP checks
......
......@@ -8,28 +8,9 @@ server s1 {
txresp -hdr "Bar: ${bar}"
} -start
varnish v1 -vcl {
backend default {
.host = "${s1_addr}";
.port = "${s1_port}";
}
sub vcl_deliver {
if (resp.http.Bar == "${bar}") {
set resp.http.Baz = "${baz}";
}
}
} -start
client c1 {
client c1 -connect ${s1_sock} {
txreq -hdr "Foo: ${foo}"
rxresp
expect resp.status == 200
expect resp.http.Bar == "${bar}"
expect resp.http.Baz == "${baz}"
} -run
shell {
touch ${tmpdir}/tst
rm ${tmpdir}/tst
}
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