(This page was automatically generated by the tools in the opsboy project on 15:08:05 28-Dec-2023 GMT.)

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

Summary

Commit Testing Time Unexpected
Failures
Expected
Failures
Files Tests Elapsed Time
5af64033 2021-03-17 14:20:17 GMT 1 69 79 8737 1143 sec

LuaJIT

LuaJIT 2.1.0-beta3, commit 70f88773

OpenSSL

OpenSSL 1.1.1h 22 Sep 2020

Compilation Errors

Unexpected Failures

File Name Details
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.

Expected Failures

File Name Details
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 "2021/03/17 21:34:04 [warn] 14955\#0: *27 [lua] content_by_lua(nginx.conf:67):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 "2021/03/17 21:34:04 [warn] 14955\#0: *28 [lua] content_by_lua(nginx.conf:67):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 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:2021/03/17 21:34:06 [notice] 14944\#0: start worker processes log level:7 log body:2021/03/17 21:34:06 [info] 15045\#0: *84 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/03/17 21:34:06 [info] 15045\#0: *85 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/03/17 21:34:06 [info] 15045\#0: *86 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/03/17 21:34:06 [info] 15045\#0: *87 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/03/17 21:34:06 [info] 15045\#0: *88 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/03/17 21:34:06 [info] 15045\#0: *89 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/03/17 21:34:06 [info] 15045\#0: *90 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/03/17 21:34:06 [info] 15045\#0: *91 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/03/17 21:34:06 [info] 15045\#0: *92 client 127.0.0.1 closed keepalive connection end maybe log lines: \#10 log level:7 log body:2021/03/17 21:34:06 [info] 15045\#0: *93 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/03/17 21:34:06 [info] 15045\#0: *94 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/03/17 21:34:06 [info] 15045\#0: *95 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/03/17 21:34:06 [info] 15045\#0: *96 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/03/17 21:34:06 [info] 15045\#0: *97 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/03/17 21:34:06 [info] 15045\#0: *98 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/03/17 21:34:06 [info] 15045\#0: *99 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/03/17 21:34:06 [info] 15045\#0: *100 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/03/17 21:34:06 [info] 15045\#0: *101 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/03/17 21:34:06 [info] 15045\#0: *102 client 127.0.0.1 closed keepalive connection end) 'maybe log lines: #10
log level:6
log body:2021/03/17 21:34:06 [notice] 14944#0: start worker processes
log level:7
log body:2021/03/17 21:34:06 [info] 15045#0: *84 client 127.0.0.1 closed keepalive connection
log level:7
log body:2021/03/17 21:34:06 [info] 15045#0: *85 client 127.0.0.1 closed keepalive connection
log level:7
log body:2021/03/17 21:34:06 [info] 15045#0: *86 client 127.0.0.1 closed keepalive connection
log level:7
log body:2021/03/17 21:34:06 [info] 15045#0: *87 client 127.0.0.1 closed keepalive connection
log level:7
log body:2021/03/17 21:34:06 [info] 15045#0: *88 client 127.0.0.1 closed keepalive connection
log level:7
log body:2021/03/17 21:34:06 [info] 15045#0: *89 client 127.0.0.1 closed keepalive connection
log level:7
log body:2021/03/17 21:34:06 [info] 15045#0: *90 client 127.0.0.1 closed keepalive connection
log level:7
log body:2021/03/17 21:34:06 [info] 15045#0: *91 client 127.0.0.1 closed keepalive connection
log level:7
log body:2021/03/17 21:34:06 [info] 15045#0: *92 client 127.0.0.1 closed keepalive connection
end
maybe log lines: #10
log level:7
log body:2021/03/17 21:34:06 [info] 15045#0: *93 client 127.0.0.1 closed keepalive connection
log level:7
log body:2021/03/17 21:34:06 [info] 15045#0: *94 client 127.0.0.1 closed keepalive connection
log level:7
log body:2021/03/17 21:34:06 [info] 15045#0: *95 client 127.0.0.1 closed keepalive connection
log level:7
log body:2021/03/17 21:34:06 [info] 15045#0: *96 client 127.0.0.1 closed keepalive connection
log level:7
log body:2021/03/17 21:34:06 [info] 15045#0: *97 client 127.0.0.1 closed keepalive connection
log level:7
log body:2021/03/17 21:34:06 [info] 15045#0: *98 client 127.0.0.1 closed keepalive connection
log level:7
log body:2021/03/17 21:34:06 [info] 15045#0: *99 client 127.0.0.1 closed keepalive connection
log level:7
log body:2021/03/17 21:34:06 [info] 15045#0: *100 client 127.0.0.1 closed keepalive connection
log level:7
log body:2021/03/17 21:34:06 [info] 15045#0: *101 client 127.0.0.1 closed keepalive connection
log level:7
log body:2021/03/17 21:34:06 [info] 15045#0: *102 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:2021/03/17 21:34:06 [info] 15045\#0: *103 client 127.0.0.1 closed keepalive connection log level:4 log body:2021/03/17 21:34:06 [error] 15045\#0: *104 [lua] access_by_lua(nginx.conf:66):8: --> new line, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level:4 log body:2021/03/17 21:34:07 [error] 15045\#0: *105 [lua] access_by_lua(nginx.conf:66):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:2021/03/17 21:34:06 [info] 15045#0: *103 client 127.0.0.1 closed keepalive connection
log level:4
log body:2021/03/17 21:34:06 [error] 15045#0: *104 [lua] access_by_lua(nginx.conf:66):8: -->
new line, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level:4
log body:2021/03/17 21:34:07 [error] 15045#0: *105 [lua] access_by_lua(nginx.conf:66):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 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 13: filter log by level(ngx.CRIT) - response_body - response is expected (repeated req 0, req 0) got: 'log lines:1
'
expected: 'log lines:0
'
errlog.t TEST 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 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 16: check the captured error log body - response_body_like - response is expected (log level:6 log body:2021/03/17 21:34:15 [notice] 15223\#0: start worker processes log level:7 log body:2021/03/17 21:34:16 [info] 15322\#0: *83 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/03/17 21:34:16 [info] 15322\#0: *84 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/03/17 21:34:16 [info] 15322\#0: *85 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/03/17 21:34:16 [info] 15322\#0: *86 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/03/17 21:34:16 [info] 15322\#0: *87 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/03/17 21:34:16 [info] 15322\#0: *88 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/03/17 21:34:16 [info] 15322\#0: *89 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/03/17 21:34:16 [info] 15322\#0: *90 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/03/17 21:34:16 [info] 15322\#0: *91 client 127.0.0.1 closed keepalive connection) 'log level:6
log body:2021/03/17 21:34:15 [notice] 15223#0: start worker processes
log level:7
log body:2021/03/17 21:34:16 [info] 15322#0: *83 client 127.0.0.1 closed keepalive connection
log level:7
log body:2021/03/17 21:34:16 [info] 15322#0: *84 client 127.0.0.1 closed keepalive connection
log level:7
log body:2021/03/17 21:34:16 [info] 15322#0: *85 client 127.0.0.1 closed keepalive connection
log level:7
log body:2021/03/17 21:34:16 [info] 15322#0: *86 client 127.0.0.1 closed keepalive connection
log level:7
log body:2021/03/17 21:34:16 [info] 15322#0: *87 client 127.0.0.1 closed keepalive connection
log level:7
log body:2021/03/17 21:34:16 [info] 15322#0: *88 client 127.0.0.1 closed keepalive connection
log level:7
log body:2021/03/17 21:34:16 [info] 15322#0: *89 client 127.0.0.1 closed keepalive connection
log level:7
log body:2021/03/17 21:34:16 [info] 15322#0: *90 client 127.0.0.1 closed keepalive connection
log level:7
log body:2021/03/17 21:34:16 [info] 15322#0: *91 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:2021/03/17 21:34:16 [info] 15322\#0: *92 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/03/17 21:34:16 [info] 15322\#0: *93 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/03/17 21:34:16 [info] 15322\#0: *94 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/03/17 21:34:16 [info] 15322\#0: *95 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/03/17 21:34:16 [info] 15322\#0: *96 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/03/17 21:34:16 [info] 15322\#0: *97 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/03/17 21:34:16 [info] 15322\#0: *98 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/03/17 21:34:16 [info] 15322\#0: *99 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/03/17 21:34:16 [info] 15322\#0: *100 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/03/17 21:34:16 [info] 15322\#0: *101 client 127.0.0.1 closed keepalive connection) 'log level:7
log body:2021/03/17 21:34:16 [info] 15322#0: *92 client 127.0.0.1 closed keepalive connection
log level:7
log body:2021/03/17 21:34:16 [info] 15322#0: *93 client 127.0.0.1 closed keepalive connection
log level:7
log body:2021/03/17 21:34:16 [info] 15322#0: *94 client 127.0.0.1 closed keepalive connection
log level:7
log body:2021/03/17 21:34:16 [info] 15322#0: *95 client 127.0.0.1 closed keepalive connection
log level:7
log body:2021/03/17 21:34:16 [info] 15322#0: *96 client 127.0.0.1 closed keepalive connection
log level:7
log body:2021/03/17 21:34:16 [info] 15322#0: *97 client 127.0.0.1 closed keepalive connection
log level:7
log body:2021/03/17 21:34:16 [info] 15322#0: *98 client 127.0.0.1 closed keepalive connection
log level:7
log body:2021/03/17 21:34:16 [info] 15322#0: *99 client 127.0.0.1 closed keepalive connection
log level:7
log body:2021/03/17 21:34:16 [info] 15322#0: *100 client 127.0.0.1 closed keepalive connection
log level:7
log body:2021/03/17 21:34:16 [info] 15322#0: *101 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 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 21: multi-line error log - response_body_like - response is expected (log lines: \#10 log level:6 log body:2021/03/17 21:34:22 [notice] 15223\#0: start worker processes log level:7 log body:2021/03/17 21:34:22 [info] 15561\#0: *292 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/03/17 21:34:22 [info] 15561\#0: *293 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/03/17 21:34:22 [info] 15561\#0: *294 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/03/17 21:34:23 [info] 15561\#0: *295 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/03/17 21:34:23 [info] 15561\#0: *296 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/03/17 21:34:23 [info] 15561\#0: *297 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/03/17 21:34:23 [info] 15561\#0: *298 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/03/17 21:34:23 [info] 15561\#0: *299 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/03/17 21:34:23 [info] 15561\#0: *300 client 127.0.0.1 closed keepalive connection) 'log lines: #10
log level:6
log body:2021/03/17 21:34:22 [notice] 15223#0: start worker processes
log level:7
log body:2021/03/17 21:34:22 [info] 15561#0: *292 client 127.0.0.1 closed keepalive connection
log level:7
log body:2021/03/17 21:34:22 [info] 15561#0: *293 client 127.0.0.1 closed keepalive connection
log level:7
log body:2021/03/17 21:34:22 [info] 15561#0: *294 client 127.0.0.1 closed keepalive connection
log level:7
log body:2021/03/17 21:34:23 [info] 15561#0: *295 client 127.0.0.1 closed keepalive connection
log level:7
log body:2021/03/17 21:34:23 [info] 15561#0: *296 client 127.0.0.1 closed keepalive connection
log level:7
log body:2021/03/17 21:34:23 [info] 15561#0: *297 client 127.0.0.1 closed keepalive connection
log level:7
log body:2021/03/17 21:34:23 [info] 15561#0: *298 client 127.0.0.1 closed keepalive connection
log level:7
log body:2021/03/17 21:34:23 [info] 15561#0: *299 client 127.0.0.1 closed keepalive connection
log level:7
log body:2021/03/17 21:34:23 [info] 15561#0: *300 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:2021/03/17 21:34:23 [info] 15561\#0: *301 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/03/17 21:34:23 [info] 15561\#0: *302 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/03/17 21:34:23 [info] 15561\#0: *303 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/03/17 21:34:23 [info] 15561\#0: *304 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/03/17 21:34:23 [info] 15561\#0: *305 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/03/17 21:34:23 [info] 15561\#0: *306 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/03/17 21:34:23 [info] 15561\#0: *307 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/03/17 21:34:23 [info] 15561\#0: *308 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/03/17 21:34:23 [info] 15561\#0: *309 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/03/17 21:34:23 [info] 15561\#0: *310 client 127.0.0.1 closed keepalive connection) 'log lines: #10
log level:7
log body:2021/03/17 21:34:23 [info] 15561#0: *301 client 127.0.0.1 closed keepalive connection
log level:7
log body:2021/03/17 21:34:23 [info] 15561#0: *302 client 127.0.0.1 closed keepalive connection
log level:7
log body:2021/03/17 21:34:23 [info] 15561#0: *303 client 127.0.0.1 closed keepalive connection
log level:7
log body:2021/03/17 21:34:23 [info] 15561#0: *304 client 127.0.0.1 closed keepalive connection
log level:7
log body:2021/03/17 21:34:23 [info] 15561#0: *305 client 127.0.0.1 closed keepalive connection
log level:7
log body:2021/03/17 21:34:23 [info] 15561#0: *306 client 127.0.0.1 closed keepalive connection
log level:7
log body:2021/03/17 21:34:23 [info] 15561#0: *307 client 127.0.0.1 closed keepalive connection
log level:7
log body:2021/03/17 21:34:23 [info] 15561#0: *308 client 127.0.0.1 closed keepalive connection
log level:7
log body:2021/03/17 21:34:23 [info] 15561#0: *309 client 127.0.0.1 closed keepalive connection
log level:7
log body:2021/03/17 21:34:23 [info] 15561#0: *310 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 30: ringbuf sentinel bug1 - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +1,3 @@
log lines: \#2
-AAA
+aaa
aaa
'
errlog.t TEST 29: ringbuf overflow bug - response_body_like - response is expected (log level: 4 log time: 1616016866.827 log body: 2021/03/17 21:34:26 [error] 15711\#0: *442 [lua] content_by_lua(nginx.conf:84):8: **********21, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level: 4 log time: 1616016866.827 log body: 2021/03/17 21:34:26 [error] 15711\#0: *442 [lua] content_by_lua(nginx.conf:84):8: **********22, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level: 4 log time: 1616016866.827 log body: 2021/03/17 21:34:26 [error] 15711\#0: *442 [lua] content_by_lua(nginx.conf:84):8: **********23, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level: 4 log time: 1616016866.827 log body: 2021/03/17 21:34:26 [error] 15711\#0: *442 [lua] content_by_lua(nginx.conf:84):8: **********24, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level: 4 log time: 1616016866.827 log body: 2021/03/17 21:34:26 [error] 15711\#0: *442 [lua] content_by_lua(nginx.conf:84):8: **********25, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level: 4 log time: 1616016866.827 log body: 2021/03/17 21:34:26 [error] 15711\#0: *442 [lua] content_by_lua(nginx.conf:84):8: **********26, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level: 4 log time: 1616016866.827 log body: 2021/03/17 21:34:26 [error] 15711\#0: *442 [lua] content_by_lua(nginx.conf:84):8: **********27, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level: 4 log time: 1616016866.827 log body: 2021/03/17 21:34:26 [error] 15711\#0: *442 [lua] content_by_lua(nginx.conf:84):8: **********28, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level: 4 log time: 1616016866.827 log body: 2021/03/17 21:34:26 [error] 15711\#0: *442 [lua] content_by_lua(nginx.conf:84):8: **********29, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level: 4 log time: 1616016866.827 log body: 2021/03/17 21:34:26 [error] 15711\#0: *442 [lua] content_by_lua(nginx.conf:84):8: **********30, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost") 'log level: 4
log time: 1616016866.827
log body: 2021/03/17 21:34:26 [error] 15711#0: *442 [lua] content_by_lua(nginx.conf:84):8: **********21, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level: 4
log time: 1616016866.827
log body: 2021/03/17 21:34:26 [error] 15711#0: *442 [lua] content_by_lua(nginx.conf:84):8: **********22, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level: 4
log time: 1616016866.827
log body: 2021/03/17 21:34:26 [error] 15711#0: *442 [lua] content_by_lua(nginx.conf:84):8: **********23, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level: 4
log time: 1616016866.827
log body: 2021/03/17 21:34:26 [error] 15711#0: *442 [lua] content_by_lua(nginx.conf:84):8: **********24, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level: 4
log time: 1616016866.827
log body: 2021/03/17 21:34:26 [error] 15711#0: *442 [lua] content_by_lua(nginx.conf:84):8: **********25, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level: 4
log time: 1616016866.827
log body: 2021/03/17 21:34:26 [error] 15711#0: *442 [lua] content_by_lua(nginx.conf:84):8: **********26, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level: 4
log time: 1616016866.827
log body: 2021/03/17 21:34:26 [error] 15711#0: *442 [lua] content_by_lua(nginx.conf:84):8: **********27, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level: 4
log time: 1616016866.827
log body: 2021/03/17 21:34:26 [error] 15711#0: *442 [lua] content_by_lua(nginx.conf:84):8: **********28, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level: 4
log time: 1616016866.827
log body: 2021/03/17 21:34:26 [error] 15711#0: *442 [lua] content_by_lua(nginx.conf:84):8: **********29, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level: 4
log time: 1616016866.827
log body: 2021/03/17 21:34:26 [error] 15711#0: *442 [lua] content_by_lua(nginx.conf:84):8: **********30, 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: 1616016867.198 log body: 2021/03/17 21:34:27 [error] 15711\#0: *443 [lua] content_by_lua(nginx.conf:84):8: **********29, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level: 4 log time: 1616016867.198 log body: 2021/03/17 21:34:27 [error] 15711\#0: *443 [lua] content_by_lua(nginx.conf:84):8: **********30, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level: 4 log time: 1616016867.198 log body: 2021/03/17 21:34:27 [error] 15711\#0: *443 [lua] content_by_lua(nginx.conf:84):8: **********31, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level: 4 log time: 1616016867.198 log body: 2021/03/17 21:34:27 [error] 15711\#0: *443 [lua] content_by_lua(nginx.conf:84):8: **********32, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level: 4 log time: 1616016867.198 log body: 2021/03/17 21:34:27 [error] 15711\#0: *443 [lua] content_by_lua(nginx.conf:84):8: **********33, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level: 4 log time: 1616016867.198 log body: 2021/03/17 21:34:27 [error] 15711\#0: *443 [lua] content_by_lua(nginx.conf:84):8: **********34, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level: 4 log time: 1616016867.198 log body: 2021/03/17 21:34:27 [error] 15711\#0: *443 [lua] content_by_lua(nginx.conf:84):8: **********35, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level: 4 log time: 1616016867.198 log body: 2021/03/17 21:34:27 [error] 15711\#0: *443 [lua] content_by_lua(nginx.conf:84):8: **********36, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level: 4 log time: 1616016867.198 log body: 2021/03/17 21:34:27 [error] 15711\#0: *443 [lua] content_by_lua(nginx.conf:84):8: **********37, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level: 4 log time: 1616016867.198 log body: 2021/03/17 21:34:27 [error] 15711\#0: *443 [lua] content_by_lua(nginx.conf:84):8: **********38, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost") 'log level: 4
log time: 1616016867.198
log body: 2021/03/17 21:34:27 [error] 15711#0: *443 [lua] content_by_lua(nginx.conf:84):8: **********29, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level: 4
log time: 1616016867.198
log body: 2021/03/17 21:34:27 [error] 15711#0: *443 [lua] content_by_lua(nginx.conf:84):8: **********30, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level: 4
log time: 1616016867.198
log body: 2021/03/17 21:34:27 [error] 15711#0: *443 [lua] content_by_lua(nginx.conf:84):8: **********31, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level: 4
log time: 1616016867.198
log body: 2021/03/17 21:34:27 [error] 15711#0: *443 [lua] content_by_lua(nginx.conf:84):8: **********32, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level: 4
log time: 1616016867.198
log body: 2021/03/17 21:34:27 [error] 15711#0: *443 [lua] content_by_lua(nginx.conf:84):8: **********33, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level: 4
log time: 1616016867.198
log body: 2021/03/17 21:34:27 [error] 15711#0: *443 [lua] content_by_lua(nginx.conf:84):8: **********34, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level: 4
log time: 1616016867.198
log body: 2021/03/17 21:34:27 [error] 15711#0: *443 [lua] content_by_lua(nginx.conf:84):8: **********35, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level: 4
log time: 1616016867.198
log body: 2021/03/17 21:34:27 [error] 15711#0: *443 [lua] content_by_lua(nginx.conf:84):8: **********36, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level: 4
log time: 1616016867.198
log body: 2021/03/17 21:34:27 [error] 15711#0: *443 [lua] content_by_lua(nginx.conf:84):8: **********37, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level: 4
log time: 1616016867.198
log body: 2021/03/17 21:34:27 [error] 15711#0: *443 [lua] content_by_lua(nginx.conf:84):8: **********38, 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 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:18 loop]
[TRACE 2 init_worker_by_lua:4 loop]
[TRACE 2 content_by_lua(nginx.conf:84):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
)'
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:18 loop]
[TRACE 2 init_worker_by_lua:4 loop]
[TRACE 2 content_by_lua(nginx.conf:84):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
)'
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 26: kill a light thread that is waiting on a semaphore (no resource) - pattern "[error]" should not match any line in error.log but matches line "2021/03/17 21:41:56 [error] 26508\#0: *718 [lua] init_worker_by_lua:14: sem: timeout, context: ngx.timer" (req 1) 2021/03/17 21:41:56 [debug] 26508\#0: http lua semaphore wait: 0000000008F04188, timeout: 1000, resources: 0, event posted: 0
2021/03/17 21:41:56 [debug] 26508\#0: *718 event timer add: 0: 1000:26625647
2021/03/17 21:41:56 [debug] 26508\#0: http lua semaphore wait yielding
2021/03/17 21:41:56 [debug] 26508\#0: *718 lua resume returned 1
2021/03/17 21:41:56 [debug] 26508\#0: *718 lua thread yielded
2021/03/17 21:41:56 [debug] 26508\#0: *718 lua run thread returned -2
2021/03/17 21:41:56 [debug] 26508\#0: worker cycle
'
semaphore.t TEST 18: semaphore wait post in access_by_lua - pattern "[error]" should not match any line in error.log but matches line "2021/03/17 21:41:57 [error] 26508\#0: *718 [lua] init_worker_by_lua:14: sem: timeout, context: ngx.timer" (req 0) 2021/03/17 21:41:57 [debug] 26508\#0: http lua semaphore wait: 0000000008F04188, timeout: 1000, resources: 0, event posted: 0
2021/03/17 21:41:57 [debug] 26508\#0: *718 event timer add: 0: 1000:26626647
2021/03/17 21:41:57 [debug] 26508\#0: http lua semaphore wait yielding
2021/03/17 21:41:57 [debug] 26508\#0: *718 lua resume returned 1
2021/03/17 21:41:57 [debug] 26508\#0: *718 lua thread yielded
2021/03/17 21:41:57 [debug] 26508\#0: *718 lua run thread returned -2
2021/03/17 21:41:57 [debug] 26508\#0: worker cycle
2021/03/17 21:41:57 [debug] 26508\#0: epoll timer: 1000
2021/03/17 21:41:57 [debug] 26598\#0: epoll add event: fd:14 op:1 ev:80002001
'
semaphore.t TEST 39: basic semaphore count (negative number) - pattern "[error]" should not match any line in error.log but matches line "2021/03/17 21:41:58 [error] 26508\#0: *718 [lua] init_worker_by_lua:14: sem: timeout, context: ngx.timer" (req 0) 2021/03/17 21:41:58 [debug] 26508\#0: http lua semaphore wait: 0000000008F04188, timeout: 1000, resources: 0, event posted: 0
2021/03/17 21:41:58 [debug] 26508\#0: *718 event timer add: 0: 1000:26627647
2021/03/17 21:41:58 [debug] 26508\#0: http lua semaphore wait yielding
2021/03/17 21:41:58 [debug] 26508\#0: *718 lua resume returned 1
2021/03/17 21:41:58 [debug] 26508\#0: *718 lua thread yielded
2021/03/17 21:41:58 [debug] 26508\#0: *718 lua run thread returned -2
2021/03/17 21:41:58 [debug] 26508\#0: worker cycle
2021/03/17 21:41:58 [debug] 26508\#0: epoll timer: 1000
2021/03/17 21:41:58 [debug] 26628\#0: epoll: fd:6 ev:0001 d:0000000009806BC0
'
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 14: semaphore in header_filter_by_lua (wait not allowed) - grep_error_log_out (req 0) @@ -1,2 +1,3 @@
+sem: timeout,
sem: 1,
sem: API disabled in the context of header_filter_by_lua*,
'
semaphore.t TEST 2: semaphore wait order - pattern "[error]" should not match any line in error.log but matches line "2021/03/17 21:42:03 [error] 26508\#0: *718 [lua] init_worker_by_lua:14: sem: timeout, context: ngx.timer" (req 1) 2021/03/17 21:42:03 [debug] 26508\#0: http lua semaphore wait: 0000000008F04188, timeout: 1000, resources: 0, event posted: 0
2021/03/17 21:42:03 [debug] 26508\#0: *718 event timer add: 0: 1000:26632647
2021/03/17 21:42:03 [debug] 26508\#0: http lua semaphore wait yielding
2021/03/17 21:42:03 [debug] 26508\#0: *718 lua resume returned 1
2021/03/17 21:42:03 [debug] 26508\#0: *718 lua thread yielded
2021/03/17 21:42:03 [debug] 26508\#0: *718 lua run thread returned -2
2021/03/17 21:42:03 [debug] 26508\#0: worker cycle
'
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
'
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
'
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 21: multi-line error log - response_body_like - response is expected (log lines: \#2 log level:6 log body:2021/03/17 21:45:43 [notice] 31425\#0: start worker processes log level:4 log body:2021/03/17 21:45:44 [error] 31467\#0: *63 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:2021/03/17 21:45:43 [notice] 31425#0: start worker processes
log level:4
log body:2021/03/17 21:45:44 [error] 31467#0: *63 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 3: client connected info - grep_error_log_out (req 0) 'client 127.0.0.1:24156 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:24160 connected to
capture log line:10
'
doesn't match '(?^:^client .*? connected to .*?
capture log line:2
$)'
stream/errlog.t TEST 13: filter log by level(ngx.CRIT) - response_body - response is expected (repeated req 0, req 0) got: 'log lines:1
'
expected: 'log lines:0
'
stream/errlog.t TEST 12: filter log by level(ngx.WARN) - response_body - response is expected (repeated req 0, req 0) got: 'log lines:3
'
expected: 'log lines:2
'
stream/errlog.t TEST 11: filter log by level(ngx.INFO) - response_body - response is expected (repeated req 0, req 0) got: 'log lines:4
'
expected: 'log lines:3
'
stream/errlog.t TEST 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:2021/03/17 21:45:54 [notice] 31425\#0: start worker processes log level:4 log body:2021/03/17 21:45:54 [error] 31857\#0: *453 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:2021/03/17 21:45:54 [notice] 31425#0: start worker processes
log level:4
log body:2021/03/17 21:45:54 [error] 31857#0: *453 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 20: fetch a few and generate a few, then fetch again (not overflown again) - response_body_like - response is expected (msg count: 3 log level:5 log body:2021/03/17 21:46:01 [warn] 32097\#0: *693 stream [lua] content_by_lua(nginx.conf:91):10: --> 85, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2021/03/17 21:46:01 [error] 32097\#0: *693 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:2021/03/17 21:46:01 [warn] 32097\#0: *693 stream [lua] content_by_lua(nginx.conf:91):10: --> 86, client: 127.0.0.1, server: 0.0.0.0:1985 msg count: 3 log level:4 log body:2021/03/17 21:46:01 [error] 32097\#0: *693 stream [lua] content_by_lua(nginx.conf:91):11: --> 86, client: 127.0.0.1, server: 0.0.0.0:1985 log level:5 log body:2021/03/17 21:46:01 [warn] 32097\#0: *693 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:2021/03/17 21:46:01 [error] 32097\#0: *693 stream [lua] content_by_lua(nginx.conf:91):11: --> 87, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2021/03/17 21:46:01 [error] 32097\#0: *693 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:2021/03/17 21:46:01 [error] 32097\#0: *693 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:2021/03/17 21:46:01 [error] 32097\#0: *693 stream [lua] content_by_lua(nginx.conf:91):24: howdy, something even newer!, client: 127.0.0.1, server: 0.0.0.0:1985) 'msg count: 3
log level:5
log body:2021/03/17 21:46:01 [warn] 32097#0: *693 stream [lua] content_by_lua(nginx.conf:91):10: --> 85, client: 127.0.0.1, server: 0.0.0.0:1985
log level:4
log body:2021/03/17 21:46:01 [error] 32097#0: *693 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:2021/03/17 21:46:01 [warn] 32097#0: *693 stream [lua] content_by_lua(nginx.conf:91):10: --> 86, client: 127.0.0.1, server: 0.0.0.0:1985
msg count: 3
log level:4
log body:2021/03/17 21:46:01 [error] 32097#0: *693 stream [lua] content_by_lua(nginx.conf:91):11: --> 86, client: 127.0.0.1, server: 0.0.0.0:1985
log level:5
log body:2021/03/17 21:46:01 [warn] 32097#0: *693 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:2021/03/17 21:46:01 [error] 32097#0: *693 stream [lua] content_by_lua(nginx.conf:91):11: --> 87, client: 127.0.0.1, server: 0.0.0.0:1985
log level:4
log body:2021/03/17 21:46:01 [error] 32097#0: *693 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:2021/03/17 21:46:01 [error] 32097#0: *693 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:2021/03/17 21:46:01 [error] 32097#0: *693 stream [lua] content_by_lua(nginx.conf:91):24: howdy, something even newer!, client: 127.0.0.1, server: 0.0.0.0:1985
'
doesn't match '(?^s:\Amsg count: 3
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 84, client: 127.0.0.1, server: 0.0.0.0:\d+
log level:5
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 85, client: 127.0.0.1, server: 0.0.0.0:\d+
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 85, client: 127.0.0.1, server: 0.0.0.0:\d+
msg count: 3
log level:5
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 86, client: 127.0.0.1, server: 0.0.0.0:\d+
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 86, client: 127.0.0.1, server: 0.0.0.0:\d+
log level:5
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 87, client: 127.0.0.1, server: 0.0.0.0:\d+
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 100, client: 127.0.0.1, server: 0.0.0.0:\d+
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: howdy, something new!, client: 127.0.0.1, server: 0.0.0.0:\d+
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: howdy, something even newer!, client: 127.0.0.1, server: 0.0.0.0:\d+
\z)'
stream/errlog.t TEST 20: fetch a few and generate a few, then fetch again (not overflown again) - response_body_like - response is expected (msg count: 3 log level:5 log body:2021/03/17 21:46:02 [warn] 32097\#0: *696 stream [lua] content_by_lua(nginx.conf:91):10: --> 85, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2021/03/17 21:46:02 [error] 32097\#0: *696 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:2021/03/17 21:46:02 [warn] 32097\#0: *696 stream [lua] content_by_lua(nginx.conf:91):10: --> 86, client: 127.0.0.1, server: 0.0.0.0:1985 msg count: 3 log level:4 log body:2021/03/17 21:46:02 [error] 32097\#0: *696 stream [lua] content_by_lua(nginx.conf:91):11: --> 86, client: 127.0.0.1, server: 0.0.0.0:1985 log level:5 log body:2021/03/17 21:46:02 [warn] 32097\#0: *696 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:2021/03/17 21:46:02 [error] 32097\#0: *696 stream [lua] content_by_lua(nginx.conf:91):11: --> 87, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2021/03/17 21:46:02 [error] 32097\#0: *696 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:2021/03/17 21:46:02 [error] 32097\#0: *696 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:2021/03/17 21:46:02 [error] 32097\#0: *696 stream [lua] content_by_lua(nginx.conf:91):24: howdy, something even newer!, client: 127.0.0.1, server: 0.0.0.0:1985) 'msg count: 3
log level:5
log body:2021/03/17 21:46:02 [warn] 32097#0: *696 stream [lua] content_by_lua(nginx.conf:91):10: --> 85, client: 127.0.0.1, server: 0.0.0.0:1985
log level:4
log body:2021/03/17 21:46:02 [error] 32097#0: *696 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:2021/03/17 21:46:02 [warn] 32097#0: *696 stream [lua] content_by_lua(nginx.conf:91):10: --> 86, client: 127.0.0.1, server: 0.0.0.0:1985
msg count: 3
log level:4
log body:2021/03/17 21:46:02 [error] 32097#0: *696 stream [lua] content_by_lua(nginx.conf:91):11: --> 86, client: 127.0.0.1, server: 0.0.0.0:1985
log level:5
log body:2021/03/17 21:46:02 [warn] 32097#0: *696 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:2021/03/17 21:46:02 [error] 32097#0: *696 stream [lua] content_by_lua(nginx.conf:91):11: --> 87, client: 127.0.0.1, server: 0.0.0.0:1985
log level:4
log body:2021/03/17 21:46:02 [error] 32097#0: *696 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:2021/03/17 21:46:02 [error] 32097#0: *696 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:2021/03/17 21:46:02 [error] 32097#0: *696 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/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 1: basic semaphore in uthread - pattern "[error]" should not match any line in error.log but matches line "2021/03/17 21:48:38 [error] 3078\#0: *165 stream [lua] init_worker_by_lua:14: sem: timeout, context: ngx.timer" (req 0) 2021/03/17 21:48:38 [debug] 3078\#0: stream lua semaphore wait: 000000000A0C74E8, timeout: 1000, resources: 0, event posted: 0
2021/03/17 21:48:38 [debug] 3078\#0: *165 event timer add: 0: 1000:27026856
2021/03/17 21:48:38 [debug] 3078\#0: stream lua semaphore wait yielding
2021/03/17 21:48:38 [debug] 3078\#0: *165 lua resume returned 1
2021/03/17 21:48:38 [debug] 3078\#0: *165 lua thread yielded
2021/03/17 21:48:38 [debug] 3078\#0: *165 lua run thread returned -2
2021/03/17 21:48:38 [debug] 3078\#0: worker cycle
'
stream/semaphore.t TEST 22: semaphore wait time is zero - pattern "[error]" should not match any line in error.log but matches line "2021/03/17 21:48:40 [error] 3078\#0: *165 stream [lua] init_worker_by_lua:14: sem: timeout, context: ngx.timer" (req 0) 2021/03/17 21:48:40 [error] 3078\#0: *165 stream [lua] init_worker_by_lua:18: sem: 3 times, context: ngx.timer
2021/03/17 21:48:40 [debug] 3078\#0: stream lua semaphore wait: 000000000A0C74E8, timeout: 1000, resources: 0, event posted: 0
2021/03/17 21:48:40 [debug] 3078\#0: *165 event timer add: 0: 1000:27028856
2021/03/17 21:48:40 [debug] 3078\#0: stream lua semaphore wait yielding
2021/03/17 21:48:40 [debug] 3078\#0: *165 lua resume returned 1
2021/03/17 21:48:40 [debug] 3078\#0: *165 lua thread yielded
2021/03/17 21:48:40 [debug] 3078\#0: *165 lua run thread returned -2
2021/03/17 21:48:40 [debug] 3078\#0: worker cycle
2021/03/17 21:48:40 [debug] 3078\#0: epoll timer: 1000
'
stream/semaphore.t TEST 22: semaphore wait time is zero - pattern "[error]" should not match any line in error.log but matches line "2021/03/17 21:48:40 [error] 3078\#0: *165 stream [lua] init_worker_by_lua:18: sem: 3 times, context: ngx.timer" (req 0) 2021/03/17 21:48:40 [debug] 3078\#0: stream lua semaphore wait: 000000000A0C74E8, timeout: 1000, resources: 0, event posted: 0
2021/03/17 21:48:40 [debug] 3078\#0: *165 event timer add: 0: 1000:27028856
2021/03/17 21:48:40 [debug] 3078\#0: stream lua semaphore wait yielding
2021/03/17 21:48:40 [debug] 3078\#0: *165 lua resume returned 1
2021/03/17 21:48:40 [debug] 3078\#0: *165 lua thread yielded
2021/03/17 21:48:40 [debug] 3078\#0: *165 lua run thread returned -2
2021/03/17 21:48:40 [debug] 3078\#0: worker cycle
2021/03/17 21:48:40 [debug] 3078\#0: epoll timer: 1000
2021/03/17 21:48:39 [debug] 2916\#0: malloc: 000000000888BDD0:2048
'
stream/semaphore.t TEST 29: basic semaphore count (negative number) - pattern "[error]" should not match any line in error.log but matches line "2021/03/17 21:48:43 [error] 3078\#0: *165 stream [lua] init_worker_by_lua:14: sem: timeout, context: ngx.timer" (req 0) 2021/03/17 21:48:43 [error] 3078\#0: *165 stream [lua] init_worker_by_lua:18: sem: 3 times, context: ngx.timer
2021/03/17 21:48:43 [debug] 3078\#0: stream lua semaphore wait: 000000000A0C74E8, timeout: 1000, resources: 0, event posted: 0
2021/03/17 21:48:43 [debug] 3078\#0: *165 event timer add: 0: 1000:27031864
2021/03/17 21:48:43 [debug] 3078\#0: stream lua semaphore wait yielding
2021/03/17 21:48:43 [debug] 3078\#0: *165 lua resume returned 1
2021/03/17 21:48:43 [debug] 3078\#0: *165 lua thread yielded
2021/03/17 21:48:43 [debug] 3078\#0: *165 lua run thread returned -2
2021/03/17 21:48:43 [debug] 3078\#0: worker cycle
2021/03/17 21:48:43 [debug] 3078\#0: epoll timer: 1000
'
stream/semaphore.t TEST 29: basic semaphore count (negative number) - pattern "[error]" should not match any line in error.log but matches line "2021/03/17 21:48:43 [error] 3078\#0: *165 stream [lua] init_worker_by_lua:18: sem: 3 times, context: ngx.timer" (req 0) 2021/03/17 21:48:43 [debug] 3078\#0: stream lua semaphore wait: 000000000A0C74E8, timeout: 1000, resources: 0, event posted: 0
2021/03/17 21:48:43 [debug] 3078\#0: *165 event timer add: 0: 1000:27031864
2021/03/17 21:48:43 [debug] 3078\#0: stream lua semaphore wait yielding
2021/03/17 21:48:43 [debug] 3078\#0: *165 lua resume returned 1
2021/03/17 21:48:43 [debug] 3078\#0: *165 lua thread yielded
2021/03/17 21:48:43 [debug] 3078\#0: *165 lua run thread returned -2
2021/03/17 21:48:43 [debug] 3078\#0: worker cycle
2021/03/17 21:48:43 [debug] 3078\#0: epoll timer: 1000
2021/03/17 21:48:43 [debug] 3258\#0: *368 http finalize request: 0, "/t?" a:1, c:1
'
stream/semaphore.t TEST 2: semaphore wait order - pattern "[error]" should not match any line in error.log but matches line "2021/03/17 21:48:44 [error] 3078\#0: *165 stream [lua] init_worker_by_lua:14: sem: timeout, context: ngx.timer" (req 1) 2021/03/17 21:48:44 [debug] 3078\#0: stream lua semaphore wait: 000000000A0C74E8, timeout: 1000, resources: 0, event posted: 0
2021/03/17 21:48:44 [debug] 3078\#0: *165 event timer add: 0: 1000:27032864
2021/03/17 21:48:44 [debug] 3078\#0: stream lua semaphore wait yielding
2021/03/17 21:48:44 [debug] 3078\#0: *165 lua resume returned 1
2021/03/17 21:48:44 [debug] 3078\#0: *165 lua thread yielded
2021/03/17 21:48:44 [debug] 3078\#0: *165 lua run thread returned -2
2021/03/17 21:48:44 [debug] 3078\#0: worker cycle
2021/03/17 21:48:44 [debug] 3078\#0: epoll timer: 1000
2021/03/17 21:48:44 [debug] 3288\#0: timer delta: 12
'
stream/semaphore.t TEST 16: kill a light thread that is waiting on a semaphore (no resource) - pattern "[error]" should not match any line in error.log but matches line "2021/03/17 21:48:45 [error] 3078\#0: *165 stream [lua] init_worker_by_lua:14: sem: timeout, context: ngx.timer" (req 0) 2021/03/17 21:48:45 [debug] 3078\#0: stream lua semaphore wait: 000000000A0C74E8, timeout: 1000, resources: 0, event posted: 0
2021/03/17 21:48:45 [debug] 3078\#0: *165 event timer add: 0: 1000:27033864
2021/03/17 21:48:45 [debug] 3078\#0: stream lua semaphore wait yielding
2021/03/17 21:48:45 [debug] 3078\#0: *165 lua resume returned 1
2021/03/17 21:48:45 [debug] 3078\#0: *165 lua thread yielded
2021/03/17 21:48:45 [debug] 3078\#0: *165 lua run thread returned -2
2021/03/17 21:48:45 [debug] 3078\#0: worker cycle
2021/03/17 21:48:45 [debug] 3078\#0: epoll timer: 1000
2021/03/17 21:48:45 [debug] 3318\#0: epoll: fd:7 ev:0001 d:00000000087F5D70
'
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 "2021/03/17 21:48:46 [error] 3078\#0: *165 stream [lua] init_worker_by_lua:14: sem: timeout, context: ngx.timer" (req 0) 2021/03/17 21:48:46 [error] 3078\#0: *165 stream [lua] init_worker_by_lua:18: sem: 3 times, context: ngx.timer
2021/03/17 21:48:46 [debug] 3078\#0: stream lua semaphore wait: 000000000A0C74E8, timeout: 1000, resources: 0, event posted: 0
2021/03/17 21:48:46 [debug] 3078\#0: *165 event timer add: 0: 1000:27034864
2021/03/17 21:48:46 [debug] 3078\#0: stream lua semaphore wait yielding
2021/03/17 21:48:46 [debug] 3078\#0: *165 lua resume returned 1
2021/03/17 21:48:46 [debug] 3078\#0: *165 lua thread yielded
2021/03/17 21:48:46 [debug] 3078\#0: *165 lua run thread returned -2
2021/03/17 21:48:46 [debug] 3078\#0: worker cycle
2021/03/17 21:48:46 [debug] 3078\#0: epoll timer: 1000
'
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 "2021/03/17 21:48:46 [error] 3078\#0: *165 stream [lua] init_worker_by_lua:18: sem: 3 times, context: ngx.timer" (req 0) 2021/03/17 21:48:46 [debug] 3078\#0: stream lua semaphore wait: 000000000A0C74E8, timeout: 1000, resources: 0, event posted: 0
2021/03/17 21:48:46 [debug] 3078\#0: *165 event timer add: 0: 1000:27034864
2021/03/17 21:48:46 [debug] 3078\#0: stream lua semaphore wait yielding
2021/03/17 21:48:46 [debug] 3078\#0: *165 lua resume returned 1
2021/03/17 21:48:46 [debug] 3078\#0: *165 lua thread yielded
2021/03/17 21:48:46 [debug] 3078\#0: *165 lua run thread returned -2
2021/03/17 21:48:46 [debug] 3078\#0: worker cycle
2021/03/17 21:48:46 [debug] 3078\#0: epoll timer: 1000
2021/03/17 21:48:45 [debug] 2916\#0: malloc: 000000000983DBA0:2048
'
stream/semaphore.t TEST 9: semaphore in content_by_lua (all allowed) - grep_error_log_out (req 0) @@ -1,2 +1,4 @@
sem: timeout,
+sem: 3 times,
+sem: timeout,
sem: 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 "2021/03/17 21:48:51 [error] 3078\#0: *165 stream [lua] init_worker_by_lua:14: sem: timeout, context: ngx.timer" (req 0) 2021/03/17 21:48:51 [debug] 3078\#0: stream lua semaphore wait: 000000000A0C74E8, timeout: 1000, resources: 0, event posted: 0
2021/03/17 21:48:51 [debug] 3078\#0: *165 event timer add: 0: 1000:27039868
2021/03/17 21:48:51 [debug] 3078\#0: stream lua semaphore wait yielding
2021/03/17 21:48:51 [debug] 3078\#0: *165 lua resume returned 1
2021/03/17 21:48:51 [debug] 3078\#0: *165 lua thread yielded
2021/03/17 21:48:51 [debug] 3078\#0: *165 lua run thread returned -2
2021/03/17 21:48:51 [debug] 3078\#0: worker cycle
2021/03/17 21:48:51 [debug] 3078\#0: epoll timer: 1000
2021/03/17 21:48:51 [debug] 3498\#0: epoll: fd:7 ev:0001 d:000000000876E090
'
stream/semaphore.t TEST 10: semaphore in log_by_lua (wait not allowed) - grep_error_log_out (req 0) @@ -1,2 +1,4 @@
+sem: timeout,
+sem: 3 times,
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,3 @@
sem: 1 while returning text,
sem: API disabled in the context of log_by_lua* while returning text,
+sem: timeout,
'
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 "2021/03/17 21:48:54 [error] 3078\#0: *165 stream [lua] init_worker_by_lua:14: sem: timeout, context: ngx.timer" (req 0) 2021/03/17 21:48:54 [debug] 3078\#0: stream lua semaphore wait: 000000000A0C74E8, timeout: 1000, resources: 0, event posted: 0
2021/03/17 21:48:54 [debug] 3078\#0: *165 event timer add: 0: 1000:27042872
2021/03/17 21:48:54 [debug] 3078\#0: stream lua semaphore wait yielding
2021/03/17 21:48:54 [debug] 3078\#0: *165 lua resume returned 1
2021/03/17 21:48:54 [debug] 3078\#0: *165 lua thread yielded
2021/03/17 21:48:54 [debug] 3078\#0: *165 lua run thread returned -2
2021/03/17 21:48:54 [debug] 3078\#0: worker cycle
2021/03/17 21:48:54 [debug] 3078\#0: epoll timer: 1000
2021/03/17 21:48:54 [debug] 3588\#0: epoll: fd:7 ev:0001 d:0000000008773910
'
stream/semaphore.t TEST 15: two thread wait for each other - pattern "[error]" should not match any line in error.log but matches line "2021/03/17 21:48:56 [error] 3078\#0: *165 stream [lua] init_worker_by_lua:14: sem: timeout, context: ngx.timer" (req 0) 2021/03/17 21:48:56 [debug] 3078\#0: stream lua semaphore wait: 000000000A0C74E8, timeout: 1000, resources: 0, event posted: 0
2021/03/17 21:48:56 [debug] 3078\#0: *165 event timer add: 0: 1000:27044884
2021/03/17 21:48:56 [debug] 3078\#0: stream lua semaphore wait yielding
2021/03/17 21:48:56 [debug] 3078\#0: *165 lua resume returned 1
2021/03/17 21:48:56 [debug] 3078\#0: *165 lua thread yielded
2021/03/17 21:48:56 [debug] 3078\#0: *165 lua run thread returned -2
2021/03/17 21:48:56 [debug] 3078\#0: worker cycle
2021/03/17 21:48:56 [debug] 3078\#0: epoll timer: 1000
2021/03/17 21:48:55 [debug] 2916\#0: child: 0 3078 e:1 t:0 d:0 r:1 j:0
'
stream/semaphore.t TEST 28: basic semaphore count - pattern "[error]" should not match any line in error.log but matches line "2021/03/17 21:48:57 [error] 3078\#0: *165 stream [lua] init_worker_by_lua:14: sem: timeout, context: ngx.timer" (req 0) 2021/03/17 21:48:57 [debug] 3708\#0: epoll timer: 68000
2021/03/17 21:48:57 [debug] 3708\#0: epoll: fd:8 ev:0001 d:000000000890E3C0
2021/03/17 21:48:57 [debug] 3078\#0: stream lua semaphore wait: 000000000A0C74E8, timeout: 1000, resources: 0, event posted: 0
2021/03/17 21:48:57 [debug] 3078\#0: *165 event timer add: 0: 1000:27045884
2021/03/17 21:48:57 [debug] 3078\#0: stream lua semaphore wait yielding
2021/03/17 21:48:57 [debug] 3078\#0: *165 lua resume returned 1
2021/03/17 21:48:57 [debug] 3078\#0: *165 lua thread yielded
2021/03/17 21:48:57 [debug] 3078\#0: *165 lua run thread returned -2
2021/03/17 21:48:57 [debug] 3078\#0: worker cycle
'
stream/semaphore.t TEST 7: semaphore in init_worker_by_lua (new and post) - pattern "[error]" should not match any line in error.log but matches line "2021/03/17 21:48:59 [error] 3078\#0: *165 stream [lua] init_worker_by_lua:14: sem: timeout, context: ngx.timer" (req 1) 2021/03/17 21:48:59 [debug] 3078\#0: stream lua semaphore wait: 000000000A0C74E8, timeout: 1000, resources: 0, event posted: 0
2021/03/17 21:48:59 [debug] 3078\#0: *165 event timer add: 0: 1000:27047884
2021/03/17 21:48:59 [debug] 3078\#0: stream lua semaphore wait yielding
2021/03/17 21:48:59 [debug] 3078\#0: *165 lua resume returned 1
2021/03/17 21:48:59 [debug] 3078\#0: *165 lua thread yielded
2021/03/17 21:48:59 [debug] 3078\#0: *165 lua run thread returned -2
2021/03/17 21:48:59 [debug] 3078\#0: worker cycle
'
stream/time.t TEST 1: ngx.now() - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +1,3 @@
true
>= 0.099: true
-< 0.11: true
+< 0.11: false
'
time.t TEST 1: ngx.now() - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +1,3 @@
true
>= 0.099: true
-< 0.11: true
+< 0.11: false
'

Warnings

Go back to the index page.