Skip to content

Commit

Permalink
tests(*) harden phase tests to avoid unnoticed events
Browse files Browse the repository at this point in the history
Check that no extraneous lines are slurped by `.*`
  • Loading branch information
hishamhm authored and thibaultcha committed Apr 25, 2023
1 parent e81754e commit 6fe0406
Show file tree
Hide file tree
Showing 3 changed files with 124 additions and 121 deletions.
162 changes: 81 additions & 81 deletions t/03-proxy_wasm/007-on_http_instance_isolation.t
Original file line number Diff line number Diff line change
Expand Up @@ -32,34 +32,34 @@ qr/^[^#]*#0 on_configure[^#*]*
#0 on_vm_start[^#*]*
#0 on_configure[^#*]*
#0 on_vm_start[^#*]*
\*\d+ proxy_wasm "hostcalls" filter reusing instance.*
\*\d+ proxy_wasm "hostcalls" filter reusing instance.*
\*\d+ proxy_wasm "hostcalls" filter \(1\/2\) resuming in "rewrite" phase.*
\*\d+ proxy_wasm "hostcalls" filter \(2\/2\) resuming in "rewrite" phase.*
\*\d+ proxy_wasm "hostcalls" filter \(1\/2\) resuming in "header_filter" phase.*
\*\d+ proxy_wasm "hostcalls" filter \(2\/2\) resuming in "header_filter" phase.*
\*\d+ proxy_wasm "hostcalls" filter \(1\/2\) resuming in "body_filter" phase.*
\*\d+ proxy_wasm "hostcalls" filter \(2\/2\) resuming in "body_filter" phase.*
\*\d+ proxy_wasm "hostcalls" filter \(1\/2\) resuming in "log" phase.*
\*\d+ proxy_wasm "hostcalls" filter \(2\/2\) resuming in "log" phase.*
\*\d+ proxy_wasm "hostcalls" filter \(1\/2\) resuming in "done" phase.*
\*\d+ proxy_wasm "hostcalls" filter reusing instance[^#*]*
\*\d+ proxy_wasm "hostcalls" filter reusing instance[^#*]*
\*\d+ proxy_wasm "hostcalls" filter \(1\/2\) resuming in "rewrite" phase[^#*]*
\*\d+ proxy_wasm "hostcalls" filter \(2\/2\) resuming in "rewrite" phase[^#*]*
\*\d+ proxy_wasm "hostcalls" filter \(1\/2\) resuming in "header_filter" phase[^#*]*
\*\d+ proxy_wasm "hostcalls" filter \(2\/2\) resuming in "header_filter" phase[^#*]*
\*\d+ proxy_wasm "hostcalls" filter \(1\/2\) resuming in "body_filter" phase[^#*]*
\*\d+ proxy_wasm "hostcalls" filter \(2\/2\) resuming in "body_filter" phase[^#*]*
\*\d+ proxy_wasm "hostcalls" filter \(1\/2\) resuming in "log" phase[^#*]*
\*\d+ proxy_wasm "hostcalls" filter \(2\/2\) resuming in "log" phase[^#*]*
\*\d+ proxy_wasm "hostcalls" filter \(1\/2\) resuming in "done" phase[^#*]*
\*\d+ proxy_wasm "hostcalls" filter \(1\/2\) finalizing context
\*\d+ proxy_wasm "hostcalls" filter \(2\/2\) resuming in "done" phase.*
\*\d+ proxy_wasm "hostcalls" filter \(2\/2\) resuming in "done" phase[^#*]*
\*\d+ proxy_wasm "hostcalls" filter \(2\/2\) finalizing context
\*\d+ proxy_wasm freeing stream context #\d+ \(main: 1\)\Z/,
qr/\A\*\d+ proxy_wasm "hostcalls" filter reusing instance.*
\*\d+ proxy_wasm "hostcalls" filter reusing instance.*
\*\d+ proxy_wasm "hostcalls" filter \(1\/2\) resuming in "rewrite" phase.*
\*\d+ proxy_wasm "hostcalls" filter \(2\/2\) resuming in "rewrite" phase.*
\*\d+ proxy_wasm "hostcalls" filter \(1\/2\) resuming in "header_filter" phase.*
\*\d+ proxy_wasm "hostcalls" filter \(2\/2\) resuming in "header_filter" phase.*
\*\d+ proxy_wasm "hostcalls" filter \(1\/2\) resuming in "body_filter" phase.*
\*\d+ proxy_wasm "hostcalls" filter \(2\/2\) resuming in "body_filter" phase.*
\*\d+ proxy_wasm "hostcalls" filter \(1\/2\) resuming in "log" phase.*
\*\d+ proxy_wasm "hostcalls" filter \(2\/2\) resuming in "log" phase.*
\*\d+ proxy_wasm "hostcalls" filter \(1\/2\) resuming in "done" phase.*
qr/\A\*\d+ proxy_wasm "hostcalls" filter reusing instance[^#*]*
\*\d+ proxy_wasm "hostcalls" filter reusing instance[^#*]*
\*\d+ proxy_wasm "hostcalls" filter \(1\/2\) resuming in "rewrite" phase[^#*]*
\*\d+ proxy_wasm "hostcalls" filter \(2\/2\) resuming in "rewrite" phase[^#*]*
\*\d+ proxy_wasm "hostcalls" filter \(1\/2\) resuming in "header_filter" phase[^#*]*
\*\d+ proxy_wasm "hostcalls" filter \(2\/2\) resuming in "header_filter" phase[^#*]*
\*\d+ proxy_wasm "hostcalls" filter \(1\/2\) resuming in "body_filter" phase[^#*]*
\*\d+ proxy_wasm "hostcalls" filter \(2\/2\) resuming in "body_filter" phase[^#*]*
\*\d+ proxy_wasm "hostcalls" filter \(1\/2\) resuming in "log" phase[^#*]*
\*\d+ proxy_wasm "hostcalls" filter \(2\/2\) resuming in "log" phase[^#*]*
\*\d+ proxy_wasm "hostcalls" filter \(1\/2\) resuming in "done" phase[^#*]*
\*\d+ proxy_wasm "hostcalls" filter \(1\/2\) finalizing context
\*\d+ proxy_wasm "hostcalls" filter \(2\/2\) resuming in "done" phase.*
\*\d+ proxy_wasm "hostcalls" filter \(2\/2\) resuming in "done" phase[^#*]*
\*\d+ proxy_wasm "hostcalls" filter \(2\/2\) finalizing context
\*\d+ proxy_wasm freeing stream context #\d+ \(main: 1\)\Z/]
--- no_error_log
Expand Down Expand Up @@ -87,26 +87,26 @@ Should recycle the global instance when trapped.
--- ignore_response_body
--- grep_error_log eval: qr/(\*\d.*?(resuming|new instance|reusing|finalizing|freeing|now)|(.*?unreachable)).*/
--- grep_error_log_out eval
[qr/.*?\*\d+ proxy_wasm "hostcalls" filter reusing instance.*
\*\d+ proxy_wasm "hostcalls" filter reusing instance.*
\*\d+ proxy_wasm "hostcalls" filter \(1\/2\) resuming in "rewrite" phase.*
(.*?(Uncaught RuntimeError: )?unreachable|\s*wasm trap: wasm `unreachable` instruction executed).*
\*\d+ \[wasm\] proxy_wasm "hostcalls" filter \(1\/2\) failed resuming \(instance trapped\).*
\*\d+ proxy_wasm freeing stream context #\d+ \(main: 1\).*\Z/,
qr/\A\*\d+ proxy_wasm freeing trapped "hostcalls" instance.*
\*\d+ proxy_wasm "hostcalls" filter new instance.*
\*\d+ proxy_wasm "hostcalls" filter reusing instance.*
\*\d+ proxy_wasm "hostcalls" filter \(1\/2\) resuming in "rewrite" phase.*
\*\d+ proxy_wasm "hostcalls" filter \(1\/2\) resuming in "header_filter" phase.*
\*\d+ proxy_wasm "hostcalls" filter \(2\/2\) resuming in "header_filter" phase.*
\*\d+ proxy_wasm "hostcalls" filter \(1\/2\) resuming in "log" phase.*
\*\d+ proxy_wasm "hostcalls" filter \(2\/2\) resuming in "log" phase.*
\*\d+ now: .*? while logging request.*
\*\d+ proxy_wasm "hostcalls" filter \(1\/2\) resuming in "done" phase.*
[qr/[^#*]*?\*\d+ proxy_wasm "hostcalls" filter reusing instance[^#*]*
\*\d+ proxy_wasm "hostcalls" filter reusing instance[^#*]*
\*\d+ proxy_wasm "hostcalls" filter \(1\/2\) resuming in "rewrite" phase[^#*]*
(.*?(Uncaught RuntimeError: )?unreachable|\s*wasm trap: wasm `unreachable` instruction executed)[^#*]*
\*\d+ \[wasm\] proxy_wasm "hostcalls" filter \(1\/2\) failed resuming \(instance trapped\)[^#*]*
\*\d+ proxy_wasm freeing stream context #\d+ \(main: 1\)[^#*]*\Z/,
qr/\A\*\d+ proxy_wasm freeing trapped "hostcalls" instance[^#*]*
\*\d+ proxy_wasm "hostcalls" filter new instance[^#*]*
\*\d+ proxy_wasm "hostcalls" filter reusing instance[^#*]*
\*\d+ proxy_wasm "hostcalls" filter \(1\/2\) resuming in "rewrite" phase[^#*]*
\*\d+ proxy_wasm "hostcalls" filter \(1\/2\) resuming in "header_filter" phase[^#*]*
\*\d+ proxy_wasm "hostcalls" filter \(2\/2\) resuming in "header_filter" phase[^#*]*
\*\d+ proxy_wasm "hostcalls" filter \(1\/2\) resuming in "log" phase[^#*]*
\*\d+ proxy_wasm "hostcalls" filter \(2\/2\) resuming in "log" phase[^#*]*
\*\d+ now: .*? while logging request[^#*]*
\*\d+ proxy_wasm "hostcalls" filter \(1\/2\) resuming in "done" phase[^#*]*
\*\d+ proxy_wasm "hostcalls" filter \(1\/2\) finalizing context
\*\d+ proxy_wasm "hostcalls" filter \(2\/2\) resuming in "done" phase.*
\*\d+ proxy_wasm "hostcalls" filter \(2\/2\) resuming in "done" phase[^#*]*
\*\d+ proxy_wasm "hostcalls" filter \(2\/2\) finalizing context
\*\d+ proxy_wasm freeing stream context #\d+ \(main: 1\).*\Z/]
\*\d+ proxy_wasm freeing stream context #\d+ \(main: 1\)[^#*]*\Z/]
--- no_error_log
[emerg]
[alert]
Expand Down Expand Up @@ -134,42 +134,42 @@ qr/^[^#]*#0 on_configure[^#*]*
#0 on_vm_start[^#*]*
#0 on_configure[^#*]*
#0 on_vm_start[^#*]*
\*\d+ proxy_wasm "hostcalls" filter new instance.*
\*\d+ proxy_wasm "hostcalls" filter reusing instance.*
\*\d+ proxy_wasm "hostcalls" filter new instance[^#*]*
\*\d+ proxy_wasm "hostcalls" filter reusing instance[^#*]*
\*\d+ proxy_wasm "hostcalls" filter \(1\/2\) resuming in "rewrite" phase[^#*]*
#0 on_configure[^#*]*
\*\d+ proxy_wasm "hostcalls" filter \(2\/2\) resuming in "rewrite" phase[^#*]*
#0 on_configure[^#*]*
\*\d+ proxy_wasm "hostcalls" filter \(1\/2\) resuming in "header_filter" phase.*
\*\d+ proxy_wasm "hostcalls" filter \(2\/2\) resuming in "header_filter" phase.*
\*\d+ proxy_wasm "hostcalls" filter \(1\/2\) resuming in "body_filter" phase.*
\*\d+ proxy_wasm "hostcalls" filter \(2\/2\) resuming in "body_filter" phase.*
\*\d+ proxy_wasm "hostcalls" filter \(1\/2\) resuming in "log" phase.*
\*\d+ proxy_wasm "hostcalls" filter \(2\/2\) resuming in "log" phase.*
\*\d+ proxy_wasm "hostcalls" filter \(1\/2\) resuming in "done" phase.*
\*\d+ proxy_wasm "hostcalls" filter \(1\/2\) resuming in "header_filter" phase[^#*]*
\*\d+ proxy_wasm "hostcalls" filter \(2\/2\) resuming in "header_filter" phase[^#*]*
\*\d+ proxy_wasm "hostcalls" filter \(1\/2\) resuming in "body_filter" phase[^#*]*
\*\d+ proxy_wasm "hostcalls" filter \(2\/2\) resuming in "body_filter" phase[^#*]*
\*\d+ proxy_wasm "hostcalls" filter \(1\/2\) resuming in "log" phase[^#*]*
\*\d+ proxy_wasm "hostcalls" filter \(2\/2\) resuming in "log" phase[^#*]*
\*\d+ proxy_wasm "hostcalls" filter \(1\/2\) resuming in "done" phase[^#*]*
\*\d+ proxy_wasm "hostcalls" filter \(1\/2\) finalizing context
\*\d+ proxy_wasm "hostcalls" filter \(2\/2\) resuming in "done" phase.*
\*\d+ proxy_wasm "hostcalls" filter \(2\/2\) resuming in "done" phase[^#*]*
\*\d+ proxy_wasm "hostcalls" filter \(2\/2\) finalizing context
\*\d+ proxy_wasm freeing stream context #\d+ \(main: 1\)
\*\d+ wasm freeing "hostcalls" instance in "main" vm.*\Z/,
qr/\A\*\d+ proxy_wasm "hostcalls" filter new instance.*
\*\d+ proxy_wasm "hostcalls" filter reusing instance.*
\*\d+ wasm freeing "hostcalls" instance in "main" vm[^#*]*\Z/,
qr/\A\*\d+ proxy_wasm "hostcalls" filter new instance[^#*]*
\*\d+ proxy_wasm "hostcalls" filter reusing instance[^#*]*
\*\d+ proxy_wasm "hostcalls" filter \(1\/2\) resuming in "rewrite" phase[^#*]*
#0 on_configure[^#*]*
\*\d+ proxy_wasm "hostcalls" filter \(2\/2\) resuming in "rewrite" phase[^#*]*
#0 on_configure[^#*]*
\*\d+ proxy_wasm "hostcalls" filter \(1\/2\) resuming in "header_filter" phase.*
\*\d+ proxy_wasm "hostcalls" filter \(2\/2\) resuming in "header_filter" phase.*
\*\d+ proxy_wasm "hostcalls" filter \(1\/2\) resuming in "body_filter" phase.*
\*\d+ proxy_wasm "hostcalls" filter \(2\/2\) resuming in "body_filter" phase.*
\*\d+ proxy_wasm "hostcalls" filter \(1\/2\) resuming in "log" phase.*
\*\d+ proxy_wasm "hostcalls" filter \(2\/2\) resuming in "log" phase.*
\*\d+ proxy_wasm "hostcalls" filter \(1\/2\) resuming in "done" phase.*
\*\d+ proxy_wasm "hostcalls" filter \(1\/2\) resuming in "header_filter" phase[^#*]*
\*\d+ proxy_wasm "hostcalls" filter \(2\/2\) resuming in "header_filter" phase[^#*]*
\*\d+ proxy_wasm "hostcalls" filter \(1\/2\) resuming in "body_filter" phase[^#*]*
\*\d+ proxy_wasm "hostcalls" filter \(2\/2\) resuming in "body_filter" phase[^#*]*
\*\d+ proxy_wasm "hostcalls" filter \(1\/2\) resuming in "log" phase[^#*]*
\*\d+ proxy_wasm "hostcalls" filter \(2\/2\) resuming in "log" phase[^#*]*
\*\d+ proxy_wasm "hostcalls" filter \(1\/2\) resuming in "done" phase[^#*]*
\*\d+ proxy_wasm "hostcalls" filter \(1\/2\) finalizing context
\*\d+ proxy_wasm "hostcalls" filter \(2\/2\) resuming in "done" phase.*
\*\d+ proxy_wasm "hostcalls" filter \(2\/2\) resuming in "done" phase[^#*]*
\*\d+ proxy_wasm "hostcalls" filter \(2\/2\) finalizing context
\*\d+ proxy_wasm freeing stream context #\d+ \(main: 1\)
\*\d+ wasm freeing "hostcalls" instance in "main" vm.*\Z/]
\*\d+ wasm freeing "hostcalls" instance in "main" vm[^#*]*\Z/]
--- no_error_log
[error]
[crit]
Expand All @@ -194,27 +194,27 @@ qr/\A\*\d+ proxy_wasm "hostcalls" filter new instance.*
--- ignore_response_body
--- grep_error_log eval: qr/(\*\d.*?(resuming|new instance|reusing|finalizing context|freeing|now)|(.*?unreachable)).*/
--- grep_error_log_out eval
[qr/.*?\*\d+ proxy_wasm "hostcalls" filter new instance.*
\*\d+ proxy_wasm "hostcalls" filter reusing instance.*
\*\d+ proxy_wasm "hostcalls" filter \(1\/2\) resuming in "rewrite" phase.*
(.*?(Uncaught RuntimeError: )?unreachable|\s*wasm trap: wasm `unreachable` instruction executed).*
\*\d+ \[wasm\] proxy_wasm "hostcalls" filter \(1\/2\) failed resuming \(instance trapped\).*
[qr/.*?\*\d+ proxy_wasm "hostcalls" filter new instance[^#*]*
\*\d+ proxy_wasm "hostcalls" filter reusing instance[^#*]*
\*\d+ proxy_wasm "hostcalls" filter \(1\/2\) resuming in "rewrite" phase[^#*]*
(.*?(Uncaught RuntimeError: )?unreachable|\s*wasm trap: wasm `unreachable` instruction executed)[^#*]*
\*\d+ \[wasm\] proxy_wasm "hostcalls" filter \(1\/2\) failed resuming \(instance trapped\)[^#*]*
\*\d+ proxy_wasm freeing stream context #\d+ \(main: 1\)
\*\d+ wasm freeing "hostcalls" instance in "main" vm.*\Z/,
qr/\A\*\d+ proxy_wasm "hostcalls" filter new instance.*
\*\d+ proxy_wasm "hostcalls" filter reusing instance.*
\*\d+ proxy_wasm "hostcalls" filter \(1\/2\) resuming in "rewrite" phase.*
\*\d+ proxy_wasm "hostcalls" filter \(1\/2\) resuming in "header_filter" phase.*
\*\d+ proxy_wasm "hostcalls" filter \(2\/2\) resuming in "header_filter" phase.*
\*\d+ proxy_wasm "hostcalls" filter \(1\/2\) resuming in "log" phase.*
\*\d+ proxy_wasm "hostcalls" filter \(2\/2\) resuming in "log" phase.*
\*\d+ now: .*? while logging request.*
\*\d+ proxy_wasm "hostcalls" filter \(1\/2\) resuming in "done" phase.*
\*\d+ wasm freeing "hostcalls" instance in "main" vm[^#*]*\Z/,
qr/\A\*\d+ proxy_wasm "hostcalls" filter new instance[^#*]*
\*\d+ proxy_wasm "hostcalls" filter reusing instance[^#*]*
\*\d+ proxy_wasm "hostcalls" filter \(1\/2\) resuming in "rewrite" phase[^#*]*
\*\d+ proxy_wasm "hostcalls" filter \(1\/2\) resuming in "header_filter" phase[^#*]*
\*\d+ proxy_wasm "hostcalls" filter \(2\/2\) resuming in "header_filter" phase[^#*]*
\*\d+ proxy_wasm "hostcalls" filter \(1\/2\) resuming in "log" phase[^#*]*
\*\d+ proxy_wasm "hostcalls" filter \(2\/2\) resuming in "log" phase[^#*]*
\*\d+ now: .*? while logging request[^#*]*
\*\d+ proxy_wasm "hostcalls" filter \(1\/2\) resuming in "done" phase[^#*]*
\*\d+ proxy_wasm "hostcalls" filter \(1\/2\) finalizing context
\*\d+ proxy_wasm "hostcalls" filter \(2\/2\) resuming in "done" phase.*
\*\d+ proxy_wasm "hostcalls" filter \(2\/2\) resuming in "done" phase[^#*]*
\*\d+ proxy_wasm "hostcalls" filter \(2\/2\) finalizing context
\*\d+ proxy_wasm freeing stream context #\d+ \(main: 1\)
\*\d+ wasm freeing "hostcalls" instance in "main" vm.*\Z/]
\*\d+ wasm freeing "hostcalls" instance in "main" vm[^#*]*\Z/]
--- no_error_log
[emerg]
[alert]
Expand Down
24 changes: 12 additions & 12 deletions t/04-openresty/ffi/102-proxy_wasm_start.t
Original file line number Diff line number Diff line change
Expand Up @@ -147,12 +147,12 @@ ok
--- grep_error_log_out eval
qr/^#0 on_configure, config_size: 0[^#]*
#0 on_vm_start[^#]*
#\d+ on_request_headers, 3 headers.*
#\d+ on_request_body, 11 bytes.*
#\d+ on_response_headers, 5 headers.*
#\d+ on_response_body, 3 bytes, eof: false.*
#\d+ on_response_body, 0 bytes, eof: true.*
#\d+ on_log.*/
#\d+ on_request_headers, 3 headers[^#]*
#\d+ on_request_body, 11 bytes[^#]*
#\d+ on_response_headers, 5 headers[^#]*
#\d+ on_response_body, 3 bytes, eof: false[^#]*
#\d+ on_response_body, 0 bytes, eof: true[^#]*
#\d+ on_log[^#]*/
--- no_error_log
[error]
Expand Down Expand Up @@ -201,12 +201,12 @@ ok
--- grep_error_log_out eval
qr/^#0 on_configure, config_size: 0[^#]*
#0 on_vm_start[^#]*
#\d+ on_request_headers, 3 headers.*
#\d+ on_request_body, 11 bytes.*
#\d+ on_response_headers, 5 headers.*
#\d+ on_response_body, 3 bytes, eof: false.*
#\d+ on_response_body, 0 bytes, eof: true.*
#\d+ on_log.*/
#\d+ on_request_headers, 3 headers[^#]*
#\d+ on_request_body, 11 bytes[^#]*
#\d+ on_response_headers, 5 headers[^#]*
#\d+ on_response_body, 3 bytes, eof: false[^#]*
#\d+ on_response_body, 0 bytes, eof: true[^#]*
#\d+ on_log[^#]*/
--- no_error_log
[error]
Expand Down
59 changes: 31 additions & 28 deletions t/04-openresty/ffi/103-proxy_wasm_attach.t
Original file line number Diff line number Diff line change
Expand Up @@ -102,16 +102,16 @@ POST /t
Hello world
--- response_body
ok
--- grep_error_log eval: qr/#\d+ on_(configure|vm_start|request|response|log).*/
--- grep_error_log eval: qr/#\d+ on_.*/
--- grep_error_log_out eval
qr/^[^#]*#0 on_configure, config_size: 0[^#]*
#0 on_vm_start[^#]*
#\d+ on_request_headers, 3 headers.*
#\d+ on_request_body, 11 bytes.*
#\d+ on_response_headers, 5 headers.*
#\d+ on_response_body, 3 bytes, eof: false.*
#\d+ on_response_body, 0 bytes, eof: true.*
#\d+ on_log.*/
#\d+ on_request_headers, 3 headers[^#]*
#\d+ on_request_body, 11 bytes[^#]*
#\d+ on_response_headers, 5 headers[^#]*
#\d+ on_response_body, 3 bytes, eof: false[^#]*
#\d+ on_response_body, 0 bytes, eof: true[^#]*
#\d+ on_log[^#]*$/
--- no_error_log
[error]
Expand Down Expand Up @@ -153,15 +153,16 @@ POST /t
Hello world
--- response_body
ok
--- grep_error_log eval: qr/#\d+ on_(configure|request|response|log).*/
--- grep_error_log eval: qr/#\d+ on_.*/
--- grep_error_log_out eval
qr/^[^#]*#0 on_configure, config_size: 0[^#]*
#\d+ on_request_headers, 3 headers.*
#\d+ on_request_body, 11 bytes.*
#\d+ on_response_headers, 5 headers.*
#\d+ on_response_body, 3 bytes, eof: false.*
#\d+ on_response_body, 0 bytes, eof: true.*
#\d+ on_log.*/
#0 on_vm_start[^#]*
#\d+ on_request_headers, 3 headers[^#]*
#\d+ on_request_body, 11 bytes[^#]*
#\d+ on_response_headers, 5 headers[^#]*
#\d+ on_response_body, 3 bytes, eof: false[^#]*
#\d+ on_response_body, 0 bytes, eof: true[^#]*
#\d+ on_log[^#]*$/
--- no_error_log
[error]
Expand Down Expand Up @@ -203,15 +204,16 @@ POST /t
Hello world
--- response_body
ok
--- grep_error_log eval: qr/#\d+ on_(configure|request|response|log).*/
--- grep_error_log eval: qr/#\d+ on_.*/
--- grep_error_log_out eval
qr/^[^#]*#0 on_configure, config_size: 0[^#]*
#\d+ on_request_headers, 3 headers.*
#\d+ on_request_body, 11 bytes.*
#\d+ on_response_headers, 5 headers.*
#\d+ on_response_body, 3 bytes, eof: false.*
#\d+ on_response_body, 0 bytes, eof: true.*
#\d+ on_log.*/
#0 on_vm_start[^#]*
#\d+ on_request_headers, 3 headers[^#]*
#\d+ on_request_body, 11 bytes[^#]*
#\d+ on_response_headers, 5 headers[^#]*
#\d+ on_response_body, 3 bytes, eof: false[^#]*
#\d+ on_response_body, 0 bytes, eof: true[^#]*
#\d+ on_log[^#]*$/
--- no_error_log
[error]
Expand Down Expand Up @@ -320,15 +322,16 @@ POST /t
Hello world
--- response_body
ok
--- grep_error_log eval: qr/#\d+ on_(configure|request|response|log).*/
--- grep_error_log eval: qr/#\d+ on_.*/
--- grep_error_log_out eval
qr/^[^#]*#0 on_configure, config_size: 0[^#]*
#\d+ on_request_headers, 3 headers.*
#\d+ on_request_body, 11 bytes.*
#\d+ on_response_headers, 5 headers.*
#\d+ on_response_body, 3 bytes, eof: false.*
#\d+ on_response_body, 0 bytes, eof: true.*
#\d+ on_log.*/
#0 on_vm_start[^#]*
#\d+ on_request_headers, 3 headers[^#]*
#\d+ on_request_body, 11 bytes[^#]*
#\d+ on_response_headers, 5 headers[^#]*
#\d+ on_response_body, 3 bytes, eof: false[^#]*
#\d+ on_response_body, 0 bytes, eof: true[^#]*
#\d+ on_log[^#]*$/
--- no_error_log
[error]
Expand Down

0 comments on commit 6fe0406

Please sign in to comment.