Commit f051dddd authored by Dridi Boukelmoune's avatar Dridi Boukelmoune

vtc: Do not resolve localhost in test cases

parent f0d0ab75
......@@ -3,11 +3,11 @@ varnishtest "Check that we fail to start with erroneous -a/-b arguments"
# Duplicate -a arguments
# XXX: this cannot be tested reliably, we tolerate port collision
shell -err -match "have same address|already in use" {
varnishd -d -a 127.0.0.1:38484 -a 127.0.0.1:38484 -b localhost:80
varnishd -d -a 127.0.0.1:38484 -a 127.0.0.1:38484 -b ${localhost}:80
}
shell -err -match "have same address|already in use" {
varnishd -d -a ${tmpdir}/vtc.sock -a ${tmpdir}/vtc.sock -b localhost:80
varnishd -d -a ${tmpdir}/vtc.sock -a ${tmpdir}/vtc.sock -b ${localhost}:80
}
# -a bad protocol specs
......
......@@ -8,9 +8,9 @@ server s1 {
varnish v1 -vcl+backend {}
# VCL name must be C-names
varnish v1 -clierr 106 {vcl.inline 0000 "vcl 4.0; backend b { .host = \"localhost\";} "}
varnish v1 -clierr 106 {vcl.inline a00/ "vcl 4.0; backend b { .host = \"localhost\";} "}
varnish v1 -clierr 106 {vcl.inline a00å "vcl 4.0; backend b { .host = \"localhost\";} "}
varnish v1 -clierr 106 {vcl.inline 0000 "vcl 4.0; backend b { .host = \"${localhost}\";} "}
varnish v1 -clierr 106 {vcl.inline a00/ "vcl 4.0; backend b { .host = \"${localhost}\";} "}
varnish v1 -clierr 106 {vcl.inline a00å "vcl 4.0; backend b { .host = \"${localhost}\";} "}
varnish v1 -vcl+backend {
sub vcl_recv {
......
......@@ -17,11 +17,11 @@ varnish v1 -syntax 4.0 -errvcl "VCL version 9.9 not supported" {
}
varnish v1 -cliexpect {Don't play silly buggers with VCL version numbers} \
{vcl.inline t0 "vcl 4.00 ; backend b { .host = \"localhost\";} "}
{vcl.inline t0 "vcl 4.00 ; backend b { .host = \"${localhost}\";} "}
varnish v1 -cliexpect {Don't play silly buggers with VCL version numbers} \
{vcl.inline t1 "vcl 04.0 ; backend b { .host = \"localhost\";} "}
{vcl.inline t1 "vcl 04.0 ; backend b { .host = \"${localhost}\";} "}
varnish v1 -cliexpect {Expected 'vcl N.N;' found no semi-colon} \
{vcl.inline t2 "vcl 4.0 backend b { .host = \"localhost\";} "}
{vcl.inline t2 "vcl 4.0 backend b { .host = \"${localhost}\";} "}
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