(This page was automatically generated by the tools in the opsboy project on 09:46:46 03-Nov-2020 GMT.)
Commit | Testing Time | Unexpected Failures |
Expected Failures |
Files | Tests | Elapsed Time |
---|---|---|---|---|---|---|
12abf47c | 2020-10-27 16:11:12 GMT | 135 | 131 | 78 | 8728 | 344 sec |
File | Name | Details |
---|---|---|
balancer-timeout.t | TEST 3: set_timeouts (nil send timeout) - grep_error_log_out (req 0) |
'' doesn't match '(?^:\Aevent timer add: \d+: 1234: event timer add: \d+: 5678: event timer add: \d+: 7689: \z)' |
balancer-timeout.t | TEST 3: set_timeouts (nil send timeout) - grep_error_log_out (req 1) |
'' doesn't match '(?^:\Aevent timer add: \d+: 1234: event timer add: \d+: 5678: event timer add: \d+: 7689: \z)' |
balancer-timeout.t | TEST 4: set_timeouts (nil read timeout) - grep_error_log_out (req 0) |
'' doesn't match '(?^:\Aevent timer add: \d+: 1234: event timer add: \d+: 5678: event timer add: \d+: 7689: \z)' |
balancer-timeout.t | TEST 4: set_timeouts (nil read timeout) - grep_error_log_out (req 1) |
'' doesn't match '(?^:\Aevent timer add: \d+: 1234: event timer add: \d+: 5678: event timer add: \d+: 7689: \z)' |
balancer-timeout.t | TEST 2: set_timeouts (nil connect timeout) - grep_error_log_out (req 0) |
'' doesn't match '(?^:\Aevent timer add: \d+: 1234: event timer add: \d+: 5678: event timer add: \d+: 7689: \z)' |
balancer-timeout.t | TEST 2: set_timeouts (nil connect timeout) - grep_error_log_out (req 1) |
'' doesn't match '(?^:\Aevent timer add: \d+: 1234: event timer add: \d+: 5678: event timer add: \d+: 7689: \z)' |
balancer-timeout.t | TEST 1: set_timeouts - grep_error_log_out (req 0) |
'' doesn't match '(?^:\Aevent timer add: \d+: 1234: event timer add: \d+: 5678: event timer add: \d+: 7689: \z)' |
balancer-timeout.t | TEST 1: set_timeouts - grep_error_log_out (req 1) |
'' doesn't match '(?^:\Aevent timer add: \d+: 1234: event timer add: \d+: 5678: event timer add: \d+: 7689: \z)' |
balancer.t | TEST 11: keepalive after balancer - grep_error_log_out (req 0) |
@@ -1,5 +0,0 @@ -free keepalive peer: saving connection -get keepalive peer: using connection -free keepalive peer: saving connection -get keepalive peer: using connection -free keepalive peer: saving connection ' |
balancer.t | TEST 11: keepalive after balancer - grep_error_log_out (req 1) |
@@ -1,6 +0,0 @@ -get keepalive peer: using connection -free keepalive peer: saving connection -get keepalive peer: using connection -free keepalive peer: saving connection -get keepalive peer: using connection -free keepalive peer: saving connection ' |
ctx.t | TEST 9: ngx.ctx in ssl_session_fetch_by_lua (release ctx when client aborted) - grep_error_log_out (req 1) |
got: "" length: 0 expected: "lua release ngx.ctx at ref 1\x{0a}" length: 29 strings begin to differ at char 1 (line 1 column 1) |
ctx.t | TEST 3: ngx.ctx in ssl_certificate_by_lua - grep_error_log_out (req 0) |
got: "" length: 0 expected: "lua release ngx.ctx at ref 2\x{0a}lua release ngx.ctx a"... length: 87 strings begin to differ at char 1 (line 1 column 1) |
ctx.t | TEST 3: ngx.ctx in ssl_certificate_by_lua - grep_error_log_out (req 1) |
got: "" length: 0 expected: "lua release ngx.ctx at ref 2\x{0a}lua release ngx.ctx a"... length: 174 strings begin to differ at char 1 (line 1 column 1) |
ctx.t | TEST 7: ngx.ctx in ssl_session_store_by_lua (release ctx when client aborted) - grep_error_log_out (req 0) |
got: "" length: 0 expected: "lua release ngx.ctx at ref 1\x{0a}" length: 29 strings begin to differ at char 1 (line 1 column 1) |
ctx.t | TEST 7: ngx.ctx in ssl_session_store_by_lua (release ctx when client aborted) - grep_error_log_out (req 1) |
got: "" length: 0 expected: "lua release ngx.ctx at ref 1\x{0a}lua release ngx.ctx a"... length: 58 strings begin to differ at char 1 (line 1 column 1) |
ctx.t | TEST 6: ngx.ctx in ssl_session_store_by_lua - grep_error_log_out (req 0) |
got: "" length: 0 expected: "lua release ngx.ctx at ref 2\x{0a}lua release ngx.ctx a"... length: 87 strings begin to differ at char 1 (line 1 column 1) |
ctx.t | TEST 6: ngx.ctx in ssl_session_store_by_lua - grep_error_log_out (req 1) |
got: "" length: 0 expected: "lua release ngx.ctx at ref 2\x{0a}lua release ngx.ctx a"... length: 174 strings begin to differ at char 1 (line 1 column 1) |
ctx.t | TEST 10: ngx.ctx in ssl* and other phases - grep_error_log_out (req 0) |
got: "received: 102\x{0a}received: 102\x{0a}" length: 28 expected: "lua release ngx.ctx at ref 2\x{0a}received: 102\x{0a}lua rel"... length: 115 strings begin to differ at char 1 (line 1 column 1) |
ctx.t | TEST 10: ngx.ctx in ssl* and other phases - grep_error_log_out (req 1) |
got: "received: 102\x{0a}received: 102\x{0a}received: 112\x{0a}received"... length: 56 expected: "lua release ngx.ctx at ref 2\x{0a}received: 102\x{0a}lua rel"... length: 230 strings begin to differ at char 1 (line 1 column 1) |
ctx.t | TEST 8: ngx.ctx in ssl_session_fetch_by_lua - grep_error_log_out (req 1) |
got: "received: 42\x{0a}received: 1\x{0a}received: 42\x{0a}received: 1\x{0a}" length: 50 expected: "lua release ngx.ctx at ref 2\x{0a}received: 42\x{0a}received"... length: 137 strings begin to differ at char 1 (line 1 column 1) |
ctx.t | TEST 5: ngx.ctx in ssl_certificate_by_lua (release ctx when client aborted) - grep_error_log_out (req 0) |
got: "" length: 0 expected: "lua release ngx.ctx at ref 1\x{0a}" length: 29 strings begin to differ at char 1 (line 1 column 1) |
ctx.t | TEST 5: ngx.ctx in ssl_certificate_by_lua (release ctx when client aborted) - grep_error_log_out (req 1) |
got: "" length: 0 expected: "lua release ngx.ctx at ref 1\x{0a}lua release ngx.ctx a"... length: 58 strings begin to differ at char 1 (line 1 column 1) |
pipe-stderr.t | TEST 23: read stderr, aborted by uthread kill, with graceful shutdown - response_body - response is expected (repeated req 0, req 0) |
@@ -1,2 +1,18 @@ -stdout: ok +stdout: -stderr err: closed +stderr: nginx: [alert] failed to load the 'resty.core' module (https://github.com/openresty/lua-resty-core); ensure you are using an OpenResty release from https://openresty.org/en/download.html (reason: module 'resty.core' not found: + no field package.preload['resty.core'] + no file './resty/core.lua' + no file '/opt/luajit/share/luajit-2.1.0-beta3/resty/core.lua' + no file '/usr/local/share/lua/5.1/resty/core.lua' + no file '/usr/local/share/lua/5.1/resty/core/init.lua' + no file '/opt/luajit/share/lua/5.1/resty/core.lua' + no file '/opt/luajit/share/lua/5.1/resty/core/init.lua' + no file './resty/core.so' + no file '/usr/local/lib/lua/5.1/resty/core.so' + no file '/opt/luajit/lib/lua/5.1/resty/core.so' + no file '/usr/local/lib/lua/5.1/loadall.so' + no file './resty.so' + no file '/usr/local/lib/lua/5.1/resty.so' + no file '/opt/luajit/lib/lua/5.1/resty.so' + no file '/usr/local/lib/lua/5.1/loadall.so') in /home/ec2-user/git/lua-resty-core/t/servroot/html/nginx.conf:30 + ' |
pipe-stderr.t | TEST 23: read stderr, aborted by uthread kill, with graceful shutdown - response_body - response is expected (repeated req 1, req 0) |
@@ -1,2 +1,18 @@ -stdout: ok +stdout: -stderr err: closed +stderr: nginx: [alert] failed to load the 'resty.core' module (https://github.com/openresty/lua-resty-core); ensure you are using an OpenResty release from https://openresty.org/en/download.html (reason: module 'resty.core' not found: + no field package.preload['resty.core'] + no file './resty/core.lua' + no file '/opt/luajit/share/luajit-2.1.0-beta3/resty/core.lua' + no file '/usr/local/share/lua/5.1/resty/core.lua' + no file '/usr/local/share/lua/5.1/resty/core/init.lua' + no file '/opt/luajit/share/lua/5.1/resty/core.lua' + no file '/opt/luajit/share/lua/5.1/resty/core/init.lua' + no file './resty/core.so' + no file '/usr/local/lib/lua/5.1/resty/core.so' + no file '/opt/luajit/lib/lua/5.1/resty/core.so' + no file '/usr/local/lib/lua/5.1/loadall.so' + no file './resty.so' + no file '/usr/local/lib/lua/5.1/resty.so' + no file '/opt/luajit/lib/lua/5.1/resty.so' + no file '/usr/local/lib/lua/5.1/loadall.so') in /home/ec2-user/git/lua-resty-core/t/servroot/html/nginx.conf:30 + ' |
pipe-stderr.t | TEST 24: spawn process with stderr_read_timeout option - pattern "lua pipe add timer for reading: 100(ms)" should match a line in error.log (req 0) | |
pipe-stderr.t | TEST 24: spawn process with stderr_read_timeout option - pattern "lua pipe add timer for reading: 100(ms)" should match a line in error.log (req 1) | |
pipe-stderr.t | TEST 20: read stdout as stderr, mix read pattern and stdout/stderr, merge_stderr is true - pattern "(?^:lua pipe spawn process:[0-9A-F]+ pid:\d+ merge_stderr:1 buffer_size:4096)" should match a line in error.log (req 0) | |
pipe-stderr.t | TEST 20: read stdout as stderr, mix read pattern and stdout/stderr, merge_stderr is true - pattern "(?^:lua pipe spawn process:[0-9A-F]+ pid:\d+ merge_stderr:1 buffer_size:4096)" should match a line in error.log (req 1) | |
pipe-stderr.t | TEST 15: read stderr, aborted by uthread kill - pattern "lua pipe read process:" should match a line in error.log (req 0) | |
pipe-stderr.t | TEST 15: read stderr, aborted by uthread kill - pattern "lua pipe proc read stderr cleanup" should match a line in error.log (req 0) | |
pipe-stderr.t | TEST 15: read stderr, aborted by uthread kill - pattern "lua pipe read process:" should match a line in error.log (req 1) | |
pipe-stderr.t | TEST 15: read stderr, aborted by uthread kill - pattern "lua pipe proc read stderr cleanup" should match a line in error.log (req 1) | |
pipe-stderr.t | TEST 14: read stderr, timeout - pattern "lua pipe add timer for reading: 100(ms)" should match a line in error.log (req 0) | |
pipe-stderr.t | TEST 14: read stderr, timeout - pattern "lua pipe add timer for reading: 100(ms)" should match a line in error.log (req 1) | |
pipe-stdin.t | TEST 12: spawn process with write_timeout option - pattern "lua pipe add timer for writing: 100(ms)" should match a line in error.log (req 0) | |
pipe-stdin.t | TEST 12: spawn process with write_timeout option - pattern "lua pipe write yielding" should match a line in error.log (req 0) | |
pipe-stdin.t | TEST 12: spawn process with write_timeout option - pattern "lua pipe add timer for writing: 100(ms)" should match a line in error.log (req 1) | |
pipe-stdin.t | TEST 12: spawn process with write_timeout option - pattern "lua pipe write yielding" should match a line in error.log (req 1) | |
pipe-stdin.t | TEST 4: write process, timeout - pattern "lua pipe add timer for writing: 100(ms)" should match a line in error.log (req 0) | |
pipe-stdin.t | TEST 4: write process, timeout - pattern "lua pipe write yielding" should match a line in error.log (req 0) | |
pipe-stdin.t | TEST 4: write process, timeout - pattern "lua pipe add timer for writing: 100(ms)" should match a line in error.log (req 1) | |
pipe-stdin.t | TEST 4: write process, timeout - pattern "lua pipe write yielding" should match a line in error.log (req 1) | |
pipe-stdin.t | TEST 7: write process, aborted by uthread kill - pattern "lua pipe add timer for writing: 100(ms)" should match a line in error.log (req 0) | |
pipe-stdin.t | TEST 7: write process, aborted by uthread kill - pattern "lua pipe write yielding" should match a line in error.log (req 0) | |
pipe-stdin.t | TEST 7: write process, aborted by uthread kill - pattern "lua pipe proc write cleanup" should match a line in error.log (req 0) | |
pipe-stdin.t | TEST 7: write process, aborted by uthread kill - pattern "lua pipe add timer for writing: 100(ms)" should match a line in error.log (req 1) | |
pipe-stdin.t | TEST 7: write process, aborted by uthread kill - pattern "lua pipe write yielding" should match a line in error.log (req 1) | |
pipe-stdin.t | TEST 7: write process, aborted by uthread kill - pattern "lua pipe proc write cleanup" should match a line in error.log (req 1) | |
pipe-stdin.t | TEST 11: write process, aborted by uthread kill, with graceful shutdown - response_body - response is expected (repeated req 0, req 0) |
@@ -1,2 +1,18 @@ -stdout: ok +stdout: -stderr err: closed +stderr: nginx: [alert] failed to load the 'resty.core' module (https://github.com/openresty/lua-resty-core); ensure you are using an OpenResty release from https://openresty.org/en/download.html (reason: module 'resty.core' not found: + no field package.preload['resty.core'] + no file './resty/core.lua' + no file '/opt/luajit/share/luajit-2.1.0-beta3/resty/core.lua' + no file '/usr/local/share/lua/5.1/resty/core.lua' + no file '/usr/local/share/lua/5.1/resty/core/init.lua' + no file '/opt/luajit/share/lua/5.1/resty/core.lua' + no file '/opt/luajit/share/lua/5.1/resty/core/init.lua' + no file './resty/core.so' + no file '/usr/local/lib/lua/5.1/resty/core.so' + no file '/opt/luajit/lib/lua/5.1/resty/core.so' + no file '/usr/local/lib/lua/5.1/loadall.so' + no file './resty.so' + no file '/usr/local/lib/lua/5.1/resty.so' + no file '/opt/luajit/lib/lua/5.1/resty.so' + no file '/usr/local/lib/lua/5.1/loadall.so') in /home/ec2-user/git/lua-resty-core/t/servroot/html/nginx.conf:47 + ' |
pipe-stdin.t | TEST 11: write process, aborted by uthread kill, with graceful shutdown - response_body - response is expected (repeated req 1, req 0) |
@@ -1,2 +1,18 @@ -stdout: ok +stdout: -stderr err: closed +stderr: nginx: [alert] failed to load the 'resty.core' module (https://github.com/openresty/lua-resty-core); ensure you are using an OpenResty release from https://openresty.org/en/download.html (reason: module 'resty.core' not found: + no field package.preload['resty.core'] + no file './resty/core.lua' + no file '/opt/luajit/share/luajit-2.1.0-beta3/resty/core.lua' + no file '/usr/local/share/lua/5.1/resty/core.lua' + no file '/usr/local/share/lua/5.1/resty/core/init.lua' + no file '/opt/luajit/share/lua/5.1/resty/core.lua' + no file '/opt/luajit/share/lua/5.1/resty/core/init.lua' + no file './resty/core.so' + no file '/usr/local/lib/lua/5.1/resty/core.so' + no file '/opt/luajit/lib/lua/5.1/resty/core.so' + no file '/usr/local/lib/lua/5.1/loadall.so' + no file './resty.so' + no file '/usr/local/lib/lua/5.1/resty.so' + no file '/opt/luajit/lib/lua/5.1/resty.so' + no file '/usr/local/lib/lua/5.1/loadall.so') in /home/ec2-user/git/lua-resty-core/t/servroot/html/nginx.conf:47 + ' |
pipe-stdin.t | TEST 2: write process, bad pipe - pattern "(?^:lua pipe write data error pipe:[0-9A-F]+ \(\d+: Broken pipe\))" should match a line in error.log (req 0) | |
pipe-stdin.t | TEST 2: write process, bad pipe - pattern "(?^:lua pipe write data error pipe:[0-9A-F]+ \(\d+: Broken pipe\))" should match a line in error.log (req 1) | |
pipe-stdin.t | TEST 5: write process, yield and write again - pattern "lua pipe write yielding" should match a line in error.log (req 0) | |
pipe-stdin.t | TEST 5: write process, yield and write again - pattern "lua pipe write yielding" should match a line in error.log (req 1) | |
pipe-stdin.t | TEST 6: more than one coroutines write - pattern "lua pipe add timer for writing: 100(ms)" should match a line in error.log (req 0) | |
pipe-stdin.t | TEST 6: more than one coroutines write - pattern "lua pipe write yielding" should match a line in error.log (req 0) | |
pipe-stdin.t | TEST 6: more than one coroutines write - pattern "lua pipe add timer for writing: 100(ms)" should match a line in error.log (req 1) | |
pipe-stdin.t | TEST 6: more than one coroutines write - pattern "lua pipe write yielding" should match a line in error.log (req 1) | |
pipe-stdout.t | TEST 27: read process, aborted by uthread kill - pattern "lua pipe read process:" should match a line in error.log (req 0) | |
pipe-stdout.t | TEST 27: read process, aborted by uthread kill - pattern "lua pipe proc read stdout cleanup" should match a line in error.log (req 0) | |
pipe-stdout.t | TEST 27: read process, aborted by uthread kill - pattern "lua pipe read process:" should match a line in error.log (req 1) | |
pipe-stdout.t | TEST 27: read process, aborted by uthread kill - pattern "lua pipe proc read stdout cleanup" should match a line in error.log (req 1) | |
pipe-stdout.t | TEST 20: read process, with yield, read more partial data than preallocated buffer - pattern "lua pipe read yielding" should match a line in error.log (req 0) | |
pipe-stdout.t | TEST 20: read process, with yield, read more partial data than preallocated buffer - pattern "lua pipe read yielding" should match a line in error.log (req 1) | |
pipe-stdout.t | TEST 26: read process, timeout - pattern "lua pipe add timer for reading: 100(ms)" should match a line in error.log (req 0) | |
pipe-stdout.t | TEST 26: read process, timeout - pattern "lua pipe add timer for reading: 100(ms)" should match a line in error.log (req 1) | |
pipe-stdout.t | TEST 34: spawn process with stdout_read_timeout option - pattern "lua pipe add timer for reading: 100(ms)" should match a line in error.log (req 0) | |
pipe-stdout.t | TEST 34: spawn process with stdout_read_timeout option - pattern "lua pipe add timer for reading: 100(ms)" should match a line in error.log (req 1) | |
pipe-stdout.t | TEST 19: read process, with yield, read more data than preallocated buffer - pattern "lua pipe read yielding" should match a line in error.log (req 0) | |
pipe-stdout.t | TEST 19: read process, with yield, read more data than preallocated buffer - pattern "lua pipe read yielding" should match a line in error.log (req 1) | |
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,18 @@ -stdout: ok +stdout: -stderr err: closed +stderr: nginx: [alert] failed to load the 'resty.core' module (https://github.com/openresty/lua-resty-core); ensure you are using an OpenResty release from https://openresty.org/en/download.html (reason: module 'resty.core' not found: + no field package.preload['resty.core'] + no file './resty/core.lua' + no file '/opt/luajit/share/luajit-2.1.0-beta3/resty/core.lua' + no file '/usr/local/share/lua/5.1/resty/core.lua' + no file '/usr/local/share/lua/5.1/resty/core/init.lua' + no file '/opt/luajit/share/lua/5.1/resty/core.lua' + no file '/opt/luajit/share/lua/5.1/resty/core/init.lua' + no file './resty/core.so' + no file '/usr/local/lib/lua/5.1/resty/core.so' + no file '/opt/luajit/lib/lua/5.1/resty/core.so' + no file '/usr/local/lib/lua/5.1/loadall.so' + no file './resty.so' + no file '/usr/local/lib/lua/5.1/resty.so' + no file '/opt/luajit/lib/lua/5.1/resty.so' + no file '/usr/local/lib/lua/5.1/loadall.so') in /home/ec2-user/git/lua-resty-core/t/servroot/html/nginx.conf:30 + ' |
pipe-stdout.t | TEST 33: read process, aborted by uthread kill, with graceful shutdown - response_body - response is expected (repeated req 1, req 0) |
@@ -1,2 +1,18 @@ -stdout: ok +stdout: -stderr err: closed +stderr: nginx: [alert] failed to load the 'resty.core' module (https://github.com/openresty/lua-resty-core); ensure you are using an OpenResty release from https://openresty.org/en/download.html (reason: module 'resty.core' not found: + no field package.preload['resty.core'] + no file './resty/core.lua' + no file '/opt/luajit/share/luajit-2.1.0-beta3/resty/core.lua' + no file '/usr/local/share/lua/5.1/resty/core.lua' + no file '/usr/local/share/lua/5.1/resty/core/init.lua' + no file '/opt/luajit/share/lua/5.1/resty/core.lua' + no file '/opt/luajit/share/lua/5.1/resty/core/init.lua' + no file './resty/core.so' + no file '/usr/local/lib/lua/5.1/resty/core.so' + no file '/opt/luajit/lib/lua/5.1/resty/core.so' + no file '/usr/local/lib/lua/5.1/loadall.so' + no file './resty.so' + no file '/usr/local/lib/lua/5.1/resty.so' + no file '/opt/luajit/lib/lua/5.1/resty.so' + no file '/usr/local/lib/lua/5.1/loadall.so') in /home/ec2-user/git/lua-resty-core/t/servroot/html/nginx.conf:30 + ' |
pipe.t | TEST 17: wait process, timeout - pattern "lua pipe wait process:" should match a line in error.log (req 0) | |
pipe.t | TEST 17: wait process, timeout - pattern "lua pipe add timer for waiting: 100(ms)" should match a line in error.log (req 0) | |
pipe.t | TEST 17: wait process, timeout - pattern "lua pipe wait process:" should match a line in error.log (req 1) | |
pipe.t | TEST 17: wait process, timeout - pattern "lua pipe add timer for waiting: 100(ms)" should match a line in error.log (req 1) | |
pipe.t | TEST 9: wait process, process killed by signal before waiting - pattern "lua pipe wait process:" should match a line in error.log (req 0) | |
pipe.t | TEST 9: wait process, process killed by signal before waiting - pattern "lua pipe wait process:" should match a line in error.log (req 1) | |
pipe.t | TEST 8: wait process, process exited abnormally before waiting - pattern "lua pipe wait process:" should match a line in error.log (req 0) | |
pipe.t | TEST 8: wait process, process exited abnormally before waiting - pattern "lua pipe wait process:" should match a line in error.log (req 1) | |
pipe.t | TEST 12: wait process, aborted by uthread kill - pattern "lua pipe wait process:" should match a line in error.log (req 0) | |
pipe.t | TEST 12: wait process, aborted by uthread kill - pattern "lua pipe proc wait cleanup" should match a line in error.log (req 0) | |
pipe.t | TEST 12: wait process, aborted by uthread kill - pattern "lua pipe wait process:" should match a line in error.log (req 1) | |
pipe.t | TEST 12: wait process, aborted by uthread kill - pattern "lua pipe proc wait cleanup" should match a line in error.log (req 1) | |
pipe.t | TEST 44: wait process, aborted by uthread kill, with graceful shutdown - response_body - response is expected (repeated req 0, req 0) |
@@ -1,2 +1,18 @@ -stdout: ok +stdout: -stderr err: closed +stderr: nginx: [alert] failed to load the 'resty.core' module (https://github.com/openresty/lua-resty-core); ensure you are using an OpenResty release from https://openresty.org/en/download.html (reason: module 'resty.core' not found: + no field package.preload['resty.core'] + no file './resty/core.lua' + no file '/opt/luajit/share/luajit-2.1.0-beta3/resty/core.lua' + no file '/usr/local/share/lua/5.1/resty/core.lua' + no file '/usr/local/share/lua/5.1/resty/core/init.lua' + no file '/opt/luajit/share/lua/5.1/resty/core.lua' + no file '/opt/luajit/share/lua/5.1/resty/core/init.lua' + no file './resty/core.so' + no file '/usr/local/lib/lua/5.1/resty/core.so' + no file '/opt/luajit/lib/lua/5.1/resty/core.so' + no file '/usr/local/lib/lua/5.1/loadall.so' + no file './resty.so' + no file '/usr/local/lib/lua/5.1/resty.so' + no file '/opt/luajit/lib/lua/5.1/resty.so' + no file '/usr/local/lib/lua/5.1/loadall.so') in /home/ec2-user/git/lua-resty-core/t/servroot/html/nginx.conf:30 + ' |
pipe.t | TEST 44: wait process, aborted by uthread kill, with graceful shutdown - response_body - response is expected (repeated req 1, req 0) |
@@ -1,2 +1,18 @@ -stdout: ok +stdout: -stderr err: closed +stderr: nginx: [alert] failed to load the 'resty.core' module (https://github.com/openresty/lua-resty-core); ensure you are using an OpenResty release from https://openresty.org/en/download.html (reason: module 'resty.core' not found: + no field package.preload['resty.core'] + no file './resty/core.lua' + no file '/opt/luajit/share/luajit-2.1.0-beta3/resty/core.lua' + no file '/usr/local/share/lua/5.1/resty/core.lua' + no file '/usr/local/share/lua/5.1/resty/core/init.lua' + no file '/opt/luajit/share/lua/5.1/resty/core.lua' + no file '/opt/luajit/share/lua/5.1/resty/core/init.lua' + no file './resty/core.so' + no file '/usr/local/lib/lua/5.1/resty/core.so' + no file '/opt/luajit/lib/lua/5.1/resty/core.so' + no file '/usr/local/lib/lua/5.1/loadall.so' + no file './resty.so' + no file '/usr/local/lib/lua/5.1/resty.so' + no file '/opt/luajit/lib/lua/5.1/resty.so' + no file '/usr/local/lib/lua/5.1/loadall.so') in /home/ec2-user/git/lua-resty-core/t/servroot/html/nginx.conf:30 + ' |
pipe.t | TEST 2: spawn process, with buffer_size option - pattern "(?^:lua pipe spawn process:[0-9A-F]+ pid:\d+ merge_stderr:0 buffer_size:256)" should match a line in error.log (req 0) | |
pipe.t | TEST 2: spawn process, with buffer_size option - pattern "(?^:lua pipe spawn process:[0-9A-F]+ pid:\d+ merge_stderr:0 buffer_size:256)" should match a line in error.log (req 1) | |
pipe.t | TEST 33: wait process, process exited normally after waiting - pattern "lua pipe wait process:" should match a line in error.log (req 0) | |
pipe.t | TEST 33: wait process, process exited normally after waiting - pattern "lua pipe wait process:" should match a line in error.log (req 1) | |
pipe.t | TEST 24: shutdown a direction while a coroutine is waiting on it - grep_error_log_out (req 0) |
@@ -1,4 +0,0 @@ -lua pipe read yielding -lua pipe read yielding -lua pipe write yielding -lua pipe write yielding ' |
pipe.t | TEST 24: shutdown a direction while a coroutine is waiting on it - grep_error_log_out (req 1) |
@@ -1,4 +0,0 @@ -lua pipe read yielding -lua pipe read yielding -lua pipe write yielding -lua pipe write yielding ' |
pipe.t | TEST 10: wait process, process exited before waiting - pattern "lua pipe wait process:" should match a line in error.log (req 0) | |
pipe.t | TEST 10: wait process, process exited before waiting - pattern "lua pipe wait process:" should match a line in error.log (req 1) | |
pipe.t | TEST 37: kill living sub-process when the process instance is collected by GC. - pattern "lua pipe destroy process:" should match a line in error.log (req 0) | |
pipe.t | TEST 37: kill living sub-process when the process instance is collected by GC. - pattern "lua pipe kill process:" should match a line in error.log (req 0) | |
pipe.t | TEST 37: kill living sub-process when the process instance is collected by GC. - pattern "lua pipe destroy process:" should match a line in error.log (req 1) | |
pipe.t | TEST 37: kill living sub-process when the process instance is collected by GC. - pattern "lua pipe kill process:" should match a line in error.log (req 1) | |
pipe.t | TEST 42: return nil plus string 'timeout' when waiting process timed out - pattern "lua pipe wait process:" should match a line in error.log (req 0) | |
pipe.t | TEST 42: return nil plus string 'timeout' when waiting process timed out - pattern "lua pipe wait process:" should match a line in error.log (req 1) | |
pipe.t | TEST 3: ensure process is destroyed in GC - pattern "lua pipe destroy process:" should match a line in error.log (req 0) | |
pipe.t | TEST 3: ensure process is destroyed in GC - pattern "lua pipe destroy process:" should match a line in error.log (req 1) | |
re-sub.t | TEST 2: sub, no submatch, no jit compile, no regex cache - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):4 loop\])" should match a line in error.log (req 0) |
Looks like you failed 1 test of 106. |
semaphore.t | TEST 36: basic semaphore_mm free insert head - pattern "add to free queue head" should match a line in error.log (req 0) | |
semaphore.t | TEST 36: basic semaphore_mm free insert head - pattern "add to free queue head" should match a line in error.log (req 1) | |
semaphore.t | TEST 35: basic semaphore_mm free insert tail - pattern "add to free queue tail" should match a line in error.log (req 0) | |
semaphore.t | TEST 35: basic semaphore_mm free insert tail - pattern "add to free queue tail" should match a line in error.log (req 1) | |
semaphore.t | TEST 29: a light thread that is going to exit is waiting on a semaphore - pattern "http lua semaphore cleanup" should match a line in error.log (req 0) | |
semaphore.t | TEST 29: a light thread that is going to exit is waiting on a semaphore - pattern "http lua semaphore cleanup" should match a line in error.log (req 1) | |
semaphore.t | TEST 33: test semaphore gc - pattern "in lua gc, semaphore" should match a line in error.log (req 0) | |
semaphore.t | TEST 33: test semaphore gc - pattern "in lua gc, semaphore" should match a line in error.log (req 1) | |
ssl.t | TEST 14: ngx.semaphore in ssl_certificate_by_lua* - grep_error_log_out (req 0) |
@@ -1,4 +0,0 @@ -http lua semaphore new -http lua semaphore wait -http lua semaphore wait yielding -http lua semaphore post ' |
ssl.t | TEST 14: ngx.semaphore in ssl_certificate_by_lua* - grep_error_log_out (req 1) |
@@ -1,4 +0,0 @@ -http lua semaphore new -http lua semaphore wait -http lua semaphore wait yielding -http lua semaphore post ' |
stream/balancer-timeout.t | TEST 4: set_timeouts (nil read timeout) - grep_error_log_out (req 0) |
'' doesn't match '(?^:\Aevent timer add: \d+: 1234: event timer add: \d+: 5678: \z)' |
stream/balancer-timeout.t | TEST 4: set_timeouts (nil read timeout) - grep_error_log_out (req 1) |
'' doesn't match '(?^:\Aevent timer add: \d+: 1234: event timer add: \d+: 5678: \z)' |
stream/balancer-timeout.t | TEST 1: set_timeouts - grep_error_log_out (req 0) |
'' doesn't match '(?^:\Aevent timer add: \d+: 1234: event timer add: \d+: 7689: \z)' |
stream/balancer-timeout.t | TEST 1: set_timeouts - grep_error_log_out (req 1) |
'' doesn't match '(?^:\Aevent timer add: \d+: 1234: event timer add: \d+: 7689: \z)' |
stream/balancer-timeout.t | TEST 3: set_timeouts (nil send timeout) - grep_error_log_out (req 0) |
'' doesn't match '(?^:\Aevent timer add: \d+: 1234: event timer add: \d+: 7689: \z)' |
stream/balancer-timeout.t | TEST 3: set_timeouts (nil send timeout) - grep_error_log_out (req 1) |
'' doesn't match '(?^:\Aevent timer add: \d+: 1234: event timer add: \d+: 7689: \z)' |
stream/balancer-timeout.t | TEST 2: set_timeouts (nil connect timeout) - grep_error_log_out (req 0) |
'' doesn't match '(?^:\Aevent timer add: \d+: 1234: event timer add: \d+: 7689: \z)' |
stream/balancer-timeout.t | TEST 2: set_timeouts (nil connect timeout) - grep_error_log_out (req 1) |
'' doesn't match '(?^:\Aevent timer add: \d+: 1234: event timer add: \d+: 7689: \z)' |
stream/ctx.t | TEST 3: ngx.ctx in ssl_certificate_by_lua (release ctx when client aborted) - grep_error_log_out (req 0) |
got: '' expected: 'lua release ngx.ctx at ref 1 ' |
stream/ctx.t | TEST 3: ngx.ctx in ssl_certificate_by_lua (release ctx when client aborted) - grep_error_log_out (req 1) |
@@ -1,2 +0,0 @@ -lua release ngx.ctx at ref 1 -lua release ngx.ctx at ref 1 ' |
stream/ctx.t | TEST 1: ngx.ctx in ssl_certificate_by_lua - grep_error_log_out (req 0) |
@@ -1,2 +0,0 @@ -lua release ngx.ctx at ref 2 -lua release ngx.ctx at ref 1 ' |
stream/ctx.t | TEST 1: ngx.ctx in ssl_certificate_by_lua - grep_error_log_out (req 1) |
@@ -1,4 +0,0 @@ -lua release ngx.ctx at ref 2 -lua release ngx.ctx at ref 1 -lua release ngx.ctx at ref 2 -lua release ngx.ctx at ref 1 ' |
stream/semaphore.t | TEST 25: basic semaphore_mm free insert tail - pattern "add to free queue tail" should match a line in error.log (req 0) | |
stream/semaphore.t | TEST 25: basic semaphore_mm free insert tail - pattern "add to free queue tail" should match a line in error.log (req 1) | |
stream/semaphore.t | TEST 23: test semaphore gc - pattern "in lua gc, semaphore" should match a line in error.log (req 0) | |
stream/semaphore.t | TEST 23: test semaphore gc - pattern "in lua gc, semaphore" should match a line in error.log (req 1) | |
stream/semaphore.t | TEST 26: basic semaphore_mm free insert head - pattern "add to free queue head" should match a line in error.log (req 0) | |
stream/semaphore.t | TEST 26: basic semaphore_mm free insert head - pattern "add to free queue head" should match a line in error.log (req 1) | |
stream/semaphore.t | TEST 19: a light thread that is going to exit is waiting on a semaphore - pattern "stream lua semaphore cleanup" should match a line in error.log (req 0) | |
stream/semaphore.t | TEST 19: a light thread that is going to exit is waiting on a semaphore - pattern "stream lua semaphore cleanup" should match a line in error.log (req 1) | |
stream/ssl.t | TEST 14: ngx.semaphore in ssl_certificate_by_lua* - grep_error_log_out (req 0) |
@@ -1,4 +0,0 @@ -stream lua semaphore new -stream lua semaphore wait -stream lua semaphore wait yielding -stream lua semaphore post ' |
stream/ssl.t | TEST 14: ngx.semaphore in ssl_certificate_by_lua* - grep_error_log_out (req 1) |
@@ -1,4 +0,0 @@ -stream lua semaphore new -stream lua semaphore wait -stream lua semaphore wait yielding -stream lua semaphore post ' |
File | Name | Details |
---|---|---|
errlog-raw-log.t | nginx: [error] | hello world from init_by_lua |
errlog.t | TEST 21: multi-line error log - response_body_like - response is expected (log lines: \#10 log level:6 log body:2020/10/27 21:04:23 [notice] 5553\#5553: start worker processes log level:7 log body:2020/10/27 21:04:23 [info] 5616\#5616: *53 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/10/27 21:04:23 [info] 5616\#5616: *54 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/10/27 21:04:23 [info] 5616\#5616: *55 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/10/27 21:04:23 [info] 5616\#5616: *56 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/10/27 21:04:23 [info] 5616\#5616: *57 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/10/27 21:04:23 [info] 5616\#5616: *58 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/10/27 21:04:23 [info] 5616\#5616: *59 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/10/27 21:04:23 [info] 5616\#5616: *60 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/10/27 21:04:23 [info] 5616\#5616: *61 client 127.0.0.1 closed keepalive connection) |
'log lines: #10 log level:6 log body:2020/10/27 21:04:23 [notice] 5553#5553: start worker processes log level:7 log body:2020/10/27 21:04:23 [info] 5616#5616: *53 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/10/27 21:04:23 [info] 5616#5616: *54 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/10/27 21:04:23 [info] 5616#5616: *55 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/10/27 21:04:23 [info] 5616#5616: *56 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/10/27 21:04:23 [info] 5616#5616: *57 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/10/27 21:04:23 [info] 5616#5616: *58 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/10/27 21:04:23 [info] 5616#5616: *59 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/10/27 21:04:23 [info] 5616#5616: *60 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/10/27 21:04:23 [info] 5616#5616: *61 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:2020/10/27 21:04:23 [info] 5616\#5616: *62 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/10/27 21:04:23 [info] 5616\#5616: *63 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/10/27 21:04:23 [info] 5616\#5616: *64 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/10/27 21:04:23 [info] 5616\#5616: *65 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/10/27 21:04:23 [info] 5616\#5616: *66 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/10/27 21:04:23 [info] 5616\#5616: *67 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/10/27 21:04:23 [info] 5616\#5616: *68 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/10/27 21:04:23 [info] 5616\#5616: *69 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/10/27 21:04:23 [info] 5616\#5616: *70 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/10/27 21:04:23 [info] 5616\#5616: *71 client 127.0.0.1 closed keepalive connection) |
'log lines: #10 log level:7 log body:2020/10/27 21:04:23 [info] 5616#5616: *62 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/10/27 21:04:23 [info] 5616#5616: *63 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/10/27 21:04:23 [info] 5616#5616: *64 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/10/27 21:04:23 [info] 5616#5616: *65 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/10/27 21:04:23 [info] 5616#5616: *66 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/10/27 21:04:23 [info] 5616#5616: *67 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/10/27 21:04:23 [info] 5616#5616: *68 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/10/27 21:04:23 [info] 5616#5616: *69 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/10/27 21:04:23 [info] 5616#5616: *70 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/10/27 21:04:23 [info] 5616#5616: *71 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 11: filter log by level(ngx.INFO) - response_body - response is expected (repeated req 0, req 0) |
got: 'log lines:10 ' expected: 'log lines:3 ' |
errlog.t | TEST 11: filter log by level(ngx.INFO) - response_body - response is expected (repeated req 1, req 0) |
got: 'log lines:10 ' expected: 'log lines:3 ' |
errlog.t | nginx: [emerg] | invalid number of arguments in "lua_capture_error_log" directive in /home/ec2-user/git/lua-resty-core/t/servroot/conf/nginx.conf:25 |
errlog.t | nginx: [emerg] | invalid capture error log size "3k", minimum size is 4096 in /home/ec2-user/git/lua-resty-core/t/servroot/conf/nginx.conf:25 |
errlog.t | TEST 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 16: check the captured error log body - response_body_like - response is expected (log level:6 log body:2020/10/27 21:04:26 [notice] 5735\#5735: start worker processes log level:7 log body:2020/10/27 21:04:26 [info] 5882\#5882: *125 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/10/27 21:04:26 [info] 5882\#5882: *126 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/10/27 21:04:26 [info] 5882\#5882: *127 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/10/27 21:04:26 [info] 5882\#5882: *128 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/10/27 21:04:26 [info] 5882\#5882: *129 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/10/27 21:04:26 [info] 5882\#5882: *130 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/10/27 21:04:26 [info] 5882\#5882: *131 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/10/27 21:04:26 [info] 5882\#5882: *132 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/10/27 21:04:26 [info] 5882\#5882: *133 client 127.0.0.1 closed keepalive connection) |
'log level:6 log body:2020/10/27 21:04:26 [notice] 5735#5735: start worker processes log level:7 log body:2020/10/27 21:04:26 [info] 5882#5882: *125 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/10/27 21:04:26 [info] 5882#5882: *126 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/10/27 21:04:26 [info] 5882#5882: *127 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/10/27 21:04:26 [info] 5882#5882: *128 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/10/27 21:04:26 [info] 5882#5882: *129 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/10/27 21:04:26 [info] 5882#5882: *130 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/10/27 21:04:26 [info] 5882#5882: *131 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/10/27 21:04:26 [info] 5882#5882: *132 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/10/27 21:04:26 [info] 5882#5882: *133 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:2020/10/27 21:04:26 [info] 5882\#5882: *134 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/10/27 21:04:26 [info] 5882\#5882: *135 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/10/27 21:04:26 [info] 5882\#5882: *136 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/10/27 21:04:26 [info] 5882\#5882: *137 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/10/27 21:04:26 [info] 5882\#5882: *138 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/10/27 21:04:26 [info] 5882\#5882: *139 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/10/27 21:04:26 [info] 5882\#5882: *140 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/10/27 21:04:26 [info] 5882\#5882: *141 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/10/27 21:04:26 [info] 5882\#5882: *142 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/10/27 21:04:26 [info] 5882\#5882: *143 client 127.0.0.1 closed keepalive connection) |
'log level:7 log body:2020/10/27 21:04:26 [info] 5882#5882: *134 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/10/27 21:04:26 [info] 5882#5882: *135 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/10/27 21:04:26 [info] 5882#5882: *136 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/10/27 21:04:26 [info] 5882#5882: *137 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/10/27 21:04:26 [info] 5882#5882: *138 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/10/27 21:04:26 [info] 5882#5882: *139 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/10/27 21:04:26 [info] 5882#5882: *140 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/10/27 21:04:26 [info] 5882#5882: *141 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/10/27 21:04:26 [info] 5882#5882: *142 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/10/27 21:04:26 [info] 5882#5882: *143 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 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 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 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:2020/10/27 21:04:31 [notice] 5735\#5735: start worker processes log level:7 log body:2020/10/27 21:04:31 [info] 6276\#6276: *462 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/10/27 21:04:31 [info] 6276\#6276: *463 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/10/27 21:04:31 [info] 6276\#6276: *464 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/10/27 21:04:31 [info] 6276\#6276: *465 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/10/27 21:04:31 [info] 6276\#6276: *466 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/10/27 21:04:31 [info] 6276\#6276: *467 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/10/27 21:04:31 [info] 6276\#6276: *468 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/10/27 21:04:31 [info] 6276\#6276: *469 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/10/27 21:04:31 [info] 6276\#6276: *470 client 127.0.0.1 closed keepalive connection end maybe log lines: \#10 log level:7 log body:2020/10/27 21:04:31 [info] 6276\#6276: *471 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/10/27 21:04:31 [info] 6276\#6276: *472 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/10/27 21:04:31 [info] 6276\#6276: *473 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/10/27 21:04:31 [info] 6276\#6276: *474 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/10/27 21:04:31 [info] 6276\#6276: *475 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/10/27 21:04:31 [info] 6276\#6276: *476 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/10/27 21:04:31 [info] 6276\#6276: *477 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/10/27 21:04:31 [info] 6276\#6276: *478 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/10/27 21:04:31 [info] 6276\#6276: *479 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/10/27 21:04:31 [info] 6276\#6276: *480 client 127.0.0.1 closed keepalive connection end) |
'maybe log lines: #10 log level:6 log body:2020/10/27 21:04:31 [notice] 5735#5735: start worker processes log level:7 log body:2020/10/27 21:04:31 [info] 6276#6276: *462 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/10/27 21:04:31 [info] 6276#6276: *463 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/10/27 21:04:31 [info] 6276#6276: *464 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/10/27 21:04:31 [info] 6276#6276: *465 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/10/27 21:04:31 [info] 6276#6276: *466 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/10/27 21:04:31 [info] 6276#6276: *467 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/10/27 21:04:31 [info] 6276#6276: *468 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/10/27 21:04:31 [info] 6276#6276: *469 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/10/27 21:04:31 [info] 6276#6276: *470 client 127.0.0.1 closed keepalive connection end maybe log lines: #10 log level:7 log body:2020/10/27 21:04:31 [info] 6276#6276: *471 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/10/27 21:04:31 [info] 6276#6276: *472 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/10/27 21:04:31 [info] 6276#6276: *473 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/10/27 21:04:31 [info] 6276#6276: *474 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/10/27 21:04:31 [info] 6276#6276: *475 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/10/27 21:04:31 [info] 6276#6276: *476 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/10/27 21:04:31 [info] 6276#6276: *477 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/10/27 21:04:31 [info] 6276#6276: *478 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/10/27 21:04:31 [info] 6276#6276: *479 client 127.0.0.1 closed keepalive connection log level:7 log body:2020/10/27 21:04:31 [info] 6276#6276: *480 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:2020/10/27 21:04:31 [info] 6276\#6276: *481 client 127.0.0.1 closed keepalive connection log level:4 log body:2020/10/27 21:04:31 [error] 6276\#6276: *482 [lua] access_by_lua(nginx.conf:66):8: --> new line, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level:4 log body:2020/10/27 21:04:31 [error] 6276\#6276: *483 [lua] access_by_lua(nginx.conf:66):8: --> new line, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" end maybe log lines: \#3 end) |
'maybe log lines: #3 log level:7 log body:2020/10/27 21:04:31 [info] 6276#6276: *481 client 127.0.0.1 closed keepalive connection log level:4 log body:2020/10/27 21:04:31 [error] 6276#6276: *482 [lua] access_by_lua(nginx.conf:66):8: --> new line, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level:4 log body:2020/10/27 21:04:31 [error] 6276#6276: *483 [lua] access_by_lua(nginx.conf:66):8: --> new line, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" end maybe log lines: #3 end ' doesn't match '(?^s:\Amaybe log lines: #1 log level:4 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*access_by_lua\(nginx.conf:\d+\):\d+: --> new line, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" end maybe log lines: #1 end \z)' |
ocsp.t | TEST 4: get OCSP responder (issuer cert not next to the leaf cert) - pattern "lua ssl server name: "test.com"" should match a line in error.log (req 0) | |
ocsp.t | TEST 4: get OCSP responder (issuer cert not next to the leaf cert) - pattern "lua ssl server name: "test.com"" should match a line in error.log (req 1) | |
ocsp.t | TEST 11: fail to validate OCSP response - no issuer cert - pattern "lua ssl server name: "test.com"" should match a line in error.log (req 0) | |
ocsp.t | TEST 11: fail to validate OCSP response - no issuer cert - pattern "lua ssl server name: "test.com"" should match a line in error.log (req 1) | |
ocsp.t | TEST 12: validate good OCSP response - no certs in response - pattern "lua ssl server name: "test.com"" should match a line in error.log (req 0) | |
ocsp.t | TEST 12: validate good OCSP response - no certs in response - pattern "lua ssl server name: "test.com"" should match a line in error.log (req 1) | |
ocsp.t | TEST 16: good status req from client - pattern "lua ssl server name: "test.com"" should match a line in error.log (req 0) | |
ocsp.t | TEST 16: good status req from client - pattern "lua ssl server name: "test.com"" should match a line in error.log (req 1) | |
ocsp.t | TEST 2: get OCSP responder (not found) - pattern "lua ssl server name: "test.com"" should match a line in error.log (req 0) | |
ocsp.t | TEST 2: get OCSP responder (not found) - pattern "lua ssl server name: "test.com"" should match a line in error.log (req 1) | |
ocsp.t | TEST 13: validate OCSP response - OCSP response signed by an unknown cert and the OCSP response contains the unknown cert - pattern "lua ssl server name: "test.com"" should match a line in error.log (req 0) | |
ocsp.t | TEST 13: validate OCSP response - OCSP response signed by an unknown cert and the OCSP response contains the unknown cert - pattern "lua ssl server name: "test.com"" should match a line in error.log (req 1) | |
ocsp.t | TEST 8: create OCSP request (empty string cert chain) - pattern "lua ssl server name: "test.com"" should match a line in error.log (req 0) | |
ocsp.t | TEST 8: create OCSP request (empty string cert chain) - pattern "lua ssl server name: "test.com"" should match a line in error.log (req 1) | |
ocsp.t | TEST 5: get OCSP responder (truncated) - pattern "lua ssl server name: "test.com"" should match a line in error.log (req 0) | |
ocsp.t | TEST 5: get OCSP responder (truncated) - pattern "lua ssl server name: "test.com"" should match a line in error.log (req 1) | |
ocsp.t | TEST 15: fail to validate OCSP response - OCSP response returns revoked status - pattern "lua ssl server name: "test.com"" should match a line in error.log (req 0) | |
ocsp.t | TEST 15: fail to validate OCSP response - OCSP response returns revoked status - pattern "lua ssl server name: "test.com"" should match a line in error.log (req 1) | |
ocsp.t | TEST 17: no status req from client - pattern "lua ssl server name: "test.com"" should match a line in error.log (req 0) | |
ocsp.t | TEST 17: no status req from client - pattern "lua ssl server name: "test.com"" should match a line in error.log (req 1) | |
ocsp.t | TEST 14: fail to validate OCSP response - OCSP response signed by an unknown cert and the OCSP response does not contain the unknown cert - pattern "lua ssl server name: "test.com"" should match a line in error.log (req 0) | |
ocsp.t | TEST 14: fail to validate OCSP response - OCSP response signed by an unknown cert and the OCSP response does not contain the unknown cert - pattern "lua ssl server name: "test.com"" should match a line in error.log (req 1) | |
ocsp.t | TEST 1: get OCSP responder (good case) - pattern "lua ssl server name: "test.com"" should match a line in error.log (req 0) | |
ocsp.t | TEST 1: get OCSP responder (good case) - pattern "lua ssl server name: "test.com"" should match a line in error.log (req 1) | |
ocsp.t | TEST 7: create OCSP request (buffer too small) - pattern "lua ssl server name: "test.com"" should match a line in error.log (req 0) | |
ocsp.t | TEST 7: create OCSP request (buffer too small) - pattern "lua ssl server name: "test.com"" should match a line in error.log (req 1) | |
ocsp.t | TEST 3: get OCSP responder (no issuer cert at all) - pattern "lua ssl server name: "test.com"" should match a line in error.log (req 0) | |
ocsp.t | TEST 3: get OCSP responder (no issuer cert at all) - pattern "lua ssl server name: "test.com"" should match a line in error.log (req 1) | |
ocsp.t | TEST 9: create OCSP request (no issuer cert in the chain) - pattern "lua ssl server name: "test.com"" should match a line in error.log (req 0) | |
ocsp.t | TEST 9: create OCSP request (no issuer cert in the chain) - pattern "lua ssl server name: "test.com"" should match a line in error.log (req 1) | |
ocsp.t | TEST 6: create OCSP request (good) - pattern "lua ssl server name: "test.com"" should match a line in error.log (req 0) | |
ocsp.t | TEST 6: create OCSP request (good) - pattern "lua ssl server name: "test.com"" should match a line in error.log (req 1) | |
ocsp.t | TEST 10: validate good OCSP response - pattern "lua ssl server name: "test.com"" should match a line in error.log (req 0) | |
ocsp.t | TEST 10: validate good OCSP response - pattern "lua ssl server name: "test.com"" should match a line in error.log (req 1) | |
process-type-single.t | TEST 1: sanity - response_body - response is expected (repeated req 0, req 0) |
got: "process type: worker\x{0a}" length: 21 expected: "process type: single\x{0a}" length: 21 strings begin to differ at char 15 (line 1 column 15) |
process-type-single.t | TEST 1: sanity - grep_error_log_out (req 0) |
'[TRACE 1 init_by_lua:18 loop] [TRACE 2 init_worker_by_lua:4 loop] [TRACE 2 content_by_lua(nginx.conf:84):4 loop] process type in init_by_lua*: master init_worker_by_lua:10: process type: worker ' doesn't match '(?^:\[TRACE\s+\d+ init_by_lua:\d+ loop\] \[TRACE\s+\d+ init_worker_by_lua:\d+ loop\] \[TRACE\s+\d+ content_by_lua\(nginx.conf:\d+\):4 loop\] process type in init_by_lua\*: single init_worker_by_lua:10: process type: single )' |
process-type-single.t | TEST 1: sanity - response_body - response is expected (repeated req 1, req 0) |
got: "process type: worker\x{0a}" length: 21 expected: "process type: single\x{0a}" length: 21 strings begin to differ at char 15 (line 1 column 15) |
process-type-single.t | TEST 1: sanity - grep_error_log_out (req 1) |
'[TRACE 1 init_by_lua:18 loop] [TRACE 2 init_worker_by_lua:4 loop] [TRACE 2 content_by_lua(nginx.conf:84):4 loop] process type in init_by_lua*: master init_worker_by_lua:10: process type: worker ' doesn't match '(?^:\[TRACE\s+\d+ init_by_lua:\d+ loop\] \[TRACE\s+\d+ init_worker_by_lua:\d+ loop\] \[TRACE\s+\d+ content_by_lua\(nginx.conf:\d+\):4 loop\] process type in init_by_lua\*: single init_worker_by_lua:10: process type: single )' |
semaphore.t | TEST 37: semaphore_mm free block (load <= 50% & the on the older side) - grep_error_log_out (req 1) |
got: '' expected: 'free semaphore block ' |
semaphore.t | TEST 14: semaphore in header_filter_by_lua (wait not allowed) - grep_error_log_out (req 0) |
@@ -1,2 +1,3 @@ +sem: timeout, sem: 1, sem: API disabled in the context of header_filter_by_lua*, ' |
semaphore.t | TEST 22: semaphore post in body_filter_by_lua (subrequest) - pattern "[error]" should not match any line in error.log but matches line "2020/10/27 21:07:09 [error] 16342\#16342: *560 [lua] init_worker_by_lua:14: sem: timeout, context: ngx.timer" (req 0) |
2020/10/27 21:07:09 [notice] 16482\#16482: gracefully shutting down 2020/10/27 21:07:09 [notice] 16482\#16482: exiting 2020/10/27 21:07:09 [notice] 16482\#16482: exit 2020/10/27 21:07:09 [notice] 15691\#15691: signal 17 (SIGCHLD) received from 16482 2020/10/27 21:07:09 [notice] 15691\#15691: worker process 16482 exited with code 0 2020/10/27 21:07:09 [notice] 15691\#15691: signal 29 (SIGIO) received 2020/10/27 21:07:09 [info] 16510\#16510: *707 client 127.0.0.1 closed keepalive connection 2020/10/27 21:07:09 [info] 16510\#16510: *708 client 127.0.0.1 closed keepalive connection 2020/10/27 21:07:09 [info] 16510\#16510: *709 client 127.0.0.1 closed keepalive connection ' |
semaphore.t | TEST 40: bugfix: semaphore instance can't be garbage collected when someone is waiting on it - pattern "[error]" should not match any line in error.log but matches line "2020/10/27 21:07:10 [error] 16342\#16342: *560 [lua] init_worker_by_lua:14: sem: timeout, context: ngx.timer" (req 0) |
2020/10/27 21:07:10 [info] 16538\#16538: *755 client 127.0.0.1 closed keepalive connection 2020/10/27 21:07:10 [info] 16538\#16538: *756 client 127.0.0.1 closed keepalive connection 2020/10/27 21:07:10 [notice] 16538\#16538: gracefully shutting down 2020/10/27 21:07:10 [notice] 16538\#16538: exiting 2020/10/27 21:07:10 [notice] 16538\#16538: exit 2020/10/27 21:07:10 [notice] 15691\#15691: signal 17 (SIGCHLD) received from 16538 2020/10/27 21:07:10 [notice] 15691\#15691: worker process 16538 exited with code 0 2020/10/27 21:07:10 [notice] 15691\#15691: signal 29 (SIGIO) received 2020/10/27 21:07:10 [info] 16566\#16566: *757 client 127.0.0.1 closed keepalive connection ' |
semaphore.t | TEST 34: basic semaphore_mm alloc - grep_error_log_out (req 0) |
got: '' expected: 'new block, alloc semaphore ' |
semaphore.t | TEST 34: basic semaphore_mm alloc - grep_error_log_out (req 1) |
got: '' expected: 'from head of free queue, alloc semaphore ' |
semaphore.t | TEST 11: semaphore in access_by_lua (all allowed) - grep_error_log_out (req 0) |
@@ -1,2 +1,4 @@ sem: timeout, +sem: 6 times, +sem: timeout, sem: 1, ' |
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 ' |
ssl.t | TEST 8: set DER cert chain - pattern "lua ssl server name: "test.com"" should match a line in error.log (req 0) | |
ssl.t | TEST 8: set DER cert chain - pattern "lua ssl server name: "test.com"" should match a line in error.log (req 1) | |
ssl.t | TEST 15: read PEM key chain but set DER key chain - pattern "lua ssl server name: "test.com"" should match a line in error.log (req 0) | |
ssl.t | TEST 15: read PEM key chain but set DER key chain - pattern "lua ssl server name: "test.com"" should match a line in error.log (req 1) | |
ssl.t | TEST 1: clear certs - pattern "lua ssl server name: "test.com"" should match a line in error.log (req 0) | |
ssl.t | TEST 1: clear certs - pattern "lua ssl server name: "test.com"" should match a line in error.log (req 1) | |
ssl.t | TEST 3: read SNI name via ssl.server_name() - pattern "lua ssl server name: "test.com"" should match a line in error.log (req 0) | |
ssl.t | TEST 3: read SNI name via ssl.server_name() - pattern "lua ssl server name: "test.com"" should match a line in error.log (req 1) | |
ssl.t | TEST 5: read raw server addr via ssl.raw_server_addr() (unix domain socket) - pattern "lua ssl server name: "test.com"" should match a line in error.log (req 0) | |
ssl.t | TEST 5: read raw server addr via ssl.raw_server_addr() (unix domain socket) - pattern "lua ssl server name: "test.com"" should match a line in error.log (req 1) | |
ssl.t | TEST 6: read raw server addr via ssl.raw_server_addr() (IPv4) - pattern "lua ssl server name: "test.com"" should match a line in error.log (req 0) | |
ssl.t | TEST 6: read raw server addr via ssl.raw_server_addr() (IPv4) - pattern "lua ssl server name: "test.com"" should match a line in error.log (req 1) | |
ssl.t | TEST 16: parse PEM cert and key to cdata - pattern "lua ssl server name: "test.com"" should match a line in error.log (req 0) | |
ssl.t | TEST 16: parse PEM cert and key to cdata - pattern "lua ssl server name: "test.com"" should match a line in error.log (req 1) | |
ssl.t | TEST 7: read raw server addr via ssl.raw_server_addr() (IPv6) - pattern "lua ssl server name: "test.com"" should match a line in error.log (req 0) | |
ssl.t | TEST 7: read raw server addr via ssl.raw_server_addr() (IPv6) - pattern "lua ssl server name: "test.com"" should match a line in error.log (req 1) | |
ssl.t | TEST 9: read PEM cert chain but set DER cert chain - pattern "lua ssl server name: "test.com"" should match a line in error.log (req 0) | |
ssl.t | TEST 9: read PEM cert chain but set DER cert chain - pattern "lua ssl server name: "test.com"" should match a line in error.log (req 1) | |
ssl.t | TEST 2: set DER cert and private key - pattern "lua ssl server name: "test.com"" should match a line in error.log (req 0) | |
ssl.t | TEST 2: set DER cert and private key - pattern "lua ssl server name: "test.com"" should match a line in error.log (req 1) | |
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:2020/10/27 21:08:08 [notice] 21045\#21045: start worker processes log level:4 log body:2020/10/27 21:08:08 [error] 21052\#21052: *31 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:2020/10/27 21:08:08 [notice] 21045#21045: start worker processes log level:4 log body:2020/10/27 21:08:08 [error] 21052#21052: *31 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 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:2020/10/27 21:08:08 [warn] 21080\#21080: *59 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:2020/10/27 21:08:08 [error] 21080\#21080: *59 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:2020/10/27 21:08:08 [warn] 21080\#21080: *59 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:2020/10/27 21:08:08 [error] 21080\#21080: *59 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:2020/10/27 21:08:08 [warn] 21080\#21080: *59 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:2020/10/27 21:08:08 [error] 21080\#21080: *59 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:2020/10/27 21:08:08 [error] 21080\#21080: *59 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:2020/10/27 21:08:08 [error] 21080\#21080: *59 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:2020/10/27 21:08:08 [error] 21080\#21080: *59 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:2020/10/27 21:08:08 [warn] 21080#21080: *59 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:2020/10/27 21:08:08 [error] 21080#21080: *59 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:2020/10/27 21:08:08 [warn] 21080#21080: *59 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:2020/10/27 21:08:08 [error] 21080#21080: *59 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:2020/10/27 21:08:08 [warn] 21080#21080: *59 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:2020/10/27 21:08:08 [error] 21080#21080: *59 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:2020/10/27 21:08:08 [error] 21080#21080: *59 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:2020/10/27 21:08:08 [error] 21080#21080: *59 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:2020/10/27 21:08:08 [error] 21080#21080: *59 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:2020/10/27 21:08:08 [warn] 21080\#21080: *62 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:2020/10/27 21:08:08 [error] 21080\#21080: *62 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:2020/10/27 21:08:08 [warn] 21080\#21080: *62 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:2020/10/27 21:08:08 [error] 21080\#21080: *62 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:2020/10/27 21:08:08 [warn] 21080\#21080: *62 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:2020/10/27 21:08:08 [error] 21080\#21080: *62 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:2020/10/27 21:08:08 [error] 21080\#21080: *62 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:2020/10/27 21:08:08 [error] 21080\#21080: *62 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:2020/10/27 21:08:08 [error] 21080\#21080: *62 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:2020/10/27 21:08:08 [warn] 21080#21080: *62 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:2020/10/27 21:08:08 [error] 21080#21080: *62 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:2020/10/27 21:08:08 [warn] 21080#21080: *62 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:2020/10/27 21:08:08 [error] 21080#21080: *62 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:2020/10/27 21:08:08 [warn] 21080#21080: *62 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:2020/10/27 21:08:08 [error] 21080#21080: *62 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:2020/10/27 21:08:08 [error] 21080#21080: *62 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:2020/10/27 21:08:08 [error] 21080#21080: *62 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:2020/10/27 21:08:08 [error] 21080#21080: *62 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 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 18: flood the capturing buffer (5k) - response_body_like - response is expected (log lines: \#31 log level:4 log body:2020/10/27 21:08:09 [error] 21164\#21164: *143 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:2020/10/27 21:08:09 [warn] 21164\#21164: *143 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:2020/10/27 21:08:09 [error] 21164\#21164: *143 stream [lua] content_by_lua(nginx.conf:78):11: --> 86, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2020/10/27 21:08:09 [error] 21164\#21164: *143 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:2020/10/27 21:08:09 [warn] 21164\#21164: *143 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:2020/10/27 21:08:09 [error] 21164\#21164: *143 stream [lua] content_by_lua(nginx.conf:78):11: --> 100, client: 127.0.0.1, server: 0.0.0.0:1985) |
'log lines: #31 log level:4 log body:2020/10/27 21:08:09 [error] 21164#21164: *143 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:2020/10/27 21:08:09 [warn] 21164#21164: *143 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:2020/10/27 21:08:09 [error] 21164#21164: *143 stream [lua] content_by_lua(nginx.conf:78):11: --> 86, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2020/10/27 21:08:09 [error] 21164#21164: *143 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:2020/10/27 21:08:09 [warn] 21164#21164: *143 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:2020/10/27 21:08:09 [error] 21164#21164: *143 stream [lua] content_by_lua(nginx.conf:78):11: --> 100, client: 127.0.0.1, server: 0.0.0.0:1985 ' doesn't match '(?^s:\A(?:log lines: #33 log level:4 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*content_by_lua\(nginx.conf:\d+\):\d+: --> 84, client: 127.0.0.1, server: 0.0.0.0:\d+ log level:5 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*content_by_lua\(nginx.conf:\d+\):\d+: --> 85, client: 127.0.0.1, server: 0.0.0.0:\d+ log level:4 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*content_by_lua\(nginx.conf:\d+\):\d+: --> 85, client: 127.0.0.1, server: 0.0.0.0:\d+ log level:4 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*content_by_lua\(nginx.conf:\d+\):\d+: --> 99, client: 127.0.0.1, server: 0.0.0.0:\d+ log level:5 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*content_by_lua\(nginx.conf:\d+\):\d+: --> 100, client: 127.0.0.1, server: 0.0.0.0:\d+ log level:4 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*content_by_lua\(nginx.conf:\d+\):\d+: --> 100, client: 127.0.0.1, server: 0.0.0.0:\d+ )\z)' |
stream/errlog.t | TEST 18: flood the capturing buffer (5k) - response_body_like - response is expected (log lines: \#31 log level:4 log body:2020/10/27 21:08:09 [error] 21164\#21164: *146 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:2020/10/27 21:08:09 [warn] 21164\#21164: *146 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:2020/10/27 21:08:09 [error] 21164\#21164: *146 stream [lua] content_by_lua(nginx.conf:78):11: --> 86, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2020/10/27 21:08:09 [error] 21164\#21164: *146 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:2020/10/27 21:08:09 [warn] 21164\#21164: *146 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:2020/10/27 21:08:09 [error] 21164\#21164: *146 stream [lua] content_by_lua(nginx.conf:78):11: --> 100, client: 127.0.0.1, server: 0.0.0.0:1985) |
'log lines: #31 log level:4 log body:2020/10/27 21:08:09 [error] 21164#21164: *146 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:2020/10/27 21:08:09 [warn] 21164#21164: *146 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:2020/10/27 21:08:09 [error] 21164#21164: *146 stream [lua] content_by_lua(nginx.conf:78):11: --> 86, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2020/10/27 21:08:09 [error] 21164#21164: *146 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:2020/10/27 21:08:09 [warn] 21164#21164: *146 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:2020/10/27 21:08:09 [error] 21164#21164: *146 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 19: fetch a few and generate a few, then fetch again (overflown again) - response_body_like - response is expected (msg count: 3 log level:4 log body:2020/10/27 21:08:10 [error] 21192\#21192: *171 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:2020/10/27 21:08:10 [warn] 21192\#21192: *171 stream [lua] content_by_lua(nginx.conf:93):10: --> 86, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2020/10/27 21:08:10 [error] 21192\#21192: *171 stream [lua] content_by_lua(nginx.conf:93):11: --> 86, client: 127.0.0.1, server: 0.0.0.0:1985 msg count: 3 log level:4 log body:2020/10/27 21:08:10 [error] 21192\#21192: *171 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:2020/10/27 21:08:10 [warn] 21192\#21192: *171 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:2020/10/27 21:08:10 [error] 21192\#21192: *171 stream [lua] content_by_lua(nginx.conf:93):11: --> 88, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2020/10/27 21:08:10 [error] 21192\#21192: *171 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:2020/10/27 21:08:10 [error] 21192\#21192: *171 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:2020/10/27 21:08:10 [error] 21192\#21192: *171 stream [lua] content_by_lua(nginx.conf:93):26: --> 104, client: 127.0.0.1, server: 0.0.0.0:1985) |
'msg count: 3 log level:4 log body:2020/10/27 21:08:10 [error] 21192#21192: *171 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:2020/10/27 21:08:10 [warn] 21192#21192: *171 stream [lua] content_by_lua(nginx.conf:93):10: --> 86, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2020/10/27 21:08:10 [error] 21192#21192: *171 stream [lua] content_by_lua(nginx.conf:93):11: --> 86, client: 127.0.0.1, server: 0.0.0.0:1985 msg count: 3 log level:4 log body:2020/10/27 21:08:10 [error] 21192#21192: *171 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:2020/10/27 21:08:10 [warn] 21192#21192: *171 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:2020/10/27 21:08:10 [error] 21192#21192: *171 stream [lua] content_by_lua(nginx.conf:93):11: --> 88, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2020/10/27 21:08:10 [error] 21192#21192: *171 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:2020/10/27 21:08:10 [error] 21192#21192: *171 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:2020/10/27 21:08:10 [error] 21192#21192: *171 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:4 log body:2020/10/27 21:08:10 [error] 21192\#21192: *174 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:2020/10/27 21:08:10 [warn] 21192\#21192: *174 stream [lua] content_by_lua(nginx.conf:93):10: --> 86, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2020/10/27 21:08:10 [error] 21192\#21192: *174 stream [lua] content_by_lua(nginx.conf:93):11: --> 86, client: 127.0.0.1, server: 0.0.0.0:1985 msg count: 3 log level:4 log body:2020/10/27 21:08:10 [error] 21192\#21192: *174 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:2020/10/27 21:08:10 [warn] 21192\#21192: *174 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:2020/10/27 21:08:10 [error] 21192\#21192: *174 stream [lua] content_by_lua(nginx.conf:93):11: --> 88, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2020/10/27 21:08:10 [error] 21192\#21192: *174 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:2020/10/27 21:08:10 [error] 21192\#21192: *174 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:2020/10/27 21:08:10 [error] 21192\#21192: *174 stream [lua] content_by_lua(nginx.conf:93):26: --> 104, client: 127.0.0.1, server: 0.0.0.0:1985) |
'msg count: 3 log level:4 log body:2020/10/27 21:08:10 [error] 21192#21192: *174 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:2020/10/27 21:08:10 [warn] 21192#21192: *174 stream [lua] content_by_lua(nginx.conf:93):10: --> 86, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2020/10/27 21:08:10 [error] 21192#21192: *174 stream [lua] content_by_lua(nginx.conf:93):11: --> 86, client: 127.0.0.1, server: 0.0.0.0:1985 msg count: 3 log level:4 log body:2020/10/27 21:08:10 [error] 21192#21192: *174 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:2020/10/27 21:08:10 [warn] 21192#21192: *174 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:2020/10/27 21:08:10 [error] 21192#21192: *174 stream [lua] content_by_lua(nginx.conf:93):11: --> 88, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2020/10/27 21:08:10 [error] 21192#21192: *174 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:2020/10/27 21:08:10 [error] 21192#21192: *174 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:2020/10/27 21:08:10 [error] 21192#21192: *174 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 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 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 17: flood the capturing buffer (4k) - response_body_like - response is expected (log lines: \#25 log level:4 log body:2020/10/27 21:08:14 [error] 21586\#21586: *563 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:2020/10/27 21:08:14 [warn] 21586\#21586: *563 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:2020/10/27 21:08:14 [error] 21586\#21586: *563 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:2020/10/27 21:08:14 [error] 21586\#21586: *563 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:2020/10/27 21:08:14 [warn] 21586\#21586: *563 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:2020/10/27 21:08:14 [error] 21586\#21586: *563 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:2020/10/27 21:08:14 [error] 21586#21586: *563 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:2020/10/27 21:08:14 [warn] 21586#21586: *563 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:2020/10/27 21:08:14 [error] 21586#21586: *563 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:2020/10/27 21:08:14 [error] 21586#21586: *563 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:2020/10/27 21:08:14 [warn] 21586#21586: *563 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:2020/10/27 21:08:14 [error] 21586#21586: *563 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:2020/10/27 21:08:14 [error] 21586\#21586: *566 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:2020/10/27 21:08:14 [warn] 21586\#21586: *566 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:2020/10/27 21:08:14 [error] 21586\#21586: *566 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:2020/10/27 21:08:14 [error] 21586\#21586: *566 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:2020/10/27 21:08:14 [warn] 21586\#21586: *566 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:2020/10/27 21:08:14 [error] 21586\#21586: *566 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:2020/10/27 21:08:14 [error] 21586#21586: *566 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:2020/10/27 21:08:14 [warn] 21586#21586: *566 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:2020/10/27 21:08:14 [error] 21586#21586: *566 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:2020/10/27 21:08:14 [error] 21586#21586: *566 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:2020/10/27 21:08:14 [warn] 21586#21586: *566 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:2020/10/27 21:08:14 [error] 21586#21586: *566 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 | nginx: [emerg] | invalid number of arguments in "lua_capture_error_log" directive in /home/ec2-user/git/lua-resty-core/t/servroot/conf/nginx.conf:17 |
stream/errlog.t | TEST 3: client connected info - grep_error_log_out (req 0) |
'client 127.0.0.1:6710 connected to capture log line:2 ' doesn't match '(?^:^client .*? connected to .*? capture log line:1 $)' |
stream/errlog.t | TEST 21: multi-line error log - response_body_like - response is expected (log lines: \#2 log level:6 log body:2020/10/27 21:08:16 [notice] 21645\#21645: start worker processes log level:4 log body:2020/10/27 21:08:16 [error] 21708\#21708: *87 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:2020/10/27 21:08:16 [notice] 21645#21645: start worker processes log level:4 log body:2020/10/27 21:08:16 [error] 21708#21708: *87 stream [lua] content_by_lua(nginx.conf:67):8: --> new line, client: 127.0.0.1, server: 0.0.0.0:1985 ' doesn't match '(?^s:\Alog lines: #1 log level:4 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*content_by_lua\(nginx.conf:\d+\):\d+: --> new line, client: 127.0.0.1, server: 0.0.0.0:\d+ \z)' |
stream/errlog.t | TEST 31: ringbuf sentinel bug2 - response_body_like - response is expected (log lines: \#18 log lines: \#3) |
'log lines: #18 log lines: #3 ' doesn't match '(?^s:\A(?:log lines: #18 log lines: #1 |log lines: #18 log lines: #2 )\z)' |
stream/errlog.t | 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/semaphore.t | TEST 24: basic semaphore_mm alloc - grep_error_log_out (req 0) |
got: '' expected: 'new block, alloc semaphore ' |
stream/semaphore.t | TEST 24: basic semaphore_mm alloc - grep_error_log_out (req 1) |
got: '' expected: 'from head of free queue, alloc semaphore ' |
stream/semaphore.t | TEST 27: semaphore_mm free block (load <= 50% & the on the older side) - grep_error_log_out (req 1) |
got: '' expected: 'free semaphore block ' |
stream/semaphore.t | TEST 8: semaphore in preread_by_lua (all allowed) - grep_error_log_out (req 0) |
@@ -1,2 +1,3 @@ +sem: timeout, sem: timeout while prereading client data, sem: 1 while prereading client data, ' |
stream/semaphore.t | TEST 15: two thread wait for each other - pattern "[error]" should not match any line in error.log but matches line "2020/10/27 21:08:58 [error] 24901\#24901: *152 stream [lua] init_worker_by_lua:14: sem: timeout, context: ngx.timer" (req 0) |
2020/10/27 21:08:58 [error] 24901\#24901: *152 stream [lua] init_worker_by_lua:18: sem: 3 times, context: ngx.timer 2020/10/27 21:08:58 [info] 25125\#25125: *407 client 127.0.0.1 closed keepalive connection 2020/10/27 21:08:58 [info] 25125\#25125: *408 client 127.0.0.1 closed keepalive connection 2020/10/27 21:08:58 [notice] 25125\#25125: gracefully shutting down 2020/10/27 21:08:58 [notice] 25125\#25125: exiting 2020/10/27 21:08:58 [notice] 25125\#25125: exit 2020/10/27 21:08:58 [notice] 24752\#24752: signal 17 (SIGCHLD) received from 25125 2020/10/27 21:08:58 [notice] 24752\#24752: worker process 25125 exited with code 0 2020/10/27 21:08:58 [notice] 24752\#24752: signal 29 (SIGIO) received ' |
stream/semaphore.t | TEST 15: two thread wait for each other - pattern "[error]" should not match any line in error.log but matches line "2020/10/27 21:08:58 [error] 24901\#24901: *152 stream [lua] init_worker_by_lua:18: sem: 3 times, context: ngx.timer" (req 0) |
2020/10/27 21:08:58 [info] 25125\#25125: *407 client 127.0.0.1 closed keepalive connection 2020/10/27 21:08:58 [info] 25125\#25125: *408 client 127.0.0.1 closed keepalive connection 2020/10/27 21:08:58 [notice] 25125\#25125: gracefully shutting down 2020/10/27 21:08:58 [notice] 25125\#25125: exiting 2020/10/27 21:08:58 [notice] 25125\#25125: exit 2020/10/27 21:08:58 [notice] 24752\#24752: signal 17 (SIGCHLD) received from 25125 2020/10/27 21:08:58 [notice] 24752\#24752: worker process 25125 exited with code 0 2020/10/27 21:08:58 [notice] 24752\#24752: signal 29 (SIGIO) received 2020/10/27 21:08:58 [info] 25153\#25153: *409 client 127.0.0.1 closed keepalive connection ' |
stream/semaphore.t | TEST 17: kill a light thread that is waiting on a semaphore (after post) - pattern "[error]" should not match any line in error.log but matches line "2020/10/27 21:09:00 [error] 24901\#24901: *152 stream [lua] init_worker_by_lua:14: sem: timeout, context: ngx.timer" (req 0) |
2020/10/27 21:09:00 [info] 25265\#25265: *525 client 127.0.0.1 closed keepalive connection 2020/10/27 21:09:00 [info] 25265\#25265: *526 client 127.0.0.1 closed keepalive connection 2020/10/27 21:09:00 [info] 25265\#25265: *527 client 127.0.0.1 closed keepalive connection 2020/10/27 21:09:00 [info] 25265\#25265: *528 client 127.0.0.1 closed keepalive connection 2020/10/27 21:09:00 [info] 25265\#25265: *529 client 127.0.0.1 closed keepalive connection 2020/10/27 21:09:00 [info] 25265\#25265: *530 client 127.0.0.1 closed keepalive connection 2020/10/27 21:09:00 [info] 25265\#25265: *531 client 127.0.0.1 closed keepalive connection 2020/10/27 21:09:00 [info] 25265\#25265: *532 client 127.0.0.1 closed keepalive connection 2020/10/27 21:09:00 [info] 25265\#25265: *533 client 127.0.0.1 closed keepalive connection ' |
stream/semaphore.t | TEST 22: semaphore wait time is zero - pattern "[error]" should not match any line in error.log but matches line "2020/10/27 21:09:01 [error] 24901\#24901: *152 stream [lua] init_worker_by_lua:14: sem: timeout, context: ngx.timer" (req 0) |
2020/10/27 21:09:01 [error] 24901\#24901: *152 stream [lua] init_worker_by_lua:18: sem: 3 times, context: ngx.timer 2020/10/27 21:09:01 [notice] 25323\#25323: gracefully shutting down 2020/10/27 21:09:01 [notice] 25323\#25323: exiting 2020/10/27 21:09:01 [notice] 25323\#25323: exit 2020/10/27 21:09:01 [notice] 24752\#24752: signal 17 (SIGCHLD) received from 25323 2020/10/27 21:09:01 [notice] 24752\#24752: worker process 25323 exited with code 0 2020/10/27 21:09:01 [notice] 24752\#24752: signal 29 (SIGIO) received 2020/10/27 21:09:01 [info] 25351\#25351: *609 client 127.0.0.1 closed keepalive connection 2020/10/27 21:09:01 [info] 25351\#25351: *610 client 127.0.0.1 closed keepalive connection ' |
stream/semaphore.t | TEST 22: semaphore wait time is zero - pattern "[error]" should not match any line in error.log but matches line "2020/10/27 21:09:01 [error] 24901\#24901: *152 stream [lua] init_worker_by_lua:18: sem: 3 times, context: ngx.timer" (req 0) |
2020/10/27 21:09:01 [notice] 25323\#25323: gracefully shutting down 2020/10/27 21:09:01 [notice] 25323\#25323: exiting 2020/10/27 21:09:01 [notice] 25323\#25323: exit 2020/10/27 21:09:01 [notice] 24752\#24752: signal 17 (SIGCHLD) received from 25323 2020/10/27 21:09:01 [notice] 24752\#24752: worker process 25323 exited with code 0 2020/10/27 21:09:01 [notice] 24752\#24752: signal 29 (SIGIO) received 2020/10/27 21:09:01 [info] 25351\#25351: *609 client 127.0.0.1 closed keepalive connection 2020/10/27 21:09:01 [info] 25351\#25351: *610 client 127.0.0.1 closed keepalive connection 2020/10/27 21:09:01 [info] 25351\#25351: *611 client 127.0.0.1 closed keepalive connection ' |
stream/semaphore.t | TEST 18: kill a thread that is waiting on another thread that is waiting on semaphore - pattern "[error]" should not match any line in error.log but matches line "2020/10/27 21:09:02 [error] 24901\#24901: *152 stream [lua] init_worker_by_lua:14: sem: timeout, context: ngx.timer" (req 1) |
' |
stream/semaphore.t | TEST 10: semaphore in log_by_lua (wait not allowed) - grep_error_log_out (req 1) |
@@ -1,2 +1,4 @@ sem: 1 while returning text, sem: API disabled in the context of log_by_lua* while returning text, +sem: timeout, +sem: 3 times, ' |
stream/ssl.t | TEST 2: set DER cert and private key - pattern "lua ssl server name: "test.com"" should match a line in error.log (req 0) | |
stream/ssl.t | TEST 2: set DER cert and private key - pattern "lua ssl server name: "test.com"" should match a line in error.log (req 1) | |
stream/ssl.t | TEST 15: read PEM key chain but set DER key chain - pattern "lua ssl server name: "test.com"" should match a line in error.log (req 0) | |
stream/ssl.t | TEST 15: read PEM key chain but set DER key chain - pattern "lua ssl server name: "test.com"" should match a line in error.log (req 1) | |
stream/ssl.t | TEST 5: read raw server addr via ssl.raw_server_addr() (unix domain socket) - pattern "lua ssl server name: "test.com"" should match a line in error.log (req 0) | |
stream/ssl.t | TEST 5: read raw server addr via ssl.raw_server_addr() (unix domain socket) - pattern "lua ssl server name: "test.com"" should match a line in error.log (req 1) | |
stream/ssl.t | TEST 6: read raw server addr via ssl.raw_server_addr() (IPv4) - pattern "lua ssl server name: "test.com"" should match a line in error.log (req 0) | |
stream/ssl.t | TEST 6: read raw server addr via ssl.raw_server_addr() (IPv4) - pattern "lua ssl server name: "test.com"" should match a line in error.log (req 1) | |
stream/ssl.t | TEST 3: read SNI name via ssl.server_name() - pattern "lua ssl server name: "test.com"" should match a line in error.log (req 0) | |
stream/ssl.t | TEST 3: read SNI name via ssl.server_name() - pattern "lua ssl server name: "test.com"" should match a line in error.log (req 1) | |
stream/ssl.t | TEST 9: read PEM cert chain but set DER cert chain - pattern "lua ssl server name: "test.com"" should match a line in error.log (req 0) | |
stream/ssl.t | TEST 9: read PEM cert chain but set DER cert chain - pattern "lua ssl server name: "test.com"" should match a line in error.log (req 1) | |
stream/ssl.t | TEST 16: parse PEM cert and key to cdata - pattern "lua ssl server name: "test.com"" should match a line in error.log (req 0) | |
stream/ssl.t | TEST 16: parse PEM cert and key to cdata - pattern "lua ssl server name: "test.com"" should match a line in error.log (req 1) | |
stream/ssl.t | TEST 7: read raw server addr via ssl.raw_server_addr() (IPv6) - pattern "lua ssl server name: "test.com"" should match a line in error.log (req 0) | |
stream/ssl.t | TEST 7: read raw server addr via ssl.raw_server_addr() (IPv6) - pattern "lua ssl server name: "test.com"" should match a line in error.log (req 1) | |
stream/ssl.t | TEST 1: clear certs - pattern "lua ssl server name: "test.com"" should match a line in error.log (req 0) | |
stream/ssl.t | TEST 1: clear certs - pattern "lua ssl server name: "test.com"" should match a line in error.log (req 1) | |
stream/ssl.t | TEST 8: set DER cert chain - pattern "lua ssl server name: "test.com"" should match a line in error.log (req 0) | |
stream/ssl.t | TEST 8: set DER cert chain - pattern "lua ssl server name: "test.com"" should match a line in error.log (req 1) |
Go back to the index page.