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
0275c199
Commit
0275c199
authored
Nov 23, 2020
by
Dridi Boukelmoune
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vtc: Increase varnishncsa -[bcE] test coverage
parent
d85bd6fc
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
42 additions
and
0 deletions
+42
-0
e00003.vtc
bin/varnishtest/tests/e00003.vtc
+38
-0
u00003.vtc
bin/varnishtest/tests/u00003.vtc
+2
-0
u00006.vtc
bin/varnishtest/tests/u00006.vtc
+2
-0
No files found.
bin/varnishtest/tests/e00003.vtc
View file @
0275c199
...
...
@@ -92,6 +92,44 @@ logexpect l3 -wait
logexpect l4 -wait
logexpect l5 -wait
shell {
varnishncsa -n ${v1_name} -d \
-F '%{Varnish:vxid}x %{Varnish:side}x %{VSL:Begin[3]}x' |
sort > ncsa.txt
cat >expected.txt
<
<
-EOF
1001
c
rxreq
1005
c
rxreq
EOF
diff
-u
expected
.
txt
ncsa
.
txt
}
shell
{
varnishncsa
-n
${
v1_name
}
-d
-b
\
-F
'%{
Varnish:vxid
}
x
%{
Varnish:side
}
x
%{
VSL:Begin
[
3
]}
x
'
|
sort
>
ncsa.txt
cat >expected.txt
<
<
-EOF
1002
b
fetch
1004
b
fetch
EOF
diff
-u
expected
.
txt
ncsa
.
txt
}
shell
{
varnishncsa
-n
${
v1_name
}
-d
-E
\
-F
'%{
Varnish:vxid
}
x
%{
Varnish:side
}
x
%{
VSL:Begin
[
3
]}
x
'
|
sort
>
ncsa.txt
cat >expected.txt
<
<
-EOF
1001
c
rxreq
1003
c
esi
1005
c
rxreq
1006
c
esi
EOF
diff
-u
expected
.
txt
ncsa
.
txt
}
shell
{
varnishncsa
-n
${
v1_name
}
-d
-b
-E
\
-F
'%{
Varnish:vxid
}
x
%{
Varnish:side
}
x
%{
VSL:Begin
[
3
]}
x
'
|
...
...
bin/varnishtest/tests/u00003.vtc
View file @
0275c199
...
...
@@ -159,3 +159,5 @@ process p2 {varnishncsa -t 5 -n nonexistent} -start
delay 1
process p2 -expect-exit 1 -kill INT -wait
shell {grep -q "VSM: Attach interrupted" ${p2_err}}
# ESI coverage in e00003.vtc
bin/varnishtest/tests/u00006.vtc
View file @
0275c199
...
...
@@ -164,3 +164,5 @@ shell -err -expect "Cannot open ${tmpdir}/foo: " \
shell "echo foobar > ${tmpdir}/foo"
shell -err -expect "Not a VSL file: ${tmpdir}/foo" \
"varnishlog -r ${tmpdir}/foo"
# ESI coverage in e00003.vtc
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