(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
d130d965 2020-09-28 06:48:20 GMT 0 57 76 8572 393 sec

LuaJIT

LuaJIT 2.1.0-beta3, commit 0e646b54

OpenSSL

OpenSSL 1.1.1d 10 Sep 2019

Compilation Errors

Segmentation Faults

Unexpected Failures

(none)

Expected Failures

File Name Details
errlog.t TEST 29: ringbuf overflow bug - response_body_like - response is expected (log level: 4 log time: 1601288113.608 log body: 2020/09/28 10:15:13 [error] 20520\#0: *49 [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: 1601288113.608 log body: 2020/09/28 10:15:13 [error] 20520\#0: *49 [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: 1601288113.608 log body: 2020/09/28 10:15:13 [error] 20520\#0: *49 [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: 1601288113.608 log body: 2020/09/28 10:15:13 [error] 20520\#0: *49 [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: 1601288113.608 log body: 2020/09/28 10:15:13 [error] 20520\#0: *49 [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: 1601288113.608 log body: 2020/09/28 10:15:13 [error] 20520\#0: *49 [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: 1601288113.608 log body: 2020/09/28 10:15:13 [error] 20520\#0: *49 [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: 1601288113.608 log body: 2020/09/28 10:15:13 [error] 20520\#0: *49 [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: 1601288113.608 log body: 2020/09/28 10:15:13 [error] 20520\#0: *49 [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: 1601288113.608 log body: 2020/09/28 10:15:13 [error] 20520\#0: *49 [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: 1601288113.608
log body: 2020/09/28 10:15:13 [error] 20520#0: *49 [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: 1601288113.608
log body: 2020/09/28 10:15:13 [error] 20520#0: *49 [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: 1601288113.608
log body: 2020/09/28 10:15:13 [error] 20520#0: *49 [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: 1601288113.608
log body: 2020/09/28 10:15:13 [error] 20520#0: *49 [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: 1601288113.608
log body: 2020/09/28 10:15:13 [error] 20520#0: *49 [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: 1601288113.608
log body: 2020/09/28 10:15:13 [error] 20520#0: *49 [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: 1601288113.608
log body: 2020/09/28 10:15:13 [error] 20520#0: *49 [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: 1601288113.608
log body: 2020/09/28 10:15:13 [error] 20520#0: *49 [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: 1601288113.608
log body: 2020/09/28 10:15:13 [error] 20520#0: *49 [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: 1601288113.608
log body: 2020/09/28 10:15:13 [error] 20520#0: *49 [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: 1601288113.656 log body: 2020/09/28 10:15:13 [error] 20520\#0: *50 [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: 1601288113.656 log body: 2020/09/28 10:15:13 [error] 20520\#0: *50 [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: 1601288113.656 log body: 2020/09/28 10:15:13 [error] 20520\#0: *50 [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: 1601288113.656 log body: 2020/09/28 10:15:13 [error] 20520\#0: *50 [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: 1601288113.656 log body: 2020/09/28 10:15:13 [error] 20520\#0: *50 [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: 1601288113.656 log body: 2020/09/28 10:15:13 [error] 20520\#0: *50 [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: 1601288113.656 log body: 2020/09/28 10:15:13 [error] 20520\#0: *50 [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: 1601288113.656 log body: 2020/09/28 10:15:13 [error] 20520\#0: *50 [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: 1601288113.656 log body: 2020/09/28 10:15:13 [error] 20520\#0: *50 [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: 1601288113.656 log body: 2020/09/28 10:15:13 [error] 20520\#0: *50 [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: 1601288113.656
log body: 2020/09/28 10:15:13 [error] 20520#0: *50 [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: 1601288113.656
log body: 2020/09/28 10:15:13 [error] 20520#0: *50 [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: 1601288113.656
log body: 2020/09/28 10:15:13 [error] 20520#0: *50 [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: 1601288113.656
log body: 2020/09/28 10:15:13 [error] 20520#0: *50 [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: 1601288113.656
log body: 2020/09/28 10:15:13 [error] 20520#0: *50 [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: 1601288113.656
log body: 2020/09/28 10:15:13 [error] 20520#0: *50 [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: 1601288113.656
log body: 2020/09/28 10:15:13 [error] 20520#0: *50 [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: 1601288113.656
log body: 2020/09/28 10:15:13 [error] 20520#0: *50 [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: 1601288113.656
log body: 2020/09/28 10:15:13 [error] 20520#0: *50 [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: 1601288113.656
log body: 2020/09/28 10:15:13 [error] 20520#0: *50 [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 30: ringbuf sentinel bug1 - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +1,3 @@
log lines: \#2
-AAA
+aaa
aaa
'
errlog.t nginx: [emerg] invalid capture error log size "3k", minimum size is 4096 in /home/ec2-user/git/lua-resty-core/t/servroot/conf/nginx.conf:25
errlog.t TEST 21: multi-line error log - response_body_like - response is expected (log lines: \#10 log level:6 log body:2020/09/28 10:15:17 [notice] 20663\#0: start worker processes log level:7 log body:2020/09/28 10:15:17 [info] 20841\#0: *153 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/09/28 10:15:17 [info] 20841\#0: *154 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/09/28 10:15:17 [info] 20841\#0: *155 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/09/28 10:15:17 [info] 20841\#0: *156 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/09/28 10:15:17 [info] 20841\#0: *157 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/09/28 10:15:17 [info] 20841\#0: *158 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/09/28 10:15:17 [info] 20841\#0: *159 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/09/28 10:15:17 [info] 20841\#0: *160 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/09/28 10:15:17 [info] 20841\#0: *161 client 127.0.0.1 closed keepalive connection) 'log lines: #10
log level:6
log body:2020/09/28 10:15:17 [notice] 20663#0: start worker processes
log level:7
log body:2020/09/28 10:15:17 [info] 20841#0: *153 client 127.0.0.1 closed keepalive connection
log level:7
log body:2020/09/28 10:15:17 [info] 20841#0: *154 client 127.0.0.1 closed keepalive connection
log level:7
log body:2020/09/28 10:15:17 [info] 20841#0: *155 client 127.0.0.1 closed keepalive connection
log level:7
log body:2020/09/28 10:15:17 [info] 20841#0: *156 client 127.0.0.1 closed keepalive connection
log level:7
log body:2020/09/28 10:15:17 [info] 20841#0: *157 client 127.0.0.1 closed keepalive connection
log level:7
log body:2020/09/28 10:15:17 [info] 20841#0: *158 client 127.0.0.1 closed keepalive connection
log level:7
log body:2020/09/28 10:15:17 [info] 20841#0: *159 client 127.0.0.1 closed keepalive connection
log level:7
log body:2020/09/28 10:15:17 [info] 20841#0: *160 client 127.0.0.1 closed keepalive connection
log level:7
log body:2020/09/28 10:15:17 [info] 20841#0: *161 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:2020/09/28 10:15:17 [info] 20841\#0: *162 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/09/28 10:15:17 [info] 20841\#0: *163 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/09/28 10:15:17 [info] 20841\#0: *164 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/09/28 10:15:17 [info] 20841\#0: *165 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/09/28 10:15:17 [info] 20841\#0: *166 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/09/28 10:15:17 [info] 20841\#0: *167 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/09/28 10:15:17 [info] 20841\#0: *168 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/09/28 10:15:17 [info] 20841\#0: *169 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/09/28 10:15:17 [info] 20841\#0: *170 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/09/28 10:15:17 [info] 20841\#0: *171 client 127.0.0.1 closed keepalive connection) 'log lines: #10
log level:7
log body:2020/09/28 10:15:17 [info] 20841#0: *162 client 127.0.0.1 closed keepalive connection
log level:7
log body:2020/09/28 10:15:17 [info] 20841#0: *163 client 127.0.0.1 closed keepalive connection
log level:7
log body:2020/09/28 10:15:17 [info] 20841#0: *164 client 127.0.0.1 closed keepalive connection
log level:7
log body:2020/09/28 10:15:17 [info] 20841#0: *165 client 127.0.0.1 closed keepalive connection
log level:7
log body:2020/09/28 10:15:17 [info] 20841#0: *166 client 127.0.0.1 closed keepalive connection
log level:7
log body:2020/09/28 10:15:17 [info] 20841#0: *167 client 127.0.0.1 closed keepalive connection
log level:7
log body:2020/09/28 10:15:17 [info] 20841#0: *168 client 127.0.0.1 closed keepalive connection
log level:7
log body:2020/09/28 10:15:17 [info] 20841#0: *169 client 127.0.0.1 closed keepalive connection
log level:7
log body:2020/09/28 10:15:17 [info] 20841#0: *170 client 127.0.0.1 closed keepalive connection
log level:7
log body:2020/09/28 10:15:17 [info] 20841#0: *171 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 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 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 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:2020/09/28 10:15:20 [notice] 20956\#0: start worker processes log level:7 log body:2020/09/28 10:15:20 [info] 21075\#0: *101 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/09/28 10:15:20 [info] 21075\#0: *102 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/09/28 10:15:20 [info] 21075\#0: *103 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/09/28 10:15:20 [info] 21075\#0: *104 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/09/28 10:15:20 [info] 21075\#0: *105 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/09/28 10:15:20 [info] 21075\#0: *106 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/09/28 10:15:20 [info] 21075\#0: *107 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/09/28 10:15:20 [info] 21075\#0: *108 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/09/28 10:15:20 [info] 21075\#0: *109 client 127.0.0.1 closed keepalive connection end maybe log lines: \#10 log level:7 log body:2020/09/28 10:15:20 [info] 21075\#0: *110 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/09/28 10:15:20 [info] 21075\#0: *111 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/09/28 10:15:20 [info] 21075\#0: *112 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/09/28 10:15:20 [info] 21075\#0: *113 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/09/28 10:15:20 [info] 21075\#0: *114 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/09/28 10:15:20 [info] 21075\#0: *115 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/09/28 10:15:20 [info] 21075\#0: *116 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/09/28 10:15:20 [info] 21075\#0: *117 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/09/28 10:15:20 [info] 21075\#0: *118 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/09/28 10:15:20 [info] 21075\#0: *119 client 127.0.0.1 closed keepalive connection end) 'maybe log lines: #10
log level:6
log body:2020/09/28 10:15:20 [notice] 20956#0: start worker processes
log level:7
log body:2020/09/28 10:15:20 [info] 21075#0: *101 client 127.0.0.1 closed keepalive connection
log level:7
log body:2020/09/28 10:15:20 [info] 21075#0: *102 client 127.0.0.1 closed keepalive connection
log level:7
log body:2020/09/28 10:15:20 [info] 21075#0: *103 client 127.0.0.1 closed keepalive connection
log level:7
log body:2020/09/28 10:15:20 [info] 21075#0: *104 client 127.0.0.1 closed keepalive connection
log level:7
log body:2020/09/28 10:15:20 [info] 21075#0: *105 client 127.0.0.1 closed keepalive connection
log level:7
log body:2020/09/28 10:15:20 [info] 21075#0: *106 client 127.0.0.1 closed keepalive connection
log level:7
log body:2020/09/28 10:15:20 [info] 21075#0: *107 client 127.0.0.1 closed keepalive connection
log level:7
log body:2020/09/28 10:15:20 [info] 21075#0: *108 client 127.0.0.1 closed keepalive connection
log level:7
log body:2020/09/28 10:15:20 [info] 21075#0: *109 client 127.0.0.1 closed keepalive connection
end
maybe log lines: #10
log level:7
log body:2020/09/28 10:15:20 [info] 21075#0: *110 client 127.0.0.1 closed keepalive connection
log level:7
log body:2020/09/28 10:15:20 [info] 21075#0: *111 client 127.0.0.1 closed keepalive connection
log level:7
log body:2020/09/28 10:15:20 [info] 21075#0: *112 client 127.0.0.1 closed keepalive connection
log level:7
log body:2020/09/28 10:15:20 [info] 21075#0: *113 client 127.0.0.1 closed keepalive connection
log level:7
log body:2020/09/28 10:15:20 [info] 21075#0: *114 client 127.0.0.1 closed keepalive connection
log level:7
log body:2020/09/28 10:15:20 [info] 21075#0: *115 client 127.0.0.1 closed keepalive connection
log level:7
log body:2020/09/28 10:15:20 [info] 21075#0: *116 client 127.0.0.1 closed keepalive connection
log level:7
log body:2020/09/28 10:15:20 [info] 21075#0: *117 client 127.0.0.1 closed keepalive connection
log level:7
log body:2020/09/28 10:15:20 [info] 21075#0: *118 client 127.0.0.1 closed keepalive connection
log level:7
log body:2020/09/28 10:15:20 [info] 21075#0: *119 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:2020/09/28 10:15:20 [info] 21075\#0: *120 client 127.0.0.1 closed keepalive connection log level:4 log body:2020/09/28 10:15:20 [error] 21075\#0: *121 [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:2020/09/28 10:15:20 [error] 21075\#0: *122 [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:2020/09/28 10:15:20 [info] 21075#0: *120 client 127.0.0.1 closed keepalive connection
log level:4
log body:2020/09/28 10:15:20 [error] 21075#0: *121 [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:2020/09/28 10:15:20 [error] 21075#0: *122 [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 TEST 13: filter log by level(ngx.CRIT) - response_body - response is expected (repeated req 0, req 0) got: 'log lines:10
'
expected: 'log lines:0
'
errlog.t TEST 13: filter log by level(ngx.CRIT) - response_body - response is expected (repeated req 1, req 0) got: 'log lines:10
'
expected: 'log lines:0
'
errlog.t TEST 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 16: check the captured error log body - response_body_like - response is expected (log level:6 log body:2020/09/28 10:15:22 [notice] 20956\#0: start worker processes log level:7 log body:2020/09/28 10:15:22 [info] 21216\#0: *221 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/09/28 10:15:22 [info] 21216\#0: *222 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/09/28 10:15:22 [info] 21216\#0: *223 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/09/28 10:15:22 [info] 21216\#0: *224 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/09/28 10:15:22 [info] 21216\#0: *225 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/09/28 10:15:22 [info] 21216\#0: *226 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/09/28 10:15:22 [info] 21216\#0: *227 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/09/28 10:15:22 [info] 21216\#0: *228 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/09/28 10:15:22 [info] 21216\#0: *229 client 127.0.0.1 closed keepalive connection) 'log level:6
log body:2020/09/28 10:15:22 [notice] 20956#0: start worker processes
log level:7
log body:2020/09/28 10:15:22 [info] 21216#0: *221 client 127.0.0.1 closed keepalive connection
log level:7
log body:2020/09/28 10:15:22 [info] 21216#0: *222 client 127.0.0.1 closed keepalive connection
log level:7
log body:2020/09/28 10:15:22 [info] 21216#0: *223 client 127.0.0.1 closed keepalive connection
log level:7
log body:2020/09/28 10:15:22 [info] 21216#0: *224 client 127.0.0.1 closed keepalive connection
log level:7
log body:2020/09/28 10:15:22 [info] 21216#0: *225 client 127.0.0.1 closed keepalive connection
log level:7
log body:2020/09/28 10:15:22 [info] 21216#0: *226 client 127.0.0.1 closed keepalive connection
log level:7
log body:2020/09/28 10:15:22 [info] 21216#0: *227 client 127.0.0.1 closed keepalive connection
log level:7
log body:2020/09/28 10:15:22 [info] 21216#0: *228 client 127.0.0.1 closed keepalive connection
log level:7
log body:2020/09/28 10:15:22 [info] 21216#0: *229 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:2020/09/28 10:15:22 [info] 21216\#0: *230 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/09/28 10:15:22 [info] 21216\#0: *231 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/09/28 10:15:22 [info] 21216\#0: *232 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/09/28 10:15:22 [info] 21216\#0: *233 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/09/28 10:15:22 [info] 21216\#0: *234 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/09/28 10:15:22 [info] 21216\#0: *235 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/09/28 10:15:22 [info] 21216\#0: *236 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/09/28 10:15:22 [info] 21216\#0: *237 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/09/28 10:15:22 [info] 21216\#0: *238 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/09/28 10:15:22 [info] 21216\#0: *239 client 127.0.0.1 closed keepalive connection) 'log level:7
log body:2020/09/28 10:15:22 [info] 21216#0: *230 client 127.0.0.1 closed keepalive connection
log level:7
log body:2020/09/28 10:15:22 [info] 21216#0: *231 client 127.0.0.1 closed keepalive connection
log level:7
log body:2020/09/28 10:15:22 [info] 21216#0: *232 client 127.0.0.1 closed keepalive connection
log level:7
log body:2020/09/28 10:15:22 [info] 21216#0: *233 client 127.0.0.1 closed keepalive connection
log level:7
log body:2020/09/28 10:15:22 [info] 21216#0: *234 client 127.0.0.1 closed keepalive connection
log level:7
log body:2020/09/28 10:15:22 [info] 21216#0: *235 client 127.0.0.1 closed keepalive connection
log level:7
log body:2020/09/28 10:15:22 [info] 21216#0: *236 client 127.0.0.1 closed keepalive connection
log level:7
log body:2020/09/28 10:15:22 [info] 21216#0: *237 client 127.0.0.1 closed keepalive connection
log level:7
log body:2020/09/28 10:15:22 [info] 21216#0: *238 client 127.0.0.1 closed keepalive connection
log level:7
log body:2020/09/28 10:15:22 [info] 21216#0: *239 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"
)'
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 1 init_worker_by_lua:4 loop]
[TRACE 1 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 1 init_worker_by_lua:4 loop]
[TRACE 1 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 15: semaphore in body_filter_by_lua (wait not allowed) - grep_error_log_out (req 0) @@ -1,3 +1,4 @@
+sem: timeout,
sem: 1,
sem: API disabled in the context of body_filter_by_lua*,
sem: 1,
'
semaphore.t TEST 23: semaphore post in set_by_lua - pattern "[error]" should not match any line in error.log but matches line "2020/09/28 10:18:08 [error] 30779\#0: *30 [lua] init_worker_by_lua:14: sem: timeout, context: ngx.timer" (req 1) 2020/09/28 10:18:08 [error] 30779\#0: *30 [lua] init_worker_by_lua:18: sem: 6 times, context: ngx.timer
2020/09/28 10:18:08 [debug] 30779\#0: http lua semaphore wait: 00000000012FE7A8, timeout: 1000, resources: 0, event posted: 0
2020/09/28 10:18:08 [debug] 30779\#0: *30 event timer add: 0: 1000:12654691
2020/09/28 10:18:08 [debug] 30779\#0: http lua semaphore wait yielding
2020/09/28 10:18:08 [debug] 30779\#0: *30 lua resume returned 1
2020/09/28 10:18:08 [debug] 30779\#0: *30 lua thread yielded
2020/09/28 10:18:08 [debug] 30779\#0: *30 lua run thread returned -2
2020/09/28 10:18:08 [debug] 30779\#0: worker cycle
'
semaphore.t TEST 23: semaphore post in set_by_lua - pattern "[error]" should not match any line in error.log but matches line "2020/09/28 10:18:08 [error] 30779\#0: *30 [lua] init_worker_by_lua:18: sem: 6 times, context: ngx.timer" (req 1) 2020/09/28 10:18:08 [debug] 30779\#0: http lua semaphore wait: 00000000012FE7A8, timeout: 1000, resources: 0, event posted: 0
2020/09/28 10:18:08 [debug] 30779\#0: *30 event timer add: 0: 1000:12654691
2020/09/28 10:18:08 [debug] 30779\#0: http lua semaphore wait yielding
2020/09/28 10:18:08 [debug] 30779\#0: *30 lua resume returned 1
2020/09/28 10:18:08 [debug] 30779\#0: *30 lua thread yielded
2020/09/28 10:18:08 [debug] 30779\#0: *30 lua run thread returned -2
2020/09/28 10:18:08 [debug] 30779\#0: worker cycle
'
semaphore.t TEST 10: semaphore in rewrite_by_lua (all allowed) - grep_error_log_out (req 0) @@ -1,2 +1,3 @@
sem: timeout,
+sem: timeout,
sem: 1,
'
semaphore.t TEST 3: semaphore wait time=0 - pattern "[error]" should not match any line in error.log but matches line "2020/09/28 10:18:12 [error] 30779\#0: *30 [lua] init_worker_by_lua:14: sem: timeout, context: ngx.timer" (req 0) 2020/09/28 10:18:12 [debug] 31340\#0: epoll: fd:9 ev:0001 d:0000000001305560
2020/09/28 10:18:12 [debug] 31340\#0: channel handler
2020/09/28 10:18:12 [debug] 31340\#0: channel: 32
2020/09/28 10:18:12 [debug] 31340\#0: channel command: 3
2020/09/28 10:18:12 [debug] 30779\#0: http lua semaphore wait: 00000000012FE7A8, timeout: 1000, resources: 0, event posted: 0
2020/09/28 10:18:12 [debug] 31340\#0: channel: -2
2020/09/28 10:18:12 [debug] 30779\#0: *30 event timer add: 0: 1000:12658691
2020/09/28 10:18:12 [debug] 31340\#0: timer delta: 40
2020/09/28 10:18:12 [debug] 30779\#0: http lua semaphore wait yielding
'
semaphore.t TEST 9: semaphore in set_by_lua (wait is not allowed) - grep_error_log_out (req 1) @@ -1,2 +1,3 @@
sem: 1,
sem: API disabled in the context of set_by_lua*,
+sem: timeout,
'
semaphore.t TEST 38: basic semaphore count - pattern "[error]" should not match any line in error.log but matches line "2020/09/28 10:18:14 [error] 30779\#0: *30 [lua] init_worker_by_lua:14: sem: timeout, context: ngx.timer" (req 0) 2020/09/28 10:18:14 [error] 30779\#0: *30 [lua] init_worker_by_lua:18: sem: 6 times, context: ngx.timer
2020/09/28 10:18:14 [debug] 30779\#0: http lua semaphore wait: 00000000012FE7A8, timeout: 1000, resources: 0, event posted: 0
2020/09/28 10:18:14 [debug] 30779\#0: *30 event timer add: 0: 1000:12660691
2020/09/28 10:18:14 [debug] 30779\#0: http lua semaphore wait yielding
2020/09/28 10:18:14 [debug] 30779\#0: *30 lua resume returned 1
2020/09/28 10:18:14 [debug] 30779\#0: *30 lua thread yielded
2020/09/28 10:18:14 [debug] 30779\#0: *30 lua run thread returned -2
2020/09/28 10:18:14 [debug] 30779\#0: worker cycle
2020/09/28 10:18:14 [debug] 30779\#0: epoll timer: 1000
'
semaphore.t TEST 38: basic semaphore count - pattern "[error]" should not match any line in error.log but matches line "2020/09/28 10:18:14 [error] 30779\#0: *30 [lua] init_worker_by_lua:18: sem: 6 times, context: ngx.timer" (req 0) 2020/09/28 10:18:14 [debug] 30779\#0: http lua semaphore wait: 00000000012FE7A8, timeout: 1000, resources: 0, event posted: 0
2020/09/28 10:18:14 [debug] 30779\#0: *30 event timer add: 0: 1000:12660691
2020/09/28 10:18:14 [debug] 30779\#0: http lua semaphore wait yielding
2020/09/28 10:18:14 [debug] 30779\#0: *30 lua resume returned 1
2020/09/28 10:18:14 [debug] 30779\#0: *30 lua thread yielded
2020/09/28 10:18:14 [debug] 30779\#0: *30 lua run thread returned -2
2020/09/28 10:18:14 [debug] 30779\#0: worker cycle
2020/09/28 10:18:14 [debug] 30779\#0: epoll timer: 1000
2020/09/28 10:18:14 [debug] 31481\#0: epoll: fd:6 ev:0001 d:00000000012FFCC0
'
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 "2020/09/28 10:18:15 [error] 30779\#0: *30 [lua] init_worker_by_lua:14: sem: timeout, context: ngx.timer" (req 0) 2020/09/28 10:18:15 [debug] 30779\#0: http lua semaphore wait: 00000000012FE7A8, timeout: 1000, resources: 0, event posted: 0
2020/09/28 10:18:15 [debug] 30779\#0: *30 event timer add: 0: 1000:12661691
2020/09/28 10:18:15 [debug] 30779\#0: http lua semaphore wait yielding
2020/09/28 10:18:15 [debug] 30779\#0: *30 lua resume returned 1
2020/09/28 10:18:15 [debug] 30779\#0: *30 lua thread yielded
2020/09/28 10:18:15 [debug] 30779\#0: *30 lua run thread returned -2
2020/09/28 10:18:15 [debug] 30779\#0: worker cycle
2020/09/28 10:18:15 [debug] 30779\#0: epoll timer: 1000
2020/09/28 10:18:15 [debug] 31565\#0: epoll: fd:6 ev:0001 d:00000000012FD870
'
semaphore.t TEST 16: semaphore in ngx.timer (all allowed) - grep_error_log_out (req 0) @@ -1,2 +1,3 @@
sem: timeout,
+sem: timeout,
sem: 1,
'
semaphore.t TEST 19: semaphore wait post in rewrite_by_lua - pattern "[error]" should not match any line in error.log but matches line "2020/09/28 10:18:17 [error] 30779\#0: *30 [lua] init_worker_by_lua:14: sem: timeout, context: ngx.timer" (req 1) 2020/09/28 10:18:17 [debug] 30779\#0: http lua semaphore wait: 00000000012FE7A8, timeout: 1000, resources: 0, event posted: 0
2020/09/28 10:18:17 [debug] 30779\#0: *30 event timer add: 0: 1000:12663691
2020/09/28 10:18:17 [debug] 30779\#0: http lua semaphore wait yielding
2020/09/28 10:18:17 [debug] 30779\#0: *30 lua resume returned 1
2020/09/28 10:18:17 [debug] 30779\#0: *30 lua thread yielded
2020/09/28 10:18:17 [debug] 30779\#0: *30 lua run thread returned -2
2020/09/28 10:18:17 [debug] 30779\#0: worker cycle
'
semaphore.t TEST 22: semaphore post in body_filter_by_lua (subrequest) - pattern "[error]" should not match any line in error.log but matches line "2020/09/28 10:18:18 [error] 30779\#0: *30 [lua] init_worker_by_lua:14: sem: timeout, context: ngx.timer" (req 1) 2020/09/28 10:18:18 [debug] 30779\#0: http lua semaphore wait: 00000000012FE7A8, timeout: 1000, resources: 0, event posted: 0
2020/09/28 10:18:18 [debug] 30779\#0: *30 event timer add: 0: 1000:12664691
2020/09/28 10:18:18 [debug] 30779\#0: http lua semaphore wait yielding
2020/09/28 10:18:18 [debug] 30779\#0: *30 lua resume returned 1
2020/09/28 10:18:18 [debug] 30779\#0: *30 lua thread yielded
2020/09/28 10:18:18 [debug] 30779\#0: *30 lua run thread returned -2
2020/09/28 10:18:18 [debug] 30779\#0: worker cycle
2020/09/28 10:18:18 [debug] 30779\#0: epoll timer: 1000
2020/09/28 10:18:18 [debug] 31761\#0: epoll: fd:6 ev:0001 d:00000000012FE2A0
'
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-raw-log.t nginx: [error] hello world from init_by_lua
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 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 21: multi-line error log - response_body_like - response is expected (log lines: \#2 log level:6 log body:2020/09/28 10:19:27 [notice] 3084\#0: start worker processes log level:4 log body:2020/09/28 10:19:27 [error] 3595\#0: *535 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:2020/09/28 10:19:27 [notice] 3084#0: start worker processes
log level:4
log body:2020/09/28 10:19:27 [error] 3595#0: *535 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 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 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:2020/09/28 10:19:27 [notice] 3636\#0: start worker processes log level:4 log body:2020/09/28 10:19:27 [error] 3637\#0: *3 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:2020/09/28 10:19:27 [notice] 3636#0: start worker processes
log level:4
log body:2020/09/28 10:19:27 [error] 3637#0: *3 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 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 3: client connected info - grep_error_log_out (req 0) 'client 127.0.0.1:11406 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:11410 connected to
capture log line:10
'
doesn't match '(?^:^client .*? connected to .*?
capture log line:2
$)'
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 "2020/09/28 10:20:17 [error] 6964\#0: *152 stream [lua] init_worker_by_lua:14: sem: timeout, context: ngx.timer" (req 0) 2020/09/28 10:20:17 [debug] 6964\#0: stream lua semaphore wait: 00007EFEA6B9C028, timeout: 1000, resources: 0, event posted: 0
2020/09/28 10:20:17 [debug] 6964\#0: *152 event timer add: 0: 1000:12783599
2020/09/28 10:20:17 [debug] 6964\#0: stream lua semaphore wait yielding
2020/09/28 10:20:17 [debug] 6964\#0: *152 lua resume returned 1
2020/09/28 10:20:17 [debug] 6964\#0: *152 lua thread yielded
2020/09/28 10:20:17 [debug] 6964\#0: *152 lua run thread returned -2
2020/09/28 10:20:17 [debug] 6964\#0: worker cycle
2020/09/28 10:20:17 [debug] 6964\#0: epoll timer: 1000
2020/09/28 10:20:17 [debug] 7020\#0: epoll: fd:7 ev:0001 d:00000000014C3670
'
stream/semaphore.t TEST 11: semaphore in ngx.timer (all allowed) - grep_error_log_out (req 1) @@ -1,2 +1,3 @@
sem: timeout,
sem: 1,
+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 "2020/09/28 10:20:19 [error] 6964\#0: *152 stream [lua] init_worker_by_lua:14: sem: timeout, context: ngx.timer" (req 0) 2020/09/28 10:20:19 [error] 6964\#0: *152 stream [lua] init_worker_by_lua:18: sem: 3 times, context: ngx.timer
2020/09/28 10:20:19 [debug] 6964\#0: stream lua semaphore wait: 00007EFEA6B9C028, timeout: 1000, resources: 0, event posted: 0
2020/09/28 10:20:19 [debug] 6964\#0: *152 event timer add: 0: 1000:12785599
2020/09/28 10:20:19 [debug] 6964\#0: stream lua semaphore wait yielding
2020/09/28 10:20:19 [debug] 6964\#0: *152 lua resume returned 1
2020/09/28 10:20:19 [debug] 6964\#0: *152 lua thread yielded
2020/09/28 10:20:19 [debug] 6964\#0: *152 lua run thread returned -2
2020/09/28 10:20:19 [debug] 6964\#0: worker cycle
2020/09/28 10:20:19 [debug] 6964\#0: epoll timer: 1000
'
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 "2020/09/28 10:20:19 [error] 6964\#0: *152 stream [lua] init_worker_by_lua:18: sem: 3 times, context: ngx.timer" (req 0) 2020/09/28 10:20:19 [debug] 6964\#0: stream lua semaphore wait: 00007EFEA6B9C028, timeout: 1000, resources: 0, event posted: 0
2020/09/28 10:20:19 [debug] 6964\#0: *152 event timer add: 0: 1000:12785599
2020/09/28 10:20:19 [debug] 6964\#0: stream lua semaphore wait yielding
2020/09/28 10:20:19 [debug] 6964\#0: *152 lua resume returned 1
2020/09/28 10:20:19 [debug] 6964\#0: *152 lua thread yielded
2020/09/28 10:20:19 [debug] 6964\#0: *152 lua run thread returned -2
2020/09/28 10:20:19 [debug] 6964\#0: worker cycle
2020/09/28 10:20:19 [debug] 6964\#0: epoll timer: 1000
2020/09/28 10:20:19 [debug] 7160\#0: epoll: fd:7 ev:0001 d:00000000014800F0
'
stream/semaphore.t TEST 10: semaphore in log_by_lua (wait not allowed) - grep_error_log_out (req 0) @@ -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 7: semaphore in init_worker_by_lua (new and post) - pattern "[error]" should not match any line in error.log but matches line "2020/09/28 10:20:21 [error] 6964\#0: *152 stream [lua] init_worker_by_lua:14: sem: timeout, context: ngx.timer" (req 0) 2020/09/28 10:20:21 [debug] 6964\#0: stream lua semaphore wait: 00007EFEA6B9C028, timeout: 1000, resources: 0, event posted: 0
2020/09/28 10:20:21 [debug] 6964\#0: *152 event timer add: 0: 1000:12787599
2020/09/28 10:20:21 [debug] 6964\#0: stream lua semaphore wait yielding
2020/09/28 10:20:21 [debug] 6964\#0: *152 lua resume returned 1
2020/09/28 10:20:21 [debug] 6964\#0: *152 lua thread yielded
2020/09/28 10:20:21 [debug] 6964\#0: *152 lua run thread returned -2
2020/09/28 10:20:21 [debug] 6964\#0: worker cycle
2020/09/28 10:20:21 [debug] 6964\#0: epoll timer: 1000
2020/09/28 10:20:21 [notice] 6813\#0: signal 1 (SIGHUP) received from 7299, reconfiguring
'
stream/semaphore.t TEST 3: semaphore wait time=0 - pattern "[error]" should not match any line in error.log but matches line "2020/09/28 10:20:22 [error] 6964\#0: *152 stream [lua] init_worker_by_lua:14: sem: timeout, context: ngx.timer" (req 1) 2020/09/28 10:20:22 [error] 6964\#0: *152 stream [lua] init_worker_by_lua:18: sem: 3 times, context: ngx.timer
2020/09/28 10:20:22 [debug] 6964\#0: stream lua semaphore wait: 00007EFEA6B9C028, timeout: 1000, resources: 0, event posted: 0
2020/09/28 10:20:22 [debug] 6964\#0: *152 event timer add: 0: 1000:12788599
2020/09/28 10:20:22 [debug] 6964\#0: stream lua semaphore wait yielding
2020/09/28 10:20:22 [debug] 6964\#0: *152 lua resume returned 1
2020/09/28 10:20:22 [debug] 6964\#0: *152 lua thread yielded
2020/09/28 10:20:22 [debug] 6964\#0: *152 lua run thread returned -2
2020/09/28 10:20:22 [debug] 6964\#0: worker cycle
2020/09/28 10:20:22 [debug] 6964\#0: epoll timer: 1000
'
stream/semaphore.t TEST 3: semaphore wait time=0 - pattern "[error]" should not match any line in error.log but matches line "2020/09/28 10:20:22 [error] 6964\#0: *152 stream [lua] init_worker_by_lua:18: sem: 3 times, context: ngx.timer" (req 1) 2020/09/28 10:20:22 [debug] 6964\#0: stream lua semaphore wait: 00007EFEA6B9C028, timeout: 1000, resources: 0, event posted: 0
2020/09/28 10:20:22 [debug] 6964\#0: *152 event timer add: 0: 1000:12788599
2020/09/28 10:20:22 [debug] 6964\#0: stream lua semaphore wait yielding
2020/09/28 10:20:22 [debug] 6964\#0: *152 lua resume returned 1
2020/09/28 10:20:22 [debug] 6964\#0: *152 lua thread yielded
2020/09/28 10:20:22 [debug] 6964\#0: *152 lua run thread returned -2
2020/09/28 10:20:22 [debug] 6964\#0: worker cycle
2020/09/28 10:20:22 [debug] 6964\#0: epoll timer: 1000
2020/09/28 10:20:22 [debug] 7356\#0: epoll: fd:7 ev:0001 d:00000000014C3610
'
stream/semaphore.t TEST 1: basic semaphore in uthread - pattern "[error]" should not match any line in error.log but matches line "2020/09/28 10:20:23 [error] 6964\#0: *152 stream [lua] init_worker_by_lua:14: sem: timeout, context: ngx.timer" (req 0) 2020/09/28 10:20:23 [debug] 6964\#0: stream lua semaphore wait: 00007EFEA6B9C028, timeout: 1000, resources: 0, event posted: 0
2020/09/28 10:20:23 [debug] 6964\#0: *152 event timer add: 0: 1000:12789599
2020/09/28 10:20:23 [debug] 6964\#0: stream lua semaphore wait yielding
2020/09/28 10:20:23 [debug] 6964\#0: *152 lua resume returned 1
2020/09/28 10:20:23 [debug] 6964\#0: *152 lua thread yielded
2020/09/28 10:20:23 [debug] 6964\#0: *152 lua run thread returned -2
2020/09/28 10:20:23 [debug] 6964\#0: worker cycle
2020/09/28 10:20:23 [debug] 6964\#0: epoll timer: 1000
2020/09/28 10:20:23 [debug] 7440\#0: epoll: fd:7 ev:0001 d:00000000014EF2E0
'
stream/semaphore.t TEST 28: basic semaphore count - pattern "[error]" should not match any line in error.log but matches line "2020/09/28 10:20:24 [error] 6964\#0: *152 stream [lua] init_worker_by_lua:14: sem: timeout, context: ngx.timer" (req 0) 2020/09/28 10:20:24 [debug] 6964\#0: stream lua semaphore wait: 00007EFEA6B9C028, timeout: 1000, resources: 0, event posted: 0
2020/09/28 10:20:24 [debug] 6964\#0: *152 event timer add: 0: 1000:12790599
2020/09/28 10:20:24 [debug] 6964\#0: stream lua semaphore wait yielding
2020/09/28 10:20:24 [debug] 6964\#0: *152 lua resume returned 1
2020/09/28 10:20:24 [debug] 6964\#0: *152 lua thread yielded
2020/09/28 10:20:24 [debug] 6964\#0: *152 lua run thread returned -2
2020/09/28 10:20:24 [debug] 6964\#0: worker cycle
2020/09/28 10:20:24 [debug] 6964\#0: epoll timer: 1000
2020/09/28 10:20:24 [debug] 7496\#0: epoll: fd:7 ev:0001 d:00000000014EF2E0
'
stream/semaphore.t TEST 27: semaphore_mm free block (load <= 50% & the on the older side) - grep_error_log_out (req 0) got: 'free semaphore block
'
expected: ''

Warnings

Go back to the index page.