(This page was automatically generated by the tools in the opsboy project on 15:08:04 28-Dec-2023 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
d130d965 2020-09-28 06:48:20 GMT 214 8 76 8568 178 sec

LuaJIT

LuaJIT 2.1.0-beta3, commit 0e646b54

OpenSSL

OpenSSL 1.1.1d 10 Sep 2019

Compilation Errors

Unexpected Failures

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 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 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.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 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)
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 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 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 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 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 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)
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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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)
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 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-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-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 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 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 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 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 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 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-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 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 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 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.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 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 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 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 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 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 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 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 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)
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 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
+
'
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 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 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 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 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 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 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)
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 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 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 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 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 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 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 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)
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/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 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/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 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/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 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 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 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/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 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 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 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 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 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 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 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 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 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
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
+
'
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 number of arguments in "lua_capture_error_log" directive in /home/ec2-user/git/lua-resty-core/t/servroot/conf/nginx.conf:17

Warnings

Go back to the index page.