[master] 1bc7abb82 vtc: Import r03564 from the 6.0 branch

Dridi Boukelmoune dridi.boukelmoune at gmail.com
Tue Aug 3 11:54:06 UTC 2021


commit 1bc7abb82981e54c05c1c710c5ac0f1bf0622482
Author: Dridi Boukelmoune <dridi.boukelmoune at gmail.com>
Date:   Tue Aug 3 13:41:39 2021 +0200

    vtc: Import r03564 from the 6.0 branch
    
    Refs 31e3895ab66d

diff --git a/bin/varnishtest/tests/r03564.vtc b/bin/varnishtest/tests/r03564.vtc
new file mode 100644
index 000000000..7252d009b
--- /dev/null
+++ b/bin/varnishtest/tests/r03564.vtc
@@ -0,0 +1,31 @@
+varnishtest "sess.* symbols and vcl syntax"
+
+varnish v1 -vcl {
+	backend be none;
+
+	sub vcl_deliver {
+		set resp.http.sess-xid = sess.xid;
+		set resp.http.sess-timeout-idle = sess.timeout_idle;
+	}
+} -start
+
+client c1 {
+	txreq
+	rxresp
+	expect resp.http.sess-xid == 1000
+	expect resp.http.sess-timeout-idle == 5.000
+} -run
+
+varnish v1 -syntax 4.0 -vcl {
+	backend be none;
+	sub vcl_deliver {
+		set resp.http.sess-timeout-idle = sess.timeout_idle;
+	}
+}
+
+varnish v1 -syntax 4.0 -errvcl "Symbol not found: 'sess.xid'" {
+	backend be none;
+	sub vcl_deliver {
+		set resp.http.sess-xid = sess.xid;
+	}
+}


More information about the varnish-commit mailing list