Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
U
unique-xids
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
uplex-varnish
unique-xids
Commits
881ebc72
Commit
881ebc72
authored
Oct 17, 2012
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add more test-coverage for VCL expressions
parent
6a9d2f2f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
109 additions
and
1 deletion
+109
-1
v00020.vtc
bin/varnishtest/tests/v00020.vtc
+109
-1
No files found.
bin/varnishtest/tests/v00020.vtc
View file @
881ebc72
...
...
@@ -26,7 +26,7 @@ varnish v1 -vcl {
varnish v1 -badvcl {
sub vcl_recv {
if (!req.restarts != req.url) {
set req.http.foo = "foo"
+ 3
;
set req.http.foo = "foo";
}
}
...
...
@@ -79,3 +79,111 @@ varnish v1 -badvcl {
}
}
}
varnish v1 -vcl {
backend b { .host = "127.0.0.1"; }
sub vcl_recv {
set req.http.foo = "foo" + "bar";
set req.http.foo = "foo" + 1;
set req.http.foo = "foo" + now;
set req.http.foo = now + 1s;
set req.http.foo = now - 1s;
set req.http.foo = now - now;
set req.http.foo = 1 + 1;
set req.http.foo = 1 - 1;
set req.ttl = 1s;
}
}
varnish v1 -badvcl {
sub vcl_recv {
set req.http.foo = "foo" - "bar";
}
}
varnish v1 -badvcl {
sub vcl_recv {
set req.http.foo = now + "foo";
}
}
varnish v1 -badvcl {
sub vcl_recv {
set req.http.foo = now + now;
}
}
varnish v1 -badvcl {
sub vcl_recv {
set req.http.foo = now + 1;
}
}
varnish v1 -badvcl {
sub vcl_recv {
set req.http.foo = 1 + "foo";
}
}
varnish v1 -badvcl {
sub vcl_recv {
set req.http.foo = 1 + now;
}
}
varnish v1 -badvcl {
sub vcl_recv {
set req.http.foo = 1 + 1s;
}
}
varnish v1 -badvcl {
sub vcl_recv {
set req.http.foo = 1s;
}
}
varnish v1 -badvcl {
sub vcl_recv {
set req.http.foo = 1s + 1;
}
}
varnish v1 -badvcl {
sub vcl_recv {
set req.http.foo = 1s + now;
}
}
varnish v1 -badvcl {
sub vcl_recv {
set req.http.foo = 1s + "foo";
}
}
varnish v1 -badvcl {
sub vcl_recv {
set req.http.foo = "foo" + 1s;
}
}
varnish v1 -badvcl {
sub vcl_recv {
set req.ttl = 1s + 1;
}
}
varnish v1 -badvcl {
sub vcl_recv {
set req.ttl = 1s + now;
}
}
varnish v1 -badvcl {
sub vcl_recv {
set req.ttl = 1s + "foo";
}
}
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