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

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

Summary

Commit Testing Time Unexpected
Failures
Expected
Failures
Files Tests Elapsed Time
fa3cd7ae 2024-08-16 09:00:16 GMT 4 100 92 12395 1449 sec

LuaJIT

LuaJIT 2.1.1723681758, commit 4182d6bf

OpenSSL

OpenSSL 1.1.1w 11 Sep 2023

Compilation Errors

Segmentation Faults

Unexpected Failures

File Name Details
balancer-keepalive.t TEST 14: enable_keepalive: bad argument \#2 'max_requests' - grep_error_log_out (req 0) got: 'lua balancer: keepalive closing connection 0000000008574DD0
lua balancer: keepalive closing connection 0000000008574EC8
'
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 00000000087F2AF8
lua balancer: keepalive closing connection 00000000087F2CE8
lua balancer: keepalive closing connection 00000000087F2ED8
lua balancer: keepalive closing connection 00000000087F30C8
lua balancer: keepalive closing connection 00000000087F32B8
'
expected: ''
balancer-keepalive.t TEST 10: enable_keepalive: bad usage (no upstream) - grep_error_log_out (req 0) got: 'lua balancer: keepalive closing connection 00000000094CE318
'
expected: ''
balancer-keepalive.t TEST 11: enable_keepalive: bad usage (bad context) - grep_error_log_out (req 0) got: 'lua balancer: keepalive closing connection 00000000084D2428
lua balancer: keepalive closing connection 00000000084D2618
lua balancer: keepalive closing connection 00000000084D2808
lua balancer: keepalive closing connection 00000000084D29F8
lua balancer: keepalive closing connection 00000000084D2BE8
'
expected: ''

Expected Failures

File Name Details
balancer-keepalive.t TEST 23: enable_keepalive: does not save timed out connections - grep_error_log_out (req 0) 'lua balancer: keepalive closing connection 0000000008855F28
lua balancer: keepalive closing connection 0000000008856118
lua balancer: keepalive closing connection 0000000008856308
lua balancer: keepalive no free connection, host: 127.0.0.1:28698, name:
lua balancer: keepalive not saving connection 0000000008C27A78
'
doesn't match '(?^:^lua balancer: keepalive no free connection, host: 127.0.0.1:28698, name:\s
lua balancer: keepalive not saving 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 0000000009360138
lua balancer: keepalive no free connection, host: 127.0.0.1:28698, name:
lua balancer: keepalive not saving connection 00000000098347B8
lua balancer: keepalive no free connection, host: 127.0.0.1:28698, name:
lua balancer: keepalive not saving connection 00000000098347B8
'
doesn't match '(?^:^lua balancer: keepalive no free connection, host: 127.0.0.1:28698, name:\s
lua balancer: keepalive not saving connection \S+
lua balancer: keepalive no free connection, host: 127.0.0.1:28698, name:\s
lua balancer: keepalive not saving connection \S+
$)'
balancer-keepalive.t TEST 19: enable_keepalive: reaching 'pool_size' closes extra connections - grep_error_log_out (req 0) 'lua balancer: keepalive no free connection, host: 127.0.0.1:28698, name:
lua balancer: keepalive no free connection, host: 127.0.0.1:28698, name:
lua balancer: keepalive no free connection, host: 127.0.0.1:28698, name:
lua balancer: keepalive no free connection, host: 127.0.0.1:28698, name:
lua balancer: keepalive no free connection, host: 127.0.0.1:28698, name:
lua balancer: keepalive no free connection, host: 127.0.0.1:28698, name:
lua balancer: keepalive saving connection 0000000008574708, host: 127.0.0.1:28698, name:
lua balancer: keepalive saving connection 0000000008574800, host: 127.0.0.1:28698, name:
lua balancer: keepalive closing connection 0000000008574708
lua balancer: keepalive saving connection 00000000085748F8, host: 127.0.0.1:28698, name:
lua balancer: keepalive closing connection 0000000008574800
lua balancer: keepalive saving connection 0000000008574CD8, host: 127.0.0.1:28698, name:
lua balancer: keepalive closing connection 00000000085748F8
lua balancer: keepalive saving connection 0000000008574DD0, host: 127.0.0.1:28698, name:
lua balancer: keepalive closing connection 0000000008574CD8
lua balancer: keepalive saving connection 0000000008574EC8, host: 127.0.0.1:28698, name:
'
doesn't match '(?^:^lua balancer: keepalive no free connection, host: 127.0.0.1:28698, name:\s
lua balancer: keepalive no free connection, host: 127.0.0.1:28698, name:\s
lua balancer: keepalive no free connection, host: 127.0.0.1:28698, name:\s
lua balancer: keepalive saving connection \S+, host: 127.0.0.1:28698, name:\s
lua balancer: keepalive saving connection \S+, host: 127.0.0.1:28698, name:\s
lua balancer: keepalive closing connection \S+
lua balancer: keepalive saving connection \S+, host: 127.0.0.1:28698, name:\s
lua balancer: keepalive reusing connection \S+, host: 127.0.0.1:28698, name:\s
lua balancer: keepalive reusing connection \S+, host: 127.0.0.1:28698, name:\s
lua balancer: keepalive no free connection, host: 127.0.0.1:28698, name:\s
lua balancer: keepalive saving connection \S+, host: 127.0.0.1:28698, name:\s
lua balancer: keepalive saving connection \S+, host: 127.0.0.1:28698, name:\s
lua balancer: keepalive closing connection \S+
lua balancer: keepalive saving connection \S+, host: 127.0.0.1:28698, 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 00000000089F87D8
lua balancer: keepalive no free connection, host: 127.0.0.1:28698, name:
lua balancer: keepalive no free connection, host: 127.0.0.1:28698, name:
lua balancer: keepalive saving connection 0000000008ECC828, host: 127.0.0.1:28698, name:
lua balancer: keepalive saving connection 0000000008ECC920, host: 127.0.0.1:28698, name:
lua balancer: keepalive closing connection 0000000008ECC828
lua balancer: keepalive closing connection 0000000008ECC920
'
doesn't match '(?^:^lua balancer: keepalive no free connection, host: 127.0.0.1:28698, name:\s
lua balancer: keepalive no free connection, host: 127.0.0.1:28698, name:\s
lua balancer: keepalive saving connection \S+, host: 127.0.0.1:28698, name:\s
lua balancer: keepalive saving connection \S+, host: 127.0.0.1:28698, name:\s
lua balancer: keepalive closing connection \S+
lua balancer: keepalive closing connection \S+
$)'
balancer-keepalive.t TEST 25: enable_keepalive: must be called for each try - grep_error_log_out (req 0) 'lua balancer: keepalive closing connection 0000000008C4BEB8
lua balancer: keepalive closing connection 0000000008C4C0A8
lua balancer: keepalive no free connection, host: 127.0.0.3:28698, name: one
lua balancer: keepalive not saving connection 00000000094CE318
lua balancer: keepalive no free connection, host: 127.0.0.1:28698, name: two
lua balancer: keepalive saving connection 00000000094CE318, host: 127.0.0.1:28698, name: two
'
doesn't match '(?^:^lua balancer: keepalive no free connection, host: 127.0.0.3:28698, name: one
lua balancer: keepalive not saving connection \S+
lua balancer: keepalive no free connection, host: 127.0.0.1:28698, name: two
lua balancer: keepalive saving connection \S+, host: 127.0.0.1:28698, name: two
$)'
balancer-keepalive.t TEST 2: enable_keepalive: sanity (different ip port) - grep_error_log_out (req 0) 'lua balancer: keepalive closing connection 00000000087F2AF8
lua balancer: keepalive closing connection 00000000087F2CE8
lua balancer: keepalive no free connection, host: 127.0.0.1:28698, name: one
lua balancer: keepalive saving connection 00000000084D2428, host: 127.0.0.1:28698, name: one
lua balancer: keepalive no free connection, host: 127.0.0.1:28698, name: two
lua balancer: keepalive saving connection 00000000084D2618, host: 127.0.0.1:28698, name: two
lua balancer: keepalive no free connection, host: 127.0.0.2:28698, name: two
lua balancer: keepalive saving connection 00000000084D2808, host: 127.0.0.2:28698, name: two
lua balancer: keepalive no free connection, host: 127.0.0.2:28698, name: three
lua balancer: keepalive saving connection 00000000084D29F8, host: 127.0.0.2:28698, name: three
lua balancer: keepalive no free connection, host: 127.0.0.2:33288, name: three
lua balancer: keepalive saving connection 00000000084D2BE8, host: 127.0.0.2:33288, name: three
'
doesn't match '(?^:^lua balancer: keepalive no free connection, host: 127.0.0.1:28698, name: one
lua balancer: keepalive saving connection \S+, host: 127.0.0.1:28698, name: one
lua balancer: keepalive no free connection, host: 127.0.0.1:28698, name: two
lua balancer: keepalive saving connection \S+, host: 127.0.0.1:28698, name: two
lua balancer: keepalive no free connection, host: 127.0.0.2:28698, name: two
lua balancer: keepalive saving connection \S+, host: 127.0.0.2:28698, name: two
lua balancer: keepalive no free connection, host: 127.0.0.2:28698, name: three
lua balancer: keepalive saving connection \S+, host: 127.0.0.2:28698, name: three
lua balancer: keepalive no free connection, host: 127.0.0.2:33288, name: three
lua balancer: keepalive saving connection \S+, host: 127.0.0.2:33288, name: three$)'
balancer-keepalive.t TEST 22: enable_keepalive: does not save bad connections - grep_error_log_out (req 0) 'lua balancer: keepalive closing connection 0000000008C4BEB8
lua balancer: keepalive no free connection, host: 127.0.0.3:28698, name:
lua balancer: keepalive not saving connection 0000000008865D18
'
doesn't match '(?^:^lua balancer: keepalive no free connection, host: 127.0.0.3:28698, name:\s
lua balancer: keepalive not saving connection \S+$)'
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
'
errlog.t TEST 25: get system default filter level during Nginx starts (init) - pattern "log a warning event" should match a line in error.log (req 0)
errlog.t TEST 25: get system default filter level during Nginx starts (init) - pattern "do not log another warning event" should not match any line in error.log but matches line "2024/08/16 11:36:32 [warn] 16418\#16418: *183 [lua] content_by_lua(nginx.conf:59):7: do not log another warning event, client: 127.0.0.1, server: localhost, request: \"GET /t HTTP/1.1\", host: \"localhost\"" (req 0) '
errlog.t TEST 25: get system default filter level during Nginx starts (init) - pattern "log a warning event" should match a line in error.log (req 1)
errlog.t TEST 25: get system default filter level during Nginx starts (init) - pattern "do not log another warning event" should not match any line in error.log but matches line "2024/08/16 11:36:32 [warn] 16418\#16418: *184 [lua] content_by_lua(nginx.conf:59):7: do not log another warning event, client: 127.0.0.1, server: localhost, request: \"GET /t HTTP/1.1\", host: \"localhost\"" (req 1) '
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 21: multi-line error log - response_body_like - response is expected (log lines: \#10 log level:6 log body:2024/08/16 11:36:37 [notice] 16488\#16488: start worker processes log level:7 log body:2024/08/16 11:36:37 [info] 16546\#16546: *33 client 127.0.0.1 closed keepalive connection log level:7 log body:2024/08/16 11:36:37 [info] 16546\#16546: *34 client 127.0.0.1 closed keepalive connection log level:7 log body:2024/08/16 11:36:37 [info] 16546\#16546: *35 client 127.0.0.1 closed keepalive connection log level:7 log body:2024/08/16 11:36:37 [info] 16546\#16546: *36 client 127.0.0.1 closed keepalive connection log level:7 log body:2024/08/16 11:36:37 [info] 16546\#16546: *37 client 127.0.0.1 closed keepalive connection log level:7 log body:2024/08/16 11:36:37 [info] 16546\#16546: *38 client 127.0.0.1 closed keepalive connection log level:7 log body:2024/08/16 11:36:37 [info] 16546\#16546: *39 client 127.0.0.1 closed keepalive connection log level:7 log body:2024/08/16 11:36:37 [info] 16546\#16546: *40 client 127.0.0.1 closed keepalive connection log level:7 log body:2024/08/16 11:36:37 [info] 16546\#16546: *41 client 127.0.0.1 closed keepalive connection) 'log lines: #10
log level:6
log body:2024/08/16 11:36:37 [notice] 16488#16488: start worker processes
log level:7
log body:2024/08/16 11:36:37 [info] 16546#16546: *33 client 127.0.0.1 closed keepalive connection
log level:7
log body:2024/08/16 11:36:37 [info] 16546#16546: *34 client 127.0.0.1 closed keepalive connection
log level:7
log body:2024/08/16 11:36:37 [info] 16546#16546: *35 client 127.0.0.1 closed keepalive connection
log level:7
log body:2024/08/16 11:36:37 [info] 16546#16546: *36 client 127.0.0.1 closed keepalive connection
log level:7
log body:2024/08/16 11:36:37 [info] 16546#16546: *37 client 127.0.0.1 closed keepalive connection
log level:7
log body:2024/08/16 11:36:37 [info] 16546#16546: *38 client 127.0.0.1 closed keepalive connection
log level:7
log body:2024/08/16 11:36:37 [info] 16546#16546: *39 client 127.0.0.1 closed keepalive connection
log level:7
log body:2024/08/16 11:36:37 [info] 16546#16546: *40 client 127.0.0.1 closed keepalive connection
log level:7
log body:2024/08/16 11:36:37 [info] 16546#16546: *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/16 11:36:37 [info] 16546\#16546: *42 client 127.0.0.1 closed keepalive connection log level:7 log body:2024/08/16 11:36:37 [info] 16546\#16546: *43 client 127.0.0.1 closed keepalive connection log level:7 log body:2024/08/16 11:36:37 [info] 16546\#16546: *44 client 127.0.0.1 closed keepalive connection log level:7 log body:2024/08/16 11:36:37 [info] 16546\#16546: *45 client 127.0.0.1 closed keepalive connection log level:7 log body:2024/08/16 11:36:37 [info] 16546\#16546: *46 client 127.0.0.1 closed keepalive connection log level:7 log body:2024/08/16 11:36:37 [info] 16546\#16546: *47 client 127.0.0.1 closed keepalive connection log level:7 log body:2024/08/16 11:36:37 [info] 16546\#16546: *48 client 127.0.0.1 closed keepalive connection log level:7 log body:2024/08/16 11:36:37 [info] 16546\#16546: *49 client 127.0.0.1 closed keepalive connection log level:7 log body:2024/08/16 11:36:37 [info] 16546\#16546: *50 client 127.0.0.1 closed keepalive connection log level:7 log body:2024/08/16 11:36:37 [info] 16546\#16546: *51 client 127.0.0.1 closed keepalive connection) 'log lines: #10
log level:7
log body:2024/08/16 11:36:37 [info] 16546#16546: *42 client 127.0.0.1 closed keepalive connection
log level:7
log body:2024/08/16 11:36:37 [info] 16546#16546: *43 client 127.0.0.1 closed keepalive connection
log level:7
log body:2024/08/16 11:36:37 [info] 16546#16546: *44 client 127.0.0.1 closed keepalive connection
log level:7
log body:2024/08/16 11:36:37 [info] 16546#16546: *45 client 127.0.0.1 closed keepalive connection
log level:7
log body:2024/08/16 11:36:37 [info] 16546#16546: *46 client 127.0.0.1 closed keepalive connection
log level:7
log body:2024/08/16 11:36:37 [info] 16546#16546: *47 client 127.0.0.1 closed keepalive connection
log level:7
log body:2024/08/16 11:36:37 [info] 16546#16546: *48 client 127.0.0.1 closed keepalive connection
log level:7
log body:2024/08/16 11:36:37 [info] 16546#16546: *49 client 127.0.0.1 closed keepalive connection
log level:7
log body:2024/08/16 11:36:37 [info] 16546#16546: *50 client 127.0.0.1 closed keepalive connection
log level:7
log body:2024/08/16 11:36:37 [info] 16546#16546: *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 29: ringbuf overflow bug - response_body_like - response is expected (log level: 4 log time: 1723808199.416 log body: 2024/08/16 11:36:39 [error] 16612\#16612: *105 [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: 1723808199.416 log body: 2024/08/16 11:36:39 [error] 16612\#16612: *105 [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: 1723808199.416 log body: 2024/08/16 11:36:39 [error] 16612\#16612: *105 [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: 1723808199.416 log body: 2024/08/16 11:36:39 [error] 16612\#16612: *105 [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: 1723808199.416 log body: 2024/08/16 11:36:39 [error] 16612\#16612: *105 [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: 1723808199.416 log body: 2024/08/16 11:36:39 [error] 16612\#16612: *105 [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: 1723808199.416 log body: 2024/08/16 11:36:39 [error] 16612\#16612: *105 [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: 1723808199.416 log body: 2024/08/16 11:36:39 [error] 16612\#16612: *105 [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: 1723808199.416 log body: 2024/08/16 11:36:39 [error] 16612\#16612: *105 [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: 1723808199.416 log body: 2024/08/16 11:36:39 [error] 16612\#16612: *105 [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: 1723808199.416
log body: 2024/08/16 11:36:39 [error] 16612#16612: *105 [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: 1723808199.416
log body: 2024/08/16 11:36:39 [error] 16612#16612: *105 [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: 1723808199.416
log body: 2024/08/16 11:36:39 [error] 16612#16612: *105 [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: 1723808199.416
log body: 2024/08/16 11:36:39 [error] 16612#16612: *105 [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: 1723808199.416
log body: 2024/08/16 11:36:39 [error] 16612#16612: *105 [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: 1723808199.416
log body: 2024/08/16 11:36:39 [error] 16612#16612: *105 [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: 1723808199.416
log body: 2024/08/16 11:36:39 [error] 16612#16612: *105 [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: 1723808199.416
log body: 2024/08/16 11:36:39 [error] 16612#16612: *105 [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: 1723808199.416
log body: 2024/08/16 11:36:39 [error] 16612#16612: *105 [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: 1723808199.416
log body: 2024/08/16 11:36:39 [error] 16612#16612: *105 [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: 1723808199.792 log body: 2024/08/16 11:36:39 [error] 16612\#16612: *106 [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: 1723808199.792 log body: 2024/08/16 11:36:39 [error] 16612\#16612: *106 [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: 1723808199.792 log body: 2024/08/16 11:36:39 [error] 16612\#16612: *106 [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: 1723808199.792 log body: 2024/08/16 11:36:39 [error] 16612\#16612: *106 [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: 1723808199.792 log body: 2024/08/16 11:36:39 [error] 16612\#16612: *106 [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: 1723808199.792 log body: 2024/08/16 11:36:39 [error] 16612\#16612: *106 [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: 1723808199.792 log body: 2024/08/16 11:36:39 [error] 16612\#16612: *106 [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: 1723808199.792 log body: 2024/08/16 11:36:39 [error] 16612\#16612: *106 [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: 1723808199.792 log body: 2024/08/16 11:36:39 [error] 16612\#16612: *106 [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: 1723808199.792 log body: 2024/08/16 11:36:39 [error] 16612\#16612: *106 [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: 1723808199.792
log body: 2024/08/16 11:36:39 [error] 16612#16612: *106 [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: 1723808199.792
log body: 2024/08/16 11:36:39 [error] 16612#16612: *106 [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: 1723808199.792
log body: 2024/08/16 11:36:39 [error] 16612#16612: *106 [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: 1723808199.792
log body: 2024/08/16 11:36:39 [error] 16612#16612: *106 [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: 1723808199.792
log body: 2024/08/16 11:36:39 [error] 16612#16612: *106 [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: 1723808199.792
log body: 2024/08/16 11:36:39 [error] 16612#16612: *106 [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: 1723808199.792
log body: 2024/08/16 11:36:39 [error] 16612#16612: *106 [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: 1723808199.792
log body: 2024/08/16 11:36:39 [error] 16612#16612: *106 [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: 1723808199.792
log body: 2024/08/16 11:36:39 [error] 16612#16612: *106 [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: 1723808199.792
log body: 2024/08/16 11:36:39 [error] 16612#16612: *106 [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/16 11:36:39 [notice] 16488\#16488: start worker processes log level:7 log body:2024/08/16 11:36:40 [info] 16648\#16648: *111 client 127.0.0.1 closed keepalive connection log level:7 log body:2024/08/16 11:36:40 [info] 16648\#16648: *112 client 127.0.0.1 closed keepalive connection log level:7 log body:2024/08/16 11:36:40 [info] 16648\#16648: *113 client 127.0.0.1 closed keepalive connection log level:7 log body:2024/08/16 11:36:40 [info] 16648\#16648: *114 client 127.0.0.1 closed keepalive connection log level:7 log body:2024/08/16 11:36:40 [info] 16648\#16648: *115 client 127.0.0.1 closed keepalive connection log level:7 log body:2024/08/16 11:36:40 [info] 16648\#16648: *116 client 127.0.0.1 closed keepalive connection log level:7 log body:2024/08/16 11:36:40 [info] 16648\#16648: *117 client 127.0.0.1 closed keepalive connection log level:7 log body:2024/08/16 11:36:40 [info] 16648\#16648: *118 client 127.0.0.1 closed keepalive connection log level:7 log body:2024/08/16 11:36:40 [info] 16648\#16648: *119 client 127.0.0.1 closed keepalive connection end maybe log lines: \#10 log level:7 log body:2024/08/16 11:36:40 [info] 16648\#16648: *120 client 127.0.0.1 closed keepalive connection log level:7 log body:2024/08/16 11:36:40 [info] 16648\#16648: *121 client 127.0.0.1 closed keepalive connection log level:7 log body:2024/08/16 11:36:40 [info] 16648\#16648: *122 client 127.0.0.1 closed keepalive connection log level:7 log body:2024/08/16 11:36:40 [info] 16648\#16648: *123 client 127.0.0.1 closed keepalive connection log level:7 log body:2024/08/16 11:36:40 [info] 16648\#16648: *124 client 127.0.0.1 closed keepalive connection log level:7 log body:2024/08/16 11:36:40 [info] 16648\#16648: *125 client 127.0.0.1 closed keepalive connection log level:7 log body:2024/08/16 11:36:40 [info] 16648\#16648: *126 client 127.0.0.1 closed keepalive connection log level:7 log body:2024/08/16 11:36:40 [info] 16648\#16648: *127 client 127.0.0.1 closed keepalive connection log level:7 log body:2024/08/16 11:36:40 [info] 16648\#16648: *128 client 127.0.0.1 closed keepalive connection log level:7 log body:2024/08/16 11:36:40 [info] 16648\#16648: *129 client 127.0.0.1 closed keepalive connection end) 'maybe log lines: #10
log level:6
log body:2024/08/16 11:36:39 [notice] 16488#16488: start worker processes
log level:7
log body:2024/08/16 11:36:40 [info] 16648#16648: *111 client 127.0.0.1 closed keepalive connection
log level:7
log body:2024/08/16 11:36:40 [info] 16648#16648: *112 client 127.0.0.1 closed keepalive connection
log level:7
log body:2024/08/16 11:36:40 [info] 16648#16648: *113 client 127.0.0.1 closed keepalive connection
log level:7
log body:2024/08/16 11:36:40 [info] 16648#16648: *114 client 127.0.0.1 closed keepalive connection
log level:7
log body:2024/08/16 11:36:40 [info] 16648#16648: *115 client 127.0.0.1 closed keepalive connection
log level:7
log body:2024/08/16 11:36:40 [info] 16648#16648: *116 client 127.0.0.1 closed keepalive connection
log level:7
log body:2024/08/16 11:36:40 [info] 16648#16648: *117 client 127.0.0.1 closed keepalive connection
log level:7
log body:2024/08/16 11:36:40 [info] 16648#16648: *118 client 127.0.0.1 closed keepalive connection
log level:7
log body:2024/08/16 11:36:40 [info] 16648#16648: *119 client 127.0.0.1 closed keepalive connection
end
maybe log lines: #10
log level:7
log body:2024/08/16 11:36:40 [info] 16648#16648: *120 client 127.0.0.1 closed keepalive connection
log level:7
log body:2024/08/16 11:36:40 [info] 16648#16648: *121 client 127.0.0.1 closed keepalive connection
log level:7
log body:2024/08/16 11:36:40 [info] 16648#16648: *122 client 127.0.0.1 closed keepalive connection
log level:7
log body:2024/08/16 11:36:40 [info] 16648#16648: *123 client 127.0.0.1 closed keepalive connection
log level:7
log body:2024/08/16 11:36:40 [info] 16648#16648: *124 client 127.0.0.1 closed keepalive connection
log level:7
log body:2024/08/16 11:36:40 [info] 16648#16648: *125 client 127.0.0.1 closed keepalive connection
log level:7
log body:2024/08/16 11:36:40 [info] 16648#16648: *126 client 127.0.0.1 closed keepalive connection
log level:7
log body:2024/08/16 11:36:40 [info] 16648#16648: *127 client 127.0.0.1 closed keepalive connection
log level:7
log body:2024/08/16 11:36:40 [info] 16648#16648: *128 client 127.0.0.1 closed keepalive connection
log level:7
log body:2024/08/16 11:36:40 [info] 16648#16648: *129 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/16 11:36:40 [info] 16648\#16648: *130 client 127.0.0.1 closed keepalive connection log level:4 log body:2024/08/16 11:36:40 [error] 16648\#16648: *131 [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/16 11:36:40 [error] 16648\#16648: *132 [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/16 11:36:40 [info] 16648#16648: *130 client 127.0.0.1 closed keepalive connection
log level:4
log body:2024/08/16 11:36:40 [error] 16648#16648: *131 [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/16 11:36:40 [error] 16648#16648: *132 [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 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: \#1
'
errlog.t TEST 31: ringbuf sentinel bug2 - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +1,2 @@
log lines: \#18
-log lines: \#8
+log lines: \#9
'
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/16 11:36:42 [error] 16720\#16720: *183 [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/16 11:36:42 [warn] 16720\#16720: *183 [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/16 11:36:42 [error] 16720\#16720: *183 [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/16 11:36:42 [warn] 16720\#16720: *183 [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/16 11:36:42 [error] 16720\#16720: *183 [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/16 11:36:42 [warn] 16720\#16720: *183 [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/16 11:36:42 [error] 16720\#16720: *183 [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/16 11:36:42 [error] 16720\#16720: *183 [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/16 11:36:42 [error] 16720\#16720: *183 [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/16 11:36:42 [error] 16720#16720: *183 [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/16 11:36:42 [warn] 16720#16720: *183 [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/16 11:36:42 [error] 16720#16720: *183 [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/16 11:36:42 [warn] 16720#16720: *183 [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/16 11:36:42 [error] 16720#16720: *183 [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/16 11:36:42 [warn] 16720#16720: *183 [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/16 11:36:42 [error] 16720#16720: *183 [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/16 11:36:42 [error] 16720#16720: *183 [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/16 11:36:42 [error] 16720#16720: *183 [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/16 11:36:42 [error] 16720\#16720: *184 [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/16 11:36:42 [warn] 16720\#16720: *184 [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/16 11:36:42 [error] 16720\#16720: *184 [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/16 11:36:42 [warn] 16720\#16720: *184 [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/16 11:36:42 [error] 16720\#16720: *184 [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/16 11:36:42 [warn] 16720\#16720: *184 [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/16 11:36:42 [error] 16720\#16720: *184 [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/16 11:36:42 [error] 16720\#16720: *184 [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/16 11:36:42 [error] 16720\#16720: *184 [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/16 11:36:42 [error] 16720#16720: *184 [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/16 11:36:42 [warn] 16720#16720: *184 [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/16 11:36:42 [error] 16720#16720: *184 [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/16 11:36:42 [warn] 16720#16720: *184 [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/16 11:36:42 [error] 16720#16720: *184 [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/16 11:36:42 [warn] 16720#16720: *184 [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/16 11:36:42 [error] 16720#16720: *184 [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/16 11:36:42 [error] 16720#16720: *184 [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/16 11:36:42 [error] 16720#16720: *184 [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 18: flood the capturing buffer (5k) - response_body_like - response is expected (log lines: \#25 log level:4 log body:2024/08/16 11:36:44 [error] 16793\#16793: *235 [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/16 11:36:44 [warn] 16793\#16793: *235 [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/16 11:36:44 [error] 16793\#16793: *235 [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/16 11:36:44 [error] 16793\#16793: *235 [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/16 11:36:44 [warn] 16793\#16793: *235 [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/16 11:36:44 [error] 16793\#16793: *235 [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/16 11:36:44 [error] 16793#16793: *235 [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/16 11:36:44 [warn] 16793#16793: *235 [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/16 11:36:44 [error] 16793#16793: *235 [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/16 11:36:44 [error] 16793#16793: *235 [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/16 11:36:44 [warn] 16793#16793: *235 [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/16 11:36:44 [error] 16793#16793: *235 [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/16 11:36:44 [error] 16793\#16793: *236 [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/16 11:36:44 [warn] 16793\#16793: *236 [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/16 11:36:44 [error] 16793\#16793: *236 [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/16 11:36:44 [error] 16793\#16793: *236 [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/16 11:36:44 [warn] 16793\#16793: *236 [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/16 11:36:44 [error] 16793\#16793: *236 [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/16 11:36:44 [error] 16793#16793: *236 [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/16 11:36:44 [warn] 16793#16793: *236 [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/16 11:36:44 [error] 16793#16793: *236 [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/16 11:36:44 [error] 16793#16793: *236 [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/16 11:36:44 [warn] 16793#16793: *236 [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/16 11:36:44 [error] 16793#16793: *236 [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 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 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/16 11:36:49 [error] 16952\#16952: *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/16 11:36:49 [warn] 16952\#16952: *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/16 11:36:49 [error] 16952\#16952: *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/16 11:36:49 [error] 16952\#16952: *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/16 11:36:49 [warn] 16952\#16952: *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/16 11:36:49 [error] 16952\#16952: *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/16 11:36:49 [error] 16952\#16952: *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/16 11:36:49 [error] 16952\#16952: *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/16 11:36:49 [error] 16952\#16952: *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/16 11:36:49 [error] 16952#16952: *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/16 11:36:49 [warn] 16952#16952: *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/16 11:36:49 [error] 16952#16952: *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/16 11:36:49 [error] 16952#16952: *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/16 11:36:49 [warn] 16952#16952: *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/16 11:36:49 [error] 16952#16952: *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/16 11:36:49 [error] 16952#16952: *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/16 11:36:49 [error] 16952#16952: *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/16 11:36:49 [error] 16952#16952: *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/16 11:36:49 [error] 16952\#16952: *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/16 11:36:49 [warn] 16952\#16952: *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/16 11:36:49 [error] 16952\#16952: *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/16 11:36:49 [error] 16952\#16952: *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/16 11:36:49 [warn] 16952\#16952: *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/16 11:36:49 [error] 16952\#16952: *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/16 11:36:49 [error] 16952\#16952: *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/16 11:36:49 [error] 16952\#16952: *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/16 11:36:49 [error] 16952\#16952: *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/16 11:36:49 [error] 16952#16952: *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/16 11:36:49 [warn] 16952#16952: *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/16 11:36:49 [error] 16952#16952: *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/16 11:36:49 [error] 16952#16952: *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/16 11:36:49 [warn] 16952#16952: *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/16 11:36:49 [error] 16952#16952: *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/16 11:36:49 [error] 16952#16952: *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/16 11:36:49 [error] 16952#16952: *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/16 11:36:49 [error] 16952#16952: *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 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 16: check the captured error log body - response_body_like - response is expected (log level:6 log body:2024/08/16 11:36:51 [notice] 16930\#16930: start worker processes log level:7 log body:2024/08/16 11:36:51 [info] 17060\#17060: *86 client 127.0.0.1 closed keepalive connection log level:7 log body:2024/08/16 11:36:51 [info] 17060\#17060: *87 client 127.0.0.1 closed keepalive connection log level:7 log body:2024/08/16 11:36:51 [info] 17060\#17060: *88 client 127.0.0.1 closed keepalive connection log level:7 log body:2024/08/16 11:36:51 [info] 17060\#17060: *89 client 127.0.0.1 closed keepalive connection log level:7 log body:2024/08/16 11:36:51 [info] 17060\#17060: *90 client 127.0.0.1 closed keepalive connection log level:7 log body:2024/08/16 11:36:52 [info] 17060\#17060: *91 client 127.0.0.1 closed keepalive connection log level:7 log body:2024/08/16 11:36:52 [info] 17060\#17060: *92 client 127.0.0.1 closed keepalive connection log level:7 log body:2024/08/16 11:36:52 [info] 17060\#17060: *93 client 127.0.0.1 closed keepalive connection log level:7 log body:2024/08/16 11:36:52 [info] 17060\#17060: *94 client 127.0.0.1 closed keepalive connection) 'log level:6
log body:2024/08/16 11:36:51 [notice] 16930#16930: start worker processes
log level:7
log body:2024/08/16 11:36:51 [info] 17060#17060: *86 client 127.0.0.1 closed keepalive connection
log level:7
log body:2024/08/16 11:36:51 [info] 17060#17060: *87 client 127.0.0.1 closed keepalive connection
log level:7
log body:2024/08/16 11:36:51 [info] 17060#17060: *88 client 127.0.0.1 closed keepalive connection
log level:7
log body:2024/08/16 11:36:51 [info] 17060#17060: *89 client 127.0.0.1 closed keepalive connection
log level:7
log body:2024/08/16 11:36:51 [info] 17060#17060: *90 client 127.0.0.1 closed keepalive connection
log level:7
log body:2024/08/16 11:36:52 [info] 17060#17060: *91 client 127.0.0.1 closed keepalive connection
log level:7
log body:2024/08/16 11:36:52 [info] 17060#17060: *92 client 127.0.0.1 closed keepalive connection
log level:7
log body:2024/08/16 11:36:52 [info] 17060#17060: *93 client 127.0.0.1 closed keepalive connection
log level:7
log body:2024/08/16 11:36:52 [info] 17060#17060: *94 client 127.0.0.1 closed keepalive connection
'
doesn't match '(?^s:log level:5
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*access_by_lua\(nginx.conf:\d+\):\d+: -->2, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*access_by_lua\(nginx.conf:\d+\):\d+: -->3, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
)'
errlog.t TEST 16: check the captured error log body - response_body_like - response is expected (log level:7 log body:2024/08/16 11:36:52 [info] 17060\#17060: *95 client 127.0.0.1 closed keepalive connection log level:7 log body:2024/08/16 11:36:52 [info] 17060\#17060: *96 client 127.0.0.1 closed keepalive connection log level:7 log body:2024/08/16 11:36:52 [info] 17060\#17060: *97 client 127.0.0.1 closed keepalive connection log level:7 log body:2024/08/16 11:36:52 [info] 17060\#17060: *98 client 127.0.0.1 closed keepalive connection log level:7 log body:2024/08/16 11:36:52 [info] 17060\#17060: *99 client 127.0.0.1 closed keepalive connection log level:7 log body:2024/08/16 11:36:52 [info] 17060\#17060: *100 client 127.0.0.1 closed keepalive connection log level:7 log body:2024/08/16 11:36:52 [info] 17060\#17060: *101 client 127.0.0.1 closed keepalive connection log level:7 log body:2024/08/16 11:36:52 [info] 17060\#17060: *102 client 127.0.0.1 closed keepalive connection log level:7 log body:2024/08/16 11:36:52 [info] 17060\#17060: *103 client 127.0.0.1 closed keepalive connection log level:7 log body:2024/08/16 11:36:52 [info] 17060\#17060: *104 client 127.0.0.1 closed keepalive connection) 'log level:7
log body:2024/08/16 11:36:52 [info] 17060#17060: *95 client 127.0.0.1 closed keepalive connection
log level:7
log body:2024/08/16 11:36:52 [info] 17060#17060: *96 client 127.0.0.1 closed keepalive connection
log level:7
log body:2024/08/16 11:36:52 [info] 17060#17060: *97 client 127.0.0.1 closed keepalive connection
log level:7
log body:2024/08/16 11:36:52 [info] 17060#17060: *98 client 127.0.0.1 closed keepalive connection
log level:7
log body:2024/08/16 11:36:52 [info] 17060#17060: *99 client 127.0.0.1 closed keepalive connection
log level:7
log body:2024/08/16 11:36:52 [info] 17060#17060: *100 client 127.0.0.1 closed keepalive connection
log level:7
log body:2024/08/16 11:36:52 [info] 17060#17060: *101 client 127.0.0.1 closed keepalive connection
log level:7
log body:2024/08/16 11:36:52 [info] 17060#17060: *102 client 127.0.0.1 closed keepalive connection
log level:7
log body:2024/08/16 11:36:52 [info] 17060#17060: *103 client 127.0.0.1 closed keepalive connection
log level:7
log body:2024/08/16 11:36:52 [info] 17060#17060: *104 client 127.0.0.1 closed keepalive connection
'
doesn't match '(?^s:log level:5
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*access_by_lua\(nginx.conf:\d+\):\d+: -->2, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*access_by_lua\(nginx.conf:\d+\):\d+: -->3, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
)'
errlog.t TEST 13: filter log by level(ngx.CRIT) - response_body - response is expected (repeated req 0, req 0) got: 'log lines:10
'
expected: 'log lines:0
'
errlog.t TEST 13: filter log by level(ngx.CRIT) - response_body - response is expected (repeated req 1, req 0) got: 'log lines:10
'
expected: 'log lines:0
'
pipe-stdout.t TEST 11: read process, pattern is read any, with limited, limit smaller than read data - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +1,3 @@
hell
-o
+owo
-world
+rld
'
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-privileged-agent-connections.t nginx: [error] [lua] init_by_lua(nginx.conf:27):5: enable_privileged_agent failed: bad 'connections' argument: number expected and greater than 0
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)
Looks like you failed 1 test of 206.
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/16 11:45:36 [error] 31534\#31534: *638 [lua] init_worker_by_lua(nginx.conf:26):14: sem: timeout, context: ngx.timer" (req 1) 2024/08/16 11:45:36 [debug] 31534\#31534: http lua semaphore wait: 0000000009E67538, timeout: 1000, resources: 0, event posted: 0
2024/08/16 11:45:36 [debug] 31534\#31534: *638 event timer add: 0: 1000:9991675
2024/08/16 11:45:36 [debug] 31534\#31534: http lua semaphore wait yielding
2024/08/16 11:45:36 [debug] 31534\#31534: *638 lua resume returned 1
2024/08/16 11:45:36 [debug] 31534\#31534: *638 lua thread yielded
2024/08/16 11:45:36 [debug] 31534\#31534: *638 lua run thread returned -2
2024/08/16 11:45:36 [debug] 31534\#31534: worker cycle
'
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/16 11:45:37 [error] 31534\#31534: *638 [lua] init_worker_by_lua(nginx.conf:26):14: sem: timeout, context: ngx.timer" (req 0) 2024/08/16 11:45:37 [debug] 31534\#31534: http lua semaphore wait: 0000000009E67538, timeout: 1000, resources: 0, event posted: 0
2024/08/16 11:45:37 [debug] 31534\#31534: *638 event timer add: 0: 1000:9992676
2024/08/16 11:45:37 [debug] 31534\#31534: http lua semaphore wait yielding
2024/08/16 11:45:37 [debug] 31534\#31534: *638 lua resume returned 1
2024/08/16 11:45:37 [debug] 31534\#31534: *638 lua thread yielded
2024/08/16 11:45:37 [debug] 31534\#31534: *638 lua run thread returned -2
2024/08/16 11:45:37 [debug] 31534\#31534: worker cycle
2024/08/16 11:45:37 [debug] 31534\#31534: epoll timer: 1000
2024/08/16 11:45:37 [notice] 30654\#30654: start worker processes
'
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/16 11:45:39 [error] 31534\#31534: *638 [lua] init_worker_by_lua(nginx.conf:26):14: sem: timeout, context: ngx.timer" (req 0) 2024/08/16 11:45:39 [error] 31534\#31534: *638 [lua] init_worker_by_lua(nginx.conf:26):18: sem: 6 times, context: ngx.timer
2024/08/16 11:45:39 [debug] 31534\#31534: http lua semaphore wait: 0000000009E67538, timeout: 1000, resources: 0, event posted: 0
2024/08/16 11:45:39 [debug] 31534\#31534: *638 event timer add: 0: 1000:9994677
2024/08/16 11:45:39 [debug] 31534\#31534: http lua semaphore wait yielding
2024/08/16 11:45:39 [debug] 31534\#31534: *638 lua resume returned 1
2024/08/16 11:45:39 [debug] 31534\#31534: *638 lua thread yielded
2024/08/16 11:45:39 [debug] 31534\#31534: *638 lua run thread returned -2
2024/08/16 11:45:39 [debug] 31534\#31534: worker cycle
2024/08/16 11:45:39 [debug] 31534\#31534: epoll timer: 1000
'
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/16 11:45:39 [error] 31534\#31534: *638 [lua] init_worker_by_lua(nginx.conf:26):18: sem: 6 times, context: ngx.timer" (req 0) 2024/08/16 11:45:39 [debug] 31534\#31534: http lua semaphore wait: 0000000009E67538, timeout: 1000, resources: 0, event posted: 0
2024/08/16 11:45:39 [debug] 31534\#31534: *638 event timer add: 0: 1000:9994677
2024/08/16 11:45:39 [debug] 31534\#31534: http lua semaphore wait yielding
2024/08/16 11:45:39 [debug] 31534\#31534: *638 lua resume returned 1
2024/08/16 11:45:39 [debug] 31534\#31534: *638 lua thread yielded
2024/08/16 11:45:39 [debug] 31534\#31534: *638 lua run thread returned -2
2024/08/16 11:45:39 [debug] 31534\#31534: worker cycle
2024/08/16 11:45:39 [debug] 31534\#31534: epoll timer: 1000
2024/08/16 11:45:39 [debug] 31708\#31708: *787 free: 00000000085CB820, unused: 0
'
semaphore.t TEST 1: basic semaphore in uthread - pattern "[error]" should not match any line in error.log but matches line "2024/08/16 11:45:40 [error] 31534\#31534: *638 [lua] init_worker_by_lua(nginx.conf:26):14: sem: timeout, context: ngx.timer" (req 1) 2024/08/16 11:45:40 [debug] 31534\#31534: http lua semaphore wait: 0000000009E67538, timeout: 1000, resources: 0, event posted: 0
2024/08/16 11:45:40 [debug] 31534\#31534: *638 event timer add: 0: 1000:9995677
2024/08/16 11:45:40 [debug] 31534\#31534: http lua semaphore wait yielding
2024/08/16 11:45:40 [debug] 31534\#31534: *638 lua resume returned 1
2024/08/16 11:45:40 [debug] 31534\#31534: *638 lua thread yielded
2024/08/16 11:45:40 [debug] 31534\#31534: *638 lua run thread returned -2
2024/08/16 11:45:40 [debug] 31534\#31534: worker cycle
'
semaphore.t TEST 22: semaphore post in body_filter_by_lua (subrequest) - pattern "[error]" should not match any line in error.log but matches line "2024/08/16 11:45:41 [error] 31534\#31534: *638 [lua] init_worker_by_lua(nginx.conf:26):14: sem: timeout, context: ngx.timer" (req 0) 2024/08/16 11:45:41 [debug] 30654\#30654: malloc: 00000000098140E0:16
2024/08/16 11:45:41 [debug] 30654\#30654: malloc: 000000000846DE10:19
2024/08/16 11:45:41 [debug] 30654\#30654: malloc: 0000000009327070:16
2024/08/16 11:45:41 [debug] 30654\#30654: malloc: 00000000085D8CC0:64
2024/08/16 11:45:41 [debug] 30654\#30654: malloc: 0000000009328540:16
2024/08/16 11:45:41 [debug] 30654\#30654: malloc: 00000000085608A0:56
2024/08/16 11:45:41 [debug] 30654\#30654: malloc: 000000000937D4C0:16
2024/08/16 11:45:41 [debug] 30654\#30654: malloc: 000000000846DED0:19
2024/08/16 11:45:41 [debug] 31534\#31534: http lua semaphore wait: 0000000009E67538, timeout: 1000, resources: 0, event posted: 0
'
semaphore.t TEST 3: semaphore wait time=0 - pattern "[error]" should not match any line in error.log but matches line "2024/08/16 11:45:42 [error] 31534\#31534: *638 [lua] init_worker_by_lua(nginx.conf:26):14: sem: timeout, context: ngx.timer" (req 0) 2024/08/16 11:45:42 [debug] 31534\#31534: http lua semaphore wait: 0000000009E67538, timeout: 1000, resources: 0, event posted: 0
2024/08/16 11:45:42 [debug] 31534\#31534: *638 event timer add: 0: 1000:9997678
2024/08/16 11:45:42 [debug] 31534\#31534: http lua semaphore wait yielding
2024/08/16 11:45:42 [debug] 31534\#31534: *638 lua resume returned 1
2024/08/16 11:45:42 [debug] 31852\#31852: epoll add event: fd:14 op:1 ev:80002001
2024/08/16 11:45:42 [debug] 31534\#31534: *638 lua thread yielded
2024/08/16 11:45:42 [debug] 31534\#31534: *638 lua run thread returned -2
2024/08/16 11:45:42 [debug] 31534\#31534: worker cycle
2024/08/16 11:45:42 [debug] 31534\#31534: epoll timer: 1000
'
semaphore.t TEST 19: semaphore wait post in rewrite_by_lua - pattern "[error]" should not match any line in error.log but matches line "2024/08/16 11:45:44 [error] 31534\#31534: *638 [lua] init_worker_by_lua(nginx.conf:26):14: sem: timeout, context: ngx.timer" (req 0) 2024/08/16 11:45:44 [debug] 31534\#31534: http lua semaphore wait: 0000000009E67538, timeout: 1000, resources: 0, event posted: 0
2024/08/16 11:45:44 [debug] 31534\#31534: *638 event timer add: 0: 1000:9999679
2024/08/16 11:45:44 [debug] 31534\#31534: http lua semaphore wait yielding
2024/08/16 11:45:44 [debug] 31534\#31534: *638 lua resume returned 1
2024/08/16 11:45:44 [debug] 31534\#31534: *638 lua thread yielded
2024/08/16 11:45:44 [debug] 31534\#31534: *638 lua run thread returned -2
2024/08/16 11:45:44 [debug] 31534\#31534: worker cycle
2024/08/16 11:45:44 [debug] 31534\#31534: epoll timer: 1000
2024/08/16 11:45:44 [debug] 31918\#31918: epoll: fd:6 ev:0001 d:0000000008DEE0E0
'
semaphore.t TEST 27: kill a light thread that is waiting on a semaphore (after post) - pattern "[error]" should not match any line in error.log but matches line "2024/08/16 11:45:45 [error] 31534\#31534: *638 [lua] init_worker_by_lua(nginx.conf:26):14: sem: timeout, context: ngx.timer" (req 1) 2024/08/16 11:45:45 [error] 31534\#31534: *638 [lua] init_worker_by_lua(nginx.conf:26):18: sem: 6 times, context: ngx.timer
2024/08/16 11:45:45 [debug] 31534\#31534: http lua semaphore wait: 0000000009E67538, timeout: 1000, resources: 0, event posted: 0
2024/08/16 11:45:45 [debug] 31534\#31534: *638 event timer add: 0: 1000:10000680
2024/08/16 11:45:45 [debug] 31534\#31534: http lua semaphore wait yielding
2024/08/16 11:45:45 [debug] 31534\#31534: *638 lua resume returned 1
2024/08/16 11:45:45 [debug] 31534\#31534: *638 lua thread yielded
2024/08/16 11:45:45 [debug] 31534\#31534: *638 lua run thread returned -2
2024/08/16 11:45:45 [debug] 31534\#31534: worker cycle
'
semaphore.t TEST 27: kill a light thread that is waiting on a semaphore (after post) - pattern "[error]" should not match any line in error.log but matches line "2024/08/16 11:45:45 [error] 31534\#31534: *638 [lua] init_worker_by_lua(nginx.conf:26):18: sem: 6 times, context: ngx.timer" (req 1) 2024/08/16 11:45:45 [debug] 31534\#31534: http lua semaphore wait: 0000000009E67538, timeout: 1000, resources: 0, event posted: 0
2024/08/16 11:45:45 [debug] 31534\#31534: *638 event timer add: 0: 1000:10000680
2024/08/16 11:45:45 [debug] 31534\#31534: http lua semaphore wait yielding
2024/08/16 11:45:45 [debug] 31534\#31534: *638 lua resume returned 1
2024/08/16 11:45:45 [debug] 31534\#31534: *638 lua thread yielded
2024/08/16 11:45:45 [debug] 31534\#31534: *638 lua run thread returned -2
2024/08/16 11:45:45 [debug] 31534\#31534: worker cycle
'
semaphore.t TEST 14: semaphore in header_filter_by_lua (wait not allowed) - grep_error_log_out (req 0) @@ -1,2 +1,3 @@
+sem: timeout,
sem: 1,
sem: API disabled in the context of header_filter_by_lua*,
'
shared.t TEST 4: shared.ttl returns key ttl for non-default (positive) ttl - response_body_like - response is expected (0.2 sleep for 0.1s... -0.016) '0.2
sleep for 0.1s...
-0.016
'
doesn't match '(?^s:\A0.2
sleep for 0.1s...
0.\d*
\z)'
shared.t TEST 3: shared.ttl returns error on not found key - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'failed to get ttl: not found
'
shared.t TEST 3: shared.ttl returns error on not found key - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'failed to get ttl: not found
'
stream/errlog.t TEST 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 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 nginx: [emerg] invalid number of arguments in "lua_capture_error_log" directive in /home/ec2-user/git/lua-resty-core/t/servroot/conf/nginx.conf:17
stream/errlog.t TEST 21: multi-line error log - response_body_like - response is expected (log lines: \#2 log level:6 log body:2024/08/16 11:50:49 [notice] 6644\#6644: start worker processes log level:4 log body:2024/08/16 11:50:49 [error] 6876\#6876: *213 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/16 11:50:49 [notice] 6644#6644: start worker processes
log level:4
log body:2024/08/16 11:50:49 [error] 6876#6876: *213 stream [lua] content_by_lua(nginx.conf:67):8: -->
new line, client: 127.0.0.1, server: 0.0.0.0:1985
'
doesn't match '(?^s:\Alog lines: #1
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*content_by_lua\(nginx.conf:\d+\):\d+: -->
new line, client: 127.0.0.1, server: 0.0.0.0:\d+
\z)'
stream/errlog.t TEST 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/16 11:50:49 [notice] 6644\#6644: start worker processes log level:4 log body:2024/08/16 11:50:50 [error] 6912\#6912: *243 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/16 11:50:49 [notice] 6644#6644: start worker processes
log level:4
log body:2024/08/16 11:50:50 [error] 6912#6912: *243 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 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/16 11:50:51 [warn] 6985\#6985: *303 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/16 11:50:51 [error] 6985\#6985: *303 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/16 11:50:51 [warn] 6985\#6985: *303 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/16 11:50:51 [warn] 6985\#6985: *303 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/16 11:50:51 [error] 6985\#6985: *303 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/16 11:50:51 [warn] 6985\#6985: *303 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/16 11:50:51 [error] 6985\#6985: *303 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/16 11:50:51 [error] 6985\#6985: *303 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/16 11:50:51 [error] 6985\#6985: *303 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/16 11:50:51 [warn] 6985#6985: *303 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/16 11:50:51 [error] 6985#6985: *303 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/16 11:50:51 [warn] 6985#6985: *303 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/16 11:50:51 [warn] 6985#6985: *303 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/16 11:50:51 [error] 6985#6985: *303 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/16 11:50:51 [warn] 6985#6985: *303 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/16 11:50:51 [error] 6985#6985: *303 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/16 11:50:51 [error] 6985#6985: *303 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/16 11:50:51 [error] 6985#6985: *303 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/16 11:50:52 [warn] 6985\#6985: *306 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/16 11:50:52 [error] 6985\#6985: *306 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/16 11:50:52 [warn] 6985\#6985: *306 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/16 11:50:52 [warn] 6985\#6985: *306 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/16 11:50:52 [error] 6985\#6985: *306 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/16 11:50:52 [warn] 6985\#6985: *306 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/16 11:50:52 [error] 6985\#6985: *306 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/16 11:50:52 [error] 6985\#6985: *306 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/16 11:50:52 [error] 6985\#6985: *306 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/16 11:50:52 [warn] 6985#6985: *306 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/16 11:50:52 [error] 6985#6985: *306 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/16 11:50:52 [warn] 6985#6985: *306 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/16 11:50:52 [warn] 6985#6985: *306 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/16 11:50:52 [error] 6985#6985: *306 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/16 11:50:52 [warn] 6985#6985: *306 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/16 11:50:52 [error] 6985#6985: *306 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/16 11:50:52 [error] 6985#6985: *306 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/16 11:50:52 [error] 6985#6985: *306 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 3: client connected info - grep_error_log_out (req 0) 'client 127.0.0.1:47142 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:47146 connected to
capture log line:10
'
doesn't match '(?^:^client .*? connected to .*?
capture log line:2
$)'
stream/errlog.t TEST 20: fetch a few and generate a few, then fetch again (not overflown again) - response_body_like - response is expected (msg count: 3 log level:5 log body:2024/08/16 11:50:55 [warn] 7123\#7123: *423 stream [lua] content_by_lua(nginx.conf:91):10: --> 85, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2024/08/16 11:50:55 [error] 7123\#7123: *423 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/16 11:50:55 [warn] 7123\#7123: *423 stream [lua] content_by_lua(nginx.conf:91):10: --> 86, client: 127.0.0.1, server: 0.0.0.0:1985 msg count: 3 log level:4 log body:2024/08/16 11:50:55 [error] 7123\#7123: *423 stream [lua] content_by_lua(nginx.conf:91):11: --> 86, client: 127.0.0.1, server: 0.0.0.0:1985 log level:5 log body:2024/08/16 11:50:55 [warn] 7123\#7123: *423 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/16 11:50:55 [error] 7123\#7123: *423 stream [lua] content_by_lua(nginx.conf:91):11: --> 87, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2024/08/16 11:50:55 [error] 7123\#7123: *423 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/16 11:50:55 [error] 7123\#7123: *423 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/16 11:50:55 [error] 7123\#7123: *423 stream [lua] content_by_lua(nginx.conf:91):24: howdy, something even newer!, client: 127.0.0.1, server: 0.0.0.0:1985) 'msg count: 3
log level:5
log body:2024/08/16 11:50:55 [warn] 7123#7123: *423 stream [lua] content_by_lua(nginx.conf:91):10: --> 85, client: 127.0.0.1, server: 0.0.0.0:1985
log level:4
log body:2024/08/16 11:50:55 [error] 7123#7123: *423 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/16 11:50:55 [warn] 7123#7123: *423 stream [lua] content_by_lua(nginx.conf:91):10: --> 86, client: 127.0.0.1, server: 0.0.0.0:1985
msg count: 3
log level:4
log body:2024/08/16 11:50:55 [error] 7123#7123: *423 stream [lua] content_by_lua(nginx.conf:91):11: --> 86, client: 127.0.0.1, server: 0.0.0.0:1985
log level:5
log body:2024/08/16 11:50:55 [warn] 7123#7123: *423 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/16 11:50:55 [error] 7123#7123: *423 stream [lua] content_by_lua(nginx.conf:91):11: --> 87, client: 127.0.0.1, server: 0.0.0.0:1985
log level:4
log body:2024/08/16 11:50:55 [error] 7123#7123: *423 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/16 11:50:55 [error] 7123#7123: *423 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/16 11:50:55 [error] 7123#7123: *423 stream [lua] content_by_lua(nginx.conf:91):24: howdy, something even newer!, client: 127.0.0.1, server: 0.0.0.0:1985
'
doesn't match '(?^s:\Amsg count: 3
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 84, client: 127.0.0.1, server: 0.0.0.0:\d+
log level:5
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 85, client: 127.0.0.1, server: 0.0.0.0:\d+
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 85, client: 127.0.0.1, server: 0.0.0.0:\d+
msg count: 3
log level:5
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 86, client: 127.0.0.1, server: 0.0.0.0:\d+
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 86, client: 127.0.0.1, server: 0.0.0.0:\d+
log level:5
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 87, client: 127.0.0.1, server: 0.0.0.0:\d+
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 100, client: 127.0.0.1, server: 0.0.0.0:\d+
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: howdy, something new!, client: 127.0.0.1, server: 0.0.0.0:\d+
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: howdy, something even newer!, client: 127.0.0.1, server: 0.0.0.0:\d+
\z)'
stream/errlog.t TEST 20: fetch a few and generate a few, then fetch again (not overflown again) - response_body_like - response is expected (msg count: 3 log level:5 log body:2024/08/16 11:50:55 [warn] 7123\#7123: *426 stream [lua] content_by_lua(nginx.conf:91):10: --> 85, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2024/08/16 11:50:55 [error] 7123\#7123: *426 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/16 11:50:55 [warn] 7123\#7123: *426 stream [lua] content_by_lua(nginx.conf:91):10: --> 86, client: 127.0.0.1, server: 0.0.0.0:1985 msg count: 3 log level:4 log body:2024/08/16 11:50:55 [error] 7123\#7123: *426 stream [lua] content_by_lua(nginx.conf:91):11: --> 86, client: 127.0.0.1, server: 0.0.0.0:1985 log level:5 log body:2024/08/16 11:50:55 [warn] 7123\#7123: *426 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/16 11:50:55 [error] 7123\#7123: *426 stream [lua] content_by_lua(nginx.conf:91):11: --> 87, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2024/08/16 11:50:55 [error] 7123\#7123: *426 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/16 11:50:55 [error] 7123\#7123: *426 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/16 11:50:55 [error] 7123\#7123: *426 stream [lua] content_by_lua(nginx.conf:91):24: howdy, something even newer!, client: 127.0.0.1, server: 0.0.0.0:1985) 'msg count: 3
log level:5
log body:2024/08/16 11:50:55 [warn] 7123#7123: *426 stream [lua] content_by_lua(nginx.conf:91):10: --> 85, client: 127.0.0.1, server: 0.0.0.0:1985
log level:4
log body:2024/08/16 11:50:55 [error] 7123#7123: *426 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/16 11:50:55 [warn] 7123#7123: *426 stream [lua] content_by_lua(nginx.conf:91):10: --> 86, client: 127.0.0.1, server: 0.0.0.0:1985
msg count: 3
log level:4
log body:2024/08/16 11:50:55 [error] 7123#7123: *426 stream [lua] content_by_lua(nginx.conf:91):11: --> 86, client: 127.0.0.1, server: 0.0.0.0:1985
log level:5
log body:2024/08/16 11:50:55 [warn] 7123#7123: *426 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/16 11:50:55 [error] 7123#7123: *426 stream [lua] content_by_lua(nginx.conf:91):11: --> 87, client: 127.0.0.1, server: 0.0.0.0:1985
log level:4
log body:2024/08/16 11:50:55 [error] 7123#7123: *426 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/16 11:50:55 [error] 7123#7123: *426 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/16 11:50:55 [error] 7123#7123: *426 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 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 17: flood the capturing buffer (4k) - response_body_like - response is expected (log lines: \#25 log level:4 log body:2024/08/16 11:50:59 [error] 7299\#7299: *573 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/16 11:50:59 [warn] 7299\#7299: *573 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/16 11:50:59 [error] 7299\#7299: *573 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/16 11:50:59 [error] 7299\#7299: *573 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/16 11:50:59 [warn] 7299\#7299: *573 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/16 11:50:59 [error] 7299\#7299: *573 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/16 11:50:59 [error] 7299#7299: *573 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/16 11:50:59 [warn] 7299#7299: *573 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/16 11:50:59 [error] 7299#7299: *573 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/16 11:50:59 [error] 7299#7299: *573 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/16 11:50:59 [warn] 7299#7299: *573 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/16 11:50:59 [error] 7299#7299: *573 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/16 11:51:00 [error] 7299\#7299: *576 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/16 11:51:00 [warn] 7299\#7299: *576 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/16 11:51:00 [error] 7299\#7299: *576 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/16 11:51:00 [error] 7299\#7299: *576 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/16 11:51:00 [warn] 7299\#7299: *576 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/16 11:51:00 [error] 7299\#7299: *576 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/16 11:51:00 [error] 7299#7299: *576 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/16 11:51:00 [warn] 7299#7299: *576 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/16 11:51:00 [error] 7299#7299: *576 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/16 11:51:00 [error] 7299#7299: *576 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/16 11:51:00 [warn] 7299#7299: *576 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/16 11:51:00 [error] 7299#7299: *576 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 18: flood the capturing buffer (5k) - response_body_like - response is expected (log lines: \#32 log level:5 log body:2024/08/16 11:51:01 [warn] 7371\#7371: *633 stream [lua] content_by_lua(nginx.conf:78):10: --> 85, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2024/08/16 11:51:01 [error] 7371\#7371: *633 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/16 11:51:01 [warn] 7371\#7371: *633 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/16 11:51:01 [error] 7371\#7371: *633 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/16 11:51:01 [warn] 7371\#7371: *633 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/16 11:51:01 [error] 7371\#7371: *633 stream [lua] content_by_lua(nginx.conf:78):11: --> 100, client: 127.0.0.1, server: 0.0.0.0:1985) 'log lines: #32
log level:5
log body:2024/08/16 11:51:01 [warn] 7371#7371: *633 stream [lua] content_by_lua(nginx.conf:78):10: --> 85, client: 127.0.0.1, server: 0.0.0.0:1985
log level:4
log body:2024/08/16 11:51:01 [error] 7371#7371: *633 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/16 11:51:01 [warn] 7371#7371: *633 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/16 11:51:01 [error] 7371#7371: *633 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/16 11:51:01 [warn] 7371#7371: *633 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/16 11:51:01 [error] 7371#7371: *633 stream [lua] content_by_lua(nginx.conf:78):11: --> 100, client: 127.0.0.1, server: 0.0.0.0:1985
'
doesn't match '(?^s:\A(?:log lines: #33
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*content_by_lua\(nginx.conf:\d+\):\d+: --> 84, client: 127.0.0.1, server: 0.0.0.0:\d+
log level:5
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*content_by_lua\(nginx.conf:\d+\):\d+: --> 85, client: 127.0.0.1, server: 0.0.0.0:\d+
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*content_by_lua\(nginx.conf:\d+\):\d+: --> 85, client: 127.0.0.1, server: 0.0.0.0:\d+
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*content_by_lua\(nginx.conf:\d+\):\d+: --> 99, client: 127.0.0.1, server: 0.0.0.0:\d+
log level:5
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*content_by_lua\(nginx.conf:\d+\):\d+: --> 100, client: 127.0.0.1, server: 0.0.0.0:\d+
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*content_by_lua\(nginx.conf:\d+\):\d+: --> 100, client: 127.0.0.1, server: 0.0.0.0:\d+
)\z)'
stream/errlog.t TEST 18: flood the capturing buffer (5k) - response_body_like - response is expected (log lines: \#32 log level:5 log body:2024/08/16 11:51:02 [warn] 7371\#7371: *636 stream [lua] content_by_lua(nginx.conf:78):10: --> 85, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2024/08/16 11:51:02 [error] 7371\#7371: *636 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/16 11:51:02 [warn] 7371\#7371: *636 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/16 11:51:02 [error] 7371\#7371: *636 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/16 11:51:02 [warn] 7371\#7371: *636 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/16 11:51:02 [error] 7371\#7371: *636 stream [lua] content_by_lua(nginx.conf:78):11: --> 100, client: 127.0.0.1, server: 0.0.0.0:1985) 'log lines: #32
log level:5
log body:2024/08/16 11:51:02 [warn] 7371#7371: *636 stream [lua] content_by_lua(nginx.conf:78):10: --> 85, client: 127.0.0.1, server: 0.0.0.0:1985
log level:4
log body:2024/08/16 11:51:02 [error] 7371#7371: *636 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/16 11:51:02 [warn] 7371#7371: *636 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/16 11:51:02 [error] 7371#7371: *636 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/16 11:51:02 [warn] 7371#7371: *636 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/16 11:51:02 [error] 7371#7371: *636 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 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/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 1 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 1 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 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/16 11:53:58 [error] 11951\#11951: *196 stream [lua] init_worker_by_lua:14: sem: timeout, context: ngx.timer" (req 0) 2024/08/16 11:53:58 [debug] 11951\#11951: stream lua semaphore wait: 0000000008EEB1F8, timeout: 1000, resources: 0, event posted: 0
2024/08/16 11:53:58 [debug] 11951\#11951: *196 event timer add: 0: 1000:10493585
2024/08/16 11:53:58 [debug] 11951\#11951: stream lua semaphore wait yielding
2024/08/16 11:53:58 [debug] 11951\#11951: *196 lua resume returned 1
2024/08/16 11:53:58 [debug] 11951\#11951: *196 lua thread yielded
2024/08/16 11:53:58 [debug] 11951\#11951: *196 lua run thread returned -2
2024/08/16 11:53:58 [debug] 11951\#11951: worker cycle
'
stream/semaphore.t TEST 27: semaphore_mm free block (load <= 50% & the on the older side) - grep_error_log_out (req 0) got: 'free semaphore block
'
expected: ''
stream/semaphore.t TEST 2: semaphore wait order - pattern "[error]" should not match any line in error.log but matches line "2024/08/16 11:54:03 [error] 11951\#11951: *196 stream [lua] init_worker_by_lua:14: sem: timeout, context: ngx.timer" (req 0) 2024/08/16 11:54:03 [error] 11951\#11951: *196 stream [lua] init_worker_by_lua:18: sem: 3 times, context: ngx.timer
2024/08/16 11:54:03 [debug] 11951\#11951: stream lua semaphore wait: 0000000008EEB1F8, timeout: 1000, resources: 0, event posted: 0
2024/08/16 11:54:03 [debug] 11951\#11951: *196 event timer add: 0: 1000:10498589
2024/08/16 11:54:03 [debug] 11951\#11951: stream lua semaphore wait yielding
2024/08/16 11:54:03 [debug] 11951\#11951: *196 lua resume returned 1
2024/08/16 11:54:03 [debug] 11951\#11951: *196 lua thread yielded
2024/08/16 11:54:03 [debug] 11951\#11951: *196 lua run thread returned -2
2024/08/16 11:54:03 [debug] 11951\#11951: worker cycle
2024/08/16 11:54:03 [debug] 11951\#11951: epoll timer: 1000
'
stream/semaphore.t TEST 2: semaphore wait order - pattern "[error]" should not match any line in error.log but matches line "2024/08/16 11:54:03 [error] 11951\#11951: *196 stream [lua] init_worker_by_lua:18: sem: 3 times, context: ngx.timer" (req 0) 2024/08/16 11:54:03 [debug] 11951\#11951: stream lua semaphore wait: 0000000008EEB1F8, timeout: 1000, resources: 0, event posted: 0
2024/08/16 11:54:03 [debug] 11951\#11951: *196 event timer add: 0: 1000:10498589
2024/08/16 11:54:03 [debug] 11951\#11951: stream lua semaphore wait yielding
2024/08/16 11:54:03 [debug] 11951\#11951: *196 lua resume returned 1
2024/08/16 11:54:03 [debug] 11951\#11951: *196 lua thread yielded
2024/08/16 11:54:03 [debug] 11951\#11951: *196 lua run thread returned -2
2024/08/16 11:54:03 [debug] 11951\#11951: worker cycle
2024/08/16 11:54:03 [debug] 11951\#11951: epoll timer: 1000
2024/08/16 11:54:03 [debug] 12145\#12145: epoll: fd:7 ev:0001 d:00000000091DC128
'
stream/semaphore.t TEST 1: basic semaphore in uthread - pattern "[error]" should not match any line in error.log but matches line "2024/08/16 11:54:04 [error] 11951\#11951: *196 stream [lua] init_worker_by_lua:14: sem: timeout, context: ngx.timer" (req 0) 2024/08/16 11:54:04 [debug] 11951\#11951: stream lua semaphore wait: 0000000008EEB1F8, timeout: 1000, resources: 0, event posted: 0
2024/08/16 11:54:04 [debug] 11951\#11951: *196 event timer add: 0: 1000:10499589
2024/08/16 11:54:04 [debug] 11951\#11951: stream lua semaphore wait yielding
2024/08/16 11:54:04 [debug] 11951\#11951: *196 lua resume returned 1
2024/08/16 11:54:04 [debug] 11951\#11951: *196 lua thread yielded
2024/08/16 11:54:04 [debug] 11951\#11951: *196 lua run thread returned -2
2024/08/16 11:54:04 [debug] 11951\#11951: worker cycle
2024/08/16 11:54:04 [debug] 11951\#11951: epoll timer: 1000
2024/08/16 11:54:04 [debug] 12181\#12181: *399 malloc: 0000000008D16A30:10
'
stream/semaphore.t TEST 21: multi wait and mult post with one semaphore - pattern "[error]" should not match any line in error.log but matches line "2024/08/16 11:54:05 [error] 11951\#11951: *196 stream [lua] init_worker_by_lua:14: sem: timeout, context: ngx.timer" (req 0) 2024/08/16 11:54:05 [debug] 11951\#11951: stream lua semaphore wait: 0000000008EEB1F8, timeout: 1000, resources: 0, event posted: 0
2024/08/16 11:54:05 [debug] 11951\#11951: *196 event timer add: 0: 1000:10500589
2024/08/16 11:54:05 [debug] 11951\#11951: stream lua semaphore wait yielding
2024/08/16 11:54:05 [debug] 11951\#11951: *196 lua resume returned 1
2024/08/16 11:54:05 [debug] 11951\#11951: *196 lua thread yielded
2024/08/16 11:54:05 [debug] 12217\#12217: *429 http close request
2024/08/16 11:54:05 [debug] 11951\#11951: *196 lua run thread returned -2
2024/08/16 11:54:05 [debug] 11951\#11951: worker cycle
2024/08/16 11:54:05 [debug] 11951\#11951: epoll timer: 1000
'
stream/semaphore.t TEST 15: two thread wait for each other - pattern "[error]" should not match any line in error.log but matches line "2024/08/16 11:54:06 [error] 11951\#11951: *196 stream [lua] init_worker_by_lua:14: sem: timeout, context: ngx.timer" (req 1) 2024/08/16 11:54:06 [error] 11951\#11951: *196 stream [lua] init_worker_by_lua:18: sem: 3 times, context: ngx.timer
2024/08/16 11:54:06 [debug] 11951\#11951: stream lua semaphore wait: 0000000008EEB1F8, timeout: 1000, resources: 0, event posted: 0
2024/08/16 11:54:06 [debug] 11951\#11951: *196 event timer add: 0: 1000:10501590
2024/08/16 11:54:06 [debug] 11951\#11951: stream lua semaphore wait yielding
2024/08/16 11:54:06 [debug] 11951\#11951: *196 lua resume returned 1
2024/08/16 11:54:06 [debug] 11951\#11951: *196 lua thread yielded
2024/08/16 11:54:06 [debug] 11951\#11951: *196 lua run thread returned -2
2024/08/16 11:54:06 [debug] 11951\#11951: worker cycle
'
stream/semaphore.t TEST 15: two thread wait for each other - pattern "[error]" should not match any line in error.log but matches line "2024/08/16 11:54:06 [error] 11951\#11951: *196 stream [lua] init_worker_by_lua:18: sem: 3 times, context: ngx.timer" (req 1) 2024/08/16 11:54:06 [debug] 11951\#11951: stream lua semaphore wait: 0000000008EEB1F8, timeout: 1000, resources: 0, event posted: 0
2024/08/16 11:54:06 [debug] 11951\#11951: *196 event timer add: 0: 1000:10501590
2024/08/16 11:54:06 [debug] 11951\#11951: stream lua semaphore wait yielding
2024/08/16 11:54:06 [debug] 11951\#11951: *196 lua resume returned 1
2024/08/16 11:54:06 [debug] 11951\#11951: *196 lua thread yielded
2024/08/16 11:54:06 [debug] 11951\#11951: *196 lua run thread returned -2
2024/08/16 11:54:06 [debug] 11951\#11951: worker cycle
'
stream/semaphore.t TEST 3: semaphore wait time=0 - pattern "[error]" should not match any line in error.log but matches line "2024/08/16 11:54:07 [error] 11951\#11951: *196 stream [lua] init_worker_by_lua:14: sem: timeout, context: ngx.timer" (req 0) 2024/08/16 11:54:07 [debug] 11951\#11951: stream lua semaphore wait: 0000000008EEB1F8, timeout: 1000, resources: 0, event posted: 0
2024/08/16 11:54:07 [debug] 11951\#11951: *196 event timer add: 0: 1000:10502591
2024/08/16 11:54:07 [debug] 11951\#11951: stream lua semaphore wait yielding
2024/08/16 11:54:07 [debug] 11951\#11951: *196 lua resume returned 1
2024/08/16 11:54:07 [debug] 11951\#11951: *196 lua thread yielded
2024/08/16 11:54:07 [debug] 11951\#11951: *196 lua run thread returned -2
2024/08/16 11:54:07 [debug] 11951\#11951: worker cycle
2024/08/16 11:54:07 [debug] 11951\#11951: epoll timer: 1000
2024/08/16 11:54:07 [debug] 11712\#11712: malloc: 0000000009827E50:2048
'
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: timeout,
sem: 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/16 11:54:14 [error] 11951\#11951: *196 stream [lua] init_worker_by_lua:14: sem: timeout, context: ngx.timer" (req 0) 2024/08/16 11:54:14 [debug] 11951\#11951: stream lua semaphore wait: 0000000008EEB1F8, timeout: 1000, resources: 0, event posted: 0
2024/08/16 11:54:14 [debug] 11951\#11951: *196 event timer add: 0: 1000:10509594
2024/08/16 11:54:14 [debug] 11951\#11951: stream lua semaphore wait yielding
2024/08/16 11:54:14 [debug] 11951\#11951: *196 lua resume returned 1
2024/08/16 11:54:14 [debug] 11951\#11951: *196 lua thread yielded
2024/08/16 11:54:14 [debug] 11951\#11951: *196 lua run thread returned -2
2024/08/16 11:54:14 [debug] 11951\#11951: worker cycle
2024/08/16 11:54:14 [debug] 11951\#11951: epoll timer: 1000
2024/08/16 11:54:14 [debug] 11712\#11712: child: 0 12571 e:0 t:0 d:0 r:1 j:1
'
stream/semaphore.t TEST 8: semaphore in preread_by_lua (all allowed) - grep_error_log_out (req 0) @@ -1,2 +1,4 @@
+sem: timeout,
+sem: 3 times,
sem: timeout while prereading client data,
sem: 1 while prereading client data,
'
stream/semaphore.t TEST 22: semaphore wait time is zero - pattern "[error]" should not match any line in error.log but matches line "2024/08/16 11:54:16 [error] 11951\#11951: *196 stream [lua] init_worker_by_lua:14: sem: timeout, context: ngx.timer" (req 0) 2024/08/16 11:54:16 [debug] 11951\#11951: stream lua semaphore wait: 0000000008EEB1F8, timeout: 1000, resources: 0, event posted: 0
2024/08/16 11:54:16 [debug] 11951\#11951: *196 event timer add: 0: 1000:10511595
2024/08/16 11:54:16 [debug] 11951\#11951: stream lua semaphore wait yielding
2024/08/16 11:54:16 [debug] 11951\#11951: *196 lua resume returned 1
2024/08/16 11:54:16 [debug] 11951\#11951: *196 lua thread yielded
2024/08/16 11:54:16 [debug] 11951\#11951: *196 lua run thread returned -2
2024/08/16 11:54:16 [debug] 11951\#11951: worker cycle
2024/08/16 11:54:16 [debug] 11951\#11951: epoll timer: 1000
2024/08/16 11:54:16 [notice] 11712\#11712: start worker processes
'
stream/semaphore.t TEST 17: kill a light thread that is waiting on a semaphore (after post) - pattern "[error]" should not match any line in error.log but matches line "2024/08/16 11:54:17 [error] 11951\#11951: *196 stream [lua] init_worker_by_lua:14: sem: timeout, context: ngx.timer" (req 0) 2024/08/16 11:54:17 [debug] 11951\#11951: stream lua semaphore wait: 0000000008EEB1F8, timeout: 1000, resources: 0, event posted: 0
2024/08/16 11:54:17 [debug] 11951\#11951: *196 event timer add: 0: 1000:10512595
2024/08/16 11:54:17 [debug] 11951\#11951: stream lua semaphore wait yielding
2024/08/16 11:54:17 [debug] 11951\#11951: *196 lua resume returned 1
2024/08/16 11:54:17 [debug] 11951\#11951: *196 lua thread yielded
2024/08/16 11:54:17 [debug] 11951\#11951: *196 lua run thread returned -2
2024/08/16 11:54:17 [debug] 11951\#11951: worker cycle
2024/08/16 11:54:17 [debug] 11951\#11951: epoll timer: 1000
2024/08/16 11:54:17 [debug] 12679\#12679: epoll: fd:7 ev:0001 d:0000000008FCAFE8
'
stream/semaphore.t TEST 29: basic semaphore count (negative number) - pattern "[error]" should not match any line in error.log but matches line "2024/08/16 11:54:18 [error] 11951\#11951: *196 stream [lua] init_worker_by_lua:14: sem: timeout, context: ngx.timer" (req 0) 2024/08/16 11:54:18 [debug] 12715\#12715: *832 malloc: 00000000096C2780:16
2024/08/16 11:54:18 [debug] 12715\#12715: *832 http header: "Accept: */*"
2024/08/16 11:54:18 [debug] 12715\#12715: *832 http header done
2024/08/16 11:54:18 [error] 11951\#11951: *196 stream [lua] init_worker_by_lua:18: sem: 3 times, context: ngx.timer
2024/08/16 11:54:18 [debug] 12715\#12715: *832 event timer del: 3: 10572589
2024/08/16 11:54:18 [debug] 12715\#12715: *832 generic phase: 0
2024/08/16 11:54:18 [debug] 12715\#12715: *832 rewrite phase: 1
2024/08/16 11:54:18 [debug] 12715\#12715: *832 rewrite phase: 2
2024/08/16 11:54:18 [debug] 12715\#12715: *832 test location: "/ver"
'
stream/semaphore.t TEST 29: basic semaphore count (negative number) - pattern "[error]" should not match any line in error.log but matches line "2024/08/16 11:54:18 [error] 11951\#11951: *196 stream [lua] init_worker_by_lua:18: sem: 3 times, context: ngx.timer" (req 0) 2024/08/16 11:54:18 [debug] 12715\#12715: *832 event timer del: 3: 10572589
2024/08/16 11:54:18 [debug] 12715\#12715: *832 generic phase: 0
2024/08/16 11:54:18 [debug] 12715\#12715: *832 rewrite phase: 1
2024/08/16 11:54:18 [debug] 12715\#12715: *832 rewrite phase: 2
2024/08/16 11:54:18 [debug] 12715\#12715: *832 test location: "/ver"
2024/08/16 11:54:18 [debug] 12715\#12715: *832 using configuration "=/ver"
2024/08/16 11:54:18 [debug] 11951\#11951: stream lua semaphore wait: 0000000008EEB1F8, timeout: 1000, resources: 0, event posted: 0
2024/08/16 11:54:18 [debug] 12715\#12715: *832 http cl:-1 max:1048576
2024/08/16 11:54:18 [debug] 12715\#12715: *832 rewrite phase: 4
'
stream/semaphore.t TEST 28: basic semaphore count - pattern "[error]" should not match any line in error.log but matches line "2024/08/16 11:54:19 [error] 11951\#11951: *196 stream [lua] init_worker_by_lua:14: sem: timeout, context: ngx.timer" (req 0) 2024/08/16 11:54:19 [debug] 11951\#11951: stream lua semaphore wait: 0000000008EEB1F8, timeout: 1000, resources: 0, event posted: 0
2024/08/16 11:54:19 [debug] 11951\#11951: *196 event timer add: 0: 1000:10514597
2024/08/16 11:54:19 [debug] 11951\#11951: stream lua semaphore wait yielding
2024/08/16 11:54:19 [debug] 11951\#11951: *196 lua resume returned 1
2024/08/16 11:54:19 [debug] 11951\#11951: *196 lua thread yielded
2024/08/16 11:54:19 [debug] 11951\#11951: *196 lua run thread returned -2
2024/08/16 11:54:19 [debug] 11951\#11951: worker cycle
2024/08/16 11:54:19 [debug] 11951\#11951: epoll timer: 1000
2024/08/16 11:54:19 [debug] 12751\#12751: epoll: fd:7 ev:0001 d:00000000085DDAC8
'
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 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
'

Warnings

Go back to the index page.