From: benno Date: Sun, 13 Jul 2014 23:59:57 +0000 (+0000) Subject: fix regress tests after log changes. noticed by bluhm@. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=7a3571efd202c77e3614892399e522c11e3d65e9;p=openbsd fix regress tests after log changes. noticed by bluhm@. everybody stand back. i know regular expressions. --- diff --git a/regress/usr.sbin/relayd/args-http-append-header.pl b/regress/usr.sbin/relayd/args-http-append-header.pl index f7344458ec6..f5acbd1ecf9 100644 --- a/regress/usr.sbin/relayd/args-http-append-header.pl +++ b/regress/usr.sbin/relayd/args-http-append-header.pl @@ -25,7 +25,7 @@ our %args = ( 'match request header log "X-Header*"', 'match response header log "X-Header*"', ], - loggrep => { qr/ (?:done|last write \(done\)), \[X-Header-Client: ABC\]\ \[X-Header-Server: XYZ\]/ => 1 }, + loggrep => { qr/ (?:done|last write \(done\)), \[X-Header-Client: ABC\]\ GET \{X-Header-Server: XYZ\};/ => 1 }, }, server => { func => \&http_server, diff --git a/regress/usr.sbin/relayd/args-http-remove.pl b/regress/usr.sbin/relayd/args-http-remove.pl index 762de653312..6a57f89bc4a 100644 --- a/regress/usr.sbin/relayd/args-http-remove.pl +++ b/regress/usr.sbin/relayd/args-http-remove.pl @@ -18,7 +18,7 @@ our %args = ( 'match response header remove X-Header-Foo', 'match response header log "*Foo"', ], - loggrep => { qr/ (?:done|last write \(done\)), \{X-Header-Foo: foo \(removed\)\s*\};/ => 1 }, + loggrep => { qr/ (?:done|last write \(done\)), GET \{X-Header-Foo: foo \(removed\)\s*\};/ => 1 }, }, server => { func => \&http_server,