Skip to content

Commit

Permalink
vtc: Do not resolve localhost in test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
dridi committed Jun 21, 2024
1 parent a98ce4f commit cad8eeb
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions bin/varnishtest/tests/b00058.vtc
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ feature cmd {getent hosts localhost && getent services http}
varnish v1 -arg "-p vcc_feature=-err_unref" -vcl {
backend b1 {.host = "127.0.0.1";}
backend b2 {.host = "[::1]:8080";}
backend b3 {.host = "localhost:8081";}
backend b4 {.host = "localhost:http";}
backend b3 {.host = "${localhost}:8081";}
backend b4 {.host = "${localhost}:http";}
backend b5 {.host = "127.0.0.1";.port = "8081";}
backend b6 {.host = "127.0.0.1";.port = "http";}
}
2 changes: 1 addition & 1 deletion bin/varnishtest/tests/p00000.vtc
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ varnishtest "Test Basic persistence"
feature persistent_storage

process p1 -dump {
varnishd -spersistent -b localhost -n ${tmpdir} -a :0 -d 2>&1
varnishd -spersistent -b ${localhost} -n ${tmpdir} -a :0 -d 2>&1
} -start -expect-exit 1

process p1 -expect-text 0 0 {to launch}
Expand Down
6 changes: 3 additions & 3 deletions bin/varnishtest/tests/s00003.vtc
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,14 @@ varnish v1 -vsl_catchup
varnish v1 -cliok "ban obj.http.date ~ ."

process p1 {
varnishd -sTransient=file,${tmpdir}/foo,xxx -blocalhost -a:0 -n ${tmpdir} 2>&1
varnishd -sTransient=file,${tmpdir}/foo,xxx -b${localhost} -a:0 -n ${tmpdir} 2>&1
} -expect-exit 0x2 -dump -start -expect-text 0 0 "Invalid number" -wait -screen_dump

process p1 {
varnishd -sTransient=file,${tmpdir}/foo,10M,xxx -blocalhost -a:0 -n ${tmpdir} 2>&1
varnishd -sTransient=file,${tmpdir}/foo,10M,xxx -b${localhost} -a:0 -n ${tmpdir} 2>&1
} -expect-exit 0x2 -dump -start -expect-text 0 0 "granularity" -wait -screen_dump

process p1 {
varnishd -sTransient=file,${tmpdir}/foo,10m,,foo -blocalhost -a:0 -n ${tmpdir} 2>&1
varnishd -sTransient=file,${tmpdir}/foo,10m,,foo -b${localhost} -a:0 -n ${tmpdir} 2>&1
} -expect-exit 0x2 -dump -start -expect-text 0 0 "invalid advice" -wait

0 comments on commit cad8eeb

Please sign in to comment.