Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
libvmod-re2
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
libvmod-re2
Commits
d0842984
Commit
d0842984
authored
Dec 10, 2019
by
Nils Goroll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Test that backend None works
parent
2d465b13
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
set_retrieve.vtc
src/tests/set_retrieve.vtc
+4
-2
No files found.
src/tests/set_retrieve.vtc
View file @
d0842984
...
...
@@ -123,11 +123,11 @@ logexpect l1 -v v1 -d 1 -g vxid -q "VCL_Error" {
varnish v1 -vcl {
import ${vmod_re2};
backend b
{ .host = "${bad_ip}"; }
backend b
0 None;
sub vcl_init {
new n = re2.set();
n.add("foo");
n.add("foo"
, backend = b0
);
n.compile();
}
...
...
@@ -148,6 +148,7 @@ varnish v1 -vcl {
set resp.http.n-foo-n = n.nmatches();
set resp.http.n-foo-str = n.string();
set resp.http.n-foo-saved = n.saved(STR);
set resp.http.n-foo-backend = n.backend();
}
}
...
...
@@ -183,6 +184,7 @@ client c1 {
expect resp.http.n-foo-n == 1
expect resp.http.n-foo-str == ""
expect resp.http.n-foo-saved == "false"
expect resp.http.n-foo-backend == ""
} -run
logexpect l1 -wait
...
...
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