Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
varnish-cache
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
varnishcache
varnish-cache
Commits
480c5d2d
Commit
480c5d2d
authored
Sep 10, 2021
by
Dridi Boukelmoune
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vtc: Move vmod_std coverage to the vmod/ tree
parent
b42114ed
Changes
19
Hide whitespace changes
Inline
Side-by-side
Showing
19 changed files
with
6 additions
and
6 deletions
+6
-6
README
bin/varnishtest/tests/README
+1
-1
m00000.vtc
bin/varnishtest/tests/m00000.vtc
+1
-3
std_b00000.vtc
vmod/tests/std_b00000.vtc
+0
-0
std_b00002.vtc
vmod/tests/std_b00002.vtc
+0
-0
std_b00003.vtc
vmod/tests/std_b00003.vtc
+0
-0
std_b00004.vtc
vmod/tests/std_b00004.vtc
+0
-0
std_b00005.vtc
vmod/tests/std_b00005.vtc
+0
-0
std_b00006.vtc
vmod/tests/std_b00006.vtc
+0
-0
std_b00007.vtc
vmod/tests/std_b00007.vtc
+0
-0
std_b00008.vtc
vmod/tests/std_b00008.vtc
+0
-0
std_b00009.vtc
vmod/tests/std_b00009.vtc
+0
-0
std_b00010.vtc
vmod/tests/std_b00010.vtc
+0
-0
std_b00011.vtc
vmod/tests/std_b00011.vtc
+0
-0
std_b00012.vtc
vmod/tests/std_b00012.vtc
+4
-0
std_b00013.vtc
vmod/tests/std_b00013.vtc
+0
-0
std_b00014.vtc
vmod/tests/std_b00014.vtc
+0
-0
std_c00000.vtc
vmod/tests/std_c00000.vtc
+0
-2
std_c00001.vtc
vmod/tests/std_c00001.vtc
+0
-0
std_c00002.vtc
vmod/tests/std_c00002.vtc
+0
-0
No files found.
bin/varnishtest/tests/README
View file @
480c5d2d
...
...
@@ -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
...
...
bin/varnishtest/tests/m00000.vtc
View file @
480c5d2d
...
...
@@ -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;
...
...
bin/varnishtest/tests/m00004
.vtc
→
vmod/tests/std_b00000
.vtc
View file @
480c5d2d
File moved
bin/varnishtest/tests/m00005
.vtc
→
vmod/tests/std_b00002
.vtc
View file @
480c5d2d
File moved
bin/varnishtest/tests/m00006
.vtc
→
vmod/tests/std_b00003
.vtc
View file @
480c5d2d
File moved
bin/varnishtest/tests/m00007
.vtc
→
vmod/tests/std_b00004
.vtc
View file @
480c5d2d
File moved
bin/varnishtest/tests/m00011
.vtc
→
vmod/tests/std_b00005
.vtc
View file @
480c5d2d
File moved
bin/varnishtest/tests/m00013
.vtc
→
vmod/tests/std_b00006
.vtc
View file @
480c5d2d
File moved
bin/varnishtest/tests/m00014
.vtc
→
vmod/tests/std_b00007
.vtc
View file @
480c5d2d
File moved
bin/varnishtest/tests/m00015
.vtc
→
vmod/tests/std_b00008
.vtc
View file @
480c5d2d
File moved
bin/varnishtest/tests/m00016
.vtc
→
vmod/tests/std_b00009
.vtc
View file @
480c5d2d
File moved
bin/varnishtest/tests/m00018
.vtc
→
vmod/tests/std_b00010
.vtc
View file @
480c5d2d
File moved
bin/varnishtest/tests/m00020
.vtc
→
vmod/tests/std_b00011
.vtc
View file @
480c5d2d
File moved
bin/varnishtest/tests/m00026
.vtc
→
vmod/tests/std_b00012
.vtc
View file @
480c5d2d
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
bin/varnishtest/tests/m00029
.vtc
→
vmod/tests/std_b00013
.vtc
View file @
480c5d2d
File moved
bin/varnishtest/tests/m00050
.vtc
→
vmod/tests/std_b00014
.vtc
View file @
480c5d2d
File moved
bin/varnishtest/tests/m00001
.vtc
→
vmod/tests/std_c00000
.vtc
View file @
480c5d2d
...
...
@@ -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
bin/varnishtest/tests/m00017
.vtc
→
vmod/tests/std_c00001
.vtc
View file @
480c5d2d
File moved
bin/varnishtest/tests/m00046
.vtc
→
vmod/tests/std_c00002
.vtc
View file @
480c5d2d
File moved
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