varnishtest "Test formatting of timestamps"

# We can't test the value of x-timestamp, but this should fail
# if we can't set the header at all.

server s1 {
	rxreq
	txresp
} -start

varnish v1 -vcl+backend {
	sub vcl_recv {
		return (synth(200));
	}
	sub vcl_synth {
		set resp.http.x-timestamp = now;
	}
} -start

client c1 {
	txreq
	rxresp
	expect resp.http.x-timestamp ~ "..., .. ... .... ..:..:.. GMT"
} -run
