Skip to content

Instantly share code, notes, and snippets.

@rezan
Created November 8, 2018 20:11
Show Gist options
  • Save rezan/55ed76ad673646a03decfb02fba85ace to your computer and use it in GitHub Desktop.
Save rezan/55ed76ad673646a03decfb02fba85ace to your computer and use it in GitHub Desktop.
Using CAPS for a VMOD
varnishtest "Test vmod in caps"
server s1 {
rxreq
txresp
} -start
varnish v1 -vcl+backend {
import std;
sub vcl_recv {
STD.log("test");
}
} -start
client c1 {
txreq
rxresp
expect resp.status == 200
} -run
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment