Commit 480c5d2d authored by Dridi Boukelmoune's avatar Dridi Boukelmoune

vtc: Move vmod_std coverage to the vmod/ tree

parent b42114ed
......@@ -25,7 +25,7 @@ Naming scheme
id ~ ^i --> Interoperability and standards compliance
id ~ ^j --> JAIL tests
id ~ ^l --> VSL tests
id ~ ^m --> VMOD tests excluding director
id ~ ^m --> VMOD facility, vmod_debug and vmod_vtc
id ~ ^o --> prOxy protocol
id ~ ^p --> Persistent tests
id ~ ^r --> Regression tests, same number as ticket
......
......@@ -99,9 +99,7 @@ logexpect l1 -v v1 -g raw -d 1 {
expect 0 = RespHeader {^not: -1}
expect 0 = RespHeader {^Encrypted: ROT52}
expect 0 = VCL_return {^deliver}
} -start
logexpect l1 -wait
} -run
varnish v1 -errvcl {Wrong enum value. Expected one of:} {
import debug;
......
varnishtest "Test std.getenv"
setenv FOO "BAR BAZ"
varnish v1 -vcl {
import std;
......@@ -10,6 +12,7 @@ varnish v1 -vcl {
}
sub vcl_synth {
set resp.http.X-FOO = std.getenv("FOO");
set resp.http.X-PATH = std.getenv("PATH");
set resp.http.X-unset = std.getenv(req.http.unset);
}
......@@ -18,6 +21,7 @@ varnish v1 -vcl {
client c1 {
txreq
rxresp
expect resp.http.X-FOO == "BAR BAZ"
expect resp.http.X-PATH ~ "^/"
expect resp.http.X-unset == ""
} -run
......@@ -114,5 +114,3 @@ logexpect l1 -v v1 -g raw -d 1 {
expect 0 = VCL_Log {^01030507090b0d0f11131517191b1d1f21232527292b2d2f31333537393b3d3f41434547494b4d4f51535557595b5d5f61636567696b6d6f71737577797b7d7f81838587898b8d8f91939597999b9d9fa1a3a5a7a9abadafb1b3b5b7b9bbbdbfc1c3c5c7c9cbcdcfd1d3d5d7d9dbdddfe1e3e5e7e9ebedeff1f3f5f7f9fbfd$}
expect 0 = VCL_return {^deliver}
} -run
#logexpect l1 -wait
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