(This page was automatically generated by the tools in the opsboy project on 03:43:18 07-Feb-2023 GMT.)

Detailed Test Report for lua-resty-core in linux x86_64 (hv)

Summary

Commit Testing Time Unexpected
Failures
Expected
Failures
Files Tests Elapsed Time
12eca889 2023-02-06 08:38:43 GMT 4 75 88 12114 1306 sec

LuaJIT

LuaJIT 2.1.0-beta3, commit 2cf51864

OpenSSL

OpenSSL 1.1.1s 1 Nov 2022

Compilation Errors

Unexpected Failures

File Name Details
pipe-stdout.t TEST 10: read process, pattern is read any, with limited, limit larger than read data - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +1,2 @@
-hello
+helloworld
-world
+closed
'
process-type-hup.t TEST 1: sanity - pattern "init_worker_by_lua(nginx.conf:48):6: process type: privileged" should match a line in error.log (req 0) Looks like you failed 1 test of 8.
stream/time.t TEST 7: "resty.core.time".monotonic_msec - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +1,2 @@
true
-true
+false
'
worker.t TEST 5: ngx.worker.pids - response_body_like - response is expected (worker pid: 18766 worker pids is wrong. worker pid is wrong.) 'worker pid: 18766
worker pids is wrong.
worker pid is wrong.
'
doesn't match '(?^s:worker pid: \d+
worker pid is correct\.
)'

Expected Failures

File Name Details
errlog.t TEST 13: filter log by level(ngx.CRIT) - response_body - response is expected (repeated req 0, req 0) got: 'log lines:1
'
expected: 'log lines:0
'
errlog.t TEST 20: fetch a few and generate a few, then fetch again (not overflown again) - response_body_like - response is expected (msg count: 3 log level:4 log body:2023/02/06 19:42:58 [error] 18330\#18330: *53 [lua] access_by_lua(nginx.conf:58):11: --> 88, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level:5 log body:2023/02/06 19:42:58 [warn] 18330\#18330: *53 [lua] access_by_lua(nginx.conf:58):10: --> 89, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level:4 log body:2023/02/06 19:42:58 [error] 18330\#18330: *53 [lua] access_by_lua(nginx.conf:58):11: --> 89, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" msg count: 3 log level:5 log body:2023/02/06 19:42:58 [warn] 18330\#18330: *53 [lua] access_by_lua(nginx.conf:58):10: --> 90, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level:4 log body:2023/02/06 19:42:58 [error] 18330\#18330: *53 [lua] access_by_lua(nginx.conf:58):11: --> 90, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level:5 log body:2023/02/06 19:42:58 [warn] 18330\#18330: *53 [lua] access_by_lua(nginx.conf:58):10: --> 91, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level:4 log body:2023/02/06 19:42:58 [error] 18330\#18330: *53 [lua] access_by_lua(nginx.conf:58):11: --> 100, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level:4 log body:2023/02/06 19:42:58 [error] 18330\#18330: *53 [lua] content_by_lua(nginx.conf:72):13: howdy, something new!, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level:4 log body:2023/02/06 19:42:58 [error] 18330\#18330: *53 [lua] content_by_lua(nginx.conf:72):14: howdy, something even newer!, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost") 'msg count: 3
log level:4
log body:2023/02/06 19:42:58 [error] 18330#18330: *53 [lua] access_by_lua(nginx.conf:58):11: --> 88, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level:5
log body:2023/02/06 19:42:58 [warn] 18330#18330: *53 [lua] access_by_lua(nginx.conf:58):10: --> 89, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level:4
log body:2023/02/06 19:42:58 [error] 18330#18330: *53 [lua] access_by_lua(nginx.conf:58):11: --> 89, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
msg count: 3
log level:5
log body:2023/02/06 19:42:58 [warn] 18330#18330: *53 [lua] access_by_lua(nginx.conf:58):10: --> 90, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level:4
log body:2023/02/06 19:42:58 [error] 18330#18330: *53 [lua] access_by_lua(nginx.conf:58):11: --> 90, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level:5
log body:2023/02/06 19:42:58 [warn] 18330#18330: *53 [lua] access_by_lua(nginx.conf:58):10: --> 91, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level:4
log body:2023/02/06 19:42:58 [error] 18330#18330: *53 [lua] access_by_lua(nginx.conf:58):11: --> 100, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level:4
log body:2023/02/06 19:42:58 [error] 18330#18330: *53 [lua] content_by_lua(nginx.conf:72):13: howdy, something new!, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level:4
log body:2023/02/06 19:42:58 [error] 18330#18330: *53 [lua] content_by_lua(nginx.conf:72):14: howdy, something even newer!, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
'
doesn't match '(?^s:\Amsg count: 3
log level:5
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*?access_by_lua\(nginx.conf:\d+\):\d+: --> 88, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?access_by_lua\(nginx.conf:\d+\):\d+: --> 88, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level:5
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*?access_by_lua\(nginx.conf:\d+\):\d+: --> 89, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
msg count: 3
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?access_by_lua\(nginx.conf:\d+\):\d+: --> 89, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level:5
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*?access_by_lua\(nginx.conf:\d+\):\d+: --> 90, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?access_by_lua\(nginx.conf:\d+\):\d+: --> 90, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?access_by_lua\(nginx.conf:\d+\):\d+: --> 100, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: howdy, something new!, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: howdy, something even newer!, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
\z)'
errlog.t TEST 20: fetch a few and generate a few, then fetch again (not overflown again) - response_body_like - response is expected (msg count: 3 log level:4 log body:2023/02/06 19:42:59 [error] 18330\#18330: *54 [lua] access_by_lua(nginx.conf:58):11: --> 88, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level:5 log body:2023/02/06 19:42:59 [warn] 18330\#18330: *54 [lua] access_by_lua(nginx.conf:58):10: --> 89, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level:4 log body:2023/02/06 19:42:59 [error] 18330\#18330: *54 [lua] access_by_lua(nginx.conf:58):11: --> 89, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" msg count: 3 log level:5 log body:2023/02/06 19:42:59 [warn] 18330\#18330: *54 [lua] access_by_lua(nginx.conf:58):10: --> 90, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level:4 log body:2023/02/06 19:42:59 [error] 18330\#18330: *54 [lua] access_by_lua(nginx.conf:58):11: --> 90, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level:5 log body:2023/02/06 19:42:59 [warn] 18330\#18330: *54 [lua] access_by_lua(nginx.conf:58):10: --> 91, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level:4 log body:2023/02/06 19:42:59 [error] 18330\#18330: *54 [lua] access_by_lua(nginx.conf:58):11: --> 100, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level:4 log body:2023/02/06 19:42:59 [error] 18330\#18330: *54 [lua] content_by_lua(nginx.conf:72):13: howdy, something new!, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level:4 log body:2023/02/06 19:42:59 [error] 18330\#18330: *54 [lua] content_by_lua(nginx.conf:72):14: howdy, something even newer!, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost") 'msg count: 3
log level:4
log body:2023/02/06 19:42:59 [error] 18330#18330: *54 [lua] access_by_lua(nginx.conf:58):11: --> 88, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level:5
log body:2023/02/06 19:42:59 [warn] 18330#18330: *54 [lua] access_by_lua(nginx.conf:58):10: --> 89, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level:4
log body:2023/02/06 19:42:59 [error] 18330#18330: *54 [lua] access_by_lua(nginx.conf:58):11: --> 89, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
msg count: 3
log level:5
log body:2023/02/06 19:42:59 [warn] 18330#18330: *54 [lua] access_by_lua(nginx.conf:58):10: --> 90, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level:4
log body:2023/02/06 19:42:59 [error] 18330#18330: *54 [lua] access_by_lua(nginx.conf:58):11: --> 90, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level:5
log body:2023/02/06 19:42:59 [warn] 18330#18330: *54 [lua] access_by_lua(nginx.conf:58):10: --> 91, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level:4
log body:2023/02/06 19:42:59 [error] 18330#18330: *54 [lua] access_by_lua(nginx.conf:58):11: --> 100, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level:4
log body:2023/02/06 19:42:59 [error] 18330#18330: *54 [lua] content_by_lua(nginx.conf:72):13: howdy, something new!, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level:4
log body:2023/02/06 19:42:59 [error] 18330#18330: *54 [lua] content_by_lua(nginx.conf:72):14: howdy, something even newer!, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
'
doesn't match '(?^s:\Amsg count: 3
log level:5
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*?access_by_lua\(nginx.conf:\d+\):\d+: --> 88, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?access_by_lua\(nginx.conf:\d+\):\d+: --> 88, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level:5
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*?access_by_lua\(nginx.conf:\d+\):\d+: --> 89, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
msg count: 3
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?access_by_lua\(nginx.conf:\d+\):\d+: --> 89, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level:5
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*?access_by_lua\(nginx.conf:\d+\):\d+: --> 90, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?access_by_lua\(nginx.conf:\d+\):\d+: --> 90, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?access_by_lua\(nginx.conf:\d+\):\d+: --> 100, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: howdy, something new!, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: howdy, something even newer!, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
\z)'
errlog.t nginx: [emerg] invalid capture error log size "3k", minimum size is 4096 in /home/ec2-user/git/lua-resty-core/t/servroot/conf/nginx.conf:25
errlog.t TEST 31: ringbuf sentinel bug2 - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +1,2 @@
log lines: \#18
-log lines: \#8
+log lines: \#1
'
errlog.t TEST 29: ringbuf overflow bug - response_body_like - response is expected (log level: 4 log time: 1675712584.496 log body: 2023/02/06 19:43:04 [error] 18494\#18494: *105 [lua] content_by_lua(nginx.conf:67):8: **********22, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level: 4 log time: 1675712584.496 log body: 2023/02/06 19:43:04 [error] 18494\#18494: *105 [lua] content_by_lua(nginx.conf:67):8: **********23, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level: 4 log time: 1675712584.496 log body: 2023/02/06 19:43:04 [error] 18494\#18494: *105 [lua] content_by_lua(nginx.conf:67):8: **********24, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level: 4 log time: 1675712584.496 log body: 2023/02/06 19:43:04 [error] 18494\#18494: *105 [lua] content_by_lua(nginx.conf:67):8: **********25, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level: 4 log time: 1675712584.496 log body: 2023/02/06 19:43:04 [error] 18494\#18494: *105 [lua] content_by_lua(nginx.conf:67):8: **********26, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level: 4 log time: 1675712584.496 log body: 2023/02/06 19:43:04 [error] 18494\#18494: *105 [lua] content_by_lua(nginx.conf:67):8: **********27, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level: 4 log time: 1675712584.496 log body: 2023/02/06 19:43:04 [error] 18494\#18494: *105 [lua] content_by_lua(nginx.conf:67):8: **********28, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level: 4 log time: 1675712584.496 log body: 2023/02/06 19:43:04 [error] 18494\#18494: *105 [lua] content_by_lua(nginx.conf:67):8: **********29, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level: 4 log time: 1675712584.496 log body: 2023/02/06 19:43:04 [error] 18494\#18494: *105 [lua] content_by_lua(nginx.conf:67):8: **********30, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level: 4 log time: 1675712584.496 log body: 2023/02/06 19:43:04 [error] 18494\#18494: *105 [lua] content_by_lua(nginx.conf:67):8: **********31, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost") 'log level: 4
log time: 1675712584.496
log body: 2023/02/06 19:43:04 [error] 18494#18494: *105 [lua] content_by_lua(nginx.conf:67):8: **********22, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level: 4
log time: 1675712584.496
log body: 2023/02/06 19:43:04 [error] 18494#18494: *105 [lua] content_by_lua(nginx.conf:67):8: **********23, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level: 4
log time: 1675712584.496
log body: 2023/02/06 19:43:04 [error] 18494#18494: *105 [lua] content_by_lua(nginx.conf:67):8: **********24, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level: 4
log time: 1675712584.496
log body: 2023/02/06 19:43:04 [error] 18494#18494: *105 [lua] content_by_lua(nginx.conf:67):8: **********25, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level: 4
log time: 1675712584.496
log body: 2023/02/06 19:43:04 [error] 18494#18494: *105 [lua] content_by_lua(nginx.conf:67):8: **********26, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level: 4
log time: 1675712584.496
log body: 2023/02/06 19:43:04 [error] 18494#18494: *105 [lua] content_by_lua(nginx.conf:67):8: **********27, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level: 4
log time: 1675712584.496
log body: 2023/02/06 19:43:04 [error] 18494#18494: *105 [lua] content_by_lua(nginx.conf:67):8: **********28, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level: 4
log time: 1675712584.496
log body: 2023/02/06 19:43:04 [error] 18494#18494: *105 [lua] content_by_lua(nginx.conf:67):8: **********29, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level: 4
log time: 1675712584.496
log body: 2023/02/06 19:43:04 [error] 18494#18494: *105 [lua] content_by_lua(nginx.conf:67):8: **********30, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level: 4
log time: 1675712584.496
log body: 2023/02/06 19:43:04 [error] 18494#18494: *105 [lua] content_by_lua(nginx.conf:67):8: **********31, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
'
doesn't match '(?^s:log level: 4
log time: \d+(?:\.\d+)?
log body: \d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: \*\*\*\*\*\*\*\*\*\*39, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level: 4
log time: \d{10}(?:\.\d+)?
log body: \d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: \*\*\*\*\*\*\*\*\*\*40, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost")'
errlog.t TEST 29: ringbuf overflow bug - response_body_like - response is expected (log level: 4 log time: 1675712584.871 log body: 2023/02/06 19:43:04 [error] 18494\#18494: *106 [lua] content_by_lua(nginx.conf:67):8: **********30, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level: 4 log time: 1675712584.871 log body: 2023/02/06 19:43:04 [error] 18494\#18494: *106 [lua] content_by_lua(nginx.conf:67):8: **********31, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level: 4 log time: 1675712584.871 log body: 2023/02/06 19:43:04 [error] 18494\#18494: *106 [lua] content_by_lua(nginx.conf:67):8: **********32, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level: 4 log time: 1675712584.871 log body: 2023/02/06 19:43:04 [error] 18494\#18494: *106 [lua] content_by_lua(nginx.conf:67):8: **********33, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level: 4 log time: 1675712584.871 log body: 2023/02/06 19:43:04 [error] 18494\#18494: *106 [lua] content_by_lua(nginx.conf:67):8: **********34, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level: 4 log time: 1675712584.871 log body: 2023/02/06 19:43:04 [error] 18494\#18494: *106 [lua] content_by_lua(nginx.conf:67):8: **********35, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level: 4 log time: 1675712584.871 log body: 2023/02/06 19:43:04 [error] 18494\#18494: *106 [lua] content_by_lua(nginx.conf:67):8: **********36, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level: 4 log time: 1675712584.871 log body: 2023/02/06 19:43:04 [error] 18494\#18494: *106 [lua] content_by_lua(nginx.conf:67):8: **********37, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level: 4 log time: 1675712584.871 log body: 2023/02/06 19:43:04 [error] 18494\#18494: *106 [lua] content_by_lua(nginx.conf:67):8: **********38, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level: 4 log time: 1675712584.871 log body: 2023/02/06 19:43:04 [error] 18494\#18494: *106 [lua] content_by_lua(nginx.conf:67):8: **********39, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost") 'log level: 4
log time: 1675712584.871
log body: 2023/02/06 19:43:04 [error] 18494#18494: *106 [lua] content_by_lua(nginx.conf:67):8: **********30, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level: 4
log time: 1675712584.871
log body: 2023/02/06 19:43:04 [error] 18494#18494: *106 [lua] content_by_lua(nginx.conf:67):8: **********31, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level: 4
log time: 1675712584.871
log body: 2023/02/06 19:43:04 [error] 18494#18494: *106 [lua] content_by_lua(nginx.conf:67):8: **********32, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level: 4
log time: 1675712584.871
log body: 2023/02/06 19:43:04 [error] 18494#18494: *106 [lua] content_by_lua(nginx.conf:67):8: **********33, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level: 4
log time: 1675712584.871
log body: 2023/02/06 19:43:04 [error] 18494#18494: *106 [lua] content_by_lua(nginx.conf:67):8: **********34, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level: 4
log time: 1675712584.871
log body: 2023/02/06 19:43:04 [error] 18494#18494: *106 [lua] content_by_lua(nginx.conf:67):8: **********35, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level: 4
log time: 1675712584.871
log body: 2023/02/06 19:43:04 [error] 18494#18494: *106 [lua] content_by_lua(nginx.conf:67):8: **********36, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level: 4
log time: 1675712584.871
log body: 2023/02/06 19:43:04 [error] 18494#18494: *106 [lua] content_by_lua(nginx.conf:67):8: **********37, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level: 4
log time: 1675712584.871
log body: 2023/02/06 19:43:04 [error] 18494#18494: *106 [lua] content_by_lua(nginx.conf:67):8: **********38, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level: 4
log time: 1675712584.871
log body: 2023/02/06 19:43:04 [error] 18494#18494: *106 [lua] content_by_lua(nginx.conf:67):8: **********39, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
'
doesn't match '(?^s:log level: 4
log time: \d+(?:\.\d+)?
log body: \d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: \*\*\*\*\*\*\*\*\*\*39, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level: 4
log time: \d{10}(?:\.\d+)?
log body: \d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: \*\*\*\*\*\*\*\*\*\*40, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost")'
errlog.t TEST 11: filter log by level(ngx.INFO) - response_body - response is expected (repeated req 0, req 0) got: 'log lines:10
'
expected: 'log lines:3
'
errlog.t TEST 11: filter log by level(ngx.INFO) - response_body - response is expected (repeated req 1, req 0) got: 'log lines:10
'
expected: 'log lines:3
'
errlog.t TEST 12: filter log by level(ngx.WARN) - response_body - response is expected (repeated req 0, req 0) got: 'log lines:10
'
expected: 'log lines:2
'
errlog.t TEST 12: filter log by level(ngx.WARN) - response_body - response is expected (repeated req 1, req 0) got: 'log lines:10
'
expected: 'log lines:2
'
errlog.t TEST 30: ringbuf sentinel bug1 - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +1,3 @@
log lines: \#2
-AAA
+aaa
aaa
'
errlog.t TEST 21: multi-line error log - response_body_like - response is expected (log lines: \#10 log level:6 log body:2023/02/06 19:43:07 [notice] 18364\#18364: start worker processes log level:7 log body:2023/02/06 19:43:07 [info] 18632\#18632: *189 client 127.0.0.1 closed keepalive connection log level:7 log body:2023/02/06 19:43:07 [info] 18632\#18632: *190 client 127.0.0.1 closed keepalive connection log level:7 log body:2023/02/06 19:43:07 [info] 18632\#18632: *191 client 127.0.0.1 closed keepalive connection log level:7 log body:2023/02/06 19:43:07 [info] 18632\#18632: *192 client 127.0.0.1 closed keepalive connection log level:7 log body:2023/02/06 19:43:07 [info] 18632\#18632: *193 client 127.0.0.1 closed keepalive connection log level:7 log body:2023/02/06 19:43:07 [info] 18632\#18632: *194 client 127.0.0.1 closed keepalive connection log level:7 log body:2023/02/06 19:43:07 [info] 18632\#18632: *195 client 127.0.0.1 closed keepalive connection log level:7 log body:2023/02/06 19:43:07 [info] 18632\#18632: *196 client 127.0.0.1 closed keepalive connection log level:7 log body:2023/02/06 19:43:07 [info] 18632\#18632: *197 client 127.0.0.1 closed keepalive connection) 'log lines: #10
log level:6
log body:2023/02/06 19:43:07 [notice] 18364#18364: start worker processes
log level:7
log body:2023/02/06 19:43:07 [info] 18632#18632: *189 client 127.0.0.1 closed keepalive connection
log level:7
log body:2023/02/06 19:43:07 [info] 18632#18632: *190 client 127.0.0.1 closed keepalive connection
log level:7
log body:2023/02/06 19:43:07 [info] 18632#18632: *191 client 127.0.0.1 closed keepalive connection
log level:7
log body:2023/02/06 19:43:07 [info] 18632#18632: *192 client 127.0.0.1 closed keepalive connection
log level:7
log body:2023/02/06 19:43:07 [info] 18632#18632: *193 client 127.0.0.1 closed keepalive connection
log level:7
log body:2023/02/06 19:43:07 [info] 18632#18632: *194 client 127.0.0.1 closed keepalive connection
log level:7
log body:2023/02/06 19:43:07 [info] 18632#18632: *195 client 127.0.0.1 closed keepalive connection
log level:7
log body:2023/02/06 19:43:07 [info] 18632#18632: *196 client 127.0.0.1 closed keepalive connection
log level:7
log body:2023/02/06 19:43:07 [info] 18632#18632: *197 client 127.0.0.1 closed keepalive connection
'
doesn't match '(?^s:\Alog lines: #1
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*access_by_lua\(nginx.conf:\d+\):\d+: -->
new line, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
\z)'
errlog.t TEST 21: multi-line error log - response_body_like - response is expected (log lines: \#10 log level:7 log body:2023/02/06 19:43:07 [info] 18632\#18632: *198 client 127.0.0.1 closed keepalive connection log level:7 log body:2023/02/06 19:43:07 [info] 18632\#18632: *199 client 127.0.0.1 closed keepalive connection log level:7 log body:2023/02/06 19:43:07 [info] 18632\#18632: *200 client 127.0.0.1 closed keepalive connection log level:7 log body:2023/02/06 19:43:07 [info] 18632\#18632: *201 client 127.0.0.1 closed keepalive connection log level:7 log body:2023/02/06 19:43:07 [info] 18632\#18632: *202 client 127.0.0.1 closed keepalive connection log level:7 log body:2023/02/06 19:43:07 [info] 18632\#18632: *203 client 127.0.0.1 closed keepalive connection log level:7 log body:2023/02/06 19:43:07 [info] 18632\#18632: *204 client 127.0.0.1 closed keepalive connection log level:7 log body:2023/02/06 19:43:07 [info] 18632\#18632: *205 client 127.0.0.1 closed keepalive connection log level:7 log body:2023/02/06 19:43:07 [info] 18632\#18632: *206 client 127.0.0.1 closed keepalive connection log level:7 log body:2023/02/06 19:43:07 [info] 18632\#18632: *207 client 127.0.0.1 closed keepalive connection) 'log lines: #10
log level:7
log body:2023/02/06 19:43:07 [info] 18632#18632: *198 client 127.0.0.1 closed keepalive connection
log level:7
log body:2023/02/06 19:43:07 [info] 18632#18632: *199 client 127.0.0.1 closed keepalive connection
log level:7
log body:2023/02/06 19:43:07 [info] 18632#18632: *200 client 127.0.0.1 closed keepalive connection
log level:7
log body:2023/02/06 19:43:07 [info] 18632#18632: *201 client 127.0.0.1 closed keepalive connection
log level:7
log body:2023/02/06 19:43:07 [info] 18632#18632: *202 client 127.0.0.1 closed keepalive connection
log level:7
log body:2023/02/06 19:43:07 [info] 18632#18632: *203 client 127.0.0.1 closed keepalive connection
log level:7
log body:2023/02/06 19:43:07 [info] 18632#18632: *204 client 127.0.0.1 closed keepalive connection
log level:7
log body:2023/02/06 19:43:07 [info] 18632#18632: *205 client 127.0.0.1 closed keepalive connection
log level:7
log body:2023/02/06 19:43:07 [info] 18632#18632: *206 client 127.0.0.1 closed keepalive connection
log level:7
log body:2023/02/06 19:43:07 [info] 18632#18632: *207 client 127.0.0.1 closed keepalive connection
'
doesn't match '(?^s:\Alog lines: #1
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*access_by_lua\(nginx.conf:\d+\):\d+: -->
new line, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
\z)'
errlog.t TEST 25: get system default filter level during Nginx starts (init) - pattern "log a warning event" should match a line in error.log (req 0)
errlog.t TEST 25: get system default filter level during Nginx starts (init) - pattern "do not log another warning event" should not match any line in error.log but matches line "2023/02/06 19:43:12 [warn] 18844\#18844: *365 [lua] content_by_lua(nginx.conf:59):7: do not log another warning event, client: 127.0.0.1, server: localhost, request: \"GET /t HTTP/1.1\", host: \"localhost\"" (req 0) '
errlog.t TEST 25: get system default filter level during Nginx starts (init) - pattern "log a warning event" should match a line in error.log (req 1)
errlog.t TEST 25: get system default filter level during Nginx starts (init) - pattern "do not log another warning event" should not match any line in error.log but matches line "2023/02/06 19:43:12 [warn] 18844\#18844: *366 [lua] content_by_lua(nginx.conf:59):7: do not log another warning event, client: 127.0.0.1, server: localhost, request: \"GET /t HTTP/1.1\", host: \"localhost\"" (req 1) '
errlog.t TEST 18: flood the capturing buffer (5k) - response_body_like - response is expected (log lines: \#25 log level:4 log body:2023/02/06 19:43:13 [error] 18880\#18880: *391 [lua] access_by_lua(nginx.conf:58):11: --> 88, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level:5 log body:2023/02/06 19:43:13 [warn] 18880\#18880: *391 [lua] access_by_lua(nginx.conf:58):10: --> 89, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level:4 log body:2023/02/06 19:43:13 [error] 18880\#18880: *391 [lua] access_by_lua(nginx.conf:58):11: --> 89, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level:4 log body:2023/02/06 19:43:13 [error] 18880\#18880: *391 [lua] access_by_lua(nginx.conf:58):11: --> 99, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level:5 log body:2023/02/06 19:43:13 [warn] 18880\#18880: *391 [lua] access_by_lua(nginx.conf:58):10: --> 100, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level:4 log body:2023/02/06 19:43:13 [error] 18880\#18880: *391 [lua] access_by_lua(nginx.conf:58):11: --> 100, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost") 'log lines: #25
log level:4
log body:2023/02/06 19:43:13 [error] 18880#18880: *391 [lua] access_by_lua(nginx.conf:58):11: --> 88, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level:5
log body:2023/02/06 19:43:13 [warn] 18880#18880: *391 [lua] access_by_lua(nginx.conf:58):10: --> 89, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level:4
log body:2023/02/06 19:43:13 [error] 18880#18880: *391 [lua] access_by_lua(nginx.conf:58):11: --> 89, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level:4
log body:2023/02/06 19:43:13 [error] 18880#18880: *391 [lua] access_by_lua(nginx.conf:58):11: --> 99, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level:5
log body:2023/02/06 19:43:13 [warn] 18880#18880: *391 [lua] access_by_lua(nginx.conf:58):10: --> 100, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level:4
log body:2023/02/06 19:43:13 [error] 18880#18880: *391 [lua] access_by_lua(nginx.conf:58):11: --> 100, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
'
doesn't match '(?^s:\Alog lines: #26
log level:5
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*access_by_lua\(nginx.conf:\d+\):\d+: --> 88, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*access_by_lua\(nginx.conf:\d+\):\d+: --> 88, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level:5
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*access_by_lua\(nginx.conf:\d+\):\d+: --> 89, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*access_by_lua\(nginx.conf:\d+\):\d+: --> 99, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level:5
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*access_by_lua\(nginx.conf:\d+\):\d+: --> 100, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*access_by_lua\(nginx.conf:\d+\):\d+: --> 100, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
\z)'
errlog.t TEST 18: flood the capturing buffer (5k) - response_body_like - response is expected (log lines: \#25 log level:4 log body:2023/02/06 19:43:13 [error] 18880\#18880: *392 [lua] access_by_lua(nginx.conf:58):11: --> 88, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level:5 log body:2023/02/06 19:43:13 [warn] 18880\#18880: *392 [lua] access_by_lua(nginx.conf:58):10: --> 89, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level:4 log body:2023/02/06 19:43:13 [error] 18880\#18880: *392 [lua] access_by_lua(nginx.conf:58):11: --> 89, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level:4 log body:2023/02/06 19:43:13 [error] 18880\#18880: *392 [lua] access_by_lua(nginx.conf:58):11: --> 99, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level:5 log body:2023/02/06 19:43:13 [warn] 18880\#18880: *392 [lua] access_by_lua(nginx.conf:58):10: --> 100, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level:4 log body:2023/02/06 19:43:13 [error] 18880\#18880: *392 [lua] access_by_lua(nginx.conf:58):11: --> 100, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost") 'log lines: #25
log level:4
log body:2023/02/06 19:43:13 [error] 18880#18880: *392 [lua] access_by_lua(nginx.conf:58):11: --> 88, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level:5
log body:2023/02/06 19:43:13 [warn] 18880#18880: *392 [lua] access_by_lua(nginx.conf:58):10: --> 89, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level:4
log body:2023/02/06 19:43:13 [error] 18880#18880: *392 [lua] access_by_lua(nginx.conf:58):11: --> 89, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level:4
log body:2023/02/06 19:43:13 [error] 18880#18880: *392 [lua] access_by_lua(nginx.conf:58):11: --> 99, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level:5
log body:2023/02/06 19:43:13 [warn] 18880#18880: *392 [lua] access_by_lua(nginx.conf:58):10: --> 100, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level:4
log body:2023/02/06 19:43:13 [error] 18880#18880: *392 [lua] access_by_lua(nginx.conf:58):11: --> 100, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
'
doesn't match '(?^s:\Alog lines: #26
log level:5
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*access_by_lua\(nginx.conf:\d+\):\d+: --> 88, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*access_by_lua\(nginx.conf:\d+\):\d+: --> 88, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level:5
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*access_by_lua\(nginx.conf:\d+\):\d+: --> 89, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*access_by_lua\(nginx.conf:\d+\):\d+: --> 99, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level:5
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*access_by_lua\(nginx.conf:\d+\):\d+: --> 100, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*access_by_lua\(nginx.conf:\d+\):\d+: --> 100, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
\z)'
errlog.t TEST 19: fetch a few and generate a few, then fetch again (overflown again) - response_body_like - response is expected (msg count: 3 log level:4 log body:2023/02/06 19:43:16 [error] 19018\#19018: *496 [lua] access_by_lua(nginx.conf:58):11: --> 88, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level:5 log body:2023/02/06 19:43:16 [warn] 19018\#19018: *496 [lua] access_by_lua(nginx.conf:58):10: --> 89, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level:4 log body:2023/02/06 19:43:16 [error] 19018\#19018: *496 [lua] access_by_lua(nginx.conf:58):11: --> 89, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" msg count: 3 log level:4 log body:2023/02/06 19:43:16 [error] 19018\#19018: *496 [lua] access_by_lua(nginx.conf:58):11: --> 90, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level:5 log body:2023/02/06 19:43:16 [warn] 19018\#19018: *496 [lua] access_by_lua(nginx.conf:58):10: --> 91, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level:4 log body:2023/02/06 19:43:16 [error] 19018\#19018: *496 [lua] access_by_lua(nginx.conf:58):11: --> 91, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level:4 log body:2023/02/06 19:43:16 [error] 19018\#19018: *496 [lua] content_by_lua(nginx.conf:72):14: --> 102, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level:4 log body:2023/02/06 19:43:16 [error] 19018\#19018: *496 [lua] content_by_lua(nginx.conf:72):15: --> 103, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level:4 log body:2023/02/06 19:43:16 [error] 19018\#19018: *496 [lua] content_by_lua(nginx.conf:72):16: --> 104, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost") 'msg count: 3
log level:4
log body:2023/02/06 19:43:16 [error] 19018#19018: *496 [lua] access_by_lua(nginx.conf:58):11: --> 88, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level:5
log body:2023/02/06 19:43:16 [warn] 19018#19018: *496 [lua] access_by_lua(nginx.conf:58):10: --> 89, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level:4
log body:2023/02/06 19:43:16 [error] 19018#19018: *496 [lua] access_by_lua(nginx.conf:58):11: --> 89, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
msg count: 3
log level:4
log body:2023/02/06 19:43:16 [error] 19018#19018: *496 [lua] access_by_lua(nginx.conf:58):11: --> 90, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level:5
log body:2023/02/06 19:43:16 [warn] 19018#19018: *496 [lua] access_by_lua(nginx.conf:58):10: --> 91, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level:4
log body:2023/02/06 19:43:16 [error] 19018#19018: *496 [lua] access_by_lua(nginx.conf:58):11: --> 91, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level:4
log body:2023/02/06 19:43:16 [error] 19018#19018: *496 [lua] content_by_lua(nginx.conf:72):14: --> 102, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level:4
log body:2023/02/06 19:43:16 [error] 19018#19018: *496 [lua] content_by_lua(nginx.conf:72):15: --> 103, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level:4
log body:2023/02/06 19:43:16 [error] 19018#19018: *496 [lua] content_by_lua(nginx.conf:72):16: --> 104, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
'
doesn't match '(?^s:\Amsg count: 3
log level:5
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*?access_by_lua\(nginx.conf:\d+\):\d+: --> 88, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?access_by_lua\(nginx.conf:\d+\):\d+: --> 88, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level:5
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*?access_by_lua\(nginx.conf:\d+\):\d+: --> 89, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
msg count: 3
log level:5
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*?access_by_lua\(nginx.conf:\d+\):\d+: --> 90, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?access_by_lua\(nginx.conf:\d+\):\d+: --> 90, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level:5
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*?access_by_lua\(nginx.conf:\d+\):\d+: --> 91, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 102, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 103, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 104, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
\z)'
errlog.t TEST 19: fetch a few and generate a few, then fetch again (overflown again) - response_body_like - response is expected (msg count: 3 log level:4 log body:2023/02/06 19:43:16 [error] 19018\#19018: *497 [lua] access_by_lua(nginx.conf:58):11: --> 88, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level:5 log body:2023/02/06 19:43:16 [warn] 19018\#19018: *497 [lua] access_by_lua(nginx.conf:58):10: --> 89, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level:4 log body:2023/02/06 19:43:16 [error] 19018\#19018: *497 [lua] access_by_lua(nginx.conf:58):11: --> 89, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" msg count: 3 log level:4 log body:2023/02/06 19:43:16 [error] 19018\#19018: *497 [lua] access_by_lua(nginx.conf:58):11: --> 90, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level:5 log body:2023/02/06 19:43:16 [warn] 19018\#19018: *497 [lua] access_by_lua(nginx.conf:58):10: --> 91, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level:4 log body:2023/02/06 19:43:16 [error] 19018\#19018: *497 [lua] access_by_lua(nginx.conf:58):11: --> 91, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level:4 log body:2023/02/06 19:43:16 [error] 19018\#19018: *497 [lua] content_by_lua(nginx.conf:72):14: --> 102, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level:4 log body:2023/02/06 19:43:16 [error] 19018\#19018: *497 [lua] content_by_lua(nginx.conf:72):15: --> 103, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level:4 log body:2023/02/06 19:43:16 [error] 19018\#19018: *497 [lua] content_by_lua(nginx.conf:72):16: --> 104, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost") 'msg count: 3
log level:4
log body:2023/02/06 19:43:16 [error] 19018#19018: *497 [lua] access_by_lua(nginx.conf:58):11: --> 88, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level:5
log body:2023/02/06 19:43:16 [warn] 19018#19018: *497 [lua] access_by_lua(nginx.conf:58):10: --> 89, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level:4
log body:2023/02/06 19:43:16 [error] 19018#19018: *497 [lua] access_by_lua(nginx.conf:58):11: --> 89, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
msg count: 3
log level:4
log body:2023/02/06 19:43:16 [error] 19018#19018: *497 [lua] access_by_lua(nginx.conf:58):11: --> 90, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level:5
log body:2023/02/06 19:43:16 [warn] 19018#19018: *497 [lua] access_by_lua(nginx.conf:58):10: --> 91, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level:4
log body:2023/02/06 19:43:16 [error] 19018#19018: *497 [lua] access_by_lua(nginx.conf:58):11: --> 91, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level:4
log body:2023/02/06 19:43:16 [error] 19018#19018: *497 [lua] content_by_lua(nginx.conf:72):14: --> 102, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level:4
log body:2023/02/06 19:43:16 [error] 19018#19018: *497 [lua] content_by_lua(nginx.conf:72):15: --> 103, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level:4
log body:2023/02/06 19:43:16 [error] 19018#19018: *497 [lua] content_by_lua(nginx.conf:72):16: --> 104, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
'
doesn't match '(?^s:\Amsg count: 3
log level:5
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*?access_by_lua\(nginx.conf:\d+\):\d+: --> 88, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?access_by_lua\(nginx.conf:\d+\):\d+: --> 88, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level:5
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*?access_by_lua\(nginx.conf:\d+\):\d+: --> 89, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
msg count: 3
log level:5
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*?access_by_lua\(nginx.conf:\d+\):\d+: --> 90, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?access_by_lua\(nginx.conf:\d+\):\d+: --> 90, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level:5
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*?access_by_lua\(nginx.conf:\d+\):\d+: --> 91, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 102, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 103, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 104, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
\z)'
errlog.t TEST 22: user-supplied Lua table to hold the result (get one log + no log) - response_body_like - response is expected (maybe log lines: \#10 log level:6 log body:2023/02/06 19:43:18 [notice] 18364\#18364: start worker processes log level:7 log body:2023/02/06 19:43:18 [info] 19120\#19120: *554 client 127.0.0.1 closed keepalive connection log level:7 log body:2023/02/06 19:43:18 [info] 19120\#19120: *555 client 127.0.0.1 closed keepalive connection log level:7 log body:2023/02/06 19:43:18 [info] 19120\#19120: *556 client 127.0.0.1 closed keepalive connection log level:7 log body:2023/02/06 19:43:18 [info] 19120\#19120: *557 client 127.0.0.1 closed keepalive connection log level:7 log body:2023/02/06 19:43:18 [info] 19120\#19120: *558 client 127.0.0.1 closed keepalive connection log level:7 log body:2023/02/06 19:43:18 [info] 19120\#19120: *559 client 127.0.0.1 closed keepalive connection log level:7 log body:2023/02/06 19:43:18 [info] 19120\#19120: *560 client 127.0.0.1 closed keepalive connection log level:7 log body:2023/02/06 19:43:18 [info] 19120\#19120: *561 client 127.0.0.1 closed keepalive connection log level:7 log body:2023/02/06 19:43:18 [info] 19120\#19120: *562 client 127.0.0.1 closed keepalive connection end maybe log lines: \#10 log level:7 log body:2023/02/06 19:43:18 [info] 19120\#19120: *563 client 127.0.0.1 closed keepalive connection log level:7 log body:2023/02/06 19:43:18 [info] 19120\#19120: *564 client 127.0.0.1 closed keepalive connection log level:7 log body:2023/02/06 19:43:18 [info] 19120\#19120: *565 client 127.0.0.1 closed keepalive connection log level:7 log body:2023/02/06 19:43:18 [info] 19120\#19120: *566 client 127.0.0.1 closed keepalive connection log level:7 log body:2023/02/06 19:43:18 [info] 19120\#19120: *567 client 127.0.0.1 closed keepalive connection log level:7 log body:2023/02/06 19:43:18 [info] 19120\#19120: *568 client 127.0.0.1 closed keepalive connection log level:7 log body:2023/02/06 19:43:18 [info] 19120\#19120: *569 client 127.0.0.1 closed keepalive connection log level:7 log body:2023/02/06 19:43:18 [info] 19120\#19120: *570 client 127.0.0.1 closed keepalive connection log level:7 log body:2023/02/06 19:43:18 [info] 19120\#19120: *571 client 127.0.0.1 closed keepalive connection log level:7 log body:2023/02/06 19:43:18 [info] 19120\#19120: *572 client 127.0.0.1 closed keepalive connection end) 'maybe log lines: #10
log level:6
log body:2023/02/06 19:43:18 [notice] 18364#18364: start worker processes
log level:7
log body:2023/02/06 19:43:18 [info] 19120#19120: *554 client 127.0.0.1 closed keepalive connection
log level:7
log body:2023/02/06 19:43:18 [info] 19120#19120: *555 client 127.0.0.1 closed keepalive connection
log level:7
log body:2023/02/06 19:43:18 [info] 19120#19120: *556 client 127.0.0.1 closed keepalive connection
log level:7
log body:2023/02/06 19:43:18 [info] 19120#19120: *557 client 127.0.0.1 closed keepalive connection
log level:7
log body:2023/02/06 19:43:18 [info] 19120#19120: *558 client 127.0.0.1 closed keepalive connection
log level:7
log body:2023/02/06 19:43:18 [info] 19120#19120: *559 client 127.0.0.1 closed keepalive connection
log level:7
log body:2023/02/06 19:43:18 [info] 19120#19120: *560 client 127.0.0.1 closed keepalive connection
log level:7
log body:2023/02/06 19:43:18 [info] 19120#19120: *561 client 127.0.0.1 closed keepalive connection
log level:7
log body:2023/02/06 19:43:18 [info] 19120#19120: *562 client 127.0.0.1 closed keepalive connection
end
maybe log lines: #10
log level:7
log body:2023/02/06 19:43:18 [info] 19120#19120: *563 client 127.0.0.1 closed keepalive connection
log level:7
log body:2023/02/06 19:43:18 [info] 19120#19120: *564 client 127.0.0.1 closed keepalive connection
log level:7
log body:2023/02/06 19:43:18 [info] 19120#19120: *565 client 127.0.0.1 closed keepalive connection
log level:7
log body:2023/02/06 19:43:18 [info] 19120#19120: *566 client 127.0.0.1 closed keepalive connection
log level:7
log body:2023/02/06 19:43:18 [info] 19120#19120: *567 client 127.0.0.1 closed keepalive connection
log level:7
log body:2023/02/06 19:43:18 [info] 19120#19120: *568 client 127.0.0.1 closed keepalive connection
log level:7
log body:2023/02/06 19:43:18 [info] 19120#19120: *569 client 127.0.0.1 closed keepalive connection
log level:7
log body:2023/02/06 19:43:18 [info] 19120#19120: *570 client 127.0.0.1 closed keepalive connection
log level:7
log body:2023/02/06 19:43:18 [info] 19120#19120: *571 client 127.0.0.1 closed keepalive connection
log level:7
log body:2023/02/06 19:43:18 [info] 19120#19120: *572 client 127.0.0.1 closed keepalive connection
end
'
doesn't match '(?^s:\Amaybe log lines: #1
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*access_by_lua\(nginx.conf:\d+\):\d+: -->
new line, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
end
maybe log lines: #1
end
\z)'
errlog.t TEST 22: user-supplied Lua table to hold the result (get one log + no log) - response_body_like - response is expected (maybe log lines: \#3 log level:7 log body:2023/02/06 19:43:18 [info] 19120\#19120: *573 client 127.0.0.1 closed keepalive connection log level:4 log body:2023/02/06 19:43:18 [error] 19120\#19120: *574 [lua] access_by_lua(nginx.conf:58):8: --> new line, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level:4 log body:2023/02/06 19:43:19 [error] 19120\#19120: *575 [lua] access_by_lua(nginx.conf:58):8: --> new line, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" end maybe log lines: \#3 end) 'maybe log lines: #3
log level:7
log body:2023/02/06 19:43:18 [info] 19120#19120: *573 client 127.0.0.1 closed keepalive connection
log level:4
log body:2023/02/06 19:43:18 [error] 19120#19120: *574 [lua] access_by_lua(nginx.conf:58):8: -->
new line, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level:4
log body:2023/02/06 19:43:19 [error] 19120#19120: *575 [lua] access_by_lua(nginx.conf:58):8: -->
new line, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
end
maybe log lines: #3
end
'
doesn't match '(?^s:\Amaybe log lines: #1
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*access_by_lua\(nginx.conf:\d+\):\d+: -->
new line, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
end
maybe log lines: #1
end
\z)'
errlog.t TEST 16: check the captured error log body - response_body_like - response is expected (log level:6 log body:2023/02/06 19:43:20 [notice] 18364\#18364: start worker processes log level:7 log body:2023/02/06 19:43:20 [info] 19192\#19192: *606 client 127.0.0.1 closed keepalive connection log level:7 log body:2023/02/06 19:43:20 [info] 19192\#19192: *607 client 127.0.0.1 closed keepalive connection log level:7 log body:2023/02/06 19:43:20 [info] 19192\#19192: *608 client 127.0.0.1 closed keepalive connection log level:7 log body:2023/02/06 19:43:20 [info] 19192\#19192: *609 client 127.0.0.1 closed keepalive connection log level:7 log body:2023/02/06 19:43:20 [info] 19192\#19192: *610 client 127.0.0.1 closed keepalive connection log level:7 log body:2023/02/06 19:43:20 [info] 19192\#19192: *611 client 127.0.0.1 closed keepalive connection log level:7 log body:2023/02/06 19:43:20 [info] 19192\#19192: *612 client 127.0.0.1 closed keepalive connection log level:7 log body:2023/02/06 19:43:20 [info] 19192\#19192: *613 client 127.0.0.1 closed keepalive connection log level:7 log body:2023/02/06 19:43:20 [info] 19192\#19192: *614 client 127.0.0.1 closed keepalive connection) 'log level:6
log body:2023/02/06 19:43:20 [notice] 18364#18364: start worker processes
log level:7
log body:2023/02/06 19:43:20 [info] 19192#19192: *606 client 127.0.0.1 closed keepalive connection
log level:7
log body:2023/02/06 19:43:20 [info] 19192#19192: *607 client 127.0.0.1 closed keepalive connection
log level:7
log body:2023/02/06 19:43:20 [info] 19192#19192: *608 client 127.0.0.1 closed keepalive connection
log level:7
log body:2023/02/06 19:43:20 [info] 19192#19192: *609 client 127.0.0.1 closed keepalive connection
log level:7
log body:2023/02/06 19:43:20 [info] 19192#19192: *610 client 127.0.0.1 closed keepalive connection
log level:7
log body:2023/02/06 19:43:20 [info] 19192#19192: *611 client 127.0.0.1 closed keepalive connection
log level:7
log body:2023/02/06 19:43:20 [info] 19192#19192: *612 client 127.0.0.1 closed keepalive connection
log level:7
log body:2023/02/06 19:43:20 [info] 19192#19192: *613 client 127.0.0.1 closed keepalive connection
log level:7
log body:2023/02/06 19:43:20 [info] 19192#19192: *614 client 127.0.0.1 closed keepalive connection
'
doesn't match '(?^s:log level:5
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*access_by_lua\(nginx.conf:\d+\):\d+: -->2, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*access_by_lua\(nginx.conf:\d+\):\d+: -->3, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
)'
errlog.t TEST 16: check the captured error log body - response_body_like - response is expected (log level:7 log body:2023/02/06 19:43:20 [info] 19192\#19192: *615 client 127.0.0.1 closed keepalive connection log level:7 log body:2023/02/06 19:43:20 [info] 19192\#19192: *616 client 127.0.0.1 closed keepalive connection log level:7 log body:2023/02/06 19:43:20 [info] 19192\#19192: *617 client 127.0.0.1 closed keepalive connection log level:7 log body:2023/02/06 19:43:20 [info] 19192\#19192: *618 client 127.0.0.1 closed keepalive connection log level:7 log body:2023/02/06 19:43:20 [info] 19192\#19192: *619 client 127.0.0.1 closed keepalive connection log level:7 log body:2023/02/06 19:43:20 [info] 19192\#19192: *620 client 127.0.0.1 closed keepalive connection log level:7 log body:2023/02/06 19:43:20 [info] 19192\#19192: *621 client 127.0.0.1 closed keepalive connection log level:7 log body:2023/02/06 19:43:20 [info] 19192\#19192: *622 client 127.0.0.1 closed keepalive connection log level:7 log body:2023/02/06 19:43:20 [info] 19192\#19192: *623 client 127.0.0.1 closed keepalive connection log level:7 log body:2023/02/06 19:43:20 [info] 19192\#19192: *624 client 127.0.0.1 closed keepalive connection) 'log level:7
log body:2023/02/06 19:43:20 [info] 19192#19192: *615 client 127.0.0.1 closed keepalive connection
log level:7
log body:2023/02/06 19:43:20 [info] 19192#19192: *616 client 127.0.0.1 closed keepalive connection
log level:7
log body:2023/02/06 19:43:20 [info] 19192#19192: *617 client 127.0.0.1 closed keepalive connection
log level:7
log body:2023/02/06 19:43:20 [info] 19192#19192: *618 client 127.0.0.1 closed keepalive connection
log level:7
log body:2023/02/06 19:43:20 [info] 19192#19192: *619 client 127.0.0.1 closed keepalive connection
log level:7
log body:2023/02/06 19:43:20 [info] 19192#19192: *620 client 127.0.0.1 closed keepalive connection
log level:7
log body:2023/02/06 19:43:20 [info] 19192#19192: *621 client 127.0.0.1 closed keepalive connection
log level:7
log body:2023/02/06 19:43:20 [info] 19192#19192: *622 client 127.0.0.1 closed keepalive connection
log level:7
log body:2023/02/06 19:43:20 [info] 19192#19192: *623 client 127.0.0.1 closed keepalive connection
log level:7
log body:2023/02/06 19:43:20 [info] 19192#19192: *624 client 127.0.0.1 closed keepalive connection
'
doesn't match '(?^s:log level:5
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*access_by_lua\(nginx.conf:\d+\):\d+: -->2, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*access_by_lua\(nginx.conf:\d+\):\d+: -->3, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
)'
errlog.t nginx: [emerg] invalid number of arguments in "lua_capture_error_log" directive in /home/ec2-user/git/lua-resty-core/t/servroot/conf/nginx.conf:25
process-type-single.t TEST 1: sanity - response_body - response is expected (repeated req 0, req 0) got: "process type: worker\x{0a}"
length: 21
expected: "process type: single\x{0a}"
length: 21
strings begin to differ at char 15 (line 1 column 15)
process-type-single.t TEST 1: sanity - grep_error_log_out (req 0) '[TRACE 1 init_by_lua(nginx.conf:26):18 loop]
[TRACE 2 init_worker_by_lua(nginx.conf:50):4 loop]
[TRACE 2 content_by_lua(nginx.conf:76):4 loop]
process type in init_by_lua*: master
init_worker_by_lua(nginx.conf:50):10: process type: worker
'
doesn't match '(?^:\[TRACE\s+\d+ init_by_lua\(nginx.conf:\d+\):\d+ loop\]
\[TRACE\s+\d+ init_worker_by_lua\(nginx.conf:\d+\):\d+ loop\]
\[TRACE\s+\d+ content_by_lua\(nginx.conf:\d+\):4 loop\]
process type in init_by_lua\*: single
init_worker_by_lua\(nginx.conf:\d+\):10: process type: single
)'
process-type-single.t TEST 1: sanity - response_body - response is expected (repeated req 1, req 0) got: "process type: worker\x{0a}"
length: 21
expected: "process type: single\x{0a}"
length: 21
strings begin to differ at char 15 (line 1 column 15)
process-type-single.t TEST 1: sanity - grep_error_log_out (req 1) '[TRACE 1 init_by_lua(nginx.conf:26):18 loop]
[TRACE 2 init_worker_by_lua(nginx.conf:50):4 loop]
[TRACE 2 content_by_lua(nginx.conf:76):4 loop]
process type in init_by_lua*: master
init_worker_by_lua(nginx.conf:50):10: process type: worker
'
doesn't match '(?^:\[TRACE\s+\d+ init_by_lua\(nginx.conf:\d+\):\d+ loop\]
\[TRACE\s+\d+ init_worker_by_lua\(nginx.conf:\d+\):\d+ loop\]
\[TRACE\s+\d+ content_by_lua\(nginx.conf:\d+\):4 loop\]
process type in init_by_lua\*: single
init_worker_by_lua\(nginx.conf:\d+\):10: process type: single
)'
request.t TEST 7: ngx.req.start_time() - response_body - response is expected (repeated req 0, req 0) got: "true\x{0a}>= 0.099: true\x{0a}< 0.11: false\x{0a}"
length: 34
expected: "true\x{0a}>= 0.099: true\x{0a}< 0.11: true\x{0a}"
length: 33
strings begin to differ at char 29 (line 3 column 9)
semaphore.t TEST 31: multi wait and mult post with one semaphore - pattern "[error]" should not match any line in error.log but matches line "2023/02/06 19:51:50 [error] 936\#936: *534 [lua] init_worker_by_lua(nginx.conf:26):14: sem: timeout, context: ngx.timer" (req 0) 2023/02/06 19:51:50 [debug] 1039\#1039: worker cycle
2023/02/06 19:51:50 [debug] 936\#936: http lua semaphore wait: 0000000009E535A8, timeout: 1000, resources: 0, event posted: 0
2023/02/06 19:51:50 [debug] 936\#936: *534 event timer add: 0: 1000:40499768
2023/02/06 19:51:50 [debug] 936\#936: http lua semaphore wait yielding
2023/02/06 19:51:50 [debug] 936\#936: *534 lua resume returned 1
2023/02/06 19:51:50 [debug] 936\#936: *534 lua thread yielded
2023/02/06 19:51:50 [debug] 936\#936: *534 lua run thread returned -2
2023/02/06 19:51:50 [debug] 936\#936: worker cycle
2023/02/06 19:51:50 [debug] 936\#936: epoll timer: 1000
'
semaphore.t TEST 28: kill a thread that is waiting on another thread that is waiting on semaphore - pattern "[error]" should not match any line in error.log but matches line "2023/02/06 19:51:52 [error] 936\#936: *534 [lua] init_worker_by_lua(nginx.conf:26):14: sem: timeout, context: ngx.timer" (req 0) 2023/02/06 19:51:52 [error] 936\#936: *534 [lua] init_worker_by_lua(nginx.conf:26):18: sem: 6 times, context: ngx.timer
2023/02/06 19:51:52 [debug] 1112\#1112: malloc: 0000000009D48960:589704
2023/02/06 19:51:52 [debug] 1112\#1112: new block, alloc semaphore: 0000000009D48978 block: 0000000009D48960
2023/02/06 19:51:52 [debug] 1112\#1112: http lua semaphore new: 0000000009D48978, resources: 0
2023/02/06 19:51:52 [debug] 1112\#1112: lua ref lua thread 000000000858E1D0 (ref 2)
2023/02/06 19:51:52 [debug] 1112\#1112: *688 malloc: 00000000088A5320:56
2023/02/06 19:51:52 [debug] 1112\#1112: *688 malloc: 00000000084F2690:16
2023/02/06 19:51:52 [debug] 1112\#1112: *688 malloc: 00000000084E5620:896
2023/02/06 19:51:52 [debug] 1112\#1112: *688 malloc: 000000000944EA80:16
'
semaphore.t TEST 28: kill a thread that is waiting on another thread that is waiting on semaphore - pattern "[error]" should not match any line in error.log but matches line "2023/02/06 19:51:52 [error] 936\#936: *534 [lua] init_worker_by_lua(nginx.conf:26):18: sem: 6 times, context: ngx.timer" (req 0) 2023/02/06 19:51:52 [debug] 1112\#1112: malloc: 0000000009D48960:589704
2023/02/06 19:51:52 [debug] 1112\#1112: new block, alloc semaphore: 0000000009D48978 block: 0000000009D48960
2023/02/06 19:51:52 [debug] 1112\#1112: http lua semaphore new: 0000000009D48978, resources: 0
2023/02/06 19:51:52 [debug] 1112\#1112: lua ref lua thread 000000000858E1D0 (ref 2)
2023/02/06 19:51:52 [debug] 1112\#1112: *688 malloc: 00000000088A5320:56
2023/02/06 19:51:52 [debug] 1112\#1112: *688 malloc: 00000000084F2690:16
2023/02/06 19:51:52 [debug] 1112\#1112: *688 malloc: 00000000084E5620:896
2023/02/06 19:51:52 [debug] 1112\#1112: *688 malloc: 000000000944EA80:16
2023/02/06 19:51:52 [debug] 1112\#1112: *688 malloc: 0000000009452DB0:16
'
semaphore.t TEST 19: semaphore wait post in rewrite_by_lua - pattern "[error]" should not match any line in error.log but matches line "2023/02/06 19:51:53 [error] 936\#936: *534 [lua] init_worker_by_lua(nginx.conf:26):14: sem: timeout, context: ngx.timer" (req 0) 2023/02/06 19:51:53 [debug] 936\#936: http lua semaphore wait: 0000000009E535A8, timeout: 1000, resources: 0, event posted: 0
2023/02/06 19:51:53 [debug] 936\#936: *534 event timer add: 0: 1000:40502769
2023/02/06 19:51:53 [debug] 936\#936: http lua semaphore wait yielding
2023/02/06 19:51:53 [debug] 936\#936: *534 lua resume returned 1
2023/02/06 19:51:53 [debug] 936\#936: *534 lua thread yielded
2023/02/06 19:51:53 [debug] 936\#936: *534 lua run thread returned -2
2023/02/06 19:51:53 [debug] 936\#936: worker cycle
'
semaphore.t TEST 22: semaphore post in body_filter_by_lua (subrequest) - pattern "[error]" should not match any line in error.log but matches line "2023/02/06 19:51:56 [error] 936\#936: *534 [lua] init_worker_by_lua(nginx.conf:26):14: sem: timeout, context: ngx.timer" (req 0) 2023/02/06 19:51:56 [debug] 936\#936: http lua semaphore wait: 0000000009E535A8, timeout: 1000, resources: 0, event posted: 0
2023/02/06 19:51:56 [debug] 936\#936: *534 event timer add: 0: 1000:40505770
2023/02/06 19:51:56 [debug] 936\#936: http lua semaphore wait yielding
2023/02/06 19:51:56 [debug] 936\#936: *534 lua resume returned 1
2023/02/06 19:51:56 [debug] 936\#936: *534 lua thread yielded
2023/02/06 19:51:56 [debug] 936\#936: *534 lua run thread returned -2
2023/02/06 19:51:56 [debug] 936\#936: worker cycle
2023/02/06 19:51:56 [debug] 936\#936: epoll timer: 1000
2023/02/06 19:51:56 [debug] 1258\#1258: epoll: fd:6 ev:0001 d:000000000A14D260
'
semaphore.t TEST 11: semaphore in access_by_lua (all allowed) - grep_error_log_out (req 0) @@ -1,2 +1,4 @@
sem: timeout,
+sem: 6 times,
+sem: timeout,
sem: 1,
'
semaphore.t TEST 26: kill a light thread that is waiting on a semaphore (no resource) - pattern "[error]" should not match any line in error.log but matches line "2023/02/06 19:52:00 [error] 936\#936: *534 [lua] init_worker_by_lua(nginx.conf:26):14: sem: timeout, context: ngx.timer" (req 0) 2023/02/06 19:52:00 [debug] 936\#936: http lua semaphore wait: 0000000009E535A8, timeout: 1000, resources: 0, event posted: 0
2023/02/06 19:52:00 [debug] 936\#936: *534 event timer add: 0: 1000:40509772
2023/02/06 19:52:00 [debug] 936\#936: http lua semaphore wait yielding
2023/02/06 19:52:00 [debug] 936\#936: *534 lua resume returned 1
2023/02/06 19:52:00 [debug] 936\#936: *534 lua thread yielded
2023/02/06 19:52:00 [debug] 936\#936: *534 lua run thread returned -2
2023/02/06 19:52:00 [debug] 936\#936: worker cycle
2023/02/06 19:52:00 [debug] 936\#936: epoll timer: 1000
2023/02/06 19:52:00 [notice] 32668\#32668: start worker process 1437
'
semaphore.t TEST 27: kill a light thread that is waiting on a semaphore (after post) - pattern "[error]" should not match any line in error.log but matches line "2023/02/06 19:52:01 [error] 936\#936: *534 [lua] init_worker_by_lua(nginx.conf:26):14: sem: timeout, context: ngx.timer" (req 0) 2023/02/06 19:52:01 [debug] 936\#936: http lua semaphore wait: 0000000009E535A8, timeout: 1000, resources: 0, event posted: 0
2023/02/06 19:52:01 [debug] 936\#936: *534 event timer add: 0: 1000:40510774
2023/02/06 19:52:01 [debug] 936\#936: http lua semaphore wait yielding
2023/02/06 19:52:01 [debug] 1473\#1473: accept() not ready (11: Resource temporarily unavailable)
2023/02/06 19:52:01 [debug] 936\#936: *534 lua resume returned 1
2023/02/06 19:52:01 [debug] 936\#936: *534 lua thread yielded
2023/02/06 19:52:01 [debug] 936\#936: *534 lua run thread returned -2
2023/02/06 19:52:01 [debug] 936\#936: worker cycle
2023/02/06 19:52:01 [debug] 936\#936: epoll timer: 1000
'
semaphore.t TEST 8: semaphore in init_worker_by_lua (new and post) - pattern "[error]" should not match any line in error.log but matches line "2023/02/06 19:52:02 [error] 936\#936: *534 [lua] init_worker_by_lua(nginx.conf:26):14: sem: timeout, context: ngx.timer" (req 0) 2023/02/06 19:52:02 [debug] 936\#936: http lua semaphore wait: 0000000009E535A8, timeout: 1000, resources: 0, event posted: 0
2023/02/06 19:52:02 [debug] 936\#936: *534 event timer add: 0: 1000:40511774
2023/02/06 19:52:02 [debug] 936\#936: http lua semaphore wait yielding
2023/02/06 19:52:02 [debug] 936\#936: *534 lua resume returned 1
2023/02/06 19:52:02 [debug] 936\#936: *534 lua thread yielded
2023/02/06 19:52:02 [debug] 936\#936: *534 lua run thread returned -2
2023/02/06 19:52:02 [debug] 936\#936: worker cycle
2023/02/06 19:52:02 [debug] 936\#936: epoll timer: 1000
2023/02/06 19:52:02 [debug] 1510\#1510: *954 malloc: 000000000894E410:80
'
semaphore.t TEST 4: basic semaphore in subrequest - pattern "[error]" should not match any line in error.log but matches line "2023/02/06 19:52:03 [error] 936\#936: *534 [lua] init_worker_by_lua(nginx.conf:26):14: sem: timeout, context: ngx.timer" (req 0) 2023/02/06 19:52:03 [debug] 936\#936: http lua semaphore wait: 0000000009E535A8, timeout: 1000, resources: 0, event posted: 0
2023/02/06 19:52:03 [debug] 1548\#1548: semaphore handler: wait queue: not empty, resource count: 1
2023/02/06 19:52:03 [debug] 936\#936: *534 event timer add: 0: 1000:40512774
2023/02/06 19:52:03 [debug] 936\#936: http lua semaphore wait yielding
2023/02/06 19:52:03 [debug] 936\#936: *534 lua resume returned 1
2023/02/06 19:52:03 [debug] 936\#936: *534 lua thread yielded
2023/02/06 19:52:03 [debug] 936\#936: *534 lua run thread returned -2
2023/02/06 19:52:03 [debug] 936\#936: worker cycle
2023/02/06 19:52:03 [debug] 936\#936: epoll timer: 1000
'
semaphore.t TEST 13: semaphore in log_by_lua (wait not allowed) - grep_error_log_out (req 0) @@ -1,2 +1,4 @@
sem: 1 while logging request,
sem: API disabled in the context of log_by_lua* while logging request,
+sem: timeout,
+sem: 6 times,
'
shared.t TEST 11: shared.expire returns error on not found key - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'failed to set ttl: not found
'
shared.t TEST 11: shared.expire returns error on not found key - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'failed to set ttl: not found
'
shared.t TEST 3: shared.ttl returns error on not found key - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'failed to get ttl: not found
'
shared.t TEST 3: shared.ttl returns error on not found key - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'failed to get ttl: not found
'
stream/errlog.t TEST 3: client connected info - grep_error_log_out (req 0) 'client 127.0.0.1:4644 connected to
capture log line:2
'
doesn't match '(?^:^client .*? connected to .*?
capture log line:1
$)'
stream/errlog.t TEST 11: filter log by level(ngx.INFO) - response_body - response is expected (repeated req 0, req 0) got: 'log lines:4
'
expected: 'log lines:3
'
stream/errlog.t TEST 20: fetch a few and generate a few, then fetch again (not overflown again) - response_body_like - response is expected (msg count: 3 log level:5 log body:2023/02/06 19:56:28 [warn] 8157\#8157: *123 stream [lua] content_by_lua(nginx.conf:91):10: --> 85, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2023/02/06 19:56:28 [error] 8157\#8157: *123 stream [lua] content_by_lua(nginx.conf:91):11: --> 85, client: 127.0.0.1, server: 0.0.0.0:1985 log level:5 log body:2023/02/06 19:56:28 [warn] 8157\#8157: *123 stream [lua] content_by_lua(nginx.conf:91):10: --> 86, client: 127.0.0.1, server: 0.0.0.0:1985 msg count: 3 log level:4 log body:2023/02/06 19:56:28 [error] 8157\#8157: *123 stream [lua] content_by_lua(nginx.conf:91):11: --> 86, client: 127.0.0.1, server: 0.0.0.0:1985 log level:5 log body:2023/02/06 19:56:28 [warn] 8157\#8157: *123 stream [lua] content_by_lua(nginx.conf:91):10: --> 87, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2023/02/06 19:56:28 [error] 8157\#8157: *123 stream [lua] content_by_lua(nginx.conf:91):11: --> 87, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2023/02/06 19:56:28 [error] 8157\#8157: *123 stream [lua] content_by_lua(nginx.conf:91):11: --> 100, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2023/02/06 19:56:28 [error] 8157\#8157: *123 stream [lua] content_by_lua(nginx.conf:91):23: howdy, something new!, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2023/02/06 19:56:28 [error] 8157\#8157: *123 stream [lua] content_by_lua(nginx.conf:91):24: howdy, something even newer!, client: 127.0.0.1, server: 0.0.0.0:1985) 'msg count: 3
log level:5
log body:2023/02/06 19:56:28 [warn] 8157#8157: *123 stream [lua] content_by_lua(nginx.conf:91):10: --> 85, client: 127.0.0.1, server: 0.0.0.0:1985
log level:4
log body:2023/02/06 19:56:28 [error] 8157#8157: *123 stream [lua] content_by_lua(nginx.conf:91):11: --> 85, client: 127.0.0.1, server: 0.0.0.0:1985
log level:5
log body:2023/02/06 19:56:28 [warn] 8157#8157: *123 stream [lua] content_by_lua(nginx.conf:91):10: --> 86, client: 127.0.0.1, server: 0.0.0.0:1985
msg count: 3
log level:4
log body:2023/02/06 19:56:28 [error] 8157#8157: *123 stream [lua] content_by_lua(nginx.conf:91):11: --> 86, client: 127.0.0.1, server: 0.0.0.0:1985
log level:5
log body:2023/02/06 19:56:28 [warn] 8157#8157: *123 stream [lua] content_by_lua(nginx.conf:91):10: --> 87, client: 127.0.0.1, server: 0.0.0.0:1985
log level:4
log body:2023/02/06 19:56:28 [error] 8157#8157: *123 stream [lua] content_by_lua(nginx.conf:91):11: --> 87, client: 127.0.0.1, server: 0.0.0.0:1985
log level:4
log body:2023/02/06 19:56:28 [error] 8157#8157: *123 stream [lua] content_by_lua(nginx.conf:91):11: --> 100, client: 127.0.0.1, server: 0.0.0.0:1985
log level:4
log body:2023/02/06 19:56:28 [error] 8157#8157: *123 stream [lua] content_by_lua(nginx.conf:91):23: howdy, something new!, client: 127.0.0.1, server: 0.0.0.0:1985
log level:4
log body:2023/02/06 19:56:28 [error] 8157#8157: *123 stream [lua] content_by_lua(nginx.conf:91):24: howdy, something even newer!, client: 127.0.0.1, server: 0.0.0.0:1985
'
doesn't match '(?^s:\Amsg count: 3
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 84, client: 127.0.0.1, server: 0.0.0.0:\d+
log level:5
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 85, client: 127.0.0.1, server: 0.0.0.0:\d+
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 85, client: 127.0.0.1, server: 0.0.0.0:\d+
msg count: 3
log level:5
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 86, client: 127.0.0.1, server: 0.0.0.0:\d+
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 86, client: 127.0.0.1, server: 0.0.0.0:\d+
log level:5
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 87, client: 127.0.0.1, server: 0.0.0.0:\d+
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 100, client: 127.0.0.1, server: 0.0.0.0:\d+
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: howdy, something new!, client: 127.0.0.1, server: 0.0.0.0:\d+
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: howdy, something even newer!, client: 127.0.0.1, server: 0.0.0.0:\d+
\z)'
stream/errlog.t TEST 20: fetch a few and generate a few, then fetch again (not overflown again) - response_body_like - response is expected (msg count: 3 log level:5 log body:2023/02/06 19:56:28 [warn] 8157\#8157: *126 stream [lua] content_by_lua(nginx.conf:91):10: --> 85, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2023/02/06 19:56:28 [error] 8157\#8157: *126 stream [lua] content_by_lua(nginx.conf:91):11: --> 85, client: 127.0.0.1, server: 0.0.0.0:1985 log level:5 log body:2023/02/06 19:56:28 [warn] 8157\#8157: *126 stream [lua] content_by_lua(nginx.conf:91):10: --> 86, client: 127.0.0.1, server: 0.0.0.0:1985 msg count: 3 log level:4 log body:2023/02/06 19:56:28 [error] 8157\#8157: *126 stream [lua] content_by_lua(nginx.conf:91):11: --> 86, client: 127.0.0.1, server: 0.0.0.0:1985 log level:5 log body:2023/02/06 19:56:28 [warn] 8157\#8157: *126 stream [lua] content_by_lua(nginx.conf:91):10: --> 87, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2023/02/06 19:56:28 [error] 8157\#8157: *126 stream [lua] content_by_lua(nginx.conf:91):11: --> 87, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2023/02/06 19:56:28 [error] 8157\#8157: *126 stream [lua] content_by_lua(nginx.conf:91):11: --> 100, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2023/02/06 19:56:28 [error] 8157\#8157: *126 stream [lua] content_by_lua(nginx.conf:91):23: howdy, something new!, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2023/02/06 19:56:28 [error] 8157\#8157: *126 stream [lua] content_by_lua(nginx.conf:91):24: howdy, something even newer!, client: 127.0.0.1, server: 0.0.0.0:1985) 'msg count: 3
log level:5
log body:2023/02/06 19:56:28 [warn] 8157#8157: *126 stream [lua] content_by_lua(nginx.conf:91):10: --> 85, client: 127.0.0.1, server: 0.0.0.0:1985
log level:4
log body:2023/02/06 19:56:28 [error] 8157#8157: *126 stream [lua] content_by_lua(nginx.conf:91):11: --> 85, client: 127.0.0.1, server: 0.0.0.0:1985
log level:5
log body:2023/02/06 19:56:28 [warn] 8157#8157: *126 stream [lua] content_by_lua(nginx.conf:91):10: --> 86, client: 127.0.0.1, server: 0.0.0.0:1985
msg count: 3
log level:4
log body:2023/02/06 19:56:28 [error] 8157#8157: *126 stream [lua] content_by_lua(nginx.conf:91):11: --> 86, client: 127.0.0.1, server: 0.0.0.0:1985
log level:5
log body:2023/02/06 19:56:28 [warn] 8157#8157: *126 stream [lua] content_by_lua(nginx.conf:91):10: --> 87, client: 127.0.0.1, server: 0.0.0.0:1985
log level:4
log body:2023/02/06 19:56:28 [error] 8157#8157: *126 stream [lua] content_by_lua(nginx.conf:91):11: --> 87, client: 127.0.0.1, server: 0.0.0.0:1985
log level:4
log body:2023/02/06 19:56:28 [error] 8157#8157: *126 stream [lua] content_by_lua(nginx.conf:91):11: --> 100, client: 127.0.0.1, server: 0.0.0.0:1985
log level:4
log body:2023/02/06 19:56:28 [error] 8157#8157: *126 stream [lua] content_by_lua(nginx.conf:91):23: howdy, something new!, client: 127.0.0.1, server: 0.0.0.0:1985
log level:4
log body:2023/02/06 19:56:28 [error] 8157#8157: *126 stream [lua] content_by_lua(nginx.conf:91):24: howdy, something even newer!, client: 127.0.0.1, server: 0.0.0.0:1985
'
doesn't match '(?^s:\Amsg count: 3
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 84, client: 127.0.0.1, server: 0.0.0.0:\d+
log level:5
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 85, client: 127.0.0.1, server: 0.0.0.0:\d+
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 85, client: 127.0.0.1, server: 0.0.0.0:\d+
msg count: 3
log level:5
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 86, client: 127.0.0.1, server: 0.0.0.0:\d+
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 86, client: 127.0.0.1, server: 0.0.0.0:\d+
log level:5
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 87, client: 127.0.0.1, server: 0.0.0.0:\d+
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 100, client: 127.0.0.1, server: 0.0.0.0:\d+
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: howdy, something new!, client: 127.0.0.1, server: 0.0.0.0:\d+
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: howdy, something even newer!, client: 127.0.0.1, server: 0.0.0.0:\d+
\z)'
stream/errlog.t TEST 19: fetch a few and generate a few, then fetch again (overflown again) - response_body_like - response is expected (msg count: 3 log level:5 log body:2023/02/06 19:56:29 [warn] 8193\#8193: *153 stream [lua] content_by_lua(nginx.conf:93):10: --> 85, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2023/02/06 19:56:29 [error] 8193\#8193: *153 stream [lua] content_by_lua(nginx.conf:93):11: --> 85, client: 127.0.0.1, server: 0.0.0.0:1985 log level:5 log body:2023/02/06 19:56:29 [warn] 8193\#8193: *153 stream [lua] content_by_lua(nginx.conf:93):10: --> 86, client: 127.0.0.1, server: 0.0.0.0:1985 msg count: 3 log level:5 log body:2023/02/06 19:56:29 [warn] 8193\#8193: *153 stream [lua] content_by_lua(nginx.conf:93):10: --> 87, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2023/02/06 19:56:29 [error] 8193\#8193: *153 stream [lua] content_by_lua(nginx.conf:93):11: --> 87, client: 127.0.0.1, server: 0.0.0.0:1985 log level:5 log body:2023/02/06 19:56:29 [warn] 8193\#8193: *153 stream [lua] content_by_lua(nginx.conf:93):10: --> 88, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2023/02/06 19:56:29 [error] 8193\#8193: *153 stream [lua] content_by_lua(nginx.conf:93):24: --> 102, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2023/02/06 19:56:29 [error] 8193\#8193: *153 stream [lua] content_by_lua(nginx.conf:93):25: --> 103, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2023/02/06 19:56:29 [error] 8193\#8193: *153 stream [lua] content_by_lua(nginx.conf:93):26: --> 104, client: 127.0.0.1, server: 0.0.0.0:1985) 'msg count: 3
log level:5
log body:2023/02/06 19:56:29 [warn] 8193#8193: *153 stream [lua] content_by_lua(nginx.conf:93):10: --> 85, client: 127.0.0.1, server: 0.0.0.0:1985
log level:4
log body:2023/02/06 19:56:29 [error] 8193#8193: *153 stream [lua] content_by_lua(nginx.conf:93):11: --> 85, client: 127.0.0.1, server: 0.0.0.0:1985
log level:5
log body:2023/02/06 19:56:29 [warn] 8193#8193: *153 stream [lua] content_by_lua(nginx.conf:93):10: --> 86, client: 127.0.0.1, server: 0.0.0.0:1985
msg count: 3
log level:5
log body:2023/02/06 19:56:29 [warn] 8193#8193: *153 stream [lua] content_by_lua(nginx.conf:93):10: --> 87, client: 127.0.0.1, server: 0.0.0.0:1985
log level:4
log body:2023/02/06 19:56:29 [error] 8193#8193: *153 stream [lua] content_by_lua(nginx.conf:93):11: --> 87, client: 127.0.0.1, server: 0.0.0.0:1985
log level:5
log body:2023/02/06 19:56:29 [warn] 8193#8193: *153 stream [lua] content_by_lua(nginx.conf:93):10: --> 88, client: 127.0.0.1, server: 0.0.0.0:1985
log level:4
log body:2023/02/06 19:56:29 [error] 8193#8193: *153 stream [lua] content_by_lua(nginx.conf:93):24: --> 102, client: 127.0.0.1, server: 0.0.0.0:1985
log level:4
log body:2023/02/06 19:56:29 [error] 8193#8193: *153 stream [lua] content_by_lua(nginx.conf:93):25: --> 103, client: 127.0.0.1, server: 0.0.0.0:1985
log level:4
log body:2023/02/06 19:56:29 [error] 8193#8193: *153 stream [lua] content_by_lua(nginx.conf:93):26: --> 104, client: 127.0.0.1, server: 0.0.0.0:1985
'
doesn't match '(?^s:\Amsg count: 3
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 84, client: 127.0.0.1, server: 0.0.0.0:\d+
log level:5
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 85, client: 127.0.0.1, server: 0.0.0.0:\d+
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 85, client: 127.0.0.1, server: 0.0.0.0:\d+
msg count: 3
log level:5
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 86, client: 127.0.0.1, server: 0.0.0.0:\d+
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 86, client: 127.0.0.1, server: 0.0.0.0:\d+
log level:5
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 87, client: 127.0.0.1, server: 0.0.0.0:\d+
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 102, client: 127.0.0.1, server: 0.0.0.0:\d+
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 103, client: 127.0.0.1, server: 0.0.0.0:\d+
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 104, client: 127.0.0.1, server: 0.0.0.0:\d+
|msg count: 3
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 84, client: 127.0.0.1, server: 0.0.0.0:\d+
log level:5
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 85, client: 127.0.0.1, server: 0.0.0.0:\d+
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 85, client: 127.0.0.1, server: 0.0.0.0:\d+
msg count: 3
log level:5
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 87, client: 127.0.0.1, server: 0.0.0.0:\d+
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 87, client: 127.0.0.1, server: 0.0.0.0:\d+
log level:5
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 88, client: 127.0.0.1, server: 0.0.0.0:\d+
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 102, client: 127.0.0.1, server: 0.0.0.0:\d+
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 103, client: 127.0.0.1, server: 0.0.0.0:\d+
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 104, client: 127.0.0.1, server: 0.0.0.0:\d+
\z)'
stream/errlog.t TEST 19: fetch a few and generate a few, then fetch again (overflown again) - response_body_like - response is expected (msg count: 3 log level:5 log body:2023/02/06 19:56:29 [warn] 8193\#8193: *156 stream [lua] content_by_lua(nginx.conf:93):10: --> 85, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2023/02/06 19:56:29 [error] 8193\#8193: *156 stream [lua] content_by_lua(nginx.conf:93):11: --> 85, client: 127.0.0.1, server: 0.0.0.0:1985 log level:5 log body:2023/02/06 19:56:29 [warn] 8193\#8193: *156 stream [lua] content_by_lua(nginx.conf:93):10: --> 86, client: 127.0.0.1, server: 0.0.0.0:1985 msg count: 3 log level:5 log body:2023/02/06 19:56:29 [warn] 8193\#8193: *156 stream [lua] content_by_lua(nginx.conf:93):10: --> 87, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2023/02/06 19:56:29 [error] 8193\#8193: *156 stream [lua] content_by_lua(nginx.conf:93):11: --> 87, client: 127.0.0.1, server: 0.0.0.0:1985 log level:5 log body:2023/02/06 19:56:29 [warn] 8193\#8193: *156 stream [lua] content_by_lua(nginx.conf:93):10: --> 88, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2023/02/06 19:56:29 [error] 8193\#8193: *156 stream [lua] content_by_lua(nginx.conf:93):24: --> 102, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2023/02/06 19:56:29 [error] 8193\#8193: *156 stream [lua] content_by_lua(nginx.conf:93):25: --> 103, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2023/02/06 19:56:29 [error] 8193\#8193: *156 stream [lua] content_by_lua(nginx.conf:93):26: --> 104, client: 127.0.0.1, server: 0.0.0.0:1985) 'msg count: 3
log level:5
log body:2023/02/06 19:56:29 [warn] 8193#8193: *156 stream [lua] content_by_lua(nginx.conf:93):10: --> 85, client: 127.0.0.1, server: 0.0.0.0:1985
log level:4
log body:2023/02/06 19:56:29 [error] 8193#8193: *156 stream [lua] content_by_lua(nginx.conf:93):11: --> 85, client: 127.0.0.1, server: 0.0.0.0:1985
log level:5
log body:2023/02/06 19:56:29 [warn] 8193#8193: *156 stream [lua] content_by_lua(nginx.conf:93):10: --> 86, client: 127.0.0.1, server: 0.0.0.0:1985
msg count: 3
log level:5
log body:2023/02/06 19:56:29 [warn] 8193#8193: *156 stream [lua] content_by_lua(nginx.conf:93):10: --> 87, client: 127.0.0.1, server: 0.0.0.0:1985
log level:4
log body:2023/02/06 19:56:29 [error] 8193#8193: *156 stream [lua] content_by_lua(nginx.conf:93):11: --> 87, client: 127.0.0.1, server: 0.0.0.0:1985
log level:5
log body:2023/02/06 19:56:29 [warn] 8193#8193: *156 stream [lua] content_by_lua(nginx.conf:93):10: --> 88, client: 127.0.0.1, server: 0.0.0.0:1985
log level:4
log body:2023/02/06 19:56:29 [error] 8193#8193: *156 stream [lua] content_by_lua(nginx.conf:93):24: --> 102, client: 127.0.0.1, server: 0.0.0.0:1985
log level:4
log body:2023/02/06 19:56:29 [error] 8193#8193: *156 stream [lua] content_by_lua(nginx.conf:93):25: --> 103, client: 127.0.0.1, server: 0.0.0.0:1985
log level:4
log body:2023/02/06 19:56:29 [error] 8193#8193: *156 stream [lua] content_by_lua(nginx.conf:93):26: --> 104, client: 127.0.0.1, server: 0.0.0.0:1985
'
doesn't match '(?^s:\Amsg count: 3
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 84, client: 127.0.0.1, server: 0.0.0.0:\d+
log level:5
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 85, client: 127.0.0.1, server: 0.0.0.0:\d+
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 85, client: 127.0.0.1, server: 0.0.0.0:\d+
msg count: 3
log level:5
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 86, client: 127.0.0.1, server: 0.0.0.0:\d+
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 86, client: 127.0.0.1, server: 0.0.0.0:\d+
log level:5
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 87, client: 127.0.0.1, server: 0.0.0.0:\d+
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 102, client: 127.0.0.1, server: 0.0.0.0:\d+
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 103, client: 127.0.0.1, server: 0.0.0.0:\d+
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 104, client: 127.0.0.1, server: 0.0.0.0:\d+
|msg count: 3
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 84, client: 127.0.0.1, server: 0.0.0.0:\d+
log level:5
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 85, client: 127.0.0.1, server: 0.0.0.0:\d+
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 85, client: 127.0.0.1, server: 0.0.0.0:\d+
msg count: 3
log level:5
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 87, client: 127.0.0.1, server: 0.0.0.0:\d+
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 87, client: 127.0.0.1, server: 0.0.0.0:\d+
log level:5
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 88, client: 127.0.0.1, server: 0.0.0.0:\d+
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 102, client: 127.0.0.1, server: 0.0.0.0:\d+
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 103, client: 127.0.0.1, server: 0.0.0.0:\d+
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 104, client: 127.0.0.1, server: 0.0.0.0:\d+
\z)'
stream/errlog.t TEST 18: flood the capturing buffer (5k) - response_body_like - response is expected (log lines: \#32 log level:5 log body:2023/02/06 19:56:31 [warn] 8265\#8265: *213 stream [lua] content_by_lua(nginx.conf:78):10: --> 85, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2023/02/06 19:56:31 [error] 8265\#8265: *213 stream [lua] content_by_lua(nginx.conf:78):11: --> 85, client: 127.0.0.1, server: 0.0.0.0:1985 log level:5 log body:2023/02/06 19:56:31 [warn] 8265\#8265: *213 stream [lua] content_by_lua(nginx.conf:78):10: --> 86, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2023/02/06 19:56:31 [error] 8265\#8265: *213 stream [lua] content_by_lua(nginx.conf:78):11: --> 99, client: 127.0.0.1, server: 0.0.0.0:1985 log level:5 log body:2023/02/06 19:56:31 [warn] 8265\#8265: *213 stream [lua] content_by_lua(nginx.conf:78):10: --> 100, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2023/02/06 19:56:31 [error] 8265\#8265: *213 stream [lua] content_by_lua(nginx.conf:78):11: --> 100, client: 127.0.0.1, server: 0.0.0.0:1985) 'log lines: #32
log level:5
log body:2023/02/06 19:56:31 [warn] 8265#8265: *213 stream [lua] content_by_lua(nginx.conf:78):10: --> 85, client: 127.0.0.1, server: 0.0.0.0:1985
log level:4
log body:2023/02/06 19:56:31 [error] 8265#8265: *213 stream [lua] content_by_lua(nginx.conf:78):11: --> 85, client: 127.0.0.1, server: 0.0.0.0:1985
log level:5
log body:2023/02/06 19:56:31 [warn] 8265#8265: *213 stream [lua] content_by_lua(nginx.conf:78):10: --> 86, client: 127.0.0.1, server: 0.0.0.0:1985
log level:4
log body:2023/02/06 19:56:31 [error] 8265#8265: *213 stream [lua] content_by_lua(nginx.conf:78):11: --> 99, client: 127.0.0.1, server: 0.0.0.0:1985
log level:5
log body:2023/02/06 19:56:31 [warn] 8265#8265: *213 stream [lua] content_by_lua(nginx.conf:78):10: --> 100, client: 127.0.0.1, server: 0.0.0.0:1985
log level:4
log body:2023/02/06 19:56:31 [error] 8265#8265: *213 stream [lua] content_by_lua(nginx.conf:78):11: --> 100, client: 127.0.0.1, server: 0.0.0.0:1985
'
doesn't match '(?^s:\A(?:log lines: #33
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*content_by_lua\(nginx.conf:\d+\):\d+: --> 84, client: 127.0.0.1, server: 0.0.0.0:\d+
log level:5
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*content_by_lua\(nginx.conf:\d+\):\d+: --> 85, client: 127.0.0.1, server: 0.0.0.0:\d+
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*content_by_lua\(nginx.conf:\d+\):\d+: --> 85, client: 127.0.0.1, server: 0.0.0.0:\d+
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*content_by_lua\(nginx.conf:\d+\):\d+: --> 99, client: 127.0.0.1, server: 0.0.0.0:\d+
log level:5
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*content_by_lua\(nginx.conf:\d+\):\d+: --> 100, client: 127.0.0.1, server: 0.0.0.0:\d+
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*content_by_lua\(nginx.conf:\d+\):\d+: --> 100, client: 127.0.0.1, server: 0.0.0.0:\d+
)\z)'
stream/errlog.t TEST 18: flood the capturing buffer (5k) - response_body_like - response is expected (log lines: \#32 log level:5 log body:2023/02/06 19:56:31 [warn] 8265\#8265: *216 stream [lua] content_by_lua(nginx.conf:78):10: --> 85, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2023/02/06 19:56:31 [error] 8265\#8265: *216 stream [lua] content_by_lua(nginx.conf:78):11: --> 85, client: 127.0.0.1, server: 0.0.0.0:1985 log level:5 log body:2023/02/06 19:56:31 [warn] 8265\#8265: *216 stream [lua] content_by_lua(nginx.conf:78):10: --> 86, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2023/02/06 19:56:31 [error] 8265\#8265: *216 stream [lua] content_by_lua(nginx.conf:78):11: --> 99, client: 127.0.0.1, server: 0.0.0.0:1985 log level:5 log body:2023/02/06 19:56:31 [warn] 8265\#8265: *216 stream [lua] content_by_lua(nginx.conf:78):10: --> 100, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2023/02/06 19:56:31 [error] 8265\#8265: *216 stream [lua] content_by_lua(nginx.conf:78):11: --> 100, client: 127.0.0.1, server: 0.0.0.0:1985) 'log lines: #32
log level:5
log body:2023/02/06 19:56:31 [warn] 8265#8265: *216 stream [lua] content_by_lua(nginx.conf:78):10: --> 85, client: 127.0.0.1, server: 0.0.0.0:1985
log level:4
log body:2023/02/06 19:56:31 [error] 8265#8265: *216 stream [lua] content_by_lua(nginx.conf:78):11: --> 85, client: 127.0.0.1, server: 0.0.0.0:1985
log level:5
log body:2023/02/06 19:56:31 [warn] 8265#8265: *216 stream [lua] content_by_lua(nginx.conf:78):10: --> 86, client: 127.0.0.1, server: 0.0.0.0:1985
log level:4
log body:2023/02/06 19:56:31 [error] 8265#8265: *216 stream [lua] content_by_lua(nginx.conf:78):11: --> 99, client: 127.0.0.1, server: 0.0.0.0:1985
log level:5
log body:2023/02/06 19:56:31 [warn] 8265#8265: *216 stream [lua] content_by_lua(nginx.conf:78):10: --> 100, client: 127.0.0.1, server: 0.0.0.0:1985
log level:4
log body:2023/02/06 19:56:31 [error] 8265#8265: *216 stream [lua] content_by_lua(nginx.conf:78):11: --> 100, client: 127.0.0.1, server: 0.0.0.0:1985
'
doesn't match '(?^s:\A(?:log lines: #33
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*content_by_lua\(nginx.conf:\d+\):\d+: --> 84, client: 127.0.0.1, server: 0.0.0.0:\d+
log level:5
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*content_by_lua\(nginx.conf:\d+\):\d+: --> 85, client: 127.0.0.1, server: 0.0.0.0:\d+
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*content_by_lua\(nginx.conf:\d+\):\d+: --> 85, client: 127.0.0.1, server: 0.0.0.0:\d+
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*content_by_lua\(nginx.conf:\d+\):\d+: --> 99, client: 127.0.0.1, server: 0.0.0.0:\d+
log level:5
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*content_by_lua\(nginx.conf:\d+\):\d+: --> 100, client: 127.0.0.1, server: 0.0.0.0:\d+
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*content_by_lua\(nginx.conf:\d+\):\d+: --> 100, client: 127.0.0.1, server: 0.0.0.0:\d+
)\z)'
stream/errlog.t TEST 13: filter log by level(ngx.CRIT) - response_body - response is expected (repeated req 0, req 0) got: 'log lines:1
'
expected: 'log lines:0
'
stream/errlog.t TEST 12: filter log by level(ngx.WARN) - response_body - response is expected (repeated req 0, req 0) got: 'log lines:3
'
expected: 'log lines:2
'
stream/errlog.t nginx: [emerg] invalid capture error log size "3k", minimum size is 4096 in /home/ec2-user/git/lua-resty-core/t/servroot/conf/nginx.conf:17
stream/errlog.t TEST 17: flood the capturing buffer (4k) - response_body_like - response is expected (log lines: \#25 log level:4 log body:2023/02/06 19:56:43 [error] 8705\#8705: *123 stream [lua] content_by_lua(nginx.conf:78):11: --> 88, client: 127.0.0.1, server: 0.0.0.0:1985 log level:5 log body:2023/02/06 19:56:43 [warn] 8705\#8705: *123 stream [lua] content_by_lua(nginx.conf:78):10: --> 89, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2023/02/06 19:56:43 [error] 8705\#8705: *123 stream [lua] content_by_lua(nginx.conf:78):11: --> 89, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2023/02/06 19:56:43 [error] 8705\#8705: *123 stream [lua] content_by_lua(nginx.conf:78):11: --> 99, client: 127.0.0.1, server: 0.0.0.0:1985 log level:5 log body:2023/02/06 19:56:43 [warn] 8705\#8705: *123 stream [lua] content_by_lua(nginx.conf:78):10: --> 100, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2023/02/06 19:56:43 [error] 8705\#8705: *123 stream [lua] content_by_lua(nginx.conf:78):11: --> 100, client: 127.0.0.1, server: 0.0.0.0:1985) 'log lines: #25
log level:4
log body:2023/02/06 19:56:43 [error] 8705#8705: *123 stream [lua] content_by_lua(nginx.conf:78):11: --> 88, client: 127.0.0.1, server: 0.0.0.0:1985
log level:5
log body:2023/02/06 19:56:43 [warn] 8705#8705: *123 stream [lua] content_by_lua(nginx.conf:78):10: --> 89, client: 127.0.0.1, server: 0.0.0.0:1985
log level:4
log body:2023/02/06 19:56:43 [error] 8705#8705: *123 stream [lua] content_by_lua(nginx.conf:78):11: --> 89, client: 127.0.0.1, server: 0.0.0.0:1985
log level:4
log body:2023/02/06 19:56:43 [error] 8705#8705: *123 stream [lua] content_by_lua(nginx.conf:78):11: --> 99, client: 127.0.0.1, server: 0.0.0.0:1985
log level:5
log body:2023/02/06 19:56:43 [warn] 8705#8705: *123 stream [lua] content_by_lua(nginx.conf:78):10: --> 100, client: 127.0.0.1, server: 0.0.0.0:1985
log level:4
log body:2023/02/06 19:56:43 [error] 8705#8705: *123 stream [lua] content_by_lua(nginx.conf:78):11: --> 100, client: 127.0.0.1, server: 0.0.0.0:1985
'
doesn't match '(?^s:\A(?:log lines: #26
log level:5
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*content_by_lua\(nginx.conf:\d+\):\d+: --> 88, client: 127.0.0.1, server: 0.0.0.0:\d+
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*content_by_lua\(nginx.conf:\d+\):\d+: --> 88, client: 127.0.0.1, server: 0.0.0.0:\d+
log level:5
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*content_by_lua\(nginx.conf:\d+\):\d+: --> 89, client: 127.0.0.1, server: 0.0.0.0:\d+
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*content_by_lua\(nginx.conf:\d+\):\d+: --> 99, client: 127.0.0.1, server: 0.0.0.0:\d+
log level:5
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*content_by_lua\(nginx.conf:\d+\):\d+: --> 100, client: 127.0.0.1, server: 0.0.0.0:\d+
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*content_by_lua\(nginx.conf:\d+\):\d+: --> 100, client: 127.0.0.1, server: 0.0.0.0:\d+
)\z)'
stream/errlog.t TEST 17: flood the capturing buffer (4k) - response_body_like - response is expected (log lines: \#25 log level:4 log body:2023/02/06 19:56:44 [error] 8705\#8705: *126 stream [lua] content_by_lua(nginx.conf:78):11: --> 88, client: 127.0.0.1, server: 0.0.0.0:1985 log level:5 log body:2023/02/06 19:56:44 [warn] 8705\#8705: *126 stream [lua] content_by_lua(nginx.conf:78):10: --> 89, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2023/02/06 19:56:44 [error] 8705\#8705: *126 stream [lua] content_by_lua(nginx.conf:78):11: --> 89, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2023/02/06 19:56:44 [error] 8705\#8705: *126 stream [lua] content_by_lua(nginx.conf:78):11: --> 99, client: 127.0.0.1, server: 0.0.0.0:1985 log level:5 log body:2023/02/06 19:56:44 [warn] 8705\#8705: *126 stream [lua] content_by_lua(nginx.conf:78):10: --> 100, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2023/02/06 19:56:44 [error] 8705\#8705: *126 stream [lua] content_by_lua(nginx.conf:78):11: --> 100, client: 127.0.0.1, server: 0.0.0.0:1985) 'log lines: #25
log level:4
log body:2023/02/06 19:56:44 [error] 8705#8705: *126 stream [lua] content_by_lua(nginx.conf:78):11: --> 88, client: 127.0.0.1, server: 0.0.0.0:1985
log level:5
log body:2023/02/06 19:56:44 [warn] 8705#8705: *126 stream [lua] content_by_lua(nginx.conf:78):10: --> 89, client: 127.0.0.1, server: 0.0.0.0:1985
log level:4
log body:2023/02/06 19:56:44 [error] 8705#8705: *126 stream [lua] content_by_lua(nginx.conf:78):11: --> 89, client: 127.0.0.1, server: 0.0.0.0:1985
log level:4
log body:2023/02/06 19:56:44 [error] 8705#8705: *126 stream [lua] content_by_lua(nginx.conf:78):11: --> 99, client: 127.0.0.1, server: 0.0.0.0:1985
log level:5
log body:2023/02/06 19:56:44 [warn] 8705#8705: *126 stream [lua] content_by_lua(nginx.conf:78):10: --> 100, client: 127.0.0.1, server: 0.0.0.0:1985
log level:4
log body:2023/02/06 19:56:44 [error] 8705#8705: *126 stream [lua] content_by_lua(nginx.conf:78):11: --> 100, client: 127.0.0.1, server: 0.0.0.0:1985
'
doesn't match '(?^s:\A(?:log lines: #26
log level:5
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*content_by_lua\(nginx.conf:\d+\):\d+: --> 88, client: 127.0.0.1, server: 0.0.0.0:\d+
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*content_by_lua\(nginx.conf:\d+\):\d+: --> 88, client: 127.0.0.1, server: 0.0.0.0:\d+
log level:5
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*content_by_lua\(nginx.conf:\d+\):\d+: --> 89, client: 127.0.0.1, server: 0.0.0.0:\d+
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*content_by_lua\(nginx.conf:\d+\):\d+: --> 99, client: 127.0.0.1, server: 0.0.0.0:\d+
log level:5
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*content_by_lua\(nginx.conf:\d+\):\d+: --> 100, client: 127.0.0.1, server: 0.0.0.0:\d+
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*content_by_lua\(nginx.conf:\d+\):\d+: --> 100, client: 127.0.0.1, server: 0.0.0.0:\d+
)\z)'
stream/errlog.t TEST 21: multi-line error log - response_body_like - response is expected (log lines: \#2 log level:6 log body:2023/02/06 19:56:45 [notice] 8575\#8575: start worker processes log level:4 log body:2023/02/06 19:56:46 [error] 8815\#8815: *213 stream [lua] content_by_lua(nginx.conf:67):8: --> new line, client: 127.0.0.1, server: 0.0.0.0:1985) 'log lines: #2
log level:6
log body:2023/02/06 19:56:45 [notice] 8575#8575: start worker processes
log level:4
log body:2023/02/06 19:56:46 [error] 8815#8815: *213 stream [lua] content_by_lua(nginx.conf:67):8: -->
new line, client: 127.0.0.1, server: 0.0.0.0:1985
'
doesn't match '(?^s:\Alog lines: #1
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*content_by_lua\(nginx.conf:\d+\):\d+: -->
new line, client: 127.0.0.1, server: 0.0.0.0:\d+
\z)'
stream/errlog.t TEST 22: user-supplied Lua table to hold the result (get one log + no log) - response_body_like - response is expected (maybe log lines: \#2 log level:6 log body:2023/02/06 19:56:46 [notice] 8575\#8575: start worker processes log level:4 log body:2023/02/06 19:56:47 [error] 8852\#8852: *243 stream [lua] content_by_lua(nginx.conf:75):8: --> new line, client: 127.0.0.1, server: 0.0.0.0:1985 end maybe log lines: \#2 end) 'maybe log lines: #2
log level:6
log body:2023/02/06 19:56:46 [notice] 8575#8575: start worker processes
log level:4
log body:2023/02/06 19:56:47 [error] 8852#8852: *243 stream [lua] content_by_lua(nginx.conf:75):8: -->
new line, client: 127.0.0.1, server: 0.0.0.0:1985
end
maybe log lines: #2
end
'
doesn't match '(?^s:\Amaybe log lines: #1
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*content_by_lua\(nginx.conf:\d+\):\d+: -->
new line, client: 127.0.0.1, server: 0.0.0.0:\d+
end
maybe log lines: #1
end
\z)'
stream/errlog.t nginx: [emerg] invalid number of arguments in "lua_capture_error_log" directive in /home/ec2-user/git/lua-resty-core/t/servroot/conf/nginx.conf:17
stream/process-type-hup.t TEST 1: sanity - pattern "init_worker_by_lua:6: process type: privileged" should match a line in error.log (req 0) Looks like you failed 1 test of 8.
stream/process-type-single.t TEST 1: sanity - response_body - response is expected (repeated req 0, req 0) got: "process type: worker\x{0a}"
length: 21
expected: "process type: single\x{0a}"
length: 21
strings begin to differ at char 15 (line 1 column 15)
stream/process-type-single.t TEST 1: sanity - grep_error_log_out (req 0) '[TRACE 1 init_by_lua:31 loop]
[TRACE 2 init_worker_by_lua:4 loop]
[TRACE 2 content_by_lua(nginx.conf:78):4 loop]
process type in init_by_lua*: master
init_worker_by_lua:10: process type: worker
'
doesn't match '(?^:\[TRACE\s+\d+ init_by_lua:\d+ loop\]
\[TRACE\s+\d+ init_worker_by_lua:\d+ loop\]
\[TRACE\s+\d+ content_by_lua\(nginx.conf:\d+\):4 loop\]
process type in init_by_lua\*: single
init_worker_by_lua:10: process type: single
)'
stream/process-type-single.t TEST 1: sanity - response_body - response is expected (repeated req 1, req 0) got: "process type: worker\x{0a}"
length: 21
expected: "process type: single\x{0a}"
length: 21
strings begin to differ at char 15 (line 1 column 15)
stream/process-type-single.t TEST 1: sanity - grep_error_log_out (req 1) '[TRACE 1 init_by_lua:31 loop]
[TRACE 2 init_worker_by_lua:4 loop]
[TRACE 2 content_by_lua(nginx.conf:78):4 loop]
process type in init_by_lua*: master
init_worker_by_lua:10: process type: worker
'
doesn't match '(?^:\[TRACE\s+\d+ init_by_lua:\d+ loop\]
\[TRACE\s+\d+ init_worker_by_lua:\d+ loop\]
\[TRACE\s+\d+ content_by_lua\(nginx.conf:\d+\):4 loop\]
process type in init_by_lua\*: single
init_worker_by_lua:10: process type: single
)'
stream/request.t TEST 1: ngx.req.start_time() - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +1,3 @@
true
>= 0.099: true
-< 0.11: true
+< 0.11: false
'
Looks like you failed 1 test of 12.
stream/semaphore.t TEST 17: kill a light thread that is waiting on a semaphore (after post) - pattern "[error]" should not match any line in error.log but matches line "2023/02/06 19:59:58 [error] 14025\#14025: *741 stream [lua] init_worker_by_lua:14: sem: timeout, context: ngx.timer" (req 0) 2023/02/06 19:59:58 [debug] 14025\#14025: stream lua semaphore wait: 000000000A233298, timeout: 1000, resources: 0, event posted: 0
2023/02/06 19:59:58 [debug] 14025\#14025: *741 event timer add: 0: 1000:40987766
2023/02/06 19:59:58 [debug] 14025\#14025: stream lua semaphore wait yielding
2023/02/06 19:59:58 [debug] 14025\#14025: *741 lua resume returned 1
2023/02/06 19:59:58 [debug] 14025\#14025: *741 lua thread yielded
2023/02/06 19:59:58 [debug] 14025\#14025: *741 lua run thread returned -2
2023/02/06 19:59:58 [debug] 14025\#14025: worker cycle
'
stream/semaphore.t TEST 18: kill a thread that is waiting on another thread that is waiting on semaphore - pattern "[error]" should not match any line in error.log but matches line "2023/02/06 19:59:59 [error] 14025\#14025: *741 stream [lua] init_worker_by_lua:14: sem: timeout, context: ngx.timer" (req 1) 2023/02/06 19:59:59 [debug] 14025\#14025: stream lua semaphore wait: 000000000A233298, timeout: 1000, resources: 0, event posted: 0
2023/02/06 19:59:59 [debug] 14025\#14025: *741 event timer add: 0: 1000:40988766
2023/02/06 19:59:59 [debug] 14025\#14025: stream lua semaphore wait yielding
2023/02/06 19:59:59 [debug] 14025\#14025: *741 lua resume returned 1
2023/02/06 19:59:59 [debug] 14025\#14025: *741 lua thread yielded
2023/02/06 19:59:59 [debug] 14025\#14025: *741 lua run thread returned -2
2023/02/06 19:59:59 [debug] 14025\#14025: worker cycle
2023/02/06 19:59:59 [debug] 14025\#14025: epoll timer: 1000
2023/02/06 19:59:59 [debug] 14097\#14097: timer delta: 91
'
stream/semaphore.t TEST 21: multi wait and mult post with one semaphore - pattern "[error]" should not match any line in error.log but matches line "2023/02/06 20:00:00 [error] 14025\#14025: *741 stream [lua] init_worker_by_lua:14: sem: timeout, context: ngx.timer" (req 0) 2023/02/06 20:00:00 [error] 14025\#14025: *741 stream [lua] init_worker_by_lua:18: sem: 3 times, context: ngx.timer
2023/02/06 20:00:00 [debug] 14025\#14025: stream lua semaphore wait: 000000000A233298, timeout: 1000, resources: 0, event posted: 0
2023/02/06 20:00:00 [debug] 14025\#14025: *741 event timer add: 0: 1000:40989767
2023/02/06 20:00:00 [debug] 14025\#14025: stream lua semaphore wait yielding
2023/02/06 20:00:00 [debug] 14025\#14025: *741 lua resume returned 1
2023/02/06 20:00:00 [debug] 14025\#14025: *741 lua thread yielded
2023/02/06 20:00:00 [debug] 14025\#14025: *741 lua run thread returned -2
2023/02/06 20:00:00 [debug] 14025\#14025: worker cycle
2023/02/06 20:00:00 [debug] 14025\#14025: epoll timer: 1000
'
stream/semaphore.t TEST 21: multi wait and mult post with one semaphore - pattern "[error]" should not match any line in error.log but matches line "2023/02/06 20:00:00 [error] 14025\#14025: *741 stream [lua] init_worker_by_lua:18: sem: 3 times, context: ngx.timer" (req 0) 2023/02/06 20:00:00 [debug] 14025\#14025: stream lua semaphore wait: 000000000A233298, timeout: 1000, resources: 0, event posted: 0
2023/02/06 20:00:00 [debug] 14025\#14025: *741 event timer add: 0: 1000:40989767
2023/02/06 20:00:00 [debug] 14025\#14025: stream lua semaphore wait yielding
2023/02/06 20:00:00 [debug] 14025\#14025: *741 lua resume returned 1
2023/02/06 20:00:00 [debug] 14025\#14025: *741 lua thread yielded
2023/02/06 20:00:00 [debug] 14025\#14025: *741 lua run thread returned -2
2023/02/06 20:00:00 [debug] 14025\#14025: worker cycle
2023/02/06 20:00:00 [debug] 14025\#14025: epoll timer: 1000
2023/02/06 20:00:00 [debug] 14133\#14133: epoll: fd:7 ev:0001 d:000000000A425E10
'
stream/time.t TEST 1: ngx.now() - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +1,3 @@
true
>= 0.099: true
-< 0.11: true
+< 0.11: false
'
time.t TEST 1: ngx.now() - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +1,3 @@
true
>= 0.099: true
-< 0.11: true
+< 0.11: false
'

Warnings

Go back to the index page.