[master] 3e02788d8 Polish and more coverage
Federico G. Schwindt
fgsch at lodoss.net
Mon May 13 22:09:12 UTC 2019
commit 3e02788d8c7be9324afc55d841b22defd5047eb1
Author: Federico G. Schwindt <fgsch at lodoss.net>
Date: Mon May 13 11:49:44 2019 +0100
Polish and more coverage
diff --git a/bin/varnishtest/tests/m00000.vtc b/bin/varnishtest/tests/m00000.vtc
index 5ddd706ce..b0e894419 100644
--- a/bin/varnishtest/tests/m00000.vtc
+++ b/bin/varnishtest/tests/m00000.vtc
@@ -44,6 +44,7 @@ varnish v1 -vcl+backend {
set resp.http.bar = std.tolower(resp.http.bar);
set resp.http.who = debug.author(mithrandir);
set resp.http.really = debug.author();
+ set resp.http.when = objx.date();
set resp.http.what = vtc.typesize("dfijlopsz");
set resp.http.not = vtc.typesize("*");
debug.test_priv_call();
@@ -67,6 +68,7 @@ client c1 {
expect resp.http.bar == "foo"
expect resp.http.who == "Tollef"
expect resp.http.really == "Poul-Henning"
+ expect resp.http.when == "Thu, 01 Jan 1970 00:00:21 GMT"
expect resp.http.encrypted == "ROT52"
expect resp.http.what >= 16
expect resp.http.not == -1
@@ -91,6 +93,7 @@ logexpect l1 -v v1 -g raw -d 1 {
expect 0 = RespHeader {^bar: foo}
expect 0 = RespHeader {^who: Tollef}
expect 0 = RespHeader {^really: Poul-Henning}
+ expect 0 = RespHeader {^when: Thu, 01 Jan 1970 00:00:21 GMT}
expect 0 = RespHeader {^what: [1-9][0-9]}
expect 0 = RespHeader {^not: -1}
expect 0 = VCL_Log {^VCL initiated log}
diff --git a/bin/varnishtest/tests/o00004.vtc b/bin/varnishtest/tests/o00004.vtc
index 5effa2890..e582df24d 100644
--- a/bin/varnishtest/tests/o00004.vtc
+++ b/bin/varnishtest/tests/o00004.vtc
@@ -12,8 +12,6 @@ server s1 {
} -start
varnish v1 -proto PROXY -vcl+backend {
- import debug;
-
sub vcl_recv {
if (client.ip != remote.ip || server.ip != local.ip) {
return (synth(400));
More information about the varnish-commit
mailing list