From 7a3571efd202c77e3614892399e522c11e3d65e9 Mon Sep 17 00:00:00 2001 From: benno Date: Sun, 13 Jul 2014 23:59:57 +0000 Subject: [PATCH] fix regress tests after log changes. noticed by bluhm@. everybody stand back. i know regular expressions. --- regress/usr.sbin/relayd/args-http-append-header.pl | 2 +- regress/usr.sbin/relayd/args-http-remove.pl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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, -- 2.20.1