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

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

Summary

Commit Testing Time Unexpected
Failures
Expected
Failures
Files Tests Elapsed Time
fbdb2673 2021-04-22 10:53:44 GMT 0 50 84 8794 457 sec

LuaJIT

LuaJIT 2.1.0-beta3, commit 70f88773

OpenSSL

OpenSSL 1.1.1k 25 Mar 2021

Compilation Errors

Segmentation Faults

Unexpected Failures

(none)

Expected Failures

File Name Details
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
'
errlog.t TEST 29: ringbuf overflow bug - response_body_like - response is expected (log level: 4 log time: 1619099219.992 log body: 2021/04/22 13:46:59 [error] 18642\#0: *73 [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: 1619099219.992 log body: 2021/04/22 13:46:59 [error] 18642\#0: *73 [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: 1619099219.992 log body: 2021/04/22 13:46:59 [error] 18642\#0: *73 [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: 1619099219.992 log body: 2021/04/22 13:46:59 [error] 18642\#0: *73 [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: 1619099219.992 log body: 2021/04/22 13:46:59 [error] 18642\#0: *73 [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: 1619099219.992 log body: 2021/04/22 13:46:59 [error] 18642\#0: *73 [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: 1619099219.992 log body: 2021/04/22 13:46:59 [error] 18642\#0: *73 [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: 1619099219.992 log body: 2021/04/22 13:46:59 [error] 18642\#0: *73 [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: 1619099219.992 log body: 2021/04/22 13:46:59 [error] 18642\#0: *73 [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: 1619099219.992 log body: 2021/04/22 13:46:59 [error] 18642\#0: *73 [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: 1619099219.992
log body: 2021/04/22 13:46:59 [error] 18642#0: *73 [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: 1619099219.992
log body: 2021/04/22 13:46:59 [error] 18642#0: *73 [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: 1619099219.992
log body: 2021/04/22 13:46:59 [error] 18642#0: *73 [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: 1619099219.992
log body: 2021/04/22 13:46:59 [error] 18642#0: *73 [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: 1619099219.992
log body: 2021/04/22 13:46:59 [error] 18642#0: *73 [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: 1619099219.992
log body: 2021/04/22 13:46:59 [error] 18642#0: *73 [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: 1619099219.992
log body: 2021/04/22 13:46:59 [error] 18642#0: *73 [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: 1619099219.992
log body: 2021/04/22 13:46:59 [error] 18642#0: *73 [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: 1619099219.992
log body: 2021/04/22 13:46:59 [error] 18642#0: *73 [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: 1619099219.992
log body: 2021/04/22 13:46:59 [error] 18642#0: *73 [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: 1619099220.041 log body: 2021/04/22 13:47:00 [error] 18642\#0: *74 [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: 1619099220.041 log body: 2021/04/22 13:47:00 [error] 18642\#0: *74 [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: 1619099220.041 log body: 2021/04/22 13:47:00 [error] 18642\#0: *74 [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: 1619099220.041 log body: 2021/04/22 13:47:00 [error] 18642\#0: *74 [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: 1619099220.041 log body: 2021/04/22 13:47:00 [error] 18642\#0: *74 [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: 1619099220.041 log body: 2021/04/22 13:47:00 [error] 18642\#0: *74 [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: 1619099220.041 log body: 2021/04/22 13:47:00 [error] 18642\#0: *74 [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: 1619099220.041 log body: 2021/04/22 13:47:00 [error] 18642\#0: *74 [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: 1619099220.041 log body: 2021/04/22 13:47:00 [error] 18642\#0: *74 [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: 1619099220.041 log body: 2021/04/22 13:47:00 [error] 18642\#0: *74 [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: 1619099220.041
log body: 2021/04/22 13:47:00 [error] 18642#0: *74 [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: 1619099220.041
log body: 2021/04/22 13:47:00 [error] 18642#0: *74 [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: 1619099220.041
log body: 2021/04/22 13:47:00 [error] 18642#0: *74 [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: 1619099220.041
log body: 2021/04/22 13:47:00 [error] 18642#0: *74 [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: 1619099220.041
log body: 2021/04/22 13:47:00 [error] 18642#0: *74 [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: 1619099220.041
log body: 2021/04/22 13:47:00 [error] 18642#0: *74 [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: 1619099220.041
log body: 2021/04/22 13:47:00 [error] 18642#0: *74 [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: 1619099220.041
log body: 2021/04/22 13:47:00 [error] 18642#0: *74 [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: 1619099220.041
log body: 2021/04/22 13:47:00 [error] 18642#0: *74 [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: 1619099220.041
log body: 2021/04/22 13:47:00 [error] 18642#0: *74 [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 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 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 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 16: check the captured error log body - response_body_like - response is expected (log level:6 log body:2021/04/22 13:47:02 [notice] 18818\#0: start worker processes log level:7 log body:2021/04/22 13:47:02 [info] 18853\#0: *30 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/04/22 13:47:02 [info] 18853\#0: *31 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/04/22 13:47:02 [info] 18853\#0: *32 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/04/22 13:47:02 [info] 18853\#0: *33 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/04/22 13:47:02 [info] 18853\#0: *34 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/04/22 13:47:02 [info] 18853\#0: *35 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/04/22 13:47:02 [info] 18853\#0: *36 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/04/22 13:47:02 [info] 18853\#0: *37 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/04/22 13:47:02 [info] 18853\#0: *38 client 127.0.0.1 closed keepalive connection) 'log level:6
log body:2021/04/22 13:47:02 [notice] 18818#0: start worker processes
log level:7
log body:2021/04/22 13:47:02 [info] 18853#0: *30 client 127.0.0.1 closed keepalive connection
log level:7
log body:2021/04/22 13:47:02 [info] 18853#0: *31 client 127.0.0.1 closed keepalive connection
log level:7
log body:2021/04/22 13:47:02 [info] 18853#0: *32 client 127.0.0.1 closed keepalive connection
log level:7
log body:2021/04/22 13:47:02 [info] 18853#0: *33 client 127.0.0.1 closed keepalive connection
log level:7
log body:2021/04/22 13:47:02 [info] 18853#0: *34 client 127.0.0.1 closed keepalive connection
log level:7
log body:2021/04/22 13:47:02 [info] 18853#0: *35 client 127.0.0.1 closed keepalive connection
log level:7
log body:2021/04/22 13:47:02 [info] 18853#0: *36 client 127.0.0.1 closed keepalive connection
log level:7
log body:2021/04/22 13:47:02 [info] 18853#0: *37 client 127.0.0.1 closed keepalive connection
log level:7
log body:2021/04/22 13:47:02 [info] 18853#0: *38 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/04/22 13:47:02 [info] 18853\#0: *39 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/04/22 13:47:02 [info] 18853\#0: *40 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/04/22 13:47:02 [info] 18853\#0: *41 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/04/22 13:47:02 [info] 18853\#0: *42 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/04/22 13:47:02 [info] 18853\#0: *43 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/04/22 13:47:02 [info] 18853\#0: *44 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/04/22 13:47:02 [info] 18853\#0: *45 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/04/22 13:47:02 [info] 18853\#0: *46 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/04/22 13:47:02 [info] 18853\#0: *47 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/04/22 13:47:02 [info] 18853\#0: *48 client 127.0.0.1 closed keepalive connection) 'log level:7
log body:2021/04/22 13:47:02 [info] 18853#0: *39 client 127.0.0.1 closed keepalive connection
log level:7
log body:2021/04/22 13:47:02 [info] 18853#0: *40 client 127.0.0.1 closed keepalive connection
log level:7
log body:2021/04/22 13:47:02 [info] 18853#0: *41 client 127.0.0.1 closed keepalive connection
log level:7
log body:2021/04/22 13:47:02 [info] 18853#0: *42 client 127.0.0.1 closed keepalive connection
log level:7
log body:2021/04/22 13:47:02 [info] 18853#0: *43 client 127.0.0.1 closed keepalive connection
log level:7
log body:2021/04/22 13:47:02 [info] 18853#0: *44 client 127.0.0.1 closed keepalive connection
log level:7
log body:2021/04/22 13:47:02 [info] 18853#0: *45 client 127.0.0.1 closed keepalive connection
log level:7
log body:2021/04/22 13:47:02 [info] 18853#0: *46 client 127.0.0.1 closed keepalive connection
log level:7
log body:2021/04/22 13:47:02 [info] 18853#0: *47 client 127.0.0.1 closed keepalive connection
log level:7
log body:2021/04/22 13:47:02 [info] 18853#0: *48 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 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 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/04/22 13:47:04 [notice] 18818\#0: start worker processes log level:7 log body:2021/04/22 13:47:04 [info] 18994\#0: *150 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/04/22 13:47:04 [info] 18994\#0: *151 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/04/22 13:47:04 [info] 18994\#0: *152 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/04/22 13:47:04 [info] 18994\#0: *153 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/04/22 13:47:04 [info] 18994\#0: *154 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/04/22 13:47:04 [info] 18994\#0: *155 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/04/22 13:47:04 [info] 18994\#0: *156 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/04/22 13:47:04 [info] 18994\#0: *157 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/04/22 13:47:04 [info] 18994\#0: *158 client 127.0.0.1 closed keepalive connection end maybe log lines: \#10 log level:7 log body:2021/04/22 13:47:04 [info] 18994\#0: *159 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/04/22 13:47:04 [info] 18994\#0: *160 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/04/22 13:47:04 [info] 18994\#0: *161 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/04/22 13:47:04 [info] 18994\#0: *162 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/04/22 13:47:04 [info] 18994\#0: *163 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/04/22 13:47:04 [info] 18994\#0: *164 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/04/22 13:47:04 [info] 18994\#0: *165 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/04/22 13:47:04 [info] 18994\#0: *166 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/04/22 13:47:04 [info] 18994\#0: *167 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/04/22 13:47:04 [info] 18994\#0: *168 client 127.0.0.1 closed keepalive connection end) 'maybe log lines: #10
log level:6
log body:2021/04/22 13:47:04 [notice] 18818#0: start worker processes
log level:7
log body:2021/04/22 13:47:04 [info] 18994#0: *150 client 127.0.0.1 closed keepalive connection
log level:7
log body:2021/04/22 13:47:04 [info] 18994#0: *151 client 127.0.0.1 closed keepalive connection
log level:7
log body:2021/04/22 13:47:04 [info] 18994#0: *152 client 127.0.0.1 closed keepalive connection
log level:7
log body:2021/04/22 13:47:04 [info] 18994#0: *153 client 127.0.0.1 closed keepalive connection
log level:7
log body:2021/04/22 13:47:04 [info] 18994#0: *154 client 127.0.0.1 closed keepalive connection
log level:7
log body:2021/04/22 13:47:04 [info] 18994#0: *155 client 127.0.0.1 closed keepalive connection
log level:7
log body:2021/04/22 13:47:04 [info] 18994#0: *156 client 127.0.0.1 closed keepalive connection
log level:7
log body:2021/04/22 13:47:04 [info] 18994#0: *157 client 127.0.0.1 closed keepalive connection
log level:7
log body:2021/04/22 13:47:04 [info] 18994#0: *158 client 127.0.0.1 closed keepalive connection
end
maybe log lines: #10
log level:7
log body:2021/04/22 13:47:04 [info] 18994#0: *159 client 127.0.0.1 closed keepalive connection
log level:7
log body:2021/04/22 13:47:04 [info] 18994#0: *160 client 127.0.0.1 closed keepalive connection
log level:7
log body:2021/04/22 13:47:04 [info] 18994#0: *161 client 127.0.0.1 closed keepalive connection
log level:7
log body:2021/04/22 13:47:04 [info] 18994#0: *162 client 127.0.0.1 closed keepalive connection
log level:7
log body:2021/04/22 13:47:04 [info] 18994#0: *163 client 127.0.0.1 closed keepalive connection
log level:7
log body:2021/04/22 13:47:04 [info] 18994#0: *164 client 127.0.0.1 closed keepalive connection
log level:7
log body:2021/04/22 13:47:04 [info] 18994#0: *165 client 127.0.0.1 closed keepalive connection
log level:7
log body:2021/04/22 13:47:04 [info] 18994#0: *166 client 127.0.0.1 closed keepalive connection
log level:7
log body:2021/04/22 13:47:04 [info] 18994#0: *167 client 127.0.0.1 closed keepalive connection
log level:7
log body:2021/04/22 13:47:04 [info] 18994#0: *168 client 127.0.0.1 closed keepalive connection
end
'
doesn't match '(?^s:\Amaybe log lines: #1
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*access_by_lua\(nginx.conf:\d+\):\d+: -->
new line, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
end
maybe log lines: #1
end
\z)'
errlog.t TEST 22: user-supplied Lua table to hold the result (get one log + no log) - response_body_like - response is expected (maybe log lines: \#3 log level:7 log body:2021/04/22 13:47:04 [info] 18994\#0: *169 client 127.0.0.1 closed keepalive connection log level:4 log body:2021/04/22 13:47:04 [error] 18994\#0: *170 [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/04/22 13:47:04 [error] 18994\#0: *171 [lua] access_by_lua(nginx.conf:66):8: --> new line, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" end maybe log lines: \#3 end) 'maybe log lines: #3
log level:7
log body:2021/04/22 13:47:04 [info] 18994#0: *169 client 127.0.0.1 closed keepalive connection
log level:4
log body:2021/04/22 13:47:04 [error] 18994#0: *170 [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/04/22 13:47:04 [error] 18994#0: *171 [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 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 21: multi-line error log - response_body_like - response is expected (log lines: \#10 log level:6 log body:2021/04/22 13:47:08 [notice] 18818\#0: start worker processes log level:7 log body:2021/04/22 13:47:08 [info] 19304\#0: *415 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/04/22 13:47:08 [info] 19304\#0: *416 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/04/22 13:47:08 [info] 19304\#0: *417 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/04/22 13:47:08 [info] 19304\#0: *418 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/04/22 13:47:08 [info] 19304\#0: *419 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/04/22 13:47:08 [info] 19304\#0: *420 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/04/22 13:47:08 [info] 19304\#0: *421 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/04/22 13:47:08 [info] 19304\#0: *422 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/04/22 13:47:08 [info] 19304\#0: *423 client 127.0.0.1 closed keepalive connection) 'log lines: #10
log level:6
log body:2021/04/22 13:47:08 [notice] 18818#0: start worker processes
log level:7
log body:2021/04/22 13:47:08 [info] 19304#0: *415 client 127.0.0.1 closed keepalive connection
log level:7
log body:2021/04/22 13:47:08 [info] 19304#0: *416 client 127.0.0.1 closed keepalive connection
log level:7
log body:2021/04/22 13:47:08 [info] 19304#0: *417 client 127.0.0.1 closed keepalive connection
log level:7
log body:2021/04/22 13:47:08 [info] 19304#0: *418 client 127.0.0.1 closed keepalive connection
log level:7
log body:2021/04/22 13:47:08 [info] 19304#0: *419 client 127.0.0.1 closed keepalive connection
log level:7
log body:2021/04/22 13:47:08 [info] 19304#0: *420 client 127.0.0.1 closed keepalive connection
log level:7
log body:2021/04/22 13:47:08 [info] 19304#0: *421 client 127.0.0.1 closed keepalive connection
log level:7
log body:2021/04/22 13:47:08 [info] 19304#0: *422 client 127.0.0.1 closed keepalive connection
log level:7
log body:2021/04/22 13:47:08 [info] 19304#0: *423 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/04/22 13:47:08 [info] 19304\#0: *424 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/04/22 13:47:08 [info] 19304\#0: *425 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/04/22 13:47:08 [info] 19304\#0: *426 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/04/22 13:47:08 [info] 19304\#0: *427 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/04/22 13:47:08 [info] 19304\#0: *428 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/04/22 13:47:08 [info] 19304\#0: *429 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/04/22 13:47:08 [info] 19304\#0: *430 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/04/22 13:47:08 [info] 19304\#0: *431 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/04/22 13:47:08 [info] 19304\#0: *432 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/04/22 13:47:08 [info] 19304\#0: *433 client 127.0.0.1 closed keepalive connection) 'log lines: #10
log level:7
log body:2021/04/22 13:47:08 [info] 19304#0: *424 client 127.0.0.1 closed keepalive connection
log level:7
log body:2021/04/22 13:47:08 [info] 19304#0: *425 client 127.0.0.1 closed keepalive connection
log level:7
log body:2021/04/22 13:47:08 [info] 19304#0: *426 client 127.0.0.1 closed keepalive connection
log level:7
log body:2021/04/22 13:47:08 [info] 19304#0: *427 client 127.0.0.1 closed keepalive connection
log level:7
log body:2021/04/22 13:47:08 [info] 19304#0: *428 client 127.0.0.1 closed keepalive connection
log level:7
log body:2021/04/22 13:47:08 [info] 19304#0: *429 client 127.0.0.1 closed keepalive connection
log level:7
log body:2021/04/22 13:47:08 [info] 19304#0: *430 client 127.0.0.1 closed keepalive connection
log level:7
log body:2021/04/22 13:47:08 [info] 19304#0: *431 client 127.0.0.1 closed keepalive connection
log level:7
log body:2021/04/22 13:47:08 [info] 19304#0: *432 client 127.0.0.1 closed keepalive connection
log level:7
log body:2021/04/22 13:47:08 [info] 19304#0: *433 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)'
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 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/04/22 13:50:19 [error] 29404\#0: *204 [lua] init_worker_by_lua:14: sem: timeout, context: ngx.timer" (req 0) 2021/04/22 13:50:19 [debug] 29404\#0: http lua semaphore wait: 00007FF25E323028, timeout: 1000, resources: 0, event posted: 0
2021/04/22 13:50:19 [debug] 29404\#0: *204 event timer add: 0: 1000:10674185
2021/04/22 13:50:19 [debug] 29404\#0: http lua semaphore wait yielding
2021/04/22 13:50:19 [debug] 29404\#0: *204 lua resume returned 1
2021/04/22 13:50:19 [debug] 29404\#0: *204 lua thread yielded
2021/04/22 13:50:19 [debug] 29404\#0: *204 lua run thread returned -2
2021/04/22 13:50:19 [debug] 29404\#0: worker cycle
2021/04/22 13:50:19 [debug] 29404\#0: epoll timer: 1000
2021/04/22 13:50:19 [debug] 29523\#0: timer delta: 88
'
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/04/22 13:50:20 [error] 29404\#0: *204 [lua] init_worker_by_lua:14: sem: timeout, context: ngx.timer" (req 0) 2021/04/22 13:50:20 [debug] 29404\#0: http lua semaphore wait: 00007FF25E323028, timeout: 1000, resources: 0, event posted: 0
2021/04/22 13:50:20 [debug] 29404\#0: *204 event timer add: 0: 1000:10675185
2021/04/22 13:50:20 [debug] 29404\#0: http lua semaphore wait yielding
2021/04/22 13:50:20 [debug] 29404\#0: *204 lua resume returned 1
2021/04/22 13:50:20 [debug] 29404\#0: *204 lua thread yielded
2021/04/22 13:50:20 [debug] 29404\#0: *204 lua run thread returned -2
2021/04/22 13:50:20 [debug] 29404\#0: worker cycle
2021/04/22 13:50:20 [debug] 29404\#0: epoll timer: 1000
2021/04/22 13:50:20 [debug] 29581\#0: epoll: fd:6 ev:0001 d:0000000000A89430
'
semaphore.t TEST 25: two thread wait for each other - pattern "[error]" should not match any line in error.log but matches line "2021/04/22 13:50:21 [error] 29404\#0: *204 [lua] init_worker_by_lua:14: sem: timeout, context: ngx.timer" (req 0) 2021/04/22 13:50:21 [error] 29404\#0: *204 [lua] init_worker_by_lua:18: sem: 6 times, context: ngx.timer
2021/04/22 13:50:21 [debug] 29404\#0: http lua semaphore wait: 00007FF25E323028, timeout: 1000, resources: 0, event posted: 0
2021/04/22 13:50:21 [debug] 29404\#0: *204 event timer add: 0: 1000:10676185
2021/04/22 13:50:21 [debug] 29404\#0: http lua semaphore wait yielding
2021/04/22 13:50:21 [debug] 29404\#0: *204 lua resume returned 1
2021/04/22 13:50:21 [debug] 29404\#0: *204 lua thread yielded
2021/04/22 13:50:21 [debug] 29404\#0: *204 lua run thread returned -2
2021/04/22 13:50:21 [debug] 29404\#0: worker cycle
2021/04/22 13:50:21 [debug] 29404\#0: epoll timer: 1000
'
semaphore.t TEST 25: two thread wait for each other - pattern "[error]" should not match any line in error.log but matches line "2021/04/22 13:50:21 [error] 29404\#0: *204 [lua] init_worker_by_lua:18: sem: 6 times, context: ngx.timer" (req 0) 2021/04/22 13:50:21 [debug] 29404\#0: http lua semaphore wait: 00007FF25E323028, timeout: 1000, resources: 0, event posted: 0
2021/04/22 13:50:21 [debug] 29404\#0: *204 event timer add: 0: 1000:10676185
2021/04/22 13:50:21 [debug] 29404\#0: http lua semaphore wait yielding
2021/04/22 13:50:21 [debug] 29404\#0: *204 lua resume returned 1
2021/04/22 13:50:21 [debug] 29404\#0: *204 lua thread yielded
2021/04/22 13:50:21 [debug] 29404\#0: *204 lua run thread returned -2
2021/04/22 13:50:21 [debug] 29404\#0: worker cycle
2021/04/22 13:50:21 [debug] 29404\#0: epoll timer: 1000
2021/04/22 13:50:21 [notice] 29165\#0: signal 1 (SIGHUP) received from 29692, reconfiguring
'
semaphore.t TEST 40: bugfix: semaphore instance can't be garbage collected when someone is waiting on it - pattern "[error]" should not match any line in error.log but matches line "2021/04/22 13:50:23 [error] 29404\#0: *204 [lua] init_worker_by_lua:14: sem: timeout, context: ngx.timer" (req 1) 2021/04/22 13:50:23 [debug] 29404\#0: http lua semaphore wait: 00007FF25E323028, timeout: 1000, resources: 0, event posted: 0
2021/04/22 13:50:23 [debug] 29404\#0: *204 event timer add: 0: 1000:10678189
2021/04/22 13:50:23 [debug] 29404\#0: http lua semaphore wait yielding
2021/04/22 13:50:23 [debug] 29404\#0: *204 lua resume returned 1
2021/04/22 13:50:23 [debug] 29404\#0: *204 lua thread yielded
2021/04/22 13:50:23 [debug] 29404\#0: *204 lua run thread returned -2
2021/04/22 13:50:23 [debug] 29404\#0: worker cycle
2021/04/22 13:50:23 [debug] 29404\#0: epoll timer: 1000
2021/04/22 13:50:23 [debug] 29833\#0: epoll: fd:6 ev:0001 d:0000000000AD6A40
'
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 9: semaphore in set_by_lua (wait is not allowed) - grep_error_log_out (req 0) @@ -1,2 +1,3 @@
+sem: timeout,
sem: 1,
sem: API disabled in the context of set_by_lua*,
'
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 27: kill a light thread that is waiting on a semaphore (after post) - pattern "[error]" should not match any line in error.log but matches line "2021/04/22 13:50:27 [error] 29404\#0: *204 [lua] init_worker_by_lua:14: sem: timeout, context: ngx.timer" (req 1) 2021/04/22 13:50:27 [error] 29404\#0: *204 [lua] init_worker_by_lua:18: sem: 6 times, context: ngx.timer
2021/04/22 13:50:27 [debug] 29404\#0: http lua semaphore wait: 00007FF25E323028, timeout: 1000, resources: 0, event posted: 0
2021/04/22 13:50:27 [debug] 29404\#0: *204 event timer add: 0: 1000:10682189
2021/04/22 13:50:27 [debug] 29404\#0: http lua semaphore wait yielding
2021/04/22 13:50:27 [debug] 29404\#0: *204 lua resume returned 1
2021/04/22 13:50:27 [debug] 29404\#0: *204 lua thread yielded
2021/04/22 13:50:27 [debug] 29404\#0: *204 lua run thread returned -2
2021/04/22 13:50:27 [debug] 29404\#0: worker cycle
2021/04/22 13:50:27 [debug] 29404\#0: epoll timer: 1000
'
semaphore.t TEST 27: kill a light thread that is waiting on a semaphore (after post) - pattern "[error]" should not match any line in error.log but matches line "2021/04/22 13:50:27 [error] 29404\#0: *204 [lua] init_worker_by_lua:18: sem: 6 times, context: ngx.timer" (req 1) 2021/04/22 13:50:27 [debug] 29404\#0: http lua semaphore wait: 00007FF25E323028, timeout: 1000, resources: 0, event posted: 0
2021/04/22 13:50:27 [debug] 29404\#0: *204 event timer add: 0: 1000:10682189
2021/04/22 13:50:27 [debug] 29404\#0: http lua semaphore wait yielding
2021/04/22 13:50:27 [debug] 29404\#0: *204 lua resume returned 1
2021/04/22 13:50:27 [debug] 29404\#0: *204 lua thread yielded
2021/04/22 13:50:27 [debug] 29404\#0: *204 lua run thread returned -2
2021/04/22 13:50:27 [debug] 29404\#0: worker cycle
2021/04/22 13:50:27 [debug] 29404\#0: epoll timer: 1000
2021/04/22 13:50:27 [debug] 30114\#0: epoll: fd:6 ev:0001 d:0000000000AD6A00
'
shared.t TEST 3: shared.ttl returns error on not found key - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'failed to get ttl: not found
'
shared.t TEST 3: shared.ttl returns error on not found key - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'failed to get ttl: not found
'
shared.t TEST 11: shared.expire returns error on not found key - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'failed to set ttl: not found
'
shared.t TEST 11: shared.expire returns error on not found key - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'failed to set ttl: not found
'
stream/errlog.t nginx: [emerg] invalid 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 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/04/22 13:51:50 [notice] 2419\#0: start worker processes log level:4 log body:2021/04/22 13:51:50 [error] 2454\#0: *59 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/04/22 13:51:50 [notice] 2419#0: start worker processes
log level:4
log body:2021/04/22 13:51:50 [error] 2454#0: *59 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 19: fetch a few and generate a few, then fetch again (overflown again) - response_body_like - response is expected (msg count: 3 log level:4 log body:2021/04/22 13:51:50 [error] 2482\#0: *87 stream [lua] content_by_lua(nginx.conf:93):11: --> 84, client: 127.0.0.1, server: 0.0.0.0:1985 log level:5 log body:2021/04/22 13:51:50 [warn] 2482\#0: *87 stream [lua] content_by_lua(nginx.conf:93):10: --> 85, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2021/04/22 13:51:50 [error] 2482\#0: *87 stream [lua] content_by_lua(nginx.conf:93):11: --> 85, client: 127.0.0.1, server: 0.0.0.0:1985 msg count: 3 log level:4 log body:2021/04/22 13:51:50 [error] 2482\#0: *87 stream [lua] content_by_lua(nginx.conf:93):11: --> 86, client: 127.0.0.1, server: 0.0.0.0:1985 log level:5 log body:2021/04/22 13:51:50 [warn] 2482\#0: *87 stream [lua] content_by_lua(nginx.conf:93):10: --> 87, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2021/04/22 13:51:50 [error] 2482\#0: *87 stream [lua] content_by_lua(nginx.conf:93):11: --> 87, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2021/04/22 13:51:50 [error] 2482\#0: *87 stream [lua] content_by_lua(nginx.conf:93):24: --> 102, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2021/04/22 13:51:50 [error] 2482\#0: *87 stream [lua] content_by_lua(nginx.conf:93):25: --> 103, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2021/04/22 13:51:50 [error] 2482\#0: *87 stream [lua] content_by_lua(nginx.conf:93):26: --> 104, client: 127.0.0.1, server: 0.0.0.0:1985) 'msg count: 3
log level:4
log body:2021/04/22 13:51:50 [error] 2482#0: *87 stream [lua] content_by_lua(nginx.conf:93):11: --> 84, client: 127.0.0.1, server: 0.0.0.0:1985
log level:5
log body:2021/04/22 13:51:50 [warn] 2482#0: *87 stream [lua] content_by_lua(nginx.conf:93):10: --> 85, client: 127.0.0.1, server: 0.0.0.0:1985
log level:4
log body:2021/04/22 13:51:50 [error] 2482#0: *87 stream [lua] content_by_lua(nginx.conf:93):11: --> 85, client: 127.0.0.1, server: 0.0.0.0:1985
msg count: 3
log level:4
log body:2021/04/22 13:51:50 [error] 2482#0: *87 stream [lua] content_by_lua(nginx.conf:93):11: --> 86, client: 127.0.0.1, server: 0.0.0.0:1985
log level:5
log body:2021/04/22 13:51:50 [warn] 2482#0: *87 stream [lua] content_by_lua(nginx.conf:93):10: --> 87, client: 127.0.0.1, server: 0.0.0.0:1985
log level:4
log body:2021/04/22 13:51:50 [error] 2482#0: *87 stream [lua] content_by_lua(nginx.conf:93):11: --> 87, client: 127.0.0.1, server: 0.0.0.0:1985
log level:4
log body:2021/04/22 13:51:50 [error] 2482#0: *87 stream [lua] content_by_lua(nginx.conf:93):24: --> 102, client: 127.0.0.1, server: 0.0.0.0:1985
log level:4
log body:2021/04/22 13:51:50 [error] 2482#0: *87 stream [lua] content_by_lua(nginx.conf:93):25: --> 103, client: 127.0.0.1, server: 0.0.0.0:1985
log level:4
log body:2021/04/22 13:51:50 [error] 2482#0: *87 stream [lua] content_by_lua(nginx.conf:93):26: --> 104, client: 127.0.0.1, server: 0.0.0.0:1985
'
doesn't match '(?^s:\Amsg count: 3
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 84, client: 127.0.0.1, server: 0.0.0.0:\d+
log level:5
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 85, client: 127.0.0.1, server: 0.0.0.0:\d+
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 85, client: 127.0.0.1, server: 0.0.0.0:\d+
msg count: 3
log level:5
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 86, client: 127.0.0.1, server: 0.0.0.0:\d+
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 86, client: 127.0.0.1, server: 0.0.0.0:\d+
log level:5
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 87, client: 127.0.0.1, server: 0.0.0.0:\d+
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 102, client: 127.0.0.1, server: 0.0.0.0:\d+
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 103, client: 127.0.0.1, server: 0.0.0.0:\d+
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 104, client: 127.0.0.1, server: 0.0.0.0:\d+
|msg count: 3
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 84, client: 127.0.0.1, server: 0.0.0.0:\d+
log level:5
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 85, client: 127.0.0.1, server: 0.0.0.0:\d+
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 85, client: 127.0.0.1, server: 0.0.0.0:\d+
msg count: 3
log level:5
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 87, client: 127.0.0.1, server: 0.0.0.0:\d+
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 87, client: 127.0.0.1, server: 0.0.0.0:\d+
log level:5
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 88, client: 127.0.0.1, server: 0.0.0.0:\d+
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 102, client: 127.0.0.1, server: 0.0.0.0:\d+
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 103, client: 127.0.0.1, server: 0.0.0.0:\d+
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 104, client: 127.0.0.1, server: 0.0.0.0:\d+
\z)'
stream/errlog.t TEST 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/04/22 13:51:51 [notice] 2419\#0: start worker processes log level:4 log body:2021/04/22 13:51:51 [error] 2566\#0: *171 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/04/22 13:51:51 [notice] 2419#0: start worker processes
log level:4
log body:2021/04/22 13:51:51 [error] 2566#0: *171 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 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 13: filter log by level(ngx.CRIT) - response_body - response is expected (repeated req 0, req 0) got: 'log lines:1
'
expected: 'log lines:0
'
stream/errlog.t TEST 3: client connected info - grep_error_log_out (req 0) 'client 127.0.0.1:24720 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:24724 connected to
capture log line:10
'
doesn't match '(?^:^client .*? connected to .*?
capture log line:2
$)'
stream/process-type-single.t TEST 1: sanity - response_body - response is expected (repeated req 0, req 0) got: "process type: worker\x{0a}"
length: 21
expected: "process type: single\x{0a}"
length: 21
strings begin to differ at char 15 (line 1 column 15)
stream/process-type-single.t TEST 1: sanity - grep_error_log_out (req 0) '[TRACE 1 init_by_lua:31 loop]
[TRACE 2 init_worker_by_lua:4 loop]
[TRACE 2 content_by_lua(nginx.conf:78):4 loop]
process type in init_by_lua*: master
init_worker_by_lua:10: process type: worker
'
doesn't match '(?^:\[TRACE\s+\d+ init_by_lua:\d+ loop\]
\[TRACE\s+\d+ init_worker_by_lua:\d+ loop\]
\[TRACE\s+\d+ content_by_lua\(nginx.conf:\d+\):4 loop\]
process type in init_by_lua\*: single
init_worker_by_lua:10: process type: single
)'
stream/process-type-single.t TEST 1: sanity - response_body - response is expected (repeated req 1, req 0) got: "process type: worker\x{0a}"
length: 21
expected: "process type: single\x{0a}"
length: 21
strings begin to differ at char 15 (line 1 column 15)
stream/process-type-single.t TEST 1: sanity - grep_error_log_out (req 1) '[TRACE 1 init_by_lua:31 loop]
[TRACE 2 init_worker_by_lua:4 loop]
[TRACE 2 content_by_lua(nginx.conf:78):4 loop]
process type in init_by_lua*: master
init_worker_by_lua:10: process type: worker
'
doesn't match '(?^:\[TRACE\s+\d+ init_by_lua:\d+ loop\]
\[TRACE\s+\d+ init_worker_by_lua:\d+ loop\]
\[TRACE\s+\d+ content_by_lua\(nginx.conf:\d+\):4 loop\]
process type in init_by_lua\*: single
init_worker_by_lua:10: process type: single
)'
stream/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/04/22 13:53:05 [error] 7016\#0: *754 stream [lua] init_worker_by_lua:14: sem: timeout, context: ngx.timer" (req 0) 2021/04/22 13:53:05 [debug] 7016\#0: stream lua semaphore wait: 0000000001DBFB78, timeout: 1000, resources: 0, event posted: 0
2021/04/22 13:53:05 [debug] 7016\#0: *754 event timer add: 0: 1000:10840739
2021/04/22 13:53:05 [debug] 7016\#0: stream lua semaphore wait yielding
2021/04/22 13:53:05 [debug] 7016\#0: *754 lua resume returned 1
2021/04/22 13:53:05 [debug] 7016\#0: *754 lua thread yielded
2021/04/22 13:53:05 [debug] 7016\#0: *754 lua run thread returned -2
2021/04/22 13:53:05 [debug] 7016\#0: worker cycle
2021/04/22 13:53:05 [debug] 7016\#0: epoll timer: 1000
2021/04/22 13:53:05 [debug] 7075\#0: epoll: fd:7 ev:0001 d:0000000001DA93E0
'
Looks like you failed 1 test of 184.

Warnings

Go back to the index page.