Commit ef091ff4 authored by Geoff Simmons's avatar Geoff Simmons

add test z00000.vtc

parent 7cbaa372
# Somewhat oversimplified, but at least it ensures that SOMETHING works
# (The alternative would be to automakeify this test or manually update it
# every time there's a new version, which defeats the purpose somewhat).
varnishtest "version string"
server s1 {
rxreq
expect req.url == "/"
txresp -status 200
} -start
varnish v1 -vcl+backend {
import backend_dyn from "${vmod_topbuild}/src/.libs/libvmod_backend_dyn.so";
sub vcl_backend_response {
set beresp.http.x-version = backend_dyn.version();
if (!beresp.http.x-version) {
set beresp.status = 500;
}
return(deliver);
}
} -start
client c1 {
txreq -url "/"
rxresp
expect resp.status == 200
expect resp.http.x-version ~ "^.+$"
} -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