[master] e42db6e Test case from #2157

Dridi Boukelmoune dridi.boukelmoune at gmail.com
Wed Aug 30 17:20:07 CEST 2017


commit e42db6e8cf41d1c75cec4bdd6ab46e24919ba539
Author: Dridi Boukelmoune <dridi.boukelmoune at gmail.com>
Date:   Wed Aug 30 17:19:00 2017 +0200

    Test case from #2157

diff --git a/bin/varnishtest/tests/r02157.vtc b/bin/varnishtest/tests/r02157.vtc
new file mode 100644
index 0000000..4aaba65
--- /dev/null
+++ b/bin/varnishtest/tests/r02157.vtc
@@ -0,0 +1,19 @@
+varnishtest "Long vcl/backend names"
+
+server s1 {
+	rxreq
+	txresp
+} -start
+
+varnish v1 -vcl+backend {} -start
+
+# 64 chars vlc name, 64 chars backend name
+varnish v1 -cliok { vcl.inline abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789 "vcl 4.0; backend abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789 {.host = \"127.0.0.1\"; .port = \"${s1_port}\";} " }
+
+# 127 chars vlc name, 1 char backend name
+varnish v1 -cliok { vcl.inline abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef012345678 "vcl 4.0; backend a {.host = \"127.0.0.1\"; .port = \"${s1_port}\";} " }
+
+client c1 {
+	txreq
+	rxresp
+} -run



More information about the varnish-commit mailing list