Commit 05198064 authored by Dridi Boukelmoune's avatar Dridi Boukelmoune Committed by Lasse Karstensen

Avoid connection attempts to ${bad_ip}:80

There is a Squid server listening in today's office...
parent dffd38af
......@@ -4,7 +4,8 @@ varnishtest "Check synthetic error page caching"
varnish v1 -vcl {
backend foo {
.host = "${bad_ip}"; .port = "9080";
.host = "${bad_ip}";
.port = "9080";
}
} -start
......
......@@ -2,7 +2,8 @@ varnishtest "Check that we do not close one error"
varnish v1 -vcl {
backend foo {
.host = "${bad_ip}"; .port = "9080";
.host = "${bad_ip}";
.port = "9080";
}
sub vcl_recv {
return (synth(888));
......
......@@ -2,7 +2,8 @@ varnishtest "Test that we can't recurse restarts forever"
varnish v1 -vcl {
backend bad {
.host = "${bad_ip}"; .port = "9090";
.host = "${bad_ip}";
.port = "9090";
}
sub vcl_backend_fetch {
......
......@@ -2,7 +2,7 @@ varnishtest "retry in vcl_backend_error"
varnish v1 -vcl {
backend b1 { .host = "${bad_ip}"; }
backend b1 { .host = "${bad_ip}"; .port = "9080"; }
sub vcl_backend_error {
return (retry);
......
......@@ -2,7 +2,7 @@ varnishtest "cache backend synth object"
varnish v1 -vcl {
backend b { .host = "${bad_ip}"; }
backend b { .host = "${bad_ip}"; .port = "9080"; }
sub vcl_backend_error {
set beresp.ttl = 1s;
......
......@@ -6,7 +6,7 @@ server s1 {
} -start
varnish v1 -vcl+backend {
backend bad { .host = "${bad_ip}"; }
backend bad { .host = "${bad_ip}"; .port = "9080"; }
sub vcl_recv {
if (req.url == "/synth") {
return (synth(200, "Synth test"));
......
......@@ -8,7 +8,7 @@ server s1 {
varnish v1 -vcl {
import ${vmod_debug};
backend dummy { .host = "${bad_ip}"; }
backend dummy { .host = "${bad_ip}"; .port = "9080"; }
sub vcl_init {
new s1 = debug.dyn("${s1_addr}", "${s1_port}");
......
......@@ -15,7 +15,7 @@ server s2 {
varnish v1 -vcl {
import ${vmod_debug};
backend dummy { .host = "${bad_ip}"; }
backend dummy { .host = "${bad_ip}"; .port = "9080"; }
sub vcl_init {
new s1 = debug.dyn("${s1_addr}", "${s1_port}");
......
......@@ -18,7 +18,7 @@ server s2 {
varnish v1 -vcl {
import ${vmod_debug};
backend dummy { .host = "${bad_ip}"; }
backend dummy { .host = "${bad_ip}"; .port = "9080"; }
sub vcl_init {
new s1 = debug.dyn("${s1_addr}", "${s1_port}");
......
......@@ -18,7 +18,7 @@ server s2 {
varnish v1 -vcl {
import ${vmod_debug};
backend dummy { .host = "${bad_ip}"; }
backend dummy { .host = "${bad_ip}"; .port = "9080"; }
sub vcl_init {
new s1 = debug.dyn("${s1_addr}", "${s1_port}");
......
......@@ -12,7 +12,7 @@ varnish v1 -vcl {
import ${vmod_std};
import ${vmod_debug};
backend dummy { .host = "${bad_ip}"; }
backend dummy { .host = "${bad_ip}"; .port = "9080"; }
sub vcl_init {
new s1 = debug.dyn("${s1_addr}", "${s1_port}");
......
......@@ -12,7 +12,7 @@ server s1 {
varnish v1 -arg "-p thread_pools=1" -vcl {
import ${vmod_debug};
backend dummy { .host = "${bad_ip}"; }
backend dummy { .host = "${bad_ip}"; .port = "9080"; }
sub vcl_init {
new s1 = debug.dyn("${s1_addr}", "${s1_port}");
......@@ -41,7 +41,7 @@ server s2 {
varnish v1 -vcl {
import ${vmod_debug};
backend dummy { .host = "${bad_ip}"; }
backend dummy { .host = "${bad_ip}"; .port = "9080"; }
sub vcl_init {
new s2 = debug.dyn("${s2_addr}", "${s2_port}");
......
......@@ -12,7 +12,7 @@ varnish v1 -vcl {
import ${vmod_std};
import ${vmod_debug};
backend dummy { .host = "${bad_ip}"; }
backend dummy { .host = "${bad_ip}"; .port = "9080"; }
sub vcl_init {
new s1 = debug.dyn("${s1_addr}", "${s1_port}");
......
......@@ -3,7 +3,7 @@ varnishtest "Real relational comparisons"
varnish v1 -vcl {
import ${vmod_std};
backend foo { .host = "${bad_ip}"; }
backend foo { .host = "${bad_ip}"; .port = "9080"; }
sub vcl_recv {
if (std.random(0,5) < 1.0) {
return (pipe);
......
......@@ -2,7 +2,8 @@ varnishtest "Test vcl_synth is called even if vcl_backend_fetch failed"
varnish v1 -vcl {
backend default {
.host = "${bad_ip}"; .port = "9090";
.host = "${bad_ip}";
.port = "9090";
}
sub vcl_backend_error {
......
......@@ -2,7 +2,8 @@ varnishtest "ticket 1398"
varnish v1 -vcl {
backend foo {
.host = "${bad_ip}"; .port = "9080";
.host = "${bad_ip}";
.port = "9080";
}
sub vcl_backend_response {
set beresp.http.X-BE-Name = beresp.backend.name;
......
......@@ -3,6 +3,7 @@ varnishtest "unreferenced acls"
varnish v1 -arg "-p vcc_err_unref=off" -vcl {
backend s1 {
.host = "${bad_ip}";
.port = "9090";
}
acl foo {
"127.0.0.1";
......
......@@ -11,7 +11,7 @@ varnish v1 -errvcl {Object name 'first' already used.} {
varnish v1 -errvcl {Object name 'first' already used.} {
import ${vmod_debug};
backend first { .host = "${bad_ip}"; }
backend first { .host = "${bad_ip}"; .port = "9080"; }
sub vcl_init {
new first = debug.obj("FOO");
......
......@@ -33,7 +33,7 @@ client c1 {
# Then across v_b_e and v_b_f
varnish v1 -vcl {
backend bad { .host = "${bad_ip}"; }
backend bad { .host = "${bad_ip}"; .port = "9080"; }
sub vcl_backend_fetch {
set bereq.backend = bad;
if (bereq.http.x-abandon == "2") {
......
varnishtest "Test connection error on pipe"
varnish v1 -vcl {
backend default { .host = "${bad_ip}"; }
backend default { .host = "${bad_ip}"; .port = "9080"; }
sub vcl_recv {
return (pipe);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment