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
f6e58943
Commit
f6e58943
authored
Aug 01, 2019
by
Geoff Simmons
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Test serial() at various ESI levels with HTTP/2.
parent
db99db0a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
111 additions
and
4 deletions
+111
-4
serial.vtc
src/tests/serial.vtc
+111
-4
No files found.
src/tests/serial.vtc
View file @
f6e58943
...
...
@@ -194,7 +194,7 @@ After esi2-2
} -start
server s4 {
loop
4
{
loop
8
{
rxreq
expect req.url == "/esi1-1.html"
txresp -hdr "Cache-Control: max-age=0" -body {esi1-1
...
...
@@ -203,7 +203,7 @@ server s4 {
} -start
server s5 {
loop
4
{
loop
8
{
rxreq
expect req.url == "/esi1-2.html"
txresp -hdr "Cache-Control: max-age=0" -body {esi1-2
...
...
@@ -212,7 +212,7 @@ server s5 {
} -start
server s6 {
loop
4
{
loop
8
{
rxreq
expect req.url == "/esi2-1.html"
txresp -hdr "Cache-Control: max-age=0" -body {esi2-1
...
...
@@ -221,7 +221,7 @@ server s6 {
} -start
server s7 {
loop
4
{
loop
8
{
rxreq
expect req.url == "/esi2-2.html"
txresp -hdr "Cache-Control: max-age=0" -body {esi2-2
...
...
@@ -370,3 +370,110 @@ After esi2-2
After esi2
}
} -run
## The last test with HTTP/2
varnish v1 -cliok "param.set feature +http2"
client c1 {
stream 1 {
txreq
rxresp
expect resp.status == 200
expect resp.body == {
<Before
esi1
>
<Before
esi1-1
>
esi1-1
Between esi1-1 and esi1-2
esi1-2
After esi1-2
Between esi1 and esi2
<Before
esi2-1
>
esi2-1
Between esi2-1 and esi2-2
esi2-2
After esi2-2
After esi2
}
} -run
stream 3 {
txreq -hdr serial-level 0
rxresp
expect resp.status == 200
expect resp.body == {
<Before
esi1
>
<Before
esi1-1
>
esi1-1
Between esi1-1 and esi1-2
esi1-2
After esi1-2
Between esi1 and esi2
<Before
esi2-1
>
esi2-1
Between esi2-1 and esi2-2
esi2-2
After esi2-2
After esi2
}
} -run
stream 5 {
txreq -hdr serial-level 1
rxresp
expect resp.status == 200
expect resp.body == {
<Before
esi1
>
<Before
esi1-1
>
esi1-1
Between esi1-1 and esi1-2
esi1-2
After esi1-2
Between esi1 and esi2
<Before
esi2-1
>
esi2-1
Between esi2-1 and esi2-2
esi2-2
After esi2-2
After esi2
}
} -run
stream 7 {
txreq -hdr serial-level 2
rxresp
expect resp.status == 200
expect resp.body == {
<Before
esi1
>
<Before
esi1-1
>
esi1-1
Between esi1-1 and esi1-2
esi1-2
After esi1-2
Between esi1 and esi2
<Before
esi2-1
>
esi2-1
Between esi2-1 and esi2-2
esi2-2
After esi2-2
After esi2
}
} -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