(This page was automatically generated by the tools in the opsboy project on 00:22:39 30-Oct-2025 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
8bfffde5 2025-10-28 04:52:14 GMT 0 82 93 12536 1657 sec

LuaJIT

LuaJIT 2.1.1761112883, commit b65ec19d

OpenSSL

OpenSSL 3.5.4 30 Sep 2025

Compilation Errors

Segmentation Faults

Unexpected Failures

(none)

Expected Failures

File Name Details
balancer-keepalive.t TEST 16: enable_keepalive: 'max_requests == 100' is the default value - grep_error_log_out (req 0) 'lua balancer: keepalive closing connection 0000000006377568
lua balancer: keepalive closing connection 0000000006377758
lua balancer: keepalive no free connection, host: 127.0.0.1:29474, name:
lua balancer: keepalive saving connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive reusing connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive saving connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive reusing connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive saving connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive reusing connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive saving connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive reusing connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive saving connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive reusing connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive saving connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive reusing connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive saving connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive reusing connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive saving connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive reusing connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive saving connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive reusing connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive saving connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive reusing connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive saving connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive reusing connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive saving connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive reusing connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive saving connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive reusing connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive saving connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive reusing connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive saving connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive reusing connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive saving connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive reusing connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive saving connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive reusing connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive saving connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive reusing connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive saving connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive reusing connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive saving connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive reusing connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive saving connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive reusing connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive saving connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive reusing connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive saving connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive reusing connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive saving connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive reusing connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive saving connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive reusing connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive saving connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive reusing connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive saving connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive reusing connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive saving connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive reusing connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive saving connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive reusing connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive saving connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive reusing connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive saving connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive reusing connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive saving connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive reusing connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive saving connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive reusing connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive saving connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive reusing connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive saving connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive reusing connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive saving connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive reusing connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive saving connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive reusing connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive saving connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive reusing connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive saving connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive reusing connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive saving connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive reusing connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive saving connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive reusing connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive saving connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive reusing connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive saving connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive reusing connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive saving connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive reusing connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive saving connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive reusing connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive saving connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive reusing connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive saving connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive reusing connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive saving connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive reusing connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive saving connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive reusing connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive saving connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive reusing connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive saving connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive reusing connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive saving connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive reusing connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive saving connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive reusing connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive saving connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive reusing connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive saving connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive reusing connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive saving connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive reusing connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive saving connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive reusing connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive saving connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive reusing connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive saving connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive reusing connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive saving connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive reusing connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive saving connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive reusing connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive saving connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive reusing connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive saving connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive reusing connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive saving connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive reusing connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive saving connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive reusing connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive saving connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive reusing connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive saving connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive reusing connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive saving connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive reusing connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive saving connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive reusing connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive saving connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive reusing connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive saving connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive reusing connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive saving connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive reusing connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive saving connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive reusing connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive saving connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive reusing connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive saving connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive reusing connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive saving connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive reusing connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive saving connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive reusing connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive saving connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive reusing connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive saving connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive reusing connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive saving connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive reusing connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive saving connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive reusing connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive saving connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive reusing connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive saving connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive reusing connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive saving connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive reusing connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive saving connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive reusing connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive saving connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive reusing connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive saving connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive reusing connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive saving connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive reusing connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive saving connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive reusing connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive saving connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive reusing connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive saving connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive reusing connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive saving connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive reusing connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive saving connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive reusing connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive saving connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive reusing connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive saving connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive reusing connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive saving connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive reusing connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive saving connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive reusing connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive saving connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive reusing connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive saving connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive reusing connection 0000000006843D38, host: 127.0.0.1:29474, name:
lua balancer: keepalive not saving connection 0000000006843D38
'
doesn't match '(?^:\Alua balancer: keepalive no free connection, host: 127.0.0.1:29474, name:\s
lua balancer: keepalive saving connection \S+, host: 127.0.0.1:29474, name:\s
(lua balancer: keepalive reusing connection \S+, host: 127.0.0.1:29474, name:\s
lua balancer: keepalive saving connection \S+, host: 127.0.0.1:29474, name:\s
){98}lua balancer: keepalive reusing connection \S+, host: 127.0.0.1:29474, name:\s
lua balancer: keepalive not saving connection \S+
\z)'
balancer-keepalive.t TEST 6: upstream_keepalive_module: no granular pooling (TLS properties) - grep_error_log_out (req 0) got: 'lua balancer: keepalive closing connection 0000000006E77558
lua balancer: keepalive closing connection 0000000006E77748
'
expected: ''
balancer-keepalive.t TEST 2: enable_keepalive: sanity (different ip port) - grep_error_log_out (req 0) 'lua balancer: keepalive closing connection 0000000006A31C58
lua balancer: keepalive no free connection, host: 127.0.0.1:29474, name: one
lua balancer: keepalive saving connection 0000000006FCAC68, host: 127.0.0.1:29474, name: one
lua balancer: keepalive no free connection, host: 127.0.0.1:29474, name: two
lua balancer: keepalive saving connection 0000000006FCAE58, host: 127.0.0.1:29474, name: two
lua balancer: keepalive no free connection, host: 127.0.0.2:29474, name: two
lua balancer: keepalive saving connection 0000000006FCB048, host: 127.0.0.2:29474, name: two
lua balancer: keepalive no free connection, host: 127.0.0.2:29474, name: three
lua balancer: keepalive saving connection 0000000006FCB238, host: 127.0.0.2:29474, name: three
lua balancer: keepalive no free connection, host: 127.0.0.2:34632, name: three
lua balancer: keepalive saving connection 0000000006FCB428, host: 127.0.0.2:34632, name: three
'
doesn't match '(?^:^lua balancer: keepalive no free connection, host: 127.0.0.1:29474, name: one
lua balancer: keepalive saving connection \S+, host: 127.0.0.1:29474, name: one
lua balancer: keepalive no free connection, host: 127.0.0.1:29474, name: two
lua balancer: keepalive saving connection \S+, host: 127.0.0.1:29474, name: two
lua balancer: keepalive no free connection, host: 127.0.0.2:29474, name: two
lua balancer: keepalive saving connection \S+, host: 127.0.0.2:29474, name: two
lua balancer: keepalive no free connection, host: 127.0.0.2:29474, name: three
lua balancer: keepalive saving connection \S+, host: 127.0.0.2:29474, name: three
lua balancer: keepalive no free connection, host: 127.0.0.2:34632, name: three
lua balancer: keepalive saving connection \S+, host: 127.0.0.2:34632, name: three$)'
balancer-keepalive.t TEST 15: enable_keepalive: reaching 'max_requests > 0' closes keepalive connection (and frees empty pool) - grep_error_log_out (req 0) 'lua balancer: keepalive closing connection 000000000688D078
lua balancer: keepalive closing connection 000000000688D268
lua balancer: keepalive closing connection 000000000688D458
lua balancer: keepalive no free connection, host: 127.0.0.1:29474, name:
lua balancer: keepalive saving connection 0000000006C3E938, host: 127.0.0.1:29474, name:
lua balancer: keepalive reusing connection 0000000006C3E938, host: 127.0.0.1:29474, name:
lua balancer: keepalive saving connection 0000000006C3E938, host: 127.0.0.1:29474, name:
lua balancer: keepalive reusing connection 0000000006C3E938, host: 127.0.0.1:29474, name:
lua balancer: keepalive not saving connection 0000000006C3E938
lua balancer: keepalive no free connection, host: 127.0.0.1:29474, name:
lua balancer: keepalive saving connection 0000000006C3E938, host: 127.0.0.1:29474, name:
'
doesn't match '(?^:^lua balancer: keepalive no free connection, host: 127.0.0.1:29474, name:\s
lua balancer: keepalive saving connection \S+, host: 127.0.0.1:29474, name:\s
lua balancer: keepalive reusing connection \S+, host: 127.0.0.1:29474, name:\s
lua balancer: keepalive saving connection \S+, host: 127.0.0.1:29474, name:\s
lua balancer: keepalive reusing connection \S+, host: 127.0.0.1:29474, name:\s
lua balancer: keepalive not saving connection \S+
lua balancer: keepalive no free connection, host: 127.0.0.1:29474, name:\s
lua balancer: keepalive saving connection \S+, host: 127.0.0.1:29474, name: $)'
balancer-keepalive.t TEST 19: enable_keepalive: reaching 'pool_size' closes extra connections - grep_error_log_out (req 0) 'lua balancer: keepalive closing connection 0000000006C3E938
lua balancer: keepalive no free connection, host: 127.0.0.1:29474, name:
lua balancer: keepalive no free connection, host: 127.0.0.1:29474, name:
lua balancer: keepalive no free connection, host: 127.0.0.1:29474, name:
lua balancer: keepalive no free connection, host: 127.0.0.1:29474, name:
lua balancer: keepalive no free connection, host: 127.0.0.1:29474, name:
lua balancer: keepalive no free connection, host: 127.0.0.1:29474, name:
lua balancer: keepalive saving connection 00000000073C5B58, host: 127.0.0.1:29474, name:
lua balancer: keepalive saving connection 00000000073C5C50, host: 127.0.0.1:29474, name:
lua balancer: keepalive closing connection 00000000073C5B58
lua balancer: keepalive saving connection 00000000073C5D48, host: 127.0.0.1:29474, name:
lua balancer: keepalive closing connection 00000000073C5C50
lua balancer: keepalive saving connection 00000000073C6030, host: 127.0.0.1:29474, name:
lua balancer: keepalive closing connection 00000000073C5D48
lua balancer: keepalive saving connection 00000000073C6128, host: 127.0.0.1:29474, name:
lua balancer: keepalive closing connection 00000000073C6030
lua balancer: keepalive saving connection 00000000073C6220, host: 127.0.0.1:29474, name:
'
doesn't match '(?^:^lua balancer: keepalive no free connection, host: 127.0.0.1:29474, name:\s
lua balancer: keepalive no free connection, host: 127.0.0.1:29474, name:\s
lua balancer: keepalive no free connection, host: 127.0.0.1:29474, name:\s
lua balancer: keepalive saving connection \S+, host: 127.0.0.1:29474, name:\s
lua balancer: keepalive saving connection \S+, host: 127.0.0.1:29474, name:\s
lua balancer: keepalive closing connection \S+
lua balancer: keepalive saving connection \S+, host: 127.0.0.1:29474, name:\s
lua balancer: keepalive reusing connection \S+, host: 127.0.0.1:29474, name:\s
lua balancer: keepalive reusing connection \S+, host: 127.0.0.1:29474, name:\s
lua balancer: keepalive no free connection, host: 127.0.0.1:29474, name:\s
lua balancer: keepalive saving connection \S+, host: 127.0.0.1:29474, name:\s
lua balancer: keepalive saving connection \S+, host: 127.0.0.1:29474, name:\s
lua balancer: keepalive closing connection \S+
lua balancer: keepalive saving connection \S+, host: 127.0.0.1:29474, name: $)'
balancer-keepalive.t TEST 10: enable_keepalive: bad usage (no upstream) - grep_error_log_out (req 0) got: 'lua balancer: keepalive closing connection 00000000073C6128
lua balancer: keepalive closing connection 00000000073C6220
'
expected: ''
balancer-keepalive.t TEST 25: enable_keepalive: must be called for each try - grep_error_log_out (req 0) 'lua balancer: keepalive closing connection 00000000066EF338
lua balancer: keepalive closing connection 00000000066EF528
lua balancer: keepalive closing connection 00000000066EF718
lua balancer: keepalive closing connection 00000000066EF908
lua balancer: keepalive closing connection 00000000066EFAF8
lua balancer: keepalive no free connection, host: 127.0.0.3:29474, name: one
lua balancer: keepalive not saving connection 00000000061DB8E8
lua balancer: keepalive no free connection, host: 127.0.0.1:29474, name: two
lua balancer: keepalive saving connection 00000000061DB8E8, host: 127.0.0.1:29474, name: two
'
doesn't match '(?^:^lua balancer: keepalive no free connection, host: 127.0.0.3:29474, name: one
lua balancer: keepalive not saving connection \S+
lua balancer: keepalive no free connection, host: 127.0.0.1:29474, name: two
lua balancer: keepalive saving connection \S+, host: 127.0.0.1:29474, name: two
$)'
balancer-keepalive.t TEST 23: enable_keepalive: does not save timed out connections - grep_error_log_out (req 0) 'lua balancer: keepalive closing connection 00000000061DB8E8
lua balancer: keepalive no free connection, host: 127.0.0.1:29474, name:
lua balancer: keepalive not saving connection 00000000073CA408
'
doesn't match '(?^:^lua balancer: keepalive no free connection, host: 127.0.0.1:29474, name:\s
lua balancer: keepalive not saving connection \S+$)'
balancer-keepalive.t TEST 24: enable_keepalive: can be called again upon retry - grep_error_log_out (req 0) 'lua balancer: keepalive closing connection 0000000006C2FB18
lua balancer: keepalive closing connection 0000000006C2FD08
lua balancer: keepalive closing connection 0000000006C2FEF8
lua balancer: keepalive no free connection, host: 127.0.0.3:29474, name:
lua balancer: keepalive not saving connection 000000000742ECA8
lua balancer: keepalive no free connection, host: 127.0.0.1:29474, name:
lua balancer: keepalive saving connection 000000000742ECA8, host: 127.0.0.1:29474, name:
'
doesn't match '(?^:^lua balancer: keepalive no free connection, host: 127.0.0.3:29474, name:\s
lua balancer: keepalive not saving connection \S+
lua balancer: keepalive no free connection, host: 127.0.0.1:29474, name:\s
lua balancer: keepalive saving connection \S+, host: 127.0.0.1:29474, name: $)'
errlog.t TEST 29: ringbuf overflow bug - response_body_like - response is expected (log level: 4 log time: 1761637882.021 log body: 2025/10/28 07:51:22 [error] 5793#5793: *27 [lua] content_by_lua(nginx.conf:67):8: **********21, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level: 4 log time: 1761637882.021 log body: 2025/10/28 07:51:22 [error] 5793#5793: *27 [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: 1761637882.021 log body: 2025/10/28 07:51:22 [error] 5793#5793: *27 [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: 1761637882.021 log body: 2025/10/28 07:51:22 [error] 5793#5793: *27 [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: 1761637882.021 log body: 2025/10/28 07:51:22 [error] 5793#5793: *27 [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: 1761637882.021 log body: 2025/10/28 07:51:22 [error] 5793#5793: *27 [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: 1761637882.021 log body: 2025/10/28 07:51:22 [error] 5793#5793: *27 [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: 1761637882.021 log body: 2025/10/28 07:51:22 [error] 5793#5793: *27 [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: 1761637882.021 log body: 2025/10/28 07:51:22 [error] 5793#5793: *27 [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: 1761637882.021 log body: 2025/10/28 07:51:22 [error] 5793#5793: *27 [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: 1761637882.021
log body: 2025/10/28 07:51:22 [error] 5793#5793: *27 [lua] content_by_lua(nginx.conf:67):8: **********21, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level: 4
log time: 1761637882.021
log body: 2025/10/28 07:51:22 [error] 5793#5793: *27 [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: 1761637882.021
log body: 2025/10/28 07:51:22 [error] 5793#5793: *27 [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: 1761637882.021
log body: 2025/10/28 07:51:22 [error] 5793#5793: *27 [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: 1761637882.021
log body: 2025/10/28 07:51:22 [error] 5793#5793: *27 [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: 1761637882.021
log body: 2025/10/28 07:51:22 [error] 5793#5793: *27 [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: 1761637882.021
log body: 2025/10/28 07:51:22 [error] 5793#5793: *27 [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: 1761637882.021
log body: 2025/10/28 07:51:22 [error] 5793#5793: *27 [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: 1761637882.021
log body: 2025/10/28 07:51:22 [error] 5793#5793: *27 [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: 1761637882.021
log body: 2025/10/28 07:51:22 [error] 5793#5793: *27 [lua] content_by_lua(nginx.conf:67):8: **********30, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
'
doesn't match '(?^s:log level: 4
log time: \d+(?:\.\d+)?
log body: \d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: \*\*\*\*\*\*\*\*\*\*39, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level: 4
log time: \d{10}(?:\.\d+)?
log body: \d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: \*\*\*\*\*\*\*\*\*\*40, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost")'
errlog.t TEST 29: ringbuf overflow bug - response_body_like - response is expected (log level: 4 log time: 1761637882.406 log body: 2025/10/28 07:51:22 [error] 5793#5793: *28 [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: 1761637882.406 log body: 2025/10/28 07:51:22 [error] 5793#5793: *28 [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: 1761637882.406 log body: 2025/10/28 07:51:22 [error] 5793#5793: *28 [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: 1761637882.406 log body: 2025/10/28 07:51:22 [error] 5793#5793: *28 [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: 1761637882.406 log body: 2025/10/28 07:51:22 [error] 5793#5793: *28 [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: 1761637882.406 log body: 2025/10/28 07:51:22 [error] 5793#5793: *28 [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: 1761637882.406 log body: 2025/10/28 07:51:22 [error] 5793#5793: *28 [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: 1761637882.406 log body: 2025/10/28 07:51:22 [error] 5793#5793: *28 [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: 1761637882.406 log body: 2025/10/28 07:51:22 [error] 5793#5793: *28 [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: 1761637882.406 log body: 2025/10/28 07:51:22 [error] 5793#5793: *28 [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: 1761637882.406
log body: 2025/10/28 07:51:22 [error] 5793#5793: *28 [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: 1761637882.406
log body: 2025/10/28 07:51:22 [error] 5793#5793: *28 [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: 1761637882.406
log body: 2025/10/28 07:51:22 [error] 5793#5793: *28 [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: 1761637882.406
log body: 2025/10/28 07:51:22 [error] 5793#5793: *28 [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: 1761637882.406
log body: 2025/10/28 07:51:22 [error] 5793#5793: *28 [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: 1761637882.406
log body: 2025/10/28 07:51:22 [error] 5793#5793: *28 [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: 1761637882.406
log body: 2025/10/28 07:51:22 [error] 5793#5793: *28 [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: 1761637882.406
log body: 2025/10/28 07:51:22 [error] 5793#5793: *28 [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: 1761637882.406
log body: 2025/10/28 07:51:22 [error] 5793#5793: *28 [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: 1761637882.406
log body: 2025/10/28 07:51:22 [error] 5793#5793: *28 [lua] content_by_lua(nginx.conf:67):8: **********38, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
'
doesn't match '(?^s:log level: 4
log time: \d+(?:\.\d+)?
log body: \d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: \*\*\*\*\*\*\*\*\*\*39, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level: 4
log time: \d{10}(?:\.\d+)?
log body: \d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: \*\*\*\*\*\*\*\*\*\*40, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost")'
errlog.t TEST 31: ringbuf sentinel bug2 - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +1,2 @@
log lines: #18
-log lines: #8
+log lines: #10
errlog.t TEST 16: check the captured error log body - response_body_like - response is expected (log level:6 log body:2025/10/28 07:51:27 [notice] 5782#5782: start worker processes log level:7 log body:2025/10/28 07:51:27 [info] 5981#5981: *163 client 127.0.0.1 closed keepalive connection log level:7 log body:2025/10/28 07:51:27 [info] 5981#5981: *164 client 127.0.0.1 closed keepalive connection log level:7 log body:2025/10/28 07:51:27 [info] 5981#5981: *165 client 127.0.0.1 closed keepalive connection log level:7 log body:2025/10/28 07:51:27 [info] 5981#5981: *166 client 127.0.0.1 closed keepalive connection log level:7 log body:2025/10/28 07:51:27 [info] 5981#5981: *167 client 127.0.0.1 closed keepalive connection log level:7 log body:2025/10/28 07:51:27 [info] 5981#5981: *168 client 127.0.0.1 closed keepalive connection log level:7 log body:2025/10/28 07:51:27 [info] 5981#5981: *169 client 127.0.0.1 closed keepalive connection log level:7 log body:2025/10/28 07:51:27 [info] 5981#5981: *170 client 127.0.0.1 closed keepalive connection log level:7 log body:2025/10/28 07:51:27 [info] 5981#5981: *171 client 127.0.0.1 closed keepalive connection) 'log level:6
log body:2025/10/28 07:51:27 [notice] 5782#5782: start worker processes
log level:7
log body:2025/10/28 07:51:27 [info] 5981#5981: *163 client 127.0.0.1 closed keepalive connection
log level:7
log body:2025/10/28 07:51:27 [info] 5981#5981: *164 client 127.0.0.1 closed keepalive connection
log level:7
log body:2025/10/28 07:51:27 [info] 5981#5981: *165 client 127.0.0.1 closed keepalive connection
log level:7
log body:2025/10/28 07:51:27 [info] 5981#5981: *166 client 127.0.0.1 closed keepalive connection
log level:7
log body:2025/10/28 07:51:27 [info] 5981#5981: *167 client 127.0.0.1 closed keepalive connection
log level:7
log body:2025/10/28 07:51:27 [info] 5981#5981: *168 client 127.0.0.1 closed keepalive connection
log level:7
log body:2025/10/28 07:51:27 [info] 5981#5981: *169 client 127.0.0.1 closed keepalive connection
log level:7
log body:2025/10/28 07:51:27 [info] 5981#5981: *170 client 127.0.0.1 closed keepalive connection
log level:7
log body:2025/10/28 07:51:27 [info] 5981#5981: *171 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:2025/10/28 07:51:27 [info] 5981#5981: *172 client 127.0.0.1 closed keepalive connection log level:7 log body:2025/10/28 07:51:27 [info] 5981#5981: *173 client 127.0.0.1 closed keepalive connection log level:7 log body:2025/10/28 07:51:27 [info] 5981#5981: *174 client 127.0.0.1 closed keepalive connection log level:7 log body:2025/10/28 07:51:27 [info] 5981#5981: *175 client 127.0.0.1 closed keepalive connection log level:7 log body:2025/10/28 07:51:27 [info] 5981#5981: *176 client 127.0.0.1 closed keepalive connection log level:7 log body:2025/10/28 07:51:27 [info] 5981#5981: *177 client 127.0.0.1 closed keepalive connection log level:7 log body:2025/10/28 07:51:27 [info] 5981#5981: *178 client 127.0.0.1 closed keepalive connection log level:7 log body:2025/10/28 07:51:27 [info] 5981#5981: *179 client 127.0.0.1 closed keepalive connection log level:7 log body:2025/10/28 07:51:27 [info] 5981#5981: *180 client 127.0.0.1 closed keepalive connection log level:7 log body:2025/10/28 07:51:27 [info] 5981#5981: *181 client 127.0.0.1 closed keepalive connection) 'log level:7
log body:2025/10/28 07:51:27 [info] 5981#5981: *172 client 127.0.0.1 closed keepalive connection
log level:7
log body:2025/10/28 07:51:27 [info] 5981#5981: *173 client 127.0.0.1 closed keepalive connection
log level:7
log body:2025/10/28 07:51:27 [info] 5981#5981: *174 client 127.0.0.1 closed keepalive connection
log level:7
log body:2025/10/28 07:51:27 [info] 5981#5981: *175 client 127.0.0.1 closed keepalive connection
log level:7
log body:2025/10/28 07:51:27 [info] 5981#5981: *176 client 127.0.0.1 closed keepalive connection
log level:7
log body:2025/10/28 07:51:27 [info] 5981#5981: *177 client 127.0.0.1 closed keepalive connection
log level:7
log body:2025/10/28 07:51:27 [info] 5981#5981: *178 client 127.0.0.1 closed keepalive connection
log level:7
log body:2025/10/28 07:51:27 [info] 5981#5981: *179 client 127.0.0.1 closed keepalive connection
log level:7
log body:2025/10/28 07:51:27 [info] 5981#5981: *180 client 127.0.0.1 closed keepalive connection
log level:7
log body:2025/10/28 07:51:27 [info] 5981#5981: *181 client 127.0.0.1 closed keepalive connection
'
doesn't match '(?^s:log level:5
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*access_by_lua\(nginx.conf:\d+\):\d+: -->2, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*access_by_lua\(nginx.conf:\d+\):\d+: -->3, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
)'
errlog.t TEST 13: filter log by level(ngx.CRIT) - response_body - response is expected (repeated req 0, req 0) got: 'log lines:10
'
expected: 'log lines:0
'
errlog.t TEST 13: filter log by level(ngx.CRIT) - response_body - response is expected (repeated req 1, req 0) got: 'log lines:10
'
expected: 'log lines:0
'
errlog.t TEST 12: filter log by level(ngx.WARN) - response_body - response is expected (repeated req 0, req 0) got: 'log lines:10
'
expected: 'log lines:2
'
errlog.t TEST 12: filter log by level(ngx.WARN) - response_body - response is expected (repeated req 1, req 0) got: 'log lines:10
'
expected: 'log lines:2
'
errlog.t TEST 21: multi-line error log - response_body_like - response is expected (log lines: #10 log level:6 log body:2025/10/28 07:51:33 [notice] 5782#5782: start worker processes log level:7 log body:2025/10/28 07:51:33 [info] 6249#6249: *345 client 127.0.0.1 closed keepalive connection log level:7 log body:2025/10/28 07:51:33 [info] 6249#6249: *346 client 127.0.0.1 closed keepalive connection log level:7 log body:2025/10/28 07:51:33 [info] 6249#6249: *347 client 127.0.0.1 closed keepalive connection log level:7 log body:2025/10/28 07:51:33 [info] 6249#6249: *348 client 127.0.0.1 closed keepalive connection log level:7 log body:2025/10/28 07:51:33 [info] 6249#6249: *349 client 127.0.0.1 closed keepalive connection log level:7 log body:2025/10/28 07:51:33 [info] 6249#6249: *350 client 127.0.0.1 closed keepalive connection log level:7 log body:2025/10/28 07:51:33 [info] 6249#6249: *351 client 127.0.0.1 closed keepalive connection log level:7 log body:2025/10/28 07:51:33 [info] 6249#6249: *352 client 127.0.0.1 closed keepalive connection log level:7 log body:2025/10/28 07:51:33 [info] 6249#6249: *353 client 127.0.0.1 closed keepalive connection) 'log lines: #10
log level:6
log body:2025/10/28 07:51:33 [notice] 5782#5782: start worker processes
log level:7
log body:2025/10/28 07:51:33 [info] 6249#6249: *345 client 127.0.0.1 closed keepalive connection
log level:7
log body:2025/10/28 07:51:33 [info] 6249#6249: *346 client 127.0.0.1 closed keepalive connection
log level:7
log body:2025/10/28 07:51:33 [info] 6249#6249: *347 client 127.0.0.1 closed keepalive connection
log level:7
log body:2025/10/28 07:51:33 [info] 6249#6249: *348 client 127.0.0.1 closed keepalive connection
log level:7
log body:2025/10/28 07:51:33 [info] 6249#6249: *349 client 127.0.0.1 closed keepalive connection
log level:7
log body:2025/10/28 07:51:33 [info] 6249#6249: *350 client 127.0.0.1 closed keepalive connection
log level:7
log body:2025/10/28 07:51:33 [info] 6249#6249: *351 client 127.0.0.1 closed keepalive connection
log level:7
log body:2025/10/28 07:51:33 [info] 6249#6249: *352 client 127.0.0.1 closed keepalive connection
log level:7
log body:2025/10/28 07:51:33 [info] 6249#6249: *353 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:2025/10/28 07:51:33 [info] 6249#6249: *354 client 127.0.0.1 closed keepalive connection log level:7 log body:2025/10/28 07:51:33 [info] 6249#6249: *355 client 127.0.0.1 closed keepalive connection log level:7 log body:2025/10/28 07:51:33 [info] 6249#6249: *356 client 127.0.0.1 closed keepalive connection log level:7 log body:2025/10/28 07:51:33 [info] 6249#6249: *357 client 127.0.0.1 closed keepalive connection log level:7 log body:2025/10/28 07:51:33 [info] 6249#6249: *358 client 127.0.0.1 closed keepalive connection log level:7 log body:2025/10/28 07:51:33 [info] 6249#6249: *359 client 127.0.0.1 closed keepalive connection log level:7 log body:2025/10/28 07:51:33 [info] 6249#6249: *360 client 127.0.0.1 closed keepalive connection log level:7 log body:2025/10/28 07:51:33 [info] 6249#6249: *361 client 127.0.0.1 closed keepalive connection log level:7 log body:2025/10/28 07:51:33 [info] 6249#6249: *362 client 127.0.0.1 closed keepalive connection log level:7 log body:2025/10/28 07:51:33 [info] 6249#6249: *363 client 127.0.0.1 closed keepalive connection) 'log lines: #10
log level:7
log body:2025/10/28 07:51:33 [info] 6249#6249: *354 client 127.0.0.1 closed keepalive connection
log level:7
log body:2025/10/28 07:51:33 [info] 6249#6249: *355 client 127.0.0.1 closed keepalive connection
log level:7
log body:2025/10/28 07:51:33 [info] 6249#6249: *356 client 127.0.0.1 closed keepalive connection
log level:7
log body:2025/10/28 07:51:33 [info] 6249#6249: *357 client 127.0.0.1 closed keepalive connection
log level:7
log body:2025/10/28 07:51:33 [info] 6249#6249: *358 client 127.0.0.1 closed keepalive connection
log level:7
log body:2025/10/28 07:51:33 [info] 6249#6249: *359 client 127.0.0.1 closed keepalive connection
log level:7
log body:2025/10/28 07:51:33 [info] 6249#6249: *360 client 127.0.0.1 closed keepalive connection
log level:7
log body:2025/10/28 07:51:33 [info] 6249#6249: *361 client 127.0.0.1 closed keepalive connection
log level:7
log body:2025/10/28 07:51:33 [info] 6249#6249: *362 client 127.0.0.1 closed keepalive connection
log level:7
log body:2025/10/28 07:51:33 [info] 6249#6249: *363 client 127.0.0.1 closed keepalive connection
'
doesn't match '(?^s:\Alog lines: #1
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*access_by_lua\(nginx.conf:\d+\):\d+: -->
new line, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
\z)'
errlog.t nginx: [emerg] invalid 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:5 log body:2025/10/28 07:51:41 [warn] 6412#6412: *128 [lua] access_by_lua(nginx.conf:58):10: --> 88, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level:4 log body:2025/10/28 07:51:41 [error] 6412#6412: *128 [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:2025/10/28 07:51:41 [warn] 6412#6412: *128 [lua] access_by_lua(nginx.conf:58):10: --> 89, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" msg count: 3 log level:4 log body:2025/10/28 07:51:41 [error] 6412#6412: *128 [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:2025/10/28 07:51:41 [warn] 6412#6412: *128 [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:2025/10/28 07:51:41 [error] 6412#6412: *128 [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:2025/10/28 07:51:41 [error] 6412#6412: *128 [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:2025/10/28 07:51:41 [error] 6412#6412: *128 [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:2025/10/28 07:51:41 [error] 6412#6412: *128 [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:5
log body:2025/10/28 07:51:41 [warn] 6412#6412: *128 [lua] access_by_lua(nginx.conf:58):10: --> 88, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level:4
log body:2025/10/28 07:51:41 [error] 6412#6412: *128 [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:2025/10/28 07:51:41 [warn] 6412#6412: *128 [lua] access_by_lua(nginx.conf:58):10: --> 89, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
msg count: 3
log level:4
log body:2025/10/28 07:51:41 [error] 6412#6412: *128 [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:2025/10/28 07:51:41 [warn] 6412#6412: *128 [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:2025/10/28 07:51:41 [error] 6412#6412: *128 [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:2025/10/28 07:51:41 [error] 6412#6412: *128 [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:2025/10/28 07:51:41 [error] 6412#6412: *128 [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:2025/10/28 07:51:41 [error] 6412#6412: *128 [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 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 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:2025/10/28 07:51:46 [notice] 6472#6472: start worker processes log level:7 log body:2025/10/28 07:51:46 [info] 6514#6514: *33 client 127.0.0.1 closed keepalive connection log level:7 log body:2025/10/28 07:51:46 [info] 6514#6514: *34 client 127.0.0.1 closed keepalive connection log level:7 log body:2025/10/28 07:51:46 [info] 6514#6514: *35 client 127.0.0.1 closed keepalive connection log level:7 log body:2025/10/28 07:51:46 [info] 6514#6514: *36 client 127.0.0.1 closed keepalive connection log level:7 log body:2025/10/28 07:51:46 [info] 6514#6514: *37 client 127.0.0.1 closed keepalive connection log level:7 log body:2025/10/28 07:51:46 [info] 6514#6514: *38 client 127.0.0.1 closed keepalive connection log level:7 log body:2025/10/28 07:51:46 [info] 6514#6514: *39 client 127.0.0.1 closed keepalive connection log level:7 log body:2025/10/28 07:51:46 [info] 6514#6514: *40 client 127.0.0.1 closed keepalive connection log level:7 log body:2025/10/28 07:51:46 [info] 6514#6514: *41 client 127.0.0.1 closed keepalive connection end maybe log lines: #10 log level:7 log body:2025/10/28 07:51:46 [info] 6514#6514: *42 client 127.0.0.1 closed keepalive connection log level:7 log body:2025/10/28 07:51:46 [info] 6514#6514: *43 client 127.0.0.1 closed keepalive connection log level:7 log body:2025/10/28 07:51:46 [info] 6514#6514: *44 client 127.0.0.1 closed keepalive connection log level:7 log body:2025/10/28 07:51:46 [info] 6514#6514: *45 client 127.0.0.1 closed keepalive connection log level:7 log body:2025/10/28 07:51:46 [info] 6514#6514: *46 client 127.0.0.1 closed keepalive connection log level:7 log body:2025/10/28 07:51:46 [info] 6514#6514: *47 client 127.0.0.1 closed keepalive connection log level:7 log body:2025/10/28 07:51:46 [info] 6514#6514: *48 client 127.0.0.1 closed keepalive connection log level:7 log body:2025/10/28 07:51:46 [info] 6514#6514: *49 client 127.0.0.1 closed keepalive connection log level:7 log body:2025/10/28 07:51:46 [info] 6514#6514: *50 client 127.0.0.1 closed keepalive connection log level:7 log body:2025/10/28 07:51:46 [info] 6514#6514: *51 client 127.0.0.1 closed keepalive connection end) 'maybe log lines: #10
log level:6
log body:2025/10/28 07:51:46 [notice] 6472#6472: start worker processes
log level:7
log body:2025/10/28 07:51:46 [info] 6514#6514: *33 client 127.0.0.1 closed keepalive connection
log level:7
log body:2025/10/28 07:51:46 [info] 6514#6514: *34 client 127.0.0.1 closed keepalive connection
log level:7
log body:2025/10/28 07:51:46 [info] 6514#6514: *35 client 127.0.0.1 closed keepalive connection
log level:7
log body:2025/10/28 07:51:46 [info] 6514#6514: *36 client 127.0.0.1 closed keepalive connection
log level:7
log body:2025/10/28 07:51:46 [info] 6514#6514: *37 client 127.0.0.1 closed keepalive connection
log level:7
log body:2025/10/28 07:51:46 [info] 6514#6514: *38 client 127.0.0.1 closed keepalive connection
log level:7
log body:2025/10/28 07:51:46 [info] 6514#6514: *39 client 127.0.0.1 closed keepalive connection
log level:7
log body:2025/10/28 07:51:46 [info] 6514#6514: *40 client 127.0.0.1 closed keepalive connection
log level:7
log body:2025/10/28 07:51:46 [info] 6514#6514: *41 client 127.0.0.1 closed keepalive connection
end
maybe log lines: #10
log level:7
log body:2025/10/28 07:51:46 [info] 6514#6514: *42 client 127.0.0.1 closed keepalive connection
log level:7
log body:2025/10/28 07:51:46 [info] 6514#6514: *43 client 127.0.0.1 closed keepalive connection
log level:7
log body:2025/10/28 07:51:46 [info] 6514#6514: *44 client 127.0.0.1 closed keepalive connection
log level:7
log body:2025/10/28 07:51:46 [info] 6514#6514: *45 client 127.0.0.1 closed keepalive connection
log level:7
log body:2025/10/28 07:51:46 [info] 6514#6514: *46 client 127.0.0.1 closed keepalive connection
log level:7
log body:2025/10/28 07:51:46 [info] 6514#6514: *47 client 127.0.0.1 closed keepalive connection
log level:7
log body:2025/10/28 07:51:46 [info] 6514#6514: *48 client 127.0.0.1 closed keepalive connection
log level:7
log body:2025/10/28 07:51:46 [info] 6514#6514: *49 client 127.0.0.1 closed keepalive connection
log level:7
log body:2025/10/28 07:51:46 [info] 6514#6514: *50 client 127.0.0.1 closed keepalive connection
log level:7
log body:2025/10/28 07:51:46 [info] 6514#6514: *51 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:2025/10/28 07:51:46 [info] 6514#6514: *52 client 127.0.0.1 closed keepalive connection log level:4 log body:2025/10/28 07:51:46 [error] 6514#6514: *53 [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:2025/10/28 07:51:47 [error] 6514#6514: *54 [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:2025/10/28 07:51:46 [info] 6514#6514: *52 client 127.0.0.1 closed keepalive connection
log level:4
log body:2025/10/28 07:51:46 [error] 6514#6514: *53 [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:2025/10/28 07:51:47 [error] 6514#6514: *54 [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 11: filter log by level(ngx.INFO) - response_body - response is expected (repeated req 0, req 0) got: 'log lines:10
'
expected: 'log lines:3
'
errlog.t TEST 11: filter log by level(ngx.INFO) - response_body - response is expected (repeated req 1, req 0) got: 'log lines:10
'
expected: 'log lines:3
'
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-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
)'
re-sub.t TEST 5: replace template + submatches (exceeding buffers) ==7536== Invalid read of size 16
==7536== at 0x7CA5DAA: ???
==7536== by 0x615329D: ???
==7536== Address 0x615329f is 8,207 bytes inside a block of size 8,220 alloc'd
==7536== at 0x484E1EC: realloc (vg_replace_malloc.c:1801)
==7536== by 0x486CC02: lj_mem_realloc (lj_gc.c:865)
==7536== by 0x486F67A: lj_str_alloc (lj_str.c:302)
==7536== by 0x486F67A: lj_str_new (lj_str.c:386)
==7536== by 0x48D8FA8: lj_buf_str (lj_buf.h:195)
==7536== by 0x48D8FA8: lj_cf_string_rep (lib_string.c:101)
==7536== by 0x4868023: lj_BC_FUNCC (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.1761112883)
==7536== by 0x53C88D: ngx_http_lua_run_thread (ngx_http_lua_util.c:1194)
==7536== by 0x540EDC: ngx_http_lua_content_by_chunk (ngx_http_lua_contentby.c:124)
==7536== by 0x5410E7: ngx_http_lua_content_handler_inline (ngx_http_lua_contentby.c:320)
==7536== by 0x540B4B: ngx_http_lua_content_handler (ngx_http_lua_contentby.c:222)
==7536== by 0x48884C: ngx_http_core_content_phase (ngx_http_core_module.c:1285)
==7536== by 0x482A22: ngx_http_core_run_phases (ngx_http_core_module.c:899)
==7536== by 0x482AC2: ngx_http_handler (ngx_http_core_module.c:882)
==7536== by 0x48E685: ngx_http_process_request (ngx_http_request.c:2162)
==7536== by 0x48F132: ngx_http_process_request_headers (ngx_http_request.c:1551)
==7536== by 0x48F702: ngx_http_process_request_line (ngx_http_request.c:1218)
==7536== by 0x48FC29: ngx_http_wait_request_handler (ngx_http_request.c:524)
==7536== by 0x4587DC: ngx_epoll_process_events (ngx_epoll_module.c:901)
==7536== by 0x44CE9B: ngx_process_events_and_timers (ngx_event.c:258)
==7536== by 0x456379: ngx_worker_process_cycle (ngx_process_cycle.c:793)
==7536== by 0x454A37: ngx_spawn_process (ngx_process.c:199)
==7536== by 0x4554F9: ngx_start_worker_processes (ngx_process_cycle.c:382)
==7536== by 0x457228: ngx_master_process_cycle (ngx_process_cycle.c:241)
==7536== by 0x42BF5B: main (nginx.c:387)
==7536==
{
<insert_a_suppression_name_here>
Memcheck:Addr16
obj:*
obj:*
}
request.t TEST 7: ngx.req.start_time() - response_body - response is expected (repeated req 0, req 0) got: "true\x{0a}>= 0.099: true\x{0a}< 0.11: false\x{0a}"
length: 34
expected: "true\x{0a}>= 0.099: true\x{0a}< 0.11: true\x{0a}"
length: 33
strings begin to differ at char 29 (line 3 column 9)
semaphore.t TEST 39: basic semaphore count (negative number) - pattern "[error]" should not match any line in error.log but matches line "2025/10/28 08:01:40 [error] 9176#9176: *612 [lua] init_worker_by_lua(nginx.conf:26):14: sem: timeout, context: ngx.timer" (req 0) 2025/10/28 08:01:40 [debug] 9176#9176: http lua semaphore wait: 0000000006616118, timeout: 1000, resources: 0, event posted: 0
2025/10/28 08:01:40 [debug] 9176#9176: *612 event timer add: 0: 1000:11393023
2025/10/28 08:01:40 [debug] 9176#9176: http lua semaphore wait yielding
2025/10/28 08:01:40 [debug] 9176#9176: *612 lua resume returned 1
2025/10/28 08:01:40 [debug] 9176#9176: *612 lua thread yielded
2025/10/28 08:01:40 [debug] 9176#9176: *612 lua run thread returned -2
2025/10/28 08:01:40 [debug] 9176#9176: worker cycle
2025/10/28 08:01:40 [debug] 9176#9176: epoll timer: 47
2025/10/28 08:01:40 [debug] 9207#9207: timer delta: 87
'
semaphore.t TEST 30: main thread wait a light thread that is waiting on a semaphore - pattern "[error]" should not match any line in error.log but matches line "2025/10/28 08:01:41 [error] 9176#9176: *612 [lua] init_worker_by_lua(nginx.conf:26):14: sem: timeout, context: ngx.timer" (req 1) 2025/10/28 08:01:41 [debug] 9176#9176: http lua semaphore wait: 0000000006616118, timeout: 1000, resources: 0, event posted: 0
2025/10/28 08:01:41 [debug] 9176#9176: *612 event timer add: 0: 1000:11394024
2025/10/28 08:01:41 [debug] 9176#9176: http lua semaphore wait yielding
2025/10/28 08:01:41 [debug] 9176#9176: *612 lua resume returned 1
2025/10/28 08:01:41 [debug] 9176#9176: *612 lua thread yielded
2025/10/28 08:01:41 [debug] 9176#9176: *612 lua run thread returned -2
2025/10/28 08:01:41 [debug] 9176#9176: worker cycle
'
semaphore.t TEST 13: semaphore in log_by_lua (wait not allowed) - grep_error_log_out (req 0) @@ -1,2 +1,3 @@
+sem: timeout,
sem: 1 while logging request,
sem: API disabled in the context of log_by_lua* while logging request,
semaphore.t TEST 13: semaphore in log_by_lua (wait not allowed) - grep_error_log_out (req 1) @@ -1,2 +1,4 @@
sem: 1 while logging request,
sem: API disabled in the context of log_by_lua* while logging request,
+sem: timeout,
+sem: 6 times,
semaphore.t TEST 25: two thread wait for each other - pattern "[error]" should not match any line in error.log but matches line "2025/10/28 08:01:46 [error] 9176#9176: *612 [lua] init_worker_by_lua(nginx.conf:26):14: sem: timeout, context: ngx.timer" (req 0) 2025/10/28 08:01:46 [debug] 9176#9176: http lua semaphore wait: 0000000006616118, timeout: 1000, resources: 0, event posted: 0
2025/10/28 08:01:46 [debug] 9176#9176: *612 event timer add: 0: 1000:11399028
2025/10/28 08:01:46 [debug] 9176#9176: http lua semaphore wait yielding
2025/10/28 08:01:46 [debug] 9176#9176: *612 lua resume returned 1
2025/10/28 08:01:46 [debug] 9176#9176: *612 lua thread yielded
2025/10/28 08:01:46 [debug] 9176#9176: *612 lua run thread returned -2
2025/10/28 08:01:46 [debug] 9176#9176: worker cycle
2025/10/28 08:01:46 [debug] 9176#9176: epoll timer: 1000
2025/10/28 08:01:46 [debug] 9426#9426: epoll: fd:6 ev:0001 d:0000000007483DE0
'
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 "2025/10/28 08:01:47 [error] 9176#9176: *612 [lua] init_worker_by_lua(nginx.conf:26):14: sem: timeout, context: ngx.timer" (req 0) 2025/10/28 08:01:47 [debug] 9176#9176: http lua semaphore wait: 0000000006616118, timeout: 1000, resources: 0, event posted: 0
2025/10/28 08:01:47 [debug] 9176#9176: *612 event timer add: 0: 1000:11400029
2025/10/28 08:01:47 [debug] 9176#9176: http lua semaphore wait yielding
2025/10/28 08:01:47 [debug] 9176#9176: *612 lua resume returned 1
2025/10/28 08:01:47 [debug] 9176#9176: *612 lua thread yielded
2025/10/28 08:01:47 [debug] 9176#9176: *612 lua run thread returned -2
2025/10/28 08:01:47 [debug] 9176#9176: worker cycle
2025/10/28 08:01:47 [debug] 9458#9458: *849 malloc: 0000000005D86E70:176
2025/10/28 08:01:47 [debug] 9176#9176: epoll timer: 1000
'
semaphore.t TEST 2: semaphore wait order - pattern "[error]" should not match any line in error.log but matches line "2025/10/28 08:01:49 [error] 9176#9176: *612 [lua] init_worker_by_lua(nginx.conf:26):14: sem: timeout, context: ngx.timer" (req 0) 2025/10/28 08:01:49 [error] 9176#9176: *612 [lua] init_worker_by_lua(nginx.conf:26):18: sem: 6 times, context: ngx.timer
2025/10/28 08:01:49 [debug] 9176#9176: http lua semaphore wait: 0000000006616118, timeout: 1000, resources: 0, event posted: 0
2025/10/28 08:01:49 [debug] 9176#9176: *612 event timer add: 0: 1000:11402030
2025/10/28 08:01:49 [debug] 9176#9176: http lua semaphore wait yielding
2025/10/28 08:01:49 [debug] 9176#9176: *612 lua resume returned 1
2025/10/28 08:01:49 [debug] 9176#9176: *612 lua thread yielded
2025/10/28 08:01:49 [debug] 9176#9176: *612 lua run thread returned -2
2025/10/28 08:01:49 [debug] 9176#9176: worker cycle
2025/10/28 08:01:49 [debug] 9176#9176: epoll timer: 1000
'
semaphore.t TEST 2: semaphore wait order - pattern "[error]" should not match any line in error.log but matches line "2025/10/28 08:01:49 [error] 9176#9176: *612 [lua] init_worker_by_lua(nginx.conf:26):18: sem: 6 times, context: ngx.timer" (req 0) 2025/10/28 08:01:49 [debug] 9176#9176: http lua semaphore wait: 0000000006616118, timeout: 1000, resources: 0, event posted: 0
2025/10/28 08:01:49 [debug] 9176#9176: *612 event timer add: 0: 1000:11402030
2025/10/28 08:01:49 [debug] 9176#9176: http lua semaphore wait yielding
2025/10/28 08:01:49 [debug] 9176#9176: *612 lua resume returned 1
2025/10/28 08:01:49 [debug] 9176#9176: *612 lua thread yielded
2025/10/28 08:01:49 [debug] 9176#9176: *612 lua run thread returned -2
2025/10/28 08:01:49 [debug] 9176#9176: worker cycle
2025/10/28 08:01:49 [debug] 9176#9176: epoll timer: 1000
2025/10/28 08:01:49 [debug] 9489#9489: epoll: fd:6 ev:0001 d:0000000005D11040
'
semaphore.t TEST 2: semaphore wait order - pattern "[error]" should not match any line in error.log but matches line "2025/10/28 08:01:50 [error] 9176#9176: *612 [lua] init_worker_by_lua(nginx.conf:26):14: sem: timeout, context: ngx.timer" (req 1) 2025/10/28 08:01:50 [debug] 9176#9176: http lua semaphore wait: 0000000006616118, timeout: 1000, resources: 0, event posted: 0
2025/10/28 08:01:50 [debug] 9176#9176: *612 event timer add: 0: 1000:11403030
2025/10/28 08:01:50 [debug] 9176#9176: http lua semaphore wait yielding
2025/10/28 08:01:50 [debug] 9176#9176: *612 lua resume returned 1
2025/10/28 08:01:50 [debug] 9176#9176: *612 lua thread yielded
2025/10/28 08:01:50 [debug] 9176#9176: *612 lua run thread returned -2
2025/10/28 08:01:50 [debug] 9176#9176: worker cycle
'
semaphore.t TEST 15: semaphore in body_filter_by_lua (wait not allowed) - grep_error_log_out (req 0) @@ -1,3 +1,4 @@
+sem: timeout,
sem: 1,
sem: API disabled in the context of body_filter_by_lua*,
sem: 1,
semaphore.t TEST 4: basic semaphore in subrequest - pattern "[error]" should not match any line in error.log but matches line "2025/10/28 08:01:52 [error] 9176#9176: *612 [lua] init_worker_by_lua(nginx.conf:26):14: sem: timeout, context: ngx.timer" (req 0) 2025/10/28 08:01:52 [debug] 9176#9176: http lua semaphore wait: 0000000006616118, timeout: 1000, resources: 0, event posted: 0
2025/10/28 08:01:52 [debug] 9176#9176: *612 event timer add: 0: 1000:11405030
2025/10/28 08:01:52 [debug] 9176#9176: http lua semaphore wait yielding
2025/10/28 08:01:52 [debug] 9176#9176: *612 lua resume returned 1
2025/10/28 08:01:52 [debug] 9176#9176: *612 lua thread yielded
2025/10/28 08:01:52 [debug] 9176#9176: *612 lua run thread returned -2
2025/10/28 08:01:52 [debug] 9176#9176: worker cycle
2025/10/28 08:01:52 [debug] 9176#9176: epoll timer: 1000
2025/10/28 08:01:52 [debug] 9583#9583: epoll: fd:6 ev:0001 d:0000000006085F90
'
shared.t TEST 11: shared.expire returns error on not found key - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'failed to set ttl: not found
'
shared.t TEST 11: shared.expire returns error on not found key - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'failed to set ttl: not found
'
stream/errlog-raw-log.t nginx: [error] hello world from init_by_lua
stream/errlog.t TEST 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:2025/10/28 08:07:29 [warn] 5611#5611: *63 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:2025/10/28 08:07:29 [error] 5611#5611: *63 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:2025/10/28 08:07:29 [warn] 5611#5611: *63 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:2025/10/28 08:07:29 [error] 5611#5611: *63 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:2025/10/28 08:07:29 [warn] 5611#5611: *63 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:2025/10/28 08:07:29 [error] 5611#5611: *63 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:2025/10/28 08:07:29 [error] 5611#5611: *63 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:2025/10/28 08:07:29 [error] 5611#5611: *63 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:2025/10/28 08:07:29 [error] 5611#5611: *63 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:2025/10/28 08:07:29 [warn] 5611#5611: *63 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:2025/10/28 08:07:29 [error] 5611#5611: *63 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:2025/10/28 08:07:29 [warn] 5611#5611: *63 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:2025/10/28 08:07:29 [error] 5611#5611: *63 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:2025/10/28 08:07:29 [warn] 5611#5611: *63 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:2025/10/28 08:07:29 [error] 5611#5611: *63 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:2025/10/28 08:07:29 [error] 5611#5611: *63 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:2025/10/28 08:07:29 [error] 5611#5611: *63 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:2025/10/28 08:07:29 [error] 5611#5611: *63 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:2025/10/28 08:07:29 [warn] 5611#5611: *66 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:2025/10/28 08:07:29 [error] 5611#5611: *66 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:2025/10/28 08:07:29 [warn] 5611#5611: *66 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:2025/10/28 08:07:29 [error] 5611#5611: *66 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:2025/10/28 08:07:29 [warn] 5611#5611: *66 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:2025/10/28 08:07:29 [error] 5611#5611: *66 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:2025/10/28 08:07:29 [error] 5611#5611: *66 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:2025/10/28 08:07:29 [error] 5611#5611: *66 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:2025/10/28 08:07:29 [error] 5611#5611: *66 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:2025/10/28 08:07:29 [warn] 5611#5611: *66 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:2025/10/28 08:07:29 [error] 5611#5611: *66 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:2025/10/28 08:07:29 [warn] 5611#5611: *66 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:2025/10/28 08:07:29 [error] 5611#5611: *66 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:2025/10/28 08:07:29 [warn] 5611#5611: *66 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:2025/10/28 08:07:29 [error] 5611#5611: *66 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:2025/10/28 08:07:29 [error] 5611#5611: *66 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:2025/10/28 08:07:29 [error] 5611#5611: *66 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:2025/10/28 08:07:29 [error] 5611#5611: *66 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 18: flood the capturing buffer (5k) - response_body_like - response is expected (log lines: #32 log level:5 log body:2025/10/28 08:07:33 [warn] 5783#5783: *183 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:2025/10/28 08:07:33 [error] 5783#5783: *183 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:2025/10/28 08:07:33 [warn] 5783#5783: *183 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:2025/10/28 08:07:33 [error] 5783#5783: *183 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:2025/10/28 08:07:33 [warn] 5783#5783: *183 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:2025/10/28 08:07:33 [error] 5783#5783: *183 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:2025/10/28 08:07:33 [warn] 5783#5783: *183 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:2025/10/28 08:07:33 [error] 5783#5783: *183 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:2025/10/28 08:07:33 [warn] 5783#5783: *183 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:2025/10/28 08:07:33 [error] 5783#5783: *183 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:2025/10/28 08:07:33 [warn] 5783#5783: *183 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:2025/10/28 08:07:33 [error] 5783#5783: *183 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:2025/10/28 08:07:33 [warn] 5783#5783: *186 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:2025/10/28 08:07:33 [error] 5783#5783: *186 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:2025/10/28 08:07:33 [warn] 5783#5783: *186 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:2025/10/28 08:07:33 [error] 5783#5783: *186 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:2025/10/28 08:07:33 [warn] 5783#5783: *186 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:2025/10/28 08:07:33 [error] 5783#5783: *186 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:2025/10/28 08:07:33 [warn] 5783#5783: *186 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:2025/10/28 08:07:33 [error] 5783#5783: *186 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:2025/10/28 08:07:33 [warn] 5783#5783: *186 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:2025/10/28 08:07:33 [error] 5783#5783: *186 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:2025/10/28 08:07:33 [warn] 5783#5783: *186 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:2025/10/28 08:07:33 [error] 5783#5783: *186 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 number of arguments in "lua_capture_error_log" directive in /home/ec2-user/git/lua-resty-core/t/servroot/conf/nginx.conf:17
stream/errlog.t nginx: [emerg] invalid capture error log size "3k", minimum size is 4096 in /home/ec2-user/git/lua-resty-core/t/servroot/conf/nginx.conf:17
stream/errlog.t TEST 12: filter log by level(ngx.WARN) - response_body - response is expected (repeated req 0, req 0) got: 'log lines:3
'
expected: 'log lines:2
'
stream/errlog.t TEST 3: client connected info - grep_error_log_out (req 0) 'client 127.0.0.1:49260 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:49272 connected to
capture log line:10
'
doesn't match '(?^:^client .*? connected to .*?
capture log line:2
$)'
stream/errlog.t TEST 13: filter log by level(ngx.CRIT) - response_body - response is expected (repeated req 0, req 0) got: 'log lines:1
'
expected: 'log lines:0
'
stream/errlog.t TEST 11: filter log by level(ngx.INFO) - response_body - response is expected (repeated req 0, req 0) got: 'log lines:4
'
expected: 'log lines:3
'
stream/errlog.t TEST 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:2025/10/28 08:07:51 [warn] 6209#6209: *243 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:2025/10/28 08:07:51 [error] 6209#6209: *243 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:2025/10/28 08:07:51 [warn] 6209#6209: *243 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:2025/10/28 08:07:51 [warn] 6209#6209: *243 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:2025/10/28 08:07:51 [error] 6209#6209: *243 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:2025/10/28 08:07:51 [warn] 6209#6209: *243 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:2025/10/28 08:07:51 [error] 6209#6209: *243 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:2025/10/28 08:07:51 [error] 6209#6209: *243 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:2025/10/28 08:07:51 [error] 6209#6209: *243 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:2025/10/28 08:07:51 [warn] 6209#6209: *243 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:2025/10/28 08:07:51 [error] 6209#6209: *243 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:2025/10/28 08:07:51 [warn] 6209#6209: *243 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:2025/10/28 08:07:51 [warn] 6209#6209: *243 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:2025/10/28 08:07:51 [error] 6209#6209: *243 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:2025/10/28 08:07:51 [warn] 6209#6209: *243 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:2025/10/28 08:07:51 [error] 6209#6209: *243 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:2025/10/28 08:07:51 [error] 6209#6209: *243 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:2025/10/28 08:07:51 [error] 6209#6209: *243 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:2025/10/28 08:07:52 [warn] 6209#6209: *246 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:2025/10/28 08:07:52 [error] 6209#6209: *246 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:2025/10/28 08:07:52 [warn] 6209#6209: *246 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:2025/10/28 08:07:52 [warn] 6209#6209: *246 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:2025/10/28 08:07:52 [error] 6209#6209: *246 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:2025/10/28 08:07:52 [warn] 6209#6209: *246 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:2025/10/28 08:07:52 [error] 6209#6209: *246 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:2025/10/28 08:07:52 [error] 6209#6209: *246 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:2025/10/28 08:07:52 [error] 6209#6209: *246 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:2025/10/28 08:07:52 [warn] 6209#6209: *246 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:2025/10/28 08:07:52 [error] 6209#6209: *246 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:2025/10/28 08:07:52 [warn] 6209#6209: *246 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:2025/10/28 08:07:52 [warn] 6209#6209: *246 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:2025/10/28 08:07:52 [error] 6209#6209: *246 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:2025/10/28 08:07:52 [warn] 6209#6209: *246 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:2025/10/28 08:07:52 [error] 6209#6209: *246 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:2025/10/28 08:07:52 [error] 6209#6209: *246 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:2025/10/28 08:07:52 [error] 6209#6209: *246 stream [lua] content_by_lua(nginx.conf:93):26: --> 104, client: 127.0.0.1, server: 0.0.0.0:1985
'
doesn't match '(?^s:\Amsg count: 3
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 84, client: 127.0.0.1, server: 0.0.0.0:\d+
log level:5
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 85, client: 127.0.0.1, server: 0.0.0.0:\d+
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 85, client: 127.0.0.1, server: 0.0.0.0:\d+
msg count: 3
log level:5
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 86, client: 127.0.0.1, server: 0.0.0.0:\d+
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 86, client: 127.0.0.1, server: 0.0.0.0:\d+
log level:5
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 87, client: 127.0.0.1, server: 0.0.0.0:\d+
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 102, client: 127.0.0.1, server: 0.0.0.0:\d+
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 103, client: 127.0.0.1, server: 0.0.0.0:\d+
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 104, client: 127.0.0.1, server: 0.0.0.0:\d+
|msg count: 3
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 84, client: 127.0.0.1, server: 0.0.0.0:\d+
log level:5
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 85, client: 127.0.0.1, server: 0.0.0.0:\d+
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 85, client: 127.0.0.1, server: 0.0.0.0:\d+
msg count: 3
log level:5
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 87, client: 127.0.0.1, server: 0.0.0.0:\d+
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 87, client: 127.0.0.1, server: 0.0.0.0:\d+
log level:5
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 88, client: 127.0.0.1, server: 0.0.0.0:\d+
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 102, client: 127.0.0.1, server: 0.0.0.0:\d+
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 103, client: 127.0.0.1, server: 0.0.0.0:\d+
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 104, client: 127.0.0.1, server: 0.0.0.0:\d+
\z)'
stream/errlog.t TEST 22: user-supplied Lua table to hold the result (get one log + no log) - response_body_like - response is expected (maybe log lines: #2 log level:6 log body:2025/10/28 08:07:52 [notice] 5978#5978: start worker processes log level:4 log body:2025/10/28 08:07:52 [error] 6240#6240: *273 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:2025/10/28 08:07:52 [notice] 5978#5978: start worker processes
log level:4
log body:2025/10/28 08:07:52 [error] 6240#6240: *273 stream [lua] content_by_lua(nginx.conf:75):8: -->
new line, client: 127.0.0.1, server: 0.0.0.0:1985
end
maybe log lines: #2
end
'
doesn't match '(?^s:\Amaybe log lines: #1
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*content_by_lua\(nginx.conf:\d+\):\d+: -->
new line, client: 127.0.0.1, server: 0.0.0.0:\d+
end
maybe log lines: #1
end
\z)'
stream/errlog.t TEST 17: flood the capturing buffer (4k) - response_body_like - response is expected (log lines: #25 log level:4 log body:2025/10/28 08:07:53 [error] 6271#6271: *303 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:2025/10/28 08:07:53 [warn] 6271#6271: *303 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:2025/10/28 08:07:53 [error] 6271#6271: *303 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:2025/10/28 08:07:53 [error] 6271#6271: *303 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:2025/10/28 08:07:53 [warn] 6271#6271: *303 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:2025/10/28 08:07:53 [error] 6271#6271: *303 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:2025/10/28 08:07:53 [error] 6271#6271: *303 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:2025/10/28 08:07:53 [warn] 6271#6271: *303 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:2025/10/28 08:07:53 [error] 6271#6271: *303 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:2025/10/28 08:07:53 [error] 6271#6271: *303 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:2025/10/28 08:07:53 [warn] 6271#6271: *303 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:2025/10/28 08:07:53 [error] 6271#6271: *303 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:2025/10/28 08:07:54 [error] 6271#6271: *306 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:2025/10/28 08:07:54 [warn] 6271#6271: *306 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:2025/10/28 08:07:54 [error] 6271#6271: *306 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:2025/10/28 08:07:54 [error] 6271#6271: *306 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:2025/10/28 08:07:54 [warn] 6271#6271: *306 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:2025/10/28 08:07:54 [error] 6271#6271: *306 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:2025/10/28 08:07:54 [error] 6271#6271: *306 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:2025/10/28 08:07:54 [warn] 6271#6271: *306 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:2025/10/28 08:07:54 [error] 6271#6271: *306 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:2025/10/28 08:07:54 [error] 6271#6271: *306 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:2025/10/28 08:07:54 [warn] 6271#6271: *306 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:2025/10/28 08:07:54 [error] 6271#6271: *306 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 21: multi-line error log - response_body_like - response is expected (log lines: #2 log level:6 log body:2025/10/28 08:07:56 [notice] 5978#5978: start worker processes log level:4 log body:2025/10/28 08:07:57 [error] 6365#6365: *393 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:2025/10/28 08:07:56 [notice] 5978#5978: start worker processes
log level:4
log body:2025/10/28 08:07:57 [error] 6365#6365: *393 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/process-type-hup.t TEST 1: sanity - pattern "init_worker_by_lua:6: process type: privileged" should match a line in error.log (req 0) Looks like you failed 1 test of 8.
stream/process-type-single.t TEST 1: sanity - response_body - response is expected (repeated req 0, req 0) got: "process type: worker\x{0a}"
length: 21
expected: "process type: single\x{0a}"
length: 21
strings begin to differ at char 15 (line 1 column 15)
stream/process-type-single.t TEST 1: sanity - grep_error_log_out (req 0) '[TRACE 1 init_by_lua:31 loop]
[TRACE 2 init_worker_by_lua:4 loop]
[TRACE 2 content_by_lua(nginx.conf:78):4 loop]
process type in init_by_lua*: master
init_worker_by_lua:10: process type: worker
'
doesn't match '(?^:\[TRACE\s+\d+ init_by_lua:\d+ loop\]
\[TRACE\s+\d+ init_worker_by_lua:\d+ loop\]
\[TRACE\s+\d+ content_by_lua\(nginx.conf:\d+\):4 loop\]
process type in init_by_lua\*: single
init_worker_by_lua:10: process type: single
)'
stream/process-type-single.t TEST 1: sanity - response_body - response is expected (repeated req 1, req 0) got: "process type: worker\x{0a}"
length: 21
expected: "process type: single\x{0a}"
length: 21
strings begin to differ at char 15 (line 1 column 15)
stream/process-type-single.t TEST 1: sanity - grep_error_log_out (req 1) '[TRACE 1 init_by_lua:31 loop]
[TRACE 2 init_worker_by_lua:4 loop]
[TRACE 2 content_by_lua(nginx.conf:78):4 loop]
process type in init_by_lua*: master
init_worker_by_lua:10: process type: worker
'
doesn't match '(?^:\[TRACE\s+\d+ init_by_lua:\d+ loop\]
\[TRACE\s+\d+ init_worker_by_lua:\d+ loop\]
\[TRACE\s+\d+ content_by_lua\(nginx.conf:\d+\):4 loop\]
process type in init_by_lua\*: single
init_worker_by_lua:10: process type: single
)'
stream/re-sub.t TEST 5: replace template + submatches (exceeding buffers) ==9706== Invalid read of size 16
==9706== at 0x78A5DAA: ???
==9706== by 0x5E9D94D: ???
==9706== Address 0x5e9d94f is 8,207 bytes inside a block of size 8,220 alloc'd
==9706== at 0x484E1EC: realloc (vg_replace_malloc.c:1801)
==9706== by 0x486CC02: lj_mem_realloc (lj_gc.c:865)
==9706== by 0x486F67A: lj_str_alloc (lj_str.c:302)
==9706== by 0x486F67A: lj_str_new (lj_str.c:386)
==9706== by 0x48D8FA8: lj_buf_str (lj_buf.h:195)
==9706== by 0x48D8FA8: lj_cf_string_rep (lib_string.c:101)
==9706== by 0x4868023: lj_BC_FUNCC (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.1761112883)
==9706== by 0x588880: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:827)
==9706== by 0x5867E2: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:122)
==9706== by 0x5869A5: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==9706== by 0x5862B8: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:204)
==9706== by 0x504C02: ngx_stream_core_content_phase (ngx_stream_core_module.c:468)
==9706== by 0x5046BB: ngx_stream_core_run_phases (ngx_stream_core_module.c:181)
==9706== by 0x502C8F: ngx_stream_session_handler (ngx_stream_handler.c:296)
==9706== by 0x502FAD: ngx_stream_init_connection (ngx_stream_handler.c:205)
==9706== by 0x44DE1D: ngx_event_accept (ngx_event_accept.c:342)
==9706== by 0x4587DC: ngx_epoll_process_events (ngx_epoll_module.c:901)
==9706== by 0x44CE9B: ngx_process_events_and_timers (ngx_event.c:258)
==9706== by 0x456379: ngx_worker_process_cycle (ngx_process_cycle.c:793)
==9706== by 0x454A37: ngx_spawn_process (ngx_process.c:199)
==9706== by 0x4554F9: ngx_start_worker_processes (ngx_process_cycle.c:382)
==9706== by 0x457228: ngx_master_process_cycle (ngx_process_cycle.c:241)
==9706== by 0x42BF5B: main (nginx.c:387)
==9706==
{
<insert_a_suppression_name_here>
Memcheck:Addr16
obj:*
obj:*
}
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 "2025/10/28 08:11:38 [error] 937#937: *679 stream [lua] init_worker_by_lua:14: sem: timeout, context: ngx.timer" (req 0) 2025/10/28 08:11:38 [debug] 937#937: stream lua semaphore wait: 0000000007C96058, timeout: 1000, resources: 0, event posted: 0
2025/10/28 08:11:38 [debug] 937#937: *679 event timer add: 0: 1000:11990767
2025/10/28 08:11:38 [debug] 937#937: stream lua semaphore wait yielding
2025/10/28 08:11:38 [debug] 937#937: *679 lua resume returned 1
2025/10/28 08:11:38 [debug] 937#937: *679 lua thread yielded
2025/10/28 08:11:38 [debug] 937#937: *679 lua run thread returned -2
2025/10/28 08:11:38 [debug] 937#937: worker cycle
2025/10/28 08:11:38 [debug] 937#937: epoll timer: 1000
2025/10/28 08:11:38 [debug] 968#968: stream lua semaphore wait: 0000000007BFE408, timeout: 100, resources: 2, event posted: 0
'
stream/semaphore.t TEST 9: semaphore in content_by_lua (all allowed) - grep_error_log_out (req 0) @@ -1,2 +1,3 @@
sem: timeout,
sem: 1,
+sem: timeout,
stream/semaphore.t TEST 28: basic semaphore count - pattern "[error]" should not match any line in error.log but matches line "2025/10/28 08:11:40 [error] 937#937: *679 stream [lua] init_worker_by_lua:14: sem: timeout, context: ngx.timer" (req 0) 2025/10/28 08:11:40 [error] 937#937: *679 stream [lua] init_worker_by_lua:18: sem: 3 times, context: ngx.timer
2025/10/28 08:11:40 [debug] 937#937: stream lua semaphore wait: 0000000007C96058, timeout: 1000, resources: 0, event posted: 0
2025/10/28 08:11:40 [debug] 937#937: *679 event timer add: 0: 1000:11992769
2025/10/28 08:11:40 [debug] 937#937: stream lua semaphore wait yielding
2025/10/28 08:11:40 [debug] 937#937: *679 lua resume returned 1
2025/10/28 08:11:40 [debug] 937#937: *679 lua thread yielded
2025/10/28 08:11:40 [debug] 937#937: *679 lua run thread returned -2
2025/10/28 08:11:40 [debug] 937#937: worker cycle
'
stream/semaphore.t TEST 28: basic semaphore count - pattern "[error]" should not match any line in error.log but matches line "2025/10/28 08:11:40 [error] 937#937: *679 stream [lua] init_worker_by_lua:18: sem: 3 times, context: ngx.timer" (req 0) 2025/10/28 08:11:40 [debug] 937#937: stream lua semaphore wait: 0000000007C96058, timeout: 1000, resources: 0, event posted: 0
2025/10/28 08:11:40 [debug] 937#937: *679 event timer add: 0: 1000:11992769
2025/10/28 08:11:40 [debug] 937#937: stream lua semaphore wait yielding
2025/10/28 08:11:40 [debug] 937#937: *679 lua resume returned 1
2025/10/28 08:11:40 [debug] 937#937: *679 lua thread yielded
2025/10/28 08:11:40 [debug] 937#937: *679 lua run thread returned -2
2025/10/28 08:11:40 [debug] 937#937: worker cycle
'
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
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
time.t TEST 13: "resty.core.time".monotonic_msec - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +1,2 @@
true
-< 10: true
+< 10: false
time.t TEST 1: ngx.now() - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +1,3 @@
true
>= 0.099: true
-< 0.11: true
+< 0.11: false
worker.t TEST 5: ngx.worker.pids - response_body_like - response is expected (worker pid: 5098 worker pids is wrong. worker pid is correct.) 'worker pid: 5098
worker pids is wrong.
worker pid is correct.
'
doesn't match '(?^s:worker pid: \d+
worker pid is correct\.
)'

Warnings

Go back to the index page.