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
2fb770ed
Commit
2fb770ed
authored
Feb 23, 2019
by
Geoff Simmons
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve test coverage for VSL query parsing.
parent
8aa77803
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
0 deletions
+16
-0
u00006.vtc
bin/varnishtest/tests/u00006.vtc
+16
-0
No files found.
bin/varnishtest/tests/u00006.vtc
View file @
2fb770ed
...
...
@@ -83,6 +83,22 @@ shell -err -expect "Expected integer got ']'" \
{varnishlog -q "ReqHeader:foo[]"}
shell -err -expect "Expected positive integer" \
{varnishlog -q "ReqHeader:foo[a]"}
shell -err -expect "Syntax error in tag name" \
{varnishlog -q '*x* eq "foo"'}
shell -err -expect "Expected number got '>'" \
{varnishlog -q "RespStatus > >"}
shell -err -expect "Floating point parse error" \
{varnishlog -q "Timestamp:Start[1] > 0.foo"}
shell -err -expect "Integer parse error" \
{varnishlog -q "RespStatus > foo"}
shell -err -expect "Expected string got '>'" \
{varnishlog -q "ReqMethod eq >"}
shell -err -expect "Expected regular expression got '>'" \
{varnishlog -q "ReqMethod ~ >"}
shell -err -expect "Regular expression error: " \
{varnishlog -q 'ReqMethod ~ "("'}
shell -err -expect "Expected operator got 'ReqMethod'" \
{varnishlog -q "RespStatus ReqMethod 200"}
shell -err -expect "-R: Syntax error" \
"varnishlog -R 1foo"
...
...
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