Test that objects are still present after varnish reload

to be able to do this and see the right object, we need to change the
test case to a private upload directory (defaults to per-vtc working
directory)
parent 67148994
......@@ -40,7 +40,7 @@ varnish v1 -vcl+backend {
sub vcl_init {
new test = tus.server("https://my.origin");
new tmp = tus.server("http://localhost",
basedir="/tmp/tus", max = 3145B);
max = 3145B);
}
sub vcl_backend_fetch {
if (bereq.url ~ "^/tus") {
......@@ -528,3 +528,24 @@ client c8 -wait
client c9 -wait
client c10 -wait
client c11 -wait
varnish v1 -stop
varnish v1 -start
# check that objects are still present
client c2 {
txreq -method HEAD -url "/vtc" \
-hdr "Tus-Resumable: 1.0.0"
rxresp
expect resp.status == 200
expect resp.http.Tus-Resumable == "1.0.0"
expect resp.http.Tus-Version == "1.0.0"
expect resp.http.Tus-Extension == "creation,creation-with-upload,expiration,termination,concatenation"
expect resp.http.Tus-Checksum-Algorithm == <undef>
expect resp.http.Tus-Max-Size == 3145
expect resp.http.Upload-Offset == 100
expect resp.http.Upload-Length == 100
expect resp.http.Upload-Expires ~ "GMT$"
} -run
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment