Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
libvdp-pesi
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Jobs
Commits
Open sidebar
uplex-varnish
libvdp-pesi
Commits
6ee0bc78
Unverified
Commit
6ee0bc78
authored
Oct 06, 2020
by
Nils Goroll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add obj.can_esi
Ref
https://github.com/varnishcache/varnish-cache/issues/3002
parent
07b780cf
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
2 deletions
+13
-2
e00000.vtc
src/tests/e00000.vtc
+3
-0
e00001.vtc
src/tests/e00001.vtc
+2
-0
e00003.vtc
src/tests/e00003.vtc
+5
-2
e00032.vtc
src/tests/e00032.vtc
+3
-0
No files found.
src/tests/e00000.vtc
View file @
6ee0bc78
...
...
@@ -16,6 +16,7 @@ varnish v1 -vcl+backend {
}
sub vcl_deliver {
set resp.http.can_esi = obj.can_esi;
pesi.activate();
}
} -start
...
...
@@ -30,6 +31,7 @@ client c1 {
rxresp
expect resp.status == 200
expect resp.bodylen == 33
expect resp.http.can_esi == "false"
expect resp.body == {
-This is a test: Hello world
}
...
...
@@ -49,6 +51,7 @@ client c1 {
rxresp
expect resp.status == 200
expect resp.bodylen == 33
expect resp.http.can_esi == "false"
expect resp.body == {
-This is a test: Hello world
}
...
...
src/tests/e00001.vtc
View file @
6ee0bc78
...
...
@@ -23,6 +23,7 @@ varnish v1 -vcl+backend {
sub vcl_deliver {
pesi.activate();
set resp.http.filters = resp.filters;
set resp.http.can_esi = obj.can_esi;
}
} -start
...
...
@@ -37,6 +38,7 @@ client c1 {
rxresp
expect resp.status == 200
expect resp.bodylen == 40
expect resp.http.can_esi == "true"
expect resp.body == {
<esX>This is a test: Hello world
...
...
src/tests/e00003.vtc
View file @
6ee0bc78
...
...
@@ -50,6 +50,7 @@ varnish v1 -arg "-p debug=+syncvsl" -vcl+backend {
sub vcl_deliver {
pesi.activate();
set resp.http.can_esi = obj.can_esi;
}
} -start
...
...
@@ -58,6 +59,7 @@ client c1 {
rxresp
expect resp.status == 200
expect resp.bodylen == 75
expect resp.http.can_esi == "true"
expect resp.body == {
<html>
Before include
...
...
@@ -74,6 +76,7 @@ client c1 {
rxresp
expect resp.status == 200
expect resp.bodylen == 75
expect resp.http.can_esi == "true"
expect resp.body == {
<html>
Before include
...
...
@@ -99,7 +102,7 @@ delay 1
logexpect l1 -v v1 -d 1 -g vxid -q "vxid == 1001" {
expect 0 1001 Begin "^req .* rxreq"
expect * = ReqAcct "^29 0 29
187 (104|96) (291|283
)$"
expect * = ReqAcct "^29 0 29
202 (104|96) (306|298
)$"
expect 0 = End
} -run
...
...
@@ -124,7 +127,7 @@ logexpect l5 -v v1 -d 1 -g vxid -q "vxid == 1005" {
expect * 1005 Begin "^req .* rxreq"
# ReqAcct body counts include chunked overhead
# Header bytes is 5 larger than in l1 due to two item X-Varnish hdr
expect * = ReqAcct "^29 0 29
192 (104|96) (296|288
)$"
expect * = ReqAcct "^29 0 29
207 (104|96) (311|303
)$"
expect 0 = End
} -run
...
...
src/tests/e00032.vtc
View file @
6ee0bc78
...
...
@@ -21,6 +21,7 @@ varnish v1 -vcl+backend {
sub vcl_deliver {
pesi.activate();
set resp.http.can_esi = obj.can_esi;
}
} -start
...
...
@@ -28,6 +29,7 @@ client c1 {
txreq -hdr "Accept-Encoding: gzip"
rxresp
expect resp.status == 200
expect resp.http.can_esi == "true"
gunzip
expect resp.bodylen == 3
expect resp.body == "foo"
...
...
@@ -45,6 +47,7 @@ client c1 {
txreq -hdr accept-encoding gzip
rxresp
expect resp.http.content-encoding == gzip
expect resp.http.can_esi == "true"
expect resp.status == 200
} -run
} -run
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