Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
libvmod-tus
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
uplex-varnish
libvmod-tus
Commits
6513b72b
Unverified
Commit
6513b72b
authored
Sep 03, 2020
by
Nils Goroll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
impose test
parent
ce1c6a70
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
8 deletions
+16
-8
done.vtc
src/vtc/done.vtc
+16
-8
No files found.
src/vtc/done.vtc
View file @
6513b72b
...
...
@@ -4,7 +4,7 @@ server s1 {
rxreq
txresp
expect req.method == PUT
expect req.bodylen ==
10
0
expect req.bodylen ==
38655
0
} -start
varnish v1 -vcl+backend {
...
...
@@ -15,7 +15,7 @@ varnish v1 -vcl+backend {
sub vcl_init {
new tmp = tus.server("http://localhost",
basedir="/tmp/tus", max =
3145
B);
basedir="/tmp/tus", max =
4M
B);
}
sub vcl_backend_fetch {
if (bereq.url ~ "^/id") {
...
...
@@ -50,21 +50,29 @@ client c1 {
rxresp
txreq -method POST \
-hdr "Upload-Length:
10
0" \
-hdr "Upload-Length:
38655
0" \
-hdr "Tus-Resumable: 1.0.0" \
-hdr "Content-Type: application/offset+octet-stream" \
-hdr "Upload-Checksum: sha256 H98ak0Maj3gjAqfjx2KIqrwAil7CHeKsnJwyzLAXEu8=" \
-hdr "Id: id" \
-bodylen 100
-nolen -hdr "Transfer-Encoding: chunked"
chunkedlen 8192
chunkedlen 4096
chunkedlen 4096
chunkedlen 16384
chunkedlen 16384
chunkedlen 16384
chunkedlen 321014
chunkedlen 0
rxresp
expect resp.status == 201
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,checksum"
expect resp.http.Tus-Checksum-Algorithm == "crc32,icrc32,md5,rs,sha1,sha224,sha256,sha384,sha3_224,sha3_256,sha3_384,sha3_512,sha512"
expect resp.http.Tus-Max-Size ==
3145
expect resp.http.Upload-Offset ==
10
0
expect resp.http.Upload-Length ==
10
0
expect resp.http.Tus-Max-Size ==
4194304
expect resp.http.Upload-Offset ==
38655
0
expect resp.http.Upload-Length ==
38655
0
expect resp.http.Upload-Expires ~ "GMT$"
expect resp.http.Location == "http://localhost/id"
...
...
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