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
b6d0ff84
Commit
b6d0ff84
authored
Jan 27, 2017
by
Federico G. Schwindt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Merge tests and reshuffle things
parent
46536b1b
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
23 additions
and
18 deletions
+23
-18
c00003.vtc
bin/varnishtest/tests/c00003.vtc
+17
-1
j00002.vtc
bin/varnishtest/tests/j00002.vtc
+0
-8
j00003.vtc
bin/varnishtest/tests/j00003.vtc
+6
-0
r01770.vtc
bin/varnishtest/tests/r01770.vtc
+0
-4
r01813.vtc
bin/varnishtest/tests/r01813.vtc
+0
-5
No files found.
bin/varnishtest/tests/c00003.vtc
View file @
b6d0ff84
varnishtest "Check that we fail to start if any listen address does not work"
varnishtest "Check that we fail to start with erroneous -a/-b arguments"
server s1 {}
varnish v1 -vcl+backend {} -start
varnish v1 -stop
# Duplicate -a arguments
shell -err -expect "have same address" {
varnishd -d -a 127.0.0.1:${v1_port} -a 127.0.0.1:${v1_port} \
-b localhost:80
}
# -a bad protocol specs
shell -err -expect "Too many sub-arguments" \
"varnishd -a 127.0.0.1:80000,PROXY,FOO -d 2>&1"
shell -err -expect "Too many sub-arguments" \
"varnishd -a 127.0.0.1:80000,HTTP/1,FOO -d 2>&1"
# This requires non-local binds to be disabled. If you see this fail
# and are on Linux, ensure /proc/net/ipv4/ip_nonlocal_bind is set to 0.
...
...
bin/varnishtest/tests/j00002.vtc
deleted
100644 → 0
View file @
46536b1b
varnishtest "-junix bad subarg handling"
feature root
shell -err -expect "unknown sub-argument" "varnishd -junix,bla=foo -f '' 2>&1"
shell -err -expect "user not found" "varnishd -junix,user=/// -f '' 2>&1"
shell -err -expect "user not found" "varnishd -junix,workuser=/// -f '' 2>&1"
shell -err -expect "group not found" "varnishd -junix,ccgroup=/// -f '' 2>&1"
bin/varnishtest/tests/j00003.vtc
View file @
b6d0ff84
varnishtest "-junix bad subarg handling"
feature root
shell -err -expect "unknown sub-argument" "varnishd -junix,bla=foo -f '' 2>&1"
shell -err -expect "user not found" "varnishd -junix,user=/// -f '' 2>&1"
shell -err -expect "user not found" "varnishd -junix,workuser=/// -f '' 2>&1"
shell -err -expect "group not found" "varnishd -junix,ccgroup=/// -f '' 2>&1"
feature user_varnish
shell -err -expect "have different login groups" "varnishd -junix,workuser=root -f '' 2>&1"
bin/varnishtest/tests/r01770.vtc
deleted
100644 → 0
View file @
46536b1b
varnishtest "bad protocol specs for -a"
shell -err -expect "Too many sub-arguments" "varnishd -a 127.0.0.1:80000,PROXY,FOO -d 2>&1"
shell -err -expect "Too many sub-arguments" "varnishd -a 127.0.0.1:80000,HTTP/1,FOO -d 2>&1"
bin/varnishtest/tests/r01813.vtc
deleted
100644 → 0
View file @
46536b1b
varnishtest "Duplicate -a arguments"
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
}
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