This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
varnishtest "Log probe activity across different intervals" | |
server s1 -repeat 31 { | |
rxreq | |
txresp | |
} -start | |
varnish v1 -vcl { | |
backend b1 { | |
.host = "${s1_addr}"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
varnishtest "Object init() and fini()" | |
server s1 { | |
} -start | |
varnish v1 -vcl+backend { | |
import debug; | |
sub vcl_init { | |
if (true) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
varnishtest "Resp body hashing" | |
server s1 { | |
rxreq | |
txresp -body "ABC 123" | |
expect req.url == "/1" | |
rxreq | |
txresp -body "test!" | |
expect req.url == "/2" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
varnishtest "VDP gunzip OA_GZIPBITS streaming race" | |
# Note this should run with -j64 -n10000 | |
server s1 -repeat 50 { | |
rxreq | |
txresp -gziplen 3167 | |
} -start | |
varnish v1 -vcl+backend { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
varnishtest "Temporary sick backends" | |
server s1 { | |
rxreq | |
txresp | |
rxreq | |
txresp | |
} -start | |
varnish v1 -vcl+backend { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# GRPC VCL | |
vcl 4.0; | |
import bodyaccess; | |
import http; | |
import std; | |
import synthbackend; | |
backend default { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
varnishtest "Test hit for miss (6.0)" | |
server s1 -repeat 5 { | |
rxreq | |
txresp | |
} -start | |
varnish v1 -vcl+backend { | |
sub vcl_backend_response { | |
set beresp.uncacheable = true; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
varnishtest "Test vmod in caps" | |
server s1 { | |
rxreq | |
txresp | |
} -start | |
varnish v1 -vcl+backend { | |
import std; |