(This page was automatically generated by the tools in the opsboy project on 04:52:02 11-Oct-2024 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
0173d96c 2023-02-08 04:20:15 GMT 0 87 88 12114 1303 sec

LuaJIT

LuaJIT 2.1.0-beta3, commit 2cf51864

OpenSSL

OpenSSL 1.1.1s 1 Nov 2022

Compilation Errors

Segmentation Faults

Unexpected Failures

(none)

Expected Failures

File Name Details
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/08 06:40:14 [notice] 6848\#6848: start worker processes log level:7 log body:2023/02/08 06:40:14 [info] 7046\#7046: *138 client 127.0.0.1 closed keepalive connection log level:7 log body:2023/02/08 06:40:14 [info] 7046\#7046: *139 client 127.0.0.1 closed keepalive connection log level:7 log body:2023/02/08 06:40:14 [info] 7046\#7046: *140 client 127.0.0.1 closed keepalive connection log level:7 log body:2023/02/08 06:40:14 [info] 7046\#7046: *141 client 127.0.0.1 closed keepalive connection log level:7 log body:2023/02/08 06:40:14 [info] 7046\#7046: *142 client 127.0.0.1 closed keepalive connection log level:7 log body:2023/02/08 06:40:14 [info] 7046\#7046: *143 client 127.0.0.1 closed keepalive connection log level:7 log body:2023/02/08 06:40:14 [info] 7046\#7046: *144 client 127.0.0.1 closed keepalive connection log level:7 log body:2023/02/08 06:40:14 [info] 7046\#7046: *145 client 127.0.0.1 closed keepalive connection log level:7 log body:2023/02/08 06:40:14 [info] 7046\#7046: *146 client 127.0.0.1 closed keepalive connection end maybe log lines: \#10 log level:7 log body:2023/02/08 06:40:14 [info] 7046\#7046: *147 client 127.0.0.1 closed keepalive connection log level:7 log body:2023/02/08 06:40:14 [info] 7046\#7046: *148 client 127.0.0.1 closed keepalive connection log level:7 log body:2023/02/08 06:40:14 [info] 7046\#7046: *149 client 127.0.0.1 closed keepalive connection log level:7 log body:2023/02/08 06:40:14 [info] 7046\#7046: *150 client 127.0.0.1 closed keepalive connection log level:7 log body:2023/02/08 06:40:14 [info] 7046\#7046: *151 client 127.0.0.1 closed keepalive connection log level:7 log body:2023/02/08 06:40:14 [info] 7046\#7046: *152 client 127.0.0.1 closed keepalive connection log level:7 log body:2023/02/08 06:40:14 [info] 7046\#7046: *153 client 127.0.0.1 closed keepalive connection log level:7 log body:2023/02/08 06:40:14 [info] 7046\#7046: *154 client 127.0.0.1 closed keepalive connection log level:7 log body:2023/02/08 06:40:15 [info] 7046\#7046: *155 client 127.0.0.1 closed keepalive connection log level:7 log body:2023/02/08 06:40:15 [info] 7046\#7046: *156 client 127.0.0.1 closed keepalive connection end) 'maybe log lines: #10
log level:6
log body:2023/02/08 06:40:14 [notice] 6848#6848: start worker processes
log level:7
log body:2023/02/08 06:40:14 [info] 7046#7046: *138 client 127.0.0.1 closed keepalive connection
log level:7
log body:2023/02/08 06:40:14 [info] 7046#7046: *139 client 127.0.0.1 closed keepalive connection
log level:7
log body:2023/02/08 06:40:14 [info] 7046#7046: *140 client 127.0.0.1 closed keepalive connection
log level:7
log body:2023/02/08 06:40:14 [info] 7046#7046: *141 client 127.0.0.1 closed keepalive connection
log level:7
log body:2023/02/08 06:40:14 [info] 7046#7046: *142 client 127.0.0.1 closed keepalive connection
log level:7
log body:2023/02/08 06:40:14 [info] 7046#7046: *143 client 127.0.0.1 closed keepalive connection
log level:7
log body:2023/02/08 06:40:14 [info] 7046#7046: *144 client 127.0.0.1 closed keepalive connection
log level:7
log body:2023/02/08 06:40:14 [info] 7046#7046: *145 client 127.0.0.1 closed keepalive connection
log level:7
log body:2023/02/08 06:40:14 [info] 7046#7046: *146 client 127.0.0.1 closed keepalive connection
end
maybe log lines: #10
log level:7
log body:2023/02/08 06:40:14 [info] 7046#7046: *147 client 127.0.0.1 closed keepalive connection
log level:7
log body:2023/02/08 06:40:14 [info] 7046#7046: *148 client 127.0.0.1 closed keepalive connection
log level:7
log body:2023/02/08 06:40:14 [info] 7046#7046: *149 client 127.0.0.1 closed keepalive connection
log level:7
log body:2023/02/08 06:40:14 [info] 7046#7046: *150 client 127.0.0.1 closed keepalive connection
log level:7
log body:2023/02/08 06:40:14 [info] 7046#7046: *151 client 127.0.0.1 closed keepalive connection
log level:7
log body:2023/02/08 06:40:14 [info] 7046#7046: *152 client 127.0.0.1 closed keepalive connection
log level:7
log body:2023/02/08 06:40:14 [info] 7046#7046: *153 client 127.0.0.1 closed keepalive connection
log level:7
log body:2023/02/08 06:40:14 [info] 7046#7046: *154 client 127.0.0.1 closed keepalive connection
log level:7
log body:2023/02/08 06:40:15 [info] 7046#7046: *155 client 127.0.0.1 closed keepalive connection
log level:7
log body:2023/02/08 06:40:15 [info] 7046#7046: *156 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/08 06:40:15 [info] 7046\#7046: *157 client 127.0.0.1 closed keepalive connection log level:4 log body:2023/02/08 06:40:15 [error] 7046\#7046: *158 [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/08 06:40:15 [error] 7046\#7046: *159 [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/08 06:40:15 [info] 7046#7046: *157 client 127.0.0.1 closed keepalive connection
log level:4
log body:2023/02/08 06:40:15 [error] 7046#7046: *158 [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/08 06:40:15 [error] 7046#7046: *159 [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 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 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
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/08 06:40:21 [warn] 7276\#7276: *105 [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/08 06:40:21 [warn] 7276\#7276: *106 [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 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 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: \#10
'
errlog.t TEST 29: ringbuf overflow bug - response_body_like - response is expected (log level: 4 log time: 1675838424.343 log body: 2023/02/08 06:40:24 [error] 7384\#7384: *183 [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: 1675838424.343 log body: 2023/02/08 06:40:24 [error] 7384\#7384: *183 [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: 1675838424.343 log body: 2023/02/08 06:40:24 [error] 7384\#7384: *183 [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: 1675838424.343 log body: 2023/02/08 06:40:24 [error] 7384\#7384: *183 [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: 1675838424.343 log body: 2023/02/08 06:40:24 [error] 7384\#7384: *183 [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: 1675838424.343 log body: 2023/02/08 06:40:24 [error] 7384\#7384: *183 [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: 1675838424.343 log body: 2023/02/08 06:40:24 [error] 7384\#7384: *183 [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: 1675838424.343 log body: 2023/02/08 06:40:24 [error] 7384\#7384: *183 [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: 1675838424.343 log body: 2023/02/08 06:40:24 [error] 7384\#7384: *183 [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: 1675838424.343 log body: 2023/02/08 06:40:24 [error] 7384\#7384: *183 [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: 1675838424.343
log body: 2023/02/08 06:40:24 [error] 7384#7384: *183 [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: 1675838424.343
log body: 2023/02/08 06:40:24 [error] 7384#7384: *183 [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: 1675838424.343
log body: 2023/02/08 06:40:24 [error] 7384#7384: *183 [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: 1675838424.343
log body: 2023/02/08 06:40:24 [error] 7384#7384: *183 [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: 1675838424.343
log body: 2023/02/08 06:40:24 [error] 7384#7384: *183 [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: 1675838424.343
log body: 2023/02/08 06:40:24 [error] 7384#7384: *183 [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: 1675838424.343
log body: 2023/02/08 06:40:24 [error] 7384#7384: *183 [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: 1675838424.343
log body: 2023/02/08 06:40:24 [error] 7384#7384: *183 [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: 1675838424.343
log body: 2023/02/08 06:40:24 [error] 7384#7384: *183 [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: 1675838424.343
log body: 2023/02/08 06:40:24 [error] 7384#7384: *183 [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: 1675838424.745 log body: 2023/02/08 06:40:24 [error] 7384\#7384: *184 [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: 1675838424.745 log body: 2023/02/08 06:40:24 [error] 7384\#7384: *184 [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: 1675838424.745 log body: 2023/02/08 06:40:24 [error] 7384\#7384: *184 [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: 1675838424.745 log body: 2023/02/08 06:40:24 [error] 7384\#7384: *184 [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: 1675838424.745 log body: 2023/02/08 06:40:24 [error] 7384\#7384: *184 [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: 1675838424.745 log body: 2023/02/08 06:40:24 [error] 7384\#7384: *184 [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: 1675838424.745 log body: 2023/02/08 06:40:24 [error] 7384\#7384: *184 [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: 1675838424.745 log body: 2023/02/08 06:40:24 [error] 7384\#7384: *184 [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: 1675838424.745 log body: 2023/02/08 06:40:24 [error] 7384\#7384: *184 [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: 1675838424.745 log body: 2023/02/08 06:40:24 [error] 7384\#7384: *184 [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: 1675838424.745
log body: 2023/02/08 06:40:24 [error] 7384#7384: *184 [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: 1675838424.745
log body: 2023/02/08 06:40:24 [error] 7384#7384: *184 [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: 1675838424.745
log body: 2023/02/08 06:40:24 [error] 7384#7384: *184 [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: 1675838424.745
log body: 2023/02/08 06:40:24 [error] 7384#7384: *184 [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: 1675838424.745
log body: 2023/02/08 06:40:24 [error] 7384#7384: *184 [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: 1675838424.745
log body: 2023/02/08 06:40:24 [error] 7384#7384: *184 [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: 1675838424.745
log body: 2023/02/08 06:40:24 [error] 7384#7384: *184 [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: 1675838424.745
log body: 2023/02/08 06:40:24 [error] 7384#7384: *184 [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: 1675838424.745
log body: 2023/02/08 06:40:24 [error] 7384#7384: *184 [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: 1675838424.745
log body: 2023/02/08 06:40:24 [error] 7384#7384: *184 [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 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/08 06:40:27 [warn] 7522\#7522: *287 [lua] access_by_lua(nginx.conf:58):10: --> 88, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level:4 log body:2023/02/08 06:40:27 [error] 7522\#7522: *287 [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/08 06:40:27 [warn] 7522\#7522: *287 [lua] access_by_lua(nginx.conf:58):10: --> 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/08 06:40:27 [error] 7522\#7522: *287 [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/08 06:40:27 [warn] 7522\#7522: *287 [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/08 06:40:27 [error] 7522\#7522: *287 [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/08 06:40:27 [error] 7522\#7522: *287 [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/08 06:40:27 [error] 7522\#7522: *287 [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/08 06:40:27 [error] 7522\#7522: *287 [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:5
log body:2023/02/08 06:40:27 [warn] 7522#7522: *287 [lua] access_by_lua(nginx.conf:58):10: --> 88, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level:4
log body:2023/02/08 06:40:27 [error] 7522#7522: *287 [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/08 06:40:27 [warn] 7522#7522: *287 [lua] access_by_lua(nginx.conf:58):10: --> 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/08 06:40:27 [error] 7522#7522: *287 [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/08 06:40:27 [warn] 7522#7522: *287 [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/08 06:40:27 [error] 7522#7522: *287 [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/08 06:40:27 [error] 7522#7522: *287 [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/08 06:40:27 [error] 7522#7522: *287 [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/08 06:40:27 [error] 7522#7522: *287 [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 13: filter log by level(ngx.CRIT) - response_body - response is expected (repeated req 0, req 0) got: 'log lines:10
'
expected: 'log lines:0
'
errlog.t TEST 13: filter log by level(ngx.CRIT) - response_body - response is expected (repeated req 1, req 0) got: 'log lines:10
'
expected: 'log lines:0
'
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 21: multi-line error log - response_body_like - response is expected (log lines: \#10 log level:6 log body:2023/02/08 06:40:31 [notice] 7152\#7152: start worker processes log level:7 log body:2023/02/08 06:40:31 [info] 7696\#7696: *397 client 127.0.0.1 closed keepalive connection log level:7 log body:2023/02/08 06:40:31 [info] 7696\#7696: *398 client 127.0.0.1 closed keepalive connection log level:7 log body:2023/02/08 06:40:31 [info] 7696\#7696: *399 client 127.0.0.1 closed keepalive connection log level:7 log body:2023/02/08 06:40:31 [info] 7696\#7696: *400 client 127.0.0.1 closed keepalive connection log level:7 log body:2023/02/08 06:40:31 [info] 7696\#7696: *401 client 127.0.0.1 closed keepalive connection log level:7 log body:2023/02/08 06:40:31 [info] 7696\#7696: *402 client 127.0.0.1 closed keepalive connection log level:7 log body:2023/02/08 06:40:31 [info] 7696\#7696: *403 client 127.0.0.1 closed keepalive connection log level:7 log body:2023/02/08 06:40:31 [info] 7696\#7696: *404 client 127.0.0.1 closed keepalive connection log level:7 log body:2023/02/08 06:40:31 [info] 7696\#7696: *405 client 127.0.0.1 closed keepalive connection) 'log lines: #10
log level:6
log body:2023/02/08 06:40:31 [notice] 7152#7152: start worker processes
log level:7
log body:2023/02/08 06:40:31 [info] 7696#7696: *397 client 127.0.0.1 closed keepalive connection
log level:7
log body:2023/02/08 06:40:31 [info] 7696#7696: *398 client 127.0.0.1 closed keepalive connection
log level:7
log body:2023/02/08 06:40:31 [info] 7696#7696: *399 client 127.0.0.1 closed keepalive connection
log level:7
log body:2023/02/08 06:40:31 [info] 7696#7696: *400 client 127.0.0.1 closed keepalive connection
log level:7
log body:2023/02/08 06:40:31 [info] 7696#7696: *401 client 127.0.0.1 closed keepalive connection
log level:7
log body:2023/02/08 06:40:31 [info] 7696#7696: *402 client 127.0.0.1 closed keepalive connection
log level:7
log body:2023/02/08 06:40:31 [info] 7696#7696: *403 client 127.0.0.1 closed keepalive connection
log level:7
log body:2023/02/08 06:40:31 [info] 7696#7696: *404 client 127.0.0.1 closed keepalive connection
log level:7
log body:2023/02/08 06:40:31 [info] 7696#7696: *405 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/08 06:40:31 [info] 7696\#7696: *406 client 127.0.0.1 closed keepalive connection log level:7 log body:2023/02/08 06:40:31 [info] 7696\#7696: *407 client 127.0.0.1 closed keepalive connection log level:7 log body:2023/02/08 06:40:31 [info] 7696\#7696: *408 client 127.0.0.1 closed keepalive connection log level:7 log body:2023/02/08 06:40:31 [info] 7696\#7696: *409 client 127.0.0.1 closed keepalive connection log level:7 log body:2023/02/08 06:40:31 [info] 7696\#7696: *410 client 127.0.0.1 closed keepalive connection log level:7 log body:2023/02/08 06:40:31 [info] 7696\#7696: *411 client 127.0.0.1 closed keepalive connection log level:7 log body:2023/02/08 06:40:31 [info] 7696\#7696: *412 client 127.0.0.1 closed keepalive connection log level:7 log body:2023/02/08 06:40:31 [info] 7696\#7696: *413 client 127.0.0.1 closed keepalive connection log level:7 log body:2023/02/08 06:40:31 [info] 7696\#7696: *414 client 127.0.0.1 closed keepalive connection log level:7 log body:2023/02/08 06:40:31 [info] 7696\#7696: *415 client 127.0.0.1 closed keepalive connection) 'log lines: #10
log level:7
log body:2023/02/08 06:40:31 [info] 7696#7696: *406 client 127.0.0.1 closed keepalive connection
log level:7
log body:2023/02/08 06:40:31 [info] 7696#7696: *407 client 127.0.0.1 closed keepalive connection
log level:7
log body:2023/02/08 06:40:31 [info] 7696#7696: *408 client 127.0.0.1 closed keepalive connection
log level:7
log body:2023/02/08 06:40:31 [info] 7696#7696: *409 client 127.0.0.1 closed keepalive connection
log level:7
log body:2023/02/08 06:40:31 [info] 7696#7696: *410 client 127.0.0.1 closed keepalive connection
log level:7
log body:2023/02/08 06:40:31 [info] 7696#7696: *411 client 127.0.0.1 closed keepalive connection
log level:7
log body:2023/02/08 06:40:31 [info] 7696#7696: *412 client 127.0.0.1 closed keepalive connection
log level:7
log body:2023/02/08 06:40:31 [info] 7696#7696: *413 client 127.0.0.1 closed keepalive connection
log level:7
log body:2023/02/08 06:40:31 [info] 7696#7696: *414 client 127.0.0.1 closed keepalive connection
log level:7
log body:2023/02/08 06:40:31 [info] 7696#7696: *415 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 16: check the captured error log body - response_body_like - response is expected (log level:6 log body:2023/02/08 06:40:32 [notice] 7152\#7152: start worker processes log level:7 log body:2023/02/08 06:40:33 [info] 7762\#7762: *449 client 127.0.0.1 closed keepalive connection log level:7 log body:2023/02/08 06:40:33 [info] 7762\#7762: *450 client 127.0.0.1 closed keepalive connection log level:7 log body:2023/02/08 06:40:33 [info] 7762\#7762: *451 client 127.0.0.1 closed keepalive connection log level:7 log body:2023/02/08 06:40:33 [info] 7762\#7762: *452 client 127.0.0.1 closed keepalive connection log level:7 log body:2023/02/08 06:40:33 [info] 7762\#7762: *453 client 127.0.0.1 closed keepalive connection log level:7 log body:2023/02/08 06:40:33 [info] 7762\#7762: *454 client 127.0.0.1 closed keepalive connection log level:7 log body:2023/02/08 06:40:33 [info] 7762\#7762: *455 client 127.0.0.1 closed keepalive connection log level:7 log body:2023/02/08 06:40:33 [info] 7762\#7762: *456 client 127.0.0.1 closed keepalive connection log level:7 log body:2023/02/08 06:40:33 [info] 7762\#7762: *457 client 127.0.0.1 closed keepalive connection) 'log level:6
log body:2023/02/08 06:40:32 [notice] 7152#7152: start worker processes
log level:7
log body:2023/02/08 06:40:33 [info] 7762#7762: *449 client 127.0.0.1 closed keepalive connection
log level:7
log body:2023/02/08 06:40:33 [info] 7762#7762: *450 client 127.0.0.1 closed keepalive connection
log level:7
log body:2023/02/08 06:40:33 [info] 7762#7762: *451 client 127.0.0.1 closed keepalive connection
log level:7
log body:2023/02/08 06:40:33 [info] 7762#7762: *452 client 127.0.0.1 closed keepalive connection
log level:7
log body:2023/02/08 06:40:33 [info] 7762#7762: *453 client 127.0.0.1 closed keepalive connection
log level:7
log body:2023/02/08 06:40:33 [info] 7762#7762: *454 client 127.0.0.1 closed keepalive connection
log level:7
log body:2023/02/08 06:40:33 [info] 7762#7762: *455 client 127.0.0.1 closed keepalive connection
log level:7
log body:2023/02/08 06:40:33 [info] 7762#7762: *456 client 127.0.0.1 closed keepalive connection
log level:7
log body:2023/02/08 06:40:33 [info] 7762#7762: *457 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/08 06:40:33 [info] 7762\#7762: *458 client 127.0.0.1 closed keepalive connection log level:7 log body:2023/02/08 06:40:33 [info] 7762\#7762: *459 client 127.0.0.1 closed keepalive connection log level:7 log body:2023/02/08 06:40:33 [info] 7762\#7762: *460 client 127.0.0.1 closed keepalive connection log level:7 log body:2023/02/08 06:40:33 [info] 7762\#7762: *461 client 127.0.0.1 closed keepalive connection log level:7 log body:2023/02/08 06:40:33 [info] 7762\#7762: *462 client 127.0.0.1 closed keepalive connection log level:7 log body:2023/02/08 06:40:33 [info] 7762\#7762: *463 client 127.0.0.1 closed keepalive connection log level:7 log body:2023/02/08 06:40:33 [info] 7762\#7762: *464 client 127.0.0.1 closed keepalive connection log level:7 log body:2023/02/08 06:40:33 [info] 7762\#7762: *465 client 127.0.0.1 closed keepalive connection log level:7 log body:2023/02/08 06:40:33 [info] 7762\#7762: *466 client 127.0.0.1 closed keepalive connection log level:7 log body:2023/02/08 06:40:33 [info] 7762\#7762: *467 client 127.0.0.1 closed keepalive connection) 'log level:7
log body:2023/02/08 06:40:33 [info] 7762#7762: *458 client 127.0.0.1 closed keepalive connection
log level:7
log body:2023/02/08 06:40:33 [info] 7762#7762: *459 client 127.0.0.1 closed keepalive connection
log level:7
log body:2023/02/08 06:40:33 [info] 7762#7762: *460 client 127.0.0.1 closed keepalive connection
log level:7
log body:2023/02/08 06:40:33 [info] 7762#7762: *461 client 127.0.0.1 closed keepalive connection
log level:7
log body:2023/02/08 06:40:33 [info] 7762#7762: *462 client 127.0.0.1 closed keepalive connection
log level:7
log body:2023/02/08 06:40:33 [info] 7762#7762: *463 client 127.0.0.1 closed keepalive connection
log level:7
log body:2023/02/08 06:40:33 [info] 7762#7762: *464 client 127.0.0.1 closed keepalive connection
log level:7
log body:2023/02/08 06:40:33 [info] 7762#7762: *465 client 127.0.0.1 closed keepalive connection
log level:7
log body:2023/02/08 06:40:33 [info] 7762#7762: *466 client 127.0.0.1 closed keepalive connection
log level:7
log body:2023/02/08 06:40:33 [info] 7762#7762: *467 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 capture error log size "3k", minimum size is 4096 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 4: ngx.req.get_headers (metatable) - pattern "(?^:\[TRACE\s+\d+ .*? -> \d+\])" should match a line in error.log (req 0)
request.t TEST 4: ngx.req.get_headers (metatable) - pattern "(?^:\[TRACE\s+\d+ .*? -> \d+\])" should match a line in error.log (req 1)
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/08 06:49:03 [error] 21965\#21965: *530 [lua] init_worker_by_lua(nginx.conf:26):14: sem: timeout, context: ngx.timer" (req 1) 2023/02/08 06:49:03 [debug] 21965\#21965: http lua semaphore wait: 0000000009DC89B8, timeout: 1000, resources: 0, event posted: 0
2023/02/08 06:49:03 [debug] 21965\#21965: *530 event timer add: 0: 1000:9043258
2023/02/08 06:49:03 [debug] 21965\#21965: http lua semaphore wait yielding
2023/02/08 06:49:03 [debug] 21965\#21965: *530 lua resume returned 1
2023/02/08 06:49:03 [debug] 21965\#21965: *530 lua thread yielded
2023/02/08 06:49:03 [debug] 21965\#21965: *530 lua run thread returned -2
2023/02/08 06:49:03 [debug] 21965\#21965: worker cycle
'
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/08 06:49:04 [error] 21965\#21965: *530 [lua] init_worker_by_lua(nginx.conf:26):14: sem: timeout, context: ngx.timer" (req 0) 2023/02/08 06:49:04 [debug] 21965\#21965: http lua semaphore wait: 0000000009DC89B8, timeout: 1000, resources: 0, event posted: 0
2023/02/08 06:49:04 [debug] 21965\#21965: *530 event timer add: 0: 1000:9044259
2023/02/08 06:49:04 [debug] 21965\#21965: http lua semaphore wait yielding
2023/02/08 06:49:04 [debug] 21965\#21965: *530 lua resume returned 1
2023/02/08 06:49:04 [debug] 21965\#21965: *530 lua thread yielded
2023/02/08 06:49:04 [debug] 21965\#21965: *530 lua run thread returned -2
2023/02/08 06:49:04 [debug] 21965\#21965: worker cycle
2023/02/08 06:49:04 [debug] 21965\#21965: epoll timer: 1000
2023/02/08 06:49:04 [debug] 22073\#22073: epoll add event: fd:6 op:1 ev:00002001
'
semaphore.t TEST 40: bugfix: semaphore instance can't be garbage collected when someone is waiting on it - pattern "[error]" should not match any line in error.log but matches line "2023/02/08 06:49:08 [error] 21965\#21965: *530 [lua] init_worker_by_lua(nginx.conf:26):14: sem: timeout, context: ngx.timer" (req 0) 2023/02/08 06:49:08 [debug] 21965\#21965: http lua semaphore wait: 0000000009DC89B8, timeout: 1000, resources: 0, event posted: 0
2023/02/08 06:49:08 [debug] 21965\#21965: *530 event timer add: 0: 1000:9048260
2023/02/08 06:49:08 [debug] 21965\#21965: http lua semaphore wait yielding
2023/02/08 06:49:08 [debug] 21965\#21965: *530 lua resume returned 1
2023/02/08 06:49:08 [debug] 21965\#21965: *530 lua thread yielded
2023/02/08 06:49:08 [debug] 21965\#21965: *530 lua run thread returned -2
2023/02/08 06:49:08 [debug] 21965\#21965: worker cycle
2023/02/08 06:49:08 [debug] 21965\#21965: epoll timer: 1000
2023/02/08 06:49:08 [debug] 21235\#21235: malloc: 00000000099E4E40:2048
'
semaphore.t TEST 24: semaphore post in timer.at - pattern "[error]" should not match any line in error.log but matches line "2023/02/08 06:49:10 [error] 21965\#21965: *530 [lua] init_worker_by_lua(nginx.conf:26):14: sem: timeout, context: ngx.timer" (req 0) 2023/02/08 06:49:10 [debug] 21965\#21965: http lua semaphore wait: 0000000009DC89B8, timeout: 1000, resources: 0, event posted: 0
2023/02/08 06:49:10 [debug] 21965\#21965: *530 event timer add: 0: 1000:9050261
2023/02/08 06:49:10 [debug] 21965\#21965: http lua semaphore wait yielding
2023/02/08 06:49:10 [debug] 21965\#21965: *530 lua resume returned 1
2023/02/08 06:49:10 [debug] 21965\#21965: *530 lua thread yielded
2023/02/08 06:49:10 [debug] 21965\#21965: *530 lua run thread returned -2
2023/02/08 06:49:10 [debug] 21965\#21965: worker cycle
2023/02/08 06:49:10 [debug] 21965\#21965: epoll timer: 1000
2023/02/08 06:49:10 [debug] 22283\#22283: *787 lua reset ctx
'
semaphore.t TEST 3: semaphore wait time=0 - pattern "[error]" should not match any line in error.log but matches line "2023/02/08 06:49:11 [error] 21965\#21965: *530 [lua] init_worker_by_lua(nginx.conf:26):14: sem: timeout, context: ngx.timer" (req 1) 2023/02/08 06:49:11 [debug] 21965\#21965: http lua semaphore wait: 0000000009DC89B8, timeout: 1000, resources: 0, event posted: 0
2023/02/08 06:49:11 [debug] 21965\#21965: *530 event timer add: 0: 1000:9051262
2023/02/08 06:49:11 [debug] 21965\#21965: http lua semaphore wait yielding
2023/02/08 06:49:11 [debug] 21965\#21965: *530 lua resume returned 1
2023/02/08 06:49:11 [debug] 21965\#21965: *530 lua thread yielded
2023/02/08 06:49:11 [debug] 21965\#21965: *530 lua run thread returned -2
2023/02/08 06:49:11 [debug] 21965\#21965: worker cycle
'
semaphore.t TEST 15: semaphore in body_filter_by_lua (wait not allowed) - grep_error_log_out (req 0) @@ -1,3 +1,5 @@
+sem: timeout,
+sem: 6 times,
sem: 1,
sem: API disabled in the context of body_filter_by_lua*,
sem: 1,
'
semaphore.t TEST 39: basic semaphore count (negative number) - pattern "[error]" should not match any line in error.log but matches line "2023/02/08 06:49:13 [error] 21965\#21965: *530 [lua] init_worker_by_lua(nginx.conf:26):14: sem: timeout, context: ngx.timer" (req 0) 2023/02/08 06:49:13 [debug] 21965\#21965: http lua semaphore wait: 0000000009DC89B8, timeout: 1000, resources: 0, event posted: 0
2023/02/08 06:49:13 [debug] 21965\#21965: *530 event timer add: 0: 1000:9053262
2023/02/08 06:49:13 [debug] 21965\#21965: http lua semaphore wait yielding
2023/02/08 06:49:13 [debug] 21965\#21965: *530 lua resume returned 1
2023/02/08 06:49:13 [debug] 21965\#21965: *530 lua thread yielded
2023/02/08 06:49:13 [debug] 21965\#21965: *530 lua run thread returned -2
2023/02/08 06:49:13 [debug] 21965\#21965: worker cycle
2023/02/08 06:49:13 [debug] 21965\#21965: epoll timer: 1000
2023/02/08 06:49:13 [debug] 22421\#22421: *873 write new buf t:0 f:0 0000000000000000, pos 00000000089BBE50, size: 10 file: 0, size: 0
'
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/08 06:49:14 [error] 21965\#21965: *530 [lua] init_worker_by_lua(nginx.conf:26):14: sem: timeout, context: ngx.timer" (req 0) 2023/02/08 06:49:14 [debug] 21965\#21965: http lua semaphore wait: 0000000009DC89B8, timeout: 1000, resources: 0, event posted: 0
2023/02/08 06:49:14 [debug] 21965\#21965: *530 event timer add: 0: 1000:9054263
2023/02/08 06:49:14 [debug] 21965\#21965: http lua semaphore wait yielding
2023/02/08 06:49:14 [debug] 21965\#21965: *530 lua resume returned 1
2023/02/08 06:49:14 [debug] 21965\#21965: *530 lua thread yielded
2023/02/08 06:49:14 [debug] 21965\#21965: *530 lua run thread returned -2
2023/02/08 06:49:14 [debug] 21965\#21965: worker cycle
2023/02/08 06:49:14 [debug] 21965\#21965: epoll timer: 1000
2023/02/08 06:49:14 [debug] 22457\#22457: timer delta: 73
'
semaphore.t TEST 16: semaphore in ngx.timer (all allowed) - grep_error_log_out (req 0) @@ -1,2 +1,3 @@
sem: timeout,
sem: 1,
+sem: timeout,
'
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/08 06:49:16 [error] 21965\#21965: *530 [lua] init_worker_by_lua(nginx.conf:26):14: sem: timeout, context: ngx.timer" (req 0) 2023/02/08 06:49:16 [debug] 22529\#22529: malloc: 0000000009429130:16
2023/02/08 06:49:16 [debug] 22529\#22529: malloc: 0000000008C27840:80
2023/02/08 06:49:16 [debug] 22529\#22529: malloc: 0000000009436230:16
2023/02/08 06:49:16 [debug] 22529\#22529: malloc: 00000000093989F0:15
2023/02/08 06:49:16 [debug] 22529\#22529: malloc: 0000000009402560:16
2023/02/08 06:49:16 [debug] 22529\#22529: *964 accept: 127.0.0.1:11598 fd:3
2023/02/08 06:49:16 [debug] 22529\#22529: malloc: 00000000092EE1E0:64
2023/02/08 06:49:16 [debug] 21965\#21965: http lua semaphore wait: 0000000009DC89B8, timeout: 1000, resources: 0, event posted: 0
2023/02/08 06:49:16 [debug] 22529\#22529: malloc: 0000000009451E40:16
'
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 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 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/08 06:53:39 [notice] 28940\#28940: start worker processes log level:4 log body:2023/02/08 06:53:40 [error] 28998\#28998: *63 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/08 06:53:39 [notice] 28940#28940: start worker processes
log level:4
log body:2023/02/08 06:53:40 [error] 28998#28998: *63 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 TEST 21: multi-line error log - response_body_like - response is expected (log lines: \#2 log level:6 log body:2023/02/08 06:53:41 [notice] 28940\#28940: start worker processes log level:4 log body:2023/02/08 06:53:41 [error] 29064\#29064: *123 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/08 06:53:41 [notice] 28940#28940: start worker processes
log level:4
log body:2023/02/08 06:53:41 [error] 29064#29064: *123 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 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 3: client connected info - grep_error_log_out (req 0) 'client 127.0.0.1:22562 connected to
capture log line:10
'
doesn't match '(?^:^client .*? connected to .*?
capture log line:1
$)'
stream/errlog.t TEST 3: client connected info - grep_error_log_out (req 1) 'client 127.0.0.1:22566 connected to
capture log line:10
'
doesn't match '(?^:^client .*? connected to .*?
capture log line:2
$)'
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:4 log body:2023/02/08 06:53:45 [error] 29239\#29239: *273 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/08 06:53:45 [warn] 29239\#29239: *273 stream [lua] content_by_lua(nginx.conf:91):10: --> 86, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2023/02/08 06:53:45 [error] 29239\#29239: *273 stream [lua] content_by_lua(nginx.conf:91):11: --> 86, client: 127.0.0.1, server: 0.0.0.0:1985 msg count: 3 log level:5 log body:2023/02/08 06:53:45 [warn] 29239\#29239: *273 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/08 06:53:45 [error] 29239\#29239: *273 stream [lua] content_by_lua(nginx.conf:91):11: --> 87, client: 127.0.0.1, server: 0.0.0.0:1985 log level:5 log body:2023/02/08 06:53:45 [warn] 29239\#29239: *273 stream [lua] content_by_lua(nginx.conf:91):10: --> 88, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2023/02/08 06:53:45 [error] 29239\#29239: *273 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/08 06:53:45 [error] 29239\#29239: *273 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/08 06:53:45 [error] 29239\#29239: *273 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:4
log body:2023/02/08 06:53:45 [error] 29239#29239: *273 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/08 06:53:45 [warn] 29239#29239: *273 stream [lua] content_by_lua(nginx.conf:91):10: --> 86, client: 127.0.0.1, server: 0.0.0.0:1985
log level:4
log body:2023/02/08 06:53:45 [error] 29239#29239: *273 stream [lua] content_by_lua(nginx.conf:91):11: --> 86, client: 127.0.0.1, server: 0.0.0.0:1985
msg count: 3
log level:5
log body:2023/02/08 06:53:45 [warn] 29239#29239: *273 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/08 06:53:45 [error] 29239#29239: *273 stream [lua] content_by_lua(nginx.conf:91):11: --> 87, client: 127.0.0.1, server: 0.0.0.0:1985
log level:5
log body:2023/02/08 06:53:45 [warn] 29239#29239: *273 stream [lua] content_by_lua(nginx.conf:91):10: --> 88, client: 127.0.0.1, server: 0.0.0.0:1985
log level:4
log body:2023/02/08 06:53:45 [error] 29239#29239: *273 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/08 06:53:45 [error] 29239#29239: *273 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/08 06:53:45 [error] 29239#29239: *273 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:4 log body:2023/02/08 06:53:46 [error] 29239\#29239: *276 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/08 06:53:46 [warn] 29239\#29239: *276 stream [lua] content_by_lua(nginx.conf:91):10: --> 86, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2023/02/08 06:53:46 [error] 29239\#29239: *276 stream [lua] content_by_lua(nginx.conf:91):11: --> 86, client: 127.0.0.1, server: 0.0.0.0:1985 msg count: 3 log level:5 log body:2023/02/08 06:53:46 [warn] 29239\#29239: *276 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/08 06:53:46 [error] 29239\#29239: *276 stream [lua] content_by_lua(nginx.conf:91):11: --> 87, client: 127.0.0.1, server: 0.0.0.0:1985 log level:5 log body:2023/02/08 06:53:46 [warn] 29239\#29239: *276 stream [lua] content_by_lua(nginx.conf:91):10: --> 88, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2023/02/08 06:53:46 [error] 29239\#29239: *276 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/08 06:53:46 [error] 29239\#29239: *276 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/08 06:53:46 [error] 29239\#29239: *276 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:4
log body:2023/02/08 06:53:46 [error] 29239#29239: *276 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/08 06:53:46 [warn] 29239#29239: *276 stream [lua] content_by_lua(nginx.conf:91):10: --> 86, client: 127.0.0.1, server: 0.0.0.0:1985
log level:4
log body:2023/02/08 06:53:46 [error] 29239#29239: *276 stream [lua] content_by_lua(nginx.conf:91):11: --> 86, client: 127.0.0.1, server: 0.0.0.0:1985
msg count: 3
log level:5
log body:2023/02/08 06:53:46 [warn] 29239#29239: *276 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/08 06:53:46 [error] 29239#29239: *276 stream [lua] content_by_lua(nginx.conf:91):11: --> 87, client: 127.0.0.1, server: 0.0.0.0:1985
log level:5
log body:2023/02/08 06:53:46 [warn] 29239#29239: *276 stream [lua] content_by_lua(nginx.conf:91):10: --> 88, client: 127.0.0.1, server: 0.0.0.0:1985
log level:4
log body:2023/02/08 06:53:46 [error] 29239#29239: *276 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/08 06:53:46 [error] 29239#29239: *276 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/08 06:53:46 [error] 29239#29239: *276 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 17: flood the capturing buffer (4k) - response_body_like - response is expected (log lines: \#25 log level:4 log body:2023/02/08 06:53:47 [error] 29311\#29311: *333 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/08 06:53:47 [warn] 29311\#29311: *333 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/08 06:53:47 [error] 29311\#29311: *333 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/08 06:53:47 [error] 29311\#29311: *333 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/08 06:53:47 [warn] 29311\#29311: *333 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/08 06:53:47 [error] 29311\#29311: *333 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/08 06:53:47 [error] 29311#29311: *333 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/08 06:53:47 [warn] 29311#29311: *333 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/08 06:53:47 [error] 29311#29311: *333 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/08 06:53:47 [error] 29311#29311: *333 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/08 06:53:47 [warn] 29311#29311: *333 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/08 06:53:47 [error] 29311#29311: *333 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/08 06:53:48 [error] 29311\#29311: *336 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/08 06:53:48 [warn] 29311\#29311: *336 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/08 06:53:48 [error] 29311\#29311: *336 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/08 06:53:48 [error] 29311\#29311: *336 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/08 06:53:48 [warn] 29311\#29311: *336 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/08 06:53:48 [error] 29311\#29311: *336 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/08 06:53:48 [error] 29311#29311: *336 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/08 06:53:48 [warn] 29311#29311: *336 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/08 06:53:48 [error] 29311#29311: *336 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/08 06:53:48 [error] 29311#29311: *336 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/08 06:53:48 [warn] 29311#29311: *336 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/08 06:53:48 [error] 29311#29311: *336 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 18: flood the capturing buffer (5k) - response_body_like - response is expected (log lines: \#31 log level:4 log body:2023/02/08 06:53:50 [error] 29419\#29419: *423 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/08 06:53:50 [warn] 29419\#29419: *423 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/08 06:53:50 [error] 29419\#29419: *423 stream [lua] content_by_lua(nginx.conf:78):11: --> 86, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2023/02/08 06:53:50 [error] 29419\#29419: *423 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/08 06:53:50 [warn] 29419\#29419: *423 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/08 06:53:50 [error] 29419\#29419: *423 stream [lua] content_by_lua(nginx.conf:78):11: --> 100, client: 127.0.0.1, server: 0.0.0.0:1985) 'log lines: #31
log level:4
log body:2023/02/08 06:53:50 [error] 29419#29419: *423 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/08 06:53:50 [warn] 29419#29419: *423 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/08 06:53:50 [error] 29419#29419: *423 stream [lua] content_by_lua(nginx.conf:78):11: --> 86, client: 127.0.0.1, server: 0.0.0.0:1985
log level:4
log body:2023/02/08 06:53:50 [error] 29419#29419: *423 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/08 06:53:50 [warn] 29419#29419: *423 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/08 06:53:50 [error] 29419#29419: *423 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: \#31 log level:4 log body:2023/02/08 06:53:51 [error] 29419\#29419: *426 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/08 06:53:51 [warn] 29419\#29419: *426 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/08 06:53:51 [error] 29419\#29419: *426 stream [lua] content_by_lua(nginx.conf:78):11: --> 86, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2023/02/08 06:53:51 [error] 29419\#29419: *426 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/08 06:53:51 [warn] 29419\#29419: *426 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/08 06:53:51 [error] 29419\#29419: *426 stream [lua] content_by_lua(nginx.conf:78):11: --> 100, client: 127.0.0.1, server: 0.0.0.0:1985) 'log lines: #31
log level:4
log body:2023/02/08 06:53:51 [error] 29419#29419: *426 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/08 06:53:51 [warn] 29419#29419: *426 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/08 06:53:51 [error] 29419#29419: *426 stream [lua] content_by_lua(nginx.conf:78):11: --> 86, client: 127.0.0.1, server: 0.0.0.0:1985
log level:4
log body:2023/02/08 06:53:51 [error] 29419#29419: *426 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/08 06:53:51 [warn] 29419#29419: *426 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/08 06:53:51 [error] 29419#29419: *426 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 31: ringbuf sentinel bug2 - response_body_like - response is expected (log lines: \#18 log lines: \#3) 'log lines: #18
log lines: #3
'
doesn't match '(?^s:\A(?:log lines: #18
log lines: #1
|log lines: #18
log lines: #2
)\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:4 log body:2023/02/08 06:53:58 [error] 29769\#29769: *723 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/08 06:53:58 [warn] 29769\#29769: *723 stream [lua] content_by_lua(nginx.conf:93):10: --> 86, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2023/02/08 06:53:58 [error] 29769\#29769: *723 stream [lua] content_by_lua(nginx.conf:93):11: --> 86, client: 127.0.0.1, server: 0.0.0.0:1985 msg count: 3 log level:4 log body:2023/02/08 06:53:58 [error] 29769\#29769: *723 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/08 06:53:58 [warn] 29769\#29769: *723 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/08 06:53:58 [error] 29769\#29769: *723 stream [lua] content_by_lua(nginx.conf:93):11: --> 88, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2023/02/08 06:53:58 [error] 29769\#29769: *723 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/08 06:53:58 [error] 29769\#29769: *723 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/08 06:53:58 [error] 29769\#29769: *723 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:4
log body:2023/02/08 06:53:58 [error] 29769#29769: *723 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/08 06:53:58 [warn] 29769#29769: *723 stream [lua] content_by_lua(nginx.conf:93):10: --> 86, client: 127.0.0.1, server: 0.0.0.0:1985
log level:4
log body:2023/02/08 06:53:58 [error] 29769#29769: *723 stream [lua] content_by_lua(nginx.conf:93):11: --> 86, client: 127.0.0.1, server: 0.0.0.0:1985
msg count: 3
log level:4
log body:2023/02/08 06:53:58 [error] 29769#29769: *723 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/08 06:53:58 [warn] 29769#29769: *723 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/08 06:53:58 [error] 29769#29769: *723 stream [lua] content_by_lua(nginx.conf:93):11: --> 88, client: 127.0.0.1, server: 0.0.0.0:1985
log level:4
log body:2023/02/08 06:53:58 [error] 29769#29769: *723 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/08 06:53:58 [error] 29769#29769: *723 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/08 06:53:58 [error] 29769#29769: *723 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:4 log body:2023/02/08 06:53:59 [error] 29769\#29769: *726 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/08 06:53:59 [warn] 29769\#29769: *726 stream [lua] content_by_lua(nginx.conf:93):10: --> 86, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2023/02/08 06:53:59 [error] 29769\#29769: *726 stream [lua] content_by_lua(nginx.conf:93):11: --> 86, client: 127.0.0.1, server: 0.0.0.0:1985 msg count: 3 log level:4 log body:2023/02/08 06:53:59 [error] 29769\#29769: *726 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/08 06:53:59 [warn] 29769\#29769: *726 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/08 06:53:59 [error] 29769\#29769: *726 stream [lua] content_by_lua(nginx.conf:93):11: --> 88, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2023/02/08 06:53:59 [error] 29769\#29769: *726 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/08 06:53:59 [error] 29769\#29769: *726 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/08 06:53:59 [error] 29769\#29769: *726 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:4
log body:2023/02/08 06:53:59 [error] 29769#29769: *726 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/08 06:53:59 [warn] 29769#29769: *726 stream [lua] content_by_lua(nginx.conf:93):10: --> 86, client: 127.0.0.1, server: 0.0.0.0:1985
log level:4
log body:2023/02/08 06:53:59 [error] 29769#29769: *726 stream [lua] content_by_lua(nginx.conf:93):11: --> 86, client: 127.0.0.1, server: 0.0.0.0:1985
msg count: 3
log level:4
log body:2023/02/08 06:53:59 [error] 29769#29769: *726 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/08 06:53:59 [warn] 29769#29769: *726 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/08 06:53:59 [error] 29769#29769: *726 stream [lua] content_by_lua(nginx.conf:93):11: --> 88, client: 127.0.0.1, server: 0.0.0.0:1985
log level:4
log body:2023/02/08 06:53:59 [error] 29769#29769: *726 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/08 06:53:59 [error] 29769#29769: *726 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/08 06:53:59 [error] 29769#29769: *726 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 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 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/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/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 21: multi wait and mult post with one semaphore - pattern "[error]" should not match any line in error.log but matches line "2023/02/08 06:57:00 [error] 2104\#2104: *373 stream [lua] init_worker_by_lua:14: sem: timeout, context: ngx.timer" (req 0) 2023/02/08 06:57:00 [error] 2104\#2104: *373 stream [lua] init_worker_by_lua:18: sem: 3 times, context: ngx.timer
2023/02/08 06:57:00 [debug] 2104\#2104: stream lua semaphore wait: 00000000092E5DB8, timeout: 1000, resources: 0, event posted: 0
2023/02/08 06:57:00 [debug] 2104\#2104: *373 event timer add: 0: 1000:9520124
2023/02/08 06:57:00 [debug] 2104\#2104: stream lua semaphore wait yielding
2023/02/08 06:57:00 [debug] 2104\#2104: *373 lua resume returned 1
2023/02/08 06:57:00 [debug] 2104\#2104: *373 lua thread yielded
2023/02/08 06:57:00 [debug] 2104\#2104: *373 lua run thread returned -2
2023/02/08 06:57:00 [debug] 2104\#2104: worker cycle
2023/02/08 06:57:00 [debug] 2104\#2104: 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/08 06:57:00 [error] 2104\#2104: *373 stream [lua] init_worker_by_lua:18: sem: 3 times, context: ngx.timer" (req 0) 2023/02/08 06:57:00 [debug] 2104\#2104: stream lua semaphore wait: 00000000092E5DB8, timeout: 1000, resources: 0, event posted: 0
2023/02/08 06:57:00 [debug] 2104\#2104: *373 event timer add: 0: 1000:9520124
2023/02/08 06:57:00 [debug] 2104\#2104: stream lua semaphore wait yielding
2023/02/08 06:57:00 [debug] 2104\#2104: *373 lua resume returned 1
2023/02/08 06:57:00 [debug] 2104\#2104: *373 lua thread yielded
2023/02/08 06:57:00 [debug] 2104\#2104: *373 lua run thread returned -2
2023/02/08 06:57:00 [debug] 2104\#2104: worker cycle
2023/02/08 06:57:00 [debug] 2104\#2104: epoll timer: 1000
2023/02/08 06:56:59 [debug] 1623\#1623: child: 0 2212 e:0 t:0 d:0 r:1 j:1
'
stream/semaphore.t TEST 11: semaphore in ngx.timer (all allowed) - grep_error_log_out (req 0) @@ -1,2 +1,3 @@
sem: timeout,
+sem: timeout,
sem: 1,
'
stream/semaphore.t TEST 10: semaphore in log_by_lua (wait not allowed) - grep_error_log_out (req 0) @@ -1,2 +1,3 @@
+sem: timeout,
sem: 1 while returning text,
sem: API disabled in the context of log_by_lua* while returning text,
'
stream/semaphore.t TEST 10: semaphore in log_by_lua (wait not allowed) - grep_error_log_out (req 1) @@ -1,2 +1,4 @@
sem: 1 while returning text,
sem: API disabled in the context of log_by_lua* while returning text,
+sem: timeout,
+sem: 3 times,
'
stream/semaphore.t TEST 28: basic semaphore count - pattern "[error]" should not match any line in error.log but matches line "2023/02/08 06:57:04 [error] 2104\#2104: *373 stream [lua] init_worker_by_lua:14: sem: timeout, context: ngx.timer" (req 0) 2023/02/08 06:57:04 [debug] 2104\#2104: stream lua semaphore wait: 00000000092E5DB8, timeout: 1000, resources: 0, event posted: 0
2023/02/08 06:57:04 [debug] 2104\#2104: *373 event timer add: 0: 1000:9524126
2023/02/08 06:57:04 [debug] 2104\#2104: stream lua semaphore wait yielding
2023/02/08 06:57:04 [debug] 2104\#2104: *373 lua resume returned 1
2023/02/08 06:57:04 [debug] 2104\#2104: *373 lua thread yielded
2023/02/08 06:57:04 [debug] 2104\#2104: *373 lua run thread returned -2
2023/02/08 06:57:04 [debug] 2104\#2104: worker cycle
2023/02/08 06:57:04 [debug] 2104\#2104: epoll timer: 1000
2023/02/08 06:57:04 [debug] 2326\#2326: epoll: fd:7 ev:0001 d:000000000A4557D0
'
stream/semaphore.t TEST 30: bugfix: semaphore instance can't be garbage collected when someone is waiting on it - pattern "[error]" should not match any line in error.log but matches line "2023/02/08 06:57:05 [error] 2104\#2104: *373 stream [lua] init_worker_by_lua:14: sem: timeout, context: ngx.timer" (req 0) 2023/02/08 06:57:05 [debug] 2104\#2104: stream lua semaphore wait: 00000000092E5DB8, timeout: 1000, resources: 0, event posted: 0
2023/02/08 06:57:05 [debug] 2104\#2104: *373 event timer add: 0: 1000:9525127
2023/02/08 06:57:05 [debug] 2104\#2104: stream lua semaphore wait yielding
2023/02/08 06:57:05 [debug] 2104\#2104: *373 lua resume returned 1
2023/02/08 06:57:05 [debug] 2104\#2104: *373 lua thread yielded
2023/02/08 06:57:05 [debug] 2104\#2104: *373 lua run thread returned -2
2023/02/08 06:57:05 [debug] 2104\#2104: worker cycle
2023/02/08 06:57:05 [debug] 2104\#2104: epoll timer: 1000
2023/02/08 06:57:04 [debug] 1623\#1623: malloc: 0000000008639790:2048
'
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/08 06:57:07 [error] 2104\#2104: *373 stream [lua] init_worker_by_lua:14: sem: timeout, context: ngx.timer" (req 0) 2023/02/08 06:57:07 [debug] 2464\#2464: *681 lua capture body filter, uri "/ver"
2023/02/08 06:57:07 [debug] 2104\#2104: stream lua semaphore wait: 00000000092E5DB8, timeout: 1000, resources: 0, event posted: 0
2023/02/08 06:57:07 [debug] 2104\#2104: *373 event timer add: 0: 1000:9527127
2023/02/08 06:57:07 [debug] 2104\#2104: stream lua semaphore wait yielding
2023/02/08 06:57:07 [debug] 2104\#2104: *373 lua resume returned 1
2023/02/08 06:57:07 [debug] 2104\#2104: *373 lua thread yielded
2023/02/08 06:57:07 [debug] 2104\#2104: *373 lua run thread returned -2
2023/02/08 06:57:07 [debug] 2104\#2104: worker cycle
2023/02/08 06:57:07 [debug] 2104\#2104: epoll timer: 1000
'
stream/semaphore.t TEST 1: basic semaphore in uthread - pattern "[error]" should not match any line in error.log but matches line "2023/02/08 06:57:08 [error] 2104\#2104: *373 stream [lua] init_worker_by_lua:14: sem: timeout, context: ngx.timer" (req 0) 2023/02/08 06:57:08 [debug] 2104\#2104: stream lua semaphore wait: 00000000092E5DB8, timeout: 1000, resources: 0, event posted: 0
2023/02/08 06:57:08 [debug] 2104\#2104: *373 event timer add: 0: 1000:9528128
2023/02/08 06:57:08 [debug] 2104\#2104: stream lua semaphore wait yielding
2023/02/08 06:57:08 [debug] 2104\#2104: *373 lua resume returned 1
2023/02/08 06:57:08 [debug] 2104\#2104: *373 lua thread yielded
2023/02/08 06:57:08 [debug] 2104\#2104: *373 lua run thread returned -2
2023/02/08 06:57:08 [debug] 2104\#2104: worker cycle
2023/02/08 06:57:08 [debug] 2104\#2104: epoll timer: 1000
2023/02/08 06:57:07 [debug] 2500\#2500: *711 malloc: 00000000084BE8E0:123
'
stream/semaphore.t TEST 13: semaphore wait post in preread_by_lua - pattern "[error]" should not match any line in error.log but matches line "2023/02/08 06:57:09 [error] 2104\#2104: *373 stream [lua] init_worker_by_lua:14: sem: timeout, context: ngx.timer" (req 0) 2023/02/08 06:57:09 [error] 2104\#2104: *373 stream [lua] init_worker_by_lua:18: sem: 3 times, context: ngx.timer
2023/02/08 06:57:09 [debug] 2536\#2536: *761 test location: "t"
2023/02/08 06:57:09 [debug] 2536\#2536: *761 using configuration "=/t"
2023/02/08 06:57:09 [debug] 2536\#2536: *761 http cl:-1 max:31457280
2023/02/08 06:57:09 [debug] 2104\#2104: stream lua semaphore wait: 00000000092E5DB8, timeout: 1000, resources: 0, event posted: 0
2023/02/08 06:57:09 [debug] 2536\#2536: *761 rewrite phase: 4
2023/02/08 06:57:09 [debug] 2104\#2104: *373 event timer add: 0: 1000:9529128
2023/02/08 06:57:09 [debug] 2536\#2536: *761 rewrite phase: 5
2023/02/08 06:57:09 [debug] 2104\#2104: stream lua semaphore wait yielding
'
stream/semaphore.t TEST 13: semaphore wait post in preread_by_lua - pattern "[error]" should not match any line in error.log but matches line "2023/02/08 06:57:09 [error] 2104\#2104: *373 stream [lua] init_worker_by_lua:18: sem: 3 times, context: ngx.timer" (req 0) 2023/02/08 06:57:09 [debug] 2536\#2536: *761 test location: "t"
2023/02/08 06:57:09 [debug] 2536\#2536: *761 using configuration "=/t"
2023/02/08 06:57:09 [debug] 2536\#2536: *761 http cl:-1 max:31457280
2023/02/08 06:57:09 [debug] 2104\#2104: stream lua semaphore wait: 00000000092E5DB8, timeout: 1000, resources: 0, event posted: 0
2023/02/08 06:57:09 [debug] 2536\#2536: *761 rewrite phase: 4
2023/02/08 06:57:09 [debug] 2104\#2104: *373 event timer add: 0: 1000:9529128
2023/02/08 06:57:09 [debug] 2536\#2536: *761 rewrite phase: 5
2023/02/08 06:57:09 [debug] 2104\#2104: stream lua semaphore wait yielding
2023/02/08 06:57:09 [debug] 2104\#2104: *373 lua resume returned 1
'
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/08 06:57:10 [error] 2104\#2104: *373 stream [lua] init_worker_by_lua:14: sem: timeout, context: ngx.timer" (req 0) 2023/02/08 06:57:10 [debug] 2104\#2104: stream lua semaphore wait: 00000000092E5DB8, timeout: 1000, resources: 0, event posted: 0
2023/02/08 06:57:10 [debug] 2104\#2104: *373 event timer add: 0: 1000:9530129
2023/02/08 06:57:10 [debug] 2104\#2104: stream lua semaphore wait yielding
2023/02/08 06:57:10 [debug] 2104\#2104: *373 lua resume returned 1
2023/02/08 06:57:10 [debug] 2104\#2104: *373 lua thread yielded
2023/02/08 06:57:10 [debug] 2104\#2104: *373 lua run thread returned -2
2023/02/08 06:57:10 [debug] 2104\#2104: worker cycle
'
stream/semaphore.t TEST 3: semaphore wait time=0 - pattern "[error]" should not match any line in error.log but matches line "2023/02/08 06:57:11 [error] 2104\#2104: *373 stream [lua] init_worker_by_lua:14: sem: timeout, context: ngx.timer" (req 0) 2023/02/08 06:57:11 [debug] 2104\#2104: stream lua semaphore wait: 00000000092E5DB8, timeout: 1000, resources: 0, event posted: 0
2023/02/08 06:57:11 [debug] 2104\#2104: *373 event timer add: 0: 1000:9531130
2023/02/08 06:57:11 [debug] 2104\#2104: stream lua semaphore wait yielding
2023/02/08 06:57:11 [debug] 2104\#2104: *373 lua resume returned 1
2023/02/08 06:57:11 [debug] 2104\#2104: *373 lua thread yielded
2023/02/08 06:57:11 [debug] 2104\#2104: *373 lua run thread returned -2
2023/02/08 06:57:11 [debug] 2104\#2104: worker cycle
2023/02/08 06:57:11 [debug] 2104\#2104: epoll timer: 1000
2023/02/08 06:57:11 [debug] 2608\#2608: epoll: fd:7 ev:0001 d:0000000009BF2AF0
'
stream/semaphore.t TEST 8: semaphore in preread_by_lua (all allowed) - grep_error_log_out (req 0) @@ -1,2 +1,4 @@
+sem: timeout,
+sem: 3 times,
sem: timeout while prereading client data,
sem: 1 while prereading client data,
'
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
'
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
-< 10: true
+< 10: 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
'
time.t TEST 13: "resty.core.time".monotonic_msec - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +1,2 @@
true
-< 10: true
+< 10: false
'
worker.t TEST 5: ngx.worker.pids - response_body_like - response is expected (worker pid: 7223 worker pids is wrong. worker pid is wrong.) 'worker pid: 7223
worker pids is wrong.
worker pid is wrong.
'
doesn't match '(?^s:worker pid: \d+
worker pid is correct\.
)'

Warnings

Go back to the index page.