Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
libvdfp-pipe
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
libvdfp-pipe
Commits
0b12aa09
Unverified
Commit
0b12aa09
authored
Apr 20, 2021
by
Nils Goroll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Test two pipe VDPs in a row
parent
ba3d530a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
54 additions
and
0 deletions
+54
-0
append.sh
src/tests/append.sh
+11
-0
append.vtc
src/tests/append.vtc
+43
-0
No files found.
src/tests/append.sh
0 → 100755
View file @
0b12aa09
#!/bin/sh
while
read
line
do
echo
$line
sleep
1
echo
append
$1
done
echo
final
$1
exit
0
src/tests/append.vtc
0 → 100644
View file @
0b12aa09
# looks like -*- vcl -*-
varnishtest "vdp pipe append"
server s1 {
rxreq
txresp -body {foo bar baz quux
}
} -start
varnish v1 -arg "-p debug=+syncvsl" -vcl+backend {
import ${vmod_pipe};
sub vcl_init {
new app1 = pipe.vdp("${testdir}/append.sh", timeout=10s);
app1.arg("1");
new app2 = pipe.vdp("${testdir}/append.sh", timeout=10s);
app2.arg("2");
}
sub vcl_backend_response {
set beresp.uncacheable = true;
}
sub vcl_deliver {
set resp.filters = "app1 app2";
}
} -start
client c1 {
txreq
rxresp
expect resp.status == 200
expect resp.body == {foo bar baz quux
append 2
append 1
append 2
final 1
append 2
final 2
}
} -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