(This page was automatically generated by the tools in the opsboy project on 04:52:03 11-Oct-2024 GMT.)
Commit | Testing Time | Unexpected Failures |
Expected Failures |
Files | Tests | Elapsed Time |
---|---|---|---|---|---|---|
8537c5ed | 2024-08-06 16:11:51 GMT | 7 | 98 | 92 | 12394 | 1442 sec |
File | Name | Details |
---|---|---|
balancer-keepalive.t | TEST 6: upstream_keepalive_module: no granular pooling (TLS properties) - grep_error_log_out (req 0) |
got: 'lua balancer: keepalive closing connection 0000000009809368 ' expected: '' |
balancer-keepalive.t | TEST 8: set_current_peer: bad argument \#4 'sni' - grep_error_log_out (req 0) |
got: 'lua balancer: keepalive closing connection 0000000009378310 lua balancer: keepalive closing connection 0000000009378408 ' expected: '' |
balancer-keepalive.t | TEST 11: enable_keepalive: bad usage (bad context) - grep_error_log_out (req 0) |
got: 'lua balancer: keepalive closing connection 0000000008659518 lua balancer: keepalive closing connection 0000000008659708 lua balancer: keepalive closing connection 00000000086598F8 lua balancer: keepalive closing connection 0000000008659AE8 lua balancer: keepalive closing connection 0000000008659CD8 ' expected: '' |
balancer-keepalive.t | TEST 13: enable_keepalive: bad argument \#1 'idle_timeout' - grep_error_log_out (req 0) |
got: 'lua balancer: keepalive closing connection 0000000008A2A1C8 ' expected: '' |
balancer-keepalive.t | TEST 12: enable_keepalive: bad usage (no current peer) - grep_error_log_out (req 0) |
got: 'lua balancer: keepalive closing connection 00000000084D2478 ' expected: '' |
worker.t | TEST 5: ngx.worker.pids - response_body_like - response is expected (worker pid: 22900 worker pids is wrong. worker pid is correct.) |
'worker pid: 22900 worker pids is wrong. worker pid is correct. ' doesn't match '(?^s:worker pid: \d+ worker pid is correct\. )' |
worker.t | TEST 5: ngx.worker.pids - response_body_like - response is expected (worker pid: 22900 worker pids is wrong. worker pid is correct.) |
'worker pid: 22900 worker pids is wrong. worker pid is correct. ' doesn't match '(?^s:worker pid: \d+ worker pid is correct\. )' |
File | Name | Details |
---|---|---|
balancer-keepalive.t | TEST 7: enable_keepalive: do not support reuse by TLS properties - grep_error_log_out (req 0) |
'lua balancer: keepalive closing connection 00000000089E2E18 lua balancer: keepalive no free connection, host: 127.0.0.1:40627, name: test.crt lua balancer: keepalive saving connection 0000000008C1C408, host: 127.0.0.1:40627, name: test.crt lua balancer: keepalive reusing connection 0000000008C1C408, host: 127.0.0.1:40627, name: test.crt lua balancer: keepalive saving connection 0000000008C1C408, host: 127.0.0.1:40627, name: test.crt lua balancer: keepalive no free connection, host: 127.0.0.1:40627, name: test2.crt lua balancer: keepalive saving connection 0000000008C1C5F8, host: 127.0.0.1:40627, name: test2.crt lua balancer: keepalive reusing connection 0000000008C1C5F8, host: 127.0.0.1:40627, name: test2.crt lua balancer: keepalive saving connection 0000000008C1C5F8, host: 127.0.0.1:40627, name: test2.crt ' doesn't match '(?^:^lua balancer: keepalive no free connection, host: 127.0.0.1:40627, name: test.crt lua balancer: keepalive saving connection \S+, host: 127.0.0.1:40627, name: test.crt lua balancer: keepalive reusing connection \S+, host: 127.0.0.1:40627, name: test.crt lua balancer: keepalive saving connection \S+, host: 127.0.0.1:40627, name: test.crt lua balancer: keepalive no free connection, host: 127.0.0.1:40627, name: test2.crt lua balancer: keepalive saving connection \S+, host: 127.0.0.1:40627, name: test2.crt lua balancer: keepalive reusing connection \S+, host: 127.0.0.1:40627, name: test2.crt lua balancer: keepalive saving connection \S+, host: 127.0.0.1:40627, name: test2.crt $)' |
balancer-keepalive.t | TEST 19: enable_keepalive: reaching 'pool_size' closes extra connections - grep_error_log_out (req 0) |
'lua balancer: keepalive closing connection 0000000008C1C408 lua balancer: keepalive closing connection 0000000008C1C5F8 lua balancer: keepalive no free connection, host: 127.0.0.1:40627, name: lua balancer: keepalive no free connection, host: 127.0.0.1:40627, name: lua balancer: keepalive no free connection, host: 127.0.0.1:40627, name: lua balancer: keepalive no free connection, host: 127.0.0.1:40627, name: lua balancer: keepalive no free connection, host: 127.0.0.1:40627, name: lua balancer: keepalive no free connection, host: 127.0.0.1:40627, name: lua balancer: keepalive saving connection 0000000009377C48, host: 127.0.0.1:40627, name: lua balancer: keepalive saving connection 0000000009377D40, host: 127.0.0.1:40627, name: lua balancer: keepalive closing connection 0000000009377C48 lua balancer: keepalive saving connection 0000000009377E38, host: 127.0.0.1:40627, name: lua balancer: keepalive closing connection 0000000009377D40 lua balancer: keepalive saving connection 0000000009378218, host: 127.0.0.1:40627, name: lua balancer: keepalive closing connection 0000000009377E38 lua balancer: keepalive saving connection 0000000009378310, host: 127.0.0.1:40627, name: lua balancer: keepalive closing connection 0000000009378218 lua balancer: keepalive saving connection 0000000009378408, host: 127.0.0.1:40627, name: ' doesn't match '(?^:^lua balancer: keepalive no free connection, host: 127.0.0.1:40627, name:\s lua balancer: keepalive no free connection, host: 127.0.0.1:40627, name:\s lua balancer: keepalive no free connection, host: 127.0.0.1:40627, name:\s lua balancer: keepalive saving connection \S+, host: 127.0.0.1:40627, name:\s lua balancer: keepalive saving connection \S+, host: 127.0.0.1:40627, name:\s lua balancer: keepalive closing connection \S+ lua balancer: keepalive saving connection \S+, host: 127.0.0.1:40627, name:\s lua balancer: keepalive reusing connection \S+, host: 127.0.0.1:40627, name:\s lua balancer: keepalive reusing connection \S+, host: 127.0.0.1:40627, name:\s lua balancer: keepalive no free connection, host: 127.0.0.1:40627, name:\s lua balancer: keepalive saving connection \S+, host: 127.0.0.1:40627, name:\s lua balancer: keepalive saving connection \S+, host: 127.0.0.1:40627, name:\s lua balancer: keepalive closing connection \S+ lua balancer: keepalive saving connection \S+, host: 127.0.0.1:40627, name: $)' |
balancer-keepalive.t | TEST 15: enable_keepalive: reaching 'max_requests > 0' closes keepalive connection (and frees empty pool) - grep_error_log_out (req 0) |
'lua balancer: keepalive closing connection 00000000084D2478 lua balancer: keepalive closing connection 00000000084D2668 lua balancer: keepalive no free connection, host: 127.0.0.1:40627, name: lua balancer: keepalive saving connection 0000000008A2A1C8, host: 127.0.0.1:40627, name: lua balancer: keepalive reusing connection 0000000008A2A1C8, host: 127.0.0.1:40627, name: lua balancer: keepalive saving connection 0000000008A2A1C8, host: 127.0.0.1:40627, name: lua balancer: keepalive reusing connection 0000000008A2A1C8, host: 127.0.0.1:40627, name: lua balancer: keepalive not saving connection 0000000008A2A1C8 lua balancer: keepalive no free connection, host: 127.0.0.1:40627, name: lua balancer: keepalive saving connection 0000000008A2A1C8, host: 127.0.0.1:40627, name: ' doesn't match '(?^:^lua balancer: keepalive no free connection, host: 127.0.0.1:40627, name:\s lua balancer: keepalive saving connection \S+, host: 127.0.0.1:40627, name:\s lua balancer: keepalive reusing connection \S+, host: 127.0.0.1:40627, name:\s lua balancer: keepalive saving connection \S+, host: 127.0.0.1:40627, name:\s lua balancer: keepalive reusing connection \S+, host: 127.0.0.1:40627, name:\s lua balancer: keepalive not saving connection \S+ lua balancer: keepalive no free connection, host: 127.0.0.1:40627, name:\s lua balancer: keepalive saving connection \S+, host: 127.0.0.1:40627, name: $)' |
balancer-keepalive.t | TEST 20: enable_keepalive: keepalive connections can be closed by upstream - grep_error_log_out (req 0) |
'lua balancer: keepalive closing connection 000000000895B858 lua balancer: keepalive closing connection 000000000895BA48 lua balancer: keepalive closing connection 000000000895BC38 lua balancer: keepalive closing connection 000000000895BE28 lua balancer: keepalive closing connection 000000000895C018 lua balancer: keepalive no free connection, host: 127.0.0.1:40627, name: lua balancer: keepalive no free connection, host: 127.0.0.1:40627, name: lua balancer: keepalive saving connection 0000000009377C08, host: 127.0.0.1:40627, name: lua balancer: keepalive saving connection 0000000009377D00, host: 127.0.0.1:40627, name: lua balancer: keepalive closing connection 0000000009377C08 lua balancer: keepalive closing connection 0000000009377D00 ' doesn't match '(?^:^lua balancer: keepalive no free connection, host: 127.0.0.1:40627, name:\s lua balancer: keepalive no free connection, host: 127.0.0.1:40627, name:\s lua balancer: keepalive saving connection \S+, host: 127.0.0.1:40627, name:\s lua balancer: keepalive saving connection \S+, host: 127.0.0.1:40627, name:\s lua balancer: keepalive closing connection \S+ lua balancer: keepalive closing connection \S+ $)' |
balancer-keepalive.t | TEST 21: enable_keepalive: does not save non-keepalive connections - grep_error_log_out (req 0) |
'lua balancer: keepalive closing connection 000000000895B858 lua balancer: keepalive closing connection 000000000895BA48 lua balancer: keepalive closing connection 000000000895BC38 lua balancer: keepalive no free connection, host: 127.0.0.1:40627, name: lua balancer: keepalive not saving connection 0000000009377BC8 lua balancer: keepalive no free connection, host: 127.0.0.1:40627, name: lua balancer: keepalive not saving connection 0000000009377BC8 ' doesn't match '(?^:^lua balancer: keepalive no free connection, host: 127.0.0.1:40627, name:\s lua balancer: keepalive not saving connection \S+ lua balancer: keepalive no free connection, host: 127.0.0.1:40627, name:\s lua balancer: keepalive not saving connection \S+ $)' |
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: \#9 ' |
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 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 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 | 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 18: flood the capturing buffer (5k) - response_body_like - response is expected (log lines: \#25 log level:4 log body:2024/08/06 19:20:47 [error] 22177\#22177: *79 [lua] access_by_lua(nginx.conf:58):11: --> 88, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level:5 log body:2024/08/06 19:20:47 [warn] 22177\#22177: *79 [lua] access_by_lua(nginx.conf:58):10: --> 89, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level:4 log body:2024/08/06 19:20:47 [error] 22177\#22177: *79 [lua] access_by_lua(nginx.conf:58):11: --> 89, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level:4 log body:2024/08/06 19:20:47 [error] 22177\#22177: *79 [lua] access_by_lua(nginx.conf:58):11: --> 99, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level:5 log body:2024/08/06 19:20:47 [warn] 22177\#22177: *79 [lua] access_by_lua(nginx.conf:58):10: --> 100, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level:4 log body:2024/08/06 19:20:47 [error] 22177\#22177: *79 [lua] access_by_lua(nginx.conf:58):11: --> 100, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost") |
'log lines: #25 log level:4 log body:2024/08/06 19:20:47 [error] 22177#22177: *79 [lua] access_by_lua(nginx.conf:58):11: --> 88, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level:5 log body:2024/08/06 19:20:47 [warn] 22177#22177: *79 [lua] access_by_lua(nginx.conf:58):10: --> 89, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level:4 log body:2024/08/06 19:20:47 [error] 22177#22177: *79 [lua] access_by_lua(nginx.conf:58):11: --> 89, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level:4 log body:2024/08/06 19:20:47 [error] 22177#22177: *79 [lua] access_by_lua(nginx.conf:58):11: --> 99, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level:5 log body:2024/08/06 19:20:47 [warn] 22177#22177: *79 [lua] access_by_lua(nginx.conf:58):10: --> 100, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level:4 log body:2024/08/06 19:20:47 [error] 22177#22177: *79 [lua] access_by_lua(nginx.conf:58):11: --> 100, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" ' doesn't match '(?^s:\Alog lines: #26 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+: --> 88, 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+: --> 88, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" 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+: --> 89, 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+: --> 99, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" 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+: --> 100, 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+: --> 100, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" \z)' |
errlog.t | TEST 18: flood the capturing buffer (5k) - response_body_like - response is expected (log lines: \#25 log level:4 log body:2024/08/06 19:20:47 [error] 22177\#22177: *80 [lua] access_by_lua(nginx.conf:58):11: --> 88, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level:5 log body:2024/08/06 19:20:47 [warn] 22177\#22177: *80 [lua] access_by_lua(nginx.conf:58):10: --> 89, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level:4 log body:2024/08/06 19:20:47 [error] 22177\#22177: *80 [lua] access_by_lua(nginx.conf:58):11: --> 89, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level:4 log body:2024/08/06 19:20:47 [error] 22177\#22177: *80 [lua] access_by_lua(nginx.conf:58):11: --> 99, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level:5 log body:2024/08/06 19:20:47 [warn] 22177\#22177: *80 [lua] access_by_lua(nginx.conf:58):10: --> 100, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level:4 log body:2024/08/06 19:20:47 [error] 22177\#22177: *80 [lua] access_by_lua(nginx.conf:58):11: --> 100, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost") |
'log lines: #25 log level:4 log body:2024/08/06 19:20:47 [error] 22177#22177: *80 [lua] access_by_lua(nginx.conf:58):11: --> 88, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level:5 log body:2024/08/06 19:20:47 [warn] 22177#22177: *80 [lua] access_by_lua(nginx.conf:58):10: --> 89, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level:4 log body:2024/08/06 19:20:47 [error] 22177#22177: *80 [lua] access_by_lua(nginx.conf:58):11: --> 89, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level:4 log body:2024/08/06 19:20:47 [error] 22177#22177: *80 [lua] access_by_lua(nginx.conf:58):11: --> 99, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level:5 log body:2024/08/06 19:20:47 [warn] 22177#22177: *80 [lua] access_by_lua(nginx.conf:58):10: --> 100, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level:4 log body:2024/08/06 19:20:47 [error] 22177#22177: *80 [lua] access_by_lua(nginx.conf:58):11: --> 100, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" ' doesn't match '(?^s:\Alog lines: #26 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+: --> 88, 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+: --> 88, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" 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+: --> 89, 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+: --> 99, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" 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+: --> 100, 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+: --> 100, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" \z)' |
errlog.t | TEST 29: ringbuf overflow bug - response_body_like - response is expected (log level: 4 log time: 1722972050.375 log body: 2024/08/06 19:20:50 [error] 22316\#22316: *183 [lua] content_by_lua(nginx.conf:67):8: **********22, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level: 4 log time: 1722972050.375 log body: 2024/08/06 19:20:50 [error] 22316\#22316: *183 [lua] content_by_lua(nginx.conf:67):8: **********23, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level: 4 log time: 1722972050.375 log body: 2024/08/06 19:20:50 [error] 22316\#22316: *183 [lua] content_by_lua(nginx.conf:67):8: **********24, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level: 4 log time: 1722972050.375 log body: 2024/08/06 19:20:50 [error] 22316\#22316: *183 [lua] content_by_lua(nginx.conf:67):8: **********25, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level: 4 log time: 1722972050.375 log body: 2024/08/06 19:20:50 [error] 22316\#22316: *183 [lua] content_by_lua(nginx.conf:67):8: **********26, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level: 4 log time: 1722972050.375 log body: 2024/08/06 19:20:50 [error] 22316\#22316: *183 [lua] content_by_lua(nginx.conf:67):8: **********27, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level: 4 log time: 1722972050.375 log body: 2024/08/06 19:20:50 [error] 22316\#22316: *183 [lua] content_by_lua(nginx.conf:67):8: **********28, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level: 4 log time: 1722972050.375 log body: 2024/08/06 19:20:50 [error] 22316\#22316: *183 [lua] content_by_lua(nginx.conf:67):8: **********29, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level: 4 log time: 1722972050.375 log body: 2024/08/06 19:20:50 [error] 22316\#22316: *183 [lua] content_by_lua(nginx.conf:67):8: **********30, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level: 4 log time: 1722972050.375 log body: 2024/08/06 19:20:50 [error] 22316\#22316: *183 [lua] content_by_lua(nginx.conf:67):8: **********31, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost") |
'log level: 4 log time: 1722972050.375 log body: 2024/08/06 19:20:50 [error] 22316#22316: *183 [lua] content_by_lua(nginx.conf:67):8: **********22, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level: 4 log time: 1722972050.375 log body: 2024/08/06 19:20:50 [error] 22316#22316: *183 [lua] content_by_lua(nginx.conf:67):8: **********23, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level: 4 log time: 1722972050.375 log body: 2024/08/06 19:20:50 [error] 22316#22316: *183 [lua] content_by_lua(nginx.conf:67):8: **********24, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level: 4 log time: 1722972050.375 log body: 2024/08/06 19:20:50 [error] 22316#22316: *183 [lua] content_by_lua(nginx.conf:67):8: **********25, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level: 4 log time: 1722972050.375 log body: 2024/08/06 19:20:50 [error] 22316#22316: *183 [lua] content_by_lua(nginx.conf:67):8: **********26, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level: 4 log time: 1722972050.375 log body: 2024/08/06 19:20:50 [error] 22316#22316: *183 [lua] content_by_lua(nginx.conf:67):8: **********27, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level: 4 log time: 1722972050.375 log body: 2024/08/06 19:20:50 [error] 22316#22316: *183 [lua] content_by_lua(nginx.conf:67):8: **********28, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level: 4 log time: 1722972050.375 log body: 2024/08/06 19:20:50 [error] 22316#22316: *183 [lua] content_by_lua(nginx.conf:67):8: **********29, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level: 4 log time: 1722972050.375 log body: 2024/08/06 19:20:50 [error] 22316#22316: *183 [lua] content_by_lua(nginx.conf:67):8: **********30, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level: 4 log time: 1722972050.375 log body: 2024/08/06 19:20:50 [error] 22316#22316: *183 [lua] content_by_lua(nginx.conf:67):8: **********31, 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: 1722972050.752 log body: 2024/08/06 19:20:50 [error] 22316\#22316: *184 [lua] content_by_lua(nginx.conf:67):8: **********30, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level: 4 log time: 1722972050.752 log body: 2024/08/06 19:20:50 [error] 22316\#22316: *184 [lua] content_by_lua(nginx.conf:67):8: **********31, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level: 4 log time: 1722972050.752 log body: 2024/08/06 19:20:50 [error] 22316\#22316: *184 [lua] content_by_lua(nginx.conf:67):8: **********32, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level: 4 log time: 1722972050.752 log body: 2024/08/06 19:20:50 [error] 22316\#22316: *184 [lua] content_by_lua(nginx.conf:67):8: **********33, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level: 4 log time: 1722972050.752 log body: 2024/08/06 19:20:50 [error] 22316\#22316: *184 [lua] content_by_lua(nginx.conf:67):8: **********34, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level: 4 log time: 1722972050.752 log body: 2024/08/06 19:20:50 [error] 22316\#22316: *184 [lua] content_by_lua(nginx.conf:67):8: **********35, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level: 4 log time: 1722972050.752 log body: 2024/08/06 19:20:50 [error] 22316\#22316: *184 [lua] content_by_lua(nginx.conf:67):8: **********36, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level: 4 log time: 1722972050.752 log body: 2024/08/06 19:20:50 [error] 22316\#22316: *184 [lua] content_by_lua(nginx.conf:67):8: **********37, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level: 4 log time: 1722972050.752 log body: 2024/08/06 19:20:50 [error] 22316\#22316: *184 [lua] content_by_lua(nginx.conf:67):8: **********38, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level: 4 log time: 1722972050.752 log body: 2024/08/06 19:20:50 [error] 22316\#22316: *184 [lua] content_by_lua(nginx.conf:67):8: **********39, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost") |
'log level: 4 log time: 1722972050.752 log body: 2024/08/06 19:20:50 [error] 22316#22316: *184 [lua] content_by_lua(nginx.conf:67):8: **********30, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level: 4 log time: 1722972050.752 log body: 2024/08/06 19:20:50 [error] 22316#22316: *184 [lua] content_by_lua(nginx.conf:67):8: **********31, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level: 4 log time: 1722972050.752 log body: 2024/08/06 19:20:50 [error] 22316#22316: *184 [lua] content_by_lua(nginx.conf:67):8: **********32, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level: 4 log time: 1722972050.752 log body: 2024/08/06 19:20:50 [error] 22316#22316: *184 [lua] content_by_lua(nginx.conf:67):8: **********33, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level: 4 log time: 1722972050.752 log body: 2024/08/06 19:20:50 [error] 22316#22316: *184 [lua] content_by_lua(nginx.conf:67):8: **********34, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level: 4 log time: 1722972050.752 log body: 2024/08/06 19:20:50 [error] 22316#22316: *184 [lua] content_by_lua(nginx.conf:67):8: **********35, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level: 4 log time: 1722972050.752 log body: 2024/08/06 19:20:50 [error] 22316#22316: *184 [lua] content_by_lua(nginx.conf:67):8: **********36, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level: 4 log time: 1722972050.752 log body: 2024/08/06 19:20:50 [error] 22316#22316: *184 [lua] content_by_lua(nginx.conf:67):8: **********37, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level: 4 log time: 1722972050.752 log body: 2024/08/06 19:20:50 [error] 22316#22316: *184 [lua] content_by_lua(nginx.conf:67):8: **********38, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level: 4 log time: 1722972050.752 log body: 2024/08/06 19:20:50 [error] 22316#22316: *184 [lua] content_by_lua(nginx.conf:67):8: **********39, 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 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:2024/08/06 19:20:51 [notice] 22083\#22083: start worker processes log level:7 log body:2024/08/06 19:20:51 [info] 22389\#22389: *215 client 127.0.0.1 closed keepalive connection log level:7 log body:2024/08/06 19:20:51 [info] 22389\#22389: *216 client 127.0.0.1 closed keepalive connection log level:7 log body:2024/08/06 19:20:51 [info] 22389\#22389: *217 client 127.0.0.1 closed keepalive connection log level:7 log body:2024/08/06 19:20:51 [info] 22389\#22389: *218 client 127.0.0.1 closed keepalive connection log level:7 log body:2024/08/06 19:20:52 [info] 22389\#22389: *219 client 127.0.0.1 closed keepalive connection log level:7 log body:2024/08/06 19:20:52 [info] 22389\#22389: *220 client 127.0.0.1 closed keepalive connection log level:7 log body:2024/08/06 19:20:52 [info] 22389\#22389: *221 client 127.0.0.1 closed keepalive connection log level:7 log body:2024/08/06 19:20:52 [info] 22389\#22389: *222 client 127.0.0.1 closed keepalive connection log level:7 log body:2024/08/06 19:20:52 [info] 22389\#22389: *223 client 127.0.0.1 closed keepalive connection end maybe log lines: \#10 log level:7 log body:2024/08/06 19:20:52 [info] 22389\#22389: *224 client 127.0.0.1 closed keepalive connection log level:7 log body:2024/08/06 19:20:52 [info] 22389\#22389: *225 client 127.0.0.1 closed keepalive connection log level:7 log body:2024/08/06 19:20:52 [info] 22389\#22389: *226 client 127.0.0.1 closed keepalive connection log level:7 log body:2024/08/06 19:20:52 [info] 22389\#22389: *227 client 127.0.0.1 closed keepalive connection log level:7 log body:2024/08/06 19:20:52 [info] 22389\#22389: *228 client 127.0.0.1 closed keepalive connection log level:7 log body:2024/08/06 19:20:52 [info] 22389\#22389: *229 client 127.0.0.1 closed keepalive connection log level:7 log body:2024/08/06 19:20:52 [info] 22389\#22389: *230 client 127.0.0.1 closed keepalive connection log level:7 log body:2024/08/06 19:20:52 [info] 22389\#22389: *231 client 127.0.0.1 closed keepalive connection log level:7 log body:2024/08/06 19:20:52 [info] 22389\#22389: *232 client 127.0.0.1 closed keepalive connection log level:7 log body:2024/08/06 19:20:52 [info] 22389\#22389: *233 client 127.0.0.1 closed keepalive connection end) |
'maybe log lines: #10 log level:6 log body:2024/08/06 19:20:51 [notice] 22083#22083: start worker processes log level:7 log body:2024/08/06 19:20:51 [info] 22389#22389: *215 client 127.0.0.1 closed keepalive connection log level:7 log body:2024/08/06 19:20:51 [info] 22389#22389: *216 client 127.0.0.1 closed keepalive connection log level:7 log body:2024/08/06 19:20:51 [info] 22389#22389: *217 client 127.0.0.1 closed keepalive connection log level:7 log body:2024/08/06 19:20:51 [info] 22389#22389: *218 client 127.0.0.1 closed keepalive connection log level:7 log body:2024/08/06 19:20:52 [info] 22389#22389: *219 client 127.0.0.1 closed keepalive connection log level:7 log body:2024/08/06 19:20:52 [info] 22389#22389: *220 client 127.0.0.1 closed keepalive connection log level:7 log body:2024/08/06 19:20:52 [info] 22389#22389: *221 client 127.0.0.1 closed keepalive connection log level:7 log body:2024/08/06 19:20:52 [info] 22389#22389: *222 client 127.0.0.1 closed keepalive connection log level:7 log body:2024/08/06 19:20:52 [info] 22389#22389: *223 client 127.0.0.1 closed keepalive connection end maybe log lines: #10 log level:7 log body:2024/08/06 19:20:52 [info] 22389#22389: *224 client 127.0.0.1 closed keepalive connection log level:7 log body:2024/08/06 19:20:52 [info] 22389#22389: *225 client 127.0.0.1 closed keepalive connection log level:7 log body:2024/08/06 19:20:52 [info] 22389#22389: *226 client 127.0.0.1 closed keepalive connection log level:7 log body:2024/08/06 19:20:52 [info] 22389#22389: *227 client 127.0.0.1 closed keepalive connection log level:7 log body:2024/08/06 19:20:52 [info] 22389#22389: *228 client 127.0.0.1 closed keepalive connection log level:7 log body:2024/08/06 19:20:52 [info] 22389#22389: *229 client 127.0.0.1 closed keepalive connection log level:7 log body:2024/08/06 19:20:52 [info] 22389#22389: *230 client 127.0.0.1 closed keepalive connection log level:7 log body:2024/08/06 19:20:52 [info] 22389#22389: *231 client 127.0.0.1 closed keepalive connection log level:7 log body:2024/08/06 19:20:52 [info] 22389#22389: *232 client 127.0.0.1 closed keepalive connection log level:7 log body:2024/08/06 19:20:52 [info] 22389#22389: *233 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:2024/08/06 19:20:52 [info] 22389\#22389: *234 client 127.0.0.1 closed keepalive connection log level:4 log body:2024/08/06 19:20:52 [error] 22389\#22389: *235 [lua] access_by_lua(nginx.conf:58):8: --> new line, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level:4 log body:2024/08/06 19:20:52 [error] 22389\#22389: *236 [lua] access_by_lua(nginx.conf:58):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:2024/08/06 19:20:52 [info] 22389#22389: *234 client 127.0.0.1 closed keepalive connection log level:4 log body:2024/08/06 19:20:52 [error] 22389#22389: *235 [lua] access_by_lua(nginx.conf:58):8: --> new line, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level:4 log body:2024/08/06 19:20:52 [error] 22389#22389: *236 [lua] access_by_lua(nginx.conf:58):8: --> new line, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" end maybe log lines: #3 end ' doesn't match '(?^s:\Amaybe log lines: #1 log level:4 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*access_by_lua\(nginx.conf:\d+\):\d+: --> new line, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" end maybe log lines: #1 end \z)' |
errlog.t | nginx: [emerg] | invalid 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 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:2024/08/06 19:20:57 [error] 22547\#22547: *27 [lua] access_by_lua(nginx.conf:58):11: --> 88, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level:5 log body:2024/08/06 19:20:57 [warn] 22547\#22547: *27 [lua] access_by_lua(nginx.conf:58):10: --> 89, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level:4 log body:2024/08/06 19:20:57 [error] 22547\#22547: *27 [lua] access_by_lua(nginx.conf:58):11: --> 89, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" msg count: 3 log level:4 log body:2024/08/06 19:20:57 [error] 22547\#22547: *27 [lua] access_by_lua(nginx.conf:58):11: --> 90, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level:5 log body:2024/08/06 19:20:57 [warn] 22547\#22547: *27 [lua] access_by_lua(nginx.conf:58):10: --> 91, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level:4 log body:2024/08/06 19:20:57 [error] 22547\#22547: *27 [lua] access_by_lua(nginx.conf:58):11: --> 91, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level:4 log body:2024/08/06 19:20:57 [error] 22547\#22547: *27 [lua] content_by_lua(nginx.conf:72):14: --> 102, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level:4 log body:2024/08/06 19:20:57 [error] 22547\#22547: *27 [lua] content_by_lua(nginx.conf:72):15: --> 103, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level:4 log body:2024/08/06 19:20:57 [error] 22547\#22547: *27 [lua] content_by_lua(nginx.conf:72):16: --> 104, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost") |
'msg count: 3 log level:4 log body:2024/08/06 19:20:57 [error] 22547#22547: *27 [lua] access_by_lua(nginx.conf:58):11: --> 88, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level:5 log body:2024/08/06 19:20:57 [warn] 22547#22547: *27 [lua] access_by_lua(nginx.conf:58):10: --> 89, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level:4 log body:2024/08/06 19:20:57 [error] 22547#22547: *27 [lua] access_by_lua(nginx.conf:58):11: --> 89, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" msg count: 3 log level:4 log body:2024/08/06 19:20:57 [error] 22547#22547: *27 [lua] access_by_lua(nginx.conf:58):11: --> 90, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level:5 log body:2024/08/06 19:20:57 [warn] 22547#22547: *27 [lua] access_by_lua(nginx.conf:58):10: --> 91, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level:4 log body:2024/08/06 19:20:57 [error] 22547#22547: *27 [lua] access_by_lua(nginx.conf:58):11: --> 91, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level:4 log body:2024/08/06 19:20:57 [error] 22547#22547: *27 [lua] content_by_lua(nginx.conf:72):14: --> 102, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level:4 log body:2024/08/06 19:20:57 [error] 22547#22547: *27 [lua] content_by_lua(nginx.conf:72):15: --> 103, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level:4 log body:2024/08/06 19:20:57 [error] 22547#22547: *27 [lua] content_by_lua(nginx.conf:72):16: --> 104, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" ' doesn't match '(?^s:\Amsg count: 3 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+: --> 88, 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+: --> 88, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" 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+: --> 89, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" msg count: 3 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+: --> 90, 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+: --> 90, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" 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+: --> 91, 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+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 102, 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+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 103, 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+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 104, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" \z)' |
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:2024/08/06 19:20:57 [error] 22547\#22547: *28 [lua] access_by_lua(nginx.conf:58):11: --> 88, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level:5 log body:2024/08/06 19:20:57 [warn] 22547\#22547: *28 [lua] access_by_lua(nginx.conf:58):10: --> 89, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level:4 log body:2024/08/06 19:20:57 [error] 22547\#22547: *28 [lua] access_by_lua(nginx.conf:58):11: --> 89, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" msg count: 3 log level:4 log body:2024/08/06 19:20:57 [error] 22547\#22547: *28 [lua] access_by_lua(nginx.conf:58):11: --> 90, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level:5 log body:2024/08/06 19:20:57 [warn] 22547\#22547: *28 [lua] access_by_lua(nginx.conf:58):10: --> 91, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level:4 log body:2024/08/06 19:20:57 [error] 22547\#22547: *28 [lua] access_by_lua(nginx.conf:58):11: --> 91, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level:4 log body:2024/08/06 19:20:57 [error] 22547\#22547: *28 [lua] content_by_lua(nginx.conf:72):14: --> 102, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level:4 log body:2024/08/06 19:20:57 [error] 22547\#22547: *28 [lua] content_by_lua(nginx.conf:72):15: --> 103, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level:4 log body:2024/08/06 19:20:57 [error] 22547\#22547: *28 [lua] content_by_lua(nginx.conf:72):16: --> 104, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost") |
'msg count: 3 log level:4 log body:2024/08/06 19:20:57 [error] 22547#22547: *28 [lua] access_by_lua(nginx.conf:58):11: --> 88, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level:5 log body:2024/08/06 19:20:57 [warn] 22547#22547: *28 [lua] access_by_lua(nginx.conf:58):10: --> 89, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level:4 log body:2024/08/06 19:20:57 [error] 22547#22547: *28 [lua] access_by_lua(nginx.conf:58):11: --> 89, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" msg count: 3 log level:4 log body:2024/08/06 19:20:57 [error] 22547#22547: *28 [lua] access_by_lua(nginx.conf:58):11: --> 90, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level:5 log body:2024/08/06 19:20:57 [warn] 22547#22547: *28 [lua] access_by_lua(nginx.conf:58):10: --> 91, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level:4 log body:2024/08/06 19:20:57 [error] 22547#22547: *28 [lua] access_by_lua(nginx.conf:58):11: --> 91, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level:4 log body:2024/08/06 19:20:57 [error] 22547#22547: *28 [lua] content_by_lua(nginx.conf:72):14: --> 102, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level:4 log body:2024/08/06 19:20:57 [error] 22547#22547: *28 [lua] content_by_lua(nginx.conf:72):15: --> 103, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level:4 log body:2024/08/06 19:20:57 [error] 22547#22547: *28 [lua] content_by_lua(nginx.conf:72):16: --> 104, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" ' doesn't match '(?^s:\Amsg count: 3 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+: --> 88, 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+: --> 88, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" 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+: --> 89, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" msg count: 3 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+: --> 90, 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+: --> 90, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" 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+: --> 91, 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+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 102, 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+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 103, 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+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 104, 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:6 log body:2024/08/06 19:20:57 [notice] 22525\#22525: start worker processes log level:7 log body:2024/08/06 19:20:58 [info] 22583\#22583: *33 client 127.0.0.1 closed keepalive connection log level:7 log body:2024/08/06 19:20:58 [info] 22583\#22583: *34 client 127.0.0.1 closed keepalive connection log level:7 log body:2024/08/06 19:20:58 [info] 22583\#22583: *35 client 127.0.0.1 closed keepalive connection log level:7 log body:2024/08/06 19:20:58 [info] 22583\#22583: *36 client 127.0.0.1 closed keepalive connection log level:7 log body:2024/08/06 19:20:58 [info] 22583\#22583: *37 client 127.0.0.1 closed keepalive connection log level:7 log body:2024/08/06 19:20:58 [info] 22583\#22583: *38 client 127.0.0.1 closed keepalive connection log level:7 log body:2024/08/06 19:20:58 [info] 22583\#22583: *39 client 127.0.0.1 closed keepalive connection log level:7 log body:2024/08/06 19:20:58 [info] 22583\#22583: *40 client 127.0.0.1 closed keepalive connection log level:7 log body:2024/08/06 19:20:58 [info] 22583\#22583: *41 client 127.0.0.1 closed keepalive connection) |
'log lines: #10 log level:6 log body:2024/08/06 19:20:57 [notice] 22525#22525: start worker processes log level:7 log body:2024/08/06 19:20:58 [info] 22583#22583: *33 client 127.0.0.1 closed keepalive connection log level:7 log body:2024/08/06 19:20:58 [info] 22583#22583: *34 client 127.0.0.1 closed keepalive connection log level:7 log body:2024/08/06 19:20:58 [info] 22583#22583: *35 client 127.0.0.1 closed keepalive connection log level:7 log body:2024/08/06 19:20:58 [info] 22583#22583: *36 client 127.0.0.1 closed keepalive connection log level:7 log body:2024/08/06 19:20:58 [info] 22583#22583: *37 client 127.0.0.1 closed keepalive connection log level:7 log body:2024/08/06 19:20:58 [info] 22583#22583: *38 client 127.0.0.1 closed keepalive connection log level:7 log body:2024/08/06 19:20:58 [info] 22583#22583: *39 client 127.0.0.1 closed keepalive connection log level:7 log body:2024/08/06 19:20:58 [info] 22583#22583: *40 client 127.0.0.1 closed keepalive connection log level:7 log body:2024/08/06 19:20:58 [info] 22583#22583: *41 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:2024/08/06 19:20:58 [info] 22583\#22583: *42 client 127.0.0.1 closed keepalive connection log level:7 log body:2024/08/06 19:20:58 [info] 22583\#22583: *43 client 127.0.0.1 closed keepalive connection log level:7 log body:2024/08/06 19:20:58 [info] 22583\#22583: *44 client 127.0.0.1 closed keepalive connection log level:7 log body:2024/08/06 19:20:58 [info] 22583\#22583: *45 client 127.0.0.1 closed keepalive connection log level:7 log body:2024/08/06 19:20:58 [info] 22583\#22583: *46 client 127.0.0.1 closed keepalive connection log level:7 log body:2024/08/06 19:20:58 [info] 22583\#22583: *47 client 127.0.0.1 closed keepalive connection log level:7 log body:2024/08/06 19:20:58 [info] 22583\#22583: *48 client 127.0.0.1 closed keepalive connection log level:7 log body:2024/08/06 19:20:58 [info] 22583\#22583: *49 client 127.0.0.1 closed keepalive connection log level:7 log body:2024/08/06 19:20:58 [info] 22583\#22583: *50 client 127.0.0.1 closed keepalive connection log level:7 log body:2024/08/06 19:20:58 [info] 22583\#22583: *51 client 127.0.0.1 closed keepalive connection) |
'log lines: #10 log level:7 log body:2024/08/06 19:20:58 [info] 22583#22583: *42 client 127.0.0.1 closed keepalive connection log level:7 log body:2024/08/06 19:20:58 [info] 22583#22583: *43 client 127.0.0.1 closed keepalive connection log level:7 log body:2024/08/06 19:20:58 [info] 22583#22583: *44 client 127.0.0.1 closed keepalive connection log level:7 log body:2024/08/06 19:20:58 [info] 22583#22583: *45 client 127.0.0.1 closed keepalive connection log level:7 log body:2024/08/06 19:20:58 [info] 22583#22583: *46 client 127.0.0.1 closed keepalive connection log level:7 log body:2024/08/06 19:20:58 [info] 22583#22583: *47 client 127.0.0.1 closed keepalive connection log level:7 log body:2024/08/06 19:20:58 [info] 22583#22583: *48 client 127.0.0.1 closed keepalive connection log level:7 log body:2024/08/06 19:20:58 [info] 22583#22583: *49 client 127.0.0.1 closed keepalive connection log level:7 log body:2024/08/06 19:20:58 [info] 22583#22583: *50 client 127.0.0.1 closed keepalive connection log level:7 log body:2024/08/06 19:20:58 [info] 22583#22583: *51 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 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:4 log body:2024/08/06 19:20:59 [error] 22619\#22619: *79 [lua] access_by_lua(nginx.conf:58):11: --> 88, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level:5 log body:2024/08/06 19:20:59 [warn] 22619\#22619: *79 [lua] access_by_lua(nginx.conf:58):10: --> 89, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level:4 log body:2024/08/06 19:20:59 [error] 22619\#22619: *79 [lua] access_by_lua(nginx.conf:58):11: --> 89, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" msg count: 3 log level:5 log body:2024/08/06 19:20:59 [warn] 22619\#22619: *79 [lua] access_by_lua(nginx.conf:58):10: --> 90, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level:4 log body:2024/08/06 19:20:59 [error] 22619\#22619: *79 [lua] access_by_lua(nginx.conf:58):11: --> 90, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level:5 log body:2024/08/06 19:20:59 [warn] 22619\#22619: *79 [lua] access_by_lua(nginx.conf:58):10: --> 91, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level:4 log body:2024/08/06 19:20:59 [error] 22619\#22619: *79 [lua] access_by_lua(nginx.conf:58):11: --> 100, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level:4 log body:2024/08/06 19:20:59 [error] 22619\#22619: *79 [lua] content_by_lua(nginx.conf:72):13: howdy, something new!, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level:4 log body:2024/08/06 19:20:59 [error] 22619\#22619: *79 [lua] content_by_lua(nginx.conf:72):14: howdy, something even newer!, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost") |
'msg count: 3 log level:4 log body:2024/08/06 19:20:59 [error] 22619#22619: *79 [lua] access_by_lua(nginx.conf:58):11: --> 88, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level:5 log body:2024/08/06 19:20:59 [warn] 22619#22619: *79 [lua] access_by_lua(nginx.conf:58):10: --> 89, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level:4 log body:2024/08/06 19:20:59 [error] 22619#22619: *79 [lua] access_by_lua(nginx.conf:58):11: --> 89, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" msg count: 3 log level:5 log body:2024/08/06 19:20:59 [warn] 22619#22619: *79 [lua] access_by_lua(nginx.conf:58):10: --> 90, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level:4 log body:2024/08/06 19:20:59 [error] 22619#22619: *79 [lua] access_by_lua(nginx.conf:58):11: --> 90, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level:5 log body:2024/08/06 19:20:59 [warn] 22619#22619: *79 [lua] access_by_lua(nginx.conf:58):10: --> 91, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level:4 log body:2024/08/06 19:20:59 [error] 22619#22619: *79 [lua] access_by_lua(nginx.conf:58):11: --> 100, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level:4 log body:2024/08/06 19:20:59 [error] 22619#22619: *79 [lua] content_by_lua(nginx.conf:72):13: howdy, something new!, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level:4 log body:2024/08/06 19:20:59 [error] 22619#22619: *79 [lua] content_by_lua(nginx.conf:72):14: howdy, something even newer!, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" ' doesn't match '(?^s:\Amsg count: 3 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+: --> 88, 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+: --> 88, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" 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+: --> 89, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" msg count: 3 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+: --> 89, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" 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+: --> 90, 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+: --> 90, 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+: --> 100, 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+).*?content_by_lua\(nginx.conf:\d+\):\d+: howdy, something new!, 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+).*?content_by_lua\(nginx.conf:\d+\):\d+: howdy, something even newer!, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" \z)' |
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:4 log body:2024/08/06 19:20:59 [error] 22619\#22619: *80 [lua] access_by_lua(nginx.conf:58):11: --> 88, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level:5 log body:2024/08/06 19:20:59 [warn] 22619\#22619: *80 [lua] access_by_lua(nginx.conf:58):10: --> 89, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level:4 log body:2024/08/06 19:20:59 [error] 22619\#22619: *80 [lua] access_by_lua(nginx.conf:58):11: --> 89, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" msg count: 3 log level:5 log body:2024/08/06 19:20:59 [warn] 22619\#22619: *80 [lua] access_by_lua(nginx.conf:58):10: --> 90, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level:4 log body:2024/08/06 19:20:59 [error] 22619\#22619: *80 [lua] access_by_lua(nginx.conf:58):11: --> 90, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level:5 log body:2024/08/06 19:20:59 [warn] 22619\#22619: *80 [lua] access_by_lua(nginx.conf:58):10: --> 91, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level:4 log body:2024/08/06 19:20:59 [error] 22619\#22619: *80 [lua] access_by_lua(nginx.conf:58):11: --> 100, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level:4 log body:2024/08/06 19:20:59 [error] 22619\#22619: *80 [lua] content_by_lua(nginx.conf:72):13: howdy, something new!, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level:4 log body:2024/08/06 19:20:59 [error] 22619\#22619: *80 [lua] content_by_lua(nginx.conf:72):14: howdy, something even newer!, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost") |
'msg count: 3 log level:4 log body:2024/08/06 19:20:59 [error] 22619#22619: *80 [lua] access_by_lua(nginx.conf:58):11: --> 88, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level:5 log body:2024/08/06 19:20:59 [warn] 22619#22619: *80 [lua] access_by_lua(nginx.conf:58):10: --> 89, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level:4 log body:2024/08/06 19:20:59 [error] 22619#22619: *80 [lua] access_by_lua(nginx.conf:58):11: --> 89, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" msg count: 3 log level:5 log body:2024/08/06 19:20:59 [warn] 22619#22619: *80 [lua] access_by_lua(nginx.conf:58):10: --> 90, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level:4 log body:2024/08/06 19:20:59 [error] 22619#22619: *80 [lua] access_by_lua(nginx.conf:58):11: --> 90, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level:5 log body:2024/08/06 19:20:59 [warn] 22619#22619: *80 [lua] access_by_lua(nginx.conf:58):10: --> 91, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level:4 log body:2024/08/06 19:20:59 [error] 22619#22619: *80 [lua] access_by_lua(nginx.conf:58):11: --> 100, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level:4 log body:2024/08/06 19:20:59 [error] 22619#22619: *80 [lua] content_by_lua(nginx.conf:72):13: howdy, something new!, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level:4 log body:2024/08/06 19:20:59 [error] 22619#22619: *80 [lua] content_by_lua(nginx.conf:72):14: howdy, something even newer!, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" ' doesn't match '(?^s:\Amsg count: 3 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+: --> 88, 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+: --> 88, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" 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+: --> 89, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" msg count: 3 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+: --> 89, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" 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+: --> 90, 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+: --> 90, 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+: --> 100, 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+).*?content_by_lua\(nginx.conf:\d+\):\d+: howdy, something new!, 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+).*?content_by_lua\(nginx.conf:\d+\):\d+: howdy, something even newer!, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" \z)' |
pipe-stdout.t | TEST 33: read 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 ' |
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(nginx.conf:26):18 loop] [TRACE 2 init_worker_by_lua(nginx.conf:50):4 loop] [TRACE 2 content_by_lua(nginx.conf:76):4 loop] process type in init_by_lua*: master init_worker_by_lua(nginx.conf:50):10: process type: worker ' doesn't match '(?^:\[TRACE\s+\d+ init_by_lua\(nginx.conf:\d+\):\d+ loop\] \[TRACE\s+\d+ init_worker_by_lua\(nginx.conf:\d+\):\d+ loop\] \[TRACE\s+\d+ content_by_lua\(nginx.conf:\d+\):4 loop\] process type in init_by_lua\*: single init_worker_by_lua\(nginx.conf:\d+\):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(nginx.conf:26):18 loop] [TRACE 2 init_worker_by_lua(nginx.conf:50):4 loop] [TRACE 2 content_by_lua(nginx.conf:76):4 loop] process type in init_by_lua*: master init_worker_by_lua(nginx.conf:50):10: process type: worker ' doesn't match '(?^:\[TRACE\s+\d+ init_by_lua\(nginx.conf:\d+\):\d+ loop\] \[TRACE\s+\d+ init_worker_by_lua\(nginx.conf:\d+\):\d+ loop\] \[TRACE\s+\d+ content_by_lua\(nginx.conf:\d+\):4 loop\] process type in init_by_lua\*: single init_worker_by_lua\(nginx.conf:\d+\):10: process type: single )' |
request.t | TEST 7: ngx.req.start_time() - response_body - response is expected (repeated req 0, req 0) |
got: "true\x{0a}>= 0.099: true\x{0a}< 0.11: false\x{0a}" length: 34 expected: "true\x{0a}>= 0.099: true\x{0a}< 0.11: true\x{0a}" length: 33 strings begin to differ at char 29 (line 3 column 9) |
semaphore.t | TEST 31: multi wait and mult post with one semaphore - pattern "[error]" should not match any line in error.log but matches line "2024/08/06 19:29:24 [error] 3978\#3978: *166 [lua] init_worker_by_lua(nginx.conf:26):14: sem: timeout, context: ngx.timer" (req 0) |
2024/08/06 19:29:24 [debug] 3978\#3978: http lua semaphore wait: 0000000009062058, timeout: 1000, resources: 0, event posted: 0 2024/08/06 19:29:24 [debug] 3978\#3978: *166 event timer add: 0: 1000:11929404 2024/08/06 19:29:24 [debug] 3978\#3978: http lua semaphore wait yielding 2024/08/06 19:29:24 [debug] 3978\#3978: *166 lua resume returned 1 2024/08/06 19:29:24 [debug] 3978\#3978: *166 lua thread yielded 2024/08/06 19:29:24 [debug] 3978\#3978: *166 lua run thread returned -2 2024/08/06 19:29:24 [debug] 3978\#3978: worker cycle 2024/08/06 19:29:24 [debug] 3978\#3978: epoll timer: 1000 2024/08/06 19:29:25 [debug] 4050\#4050: epoll: fd:6 ev:0001 d:00000000092619E0 ' |
semaphore.t | TEST 10: semaphore in rewrite_by_lua (all allowed) - grep_error_log_out (req 0) |
@@ -1,2 +1,3 @@ sem: timeout, +sem: timeout, sem: 1, ' |
semaphore.t | TEST 13: semaphore in log_by_lua (wait not allowed) - grep_error_log_out (req 0) |
@@ -1,2 +1,3 @@ +sem: timeout, sem: 1 while logging request, sem: API disabled in the context of log_by_lua* while logging request, ' |
semaphore.t | TEST 30: main thread wait a light thread that is waiting on a semaphore - pattern "[error]" should not match any line in error.log but matches line "2024/08/06 19:29:30 [error] 3978\#3978: *166 [lua] init_worker_by_lua(nginx.conf:26):14: sem: timeout, context: ngx.timer" (req 0) |
2024/08/06 19:29:30 [debug] 3978\#3978: http lua semaphore wait: 0000000009062058, timeout: 1000, resources: 0, event posted: 0 2024/08/06 19:29:30 [debug] 3978\#3978: *166 event timer add: 0: 1000:11935406 2024/08/06 19:29:30 [debug] 3978\#3978: http lua semaphore wait yielding 2024/08/06 19:29:30 [debug] 3978\#3978: *166 lua resume returned 1 2024/08/06 19:29:30 [debug] 3978\#3978: *166 lua thread yielded 2024/08/06 19:29:30 [debug] 3978\#3978: *166 lua run thread returned -2 2024/08/06 19:29:30 [debug] 3978\#3978: worker cycle 2024/08/06 19:29:30 [debug] 3978\#3978: epoll timer: 1000 2024/08/06 19:29:31 [notice] 3731\#3731: signal 17 (SIGCHLD) received from 4282 ' |
semaphore.t | TEST 8: semaphore in init_worker_by_lua (new and post) - pattern "[error]" should not match any line in error.log but matches line "2024/08/06 19:29:31 [error] 3978\#3978: *166 [lua] init_worker_by_lua(nginx.conf:26):14: sem: timeout, context: ngx.timer" (req 0) |
2024/08/06 19:29:31 [debug] 3978\#3978: http lua semaphore wait: 0000000009062058, timeout: 1000, resources: 0, event posted: 0 2024/08/06 19:29:31 [debug] 3978\#3978: *166 event timer add: 0: 1000:11936407 2024/08/06 19:29:31 [debug] 3978\#3978: http lua semaphore wait yielding 2024/08/06 19:29:31 [debug] 3978\#3978: *166 lua resume returned 1 2024/08/06 19:29:31 [debug] 3978\#3978: *166 lua thread yielded 2024/08/06 19:29:31 [debug] 3978\#3978: *166 lua run thread returned -2 2024/08/06 19:29:31 [debug] 3978\#3978: worker cycle 2024/08/06 19:29:31 [debug] 3978\#3978: epoll timer: 1000 2024/08/06 19:29:31 [debug] 4354\#4354: epoll: fd:6 ev:0001 d:00000000096D3FC0 ' |
semaphore.t | TEST 12: semaphore in content_by_lua (all allowed) - grep_error_log_out (req 1) |
@@ -1,2 +1,4 @@ sem: timeout, sem: 1, +sem: timeout, +sem: 6 times, ' |
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 "2024/08/06 19:29:33 [error] 3978\#3978: *166 [lua] init_worker_by_lua(nginx.conf:26):14: sem: timeout, context: ngx.timer" (req 0) |
2024/08/06 19:29:33 [debug] 3978\#3978: http lua semaphore wait: 0000000009062058, timeout: 1000, resources: 0, event posted: 0 2024/08/06 19:29:33 [debug] 3978\#3978: *166 event timer add: 0: 1000:11938408 2024/08/06 19:29:33 [debug] 3978\#3978: http lua semaphore wait yielding 2024/08/06 19:29:33 [debug] 3978\#3978: *166 lua resume returned 1 2024/08/06 19:29:33 [debug] 3978\#3978: *166 lua thread yielded 2024/08/06 19:29:33 [debug] 3978\#3978: *166 lua run thread returned -2 2024/08/06 19:29:33 [debug] 3978\#3978: worker cycle 2024/08/06 19:29:33 [debug] 3978\#3978: epoll timer: 1000 2024/08/06 19:29:33 [notice] 3731\#3731: start worker processes ' |
semaphore.t | TEST 39: basic semaphore count (negative number) - pattern "[error]" should not match any line in error.log but matches line "2024/08/06 19:29:34 [error] 3978\#3978: *166 [lua] init_worker_by_lua(nginx.conf:26):14: sem: timeout, context: ngx.timer" (req 0) |
2024/08/06 19:29:34 [debug] 3978\#3978: http lua semaphore wait: 0000000009062058, timeout: 1000, resources: 0, event posted: 0 2024/08/06 19:29:34 [debug] 3978\#3978: *166 event timer add: 0: 1000:11939409 2024/08/06 19:29:34 [debug] 3978\#3978: http lua semaphore wait yielding 2024/08/06 19:29:34 [debug] 3978\#3978: *166 lua resume returned 1 2024/08/06 19:29:34 [debug] 3978\#3978: *166 lua thread yielded 2024/08/06 19:29:34 [debug] 3978\#3978: *166 lua run thread returned -2 2024/08/06 19:29:34 [debug] 3978\#3978: worker cycle 2024/08/06 19:29:34 [debug] 3978\#3978: epoll timer: 1000 2024/08/06 19:29:34 [debug] 4492\#4492: channel command: 2 ' |
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 "2024/08/06 19:29:37 [error] 3978\#3978: *166 [lua] init_worker_by_lua(nginx.conf:26):14: sem: timeout, context: ngx.timer" (req 0) |
2024/08/06 19:29:37 [debug] 3978\#3978: http lua semaphore wait: 0000000009062058, timeout: 1000, resources: 0, event posted: 0 2024/08/06 19:29:37 [debug] 3978\#3978: *166 event timer add: 0: 1000:11942410 2024/08/06 19:29:37 [debug] 3978\#3978: http lua semaphore wait yielding 2024/08/06 19:29:37 [debug] 3978\#3978: *166 lua resume returned 1 2024/08/06 19:29:37 [debug] 3978\#3978: *166 lua thread yielded 2024/08/06 19:29:37 [debug] 3978\#3978: *166 lua run thread returned -2 2024/08/06 19:29:37 [debug] 3978\#3978: worker cycle 2024/08/06 19:29:37 [debug] 3978\#3978: epoll timer: 1000 2024/08/06 19:29:37 [debug] 4600\#4600: malloc: 0000000008A7B5B0:24 ' |
semaphore.t | TEST 23: semaphore post in set_by_lua - pattern "[error]" should not match any line in error.log but matches line "2024/08/06 19:29:38 [error] 3978\#3978: *166 [lua] init_worker_by_lua(nginx.conf:26):14: sem: timeout, context: ngx.timer" (req 0) |
2024/08/06 19:29:38 [error] 3978\#3978: *166 [lua] init_worker_by_lua(nginx.conf:26):18: sem: 6 times, context: ngx.timer 2024/08/06 19:29:38 [debug] 3978\#3978: http lua semaphore wait: 0000000009062058, timeout: 1000, resources: 0, event posted: 0 2024/08/06 19:29:38 [debug] 3978\#3978: *166 event timer add: 0: 1000:11943410 2024/08/06 19:29:38 [debug] 3978\#3978: http lua semaphore wait yielding 2024/08/06 19:29:38 [debug] 3978\#3978: *166 lua resume returned 1 2024/08/06 19:29:38 [debug] 3978\#3978: *166 lua thread yielded 2024/08/06 19:29:38 [debug] 3978\#3978: *166 lua run thread returned -2 2024/08/06 19:29:38 [debug] 3978\#3978: worker cycle 2024/08/06 19:29:38 [debug] 3978\#3978: epoll timer: 1000 ' |
semaphore.t | TEST 23: semaphore post in set_by_lua - pattern "[error]" should not match any line in error.log but matches line "2024/08/06 19:29:38 [error] 3978\#3978: *166 [lua] init_worker_by_lua(nginx.conf:26):18: sem: 6 times, context: ngx.timer" (req 0) |
2024/08/06 19:29:38 [debug] 3978\#3978: http lua semaphore wait: 0000000009062058, timeout: 1000, resources: 0, event posted: 0 2024/08/06 19:29:38 [debug] 3978\#3978: *166 event timer add: 0: 1000:11943410 2024/08/06 19:29:38 [debug] 3978\#3978: http lua semaphore wait yielding 2024/08/06 19:29:38 [debug] 3978\#3978: *166 lua resume returned 1 2024/08/06 19:29:38 [debug] 3978\#3978: *166 lua thread yielded 2024/08/06 19:29:38 [debug] 3978\#3978: *166 lua run thread returned -2 2024/08/06 19:29:38 [debug] 3978\#3978: worker cycle 2024/08/06 19:29:38 [debug] 3978\#3978: epoll timer: 1000 2024/08/06 19:29:38 [debug] 4636\#4636: epoll timer: 1000 ' |
semaphore.t | TEST 32: semaphore wait time is zero - pattern "[error]" should not match any line in error.log but matches line "2024/08/06 19:29:39 [error] 3978\#3978: *166 [lua] init_worker_by_lua(nginx.conf:26):14: sem: timeout, context: ngx.timer" (req 0) |
2024/08/06 19:29:39 [debug] 3978\#3978: http lua semaphore wait: 0000000009062058, timeout: 1000, resources: 0, event posted: 0 2024/08/06 19:29:39 [debug] 3978\#3978: *166 event timer add: 0: 1000:11944411 2024/08/06 19:29:39 [debug] 3978\#3978: http lua semaphore wait yielding 2024/08/06 19:29:39 [debug] 3978\#3978: *166 lua resume returned 1 2024/08/06 19:29:39 [debug] 3978\#3978: *166 lua thread yielded 2024/08/06 19:29:39 [debug] 3978\#3978: *166 lua run thread returned -2 2024/08/06 19:29:39 [debug] 3978\#3978: worker cycle 2024/08/06 19:29:39 [debug] 3978\#3978: epoll timer: 1000 2024/08/06 19:29:39 [debug] 4672\#4672: epoll: fd:6 ev:0001 d:0000000008878700 ' |
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 1: basic semaphore in uthread - pattern "[error]" should not match any line in error.log but matches line "2024/08/06 19:29:43 [error] 3978\#3978: *166 [lua] init_worker_by_lua(nginx.conf:26):14: sem: timeout, context: ngx.timer" (req 0) |
2024/08/06 19:29:43 [debug] 3978\#3978: http lua semaphore wait: 0000000009062058, timeout: 1000, resources: 0, event posted: 0 2024/08/06 19:29:43 [debug] 3978\#3978: *166 event timer add: 0: 1000:11948414 2024/08/06 19:29:43 [debug] 3978\#3978: http lua semaphore wait yielding 2024/08/06 19:29:43 [debug] 3978\#3978: *166 lua resume returned 1 2024/08/06 19:29:43 [debug] 3978\#3978: *166 lua thread yielded 2024/08/06 19:29:43 [debug] 3978\#3978: *166 lua run thread returned -2 2024/08/06 19:29:43 [debug] 3978\#3978: worker cycle 2024/08/06 19:29:43 [debug] 3978\#3978: epoll timer: 1000 2024/08/06 19:29:43 [debug] 4846\#4846: *815 lua reset ctx ' |
semaphore.t | TEST 16: semaphore in ngx.timer (all allowed) - grep_error_log_out (req 0) |
@@ -1,2 +1,4 @@ sem: timeout, +sem: 6 times, +sem: timeout, sem: 1, ' |
semaphore.t | TEST 16: semaphore in ngx.timer (all allowed) - grep_error_log_out (req 1) |
@@ -1,2 +1,3 @@ sem: timeout, sem: 1, +sem: timeout, ' |
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 "2024/08/06 19:29:47 [error] 3978\#3978: *166 [lua] init_worker_by_lua(nginx.conf:26):14: sem: timeout, context: ngx.timer" (req 0) |
2024/08/06 19:29:47 [debug] 3978\#3978: http lua semaphore wait: 0000000009062058, timeout: 1000, resources: 0, event posted: 0 2024/08/06 19:29:47 [debug] 3978\#3978: *166 event timer add: 0: 1000:11952417 2024/08/06 19:29:47 [debug] 3978\#3978: http lua semaphore wait yielding 2024/08/06 19:29:47 [debug] 3978\#3978: *166 lua resume returned 1 2024/08/06 19:29:47 [debug] 3978\#3978: *166 lua thread yielded 2024/08/06 19:29:47 [debug] 3978\#3978: *166 lua run thread returned -2 2024/08/06 19:29:47 [debug] 3978\#3978: worker cycle 2024/08/06 19:29:47 [debug] 3978\#3978: epoll timer: 1000 2024/08/06 19:29:47 [debug] 3731\#3731: malloc: 00000000089FC310:2048 ' |
semaphore.t | TEST 18: semaphore wait post in access_by_lua - pattern "[error]" should not match any line in error.log but matches line "2024/08/06 19:29:48 [error] 3978\#3978: *166 [lua] init_worker_by_lua(nginx.conf:26):14: sem: timeout, context: ngx.timer" (req 0) |
2024/08/06 19:29:48 [debug] 3978\#3978: http lua semaphore wait: 0000000009062058, timeout: 1000, resources: 0, event posted: 0 2024/08/06 19:29:48 [debug] 3978\#3978: *166 event timer add: 0: 1000:11953418 2024/08/06 19:29:48 [debug] 3978\#3978: http lua semaphore wait yielding 2024/08/06 19:29:48 [debug] 3978\#3978: *166 lua resume returned 1 2024/08/06 19:29:48 [debug] 3978\#3978: *166 lua thread yielded 2024/08/06 19:29:48 [debug] 3978\#3978: *166 lua run thread returned -2 2024/08/06 19:29:48 [debug] 3978\#3978: worker cycle 2024/08/06 19:29:48 [debug] 3978\#3978: epoll timer: 1000 2024/08/06 19:29:48 [notice] 3731\#3731: signal 17 (SIGCHLD) received from 5020 ' |
semaphore.t | TEST 3: semaphore wait time=0 - pattern "[error]" should not match any line in error.log but matches line "2024/08/06 19:29:49 [error] 3978\#3978: *166 [lua] init_worker_by_lua(nginx.conf:26):14: sem: timeout, context: ngx.timer" (req 0) |
2024/08/06 19:29:49 [debug] 3978\#3978: http lua semaphore wait: 0000000009062058, timeout: 1000, resources: 0, event posted: 0 2024/08/06 19:29:49 [debug] 3978\#3978: *166 event timer add: 0: 1000:11954418 2024/08/06 19:29:49 [debug] 3978\#3978: http lua semaphore wait yielding 2024/08/06 19:29:49 [debug] 3978\#3978: *166 lua resume returned 1 2024/08/06 19:29:49 [debug] 3978\#3978: *166 lua thread yielded 2024/08/06 19:29:49 [debug] 3978\#3978: *166 lua run thread returned -2 2024/08/06 19:29:49 [debug] 3978\#3978: worker cycle 2024/08/06 19:29:49 [debug] 3978\#3978: epoll timer: 1000 2024/08/06 19:29:49 [debug] 5092\#5092: epoll: fd:6 ev:0001 d:0000000008F06780 ' |
semaphore.t | TEST 26: kill a light thread that is waiting on a semaphore (no resource) - pattern "[error]" should not match any line in error.log but matches line "2024/08/06 19:29:50 [error] 3978\#3978: *166 [lua] init_worker_by_lua(nginx.conf:26):14: sem: timeout, context: ngx.timer" (req 1) |
2024/08/06 19:29:50 [error] 3978\#3978: *166 [lua] init_worker_by_lua(nginx.conf:26):18: sem: 6 times, context: ngx.timer 2024/08/06 19:29:50 [debug] 3978\#3978: http lua semaphore wait: 0000000009062058, timeout: 1000, resources: 0, event posted: 0 2024/08/06 19:29:50 [debug] 3978\#3978: *166 event timer add: 0: 1000:11955418 2024/08/06 19:29:50 [debug] 3978\#3978: http lua semaphore wait yielding 2024/08/06 19:29:50 [debug] 3978\#3978: *166 lua resume returned 1 2024/08/06 19:29:50 [debug] 3978\#3978: *166 lua thread yielded 2024/08/06 19:29:50 [debug] 3978\#3978: *166 lua run thread returned -2 2024/08/06 19:29:50 [debug] 3978\#3978: worker cycle ' |
semaphore.t | TEST 26: kill a light thread that is waiting on a semaphore (no resource) - pattern "[error]" should not match any line in error.log but matches line "2024/08/06 19:29:50 [error] 3978\#3978: *166 [lua] init_worker_by_lua(nginx.conf:26):18: sem: 6 times, context: ngx.timer" (req 1) |
2024/08/06 19:29:50 [debug] 3978\#3978: http lua semaphore wait: 0000000009062058, timeout: 1000, resources: 0, event posted: 0 2024/08/06 19:29:50 [debug] 3978\#3978: *166 event timer add: 0: 1000:11955418 2024/08/06 19:29:50 [debug] 3978\#3978: http lua semaphore wait yielding 2024/08/06 19:29:50 [debug] 3978\#3978: *166 lua resume returned 1 2024/08/06 19:29:50 [debug] 3978\#3978: *166 lua thread yielded 2024/08/06 19:29:50 [debug] 3978\#3978: *166 lua run thread returned -2 2024/08/06 19:29:50 [debug] 3978\#3978: worker cycle ' |
shared.t | TEST 3: shared.ttl returns error on not found key - response_body - response is expected (repeated req 0, req 0) |
got: '' expected: 'failed to get ttl: not found ' |
shared.t | TEST 3: shared.ttl returns error on not found key - response_body - response is expected (repeated req 1, req 0) |
got: '' expected: 'failed to get ttl: not found ' |
shared.t | TEST 11: shared.expire returns error on not found key - response_body - response is expected (repeated req 0, req 0) |
got: '' expected: 'failed to set ttl: not found ' |
shared.t | TEST 11: shared.expire returns error on not found key - response_body - response is expected (repeated req 1, req 0) |
got: '' expected: 'failed to set ttl: not found ' |
stream/errlog.t | 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:5 log body:2024/08/06 19:34:41 [warn] 11997\#11997: *3 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:2024/08/06 19:34:41 [error] 11997\#11997: *3 stream [lua] content_by_lua(nginx.conf:93):11: --> 85, client: 127.0.0.1, server: 0.0.0.0:1985 log level:5 log body:2024/08/06 19:34:41 [warn] 11997\#11997: *3 stream [lua] content_by_lua(nginx.conf:93):10: --> 86, client: 127.0.0.1, server: 0.0.0.0:1985 msg count: 3 log level:5 log body:2024/08/06 19:34:41 [warn] 11997\#11997: *3 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:2024/08/06 19:34:41 [error] 11997\#11997: *3 stream [lua] content_by_lua(nginx.conf:93):11: --> 87, client: 127.0.0.1, server: 0.0.0.0:1985 log level:5 log body:2024/08/06 19:34:41 [warn] 11997\#11997: *3 stream [lua] content_by_lua(nginx.conf:93):10: --> 88, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2024/08/06 19:34:41 [error] 11997\#11997: *3 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:2024/08/06 19:34:41 [error] 11997\#11997: *3 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:2024/08/06 19:34:41 [error] 11997\#11997: *3 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:5 log body:2024/08/06 19:34:41 [warn] 11997#11997: *3 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:2024/08/06 19:34:41 [error] 11997#11997: *3 stream [lua] content_by_lua(nginx.conf:93):11: --> 85, client: 127.0.0.1, server: 0.0.0.0:1985 log level:5 log body:2024/08/06 19:34:41 [warn] 11997#11997: *3 stream [lua] content_by_lua(nginx.conf:93):10: --> 86, client: 127.0.0.1, server: 0.0.0.0:1985 msg count: 3 log level:5 log body:2024/08/06 19:34:41 [warn] 11997#11997: *3 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:2024/08/06 19:34:41 [error] 11997#11997: *3 stream [lua] content_by_lua(nginx.conf:93):11: --> 87, client: 127.0.0.1, server: 0.0.0.0:1985 log level:5 log body:2024/08/06 19:34:41 [warn] 11997#11997: *3 stream [lua] content_by_lua(nginx.conf:93):10: --> 88, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2024/08/06 19:34:41 [error] 11997#11997: *3 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:2024/08/06 19:34:41 [error] 11997#11997: *3 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:2024/08/06 19:34:41 [error] 11997#11997: *3 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 19: fetch a few and generate a few, then fetch again (overflown again) - response_body_like - response is expected (msg count: 3 log level:5 log body:2024/08/06 19:34:41 [warn] 11997\#11997: *6 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:2024/08/06 19:34:41 [error] 11997\#11997: *6 stream [lua] content_by_lua(nginx.conf:93):11: --> 85, client: 127.0.0.1, server: 0.0.0.0:1985 log level:5 log body:2024/08/06 19:34:41 [warn] 11997\#11997: *6 stream [lua] content_by_lua(nginx.conf:93):10: --> 86, client: 127.0.0.1, server: 0.0.0.0:1985 msg count: 3 log level:5 log body:2024/08/06 19:34:41 [warn] 11997\#11997: *6 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:2024/08/06 19:34:41 [error] 11997\#11997: *6 stream [lua] content_by_lua(nginx.conf:93):11: --> 87, client: 127.0.0.1, server: 0.0.0.0:1985 log level:5 log body:2024/08/06 19:34:41 [warn] 11997\#11997: *6 stream [lua] content_by_lua(nginx.conf:93):10: --> 88, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2024/08/06 19:34:41 [error] 11997\#11997: *6 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:2024/08/06 19:34:41 [error] 11997\#11997: *6 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:2024/08/06 19:34:41 [error] 11997\#11997: *6 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:5 log body:2024/08/06 19:34:41 [warn] 11997#11997: *6 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:2024/08/06 19:34:41 [error] 11997#11997: *6 stream [lua] content_by_lua(nginx.conf:93):11: --> 85, client: 127.0.0.1, server: 0.0.0.0:1985 log level:5 log body:2024/08/06 19:34:41 [warn] 11997#11997: *6 stream [lua] content_by_lua(nginx.conf:93):10: --> 86, client: 127.0.0.1, server: 0.0.0.0:1985 msg count: 3 log level:5 log body:2024/08/06 19:34:41 [warn] 11997#11997: *6 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:2024/08/06 19:34:41 [error] 11997#11997: *6 stream [lua] content_by_lua(nginx.conf:93):11: --> 87, client: 127.0.0.1, server: 0.0.0.0:1985 log level:5 log body:2024/08/06 19:34:41 [warn] 11997#11997: *6 stream [lua] content_by_lua(nginx.conf:93):10: --> 88, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2024/08/06 19:34:41 [error] 11997#11997: *6 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:2024/08/06 19:34:41 [error] 11997#11997: *6 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:2024/08/06 19:34:41 [error] 11997#11997: *6 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 21: multi-line error log - response_body_like - response is expected (log lines: \#2 log level:6 log body:2024/08/06 19:34:42 [notice] 11990\#11990: start worker processes log level:4 log body:2024/08/06 19:34:43 [error] 12048\#12048: *63 stream [lua] content_by_lua(nginx.conf:67):8: --> new line, client: 127.0.0.1, server: 0.0.0.0:1985) |
'log lines: #2 log level:6 log body:2024/08/06 19:34:42 [notice] 11990#11990: start worker processes log level:4 log body:2024/08/06 19:34:43 [error] 12048#12048: *63 stream [lua] content_by_lua(nginx.conf:67):8: --> new line, client: 127.0.0.1, server: 0.0.0.0:1985 ' doesn't match '(?^s:\Alog lines: #1 log level:4 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*content_by_lua\(nginx.conf:\d+\):\d+: --> new line, client: 127.0.0.1, server: 0.0.0.0:\d+ \z)' |
stream/errlog.t | 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 | 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 31: ringbuf sentinel bug2 - response_body_like - response is expected (log lines: \#18 log lines: \#3) |
'log lines: #18 log lines: #3 ' doesn't match '(?^s:\A(?:log lines: #18 log lines: #1 |log lines: #18 log lines: #2 )\z)' |
stream/errlog.t | TEST 3: client connected info - grep_error_log_out (req 0) |
'client 127.0.0.1:45890 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:45894 connected to capture log line:10 ' doesn't match '(?^:^client .*? connected to .*? capture log line:2 $)' |
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:2024/08/06 19:34:53 [notice] 12086\#12086: start worker processes log level:4 log body:2024/08/06 19:34:53 [error] 12422\#12422: *303 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:2024/08/06 19:34:53 [notice] 12086#12086: start worker processes log level:4 log body:2024/08/06 19:34:53 [error] 12422#12422: *303 stream [lua] content_by_lua(nginx.conf:75):8: --> new line, client: 127.0.0.1, server: 0.0.0.0:1985 end maybe log lines: #2 end ' doesn't match '(?^s:\Amaybe log lines: #1 log level:4 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*content_by_lua\(nginx.conf:\d+\):\d+: --> new line, client: 127.0.0.1, server: 0.0.0.0:\d+ end maybe log lines: #1 end \z)' |
stream/errlog.t | TEST 17: flood the capturing buffer (4k) - response_body_like - response is expected (log lines: \#25 log level:4 log body:2024/08/06 19:34:54 [error] 12459\#12459: *333 stream [lua] content_by_lua(nginx.conf:78):11: --> 88, client: 127.0.0.1, server: 0.0.0.0:1985 log level:5 log body:2024/08/06 19:34:54 [warn] 12459\#12459: *333 stream [lua] content_by_lua(nginx.conf:78):10: --> 89, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2024/08/06 19:34:54 [error] 12459\#12459: *333 stream [lua] content_by_lua(nginx.conf:78):11: --> 89, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2024/08/06 19:34:54 [error] 12459\#12459: *333 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:2024/08/06 19:34:54 [warn] 12459\#12459: *333 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:2024/08/06 19:34:54 [error] 12459\#12459: *333 stream [lua] content_by_lua(nginx.conf:78):11: --> 100, client: 127.0.0.1, server: 0.0.0.0:1985) |
'log lines: #25 log level:4 log body:2024/08/06 19:34:54 [error] 12459#12459: *333 stream [lua] content_by_lua(nginx.conf:78):11: --> 88, client: 127.0.0.1, server: 0.0.0.0:1985 log level:5 log body:2024/08/06 19:34:54 [warn] 12459#12459: *333 stream [lua] content_by_lua(nginx.conf:78):10: --> 89, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2024/08/06 19:34:54 [error] 12459#12459: *333 stream [lua] content_by_lua(nginx.conf:78):11: --> 89, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2024/08/06 19:34:54 [error] 12459#12459: *333 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:2024/08/06 19:34:54 [warn] 12459#12459: *333 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:2024/08/06 19:34:54 [error] 12459#12459: *333 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: #26 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+: --> 88, 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+: --> 89, 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 17: flood the capturing buffer (4k) - response_body_like - response is expected (log lines: \#25 log level:4 log body:2024/08/06 19:34:55 [error] 12459\#12459: *336 stream [lua] content_by_lua(nginx.conf:78):11: --> 88, client: 127.0.0.1, server: 0.0.0.0:1985 log level:5 log body:2024/08/06 19:34:55 [warn] 12459\#12459: *336 stream [lua] content_by_lua(nginx.conf:78):10: --> 89, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2024/08/06 19:34:55 [error] 12459\#12459: *336 stream [lua] content_by_lua(nginx.conf:78):11: --> 89, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2024/08/06 19:34:55 [error] 12459\#12459: *336 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:2024/08/06 19:34:55 [warn] 12459\#12459: *336 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:2024/08/06 19:34:55 [error] 12459\#12459: *336 stream [lua] content_by_lua(nginx.conf:78):11: --> 100, client: 127.0.0.1, server: 0.0.0.0:1985) |
'log lines: #25 log level:4 log body:2024/08/06 19:34:55 [error] 12459#12459: *336 stream [lua] content_by_lua(nginx.conf:78):11: --> 88, client: 127.0.0.1, server: 0.0.0.0:1985 log level:5 log body:2024/08/06 19:34:55 [warn] 12459#12459: *336 stream [lua] content_by_lua(nginx.conf:78):10: --> 89, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2024/08/06 19:34:55 [error] 12459#12459: *336 stream [lua] content_by_lua(nginx.conf:78):11: --> 89, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2024/08/06 19:34:55 [error] 12459#12459: *336 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:2024/08/06 19:34:55 [warn] 12459#12459: *336 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:2024/08/06 19:34:55 [error] 12459#12459: *336 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: #26 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+: --> 88, 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+: --> 89, 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 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:4 log body:2024/08/06 19:34:55 [error] 12494\#12494: *363 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:2024/08/06 19:34:55 [warn] 12494\#12494: *363 stream [lua] content_by_lua(nginx.conf:91):10: --> 86, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2024/08/06 19:34:55 [error] 12494\#12494: *363 stream [lua] content_by_lua(nginx.conf:91):11: --> 86, client: 127.0.0.1, server: 0.0.0.0:1985 msg count: 3 log level:5 log body:2024/08/06 19:34:55 [warn] 12494\#12494: *363 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:2024/08/06 19:34:55 [error] 12494\#12494: *363 stream [lua] content_by_lua(nginx.conf:91):11: --> 87, client: 127.0.0.1, server: 0.0.0.0:1985 log level:5 log body:2024/08/06 19:34:55 [warn] 12494\#12494: *363 stream [lua] content_by_lua(nginx.conf:91):10: --> 88, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2024/08/06 19:34:55 [error] 12494\#12494: *363 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:2024/08/06 19:34:55 [error] 12494\#12494: *363 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:2024/08/06 19:34:55 [error] 12494\#12494: *363 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:4 log body:2024/08/06 19:34:55 [error] 12494#12494: *363 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:2024/08/06 19:34:55 [warn] 12494#12494: *363 stream [lua] content_by_lua(nginx.conf:91):10: --> 86, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2024/08/06 19:34:55 [error] 12494#12494: *363 stream [lua] content_by_lua(nginx.conf:91):11: --> 86, client: 127.0.0.1, server: 0.0.0.0:1985 msg count: 3 log level:5 log body:2024/08/06 19:34:55 [warn] 12494#12494: *363 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:2024/08/06 19:34:55 [error] 12494#12494: *363 stream [lua] content_by_lua(nginx.conf:91):11: --> 87, client: 127.0.0.1, server: 0.0.0.0:1985 log level:5 log body:2024/08/06 19:34:55 [warn] 12494#12494: *363 stream [lua] content_by_lua(nginx.conf:91):10: --> 88, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2024/08/06 19:34:55 [error] 12494#12494: *363 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:2024/08/06 19:34:55 [error] 12494#12494: *363 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:2024/08/06 19:34:55 [error] 12494#12494: *363 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:4 log body:2024/08/06 19:34:56 [error] 12494\#12494: *366 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:2024/08/06 19:34:56 [warn] 12494\#12494: *366 stream [lua] content_by_lua(nginx.conf:91):10: --> 86, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2024/08/06 19:34:56 [error] 12494\#12494: *366 stream [lua] content_by_lua(nginx.conf:91):11: --> 86, client: 127.0.0.1, server: 0.0.0.0:1985 msg count: 3 log level:5 log body:2024/08/06 19:34:56 [warn] 12494\#12494: *366 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:2024/08/06 19:34:56 [error] 12494\#12494: *366 stream [lua] content_by_lua(nginx.conf:91):11: --> 87, client: 127.0.0.1, server: 0.0.0.0:1985 log level:5 log body:2024/08/06 19:34:56 [warn] 12494\#12494: *366 stream [lua] content_by_lua(nginx.conf:91):10: --> 88, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2024/08/06 19:34:56 [error] 12494\#12494: *366 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:2024/08/06 19:34:56 [error] 12494\#12494: *366 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:2024/08/06 19:34:56 [error] 12494\#12494: *366 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:4 log body:2024/08/06 19:34:56 [error] 12494#12494: *366 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:2024/08/06 19:34:56 [warn] 12494#12494: *366 stream [lua] content_by_lua(nginx.conf:91):10: --> 86, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2024/08/06 19:34:56 [error] 12494#12494: *366 stream [lua] content_by_lua(nginx.conf:91):11: --> 86, client: 127.0.0.1, server: 0.0.0.0:1985 msg count: 3 log level:5 log body:2024/08/06 19:34:56 [warn] 12494#12494: *366 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:2024/08/06 19:34:56 [error] 12494#12494: *366 stream [lua] content_by_lua(nginx.conf:91):11: --> 87, client: 127.0.0.1, server: 0.0.0.0:1985 log level:5 log body:2024/08/06 19:34:56 [warn] 12494#12494: *366 stream [lua] content_by_lua(nginx.conf:91):10: --> 88, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2024/08/06 19:34:56 [error] 12494#12494: *366 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:2024/08/06 19:34:56 [error] 12494#12494: *366 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:2024/08/06 19:34:56 [error] 12494#12494: *366 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 12: filter log by level(ngx.WARN) - response_body - response is expected (repeated req 0, req 0) |
got: 'log lines:3 ' expected: 'log lines:2 ' |
stream/errlog.t | TEST 11: filter log by level(ngx.INFO) - response_body - response is expected (repeated req 0, req 0) |
got: 'log lines:4 ' expected: 'log lines:3 ' |
stream/errlog.t | TEST 13: filter log by level(ngx.CRIT) - response_body - response is expected (repeated req 0, req 0) |
got: 'log lines:1 ' expected: 'log lines:0 ' |
stream/errlog.t | TEST 18: flood the capturing buffer (5k) - response_body_like - response is expected (log lines: \#31 log level:4 log body:2024/08/06 19:35:04 [error] 12849\#12849: *663 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:2024/08/06 19:35:04 [warn] 12849\#12849: *663 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:2024/08/06 19:35:04 [error] 12849\#12849: *663 stream [lua] content_by_lua(nginx.conf:78):11: --> 86, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2024/08/06 19:35:04 [error] 12849\#12849: *663 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:2024/08/06 19:35:04 [warn] 12849\#12849: *663 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:2024/08/06 19:35:04 [error] 12849\#12849: *663 stream [lua] content_by_lua(nginx.conf:78):11: --> 100, client: 127.0.0.1, server: 0.0.0.0:1985) |
'log lines: #31 log level:4 log body:2024/08/06 19:35:04 [error] 12849#12849: *663 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:2024/08/06 19:35:04 [warn] 12849#12849: *663 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:2024/08/06 19:35:04 [error] 12849#12849: *663 stream [lua] content_by_lua(nginx.conf:78):11: --> 86, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2024/08/06 19:35:04 [error] 12849#12849: *663 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:2024/08/06 19:35:04 [warn] 12849#12849: *663 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:2024/08/06 19:35:04 [error] 12849#12849: *663 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: \#31 log level:4 log body:2024/08/06 19:35:04 [error] 12849\#12849: *666 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:2024/08/06 19:35:04 [warn] 12849\#12849: *666 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:2024/08/06 19:35:04 [error] 12849\#12849: *666 stream [lua] content_by_lua(nginx.conf:78):11: --> 86, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2024/08/06 19:35:04 [error] 12849\#12849: *666 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:2024/08/06 19:35:04 [warn] 12849\#12849: *666 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:2024/08/06 19:35:04 [error] 12849\#12849: *666 stream [lua] content_by_lua(nginx.conf:78):11: --> 100, client: 127.0.0.1, server: 0.0.0.0:1985) |
'log lines: #31 log level:4 log body:2024/08/06 19:35:04 [error] 12849#12849: *666 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:2024/08/06 19:35:04 [warn] 12849#12849: *666 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:2024/08/06 19:35:04 [error] 12849#12849: *666 stream [lua] content_by_lua(nginx.conf:78):11: --> 86, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2024/08/06 19:35:04 [error] 12849#12849: *666 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:2024/08/06 19:35:04 [warn] 12849#12849: *666 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:2024/08/06 19:35:04 [error] 12849#12849: *666 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/process-type-hup.t | TEST 1: sanity - pattern "init_worker_by_lua:6: process type: privileged" should match a line in error.log (req 0) |
Looks like you failed 1 test of 8. |
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/request.t | TEST 1: ngx.req.start_time() - response_body - response is expected (repeated req 0, req 0) |
@@ -1,3 +1,3 @@ true >= 0.099: true -< 0.11: true +< 0.11: false ' Looks like you failed 1 test of 12. |
stream/semaphore.t | TEST 9: semaphore in content_by_lua (all allowed) - grep_error_log_out (req 0) |
@@ -1,2 +1,3 @@ sem: timeout, sem: 1, +sem: timeout, ' |
stream/semaphore.t | TEST 2: semaphore wait order - pattern "[error]" should not match any line in error.log but matches line "2024/08/06 19:38:10 [error] 17683\#17683: *434 stream [lua] init_worker_by_lua:14: sem: timeout, context: ngx.timer" (req 0) |
2024/08/06 19:38:10 [debug] 17683\#17683: stream lua semaphore wait: 00000000088F9AA8, timeout: 1000, resources: 0, event posted: 0 2024/08/06 19:38:10 [debug] 17683\#17683: *434 event timer add: 0: 1000:12455312 2024/08/06 19:38:10 [debug] 17683\#17683: stream lua semaphore wait yielding 2024/08/06 19:38:10 [debug] 17683\#17683: *434 lua resume returned 1 2024/08/06 19:38:10 [debug] 17683\#17683: *434 lua thread yielded 2024/08/06 19:38:10 [debug] 17683\#17683: *434 lua run thread returned -2 2024/08/06 19:38:10 [debug] 17683\#17683: worker cycle 2024/08/06 19:38:10 [debug] 17683\#17683: epoll timer: 1000 2024/08/06 19:38:10 [debug] 17154\#17154: child: 0 17863 e:0 t:0 d:0 r:1 j:1 ' |
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 "2024/08/06 19:38:11 [error] 17683\#17683: *434 stream [lua] init_worker_by_lua:14: sem: timeout, context: ngx.timer" (req 0) |
2024/08/06 19:38:11 [debug] 17683\#17683: stream lua semaphore wait: 00000000088F9AA8, timeout: 1000, resources: 0, event posted: 0 2024/08/06 19:38:11 [debug] 17683\#17683: *434 event timer add: 0: 1000:12456312 2024/08/06 19:38:11 [debug] 17683\#17683: stream lua semaphore wait yielding 2024/08/06 19:38:11 [debug] 17683\#17683: *434 lua resume returned 1 2024/08/06 19:38:11 [debug] 17683\#17683: *434 lua thread yielded 2024/08/06 19:38:11 [debug] 17683\#17683: *434 lua run thread returned -2 2024/08/06 19:38:11 [debug] 17683\#17683: worker cycle 2024/08/06 19:38:11 [debug] 17683\#17683: epoll timer: 1000 2024/08/06 19:38:11 [debug] 17899\#17899: epoll: fd:7 ev:0001 d:0000000008FA5658 ' |
stream/semaphore.t | TEST 3: semaphore wait time=0 - pattern "[error]" should not match any line in error.log but matches line "2024/08/06 19:38:12 [error] 17683\#17683: *434 stream [lua] init_worker_by_lua:14: sem: timeout, context: ngx.timer" (req 0) |
2024/08/06 19:38:12 [error] 17683\#17683: *434 stream [lua] init_worker_by_lua:18: sem: 3 times, context: ngx.timer 2024/08/06 19:38:12 [debug] 17683\#17683: stream lua semaphore wait: 00000000088F9AA8, timeout: 1000, resources: 0, event posted: 0 2024/08/06 19:38:12 [debug] 17683\#17683: *434 event timer add: 0: 1000:12457312 2024/08/06 19:38:12 [debug] 17683\#17683: stream lua semaphore wait yielding 2024/08/06 19:38:12 [debug] 17683\#17683: *434 lua resume returned 1 2024/08/06 19:38:12 [debug] 17683\#17683: *434 lua thread yielded 2024/08/06 19:38:12 [debug] 17683\#17683: *434 lua run thread returned -2 2024/08/06 19:38:12 [debug] 17683\#17683: worker cycle 2024/08/06 19:38:12 [debug] 17683\#17683: epoll timer: 1000 ' |
stream/semaphore.t | TEST 3: semaphore wait time=0 - pattern "[error]" should not match any line in error.log but matches line "2024/08/06 19:38:12 [error] 17683\#17683: *434 stream [lua] init_worker_by_lua:18: sem: 3 times, context: ngx.timer" (req 0) |
2024/08/06 19:38:12 [debug] 17683\#17683: stream lua semaphore wait: 00000000088F9AA8, timeout: 1000, resources: 0, event posted: 0 2024/08/06 19:38:12 [debug] 17683\#17683: *434 event timer add: 0: 1000:12457312 2024/08/06 19:38:12 [debug] 17683\#17683: stream lua semaphore wait yielding 2024/08/06 19:38:12 [debug] 17683\#17683: *434 lua resume returned 1 2024/08/06 19:38:12 [debug] 17683\#17683: *434 lua thread yielded 2024/08/06 19:38:12 [debug] 17683\#17683: *434 lua run thread returned -2 2024/08/06 19:38:12 [debug] 17683\#17683: worker cycle 2024/08/06 19:38:12 [debug] 17683\#17683: epoll timer: 1000 2024/08/06 19:38:12 [debug] 17935\#17935: epoll: fd:7 ev:0001 d:0000000008542888 ' |
stream/semaphore.t | TEST 30: bugfix: semaphore instance can't be garbage collected when someone is waiting on it - pattern "[error]" should not match any line in error.log but matches line "2024/08/06 19:38:14 [error] 17683\#17683: *434 stream [lua] init_worker_by_lua:14: sem: timeout, context: ngx.timer" (req 0) |
2024/08/06 19:38:14 [debug] 17683\#17683: stream lua semaphore wait: 00000000088F9AA8, timeout: 1000, resources: 0, event posted: 0 2024/08/06 19:38:14 [debug] 17683\#17683: *434 event timer add: 0: 1000:12459313 2024/08/06 19:38:14 [debug] 17683\#17683: stream lua semaphore wait yielding 2024/08/06 19:38:14 [debug] 17683\#17683: *434 lua resume returned 1 2024/08/06 19:38:14 [debug] 17683\#17683: *434 lua thread yielded 2024/08/06 19:38:14 [debug] 17683\#17683: *434 lua run thread returned -2 2024/08/06 19:38:14 [debug] 17683\#17683: worker cycle 2024/08/06 19:38:14 [debug] 17683\#17683: epoll timer: 1000 2024/08/06 19:38:14 [debug] 18007\#18007: stream lua semaphore wait: 0000000009F6F188, timeout: 2000, resources: 0, event posted: 0 ' |
stream/semaphore.t | TEST 1: basic semaphore in uthread - pattern "[error]" should not match any line in error.log but matches line "2024/08/06 19:38:15 [error] 17683\#17683: *434 stream [lua] init_worker_by_lua:14: sem: timeout, context: ngx.timer" (req 0) |
2024/08/06 19:38:15 [error] 17683\#17683: *434 stream [lua] init_worker_by_lua:18: sem: 3 times, context: ngx.timer 2024/08/06 19:38:15 [debug] 17683\#17683: stream lua semaphore wait: 00000000088F9AA8, timeout: 1000, resources: 0, event posted: 0 2024/08/06 19:38:15 [debug] 17683\#17683: *434 event timer add: 0: 1000:12460313 2024/08/06 19:38:15 [debug] 17683\#17683: stream lua semaphore wait yielding 2024/08/06 19:38:15 [debug] 17683\#17683: *434 lua resume returned 1 2024/08/06 19:38:15 [debug] 17683\#17683: *434 lua thread yielded 2024/08/06 19:38:15 [debug] 17683\#17683: *434 lua run thread returned -2 2024/08/06 19:38:15 [debug] 17683\#17683: worker cycle ' |
stream/semaphore.t | TEST 1: basic semaphore in uthread - pattern "[error]" should not match any line in error.log but matches line "2024/08/06 19:38:15 [error] 17683\#17683: *434 stream [lua] init_worker_by_lua:18: sem: 3 times, context: ngx.timer" (req 0) |
2024/08/06 19:38:15 [debug] 17683\#17683: stream lua semaphore wait: 00000000088F9AA8, timeout: 1000, resources: 0, event posted: 0 2024/08/06 19:38:15 [debug] 17683\#17683: *434 event timer add: 0: 1000:12460313 2024/08/06 19:38:15 [debug] 17683\#17683: stream lua semaphore wait yielding 2024/08/06 19:38:15 [debug] 17683\#17683: *434 lua resume returned 1 2024/08/06 19:38:15 [debug] 17683\#17683: *434 lua thread yielded 2024/08/06 19:38:15 [debug] 17683\#17683: *434 lua run thread returned -2 2024/08/06 19:38:15 [debug] 17683\#17683: worker cycle ' |
stream/semaphore.t | TEST 7: semaphore in init_worker_by_lua (new and post) - pattern "[error]" should not match any line in error.log but matches line "2024/08/06 19:38:16 [error] 17683\#17683: *434 stream [lua] init_worker_by_lua:14: sem: timeout, context: ngx.timer" (req 0) |
2024/08/06 19:38:16 [debug] 17683\#17683: stream lua semaphore wait: 00000000088F9AA8, timeout: 1000, resources: 0, event posted: 0 2024/08/06 19:38:16 [debug] 17683\#17683: *434 event timer add: 0: 1000:12461313 2024/08/06 19:38:16 [debug] 17683\#17683: stream lua semaphore wait yielding 2024/08/06 19:38:16 [debug] 17683\#17683: *434 lua resume returned 1 2024/08/06 19:38:16 [debug] 17683\#17683: *434 lua thread yielded 2024/08/06 19:38:16 [debug] 17683\#17683: *434 lua run thread returned -2 2024/08/06 19:38:16 [debug] 17683\#17683: worker cycle 2024/08/06 19:38:16 [debug] 17683\#17683: epoll timer: 1000 2024/08/06 19:38:16 [debug] 18073\#18073: epoll: fd:7 ev:0001 d:0000000008798E38 ' |
stream/semaphore.t | TEST 11: semaphore in ngx.timer (all allowed) - grep_error_log_out (req 0) |
@@ -1,2 +1,3 @@ sem: timeout, +sem: timeout, sem: 1, ' |
stream/semaphore.t | TEST 11: semaphore in ngx.timer (all allowed) - grep_error_log_out (req 1) |
@@ -1,2 +1,4 @@ sem: timeout, sem: 1, +sem: timeout, +sem: 3 times, ' |
stream/time.t | TEST 7: "resty.core.time".monotonic_msec - response_body - response is expected (repeated req 0, req 0) |
@@ -1,2 +1,2 @@ true -< 10: true +< 10: false ' |
stream/time.t | TEST 1: ngx.now() - response_body - response is expected (repeated req 0, req 0) |
@@ -1,3 +1,3 @@ true >= 0.099: true -< 0.11: true +< 0.11: false ' |
time.t | TEST 13: "resty.core.time".monotonic_msec - response_body - response is expected (repeated req 0, req 0) |
@@ -1,2 +1,2 @@ true -< 10: true +< 10: false ' |
time.t | TEST 1: ngx.now() - response_body - response is expected (repeated req 0, req 0) |
@@ -1,3 +1,3 @@ true >= 0.099: true -< 0.11: true +< 0.11: false ' |
time.t | TEST 14: "resty.core.time".monotonic_time - response_body - response is expected (repeated req 0, req 0) |
@@ -1,2 +1,2 @@ true -< 0.01: true +< 0.01: false ' |
Go back to the index page.