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
7eb10a4f
Commit
7eb10a4f
authored
Aug 01, 2019
by
Geoff Simmons
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add an HTTP/2 test for e18.vtc.
parent
5f82fe7c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
48 additions
and
4 deletions
+48
-4
e00018.vtc
src/tests/e00018.vtc
+48
-4
No files found.
src/tests/e00018.vtc
View file @
7eb10a4f
varnishtest "Test XML 1.0 entity references"
server s1 {
rxreq
expect req.url == "/"
txresp -body {
loop 2 {
rxreq
expect req.url == "/"
txresp -body {
<esi:include src="&"/>
<esi:include src="<"/>
<esi:include src=">"/>
<esi:include src="'"/>
<esi:include src="""/>
}
}
} -start
server s2 {
rxreq
expect req.url == "/&"
txresp -body "1"
rxreq
expect req.url == "/&"
txresp -body "1"
} -start
server s3 {
rxreq
expect req.url == "/<"
txresp -body "22"
rxreq
expect req.url == "/<"
txresp -body "22"
} -start
server s4 {
rxreq
expect req.url == "/>"
txresp -body "333"
rxreq
expect req.url == "/>"
txresp -body "333"
} -start
server s5 {
rxreq
expect req.url == {/'}
txresp -body "4444"
rxreq
expect req.url == {/'}
txresp -body "4444"
} -start
server s6 {
rxreq
expect req.url == {/"}
txresp -body "55555"
rxreq
expect req.url == {/"}
txresp -body "55555"
} -start
varnish v1 -arg "-p thread_pool_min=100" -
arg "-p debug=+syncvsl,+processors" -
vcl+backend {
varnish v1 -arg "-p thread_pool_min=100" -vcl+backend {
import ${vmod_pesi};
sub vcl_recv {
...
...
@@ -85,4 +102,31 @@ client c1 {
rxresp
expect resp.status == 200
expect resp.bodylen == 32
expect resp.body == {
1
22
333
4444
55555
}
} -run
## HTTP/2
varnish v1 -cliok "param.set feature +http2"
client c1 {
stream 1 {
txreq
rxresp
expect resp.status == 200
expect resp.bodylen == 32
expect resp.body == {
1
22
333
4444
55555
}
} -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