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
8457ac6e
Commit
8457ac6e
authored
Mar 16, 2015
by
Federico G. Schwindt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add some tests from the 4.0 branch
parent
7d25d3a1
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
96 additions
and
0 deletions
+96
-0
r01637.vtc
bin/varnishtest/tests/r01637.vtc
+57
-0
r01660.vtc
bin/varnishtest/tests/r01660.vtc
+18
-0
r01691.vtc
bin/varnishtest/tests/r01691.vtc
+21
-0
No files found.
bin/varnishtest/tests/r01637.vtc
0 → 100644
View file @
8457ac6e
varnishtest "do_esi + do_gzip + out of storage: #1637"
server s1 {
# First consume (almost) all of the storage
rxreq
expect req.url == /url1
txresp -bodylen 260000
rxreq
expect req.url == /url2
txresp -bodylen 260000
rxreq
expect req.url == /url3
txresp -bodylen 260000
rxreq
expect req.url == /url4
txresp -bodylen 260000
rxreq
expect req.url == /url5
txresp -bodylen 9000
} -start
varnish v1 -arg "-smalloc,1M" -arg "-p nuke_limit=0 -p gzip_level=0" \
-vcl+backend {
sub vcl_backend_response {
if (bereq.url == "/url5") {
set beresp.do_esi = true;
set beresp.do_gzip = true;
}
}
} -start
client c1 {
txreq -url /url1
rxresp
expect resp.status == 200
txreq -url /url2
rxresp
expect resp.status == 200
txreq -url /url3
rxresp
expect resp.status == 200
txreq -url /url4
rxresp
expect resp.status == 200
txreq -url /url5
rxresp
expect resp.status == 503
} -run
bin/varnishtest/tests/r01660.vtc
0 → 100644
View file @
8457ac6e
varnishtest "#1660: range and synth"
server s1 {
rxreq
txresp
} -start
varnish v1 -vcl+backend {
sub vcl_recv {
return (synth(200, "OK"));
}
} -start
client c1 {
txreq -hdr "Range: 0-1"
rxresp
expect resp.status == 200
} -run
bin/varnishtest/tests/r01691.vtc
0 → 100644
View file @
8457ac6e
varnishtest "Test bogus Content-Length header"
server s1 {
rxreq
txresp -nolen -hdr "Content-Length: bogus"
} -start
varnish v1 -vcl+backend {
} -start
logexpect l1 -v v1 {
expect * 1002 Error "Body cannot be fetched"
} -start
client c1 {
txreq
rxresp
} -run
logexpect l1 -wait
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