(This page was automatically generated by the tools in the opsboy project on 04:51:58 11-Oct-2024 GMT.)
Commit | Testing Time | Unexpected Failures |
Expected Failures |
Files | Tests | Elapsed Time |
---|---|---|---|---|---|---|
fc1de60f | 2021-04-27 04:41:26 GMT | 21 | 65 | 84 | 8801 | 1737 sec |
File | Name | Details |
---|---|---|
pipe-multi-workers.t | nginx: [emerg] | reuseport is not supported on this platform, ignored in /home/ec2-user/git/lua-resty-core/t/servroot/conf/nginx.conf:53 |
pipe-stdin.t | TEST 11: write process, aborted by uthread kill, with graceful shutdown - response_body - response is expected (repeated req 0, req 0) |
@@ -1,2 +1,2 @@ -stdout: ok +stdout err: timeout -stderr err: closed +stderr err: timeout ' |
pipe-stdin.t | TEST 11: write process, aborted by uthread kill, with graceful shutdown - response_body - response is expected (repeated req 1, req 0) |
@@ -1,2 +1,2 @@ -stdout: ok +stdout err: timeout -stderr err: closed +stderr err: timeout ' |
pipe-stdin.t | TEST 1: write process - response_body - response is expected (repeated req 1, req 0) |
@@ -1,4 +1,4 @@ 0 5 6 -hello world +hello ' |
shdict.t | TEST 49: init_ttl uses long type to avoid overflow in incr() + ttl() - response_body - response is expected (repeated req 0, req 0) |
got: 'ttl: 0 ' expected: 'ttl: 2147483648 ' |
shdict.t | TEST 49: init_ttl uses long type to avoid overflow in incr() + ttl() - response_body - response is expected (repeated req 1, req 0) |
got: 'ttl: 0 ' expected: 'ttl: 2147483648 ' |
shdict.t | TEST 48: exptime uses long type to avoid overflow in expire() + ttl() - response_body - response is expected (repeated req 0, req 0) |
got: 'ttl: 0 ' expected: 'ttl: 2147483648 ' |
shdict.t | TEST 48: exptime uses long type to avoid overflow in expire() + ttl() - response_body - response is expected (repeated req 1, req 0) |
got: 'ttl: 0 ' expected: 'ttl: 2147483648 ' |
shdict.t | TEST 47: exptime uses long type to avoid overflow in set() + ttl() - response_body - response is expected (repeated req 0, req 0) |
got: 'ttl: 0 ' expected: 'ttl: 2147483648 ' |
shdict.t | TEST 47: exptime uses long type to avoid overflow in set() + ttl() - response_body - response is expected (repeated req 1, req 0) |
got: 'ttl: 0 ' expected: 'ttl: 2147483648 ' |
stream/process-type-hup.t | TEST 1: sanity - pattern "init_worker_by_lua:6: process type: privileged" should match a line in error.log (req 1) |
Looks like you failed 1 test of 8. |
stream/re-opt.t | TEST 1: default jit_stack_size too small - response_body - response is expected (repeated req 0, req 0) |
got: 'from: 1 to: 1563 ' expected: 'error: pcre_exec() failed: -27 ' |
stream/re-opt.t | TEST 1: default jit_stack_size too small - response_body - response is expected (repeated req 1, req 0) |
got: 'from: 1 to: 1563 ' expected: 'error: pcre_exec() failed: -27 ' |
stream/shdict.t | TEST 49: init_ttl uses long type to avoid overflow in incr() + ttl() - response_body - response is expected (repeated req 0, req 0) |
got: 'ttl: 0 ' expected: 'ttl: 2147483648 ' |
stream/shdict.t | TEST 49: init_ttl uses long type to avoid overflow in incr() + ttl() - response_body - response is expected (repeated req 1, req 0) |
got: 'ttl: 0 ' expected: 'ttl: 2147483648 ' |
stream/shdict.t | TEST 48: exptime uses long type to avoid overflow in expire() + ttl() - response_body - response is expected (repeated req 0, req 0) |
got: 'ttl: 0 ' expected: 'ttl: 2147483648 ' |
stream/shdict.t | TEST 48: exptime uses long type to avoid overflow in expire() + ttl() - response_body - response is expected (repeated req 1, req 0) |
got: 'ttl: 0 ' expected: 'ttl: 2147483648 ' |
stream/shdict.t | TEST 47: exptime uses long type to avoid overflow in set() + ttl() - response_body - response is expected (repeated req 0, req 0) |
got: 'ttl: 0 ' expected: 'ttl: 2147483648 ' |
stream/shdict.t | TEST 47: exptime uses long type to avoid overflow in set() + ttl() - response_body - response is expected (repeated req 1, req 0) |
got: 'ttl: 0 ' expected: 'ttl: 2147483648 ' |
time.t | TEST 7: ngx.cookie_time() - response_body - response is expected (repeated req 0, req 0) |
@@ -1,2 +1,2 @@ Thu, 18-Nov-10 11:27:35 GMT -Sun, 18-Sep-2039 23:06:40 GMT +Thu, 01-Jan-70 00:00:00 GMT ' |
time.t | TEST 7: ngx.cookie_time() - response_body - response is expected (repeated req 1, req 0) |
@@ -1,2 +1,2 @@ Thu, 18-Nov-10 11:27:35 GMT -Sun, 18-Sep-2039 23:06:40 GMT +Thu, 01-Jan-70 00:00:00 GMT ' |
File | Name | Details |
---|---|---|
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 | 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: \#2 log level:6 log body:2021/04/27 10:13:57 [notice] 9278\#0: start worker processes log level:4 log body:2021/04/27 10:13:58 [error] 9279\#0: *1 [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 lines: #2 log level:6 log body:2021/04/27 10:13:57 [notice] 9278#0: start worker processes log level:4 log body:2021/04/27 10:13:58 [error] 9279#0: *1 [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" ' 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 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/27 10:13:58 [notice] 9278\#0: start worker processes log level:7 log body:2021/04/27 10:13:58 [info] 9285\#0: *4 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/04/27 10:13:58 [info] 9285\#0: *5 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/04/27 10:13:58 [info] 9285\#0: *6 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/04/27 10:13:58 [info] 9285\#0: *7 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/04/27 10:13:58 [info] 9285\#0: *8 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/04/27 10:13:58 [info] 9285\#0: *9 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/04/27 10:13:58 [info] 9285\#0: *10 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/04/27 10:13:58 [info] 9285\#0: *11 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/04/27 10:13:58 [info] 9285\#0: *12 client 127.0.0.1 closed keepalive connection end maybe log lines: \#10 log level:7 log body:2021/04/27 10:13:58 [info] 9285\#0: *13 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/04/27 10:13:59 [info] 9285\#0: *14 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/04/27 10:13:59 [info] 9285\#0: *15 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/04/27 10:13:59 [info] 9285\#0: *16 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/04/27 10:13:59 [info] 9285\#0: *17 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/04/27 10:13:59 [info] 9285\#0: *18 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/04/27 10:13:59 [info] 9285\#0: *19 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/04/27 10:13:59 [info] 9285\#0: *20 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/04/27 10:13:59 [info] 9285\#0: *21 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/04/27 10:13:59 [info] 9285\#0: *22 client 127.0.0.1 closed keepalive connection end) |
'maybe log lines: #10 log level:6 log body:2021/04/27 10:13:58 [notice] 9278#0: start worker processes log level:7 log body:2021/04/27 10:13:58 [info] 9285#0: *4 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/04/27 10:13:58 [info] 9285#0: *5 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/04/27 10:13:58 [info] 9285#0: *6 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/04/27 10:13:58 [info] 9285#0: *7 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/04/27 10:13:58 [info] 9285#0: *8 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/04/27 10:13:58 [info] 9285#0: *9 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/04/27 10:13:58 [info] 9285#0: *10 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/04/27 10:13:58 [info] 9285#0: *11 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/04/27 10:13:58 [info] 9285#0: *12 client 127.0.0.1 closed keepalive connection end maybe log lines: #10 log level:7 log body:2021/04/27 10:13:58 [info] 9285#0: *13 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/04/27 10:13:59 [info] 9285#0: *14 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/04/27 10:13:59 [info] 9285#0: *15 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/04/27 10:13:59 [info] 9285#0: *16 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/04/27 10:13:59 [info] 9285#0: *17 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/04/27 10:13:59 [info] 9285#0: *18 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/04/27 10:13:59 [info] 9285#0: *19 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/04/27 10:13:59 [info] 9285#0: *20 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/04/27 10:13:59 [info] 9285#0: *21 client 127.0.0.1 closed keepalive connection log level:7 log body:2021/04/27 10:13:59 [info] 9285#0: *22 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/27 10:13:59 [info] 9285\#0: *23 client 127.0.0.1 closed keepalive connection log level:4 log body:2021/04/27 10:13:59 [error] 9285\#0: *24 [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/27 10:13:59 [error] 9285\#0: *25 [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/27 10:13:59 [info] 9285#0: *23 client 127.0.0.1 closed keepalive connection log level:4 log body:2021/04/27 10:13:59 [error] 9285#0: *24 [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/27 10:13:59 [error] 9285#0: *25 [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 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 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 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 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 29: ringbuf overflow bug - response_body_like - response is expected (log level: 4 log time: 1619518455.829 log body: 2021/04/27 10:14:15 [error] 9582\#0: *278 [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: 1619518455.829 log body: 2021/04/27 10:14:15 [error] 9582\#0: *278 [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: 1619518455.829 log body: 2021/04/27 10:14:15 [error] 9582\#0: *278 [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: 1619518455.829 log body: 2021/04/27 10:14:15 [error] 9582\#0: *278 [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: 1619518455.829 log body: 2021/04/27 10:14:15 [error] 9582\#0: *278 [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: 1619518455.829 log body: 2021/04/27 10:14:15 [error] 9582\#0: *278 [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: 1619518455.829 log body: 2021/04/27 10:14:15 [error] 9582\#0: *278 [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: 1619518455.829 log body: 2021/04/27 10:14:15 [error] 9582\#0: *278 [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: 1619518455.829 log body: 2021/04/27 10:14:15 [error] 9582\#0: *278 [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: 1619518455.829 log body: 2021/04/27 10:14:15 [error] 9582\#0: *278 [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: 1619518455.829 log body: 2021/04/27 10:14:15 [error] 9582#0: *278 [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: 1619518455.829 log body: 2021/04/27 10:14:15 [error] 9582#0: *278 [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: 1619518455.829 log body: 2021/04/27 10:14:15 [error] 9582#0: *278 [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: 1619518455.829 log body: 2021/04/27 10:14:15 [error] 9582#0: *278 [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: 1619518455.829 log body: 2021/04/27 10:14:15 [error] 9582#0: *278 [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: 1619518455.829 log body: 2021/04/27 10:14:15 [error] 9582#0: *278 [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: 1619518455.829 log body: 2021/04/27 10:14:15 [error] 9582#0: *278 [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: 1619518455.829 log body: 2021/04/27 10:14:15 [error] 9582#0: *278 [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: 1619518455.829 log body: 2021/04/27 10:14:15 [error] 9582#0: *278 [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: 1619518455.829 log body: 2021/04/27 10:14:15 [error] 9582#0: *278 [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: 1619518455.893 log body: 2021/04/27 10:14:15 [error] 9582\#0: *279 [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: 1619518455.893 log body: 2021/04/27 10:14:15 [error] 9582\#0: *279 [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: 1619518455.893 log body: 2021/04/27 10:14:15 [error] 9582\#0: *279 [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: 1619518455.893 log body: 2021/04/27 10:14:15 [error] 9582\#0: *279 [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: 1619518455.893 log body: 2021/04/27 10:14:15 [error] 9582\#0: *279 [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: 1619518455.893 log body: 2021/04/27 10:14:15 [error] 9582\#0: *279 [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: 1619518455.893 log body: 2021/04/27 10:14:15 [error] 9582\#0: *279 [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: 1619518455.893 log body: 2021/04/27 10:14:15 [error] 9582\#0: *279 [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: 1619518455.893 log body: 2021/04/27 10:14:15 [error] 9582\#0: *279 [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: 1619518455.893 log body: 2021/04/27 10:14:15 [error] 9582\#0: *279 [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: 1619518455.893 log body: 2021/04/27 10:14:15 [error] 9582#0: *279 [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: 1619518455.893 log body: 2021/04/27 10:14:15 [error] 9582#0: *279 [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: 1619518455.893 log body: 2021/04/27 10:14:15 [error] 9582#0: *279 [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: 1619518455.893 log body: 2021/04/27 10:14:15 [error] 9582#0: *279 [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: 1619518455.893 log body: 2021/04/27 10:14:15 [error] 9582#0: *279 [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: 1619518455.893 log body: 2021/04/27 10:14:15 [error] 9582#0: *279 [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: 1619518455.893 log body: 2021/04/27 10:14:15 [error] 9582#0: *279 [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: 1619518455.893 log body: 2021/04/27 10:14:15 [error] 9582#0: *279 [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: 1619518455.893 log body: 2021/04/27 10:14:15 [error] 9582#0: *279 [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: 1619518455.893 log body: 2021/04/27 10:14:15 [error] 9582#0: *279 [lua] content_by_lua(nginx.conf:84):8: **********38, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" ' doesn't match '(?^s:log level: 4 log time: \d+(?:\.\d+)? log body: \d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: \*\*\*\*\*\*\*\*\*\*39, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level: 4 log time: \d{10}(?:\.\d+)? log body: \d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: \*\*\*\*\*\*\*\*\*\*40, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost")' |
errlog.t | nginx: [emerg] | invalid number of arguments in "lua_capture_error_log" directive in /home/ec2-user/git/lua-resty-core/t/servroot/conf/nginx.conf:25 |
process-type-single.t | TEST 1: sanity - response_body - response is expected (repeated req 0, req 0) |
got: "process type: worker\x{0a}" length: 21 expected: "process type: single\x{0a}" length: 21 strings begin to differ at char 15 (line 1 column 15) |
process-type-single.t | TEST 1: sanity - grep_error_log_out (req 0) |
'[TRACE 1 init_by_lua:18 loop] [TRACE 2 init_worker_by_lua:4 loop] [TRACE 2 content_by_lua(nginx.conf:84):4 loop] process type in init_by_lua*: master init_worker_by_lua:10: process type: worker ' doesn't match '(?^:\[TRACE\s+\d+ init_by_lua:\d+ loop\] \[TRACE\s+\d+ init_worker_by_lua:\d+ loop\] \[TRACE\s+\d+ content_by_lua\(nginx.conf:\d+\):4 loop\] process type in init_by_lua\*: single init_worker_by_lua:10: process type: single )' |
process-type-single.t | TEST 1: sanity - response_body - response is expected (repeated req 1, req 0) |
got: "process type: worker\x{0a}" length: 21 expected: "process type: single\x{0a}" length: 21 strings begin to differ at char 15 (line 1 column 15) |
process-type-single.t | TEST 1: sanity - grep_error_log_out (req 1) |
'[TRACE 1 init_by_lua:18 loop] [TRACE 2 init_worker_by_lua:4 loop] [TRACE 2 content_by_lua(nginx.conf:84):4 loop] process type in init_by_lua*: master init_worker_by_lua:10: process type: worker ' doesn't match '(?^:\[TRACE\s+\d+ init_by_lua:\d+ loop\] \[TRACE\s+\d+ init_worker_by_lua:\d+ loop\] \[TRACE\s+\d+ content_by_lua\(nginx.conf:\d+\):4 loop\] process type in init_by_lua\*: single init_worker_by_lua:10: process type: single )' |
re-opt.t | TEST 1: default jit_stack_size too small - response_body - response is expected (repeated req 0, req 0) |
got: 'from: 1 to: 1563 ' expected: 'error: pcre_exec() failed: -27 ' |
re-opt.t | TEST 1: default jit_stack_size too small - response_body - response is expected (repeated req 1, req 0) |
got: 'from: 1 to: 1563 ' expected: 'error: pcre_exec() failed: -27 ' |
semaphore.t | TEST 17: semaphore post in all phase (in a request) - grep_error_log_out (req 0) |
got: 'sem: timeout, sem: 6 times, ' expected: 'sem: 6 times, ' |
semaphore.t | TEST 2: semaphore wait order - pattern "[error]" should not match any line in error.log but matches line "2021/04/27 10:25:41 [error] 19967\#0: *635 [lua] init_worker_by_lua:14: sem: timeout, context: ngx.timer" (req 0) |
2021/04/27 10:25:41 [debug] 19967\#0: http lua semaphore wait: 098A01EC, timeout: 1000, resources: 0, event posted: 0 2021/04/27 10:25:41 [debug] 19967\#0: *635 event timer add: 0: 1000:20747249 2021/04/27 10:25:41 [debug] 19967\#0: http lua semaphore wait yielding 2021/04/27 10:25:41 [debug] 19967\#0: *635 lua resume returned 1 2021/04/27 10:25:41 [debug] 19967\#0: *635 lua thread yielded 2021/04/27 10:25:41 [debug] 19967\#0: *635 lua run thread returned -2 2021/04/27 10:25:41 [debug] 19967\#0: worker cycle 2021/04/27 10:25:41 [debug] 19967\#0: epoll timer: 1000 2021/04/27 10:25:41 [debug] 19994\#0: epoll: fd:7 ev:0001 d:0987EBD8 ' |
semaphore.t | TEST 2: semaphore wait order - pattern "[error]" should not match any line in error.log but matches line "2021/04/27 10:25:42 [error] 19967\#0: *635 [lua] init_worker_by_lua:14: sem: timeout, context: ngx.timer" (req 0) |
2021/04/27 10:25:42 [debug] 19967\#0: http lua semaphore wait: 098A01EC, timeout: 1000, resources: 0, event posted: 0 2021/04/27 10:25:42 [debug] 19967\#0: *635 event timer add: 0: 1000:20748249 2021/04/27 10:25:42 [debug] 19967\#0: http lua semaphore wait yielding 2021/04/27 10:25:42 [debug] 19967\#0: *635 lua resume returned 1 2021/04/27 10:25:42 [debug] 19967\#0: *635 lua thread yielded 2021/04/27 10:25:42 [debug] 19967\#0: *635 lua run thread returned -2 2021/04/27 10:25:42 [debug] 19967\#0: worker cycle 2021/04/27 10:25:42 [debug] 19967\#0: epoll timer: 1000 2021/04/27 10:25:42 [debug] 19994\#0: new block, alloc semaphore: 098A2D7C block: 098A2D70 ' |
semaphore.t | TEST 21: semaphore post in header_filter_by_lua (subrequest) - pattern "[error]" should not match any line in error.log but matches line "2021/04/27 10:25:45 [error] 19967\#0: *635 [lua] init_worker_by_lua:14: sem: timeout, context: ngx.timer" (req 0) |
2021/04/27 10:25:45 [debug] 19967\#0: http lua semaphore wait: 098A01EC, timeout: 1000, resources: 0, event posted: 0 2021/04/27 10:25:45 [debug] 19967\#0: *635 event timer add: 0: 1000:20751253 2021/04/27 10:25:45 [debug] 19967\#0: http lua semaphore wait yielding 2021/04/27 10:25:45 [debug] 19967\#0: *635 lua resume returned 1 2021/04/27 10:25:45 [debug] 19967\#0: *635 lua thread yielded 2021/04/27 10:25:45 [debug] 19967\#0: *635 lua run thread returned -2 2021/04/27 10:25:45 [debug] 19967\#0: worker cycle 2021/04/27 10:25:45 [debug] 19967\#0: epoll timer: 1000 2021/04/27 10:25:45 [notice] 19231\#0: signal 1 (SIGHUP) received from 20048, reconfiguring ' |
semaphore.t | TEST 21: semaphore post in header_filter_by_lua (subrequest) - pattern "[error]" should not match any line in error.log but matches line "2021/04/27 10:25:46 [error] 19967\#0: *635 [lua] init_worker_by_lua:14: sem: timeout, context: ngx.timer" (req 0) |
2021/04/27 10:25:45 [debug] 20022\#0: add to free queue head semaphore: 099570EC epoch: 3mid_epoch: 2 cur_epoch: 3 2021/04/27 10:25:46 [debug] 19967\#0: http lua semaphore wait: 098A01EC, timeout: 1000, resources: 0, event posted: 0 2021/04/27 10:25:45 [debug] 20022\#0: in lua gc, semaphore 09955A6C 2021/04/27 10:25:46 [debug] 19967\#0: *635 event timer add: 0: 1000:20752257 2021/04/27 10:25:45 [debug] 20022\#0: add to free queue head semaphore: 09955A6C epoch: 3mid_epoch: 2 cur_epoch: 3 2021/04/27 10:25:46 [debug] 19967\#0: http lua semaphore wait yielding 2021/04/27 10:25:45 [debug] 20022\#0: in lua gc, semaphore 0995600C 2021/04/27 10:25:46 [debug] 19967\#0: *635 lua resume returned 1 2021/04/27 10:25:45 [debug] 20022\#0: add to free queue head semaphore: 0995600C epoch: 3mid_epoch: 2 cur_epoch: 3 ' |
semaphore.t | TEST 21: semaphore post in header_filter_by_lua (subrequest) - pattern "[error]" should not match any line in error.log but matches line "2021/04/27 10:25:47 [error] 19967\#0: *635 [lua] init_worker_by_lua:14: sem: timeout, context: ngx.timer" (req 0) |
2021/04/27 10:25:47 [debug] 19967\#0: http lua semaphore wait: 098A01EC, timeout: 1000, resources: 0, event posted: 0 2021/04/27 10:25:47 [debug] 19967\#0: *635 event timer add: 0: 1000:20753262 2021/04/27 10:25:47 [debug] 19967\#0: http lua semaphore wait yielding 2021/04/27 10:25:47 [debug] 19967\#0: *635 lua resume returned 1 2021/04/27 10:25:47 [debug] 19967\#0: *635 lua thread yielded 2021/04/27 10:25:47 [debug] 19967\#0: *635 lua run thread returned -2 2021/04/27 10:25:47 [debug] 19967\#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 "2021/04/27 10:25:50 [error] 19967\#0: *635 [lua] init_worker_by_lua:14: sem: timeout, context: ngx.timer" (req 0) |
2021/04/27 10:25:50 [debug] 19967\#0: http lua semaphore wait: 098A01EC, timeout: 1000, resources: 0, event posted: 0 2021/04/27 10:25:50 [debug] 19967\#0: *635 event timer add: 0: 1000:20756266 2021/04/27 10:25:50 [debug] 19967\#0: http lua semaphore wait yielding 2021/04/27 10:25:50 [debug] 19967\#0: *635 lua resume returned 1 2021/04/27 10:25:50 [debug] 19967\#0: *635 lua thread yielded 2021/04/27 10:25:50 [debug] 19967\#0: *635 lua run thread returned -2 2021/04/27 10:25:50 [debug] 19967\#0: worker cycle 2021/04/27 10:25:50 [debug] 19967\#0: epoll timer: 1000 2021/04/27 10:25:50 [debug] 20106\#0: epoll: fd:7 ev:0001 d:0987EBD8 ' |
semaphore.t | TEST 24: semaphore post in timer.at - pattern "[error]" should not match any line in error.log but matches line "2021/04/27 10:25:52 [error] 19967\#0: *635 [lua] init_worker_by_lua:14: sem: timeout, context: ngx.timer" (req 0) |
2021/04/27 10:25:52 [debug] 19967\#0: http lua semaphore wait: 098A01EC, timeout: 1000, resources: 0, event posted: 0 2021/04/27 10:25:52 [debug] 19967\#0: *635 event timer add: 0: 1000:20758270 2021/04/27 10:25:52 [debug] 19967\#0: http lua semaphore wait yielding 2021/04/27 10:25:52 [debug] 19967\#0: *635 lua resume returned 1 2021/04/27 10:25:52 [debug] 19967\#0: *635 lua thread yielded 2021/04/27 10:25:52 [debug] 19967\#0: *635 lua run thread returned -2 2021/04/27 10:25:52 [debug] 19967\#0: worker cycle 2021/04/27 10:25:52 [debug] 19967\#0: epoll timer: 1000 2021/04/27 10:25:52 [debug] 20134\#0: epoll: fd:7 ev:0001 d:098A0B30 ' |
semaphore.t | TEST 12: semaphore in content_by_lua (all allowed) - grep_error_log_out (req 0) |
@@ -1,2 +1,4 @@ sem: timeout, +sem: timeout, +sem: timeout, sem: 1, ' |
semaphore.t | TEST 18: semaphore wait post in access_by_lua - pattern "[error]" should not match any line in error.log but matches line "2021/04/27 10:25:55 [error] 19967\#0: *635 [lua] init_worker_by_lua:14: sem: timeout, context: ngx.timer" (req 0) |
2021/04/27 10:25:55 [error] 19967\#0: *635 [lua] init_worker_by_lua:18: sem: 6 times, context: ngx.timer 2021/04/27 10:25:55 [debug] 19967\#0: http lua semaphore wait: 098A01EC, timeout: 1000, resources: 0, event posted: 0 2021/04/27 10:25:55 [debug] 19967\#0: *635 event timer add: 0: 1000:20761278 2021/04/27 10:25:55 [debug] 19967\#0: http lua semaphore wait yielding 2021/04/27 10:25:55 [debug] 19967\#0: *635 lua resume returned 1 2021/04/27 10:25:55 [debug] 19967\#0: *635 lua thread yielded 2021/04/27 10:25:55 [debug] 19967\#0: *635 lua run thread returned -2 2021/04/27 10:25:55 [debug] 19967\#0: worker cycle 2021/04/27 10:25:55 [debug] 19967\#0: epoll timer: 1000 ' |
semaphore.t | TEST 18: semaphore wait post in access_by_lua - pattern "[error]" should not match any line in error.log but matches line "2021/04/27 10:25:55 [error] 19967\#0: *635 [lua] init_worker_by_lua:18: sem: 6 times, context: ngx.timer" (req 0) |
2021/04/27 10:25:55 [debug] 19967\#0: http lua semaphore wait: 098A01EC, timeout: 1000, resources: 0, event posted: 0 2021/04/27 10:25:55 [debug] 19967\#0: *635 event timer add: 0: 1000:20761278 2021/04/27 10:25:55 [debug] 19967\#0: http lua semaphore wait yielding 2021/04/27 10:25:55 [debug] 19967\#0: *635 lua resume returned 1 2021/04/27 10:25:55 [debug] 19967\#0: *635 lua thread yielded 2021/04/27 10:25:55 [debug] 19967\#0: *635 lua run thread returned -2 2021/04/27 10:25:55 [debug] 19967\#0: worker cycle 2021/04/27 10:25:55 [debug] 19967\#0: epoll timer: 1000 2021/04/27 10:25:55 [debug] 20162\#0: epoll: fd:7 ev:0001 d:098A0B08 ' |
semaphore.t | TEST 18: semaphore wait post in access_by_lua - pattern "[error]" should not match any line in error.log but matches line "2021/04/27 10:25:56 [error] 19967\#0: *635 [lua] init_worker_by_lua:14: sem: timeout, context: ngx.timer" (req 0) |
2021/04/27 10:25:56 [debug] 19967\#0: http lua semaphore wait: 098A01EC, timeout: 1000, resources: 0, event posted: 0 2021/04/27 10:25:56 [debug] 19967\#0: *635 event timer add: 0: 1000:20762278 2021/04/27 10:25:56 [debug] 19967\#0: http lua semaphore wait yielding 2021/04/27 10:25:56 [debug] 19967\#0: *635 lua resume returned 1 2021/04/27 10:25:56 [debug] 19967\#0: *635 lua thread yielded 2021/04/27 10:25:56 [debug] 19967\#0: *635 lua run thread returned -2 2021/04/27 10:25:56 [debug] 19967\#0: worker cycle 2021/04/27 10:25:56 [debug] 19967\#0: epoll timer: 1000 2021/04/27 10:25:56 [debug] 20190\#0: epoll: fd:7 ev:0001 d:09884140 ' |
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 "2021/04/27 10:25:57 [error] 19967\#0: *635 [lua] init_worker_by_lua:14: sem: timeout, context: ngx.timer" (req 0) |
2021/04/27 10:25:57 [debug] 19967\#0: http lua semaphore wait: 098A01EC, timeout: 1000, resources: 0, event posted: 0 2021/04/27 10:25:57 [debug] 19967\#0: *635 event timer add: 0: 1000:20763278 2021/04/27 10:25:57 [debug] 19967\#0: http lua semaphore wait yielding 2021/04/27 10:25:57 [debug] 19967\#0: *635 lua resume returned 1 2021/04/27 10:25:57 [debug] 19967\#0: *635 lua thread yielded 2021/04/27 10:25:57 [debug] 19967\#0: *635 lua run thread returned -2 2021/04/27 10:25:57 [debug] 19967\#0: worker cycle 2021/04/27 10:25:57 [debug] 19967\#0: epoll timer: 1000 2021/04/27 10:25:57 [debug] 20218\#0: epoll: fd:7 ev:0001 d:098803E0 ' |
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 "2021/04/27 10:25:58 [error] 19967\#0: *635 [lua] init_worker_by_lua:14: sem: timeout, context: ngx.timer" (req 0) |
2021/04/27 10:25:58 [debug] 19967\#0: http lua semaphore wait: 098A01EC, timeout: 1000, resources: 0, event posted: 0 2021/04/27 10:25:58 [debug] 19967\#0: *635 event timer add: 0: 1000:20764278 2021/04/27 10:25:58 [debug] 19967\#0: http lua semaphore wait yielding 2021/04/27 10:25:58 [debug] 19967\#0: *635 lua resume returned 1 2021/04/27 10:25:58 [debug] 19967\#0: *635 lua thread yielded 2021/04/27 10:25:58 [debug] 19967\#0: *635 lua run thread returned -2 2021/04/27 10:25:58 [debug] 19967\#0: worker cycle 2021/04/27 10:25:58 [debug] 19967\#0: epoll timer: 1000 2021/04/27 10:25:58 [debug] 20218\#0: epoll: fd:7 ev:0001 d:098803E0 ' |
semaphore.t | TEST 9: semaphore in set_by_lua (wait is not allowed) - grep_error_log_out (req 0) |
@@ -1,2 +1,4 @@ +sem: timeout, +sem: timeout, sem: 1, sem: API disabled in the context of set_by_lua*, ' |
semaphore.t | TEST 4: basic semaphore in subrequest - pattern "[error]" should not match any line in error.log but matches line "2021/04/27 10:26:01 [error] 19967\#0: *635 [lua] init_worker_by_lua:14: sem: timeout, context: ngx.timer" (req 0) |
2021/04/27 10:26:01 [error] 19967\#0: *635 [lua] init_worker_by_lua:18: sem: 6 times, context: ngx.timer 2021/04/27 10:26:01 [debug] 19967\#0: http lua semaphore wait: 098A01EC, timeout: 1000, resources: 0, event posted: 0 2021/04/27 10:26:01 [debug] 19967\#0: *635 event timer add: 0: 1000:20767282 2021/04/27 10:26:01 [debug] 19967\#0: http lua semaphore wait yielding 2021/04/27 10:26:01 [debug] 19967\#0: *635 lua resume returned 1 2021/04/27 10:26:01 [debug] 19967\#0: *635 lua thread yielded 2021/04/27 10:26:01 [debug] 19967\#0: *635 lua run thread returned -2 2021/04/27 10:26:01 [debug] 19967\#0: worker cycle 2021/04/27 10:26:01 [debug] 19967\#0: epoll timer: 1000 ' |
semaphore.t | TEST 4: basic semaphore in subrequest - pattern "[error]" should not match any line in error.log but matches line "2021/04/27 10:26:01 [error] 19967\#0: *635 [lua] init_worker_by_lua:18: sem: 6 times, context: ngx.timer" (req 0) |
2021/04/27 10:26:01 [debug] 19967\#0: http lua semaphore wait: 098A01EC, timeout: 1000, resources: 0, event posted: 0 2021/04/27 10:26:01 [debug] 19967\#0: *635 event timer add: 0: 1000:20767282 2021/04/27 10:26:01 [debug] 19967\#0: http lua semaphore wait yielding 2021/04/27 10:26:01 [debug] 19967\#0: *635 lua resume returned 1 2021/04/27 10:26:01 [debug] 19967\#0: *635 lua thread yielded 2021/04/27 10:26:01 [debug] 19967\#0: *635 lua run thread returned -2 2021/04/27 10:26:01 [debug] 19967\#0: worker cycle 2021/04/27 10:26:01 [debug] 19967\#0: epoll timer: 1000 2021/04/27 10:26:01 [debug] 20274\#0: epoll: fd:7 ev:0001 d:098803E0 ' |
semaphore.t | TEST 4: basic semaphore in subrequest - pattern "[error]" should not match any line in error.log but matches line "2021/04/27 10:26:02 [error] 19967\#0: *635 [lua] init_worker_by_lua:14: sem: timeout, context: ngx.timer" (req 0) |
2021/04/27 10:26:02 [debug] 19967\#0: http lua semaphore wait: 098A01EC, timeout: 1000, resources: 0, event posted: 0 2021/04/27 10:26:02 [debug] 19967\#0: *635 event timer add: 0: 1000:20768282 2021/04/27 10:26:02 [debug] 19967\#0: http lua semaphore wait yielding 2021/04/27 10:26:02 [debug] 19967\#0: *635 lua resume returned 1 2021/04/27 10:26:02 [debug] 19967\#0: *635 lua thread yielded 2021/04/27 10:26:02 [debug] 19967\#0: *635 lua run thread returned -2 2021/04/27 10:26:02 [debug] 19967\#0: worker cycle 2021/04/27 10:26:02 [debug] 19967\#0: epoll timer: 1000 2021/04/27 10:26:02 [debug] 20274\#0: epoll: fd:7 ev:0001 d:098803E0 ' |
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/27 10:26:03 [error] 19967\#0: *635 [lua] init_worker_by_lua:14: sem: timeout, context: ngx.timer" (req 0) |
2021/04/27 10:26:03 [debug] 19967\#0: http lua semaphore wait: 098A01EC, timeout: 1000, resources: 0, event posted: 0 2021/04/27 10:26:03 [debug] 19967\#0: *635 event timer add: 0: 1000:20769286 2021/04/27 10:26:03 [debug] 19967\#0: http lua semaphore wait yielding 2021/04/27 10:26:03 [debug] 19967\#0: *635 lua resume returned 1 2021/04/27 10:26:03 [debug] 19967\#0: *635 lua thread yielded 2021/04/27 10:26:03 [debug] 19967\#0: *635 lua run thread returned -2 2021/04/27 10:26:03 [debug] 19967\#0: worker cycle 2021/04/27 10:26:03 [debug] 19967\#0: epoll timer: 1000 2021/04/27 10:26:03 [debug] 20302\#0: epoll: fd:7 ev:0001 d:0987A168 ' |
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/27 10:26:04 [error] 19967\#0: *635 [lua] init_worker_by_lua:14: sem: timeout, context: ngx.timer" (req 0) |
2021/04/27 10:26:04 [debug] 19967\#0: http lua semaphore wait: 098A01EC, timeout: 1000, resources: 0, event posted: 0 2021/04/27 10:26:04 [debug] 19967\#0: *635 event timer add: 0: 1000:20770286 2021/04/27 10:26:04 [debug] 19967\#0: http lua semaphore wait yielding 2021/04/27 10:26:04 [debug] 19967\#0: *635 lua resume returned 1 2021/04/27 10:26:04 [debug] 19967\#0: *635 lua thread yielded 2021/04/27 10:26:04 [debug] 19967\#0: *635 lua run thread returned -2 2021/04/27 10:26:04 [debug] 19967\#0: worker cycle 2021/04/27 10:26:04 [debug] 19967\#0: epoll timer: 1000 2021/04/27 10:26:04 [debug] 20302\#0: epoll: fd:7 ev:0001 d:0987A168 ' |
shared.t | TEST 11: shared.expire returns error on not found key - response_body - response is expected (repeated req 0, req 0) |
got: '' expected: 'failed to set ttl: not found ' |
shared.t | TEST 11: shared.expire returns error on not found key - response_body - response is expected (repeated req 1, req 0) |
got: '' expected: 'failed to set ttl: not found ' |
shared.t | TEST 3: shared.ttl returns error on not found key - response_body - response is expected (repeated req 0, req 0) |
got: '' expected: 'failed to get ttl: not found ' |
shared.t | TEST 3: shared.ttl returns error on not found key - response_body - response is expected (repeated req 1, req 0) |
got: '' expected: 'failed to get ttl: not found ' |
stream/errlog.t | TEST 12: filter log by level(ngx.WARN) - response_body - response is expected (repeated req 0, req 0) |
got: 'log lines:3 ' expected: 'log lines:2 ' |
stream/errlog.t | TEST 18: flood the capturing buffer (5k) - response_body_like - response is expected (log lines: \#32 log level:5 log body:2021/04/27 10:31:37 [warn] 24669\#0: *137 stream [lua] content_by_lua(nginx.conf:78):10: --> 85, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2021/04/27 10:31:37 [error] 24669\#0: *137 stream [lua] content_by_lua(nginx.conf:78):11: --> 85, client: 127.0.0.1, server: 0.0.0.0:1985 log level:5 log body:2021/04/27 10:31:37 [warn] 24669\#0: *137 stream [lua] content_by_lua(nginx.conf:78):10: --> 86, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2021/04/27 10:31:37 [error] 24669\#0: *137 stream [lua] content_by_lua(nginx.conf:78):11: --> 99, client: 127.0.0.1, server: 0.0.0.0:1985 log level:5 log body:2021/04/27 10:31:37 [warn] 24669\#0: *137 stream [lua] content_by_lua(nginx.conf:78):10: --> 100, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2021/04/27 10:31:37 [error] 24669\#0: *137 stream [lua] content_by_lua(nginx.conf:78):11: --> 100, client: 127.0.0.1, server: 0.0.0.0:1985) |
'log lines: #32 log level:5 log body:2021/04/27 10:31:37 [warn] 24669#0: *137 stream [lua] content_by_lua(nginx.conf:78):10: --> 85, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2021/04/27 10:31:37 [error] 24669#0: *137 stream [lua] content_by_lua(nginx.conf:78):11: --> 85, client: 127.0.0.1, server: 0.0.0.0:1985 log level:5 log body:2021/04/27 10:31:37 [warn] 24669#0: *137 stream [lua] content_by_lua(nginx.conf:78):10: --> 86, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2021/04/27 10:31:37 [error] 24669#0: *137 stream [lua] content_by_lua(nginx.conf:78):11: --> 99, client: 127.0.0.1, server: 0.0.0.0:1985 log level:5 log body:2021/04/27 10:31:37 [warn] 24669#0: *137 stream [lua] content_by_lua(nginx.conf:78):10: --> 100, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2021/04/27 10:31:37 [error] 24669#0: *137 stream [lua] content_by_lua(nginx.conf:78):11: --> 100, client: 127.0.0.1, server: 0.0.0.0:1985 ' doesn't match '(?^s:\A(?:log lines: #33 log level:4 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*content_by_lua\(nginx.conf:\d+\):\d+: --> 84, client: 127.0.0.1, server: 0.0.0.0:\d+ log level:5 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*content_by_lua\(nginx.conf:\d+\):\d+: --> 85, client: 127.0.0.1, server: 0.0.0.0:\d+ log level:4 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*content_by_lua\(nginx.conf:\d+\):\d+: --> 85, client: 127.0.0.1, server: 0.0.0.0:\d+ log level:4 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*content_by_lua\(nginx.conf:\d+\):\d+: --> 99, client: 127.0.0.1, server: 0.0.0.0:\d+ log level:5 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*content_by_lua\(nginx.conf:\d+\):\d+: --> 100, client: 127.0.0.1, server: 0.0.0.0:\d+ log level:4 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*content_by_lua\(nginx.conf:\d+\):\d+: --> 100, client: 127.0.0.1, server: 0.0.0.0:\d+ )\z)' |
stream/errlog.t | TEST 18: flood the capturing buffer (5k) - response_body_like - response is expected (log lines: \#32 log level:5 log body:2021/04/27 10:31:37 [warn] 24669\#0: *140 stream [lua] content_by_lua(nginx.conf:78):10: --> 85, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2021/04/27 10:31:37 [error] 24669\#0: *140 stream [lua] content_by_lua(nginx.conf:78):11: --> 85, client: 127.0.0.1, server: 0.0.0.0:1985 log level:5 log body:2021/04/27 10:31:37 [warn] 24669\#0: *140 stream [lua] content_by_lua(nginx.conf:78):10: --> 86, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2021/04/27 10:31:37 [error] 24669\#0: *140 stream [lua] content_by_lua(nginx.conf:78):11: --> 99, client: 127.0.0.1, server: 0.0.0.0:1985 log level:5 log body:2021/04/27 10:31:37 [warn] 24669\#0: *140 stream [lua] content_by_lua(nginx.conf:78):10: --> 100, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2021/04/27 10:31:37 [error] 24669\#0: *140 stream [lua] content_by_lua(nginx.conf:78):11: --> 100, client: 127.0.0.1, server: 0.0.0.0:1985) |
'log lines: #32 log level:5 log body:2021/04/27 10:31:37 [warn] 24669#0: *140 stream [lua] content_by_lua(nginx.conf:78):10: --> 85, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2021/04/27 10:31:37 [error] 24669#0: *140 stream [lua] content_by_lua(nginx.conf:78):11: --> 85, client: 127.0.0.1, server: 0.0.0.0:1985 log level:5 log body:2021/04/27 10:31:37 [warn] 24669#0: *140 stream [lua] content_by_lua(nginx.conf:78):10: --> 86, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2021/04/27 10:31:37 [error] 24669#0: *140 stream [lua] content_by_lua(nginx.conf:78):11: --> 99, client: 127.0.0.1, server: 0.0.0.0:1985 log level:5 log body:2021/04/27 10:31:37 [warn] 24669#0: *140 stream [lua] content_by_lua(nginx.conf:78):10: --> 100, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2021/04/27 10:31:37 [error] 24669#0: *140 stream [lua] content_by_lua(nginx.conf:78):11: --> 100, client: 127.0.0.1, server: 0.0.0.0:1985 ' doesn't match '(?^s:\A(?:log lines: #33 log level:4 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*content_by_lua\(nginx.conf:\d+\):\d+: --> 84, client: 127.0.0.1, server: 0.0.0.0:\d+ log level:5 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*content_by_lua\(nginx.conf:\d+\):\d+: --> 85, client: 127.0.0.1, server: 0.0.0.0:\d+ log level:4 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*content_by_lua\(nginx.conf:\d+\):\d+: --> 85, client: 127.0.0.1, server: 0.0.0.0:\d+ log level:4 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*content_by_lua\(nginx.conf:\d+\):\d+: --> 99, client: 127.0.0.1, server: 0.0.0.0:\d+ log level:5 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*content_by_lua\(nginx.conf:\d+\):\d+: --> 100, client: 127.0.0.1, server: 0.0.0.0:\d+ log level:4 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*content_by_lua\(nginx.conf:\d+\):\d+: --> 100, client: 127.0.0.1, server: 0.0.0.0:\d+ )\z)' |
stream/errlog.t | TEST 21: multi-line error log - response_body_like - response is expected (log lines: \#2 log level:6 log body:2021/04/27 10:31:38 [notice] 24555\#0: start worker processes log level:4 log body:2021/04/27 10:31:39 [error] 24696\#0: *164 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/27 10:31:38 [notice] 24555#0: start worker processes log level:4 log body:2021/04/27 10:31:39 [error] 24696#0: *164 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 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 3: client connected info - grep_error_log_out (req 0) |
'client 127.0.0.1:49885 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:49887 connected to capture log line:10 ' doesn't match '(?^:^client .*? connected to .*? capture log line:2 $)' |
stream/errlog.t | TEST 11: filter log by level(ngx.INFO) - response_body - response is expected (repeated req 0, req 0) |
got: 'log lines:4 ' expected: 'log lines:3 ' |
stream/errlog.t | 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 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 20: fetch a few and generate a few, then fetch again (not overflown again) - response_body_like - response is expected (msg count: 3 log level:5 log body:2021/04/27 10:32:04 [warn] 25151\#0: *246 stream [lua] content_by_lua(nginx.conf:91):10: --> 85, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2021/04/27 10:32:04 [error] 25151\#0: *246 stream [lua] content_by_lua(nginx.conf:91):11: --> 85, client: 127.0.0.1, server: 0.0.0.0:1985 log level:5 log body:2021/04/27 10:32:04 [warn] 25151\#0: *246 stream [lua] content_by_lua(nginx.conf:91):10: --> 86, client: 127.0.0.1, server: 0.0.0.0:1985 msg count: 3 log level:4 log body:2021/04/27 10:32:04 [error] 25151\#0: *246 stream [lua] content_by_lua(nginx.conf:91):11: --> 86, client: 127.0.0.1, server: 0.0.0.0:1985 log level:5 log body:2021/04/27 10:32:04 [warn] 25151\#0: *246 stream [lua] content_by_lua(nginx.conf:91):10: --> 87, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2021/04/27 10:32:04 [error] 25151\#0: *246 stream [lua] content_by_lua(nginx.conf:91):11: --> 87, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2021/04/27 10:32:04 [error] 25151\#0: *246 stream [lua] content_by_lua(nginx.conf:91):11: --> 100, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2021/04/27 10:32:04 [error] 25151\#0: *246 stream [lua] content_by_lua(nginx.conf:91):23: howdy, something new!, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2021/04/27 10:32:04 [error] 25151\#0: *246 stream [lua] content_by_lua(nginx.conf:91):24: howdy, something even newer!, client: 127.0.0.1, server: 0.0.0.0:1985) |
'msg count: 3 log level:5 log body:2021/04/27 10:32:04 [warn] 25151#0: *246 stream [lua] content_by_lua(nginx.conf:91):10: --> 85, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2021/04/27 10:32:04 [error] 25151#0: *246 stream [lua] content_by_lua(nginx.conf:91):11: --> 85, client: 127.0.0.1, server: 0.0.0.0:1985 log level:5 log body:2021/04/27 10:32:04 [warn] 25151#0: *246 stream [lua] content_by_lua(nginx.conf:91):10: --> 86, client: 127.0.0.1, server: 0.0.0.0:1985 msg count: 3 log level:4 log body:2021/04/27 10:32:04 [error] 25151#0: *246 stream [lua] content_by_lua(nginx.conf:91):11: --> 86, client: 127.0.0.1, server: 0.0.0.0:1985 log level:5 log body:2021/04/27 10:32:04 [warn] 25151#0: *246 stream [lua] content_by_lua(nginx.conf:91):10: --> 87, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2021/04/27 10:32:04 [error] 25151#0: *246 stream [lua] content_by_lua(nginx.conf:91):11: --> 87, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2021/04/27 10:32:04 [error] 25151#0: *246 stream [lua] content_by_lua(nginx.conf:91):11: --> 100, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2021/04/27 10:32:04 [error] 25151#0: *246 stream [lua] content_by_lua(nginx.conf:91):23: howdy, something new!, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2021/04/27 10:32:04 [error] 25151#0: *246 stream [lua] content_by_lua(nginx.conf:91):24: howdy, something even newer!, client: 127.0.0.1, server: 0.0.0.0:1985 ' doesn't match '(?^s:\Amsg count: 3 log level:4 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 84, client: 127.0.0.1, server: 0.0.0.0:\d+ log level:5 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 85, client: 127.0.0.1, server: 0.0.0.0:\d+ log level:4 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 85, client: 127.0.0.1, server: 0.0.0.0:\d+ msg count: 3 log level:5 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 86, client: 127.0.0.1, server: 0.0.0.0:\d+ log level:4 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 86, client: 127.0.0.1, server: 0.0.0.0:\d+ log level:5 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 87, client: 127.0.0.1, server: 0.0.0.0:\d+ log level:4 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 100, client: 127.0.0.1, server: 0.0.0.0:\d+ log level:4 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: howdy, something new!, client: 127.0.0.1, server: 0.0.0.0:\d+ log level:4 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: howdy, something even newer!, client: 127.0.0.1, server: 0.0.0.0:\d+ \z)' |
stream/errlog.t | TEST 20: fetch a few and generate a few, then fetch again (not overflown again) - response_body_like - response is expected (msg count: 3 log level:5 log body:2021/04/27 10:32:04 [warn] 25151\#0: *249 stream [lua] content_by_lua(nginx.conf:91):10: --> 85, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2021/04/27 10:32:04 [error] 25151\#0: *249 stream [lua] content_by_lua(nginx.conf:91):11: --> 85, client: 127.0.0.1, server: 0.0.0.0:1985 log level:5 log body:2021/04/27 10:32:04 [warn] 25151\#0: *249 stream [lua] content_by_lua(nginx.conf:91):10: --> 86, client: 127.0.0.1, server: 0.0.0.0:1985 msg count: 3 log level:4 log body:2021/04/27 10:32:04 [error] 25151\#0: *249 stream [lua] content_by_lua(nginx.conf:91):11: --> 86, client: 127.0.0.1, server: 0.0.0.0:1985 log level:5 log body:2021/04/27 10:32:04 [warn] 25151\#0: *249 stream [lua] content_by_lua(nginx.conf:91):10: --> 87, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2021/04/27 10:32:04 [error] 25151\#0: *249 stream [lua] content_by_lua(nginx.conf:91):11: --> 87, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2021/04/27 10:32:04 [error] 25151\#0: *249 stream [lua] content_by_lua(nginx.conf:91):11: --> 100, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2021/04/27 10:32:04 [error] 25151\#0: *249 stream [lua] content_by_lua(nginx.conf:91):23: howdy, something new!, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2021/04/27 10:32:04 [error] 25151\#0: *249 stream [lua] content_by_lua(nginx.conf:91):24: howdy, something even newer!, client: 127.0.0.1, server: 0.0.0.0:1985) |
'msg count: 3 log level:5 log body:2021/04/27 10:32:04 [warn] 25151#0: *249 stream [lua] content_by_lua(nginx.conf:91):10: --> 85, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2021/04/27 10:32:04 [error] 25151#0: *249 stream [lua] content_by_lua(nginx.conf:91):11: --> 85, client: 127.0.0.1, server: 0.0.0.0:1985 log level:5 log body:2021/04/27 10:32:04 [warn] 25151#0: *249 stream [lua] content_by_lua(nginx.conf:91):10: --> 86, client: 127.0.0.1, server: 0.0.0.0:1985 msg count: 3 log level:4 log body:2021/04/27 10:32:04 [error] 25151#0: *249 stream [lua] content_by_lua(nginx.conf:91):11: --> 86, client: 127.0.0.1, server: 0.0.0.0:1985 log level:5 log body:2021/04/27 10:32:04 [warn] 25151#0: *249 stream [lua] content_by_lua(nginx.conf:91):10: --> 87, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2021/04/27 10:32:04 [error] 25151#0: *249 stream [lua] content_by_lua(nginx.conf:91):11: --> 87, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2021/04/27 10:32:04 [error] 25151#0: *249 stream [lua] content_by_lua(nginx.conf:91):11: --> 100, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2021/04/27 10:32:04 [error] 25151#0: *249 stream [lua] content_by_lua(nginx.conf:91):23: howdy, something new!, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2021/04/27 10:32:04 [error] 25151#0: *249 stream [lua] content_by_lua(nginx.conf:91):24: howdy, something even newer!, client: 127.0.0.1, server: 0.0.0.0:1985 ' doesn't match '(?^s:\Amsg count: 3 log level:4 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 84, client: 127.0.0.1, server: 0.0.0.0:\d+ log level:5 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 85, client: 127.0.0.1, server: 0.0.0.0:\d+ log level:4 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 85, client: 127.0.0.1, server: 0.0.0.0:\d+ msg count: 3 log level:5 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 86, client: 127.0.0.1, server: 0.0.0.0:\d+ log level:4 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 86, client: 127.0.0.1, server: 0.0.0.0:\d+ log level:5 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 87, client: 127.0.0.1, server: 0.0.0.0:\d+ log level:4 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 100, client: 127.0.0.1, server: 0.0.0.0:\d+ log level:4 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: howdy, something new!, client: 127.0.0.1, server: 0.0.0.0:\d+ log level:4 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: howdy, something even newer!, client: 127.0.0.1, server: 0.0.0.0:\d+ \z)' |
stream/errlog.t | TEST 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/27 10:32:05 [notice] 24926\#0: start worker processes log level:4 log body:2021/04/27 10:32:07 [error] 25205\#0: *300 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/27 10:32:05 [notice] 24926#0: start worker processes log level:4 log body:2021/04/27 10:32:07 [error] 25205#0: *300 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/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 12: semaphore post in all phase (in a request) - grep_error_log_out (req 0) |
got: 'sem: timeout, sem: 3 times, ' expected: 'sem: 3 times, ' |
stream/semaphore.t | TEST 16: kill a light thread that is waiting on a semaphore (no resource) - pattern "[error]" should not match any line in error.log but matches line "2021/04/27 10:36:31 [error] 29039\#0: *745 stream [lua] init_worker_by_lua:14: sem: timeout, context: ngx.timer" (req 0) |
2021/04/27 10:36:31 [debug] 29095\#0: *809 malloc: 082D3740:8 2021/04/27 10:36:31 [debug] 29039\#0: stream lua semaphore wait: 08324E14, timeout: 1000, resources: 0, event posted: 0 2021/04/27 10:36:31 [debug] 29095\#0: *809 http header: "User-Agent: curl/7.61.1" 2021/04/27 10:36:31 [debug] 29039\#0: *745 event timer add: 0: 1000:21397675 2021/04/27 10:36:31 [debug] 29095\#0: *809 malloc: 082D2890:6 2021/04/27 10:36:31 [debug] 29039\#0: stream lua semaphore wait yielding 2021/04/27 10:36:31 [debug] 29095\#0: *809 malloc: 082FB4A0:8 2021/04/27 10:36:31 [debug] 29039\#0: *745 lua resume returned 1 2021/04/27 10:36:31 [debug] 29095\#0: *809 http header: "Accept: */*" ' |
stream/semaphore.t | TEST 16: kill a light thread that is waiting on a semaphore (no resource) - pattern "[error]" should not match any line in error.log but matches line "2021/04/27 10:36:32 [error] 29039\#0: *745 stream [lua] init_worker_by_lua:14: sem: timeout, context: ngx.timer" (req 1) |
2021/04/27 10:36:32 [debug] 29039\#0: stream lua semaphore wait: 08324E14, timeout: 1000, resources: 0, event posted: 0 2021/04/27 10:36:32 [debug] 29039\#0: *745 event timer add: 0: 1000:21398676 2021/04/27 10:36:32 [debug] 29039\#0: stream lua semaphore wait yielding 2021/04/27 10:36:32 [debug] 29039\#0: *745 lua resume returned 1 2021/04/27 10:36:32 [debug] 29039\#0: *745 lua thread yielded 2021/04/27 10:36:32 [debug] 29039\#0: *745 lua run thread returned -2 2021/04/27 10:36:32 [debug] 29039\#0: worker cycle ' |
Go back to the index page.