(This page was automatically generated by the tools in the opsboy project on 19:24:54 07-Feb-2019 GMT.)

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

Summary

Commit Testing Time Unexpected
Failures
Expected
Failures
Files Tests Elapsed Time
c5d624c5 2019-02-06 21:01:24 GMT 196 3 71 8019 164 sec

LuaJIT

LuaJIT 2.1.0-beta3, commit 0e646b5

OpenSSL

LuaJIT 1.1.0h 27 Mar 2018

Compilation Errors

Unexpected Failures

File Name Details
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 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-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 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.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
'
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 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 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 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)
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 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 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 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 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 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 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 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 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 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 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 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)
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 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 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 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-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 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 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-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 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 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 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.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)
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 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 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 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 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 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 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 38: kill living sub-process during Lua VM destruction. - pattern "lua pipe destroy process:" should match a line in error.log
pipe.t TEST 38: kill living sub-process during Lua VM destruction. - pattern "lua pipe kill process:" should match a line in error.log
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 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)
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 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 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)
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 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 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)
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 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 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 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 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 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
'
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 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 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 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 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/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 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 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/errlog-raw-log.t nginx: [error] hello world from init_by_lua
stream/errlog.t nginx: [emerg] invalid capture error log size "3k", minimum size is 4096 in /home/ec2-user/git/lua-resty-core/t/servroot/conf/nginx.conf:17
stream/errlog.t nginx: [emerg] invalid capture error log size "3k", minimum size is 4096 in /home/ec2-user/git/lua-resty-core/t/servroot/conf/nginx.conf:17
stream/errlog.t TEST 19: fetch a few and generate a few, then fetch again (overflown again) - response_body_like - response is expected (msg count: 3 log level:5 log body:2019/02/06 23:28:25 [warn] 29179\#29179: *3 stream [lua] content_by_lua(nginx.conf:66):10: --> 85, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/06 23:28:25 [error] 29179\#29179: *3 stream [lua] content_by_lua(nginx.conf:66):11: --> 85, client: 127.0.0.1, server: 0.0.0.0:1985 log level:5 log body:2019/02/06 23:28:25 [warn] 29179\#29179: *3 stream [lua] content_by_lua(nginx.conf:66):10: --> 86, client: 127.0.0.1, server: 0.0.0.0:1985 msg count: 3 log level:5 log body:2019/02/06 23:28:25 [warn] 29179\#29179: *3 stream [lua] content_by_lua(nginx.conf:66):10: --> 87, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/06 23:28:25 [error] 29179\#29179: *3 stream [lua] content_by_lua(nginx.conf:66):11: --> 87, client: 127.0.0.1, server: 0.0.0.0:1985 log level:5 log body:2019/02/06 23:28:25 [warn] 29179\#29179: *3 stream [lua] content_by_lua(nginx.conf:66):10: --> 88, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/06 23:28:25 [error] 29179\#29179: *3 stream [lua] content_by_lua(nginx.conf:66):24: --> 102, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/06 23:28:25 [error] 29179\#29179: *3 stream [lua] content_by_lua(nginx.conf:66):25: --> 103, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/06 23:28:25 [error] 29179\#29179: *3 stream [lua] content_by_lua(nginx.conf:66):26: --> 104, client: 127.0.0.1, server: 0.0.0.0:1985) 'msg count: 3
log level:5
log body:2019/02/06 23:28:25 [warn] 29179#29179: *3 stream [lua] content_by_lua(nginx.conf:66):10: --> 85, client: 127.0.0.1, server: 0.0.0.0:1985
log level:4
log body:2019/02/06 23:28:25 [error] 29179#29179: *3 stream [lua] content_by_lua(nginx.conf:66):11: --> 85, client: 127.0.0.1, server: 0.0.0.0:1985
log level:5
log body:2019/02/06 23:28:25 [warn] 29179#29179: *3 stream [lua] content_by_lua(nginx.conf:66):10: --> 86, client: 127.0.0.1, server: 0.0.0.0:1985
msg count: 3
log level:5
log body:2019/02/06 23:28:25 [warn] 29179#29179: *3 stream [lua] content_by_lua(nginx.conf:66):10: --> 87, client: 127.0.0.1, server: 0.0.0.0:1985
log level:4
log body:2019/02/06 23:28:25 [error] 29179#29179: *3 stream [lua] content_by_lua(nginx.conf:66):11: --> 87, client: 127.0.0.1, server: 0.0.0.0:1985
log level:5
log body:2019/02/06 23:28:25 [warn] 29179#29179: *3 stream [lua] content_by_lua(nginx.conf:66):10: --> 88, client: 127.0.0.1, server: 0.0.0.0:1985
log level:4
log body:2019/02/06 23:28:25 [error] 29179#29179: *3 stream [lua] content_by_lua(nginx.conf:66):24: --> 102, client: 127.0.0.1, server: 0.0.0.0:1985
log level:4
log body:2019/02/06 23:28:25 [error] 29179#29179: *3 stream [lua] content_by_lua(nginx.conf:66):25: --> 103, client: 127.0.0.1, server: 0.0.0.0:1985
log level:4
log body:2019/02/06 23:28:25 [error] 29179#29179: *3 stream [lua] content_by_lua(nginx.conf:66):26: --> 104, client: 127.0.0.1, server: 0.0.0.0:1985
'
doesn't match '(?^s:\Amsg count: 3
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 84, client: 127.0.0.1, server: 0.0.0.0:\d+
log level:5
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 85, client: 127.0.0.1, server: 0.0.0.0:\d+
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 85, client: 127.0.0.1, server: 0.0.0.0:\d+
msg count: 3
log level:5
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 86, client: 127.0.0.1, server: 0.0.0.0:\d+
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 86, client: 127.0.0.1, server: 0.0.0.0:\d+
log level:5
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 87, client: 127.0.0.1, server: 0.0.0.0:\d+
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 102, client: 127.0.0.1, server: 0.0.0.0:\d+
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 103, client: 127.0.0.1, server: 0.0.0.0:\d+
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 104, client: 127.0.0.1, server: 0.0.0.0:\d+
|msg count: 3
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 84, client: 127.0.0.1, server: 0.0.0.0:\d+
log level:5
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 85, client: 127.0.0.1, server: 0.0.0.0:\d+
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 85, client: 127.0.0.1, server: 0.0.0.0:\d+
msg count: 3
log level:5
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 87, client: 127.0.0.1, server: 0.0.0.0:\d+
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 87, client: 127.0.0.1, server: 0.0.0.0:\d+
log level:5
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 88, client: 127.0.0.1, server: 0.0.0.0:\d+
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 102, client: 127.0.0.1, server: 0.0.0.0:\d+
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 103, client: 127.0.0.1, server: 0.0.0.0:\d+
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 104, client: 127.0.0.1, server: 0.0.0.0:\d+
\z)'
stream/errlog.t TEST 19: fetch a few and generate a few, then fetch again (overflown again) - response_body_like - response is expected (msg count: 3 log level:5 log body:2019/02/06 23:28:25 [warn] 29179\#29179: *6 stream [lua] content_by_lua(nginx.conf:66):10: --> 85, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/06 23:28:25 [error] 29179\#29179: *6 stream [lua] content_by_lua(nginx.conf:66):11: --> 85, client: 127.0.0.1, server: 0.0.0.0:1985 log level:5 log body:2019/02/06 23:28:25 [warn] 29179\#29179: *6 stream [lua] content_by_lua(nginx.conf:66):10: --> 86, client: 127.0.0.1, server: 0.0.0.0:1985 msg count: 3 log level:5 log body:2019/02/06 23:28:25 [warn] 29179\#29179: *6 stream [lua] content_by_lua(nginx.conf:66):10: --> 87, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/06 23:28:25 [error] 29179\#29179: *6 stream [lua] content_by_lua(nginx.conf:66):11: --> 87, client: 127.0.0.1, server: 0.0.0.0:1985 log level:5 log body:2019/02/06 23:28:25 [warn] 29179\#29179: *6 stream [lua] content_by_lua(nginx.conf:66):10: --> 88, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/06 23:28:25 [error] 29179\#29179: *6 stream [lua] content_by_lua(nginx.conf:66):24: --> 102, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/06 23:28:25 [error] 29179\#29179: *6 stream [lua] content_by_lua(nginx.conf:66):25: --> 103, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/06 23:28:25 [error] 29179\#29179: *6 stream [lua] content_by_lua(nginx.conf:66):26: --> 104, client: 127.0.0.1, server: 0.0.0.0:1985) 'msg count: 3
log level:5
log body:2019/02/06 23:28:25 [warn] 29179#29179: *6 stream [lua] content_by_lua(nginx.conf:66):10: --> 85, client: 127.0.0.1, server: 0.0.0.0:1985
log level:4
log body:2019/02/06 23:28:25 [error] 29179#29179: *6 stream [lua] content_by_lua(nginx.conf:66):11: --> 85, client: 127.0.0.1, server: 0.0.0.0:1985
log level:5
log body:2019/02/06 23:28:25 [warn] 29179#29179: *6 stream [lua] content_by_lua(nginx.conf:66):10: --> 86, client: 127.0.0.1, server: 0.0.0.0:1985
msg count: 3
log level:5
log body:2019/02/06 23:28:25 [warn] 29179#29179: *6 stream [lua] content_by_lua(nginx.conf:66):10: --> 87, client: 127.0.0.1, server: 0.0.0.0:1985
log level:4
log body:2019/02/06 23:28:25 [error] 29179#29179: *6 stream [lua] content_by_lua(nginx.conf:66):11: --> 87, client: 127.0.0.1, server: 0.0.0.0:1985
log level:5
log body:2019/02/06 23:28:25 [warn] 29179#29179: *6 stream [lua] content_by_lua(nginx.conf:66):10: --> 88, client: 127.0.0.1, server: 0.0.0.0:1985
log level:4
log body:2019/02/06 23:28:25 [error] 29179#29179: *6 stream [lua] content_by_lua(nginx.conf:66):24: --> 102, client: 127.0.0.1, server: 0.0.0.0:1985
log level:4
log body:2019/02/06 23:28:25 [error] 29179#29179: *6 stream [lua] content_by_lua(nginx.conf:66):25: --> 103, client: 127.0.0.1, server: 0.0.0.0:1985
log level:4
log body:2019/02/06 23:28:25 [error] 29179#29179: *6 stream [lua] content_by_lua(nginx.conf:66):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 18: flood the capturing buffer (5k) - response_body_like - response is expected (log lines: \#32 log level:5 log body:2019/02/06 23:28:26 [warn] 29185\#29185: *3 stream [lua] content_by_lua(nginx.conf:51):10: --> 85, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/06 23:28:26 [error] 29185\#29185: *3 stream [lua] content_by_lua(nginx.conf:51):11: --> 85, client: 127.0.0.1, server: 0.0.0.0:1985 log level:5 log body:2019/02/06 23:28:26 [warn] 29185\#29185: *3 stream [lua] content_by_lua(nginx.conf:51):10: --> 86, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/06 23:28:26 [error] 29185\#29185: *3 stream [lua] content_by_lua(nginx.conf:51):11: --> 99, client: 127.0.0.1, server: 0.0.0.0:1985 log level:5 log body:2019/02/06 23:28:26 [warn] 29185\#29185: *3 stream [lua] content_by_lua(nginx.conf:51):10: --> 100, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/06 23:28:26 [error] 29185\#29185: *3 stream [lua] content_by_lua(nginx.conf:51):11: --> 100, client: 127.0.0.1, server: 0.0.0.0:1985) 'log lines: #32
log level:5
log body:2019/02/06 23:28:26 [warn] 29185#29185: *3 stream [lua] content_by_lua(nginx.conf:51):10: --> 85, client: 127.0.0.1, server: 0.0.0.0:1985
log level:4
log body:2019/02/06 23:28:26 [error] 29185#29185: *3 stream [lua] content_by_lua(nginx.conf:51):11: --> 85, client: 127.0.0.1, server: 0.0.0.0:1985
log level:5
log body:2019/02/06 23:28:26 [warn] 29185#29185: *3 stream [lua] content_by_lua(nginx.conf:51):10: --> 86, client: 127.0.0.1, server: 0.0.0.0:1985
log level:4
log body:2019/02/06 23:28:26 [error] 29185#29185: *3 stream [lua] content_by_lua(nginx.conf:51):11: --> 99, client: 127.0.0.1, server: 0.0.0.0:1985
log level:5
log body:2019/02/06 23:28:26 [warn] 29185#29185: *3 stream [lua] content_by_lua(nginx.conf:51):10: --> 100, client: 127.0.0.1, server: 0.0.0.0:1985
log level:4
log body:2019/02/06 23:28:26 [error] 29185#29185: *3 stream [lua] content_by_lua(nginx.conf:51):11: --> 100, client: 127.0.0.1, server: 0.0.0.0:1985
'
doesn't match '(?^s:\A(?:log lines: #33
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*content_by_lua\(nginx.conf:\d+\):\d+: --> 84, client: 127.0.0.1, server: 0.0.0.0:\d+
log level:5
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*content_by_lua\(nginx.conf:\d+\):\d+: --> 85, client: 127.0.0.1, server: 0.0.0.0:\d+
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*content_by_lua\(nginx.conf:\d+\):\d+: --> 85, client: 127.0.0.1, server: 0.0.0.0:\d+
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*content_by_lua\(nginx.conf:\d+\):\d+: --> 99, client: 127.0.0.1, server: 0.0.0.0:\d+
log level:5
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*content_by_lua\(nginx.conf:\d+\):\d+: --> 100, client: 127.0.0.1, server: 0.0.0.0:\d+
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*content_by_lua\(nginx.conf:\d+\):\d+: --> 100, client: 127.0.0.1, server: 0.0.0.0:\d+
)\z)'
stream/errlog.t TEST 18: flood the capturing buffer (5k) - response_body_like - response is expected (log lines: \#32 log level:5 log body:2019/02/06 23:28:26 [warn] 29185\#29185: *6 stream [lua] content_by_lua(nginx.conf:51):10: --> 85, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/06 23:28:26 [error] 29185\#29185: *6 stream [lua] content_by_lua(nginx.conf:51):11: --> 85, client: 127.0.0.1, server: 0.0.0.0:1985 log level:5 log body:2019/02/06 23:28:26 [warn] 29185\#29185: *6 stream [lua] content_by_lua(nginx.conf:51):10: --> 86, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/06 23:28:26 [error] 29185\#29185: *6 stream [lua] content_by_lua(nginx.conf:51):11: --> 99, client: 127.0.0.1, server: 0.0.0.0:1985 log level:5 log body:2019/02/06 23:28:26 [warn] 29185\#29185: *6 stream [lua] content_by_lua(nginx.conf:51):10: --> 100, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/06 23:28:26 [error] 29185\#29185: *6 stream [lua] content_by_lua(nginx.conf:51):11: --> 100, client: 127.0.0.1, server: 0.0.0.0:1985) 'log lines: #32
log level:5
log body:2019/02/06 23:28:26 [warn] 29185#29185: *6 stream [lua] content_by_lua(nginx.conf:51):10: --> 85, client: 127.0.0.1, server: 0.0.0.0:1985
log level:4
log body:2019/02/06 23:28:26 [error] 29185#29185: *6 stream [lua] content_by_lua(nginx.conf:51):11: --> 85, client: 127.0.0.1, server: 0.0.0.0:1985
log level:5
log body:2019/02/06 23:28:26 [warn] 29185#29185: *6 stream [lua] content_by_lua(nginx.conf:51):10: --> 86, client: 127.0.0.1, server: 0.0.0.0:1985
log level:4
log body:2019/02/06 23:28:26 [error] 29185#29185: *6 stream [lua] content_by_lua(nginx.conf:51):11: --> 99, client: 127.0.0.1, server: 0.0.0.0:1985
log level:5
log body:2019/02/06 23:28:26 [warn] 29185#29185: *6 stream [lua] content_by_lua(nginx.conf:51):10: --> 100, client: 127.0.0.1, server: 0.0.0.0:1985
log level:4
log body:2019/02/06 23:28:26 [error] 29185#29185: *6 stream [lua] content_by_lua(nginx.conf:51):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 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:2019/02/06 23:28:28 [warn] 29227\#29227: *3 stream [lua] content_by_lua(nginx.conf:64):10: --> 85, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/06 23:28:28 [error] 29227\#29227: *3 stream [lua] content_by_lua(nginx.conf:64):11: --> 85, client: 127.0.0.1, server: 0.0.0.0:1985 log level:5 log body:2019/02/06 23:28:28 [warn] 29227\#29227: *3 stream [lua] content_by_lua(nginx.conf:64):10: --> 86, client: 127.0.0.1, server: 0.0.0.0:1985 msg count: 3 log level:4 log body:2019/02/06 23:28:28 [error] 29227\#29227: *3 stream [lua] content_by_lua(nginx.conf:64):11: --> 86, client: 127.0.0.1, server: 0.0.0.0:1985 log level:5 log body:2019/02/06 23:28:28 [warn] 29227\#29227: *3 stream [lua] content_by_lua(nginx.conf:64):10: --> 87, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/06 23:28:28 [error] 29227\#29227: *3 stream [lua] content_by_lua(nginx.conf:64):11: --> 87, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/06 23:28:28 [error] 29227\#29227: *3 stream [lua] content_by_lua(nginx.conf:64):11: --> 100, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/06 23:28:28 [error] 29227\#29227: *3 stream [lua] content_by_lua(nginx.conf:64):23: howdy, something new!, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/06 23:28:28 [error] 29227\#29227: *3 stream [lua] content_by_lua(nginx.conf:64):24: howdy, something even newer!, client: 127.0.0.1, server: 0.0.0.0:1985) 'msg count: 3
log level:5
log body:2019/02/06 23:28:28 [warn] 29227#29227: *3 stream [lua] content_by_lua(nginx.conf:64):10: --> 85, client: 127.0.0.1, server: 0.0.0.0:1985
log level:4
log body:2019/02/06 23:28:28 [error] 29227#29227: *3 stream [lua] content_by_lua(nginx.conf:64):11: --> 85, client: 127.0.0.1, server: 0.0.0.0:1985
log level:5
log body:2019/02/06 23:28:28 [warn] 29227#29227: *3 stream [lua] content_by_lua(nginx.conf:64):10: --> 86, client: 127.0.0.1, server: 0.0.0.0:1985
msg count: 3
log level:4
log body:2019/02/06 23:28:28 [error] 29227#29227: *3 stream [lua] content_by_lua(nginx.conf:64):11: --> 86, client: 127.0.0.1, server: 0.0.0.0:1985
log level:5
log body:2019/02/06 23:28:28 [warn] 29227#29227: *3 stream [lua] content_by_lua(nginx.conf:64):10: --> 87, client: 127.0.0.1, server: 0.0.0.0:1985
log level:4
log body:2019/02/06 23:28:28 [error] 29227#29227: *3 stream [lua] content_by_lua(nginx.conf:64):11: --> 87, client: 127.0.0.1, server: 0.0.0.0:1985
log level:4
log body:2019/02/06 23:28:28 [error] 29227#29227: *3 stream [lua] content_by_lua(nginx.conf:64):11: --> 100, client: 127.0.0.1, server: 0.0.0.0:1985
log level:4
log body:2019/02/06 23:28:28 [error] 29227#29227: *3 stream [lua] content_by_lua(nginx.conf:64):23: howdy, something new!, client: 127.0.0.1, server: 0.0.0.0:1985
log level:4
log body:2019/02/06 23:28:28 [error] 29227#29227: *3 stream [lua] content_by_lua(nginx.conf:64):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:2019/02/06 23:28:28 [warn] 29227\#29227: *6 stream [lua] content_by_lua(nginx.conf:64):10: --> 85, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/06 23:28:28 [error] 29227\#29227: *6 stream [lua] content_by_lua(nginx.conf:64):11: --> 85, client: 127.0.0.1, server: 0.0.0.0:1985 log level:5 log body:2019/02/06 23:28:28 [warn] 29227\#29227: *6 stream [lua] content_by_lua(nginx.conf:64):10: --> 86, client: 127.0.0.1, server: 0.0.0.0:1985 msg count: 3 log level:4 log body:2019/02/06 23:28:28 [error] 29227\#29227: *6 stream [lua] content_by_lua(nginx.conf:64):11: --> 86, client: 127.0.0.1, server: 0.0.0.0:1985 log level:5 log body:2019/02/06 23:28:28 [warn] 29227\#29227: *6 stream [lua] content_by_lua(nginx.conf:64):10: --> 87, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/06 23:28:28 [error] 29227\#29227: *6 stream [lua] content_by_lua(nginx.conf:64):11: --> 87, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/06 23:28:28 [error] 29227\#29227: *6 stream [lua] content_by_lua(nginx.conf:64):11: --> 100, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/06 23:28:28 [error] 29227\#29227: *6 stream [lua] content_by_lua(nginx.conf:64):23: howdy, something new!, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/06 23:28:28 [error] 29227\#29227: *6 stream [lua] content_by_lua(nginx.conf:64):24: howdy, something even newer!, client: 127.0.0.1, server: 0.0.0.0:1985) 'msg count: 3
log level:5
log body:2019/02/06 23:28:28 [warn] 29227#29227: *6 stream [lua] content_by_lua(nginx.conf:64):10: --> 85, client: 127.0.0.1, server: 0.0.0.0:1985
log level:4
log body:2019/02/06 23:28:28 [error] 29227#29227: *6 stream [lua] content_by_lua(nginx.conf:64):11: --> 85, client: 127.0.0.1, server: 0.0.0.0:1985
log level:5
log body:2019/02/06 23:28:28 [warn] 29227#29227: *6 stream [lua] content_by_lua(nginx.conf:64):10: --> 86, client: 127.0.0.1, server: 0.0.0.0:1985
msg count: 3
log level:4
log body:2019/02/06 23:28:28 [error] 29227#29227: *6 stream [lua] content_by_lua(nginx.conf:64):11: --> 86, client: 127.0.0.1, server: 0.0.0.0:1985
log level:5
log body:2019/02/06 23:28:28 [warn] 29227#29227: *6 stream [lua] content_by_lua(nginx.conf:64):10: --> 87, client: 127.0.0.1, server: 0.0.0.0:1985
log level:4
log body:2019/02/06 23:28:28 [error] 29227#29227: *6 stream [lua] content_by_lua(nginx.conf:64):11: --> 87, client: 127.0.0.1, server: 0.0.0.0:1985
log level:4
log body:2019/02/06 23:28:28 [error] 29227#29227: *6 stream [lua] content_by_lua(nginx.conf:64):11: --> 100, client: 127.0.0.1, server: 0.0.0.0:1985
log level:4
log body:2019/02/06 23:28:28 [error] 29227#29227: *6 stream [lua] content_by_lua(nginx.conf:64):23: howdy, something new!, client: 127.0.0.1, server: 0.0.0.0:1985
log level:4
log body:2019/02/06 23:28:28 [error] 29227#29227: *6 stream [lua] content_by_lua(nginx.conf:64):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 17: flood the capturing buffer (4k) - response_body_like - response is expected (log lines: \#25 log level:4 log body:2019/02/06 23:28:28 [error] 29239\#29239: *3 stream [lua] content_by_lua(nginx.conf:51):11: --> 88, client: 127.0.0.1, server: 0.0.0.0:1985 log level:5 log body:2019/02/06 23:28:28 [warn] 29239\#29239: *3 stream [lua] content_by_lua(nginx.conf:51):10: --> 89, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/06 23:28:28 [error] 29239\#29239: *3 stream [lua] content_by_lua(nginx.conf:51):11: --> 89, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/06 23:28:28 [error] 29239\#29239: *3 stream [lua] content_by_lua(nginx.conf:51):11: --> 99, client: 127.0.0.1, server: 0.0.0.0:1985 log level:5 log body:2019/02/06 23:28:28 [warn] 29239\#29239: *3 stream [lua] content_by_lua(nginx.conf:51):10: --> 100, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/06 23:28:28 [error] 29239\#29239: *3 stream [lua] content_by_lua(nginx.conf:51):11: --> 100, client: 127.0.0.1, server: 0.0.0.0:1985) 'log lines: #25
log level:4
log body:2019/02/06 23:28:28 [error] 29239#29239: *3 stream [lua] content_by_lua(nginx.conf:51):11: --> 88, client: 127.0.0.1, server: 0.0.0.0:1985
log level:5
log body:2019/02/06 23:28:28 [warn] 29239#29239: *3 stream [lua] content_by_lua(nginx.conf:51):10: --> 89, client: 127.0.0.1, server: 0.0.0.0:1985
log level:4
log body:2019/02/06 23:28:28 [error] 29239#29239: *3 stream [lua] content_by_lua(nginx.conf:51):11: --> 89, client: 127.0.0.1, server: 0.0.0.0:1985
log level:4
log body:2019/02/06 23:28:28 [error] 29239#29239: *3 stream [lua] content_by_lua(nginx.conf:51):11: --> 99, client: 127.0.0.1, server: 0.0.0.0:1985
log level:5
log body:2019/02/06 23:28:28 [warn] 29239#29239: *3 stream [lua] content_by_lua(nginx.conf:51):10: --> 100, client: 127.0.0.1, server: 0.0.0.0:1985
log level:4
log body:2019/02/06 23:28:28 [error] 29239#29239: *3 stream [lua] content_by_lua(nginx.conf:51):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:2019/02/06 23:28:29 [error] 29239\#29239: *6 stream [lua] content_by_lua(nginx.conf:51):11: --> 88, client: 127.0.0.1, server: 0.0.0.0:1985 log level:5 log body:2019/02/06 23:28:29 [warn] 29239\#29239: *6 stream [lua] content_by_lua(nginx.conf:51):10: --> 89, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/06 23:28:29 [error] 29239\#29239: *6 stream [lua] content_by_lua(nginx.conf:51):11: --> 89, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/06 23:28:29 [error] 29239\#29239: *6 stream [lua] content_by_lua(nginx.conf:51):11: --> 99, client: 127.0.0.1, server: 0.0.0.0:1985 log level:5 log body:2019/02/06 23:28:29 [warn] 29239\#29239: *6 stream [lua] content_by_lua(nginx.conf:51):10: --> 100, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/06 23:28:29 [error] 29239\#29239: *6 stream [lua] content_by_lua(nginx.conf:51):11: --> 100, client: 127.0.0.1, server: 0.0.0.0:1985) 'log lines: #25
log level:4
log body:2019/02/06 23:28:29 [error] 29239#29239: *6 stream [lua] content_by_lua(nginx.conf:51):11: --> 88, client: 127.0.0.1, server: 0.0.0.0:1985
log level:5
log body:2019/02/06 23:28:29 [warn] 29239#29239: *6 stream [lua] content_by_lua(nginx.conf:51):10: --> 89, client: 127.0.0.1, server: 0.0.0.0:1985
log level:4
log body:2019/02/06 23:28:29 [error] 29239#29239: *6 stream [lua] content_by_lua(nginx.conf:51):11: --> 89, client: 127.0.0.1, server: 0.0.0.0:1985
log level:4
log body:2019/02/06 23:28:29 [error] 29239#29239: *6 stream [lua] content_by_lua(nginx.conf:51):11: --> 99, client: 127.0.0.1, server: 0.0.0.0:1985
log level:5
log body:2019/02/06 23:28:29 [warn] 29239#29239: *6 stream [lua] content_by_lua(nginx.conf:51):10: --> 100, client: 127.0.0.1, server: 0.0.0.0:1985
log level:4
log body:2019/02/06 23:28:29 [error] 29239#29239: *6 stream [lua] content_by_lua(nginx.conf:51):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 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/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 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 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 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 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/shdict.t TEST 44: incr key with init and init_ttl as string (key not exists) - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +1,3 @@
incr: 10503 nil
foo = 10503
-foo after init_ttl = nil
+foo after init_ttl = 10503
'
Looks like you failed 1 test of 490.
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 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 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 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 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)
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 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 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 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 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 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
'

Expected Failures

File Name Details
errlog-raw-log.t nginx: [error] hello world from init_by_lua
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 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

Warnings

Go back to the index page.