aboutsummaryrefslogtreecommitdiff
path: root/tests/test01.at
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test01.at')
-rw-r--r--tests/test01.at9
1 files changed, 6 insertions, 3 deletions
diff --git a/tests/test01.at b/tests/test01.at
index 116c8f1..62eb4fb 100644
--- a/tests/test01.at
+++ b/tests/test01.at
@@ -12,13 +12,13 @@
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with vmod-binlog. If not, see <http://www.gnu.org/licenses/>.
AT_SETUP([appends])
-AT_KEYWORDS([append])
+AT_KEYWORDS([test01 append])
AT_CHECK([
cwd=`pwd`
mkdir log
cat > test.vtc <<EOT
@@ -29,19 +29,22 @@ server s1 {
txresp
} -start
varnish v1 -vcl+backend {
import binlog from "$abs_top_builddir/src/.libs/libvmod_binlog.so";
sub vcl_init {
- binlog.init("dir=$cwd/log;size=1M;pattern=logfile");
+ binlog.init("$cwd/log", "LL", "size=1M;pattern=logfile");
}
sub vcl_fini {
binlog.close();
}
sub vcl_recv {
- binlog.sappend(req.http.X-nid, req.http.X-aid);
+ binlog.start();
+ binlog.pack(req.http.X-nid);
+ binlog.pack(req.http.X-aid);
+ binlog.commit();
return (lookup);
}
} -start
client c1 {
txreq -url / -hdr "X-nid:1" -hdr "X-aid:0"

Return to:

Send suggestions and report system problems to the System administrator.