Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
varnish-cache
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
varnishcache
varnish-cache
Commits
f051dddd
Commit
f051dddd
authored
Jun 19, 2024
by
Dridi Boukelmoune
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vtc: Do not resolve localhost in test cases
parent
f0d0ab75
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
8 deletions
+8
-8
c00003.vtc
bin/varnishtest/tests/c00003.vtc
+2
-2
s00005.vtc
bin/varnishtest/tests/s00005.vtc
+3
-3
v00049.vtc
bin/varnishtest/tests/v00049.vtc
+3
-3
No files found.
bin/varnishtest/tests/c00003.vtc
View file @
f051dddd
...
...
@@ -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
...
...
bin/varnishtest/tests/s00005.vtc
View file @
f051dddd
...
...
@@ -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 {
...
...
bin/varnishtest/tests/v00049.vtc
View file @
f051dddd
...
...
@@ -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}
\";} "}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment