[6.0] 6643c5f41 Add test-case for -conf+backend
Poul-Henning Kamp
phk at FreeBSD.org
Thu Aug 16 08:52:28 UTC 2018
commit 6643c5f41059613106a827eedcc5499cdbd6f99d
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date: Thu Mar 29 11:06:26 2018 +0000
Add test-case for -conf+backend
diff --git a/bin/varnishtest/tests/h00003.vtc b/bin/varnishtest/tests/h00003.vtc
new file mode 100644
index 000000000..c894495b5
--- /dev/null
+++ b/bin/varnishtest/tests/h00003.vtc
@@ -0,0 +1,26 @@
+varnishtest "Test -conf+backend"
+
+feature ignore_unknown_macro
+
+feature cmd {haproxy --version 2>&1 | grep -q 'HA-Proxy version'}
+
+server s1 {
+ rxreq
+ txresp -body "s1 >>> Hello world!"
+} -start
+
+haproxy h1 -arg "-d" -conf+backend {
+ defaults
+ mode http
+ timeout connect 5s
+ timeout server 30s
+ timeout client 30s
+
+} -start
+
+client c1 -connect ${h1_fe1_sock} {
+ txreq -url "/"
+ rxresp
+ expect resp.status == 200
+ expect resp.body == "s1 >>> Hello world!"
+} -run
More information about the varnish-commit
mailing list