(This page was automatically generated by the tools in the opsboy project on 04:52:01 11-Oct-2024 GMT.)

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

Summary

Commit Testing Time Unexpected
Failures
Expected
Failures
Files Tests Elapsed Time
5af64033 2021-03-17 14:20:17 GMT 0 50 79 8735 446 sec

LuaJIT

LuaJIT 2.1.0-beta3, commit 70f88773

OpenSSL

OpenSSL 1.1.1h 22 Sep 2020

Compilation Errors

Segmentation Faults

Unexpected Failures

(none)

Expected Failures

File Name Details
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 22:18:53 [notice] 3932\#0: start worker processes log level:7 log body:2021/03/17 22:18:53 [info] 3939\#0: *5 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/03/17 22:18:53 [info] 3939\#0: *6 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/03/17 22:18:53 [info] 3939\#0: *7 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/03/17 22:18:53 [info] 3939\#0: *8 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/03/17 22:18:53 [info] 3939\#0: *9 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/03/17 22:18:53 [info] 3939\#0: *10 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/03/17 22:18:53 [info] 3939\#0: *11 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/03/17 22:18:53 [info] 3939\#0: *12 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/03/17 22:18:53 [info] 3939\#0: *13 client 127.0.0.1 closed keepalive connection) 'log lines: #10
log level:6
log body:2021/03/17 22:18:53 [notice] 3932#0: start worker processes
log level:7
log body:2021/03/17 22:18:53 [info] 3939#0: *5 client 127.0.0.1 closed keepalive connection
log level:7
log body:2021/03/17 22:18:53 [info] 3939#0: *6 client 127.0.0.1 closed keepalive connection
log level:7
log body:2021/03/17 22:18:53 [info] 3939#0: *7 client 127.0.0.1 closed keepalive connection
log level:7
log body:2021/03/17 22:18:53 [info] 3939#0: *8 client 127.0.0.1 closed keepalive connection
log level:7
log body:2021/03/17 22:18:53 [info] 3939#0: *9 client 127.0.0.1 closed keepalive connection
log level:7
log body:2021/03/17 22:18:53 [info] 3939#0: *10 client 127.0.0.1 closed keepalive connection
log level:7
log body:2021/03/17 22:18:53 [info] 3939#0: *11 client 127.0.0.1 closed keepalive connection
log level:7
log body:2021/03/17 22:18:53 [info] 3939#0: *12 client 127.0.0.1 closed keepalive connection
log level:7
log body:2021/03/17 22:18:53 [info] 3939#0: *13 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 22:18:53 [info] 3939\#0: *14 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/03/17 22:18:53 [info] 3939\#0: *15 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/03/17 22:18:53 [info] 3939\#0: *16 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/03/17 22:18:53 [info] 3939\#0: *17 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/03/17 22:18:53 [info] 3939\#0: *18 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/03/17 22:18:53 [info] 3939\#0: *19 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/03/17 22:18:53 [info] 3939\#0: *20 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/03/17 22:18:53 [info] 3939\#0: *21 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/03/17 22:18:53 [info] 3939\#0: *22 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/03/17 22:18:53 [info] 3939\#0: *23 client 127.0.0.1 closed keepalive connection) 'log lines: #10
log level:7
log body:2021/03/17 22:18:53 [info] 3939#0: *14 client 127.0.0.1 closed keepalive connection
log level:7
log body:2021/03/17 22:18:53 [info] 3939#0: *15 client 127.0.0.1 closed keepalive connection
log level:7
log body:2021/03/17 22:18:53 [info] 3939#0: *16 client 127.0.0.1 closed keepalive connection
log level:7
log body:2021/03/17 22:18:53 [info] 3939#0: *17 client 127.0.0.1 closed keepalive connection
log level:7
log body:2021/03/17 22:18:53 [info] 3939#0: *18 client 127.0.0.1 closed keepalive connection
log level:7
log body:2021/03/17 22:18:53 [info] 3939#0: *19 client 127.0.0.1 closed keepalive connection
log level:7
log body:2021/03/17 22:18:53 [info] 3939#0: *20 client 127.0.0.1 closed keepalive connection
log level:7
log body:2021/03/17 22:18:53 [info] 3939#0: *21 client 127.0.0.1 closed keepalive connection
log level:7
log body:2021/03/17 22:18:53 [info] 3939#0: *22 client 127.0.0.1 closed keepalive connection
log level:7
log body:2021/03/17 22:18:53 [info] 3939#0: *23 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 11: filter log by level(ngx.INFO) - response_body - response is expected (repeated req 0, req 0) got: 'log lines:10
'
expected: 'log lines:3
'
errlog.t TEST 11: filter log by level(ngx.INFO) - response_body - response is expected (repeated req 1, req 0) got: 'log lines:10
'
expected: 'log lines:3
'
errlog.t TEST 12: filter log by level(ngx.WARN) - response_body - response is expected (repeated req 0, req 0) got: 'log lines:10
'
expected: 'log lines:2
'
errlog.t TEST 12: filter log by level(ngx.WARN) - response_body - response is expected (repeated req 1, req 0) got: 'log lines:10
'
expected: 'log lines:2
'
errlog.t TEST 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 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 29: ringbuf overflow bug - response_body_like - response is expected (log level: 4 log time: 1616019537.907 log body: 2021/03/17 22:18:57 [error] 4311\#0: *95 [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: 1616019537.907 log body: 2021/03/17 22:18:57 [error] 4311\#0: *95 [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: 1616019537.907 log body: 2021/03/17 22:18:57 [error] 4311\#0: *95 [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: 1616019537.907 log body: 2021/03/17 22:18:57 [error] 4311\#0: *95 [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: 1616019537.907 log body: 2021/03/17 22:18:57 [error] 4311\#0: *95 [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: 1616019537.907 log body: 2021/03/17 22:18:57 [error] 4311\#0: *95 [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: 1616019537.907 log body: 2021/03/17 22:18:57 [error] 4311\#0: *95 [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: 1616019537.907 log body: 2021/03/17 22:18:57 [error] 4311\#0: *95 [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: 1616019537.907 log body: 2021/03/17 22:18:57 [error] 4311\#0: *95 [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: 1616019537.907 log body: 2021/03/17 22:18:57 [error] 4311\#0: *95 [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: 1616019537.907
log body: 2021/03/17 22:18:57 [error] 4311#0: *95 [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: 1616019537.907
log body: 2021/03/17 22:18:57 [error] 4311#0: *95 [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: 1616019537.907
log body: 2021/03/17 22:18:57 [error] 4311#0: *95 [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: 1616019537.907
log body: 2021/03/17 22:18:57 [error] 4311#0: *95 [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: 1616019537.907
log body: 2021/03/17 22:18:57 [error] 4311#0: *95 [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: 1616019537.907
log body: 2021/03/17 22:18:57 [error] 4311#0: *95 [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: 1616019537.907
log body: 2021/03/17 22:18:57 [error] 4311#0: *95 [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: 1616019537.907
log body: 2021/03/17 22:18:57 [error] 4311#0: *95 [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: 1616019537.907
log body: 2021/03/17 22:18:57 [error] 4311#0: *95 [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: 1616019537.907
log body: 2021/03/17 22:18:57 [error] 4311#0: *95 [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: 1616019537.955 log body: 2021/03/17 22:18:57 [error] 4311\#0: *96 [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: 1616019537.955 log body: 2021/03/17 22:18:57 [error] 4311\#0: *96 [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: 1616019537.955 log body: 2021/03/17 22:18:57 [error] 4311\#0: *96 [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: 1616019537.955 log body: 2021/03/17 22:18:57 [error] 4311\#0: *96 [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: 1616019537.955 log body: 2021/03/17 22:18:57 [error] 4311\#0: *96 [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: 1616019537.955 log body: 2021/03/17 22:18:57 [error] 4311\#0: *96 [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: 1616019537.955 log body: 2021/03/17 22:18:57 [error] 4311\#0: *96 [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: 1616019537.955 log body: 2021/03/17 22:18:57 [error] 4311\#0: *96 [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: 1616019537.955 log body: 2021/03/17 22:18:57 [error] 4311\#0: *96 [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: 1616019537.955 log body: 2021/03/17 22:18:57 [error] 4311\#0: *96 [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: 1616019537.955
log body: 2021/03/17 22:18:57 [error] 4311#0: *96 [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: 1616019537.955
log body: 2021/03/17 22:18:57 [error] 4311#0: *96 [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: 1616019537.955
log body: 2021/03/17 22:18:57 [error] 4311#0: *96 [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: 1616019537.955
log body: 2021/03/17 22:18:57 [error] 4311#0: *96 [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: 1616019537.955
log body: 2021/03/17 22:18:57 [error] 4311#0: *96 [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: 1616019537.955
log body: 2021/03/17 22:18:57 [error] 4311#0: *96 [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: 1616019537.955
log body: 2021/03/17 22:18:57 [error] 4311#0: *96 [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: 1616019537.955
log body: 2021/03/17 22:18:57 [error] 4311#0: *96 [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: 1616019537.955
log body: 2021/03/17 22:18:57 [error] 4311#0: *96 [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: 1616019537.955
log body: 2021/03/17 22:18:57 [error] 4311#0: *96 [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 TEST 16: check the captured error log body - response_body_like - response is expected (log level:6 log body:2021/03/17 22:19:00 [notice] 4222\#0: start worker processes log level:7 log body:2021/03/17 22:19:00 [info] 4535\#0: *268 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/03/17 22:19:00 [info] 4535\#0: *269 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/03/17 22:19:00 [info] 4535\#0: *270 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/03/17 22:19:00 [info] 4535\#0: *271 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/03/17 22:19:00 [info] 4535\#0: *272 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/03/17 22:19:00 [info] 4535\#0: *273 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/03/17 22:19:00 [info] 4535\#0: *274 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/03/17 22:19:00 [info] 4535\#0: *275 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/03/17 22:19:00 [info] 4535\#0: *276 client 127.0.0.1 closed keepalive connection) 'log level:6
log body:2021/03/17 22:19:00 [notice] 4222#0: start worker processes
log level:7
log body:2021/03/17 22:19:00 [info] 4535#0: *268 client 127.0.0.1 closed keepalive connection
log level:7
log body:2021/03/17 22:19:00 [info] 4535#0: *269 client 127.0.0.1 closed keepalive connection
log level:7
log body:2021/03/17 22:19:00 [info] 4535#0: *270 client 127.0.0.1 closed keepalive connection
log level:7
log body:2021/03/17 22:19:00 [info] 4535#0: *271 client 127.0.0.1 closed keepalive connection
log level:7
log body:2021/03/17 22:19:00 [info] 4535#0: *272 client 127.0.0.1 closed keepalive connection
log level:7
log body:2021/03/17 22:19:00 [info] 4535#0: *273 client 127.0.0.1 closed keepalive connection
log level:7
log body:2021/03/17 22:19:00 [info] 4535#0: *274 client 127.0.0.1 closed keepalive connection
log level:7
log body:2021/03/17 22:19:00 [info] 4535#0: *275 client 127.0.0.1 closed keepalive connection
log level:7
log body:2021/03/17 22:19:00 [info] 4535#0: *276 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 22:19:00 [info] 4535\#0: *277 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/03/17 22:19:00 [info] 4535\#0: *278 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/03/17 22:19:00 [info] 4535\#0: *279 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/03/17 22:19:00 [info] 4535\#0: *280 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/03/17 22:19:00 [info] 4535\#0: *281 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/03/17 22:19:00 [info] 4535\#0: *282 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/03/17 22:19:00 [info] 4535\#0: *283 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/03/17 22:19:00 [info] 4535\#0: *284 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/03/17 22:19:00 [info] 4535\#0: *285 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/03/17 22:19:00 [info] 4535\#0: *286 client 127.0.0.1 closed keepalive connection) 'log level:7
log body:2021/03/17 22:19:00 [info] 4535#0: *277 client 127.0.0.1 closed keepalive connection
log level:7
log body:2021/03/17 22:19:00 [info] 4535#0: *278 client 127.0.0.1 closed keepalive connection
log level:7
log body:2021/03/17 22:19:00 [info] 4535#0: *279 client 127.0.0.1 closed keepalive connection
log level:7
log body:2021/03/17 22:19:00 [info] 4535#0: *280 client 127.0.0.1 closed keepalive connection
log level:7
log body:2021/03/17 22:19:00 [info] 4535#0: *281 client 127.0.0.1 closed keepalive connection
log level:7
log body:2021/03/17 22:19:00 [info] 4535#0: *282 client 127.0.0.1 closed keepalive connection
log level:7
log body:2021/03/17 22:19:00 [info] 4535#0: *283 client 127.0.0.1 closed keepalive connection
log level:7
log body:2021/03/17 22:19:00 [info] 4535#0: *284 client 127.0.0.1 closed keepalive connection
log level:7
log body:2021/03/17 22:19:00 [info] 4535#0: *285 client 127.0.0.1 closed keepalive connection
log level:7
log body:2021/03/17 22:19:00 [info] 4535#0: *286 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 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 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 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 22:19:01 [notice] 4222\#0: start worker processes log level:7 log body:2021/03/17 22:19:01 [info] 4649\#0: *362 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/03/17 22:19:01 [info] 4649\#0: *363 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/03/17 22:19:01 [info] 4649\#0: *364 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/03/17 22:19:01 [info] 4649\#0: *365 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/03/17 22:19:01 [info] 4649\#0: *367 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/03/17 22:19:01 [info] 4649\#0: *368 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/03/17 22:19:01 [info] 4649\#0: *369 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/03/17 22:19:02 [info] 4649\#0: *370 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/03/17 22:19:02 [info] 4649\#0: *371 client 127.0.0.1 closed keepalive connection end maybe log lines: \#10 log level:7 log body:2021/03/17 22:19:02 [info] 4649\#0: *372 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/03/17 22:19:02 [info] 4649\#0: *373 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/03/17 22:19:02 [info] 4649\#0: *374 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/03/17 22:19:02 [info] 4649\#0: *375 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/03/17 22:19:02 [info] 4649\#0: *376 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/03/17 22:19:02 [info] 4649\#0: *377 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/03/17 22:19:02 [info] 4649\#0: *378 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/03/17 22:19:02 [info] 4649\#0: *379 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/03/17 22:19:02 [info] 4649\#0: *380 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/03/17 22:19:02 [info] 4649\#0: *381 client 127.0.0.1 closed keepalive connection end) 'maybe log lines: #10
log level:6
log body:2021/03/17 22:19:01 [notice] 4222#0: start worker processes
log level:7
log body:2021/03/17 22:19:01 [info] 4649#0: *362 client 127.0.0.1 closed keepalive connection
log level:7
log body:2021/03/17 22:19:01 [info] 4649#0: *363 client 127.0.0.1 closed keepalive connection
log level:7
log body:2021/03/17 22:19:01 [info] 4649#0: *364 client 127.0.0.1 closed keepalive connection
log level:7
log body:2021/03/17 22:19:01 [info] 4649#0: *365 client 127.0.0.1 closed keepalive connection
log level:7
log body:2021/03/17 22:19:01 [info] 4649#0: *367 client 127.0.0.1 closed keepalive connection
log level:7
log body:2021/03/17 22:19:01 [info] 4649#0: *368 client 127.0.0.1 closed keepalive connection
log level:7
log body:2021/03/17 22:19:01 [info] 4649#0: *369 client 127.0.0.1 closed keepalive connection
log level:7
log body:2021/03/17 22:19:02 [info] 4649#0: *370 client 127.0.0.1 closed keepalive connection
log level:7
log body:2021/03/17 22:19:02 [info] 4649#0: *371 client 127.0.0.1 closed keepalive connection
end
maybe log lines: #10
log level:7
log body:2021/03/17 22:19:02 [info] 4649#0: *372 client 127.0.0.1 closed keepalive connection
log level:7
log body:2021/03/17 22:19:02 [info] 4649#0: *373 client 127.0.0.1 closed keepalive connection
log level:7
log body:2021/03/17 22:19:02 [info] 4649#0: *374 client 127.0.0.1 closed keepalive connection
log level:7
log body:2021/03/17 22:19:02 [info] 4649#0: *375 client 127.0.0.1 closed keepalive connection
log level:7
log body:2021/03/17 22:19:02 [info] 4649#0: *376 client 127.0.0.1 closed keepalive connection
log level:7
log body:2021/03/17 22:19:02 [info] 4649#0: *377 client 127.0.0.1 closed keepalive connection
log level:7
log body:2021/03/17 22:19:02 [info] 4649#0: *378 client 127.0.0.1 closed keepalive connection
log level:7
log body:2021/03/17 22:19:02 [info] 4649#0: *379 client 127.0.0.1 closed keepalive connection
log level:7
log body:2021/03/17 22:19:02 [info] 4649#0: *380 client 127.0.0.1 closed keepalive connection
log level:7
log body:2021/03/17 22:19:02 [info] 4649#0: *381 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: \#7 log level:7 log body:2021/03/17 22:19:02 [info] 4649\#0: *382 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/03/17 22:19:02 [info] 4649\#0: *383 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/03/17 22:19:02 [info] 4649\#0: *384 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/03/17 22:19:02 [info] 4649\#0: *385 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/03/17 22:19:02 [info] 4649\#0: *386 client 127.0.0.1 closed keepalive connection log level:4 log body:2021/03/17 22:19:02 [error] 4649\#0: *387 [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 22:19:02 [error] 4649\#0: *388 [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: \#7 end) 'maybe log lines: #7
log level:7
log body:2021/03/17 22:19:02 [info] 4649#0: *382 client 127.0.0.1 closed keepalive connection
log level:7
log body:2021/03/17 22:19:02 [info] 4649#0: *383 client 127.0.0.1 closed keepalive connection
log level:7
log body:2021/03/17 22:19:02 [info] 4649#0: *384 client 127.0.0.1 closed keepalive connection
log level:7
log body:2021/03/17 22:19:02 [info] 4649#0: *385 client 127.0.0.1 closed keepalive connection
log level:7
log body:2021/03/17 22:19:02 [info] 4649#0: *386 client 127.0.0.1 closed keepalive connection
log level:4
log body:2021/03/17 22:19:02 [error] 4649#0: *387 [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 22:19:02 [error] 4649#0: *388 [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: #7
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 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
)'
semaphore.t TEST 37: semaphore_mm free block (load <= 50% & the on the older side) - grep_error_log_out (req 0) got: 'free semaphore block
'
expected: ''
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 "2021/03/17 22:22:16 [error] 15122\#0: *570 [lua] init_worker_by_lua:14: sem: timeout, context: ngx.timer" (req 0) 2021/03/17 22:22:16 [debug] 15122\#0: http lua semaphore wait: 0000000002297B28, timeout: 1000, resources: 0, event posted: 0
2021/03/17 22:22:16 [debug] 15122\#0: *570 event timer add: 0: 1000:29045328
2021/03/17 22:22:16 [debug] 15122\#0: http lua semaphore wait yielding
2021/03/17 22:22:16 [debug] 15122\#0: *570 lua resume returned 1
2021/03/17 22:22:16 [debug] 15122\#0: *570 lua thread yielded
2021/03/17 22:22:16 [debug] 15122\#0: *570 lua run thread returned -2
2021/03/17 22:22:16 [debug] 15122\#0: worker cycle
2021/03/17 22:22:16 [debug] 15122\#0: epoll timer: 1000
2021/03/17 22:22:16 [debug] 15180\#0: epoll: fd:6 ev:0001 d:0000000002297B10
'
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 "2021/03/17 22:22:18 [error] 15122\#0: *570 [lua] init_worker_by_lua:14: sem: timeout, context: ngx.timer" (req 0) 2021/03/17 22:22:18 [debug] 15122\#0: http lua semaphore wait: 0000000002297B28, timeout: 1000, resources: 0, event posted: 0
2021/03/17 22:22:18 [debug] 15122\#0: *570 event timer add: 0: 1000:29047328
2021/03/17 22:22:18 [debug] 15122\#0: http lua semaphore wait yielding
2021/03/17 22:22:18 [debug] 15122\#0: *570 lua resume returned 1
2021/03/17 22:22:18 [debug] 15122\#0: *570 lua thread yielded
2021/03/17 22:22:18 [debug] 15122\#0: *570 lua run thread returned -2
2021/03/17 22:22:18 [debug] 15122\#0: worker cycle
'
semaphore.t TEST 4: basic semaphore in subrequest - pattern "[error]" should not match any line in error.log but matches line "2021/03/17 22:22:19 [error] 15122\#0: *570 [lua] init_worker_by_lua:14: sem: timeout, context: ngx.timer" (req 0) 2021/03/17 22:22:19 [error] 15122\#0: *570 [lua] init_worker_by_lua:18: sem: 6 times, context: ngx.timer
2021/03/17 22:22:19 [debug] 15122\#0: http lua semaphore wait: 0000000002297B28, timeout: 1000, resources: 0, event posted: 0
2021/03/17 22:22:19 [debug] 15122\#0: *570 event timer add: 0: 1000:29048328
2021/03/17 22:22:19 [debug] 15122\#0: http lua semaphore wait yielding
2021/03/17 22:22:19 [debug] 15122\#0: *570 lua resume returned 1
2021/03/17 22:22:19 [debug] 15122\#0: *570 lua thread yielded
2021/03/17 22:22:19 [debug] 15122\#0: *570 lua run thread returned -2
2021/03/17 22:22:19 [debug] 15122\#0: worker cycle
2021/03/17 22:22:19 [debug] 15122\#0: epoll timer: 1000
'
semaphore.t TEST 4: basic semaphore in subrequest - pattern "[error]" should not match any line in error.log but matches line "2021/03/17 22:22:19 [error] 15122\#0: *570 [lua] init_worker_by_lua:18: sem: 6 times, context: ngx.timer" (req 0) 2021/03/17 22:22:19 [debug] 15122\#0: http lua semaphore wait: 0000000002297B28, timeout: 1000, resources: 0, event posted: 0
2021/03/17 22:22:19 [debug] 15122\#0: *570 event timer add: 0: 1000:29048328
2021/03/17 22:22:19 [debug] 15122\#0: http lua semaphore wait yielding
2021/03/17 22:22:19 [debug] 15122\#0: *570 lua resume returned 1
2021/03/17 22:22:19 [debug] 15122\#0: *570 lua thread yielded
2021/03/17 22:22:19 [debug] 15122\#0: *570 lua run thread returned -2
2021/03/17 22:22:19 [debug] 15122\#0: worker cycle
2021/03/17 22:22:19 [debug] 15122\#0: epoll timer: 1000
2021/03/17 22:22:19 [debug] 15407\#0: epoll: fd:6 ev:0001 d:0000000002295980
'
semaphore.t TEST 12: semaphore in content_by_lua (all allowed) - grep_error_log_out (req 0) @@ -1,2 +1,3 @@
sem: timeout,
+sem: timeout,
sem: 1,
'
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 22:22:21 [error] 15122\#0: *570 [lua] init_worker_by_lua:14: sem: timeout, context: ngx.timer" (req 0) 2021/03/17 22:22:21 [debug] 14468\#0: malloc: 000000000225EB70:304
2021/03/17 22:22:21 [debug] 14468\#0: malloc: 000000000221FFC0:16
2021/03/17 22:22:21 [debug] 15122\#0: http lua semaphore wait: 0000000002297B28, timeout: 1000, resources: 0, event posted: 0
2021/03/17 22:22:21 [debug] 15122\#0: *570 event timer add: 0: 1000:29050328
2021/03/17 22:22:21 [debug] 15122\#0: http lua semaphore wait yielding
2021/03/17 22:22:21 [debug] 15122\#0: *570 lua resume returned 1
2021/03/17 22:22:21 [debug] 15122\#0: *570 lua thread yielded
2021/03/17 22:22:21 [debug] 15122\#0: *570 lua run thread returned -2
2021/03/17 22:22:21 [debug] 15122\#0: worker cycle
'
shared.t TEST 11: shared.expire returns error on not found key - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'failed to set ttl: not found
'
shared.t TEST 11: shared.expire returns error on not found key - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'failed to set ttl: not found
'
shared.t TEST 3: shared.ttl returns error on not found key - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'failed to get ttl: not found
'
shared.t TEST 3: shared.ttl returns error on not found key - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'failed to get ttl: not found
'
stream/errlog.t TEST 3: client connected info - grep_error_log_out (req 0) 'client 127.0.0.1:22036 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:22040 connected to
capture log line:10
'
doesn't match '(?^:^client .*? connected to .*?
capture log line:2
$)'
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 21: multi-line error log - response_body_like - response is expected (log lines: \#2 log level:6 log body:2021/03/17 22:23:39 [notice] 20017\#0: start worker processes log level:4 log body:2021/03/17 22:23:39 [error] 20192\#0: *199 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 22:23:39 [notice] 20017#0: start worker processes
log level:4
log body:2021/03/17 22:23:39 [error] 20192#0: *199 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 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 22:23:41 [notice] 20017\#0: start worker processes log level:4 log body:2021/03/17 22:23:41 [error] 20362\#0: *367 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 22:23:41 [notice] 20017#0: start worker processes
log level:4
log body:2021/03/17 22:23:41 [error] 20362#0: *367 stream [lua] content_by_lua(nginx.conf:75):8: -->
new line, client: 127.0.0.1, server: 0.0.0.0:1985
end
maybe log lines: #2
end
'
doesn't match '(?^s:\Amaybe log lines: #1
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*content_by_lua\(nginx.conf:\d+\):\d+: -->
new line, client: 127.0.0.1, server: 0.0.0.0:\d+
end
maybe log lines: #1
end
\z)'
stream/errlog.t nginx: [emerg] invalid 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 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 18: flood the capturing buffer (5k) - response_body_like - response is expected (log lines: \#32 log level:5 log body:2021/03/17 22:23:45 [warn] 20634\#0: *115 stream [lua] content_by_lua(nginx.conf:78):10: --> 85, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2021/03/17 22:23:45 [error] 20634\#0: *115 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:2021/03/17 22:23:45 [warn] 20634\#0: *115 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:2021/03/17 22:23:45 [error] 20634\#0: *115 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:2021/03/17 22:23:45 [warn] 20634\#0: *115 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:2021/03/17 22:23:45 [error] 20634\#0: *115 stream [lua] content_by_lua(nginx.conf:78):11: --> 100, client: 127.0.0.1, server: 0.0.0.0:1985) 'log lines: #32
log level:5
log body:2021/03/17 22:23:45 [warn] 20634#0: *115 stream [lua] content_by_lua(nginx.conf:78):10: --> 85, client: 127.0.0.1, server: 0.0.0.0:1985
log level:4
log body:2021/03/17 22:23:45 [error] 20634#0: *115 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:2021/03/17 22:23:45 [warn] 20634#0: *115 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:2021/03/17 22:23:45 [error] 20634#0: *115 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:2021/03/17 22:23:45 [warn] 20634#0: *115 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:2021/03/17 22:23:45 [error] 20634#0: *115 stream [lua] content_by_lua(nginx.conf:78):11: --> 100, client: 127.0.0.1, server: 0.0.0.0:1985
'
doesn't match '(?^s:\A(?:log lines: #33
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*content_by_lua\(nginx.conf:\d+\):\d+: --> 84, client: 127.0.0.1, server: 0.0.0.0:\d+
log level:5
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*content_by_lua\(nginx.conf:\d+\):\d+: --> 85, client: 127.0.0.1, server: 0.0.0.0:\d+
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*content_by_lua\(nginx.conf:\d+\):\d+: --> 85, client: 127.0.0.1, server: 0.0.0.0:\d+
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*content_by_lua\(nginx.conf:\d+\):\d+: --> 99, client: 127.0.0.1, server: 0.0.0.0:\d+
log level:5
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*content_by_lua\(nginx.conf:\d+\):\d+: --> 100, client: 127.0.0.1, server: 0.0.0.0:\d+
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*content_by_lua\(nginx.conf:\d+\):\d+: --> 100, client: 127.0.0.1, server: 0.0.0.0:\d+
)\z)'
stream/errlog.t TEST 18: flood the capturing buffer (5k) - response_body_like - response is expected (log lines: \#32 log level:5 log body:2021/03/17 22:23:45 [warn] 20634\#0: *118 stream [lua] content_by_lua(nginx.conf:78):10: --> 85, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2021/03/17 22:23:45 [error] 20634\#0: *118 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:2021/03/17 22:23:45 [warn] 20634\#0: *118 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:2021/03/17 22:23:45 [error] 20634\#0: *118 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:2021/03/17 22:23:45 [warn] 20634\#0: *118 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:2021/03/17 22:23:45 [error] 20634\#0: *118 stream [lua] content_by_lua(nginx.conf:78):11: --> 100, client: 127.0.0.1, server: 0.0.0.0:1985) 'log lines: #32
log level:5
log body:2021/03/17 22:23:45 [warn] 20634#0: *118 stream [lua] content_by_lua(nginx.conf:78):10: --> 85, client: 127.0.0.1, server: 0.0.0.0:1985
log level:4
log body:2021/03/17 22:23:45 [error] 20634#0: *118 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:2021/03/17 22:23:45 [warn] 20634#0: *118 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:2021/03/17 22:23:45 [error] 20634#0: *118 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:2021/03/17 22:23:45 [warn] 20634#0: *118 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:2021/03/17 22:23:45 [error] 20634#0: *118 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/semaphore.t TEST 1: basic semaphore in uthread - pattern "[error]" should not match any line in error.log but matches line "2021/03/17 22:24:39 [error] 23974\#0: *127 stream [lua] init_worker_by_lua:14: sem: timeout, context: ngx.timer" (req 0) 2021/03/17 22:24:39 [debug] 23974\#0: stream lua semaphore wait: 00007FDC1D735028, timeout: 1000, resources: 0, event posted: 0
2021/03/17 22:24:39 [debug] 23974\#0: *127 event timer add: 0: 1000:29188271
2021/03/17 22:24:39 [debug] 23974\#0: stream lua semaphore wait yielding
2021/03/17 22:24:39 [debug] 23974\#0: *127 lua resume returned 1
2021/03/17 22:24:39 [debug] 23974\#0: *127 lua thread yielded
2021/03/17 22:24:39 [debug] 23974\#0: *127 lua run thread returned -2
2021/03/17 22:24:39 [debug] 23974\#0: worker cycle
2021/03/17 22:24:39 [debug] 23974\#0: epoll timer: 1000
2021/03/17 22:24:39 [debug] 24034\#0: timer delta: 4
'
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 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 9: semaphore in content_by_lua (all allowed) - grep_error_log_out (req 1) @@ -1,2 +1,4 @@
sem: timeout,
+sem: 3 times,
+sem: timeout,
sem: 1,
'
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 22:24:46 [error] 23974\#0: *127 stream [lua] init_worker_by_lua:14: sem: timeout, context: ngx.timer" (req 0) 2021/03/17 22:24:46 [debug] 23974\#0: stream lua semaphore wait: 00007FDC1D735028, timeout: 1000, resources: 0, event posted: 0
2021/03/17 22:24:46 [debug] 23974\#0: *127 event timer add: 0: 1000:29195275
2021/03/17 22:24:46 [debug] 23974\#0: stream lua semaphore wait yielding
2021/03/17 22:24:46 [debug] 23974\#0: *127 lua resume returned 1
2021/03/17 22:24:46 [debug] 23974\#0: *127 lua thread yielded
2021/03/17 22:24:46 [debug] 23974\#0: *127 lua run thread returned -2
2021/03/17 22:24:46 [debug] 23974\#0: worker cycle
2021/03/17 22:24:46 [debug] 23974\#0: epoll timer: 1000
2021/03/17 22:24:46 [debug] 24489\#0: epoll: fd:7 ev:0001 d:0000000001B974D0
'
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 "2021/03/17 22:24:48 [error] 23974\#0: *127 stream [lua] init_worker_by_lua:14: sem: timeout, context: ngx.timer" (req 0) 2021/03/17 22:24:48 [debug] 23974\#0: stream lua semaphore wait: 00007FDC1D735028, timeout: 1000, resources: 0, event posted: 0
2021/03/17 22:24:48 [debug] 23974\#0: *127 event timer add: 0: 1000:29197279
2021/03/17 22:24:48 [debug] 23974\#0: stream lua semaphore wait yielding
2021/03/17 22:24:48 [debug] 23974\#0: *127 lua resume returned 1
2021/03/17 22:24:48 [debug] 23974\#0: *127 lua thread yielded
2021/03/17 22:24:48 [debug] 23974\#0: *127 lua run thread returned -2
2021/03/17 22:24:48 [debug] 23974\#0: worker cycle
'

Warnings

Go back to the index page.