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
f5a875a0
Commit
f5a875a0
authored
Oct 02, 2019
by
Nils Goroll
Committed by
Reza Naghibi
Jun 16, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add test case by @rezan
parent
7b40b80d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
0 deletions
+33
-0
r03009.vtc
bin/varnishtest/tests/r03009.vtc
+33
-0
No files found.
bin/varnishtest/tests/r03009.vtc
0 → 100644
View file @
f5a875a0
varnishtest "Rollback without restart/retry is unsafe"
server s1 {
rxreq
txresp
} -start
varnish v1 -vcl+backend {
import std;
sub vcl_recv {
set req.http.test = "1";
}
sub vcl_backend_fetch {
unset bereq.http.test;
}
sub vcl_backend_response {
std.rollback(bereq);
set beresp.http.test = bereq.http.test;
set beresp.http.workspace = "start overwriting active workspace";
set beresp.http.workspace = "0123456789012345678901234567890123456789";
# panic...
}
} -start
client c1 {
txreq
rxresp
expect resp.status == 200
expect resp.http.test == "1"
} -run
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