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

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

Summary

Commit Testing Time Unexpected
Failures
Expected
Failures
Files Tests Elapsed Time
12abf47c 2020-10-26 09:04:54 GMT 8073 335 78 10480 11043 sec

LuaJIT

LuaJIT 2.1.0-beta3, commit 864c72e3

OpenSSL

OpenSSL 1.1.0j 20 Nov 2018 (running with OpenSSL 1.1.1h 22 Sep 2020)

Compilation Errors

Segmentation Faults

Unexpected Failures

File Name Details
balancer-timeout.t TEST 3: set_timeouts (nil send timeout) - status code ok got: '500'
expected: '200'
balancer-timeout.t TEST 3: set_timeouts (nil send timeout) - response_body - response is expected (repeated req 0, req 0) got: '<html>
<head><title>500 Internal Server Error</title></head>
<body>
<center><h1>500 Internal Server Error</h1></center>
<hr><center>nginx/1.15.8 (no pool)</center>
</body>
</html>
'
expected: 'fake origin
'
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) - status code ok got: '500'
expected: '200'
balancer-timeout.t TEST 3: set_timeouts (nil send timeout) - response_body - response is expected (repeated req 1, req 0) got: '<html>
<head><title>500 Internal Server Error</title></head>
<body>
<center><h1>500 Internal Server Error</h1></center>
<hr><center>nginx/1.15.8 (no pool)</center>
</body>
</html>
'
expected: 'fake origin
'
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 11: set_timeouts called with a non-numerical parameter - pattern "(?^:\[error\] .*? bad connect timeout)" should match a line in error.log (req 0)
balancer-timeout.t TEST 11: set_timeouts called with a non-numerical parameter - pattern "(?^:\[error\] .*? bad connect timeout)" should match a line in error.log (req 1)
balancer-timeout.t TEST 10: set_timeouts called in a wrong context - status code ok got: '500'
expected: '200'
balancer-timeout.t TEST 10: set_timeouts called in a wrong context - response_body - response is expected (repeated req 0, req 0) got: '<html>
<head><title>500 Internal Server Error</title></head>
<body>
<center><h1>500 Internal Server Error</h1></center>
<hr><center>nginx/1.15.8 (no pool)</center>
</body>
</html>
'
expected: 'failed to call: no upstream found
'
balancer-timeout.t TEST 10: set_timeouts called in a wrong context - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 10:28:39 [error] 32702\#0: *47 lua entry thread aborted: runtime error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
coroutine 0:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/ngx/balancer.lua:4: in main chunk
[C]: in function 'require'
content_by_lua(nginx.conf:49):2: in main chunk, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
2020/10/26 10:28:39 [debug] 32702\#0: *47 lua request cleanup: forcible=0
'
balancer-timeout.t TEST 10: set_timeouts called in a wrong context - status code ok got: '500'
expected: '200'
balancer-timeout.t TEST 10: set_timeouts called in a wrong context - response_body - response is expected (repeated req 1, req 0) got: '<html>
<head><title>500 Internal Server Error</title></head>
<body>
<center><h1>500 Internal Server Error</h1></center>
<hr><center>nginx/1.15.8 (no pool)</center>
</body>
</html>
'
expected: 'failed to call: no upstream found
'
balancer-timeout.t TEST 10: set_timeouts called in a wrong context - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 10:28:42 [error] 32702\#0: *48 lua entry thread aborted: runtime error: content_by_lua(nginx.conf:49):2: loop or previous error loading module 'ngx.balancer'" (req 1) stack traceback:
coroutine 0:
[C]: in function 'require'
content_by_lua(nginx.conf:49):2: in main chunk, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
2020/10/26 10:28:42 [debug] 32702\#0: *48 lua request cleanup: forcible=0
2020/10/26 10:28:42 [debug] 32702\#0: *48 http finalize request: 500, "/t?" a:1, c:1
2020/10/26 10:28:42 [debug] 32702\#0: *48 http special response: 500, "/t?"
2020/10/26 10:28:42 [debug] 32702\#0: *48 http set discard body
2020/10/26 10:28:42 [debug] 32702\#0: *48 lua capture header filter, uri "/t"
'
balancer-timeout.t TEST 8: set send timeout to -1 - pattern "(?^:\[error\] .*? balancer_by_lua:4: bad send timeout)" should match a line in error.log (req 0)
balancer-timeout.t TEST 8: set send timeout to -1 - pattern "(?^:\[error\] .*? balancer_by_lua:4: bad send timeout)" should match a line in error.log (req 1)
balancer-timeout.t TEST 9: set read timeout to -1 - pattern "(?^:\[error\] .*? balancer_by_lua:4: bad read timeout)" should match a line in error.log (req 0)
balancer-timeout.t TEST 9: set read timeout to -1 - pattern "(?^:\[error\] .*? balancer_by_lua:4: bad read timeout)" should match a line in error.log (req 1)
balancer-timeout.t TEST 7: set send timeout to 0 - pattern "(?^:\[error\] .*? balancer_by_lua:4: bad send timeout)" should match a line in error.log (req 0)
balancer-timeout.t TEST 7: set send timeout to 0 - pattern "(?^:\[error\] .*? balancer_by_lua:4: bad send timeout)" should match a line in error.log (req 1)
balancer-timeout.t TEST 5: set connect timeout to 0 - pattern "(?^:\[error\] .*? balancer_by_lua:4: bad connect timeout)" should match a line in error.log (req 0)
balancer-timeout.t TEST 5: set connect timeout to 0 - pattern "(?^:\[error\] .*? balancer_by_lua:4: bad connect timeout)" should match a line in error.log (req 1)
balancer-timeout.t TEST 6: set connect timeout to -1 - pattern "(?^:\[error\] .*? balancer_by_lua:4: bad connect timeout)" should match a line in error.log (req 0)
balancer-timeout.t TEST 6: set connect timeout to -1 - pattern "(?^:\[error\] .*? balancer_by_lua:4: bad connect timeout)" should match a line in error.log (req 1)
balancer-timeout.t TEST 2: set_timeouts (nil connect timeout) - status code ok got: '500'
expected: '200'
balancer-timeout.t TEST 2: set_timeouts (nil connect timeout) - response_body - response is expected (repeated req 0, req 0) got: '<html>
<head><title>500 Internal Server Error</title></head>
<body>
<center><h1>500 Internal Server Error</h1></center>
<hr><center>nginx/1.15.8 (no pool)</center>
</body>
</html>
'
expected: 'fake origin
'
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) - status code ok got: '500'
expected: '200'
balancer-timeout.t TEST 2: set_timeouts (nil connect timeout) - response_body - response is expected (repeated req 1, req 0) got: '<html>
<head><title>500 Internal Server Error</title></head>
<body>
<center><h1>500 Internal Server Error</h1></center>
<hr><center>nginx/1.15.8 (no pool)</center>
</body>
</html>
'
expected: 'fake origin
'
balancer-timeout.t TEST 2: set_timeouts (nil connect timeout) - grep_error_log_out (req 1) ''
doesn't match '(?^:\Aevent timer add: \d+: 1234:
event timer add: \d+: 5678:
event timer add: \d+: 7689:
\z)'
balancer-timeout.t TEST 1: set_timeouts - status code ok got: '500'
expected: '200'
balancer-timeout.t TEST 1: set_timeouts - response_body - response is expected (repeated req 0, req 0) got: '<html>
<head><title>500 Internal Server Error</title></head>
<body>
<center><h1>500 Internal Server Error</h1></center>
<hr><center>nginx/1.15.8 (no pool)</center>
</body>
</html>
'
expected: 'fake origin
'
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 - status code ok got: '500'
expected: '200'
balancer-timeout.t TEST 1: set_timeouts - response_body - response is expected (repeated req 1, req 0) got: '<html>
<head><title>500 Internal Server Error</title></head>
<body>
<center><h1>500 Internal Server Error</h1></center>
<hr><center>nginx/1.15.8 (no pool)</center>
</body>
</html>
'
expected: 'fake origin
'
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 4: set_timeouts (nil read timeout) - status code ok got: '500'
expected: '200'
balancer-timeout.t TEST 4: set_timeouts (nil read timeout) - response_body - response is expected (repeated req 0, req 0) got: '<html>
<head><title>500 Internal Server Error</title></head>
<body>
<center><h1>500 Internal Server Error</h1></center>
<hr><center>nginx/1.15.8 (no pool)</center>
</body>
</html>
'
expected: 'fake origin
'
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) - status code ok got: '500'
expected: '200'
balancer-timeout.t TEST 4: set_timeouts (nil read timeout) - response_body - response is expected (repeated req 1, req 0) got: '<html>
<head><title>500 Internal Server Error</title></head>
<body>
<center><h1>500 Internal Server Error</h1></center>
<hr><center>nginx/1.15.8 (no pool)</center>
</body>
</html>
'
expected: 'fake origin
'
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 2: set current peer & next upstream (3 tries) - status code ok got: '500'
expected: '502'
balancer.t TEST 2: set current peer & next upstream (3 tries) - response_body_like - response is expected (<html> <head><title>500 Internal Server Error</title></head> <body> <center><h1>500 Internal Server Error</h1></center> <hr><center>nginx/1.15.8 (no pool)</center> </body> </html>) '<html>
<head><title>500 Internal Server Error</title></head>
<body>
<center><h1>500 Internal Server Error</h1></center>
<hr><center>nginx/1.15.8 (no pool)</center>
</body>
</html>
'
doesn't match '(?^s:502 Bad Gateway)'
balancer.t TEST 2: set current peer & next upstream (3 tries) - grep_error_log_out (req 0) ''
doesn't match '(?^:^(?:connect\(\) failed .*?, upstream: "http://127.0.0.3:12345/t"\n){3}$)'
balancer.t TEST 2: set current peer & next upstream (3 tries) - status code ok got: '500'
expected: '502'
balancer.t TEST 2: set current peer & next upstream (3 tries) - response_body_like - response is expected (<html> <head><title>500 Internal Server Error</title></head> <body> <center><h1>500 Internal Server Error</h1></center> <hr><center>nginx/1.15.8 (no pool)</center> </body> </html>) '<html>
<head><title>500 Internal Server Error</title></head>
<body>
<center><h1>500 Internal Server Error</h1></center>
<hr><center>nginx/1.15.8 (no pool)</center>
</body>
</html>
'
doesn't match '(?^s:502 Bad Gateway)'
balancer.t TEST 2: set current peer & next upstream (3 tries) - grep_error_log_out (req 1) ''
doesn't match '(?^:^(?:connect\(\) failed .*?, upstream: "http://127.0.0.3:12345/t"\n){3}$)'
balancer.t TEST 18: test ngx.var.upstream_addr after using more than one set_current_peer - status code ok got: '500'
expected: '502'
balancer.t TEST 18: test ngx.var.upstream_addr after using more than one set_current_peer - response_body_like - response is expected (<html> <head><title>500 Internal Server Error</title></head> <body> <center><h1>500 Internal Server Error</h1></center> <hr><center>nginx/1.15.8 (no pool)</center> </body> </html>) '<html>
<head><title>500 Internal Server Error</title></head>
<body>
<center><h1>500 Internal Server Error</h1></center>
<hr><center>nginx/1.15.8 (no pool)</center>
</body>
</html>
'
doesn't match '(?^s:502 Bad Gateway)'
balancer.t TEST 18: test ngx.var.upstream_addr after using more than one set_current_peer - status code ok got: '500'
expected: '502'
balancer.t TEST 18: test ngx.var.upstream_addr after using more than one set_current_peer - response_body_like - response is expected (<html> <head><title>500 Internal Server Error</title></head> <body> <center><h1>500 Internal Server Error</h1></center> <hr><center>nginx/1.15.8 (no pool)</center> </body> </html>) '<html>
<head><title>500 Internal Server Error</title></head>
<body>
<center><h1>500 Internal Server Error</h1></center>
<hr><center>nginx/1.15.8 (no pool)</center>
</body>
</html>
'
doesn't match '(?^s:502 Bad Gateway)'
balancer.t TEST 9: set current peer (port embedded in addr) - status code ok got: '500'
expected: '502'
balancer.t TEST 9: set current peer (port embedded in addr) - response_body_like - response is expected (<html> <head><title>500 Internal Server Error</title></head> <body> <center><h1>500 Internal Server Error</h1></center> <hr><center>nginx/1.15.8 (no pool)</center> </body> </html>) '<html>
<head><title>500 Internal Server Error</title></head>
<body>
<center><h1>500 Internal Server Error</h1></center>
<hr><center>nginx/1.15.8 (no pool)</center>
</body>
</html>
'
doesn't match '(?^s:502 Bad Gateway)'
balancer.t TEST 9: set current peer (port embedded in addr) - status code ok got: '500'
expected: '502'
balancer.t TEST 9: set current peer (port embedded in addr) - response_body_like - response is expected (<html> <head><title>500 Internal Server Error</title></head> <body> <center><h1>500 Internal Server Error</h1></center> <hr><center>nginx/1.15.8 (no pool)</center> </body> </html>) '<html>
<head><title>500 Internal Server Error</title></head>
<body>
<center><h1>500 Internal Server Error</h1></center>
<hr><center>nginx/1.15.8 (no pool)</center>
</body>
</html>
'
doesn't match '(?^s:502 Bad Gateway)'
balancer.t TEST 3: set current peer & next upstream (no retries) - status code ok got: '500'
expected: '502'
balancer.t TEST 3: set current peer & next upstream (no retries) - response_body_like - response is expected (<html> <head><title>500 Internal Server Error</title></head> <body> <center><h1>500 Internal Server Error</h1></center> <hr><center>nginx/1.15.8 (no pool)</center> </body> </html>) '<html>
<head><title>500 Internal Server Error</title></head>
<body>
<center><h1>500 Internal Server Error</h1></center>
<hr><center>nginx/1.15.8 (no pool)</center>
</body>
</html>
'
doesn't match '(?^s:502 Bad Gateway)'
balancer.t TEST 3: set current peer & next upstream (no retries) - grep_error_log_out (req 0) ''
doesn't match '(?^:^(?:connect\(\) failed .*?, upstream: "http://127.0.0.3:12345/t"\n){1}$)'
balancer.t TEST 3: set current peer & next upstream (no retries) - status code ok got: '500'
expected: '502'
balancer.t TEST 3: set current peer & next upstream (no retries) - response_body_like - response is expected (<html> <head><title>500 Internal Server Error</title></head> <body> <center><h1>500 Internal Server Error</h1></center> <hr><center>nginx/1.15.8 (no pool)</center> </body> </html>) '<html>
<head><title>500 Internal Server Error</title></head>
<body>
<center><h1>500 Internal Server Error</h1></center>
<hr><center>nginx/1.15.8 (no pool)</center>
</body>
</html>
'
doesn't match '(?^s:502 Bad Gateway)'
balancer.t TEST 3: set current peer & next upstream (no retries) - grep_error_log_out (req 1) ''
doesn't match '(?^:^(?:connect\(\) failed .*?, upstream: "http://127.0.0.3:12345/t"\n){1}$)'
balancer.t TEST 8: get last peer failure status (connect failed) - status code ok got: '500'
expected: '502'
balancer.t TEST 8: get last peer failure status (connect failed) - response_body_like - response is expected (<html> <head><title>500 Internal Server Error</title></head> <body> <center><h1>500 Internal Server Error</h1></center> <hr><center>nginx/1.15.8 (no pool)</center> </body> </html>) '<html>
<head><title>500 Internal Server Error</title></head>
<body>
<center><h1>500 Internal Server Error</h1></center>
<hr><center>nginx/1.15.8 (no pool)</center>
</body>
</html>
'
doesn't match '(?^s:502 Bad Gateway)'
balancer.t TEST 8: get last peer failure status (connect failed) - grep_error_log_out (req 0) @@ -1,3 +0,0 @@
-last peer failure: nil nil
-last peer failure: failed 502
-last peer failure: failed 502
'
balancer.t TEST 8: get last peer failure status (connect failed) - status code ok got: '500'
expected: '502'
balancer.t TEST 8: get last peer failure status (connect failed) - response_body_like - response is expected (<html> <head><title>500 Internal Server Error</title></head> <body> <center><h1>500 Internal Server Error</h1></center> <hr><center>nginx/1.15.8 (no pool)</center> </body> </html>) '<html>
<head><title>500 Internal Server Error</title></head>
<body>
<center><h1>500 Internal Server Error</h1></center>
<hr><center>nginx/1.15.8 (no pool)</center>
</body>
</html>
'
doesn't match '(?^s:502 Bad Gateway)'
balancer.t TEST 8: get last peer failure status (connect failed) - grep_error_log_out (req 1) @@ -1,3 +0,0 @@
-last peer failure: nil nil
-last peer failure: failed 502
-last peer failure: failed 502
'
balancer.t TEST 5: get last peer failure status (404) - status code ok got: '500'
expected: '404'
balancer.t TEST 5: get last peer failure status (404) - response_body_like - response is expected (<html> <head><title>500 Internal Server Error</title></head> <body> <center><h1>500 Internal Server Error</h1></center> <hr><center>nginx/1.15.8 (no pool)</center> </body> </html>) '<html>
<head><title>500 Internal Server Error</title></head>
<body>
<center><h1>500 Internal Server Error</h1></center>
<hr><center>nginx/1.15.8 (no pool)</center>
</body>
</html>
'
doesn't match '(?^s:404 Not Found)'
balancer.t TEST 5: get last peer failure status (404) - grep_error_log_out (req 0) @@ -1,3 +0,0 @@
-last peer failure: nil nil
-last peer failure: next 404
-last peer failure: next 404
'
balancer.t TEST 5: get last peer failure status (404) - status code ok got: '500'
expected: '404'
balancer.t TEST 5: get last peer failure status (404) - response_body_like - response is expected (<html> <head><title>500 Internal Server Error</title></head> <body> <center><h1>500 Internal Server Error</h1></center> <hr><center>nginx/1.15.8 (no pool)</center> </body> </html>) '<html>
<head><title>500 Internal Server Error</title></head>
<body>
<center><h1>500 Internal Server Error</h1></center>
<hr><center>nginx/1.15.8 (no pool)</center>
</body>
</html>
'
doesn't match '(?^s:404 Not Found)'
balancer.t TEST 5: get last peer failure status (404) - grep_error_log_out (req 1) @@ -1,3 +0,0 @@
-last peer failure: nil nil
-last peer failure: next 404
-last peer failure: next 404
'
balancer.t TEST 19: recreate upstream module requests with header change - status code ok got: '500'
expected: '200'
balancer.t TEST 19: recreate upstream module requests with header change - response_body - response is expected (repeated req 0, req 0) got: '<html>
<head><title>500 Internal Server Error</title></head>
<body>
<center><h1>500 Internal Server Error</h1></center>
<hr><center>nginx/1.15.8 (no pool)</center>
</body>
</html>
'
expected: 'value is: second'
balancer.t TEST 19: recreate upstream module requests with header change - status code ok got: '500'
expected: '200'
balancer.t TEST 19: recreate upstream module requests with header change - response_body - response is expected (repeated req 1, req 0) got: '<html>
<head><title>500 Internal Server Error</title></head>
<body>
<center><h1>500 Internal Server Error</h1></center>
<hr><center>nginx/1.15.8 (no pool)</center>
</body>
</html>
'
expected: 'value is: second'
balancer.t TEST 15: hot loop when proxy_upstream_next error is hit and keepalive is used. - grep_error_log_out (req 0) @@ -1,3 +0,0 @@
-hello from balancer by lua!
-hello from balancer by lua!
-hello from balancer by lua!
'
balancer.t TEST 15: hot loop when proxy_upstream_next error is hit and keepalive is used. - grep_error_log_out (req 1) @@ -1,3 +0,0 @@
-hello from balancer by lua!
-hello from balancer by lua!
-hello from balancer by lua!
'
balancer.t TEST 16: https (keepalive) - status code ok got: '500'
expected: '200'
balancer.t TEST 16: https (keepalive) - response_body - response is expected (repeated req 0, req 0) got: '<html>
<head><title>500 Internal Server Error</title></head>
<body>
<center><h1>500 Internal Server Error</h1></center>
<hr><center>nginx/1.15.8 (no pool)</center>
</body>
</html>
'
expected: 'ok'
balancer.t TEST 16: https (keepalive) - grep_error_log_out (req 0) got: ''
expected: 'hello from balancer by lua!
'
balancer.t TEST 16: https (keepalive) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 10:31:31 [error] 794\#0: *300 failed to run balancer_by_lua*: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/ngx/balancer.lua:4: in main chunk
[C]: in function 'require'
balancer_by_lua:2: in main chunk while connecting to upstream, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
2020/10/26 10:31:31 [debug] 794\#0: *300 http upstream connect: -1
2020/10/26 10:31:31 [debug] 794\#0: *300 finalize http upstream request: 500
'
balancer.t TEST 16: https (keepalive) - status code ok got: '500'
expected: '200'
balancer.t TEST 16: https (keepalive) - response_body - response is expected (repeated req 1, req 0) got: '<html>
<head><title>500 Internal Server Error</title></head>
<body>
<center><h1>500 Internal Server Error</h1></center>
<hr><center>nginx/1.15.8 (no pool)</center>
</body>
</html>
'
expected: 'ok'
balancer.t TEST 16: https (keepalive) - grep_error_log_out (req 1) got: ''
expected: 'hello from balancer by lua!
'
balancer.t TEST 16: https (keepalive) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 10:31:32 [error] 794\#0: *301 failed to run balancer_by_lua*: balancer_by_lua:2: loop or previous error loading module 'ngx.balancer'" (req 1) stack traceback:
[C]: in function 'require'
balancer_by_lua:2: in main chunk while connecting to upstream, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
2020/10/26 10:31:32 [debug] 794\#0: *301 http upstream connect: -1
2020/10/26 10:31:32 [debug] 794\#0: *301 finalize http upstream request: 500
2020/10/26 10:31:32 [debug] 794\#0: *301 finalize http proxy request
2020/10/26 10:31:32 [debug] 794\#0: *301 http finalize request: 500, "/t?" a:1, c:2
2020/10/26 10:31:32 [debug] 794\#0: *301 http special response: 500, "/t?"
2020/10/26 10:31:32 [debug] 794\#0: *301 malloc: 04BBB448:52
'
balancer.t TEST 7: get last peer failure status (503) - status code ok got: '500'
expected: '503'
balancer.t TEST 7: get last peer failure status (503) - response_body_like - response is expected (<html> <head><title>500 Internal Server Error</title></head> <body> <center><h1>500 Internal Server Error</h1></center> <hr><center>nginx/1.15.8 (no pool)</center> </body> </html>) '<html>
<head><title>500 Internal Server Error</title></head>
<body>
<center><h1>500 Internal Server Error</h1></center>
<hr><center>nginx/1.15.8 (no pool)</center>
</body>
</html>
'
doesn't match '(?^s:503 Service Temporarily Unavailable)'
balancer.t TEST 7: get last peer failure status (503) - grep_error_log_out (req 0) ''
doesn't match '(?^:\Alast peer failure: nil nil
last peer failure: failed 50[23]
last peer failure: failed 50[23]
\z)'
balancer.t TEST 7: get last peer failure status (503) - status code ok got: '500'
expected: '503'
balancer.t TEST 7: get last peer failure status (503) - response_body_like - response is expected (<html> <head><title>500 Internal Server Error</title></head> <body> <center><h1>500 Internal Server Error</h1></center> <hr><center>nginx/1.15.8 (no pool)</center> </body> </html>) '<html>
<head><title>500 Internal Server Error</title></head>
<body>
<center><h1>500 Internal Server Error</h1></center>
<hr><center>nginx/1.15.8 (no pool)</center>
</body>
</html>
'
doesn't match '(?^s:503 Service Temporarily Unavailable)'
balancer.t TEST 7: get last peer failure status (503) - grep_error_log_out (req 1) ''
doesn't match '(?^:\Alast peer failure: nil nil
last peer failure: failed 50[23]
last peer failure: failed 50[23]
\z)'
balancer.t TEST 17: https (no keepalive) - status code ok got: '500'
expected: '200'
balancer.t TEST 17: https (no keepalive) - response_body - response is expected (repeated req 0, req 0) got: '<html>
<head><title>500 Internal Server Error</title></head>
<body>
<center><h1>500 Internal Server Error</h1></center>
<hr><center>nginx/1.15.8 (no pool)</center>
</body>
</html>
'
expected: 'ok'
balancer.t TEST 17: https (no keepalive) - grep_error_log_out (req 0) got: ''
expected: 'hello from balancer by lua!
'
balancer.t TEST 17: https (no keepalive) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 10:31:37 [error] 857\#0: *352 failed to run balancer_by_lua*: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/ngx/balancer.lua:4: in main chunk
[C]: in function 'require'
balancer_by_lua:2: in main chunk while connecting to upstream, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
2020/10/26 10:31:37 [debug] 857\#0: *352 http upstream connect: -1
2020/10/26 10:31:37 [debug] 857\#0: *352 finalize http upstream request: 500
'
balancer.t TEST 17: https (no keepalive) - status code ok got: '500'
expected: '200'
balancer.t TEST 17: https (no keepalive) - response_body - response is expected (repeated req 1, req 0) got: '<html>
<head><title>500 Internal Server Error</title></head>
<body>
<center><h1>500 Internal Server Error</h1></center>
<hr><center>nginx/1.15.8 (no pool)</center>
</body>
</html>
'
expected: 'ok'
balancer.t TEST 17: https (no keepalive) - grep_error_log_out (req 1) got: ''
expected: 'hello from balancer by lua!
'
balancer.t TEST 17: https (no keepalive) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 10:31:37 [error] 857\#0: *353 failed to run balancer_by_lua*: balancer_by_lua:2: loop or previous error loading module 'ngx.balancer'" (req 1) stack traceback:
[C]: in function 'require'
balancer_by_lua:2: in main chunk while connecting to upstream, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
2020/10/26 10:31:37 [debug] 857\#0: *353 http upstream connect: -1
2020/10/26 10:31:37 [debug] 857\#0: *353 finalize http upstream request: 500
2020/10/26 10:31:37 [debug] 857\#0: *353 finalize http proxy request
2020/10/26 10:31:37 [debug] 857\#0: *353 http finalize request: 500, "/t?" a:1, c:2
2020/10/26 10:31:37 [debug] 857\#0: *353 http special response: 500, "/t?"
2020/10/26 10:31:37 [debug] 857\#0: *353 malloc: 04BEBC40:52
'
balancer.t TEST 1: set current peer (separate addr and port) - status code ok got: '500'
expected: '502'
balancer.t TEST 1: set current peer (separate addr and port) - response_body_like - response is expected (<html> <head><title>500 Internal Server Error</title></head> <body> <center><h1>500 Internal Server Error</h1></center> <hr><center>nginx/1.15.8 (no pool)</center> </body> </html>) '<html>
<head><title>500 Internal Server Error</title></head>
<body>
<center><h1>500 Internal Server Error</h1></center>
<hr><center>nginx/1.15.8 (no pool)</center>
</body>
</html>
'
doesn't match '(?^s:502 Bad Gateway)'
balancer.t TEST 1: set current peer (separate addr and port) - status code ok got: '500'
expected: '502'
balancer.t TEST 1: set current peer (separate addr and port) - response_body_like - response is expected (<html> <head><title>500 Internal Server Error</title></head> <body> <center><h1>500 Internal Server Error</h1></center> <hr><center>nginx/1.15.8 (no pool)</center> </body> </html>) '<html>
<head><title>500 Internal Server Error</title></head>
<body>
<center><h1>500 Internal Server Error</h1></center>
<hr><center>nginx/1.15.8 (no pool)</center>
</body>
</html>
'
doesn't match '(?^s:502 Bad Gateway)'
balancer.t TEST 10: keepalive before balancer - status code ok got: '500'
expected: '502'
balancer.t TEST 10: keepalive before balancer - response_body_like - response is expected (<html> <head><title>500 Internal Server Error</title></head> <body> <center><h1>500 Internal Server Error</h1></center> <hr><center>nginx/1.15.8 (no pool)</center> </body> </html>) '<html>
<head><title>500 Internal Server Error</title></head>
<body>
<center><h1>500 Internal Server Error</h1></center>
<hr><center>nginx/1.15.8 (no pool)</center>
</body>
</html>
'
doesn't match '(?^s:502 Bad Gateway)'
balancer.t TEST 10: keepalive before balancer - status code ok got: '500'
expected: '502'
balancer.t TEST 10: keepalive before balancer - response_body_like - response is expected (<html> <head><title>500 Internal Server Error</title></head> <body> <center><h1>500 Internal Server Error</h1></center> <hr><center>nginx/1.15.8 (no pool)</center> </body> </html>) '<html>
<head><title>500 Internal Server Error</title></head>
<body>
<center><h1>500 Internal Server Error</h1></center>
<hr><center>nginx/1.15.8 (no pool)</center>
</body>
</html>
'
doesn't match '(?^s:502 Bad Gateway)'
balancer.t TEST 11: keepalive after balancer - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'hello keepalive!
'
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 - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'hello keepalive!
'
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
'
balancer.t TEST 6: get last peer failure status (500) - grep_error_log_out (req 0) @@ -1,3 +0,0 @@
-last peer failure: nil nil
-last peer failure: failed 500
-last peer failure: failed 500
'
balancer.t TEST 6: get last peer failure status (500) - grep_error_log_out (req 1) @@ -1,3 +0,0 @@
-last peer failure: nil nil
-last peer failure: failed 500
-last peer failure: failed 500
'
balancer.t TEST 4: set current peer & next upstream (3 tries exceeding the limit) - status code ok got: '500'
expected: '502'
balancer.t TEST 4: set current peer & next upstream (3 tries exceeding the limit) - response_body_like - response is expected (<html> <head><title>500 Internal Server Error</title></head> <body> <center><h1>500 Internal Server Error</h1></center> <hr><center>nginx/1.15.8 (no pool)</center> </body> </html>) '<html>
<head><title>500 Internal Server Error</title></head>
<body>
<center><h1>500 Internal Server Error</h1></center>
<hr><center>nginx/1.15.8 (no pool)</center>
</body>
</html>
'
doesn't match '(?^s:502 Bad Gateway)'
balancer.t TEST 4: set current peer & next upstream (3 tries exceeding the limit) - grep_error_log_out (req 0) ''
doesn't match '(?^:^(?:connect\(\) failed .*?, upstream: "http://127.0.0.3:12345/t"\n){2}$)'
balancer.t TEST 4: set current peer & next upstream (3 tries exceeding the limit) - status code ok got: '500'
expected: '502'
balancer.t TEST 4: set current peer & next upstream (3 tries exceeding the limit) - response_body_like - response is expected (<html> <head><title>500 Internal Server Error</title></head> <body> <center><h1>500 Internal Server Error</h1></center> <hr><center>nginx/1.15.8 (no pool)</center> </body> </html>) '<html>
<head><title>500 Internal Server Error</title></head>
<body>
<center><h1>500 Internal Server Error</h1></center>
<hr><center>nginx/1.15.8 (no pool)</center>
</body>
</html>
'
doesn't match '(?^s:502 Bad Gateway)'
balancer.t TEST 4: set current peer & next upstream (3 tries exceeding the limit) - grep_error_log_out (req 1) ''
doesn't match '(?^:^(?:connect\(\) failed .*?, upstream: "http://127.0.0.3:12345/t"\n){2}$)'
count.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
count.t TEST 1: module size - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
count.t TEST 1: module size - status code ok got: ''
expected: '200'
count.t TEST 1: module size - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'base size: 19
'
count.t TEST 1: module size - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 10:31:53 [error] 1037\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
count.t TEST 1: module size - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
count.t TEST 1: module size - status code ok got: ''
expected: '200'
count.t TEST 1: module size - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'base size: 19
'
ctx.t nginx: [error] init_by_lua error: /home/ec2-user/git/lua-resty-core/lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
ctx.t TEST 8: ngx.ctx in ssl_session_fetch_by_lua - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
ctx.t TEST 8: ngx.ctx in ssl_session_fetch_by_lua - status code ok got: ''
expected: '200'
ctx.t TEST 8: ngx.ctx in ssl_session_fetch_by_lua - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 10:31:58 [error] 1046\#0: init_by_lua error: /home/ec2-user/git/lua-resty-core/lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
/home/ec2-user/git/lua-resty-core/lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
/home/ec2-user/git/lua-resty-core/lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
/home/ec2-user/git/lua-resty-core/lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
ctx.t TEST 8: ngx.ctx in ssl_session_fetch_by_lua - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
ctx.t TEST 8: ngx.ctx in ssl_session_fetch_by_lua - status code ok got: ''
expected: '200'
ctx.t TEST 8: ngx.ctx in ssl_session_fetch_by_lua - grep_error_log_out (req 1) got: ""
length: 0
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 8: ngx.ctx in ssl_session_fetch_by_lua - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 10:31:58 [error] 1046\#0: init_by_lua error: /home/ec2-user/git/lua-resty-core/lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
/home/ec2-user/git/lua-resty-core/lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
/home/ec2-user/git/lua-resty-core/lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
/home/ec2-user/git/lua-resty-core/lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
ctx.t nginx: [error] init_by_lua error: /home/ec2-user/git/lua-resty-core/lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
ctx.t TEST 10: ngx.ctx in ssl* and other phases - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
ctx.t TEST 10: ngx.ctx in ssl* and other phases - status code ok got: ''
expected: '200'
ctx.t TEST 10: ngx.ctx in ssl* and other phases - grep_error_log_out (req 0) got: ""
length: 0
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 - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 10:32:03 [error] 1051\#0: init_by_lua error: /home/ec2-user/git/lua-resty-core/lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
/home/ec2-user/git/lua-resty-core/lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
/home/ec2-user/git/lua-resty-core/lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
/home/ec2-user/git/lua-resty-core/lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
ctx.t TEST 10: ngx.ctx in ssl* and other phases - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
ctx.t TEST 10: ngx.ctx in ssl* and other phases - status code ok got: ''
expected: '200'
ctx.t TEST 10: ngx.ctx in ssl* and other phases - grep_error_log_out (req 1) got: ""
length: 0
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 10: ngx.ctx in ssl* and other phases - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 10:32:03 [error] 1051\#0: init_by_lua error: /home/ec2-user/git/lua-resty-core/lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
/home/ec2-user/git/lua-resty-core/lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
/home/ec2-user/git/lua-resty-core/lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
/home/ec2-user/git/lua-resty-core/lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
ctx.t nginx: [error] init_by_lua error: /home/ec2-user/git/lua-resty-core/lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
ctx.t TEST 2: set ngx.ctx - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
ctx.t TEST 2: set ngx.ctx - status code ok got: ''
expected: '200'
ctx.t TEST 2: set ngx.ctx - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "ctx.foo = 100\x{0a}"
length: 14
strings begin to differ at char 1 (line 1 column 1)
ctx.t TEST 2: set ngx.ctx - pattern "(?^:\[TRACE\s+\d+\s+content_by_lua\(nginx\.conf:\d+\):2 loop\])" should match a line in error.log (req 0)
ctx.t TEST 2: set ngx.ctx - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 10:32:07 [error] 1056\#0: init_by_lua error: /home/ec2-user/git/lua-resty-core/lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
/home/ec2-user/git/lua-resty-core/lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
/home/ec2-user/git/lua-resty-core/lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
/home/ec2-user/git/lua-resty-core/lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
ctx.t TEST 2: set ngx.ctx - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
ctx.t TEST 2: set ngx.ctx - status code ok got: ''
expected: '200'
ctx.t TEST 2: set ngx.ctx - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "ctx.foo = 100\x{0a}"
length: 14
strings begin to differ at char 1 (line 1 column 1)
ctx.t TEST 2: set ngx.ctx - pattern "(?^:\[TRACE\s+\d+\s+content_by_lua\(nginx\.conf:\d+\):2 loop\])" should match a line in error.log (req 1)
ctx.t TEST 2: set ngx.ctx - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 10:32:07 [error] 1056\#0: init_by_lua error: /home/ec2-user/git/lua-resty-core/lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
/home/ec2-user/git/lua-resty-core/lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
/home/ec2-user/git/lua-resty-core/lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
/home/ec2-user/git/lua-resty-core/lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
ctx.t nginx: [error] init_by_lua error: /home/ec2-user/git/lua-resty-core/lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
ctx.t TEST 4: ngx.ctx in ssl_certificate_by_lua (share objects) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
ctx.t TEST 4: ngx.ctx in ssl_certificate_by_lua (share objects) - status code ok got: ''
expected: '200'
ctx.t TEST 4: ngx.ctx in ssl_certificate_by_lua (share objects) - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "received: 1\x{0a}received: 2\x{0a}"
length: 24
strings begin to differ at char 1 (line 1 column 1)
ctx.t TEST 4: ngx.ctx in ssl_certificate_by_lua (share objects) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 10:32:12 [error] 1061\#0: init_by_lua error: /home/ec2-user/git/lua-resty-core/lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
/home/ec2-user/git/lua-resty-core/lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
/home/ec2-user/git/lua-resty-core/lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
/home/ec2-user/git/lua-resty-core/lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
ctx.t TEST 4: ngx.ctx in ssl_certificate_by_lua (share objects) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
ctx.t TEST 4: ngx.ctx in ssl_certificate_by_lua (share objects) - status code ok got: ''
expected: '200'
ctx.t TEST 4: ngx.ctx in ssl_certificate_by_lua (share objects) - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "received: 1\x{0a}received: 2\x{0a}"
length: 24
strings begin to differ at char 1 (line 1 column 1)
ctx.t TEST 4: ngx.ctx in ssl_certificate_by_lua (share objects) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 10:32:12 [error] 1061\#0: init_by_lua error: /home/ec2-user/git/lua-resty-core/lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
/home/ec2-user/git/lua-resty-core/lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
/home/ec2-user/git/lua-resty-core/lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
/home/ec2-user/git/lua-resty-core/lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
ctx.t nginx: [error] init_by_lua error: /home/ec2-user/git/lua-resty-core/lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
ctx.t TEST 5: ngx.ctx in ssl_certificate_by_lua (release ctx when client aborted) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
ctx.t TEST 5: ngx.ctx in ssl_certificate_by_lua (release ctx when client aborted) - status code ok got: ''
expected: '200'
ctx.t TEST 5: ngx.ctx in ssl_certificate_by_lua (release ctx when client aborted) - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "failed to do SSL handshake: handshake failed\x{0a}"
length: 45
strings begin to differ at char 1 (line 1 column 1)
ctx.t TEST 5: ngx.ctx in ssl_certificate_by_lua (release ctx when client aborted) - grep_error_log_out (req 0) got: ""
length: 0
expected: "lua release ngx.ctx at ref 1\x{0a}"
length: 29
strings begin to differ at char 1 (line 1 column 1)
ctx.t TEST 5: ngx.ctx in ssl_certificate_by_lua (release ctx when client aborted) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
ctx.t TEST 5: ngx.ctx in ssl_certificate_by_lua (release ctx when client aborted) - status code ok got: ''
expected: '200'
ctx.t TEST 5: ngx.ctx in ssl_certificate_by_lua (release ctx when client aborted) - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "failed to do SSL handshake: handshake failed\x{0a}"
length: 45
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 nginx: [error] init_by_lua error: /home/ec2-user/git/lua-resty-core/lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
ctx.t TEST 7: ngx.ctx in ssl_session_store_by_lua (release ctx when client aborted) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
ctx.t TEST 7: ngx.ctx in ssl_session_store_by_lua (release ctx when client aborted) - status code ok got: ''
expected: '200'
ctx.t TEST 7: ngx.ctx in ssl_session_store_by_lua (release ctx when client aborted) - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "closed\x{0a}"
length: 7
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) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 10:32:21 [error] 1072\#0: init_by_lua error: /home/ec2-user/git/lua-resty-core/lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
/home/ec2-user/git/lua-resty-core/lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
/home/ec2-user/git/lua-resty-core/lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
/home/ec2-user/git/lua-resty-core/lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
ctx.t TEST 7: ngx.ctx in ssl_session_store_by_lua (release ctx when client aborted) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
ctx.t TEST 7: ngx.ctx in ssl_session_store_by_lua (release ctx when client aborted) - status code ok got: ''
expected: '200'
ctx.t TEST 7: ngx.ctx in ssl_session_store_by_lua (release ctx when client aborted) - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "closed\x{0a}"
length: 7
strings begin to differ at char 1 (line 1 column 1)
ctx.t TEST 7: ngx.ctx in ssl_session_store_by_lua (release ctx when client aborted) - grep_error_log_out (req 1) got: ""
length: 0
expected: "lua release ngx.ctx at ref 1\x{0a}lua release ngx.ctx a"...
length: 58
strings begin to differ at char 1 (line 1 column 1)
ctx.t TEST 7: ngx.ctx in ssl_session_store_by_lua (release ctx when client aborted) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 10:32:21 [error] 1072\#0: init_by_lua error: /home/ec2-user/git/lua-resty-core/lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
/home/ec2-user/git/lua-resty-core/lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
/home/ec2-user/git/lua-resty-core/lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
/home/ec2-user/git/lua-resty-core/lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
ctx.t nginx: [error] init_by_lua error: /home/ec2-user/git/lua-resty-core/lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
ctx.t TEST 3: ngx.ctx in ssl_certificate_by_lua - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
ctx.t TEST 3: ngx.ctx in ssl_certificate_by_lua - status code ok got: ''
expected: '200'
ctx.t TEST 3: ngx.ctx in ssl_certificate_by_lua - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "received: 42\x{0a}received: 1\x{0a}received: 42\x{0a}received: 1\x{0a}"
length: 50
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 - pattern "ngx.ctx.answer = 42" should match a line in error.log (req 0)
ctx.t TEST 3: ngx.ctx in ssl_certificate_by_lua - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 10:32:26 [error] 1077\#0: init_by_lua error: /home/ec2-user/git/lua-resty-core/lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
/home/ec2-user/git/lua-resty-core/lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
/home/ec2-user/git/lua-resty-core/lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
/home/ec2-user/git/lua-resty-core/lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
ctx.t TEST 3: ngx.ctx in ssl_certificate_by_lua - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
ctx.t TEST 3: ngx.ctx in ssl_certificate_by_lua - status code ok got: ''
expected: '200'
ctx.t TEST 3: ngx.ctx in ssl_certificate_by_lua - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "received: 42\x{0a}received: 1\x{0a}received: 42\x{0a}received: 1\x{0a}"
length: 50
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 3: ngx.ctx in ssl_certificate_by_lua - pattern "ngx.ctx.answer = 42" should match a line in error.log (req 1)
ctx.t TEST 3: ngx.ctx in ssl_certificate_by_lua - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 10:32:26 [error] 1077\#0: init_by_lua error: /home/ec2-user/git/lua-resty-core/lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
/home/ec2-user/git/lua-resty-core/lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
/home/ec2-user/git/lua-resty-core/lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
/home/ec2-user/git/lua-resty-core/lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
ctx.t nginx: [error] init_by_lua error: /home/ec2-user/git/lua-resty-core/lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
ctx.t TEST 11: overwrite values will only take affect in the current http request - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
ctx.t TEST 11: overwrite values will only take affect in the current http request - status code ok got: ''
expected: '200'
ctx.t TEST 11: overwrite values will only take affect in the current http request - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "received: 0\x{0a}received: 0\x{0a}"
length: 24
strings begin to differ at char 1 (line 1 column 1)
ctx.t TEST 11: overwrite values will only take affect in the current http request - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
ctx.t TEST 11: overwrite values will only take affect in the current http request - status code ok got: ''
expected: '200'
ctx.t TEST 11: overwrite values will only take affect in the current http request - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "received: 0\x{0a}received: 0\x{0a}"
length: 24
strings begin to differ at char 1 (line 1 column 1)
ctx.t nginx: [error] init_by_lua error: /home/ec2-user/git/lua-resty-core/lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
ctx.t TEST 1: get ngx.ctx - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
ctx.t TEST 1: get ngx.ctx - status code ok got: ''
expected: '200'
ctx.t TEST 1: get ngx.ctx - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "ctx.foo = 100\x{0a}"
length: 14
strings begin to differ at char 1 (line 1 column 1)
ctx.t TEST 1: get ngx.ctx - pattern "(?^:\[TRACE\s+\d+\s+content_by_lua\(nginx\.conf:\d+\):2 loop\])" should match a line in error.log (req 0)
ctx.t TEST 1: get ngx.ctx - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 10:32:35 [error] 1087\#0: init_by_lua error: /home/ec2-user/git/lua-resty-core/lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
/home/ec2-user/git/lua-resty-core/lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
/home/ec2-user/git/lua-resty-core/lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
/home/ec2-user/git/lua-resty-core/lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
ctx.t TEST 1: get ngx.ctx - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
ctx.t TEST 1: get ngx.ctx - status code ok got: ''
expected: '200'
ctx.t TEST 1: get ngx.ctx - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "ctx.foo = 100\x{0a}"
length: 14
strings begin to differ at char 1 (line 1 column 1)
ctx.t TEST 1: get ngx.ctx - pattern "(?^:\[TRACE\s+\d+\s+content_by_lua\(nginx\.conf:\d+\):2 loop\])" should match a line in error.log (req 1)
ctx.t TEST 1: get ngx.ctx - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 10:32:35 [error] 1087\#0: init_by_lua error: /home/ec2-user/git/lua-resty-core/lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
/home/ec2-user/git/lua-resty-core/lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
/home/ec2-user/git/lua-resty-core/lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
/home/ec2-user/git/lua-resty-core/lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
ctx.t nginx: [error] init_by_lua error: /home/ec2-user/git/lua-resty-core/lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
ctx.t TEST 6: ngx.ctx in ssl_session_store_by_lua - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
ctx.t TEST 6: ngx.ctx in ssl_session_store_by_lua - status code ok got: ''
expected: '200'
ctx.t TEST 6: ngx.ctx in ssl_session_store_by_lua - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "received: 42\x{0a}received: 1\x{0a}received: 42\x{0a}received: 1\x{0a}"
length: 50
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 - pattern "ngx.ctx.answer = 42" should match a line in error.log (req 0)
ctx.t TEST 6: ngx.ctx in ssl_session_store_by_lua - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 10:32:39 [error] 1092\#0: init_by_lua error: /home/ec2-user/git/lua-resty-core/lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
/home/ec2-user/git/lua-resty-core/lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
/home/ec2-user/git/lua-resty-core/lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
/home/ec2-user/git/lua-resty-core/lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
ctx.t TEST 6: ngx.ctx in ssl_session_store_by_lua - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
ctx.t TEST 6: ngx.ctx in ssl_session_store_by_lua - status code ok got: ''
expected: '200'
ctx.t TEST 6: ngx.ctx in ssl_session_store_by_lua - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "received: 42\x{0a}received: 1\x{0a}received: 42\x{0a}received: 1\x{0a}"
length: 50
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 6: ngx.ctx in ssl_session_store_by_lua - pattern "ngx.ctx.answer = 42" should match a line in error.log (req 1)
ctx.t TEST 6: ngx.ctx in ssl_session_store_by_lua - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 10:32:39 [error] 1092\#0: init_by_lua error: /home/ec2-user/git/lua-resty-core/lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
/home/ec2-user/git/lua-resty-core/lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
/home/ec2-user/git/lua-resty-core/lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
/home/ec2-user/git/lua-resty-core/lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
ctx.t nginx: [error] init_by_lua error: /home/ec2-user/git/lua-resty-core/lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
ctx.t TEST 9: ngx.ctx in ssl_session_fetch_by_lua (release ctx when client aborted) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
ctx.t TEST 9: ngx.ctx in ssl_session_fetch_by_lua (release ctx when client aborted) - status code ok got: ''
expected: '200'
ctx.t TEST 9: ngx.ctx in ssl_session_fetch_by_lua (release ctx when client aborted) - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "closed\x{0a}"
length: 7
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) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 10:32:44 [error] 1097\#0: init_by_lua error: /home/ec2-user/git/lua-resty-core/lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
/home/ec2-user/git/lua-resty-core/lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
/home/ec2-user/git/lua-resty-core/lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
/home/ec2-user/git/lua-resty-core/lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
ctx.t TEST 9: ngx.ctx in ssl_session_fetch_by_lua (release ctx when client aborted) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
ctx.t TEST 9: ngx.ctx in ssl_session_fetch_by_lua (release ctx when client aborted) - status code ok got: ''
expected: '200'
ctx.t TEST 9: ngx.ctx in ssl_session_fetch_by_lua (release ctx when client aborted) - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "closed\x{0a}"
length: 7
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 9: ngx.ctx in ssl_session_fetch_by_lua (release ctx when client aborted) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 10:32:44 [error] 1097\#0: init_by_lua error: /home/ec2-user/git/lua-resty-core/lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
/home/ec2-user/git/lua-resty-core/lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
/home/ec2-user/git/lua-resty-core/lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
/home/ec2-user/git/lua-resty-core/lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
decode-base64.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
decode-base64.t TEST 8: decode_base64url with invalid input - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
decode-base64.t TEST 8: decode_base64url with invalid input - status code ok got: ''
expected: '200'
decode-base64.t TEST 8: decode_base64url with invalid input - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "decode_base64url returned: nil, invalid input\x{0a}"
length: 46
strings begin to differ at char 1 (line 1 column 1)
decode-base64.t TEST 8: decode_base64url with invalid input - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 10:32:49 [error] 1105\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
decode-base64.t TEST 8: decode_base64url with invalid input - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
decode-base64.t TEST 8: decode_base64url with invalid input - status code ok got: ''
expected: '200'
decode-base64.t TEST 8: decode_base64url with invalid input - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "decode_base64url returned: nil, invalid input\x{0a}"
length: 46
strings begin to differ at char 1 (line 1 column 1)
decode-base64.t TEST 8: decode_base64url with invalid input - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 10:32:49 [error] 1105\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
decode-base64.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
decode-base64.t TEST 4: set base64 (boolean) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
decode-base64.t TEST 4: set base64 (boolean) - status code ok got: ''
expected: '200'
decode-base64.t TEST 4: set base64 (boolean) - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "true\x{0a}"
length: 5
strings begin to differ at char 1 (line 1 column 1)
decode-base64.t TEST 4: set base64 (boolean) - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):3 loop\])" should match a line in error.log (req 0)
decode-base64.t TEST 4: set base64 (boolean) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 10:32:53 [error] 1110\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
decode-base64.t TEST 4: set base64 (boolean) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
decode-base64.t TEST 4: set base64 (boolean) - status code ok got: ''
expected: '200'
decode-base64.t TEST 4: set base64 (boolean) - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "true\x{0a}"
length: 5
strings begin to differ at char 1 (line 1 column 1)
decode-base64.t TEST 4: set base64 (boolean) - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):3 loop\])" should match a line in error.log (req 1)
decode-base64.t TEST 4: set base64 (boolean) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 10:32:53 [error] 1110\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
decode-base64.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
decode-base64.t TEST 2: set base64 (nil) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
decode-base64.t TEST 2: set base64 (nil) - status code ok got: ''
expected: '200'
decode-base64.t TEST 2: set base64 (nil) - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "\x{0a}"
length: 1
strings begin to differ at char 1 (line 1 column 1)
decode-base64.t TEST 2: set base64 (nil) - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):3 loop\])" should match a line in error.log (req 0)
decode-base64.t TEST 2: set base64 (nil) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 10:32:58 [error] 1115\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
decode-base64.t TEST 2: set base64 (nil) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
decode-base64.t TEST 2: set base64 (nil) - status code ok got: ''
expected: '200'
decode-base64.t TEST 2: set base64 (nil) - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "\x{0a}"
length: 1
strings begin to differ at char 1 (line 1 column 1)
decode-base64.t TEST 2: set base64 (nil) - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):3 loop\])" should match a line in error.log (req 1)
decode-base64.t TEST 2: set base64 (nil) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 10:32:58 [error] 1115\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
decode-base64.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
decode-base64.t TEST 7: decode_base64url - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
decode-base64.t TEST 7: decode_base64url - status code ok got: ''
expected: '200'
decode-base64.t TEST 7: decode_base64url - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "decode_base64url("") = ""\x{0a}decode_base64url("Zg") ="...
length: 303
strings begin to differ at char 1 (line 1 column 1)
decode-base64.t TEST 7: decode_base64url - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 10:33:02 [error] 1122\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
decode-base64.t TEST 7: decode_base64url - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
decode-base64.t TEST 7: decode_base64url - status code ok got: ''
expected: '200'
decode-base64.t TEST 7: decode_base64url - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "decode_base64url("") = ""\x{0a}decode_base64url("Zg") ="...
length: 303
strings begin to differ at char 1 (line 1 column 1)
decode-base64.t TEST 7: decode_base64url - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 10:33:02 [error] 1122\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
decode-base64.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
decode-base64.t TEST 5: string (buf size just smaller than 4096) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
decode-base64.t TEST 5: string (buf size just smaller than 4096) - status code ok got: ''
expected: '200'
decode-base64.t TEST 5: string (buf size just smaller than 4096) - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "4095\x{0a}"
length: 5
strings begin to differ at char 1 (line 1 column 1)
decode-base64.t TEST 5: string (buf size just smaller than 4096) - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):3 loop\])" should match a line in error.log (req 0)
decode-base64.t TEST 5: string (buf size just smaller than 4096) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 10:33:07 [error] 1127\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
decode-base64.t TEST 5: string (buf size just smaller than 4096) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
decode-base64.t TEST 5: string (buf size just smaller than 4096) - status code ok got: ''
expected: '200'
decode-base64.t TEST 5: string (buf size just smaller than 4096) - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "4095\x{0a}"
length: 5
strings begin to differ at char 1 (line 1 column 1)
decode-base64.t TEST 5: string (buf size just smaller than 4096) - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):3 loop\])" should match a line in error.log (req 1)
decode-base64.t TEST 5: string (buf size just smaller than 4096) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 10:33:07 [error] 1127\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
decode-base64.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
decode-base64.t TEST 3: set base64 (number) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
decode-base64.t TEST 3: set base64 (number) - status code ok got: ''
expected: '200'
decode-base64.t TEST 3: set base64 (number) - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "3.14\x{0a}"
length: 5
strings begin to differ at char 1 (line 1 column 1)
decode-base64.t TEST 3: set base64 (number) - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):3 loop\])" should match a line in error.log (req 0)
decode-base64.t TEST 3: set base64 (number) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 10:33:11 [error] 1132\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
decode-base64.t TEST 3: set base64 (number) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
decode-base64.t TEST 3: set base64 (number) - status code ok got: ''
expected: '200'
decode-base64.t TEST 3: set base64 (number) - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "3.14\x{0a}"
length: 5
strings begin to differ at char 1 (line 1 column 1)
decode-base64.t TEST 3: set base64 (number) - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):3 loop\])" should match a line in error.log (req 1)
decode-base64.t TEST 3: set base64 (number) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 10:33:11 [error] 1132\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
decode-base64.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
decode-base64.t TEST 6: string (buf size just a bit bigger than 4096) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
decode-base64.t TEST 6: string (buf size just a bit bigger than 4096) - status code ok got: ''
expected: '200'
decode-base64.t TEST 6: string (buf size just a bit bigger than 4096) - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "4096\x{0a}"
length: 5
strings begin to differ at char 1 (line 1 column 1)
decode-base64.t TEST 6: string (buf size just a bit bigger than 4096) - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):3 loop\])" should match a line in error.log (req 0)
decode-base64.t TEST 6: string (buf size just a bit bigger than 4096) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 10:33:16 [error] 1137\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
decode-base64.t TEST 6: string (buf size just a bit bigger than 4096) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
decode-base64.t TEST 6: string (buf size just a bit bigger than 4096) - status code ok got: ''
expected: '200'
decode-base64.t TEST 6: string (buf size just a bit bigger than 4096) - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "4096\x{0a}"
length: 5
strings begin to differ at char 1 (line 1 column 1)
decode-base64.t TEST 6: string (buf size just a bit bigger than 4096) - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):3 loop\])" should match a line in error.log (req 1)
decode-base64.t TEST 6: string (buf size just a bit bigger than 4096) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 10:33:16 [error] 1137\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
decode-base64.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
decode-base64.t TEST 1: string - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
decode-base64.t TEST 1: string - status code ok got: ''
expected: '200'
decode-base64.t TEST 1: string - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "hello\x{0a}"
length: 6
strings begin to differ at char 1 (line 1 column 1)
decode-base64.t TEST 1: string - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):3 loop\])" should match a line in error.log (req 0)
decode-base64.t TEST 1: string - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 10:33:20 [error] 1142\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
decode-base64.t TEST 1: string - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
decode-base64.t TEST 1: string - status code ok got: ''
expected: '200'
decode-base64.t TEST 1: string - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "hello\x{0a}"
length: 6
strings begin to differ at char 1 (line 1 column 1)
decode-base64.t TEST 1: string - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):3 loop\])" should match a line in error.log (req 1)
decode-base64.t TEST 1: string - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 10:33:20 [error] 1142\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
encode-base64.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
encode-base64.t TEST 2: set base64 (nil) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
encode-base64.t TEST 2: set base64 (nil) - status code ok got: ''
expected: '200'
encode-base64.t TEST 2: set base64 (nil) - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "\x{0a}"
length: 1
strings begin to differ at char 1 (line 1 column 1)
encode-base64.t TEST 2: set base64 (nil) - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):3 loop\])" should match a line in error.log (req 0)
encode-base64.t TEST 2: set base64 (nil) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 10:33:25 [error] 1151\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
encode-base64.t TEST 2: set base64 (nil) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
encode-base64.t TEST 2: set base64 (nil) - status code ok got: ''
expected: '200'
encode-base64.t TEST 2: set base64 (nil) - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "\x{0a}"
length: 1
strings begin to differ at char 1 (line 1 column 1)
encode-base64.t TEST 2: set base64 (nil) - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):3 loop\])" should match a line in error.log (req 1)
encode-base64.t TEST 2: set base64 (nil) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 10:33:25 [error] 1151\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
encode-base64.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
encode-base64.t TEST 4: set base64 (boolean) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
encode-base64.t TEST 4: set base64 (boolean) - status code ok got: ''
expected: '200'
encode-base64.t TEST 4: set base64 (boolean) - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "dHJ1ZQ==\x{0a}"
length: 9
strings begin to differ at char 1 (line 1 column 1)
encode-base64.t TEST 4: set base64 (boolean) - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):3 loop\])" should match a line in error.log (req 0)
encode-base64.t TEST 4: set base64 (boolean) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 10:33:30 [error] 1160\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
encode-base64.t TEST 4: set base64 (boolean) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
encode-base64.t TEST 4: set base64 (boolean) - status code ok got: ''
expected: '200'
encode-base64.t TEST 4: set base64 (boolean) - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "dHJ1ZQ==\x{0a}"
length: 9
strings begin to differ at char 1 (line 1 column 1)
encode-base64.t TEST 4: set base64 (boolean) - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):3 loop\])" should match a line in error.log (req 1)
encode-base64.t TEST 4: set base64 (boolean) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 10:33:30 [error] 1160\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
encode-base64.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
encode-base64.t TEST 9: encode_base64url - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
encode-base64.t TEST 9: encode_base64url - status code ok got: ''
expected: '200'
encode-base64.t TEST 9: encode_base64url - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "encode_base64url("") = ""\x{0a}encode_base64url("f") = "...
length: 299
strings begin to differ at char 1 (line 1 column 1)
encode-base64.t TEST 9: encode_base64url - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 10:33:34 [error] 1165\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
encode-base64.t TEST 9: encode_base64url - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
encode-base64.t TEST 9: encode_base64url - status code ok got: ''
expected: '200'
encode-base64.t TEST 9: encode_base64url - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "encode_base64url("") = ""\x{0a}encode_base64url("f") = "...
length: 299
strings begin to differ at char 1 (line 1 column 1)
encode-base64.t TEST 9: encode_base64url - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 10:33:34 [error] 1165\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
encode-base64.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
encode-base64.t TEST 7: set base64 (number) without padding (explicitly specified) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
encode-base64.t TEST 7: set base64 (number) without padding (explicitly specified) - status code ok got: ''
expected: '200'
encode-base64.t TEST 7: set base64 (number) without padding (explicitly specified) - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "My4xNA\x{0a}"
length: 7
strings begin to differ at char 1 (line 1 column 1)
encode-base64.t TEST 7: set base64 (number) without padding (explicitly specified) - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):3 loop\])" should match a line in error.log (req 0)
encode-base64.t TEST 7: set base64 (number) without padding (explicitly specified) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 10:33:39 [error] 1172\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
encode-base64.t TEST 7: set base64 (number) without padding (explicitly specified) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
encode-base64.t TEST 7: set base64 (number) without padding (explicitly specified) - status code ok got: ''
expected: '200'
encode-base64.t TEST 7: set base64 (number) without padding (explicitly specified) - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "My4xNA\x{0a}"
length: 7
strings begin to differ at char 1 (line 1 column 1)
encode-base64.t TEST 7: set base64 (number) without padding (explicitly specified) - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):3 loop\])" should match a line in error.log (req 1)
encode-base64.t TEST 7: set base64 (number) without padding (explicitly specified) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 10:33:39 [error] 1172\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
encode-base64.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
encode-base64.t TEST 1: set base64 (string) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
encode-base64.t TEST 1: set base64 (string) - status code ok got: ''
expected: '200'
encode-base64.t TEST 1: set base64 (string) - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "aGVsbG8=\x{0a}"
length: 9
strings begin to differ at char 1 (line 1 column 1)
encode-base64.t TEST 1: set base64 (string) - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):3 loop\])" should match a line in error.log (req 0)
encode-base64.t TEST 1: set base64 (string) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 10:33:43 [error] 1177\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
encode-base64.t TEST 1: set base64 (string) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
encode-base64.t TEST 1: set base64 (string) - status code ok got: ''
expected: '200'
encode-base64.t TEST 1: set base64 (string) - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "aGVsbG8=\x{0a}"
length: 9
strings begin to differ at char 1 (line 1 column 1)
encode-base64.t TEST 1: set base64 (string) - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):3 loop\])" should match a line in error.log (req 1)
encode-base64.t TEST 1: set base64 (string) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 10:33:43 [error] 1177\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
encode-base64.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
encode-base64.t TEST 6: set base64 (buf is just 4096) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
encode-base64.t TEST 6: set base64 (buf is just 4096) - status code ok got: ''
expected: '200'
encode-base64.t TEST 6: set base64 (buf is just 4096) - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "4096\x{0a}"
length: 5
strings begin to differ at char 1 (line 1 column 1)
encode-base64.t TEST 6: set base64 (buf is just 4096) - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):3 loop\])" should match a line in error.log (req 0)
encode-base64.t TEST 6: set base64 (buf is just 4096) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 10:33:48 [error] 1182\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
encode-base64.t TEST 6: set base64 (buf is just 4096) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
encode-base64.t TEST 6: set base64 (buf is just 4096) - status code ok got: ''
expected: '200'
encode-base64.t TEST 6: set base64 (buf is just 4096) - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "4096\x{0a}"
length: 5
strings begin to differ at char 1 (line 1 column 1)
encode-base64.t TEST 6: set base64 (buf is just 4096) - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):3 loop\])" should match a line in error.log (req 1)
encode-base64.t TEST 6: set base64 (buf is just 4096) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 10:33:48 [error] 1182\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
encode-base64.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
encode-base64.t TEST 8: set base64 (number) with padding (explicitly specified) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
encode-base64.t TEST 8: set base64 (number) with padding (explicitly specified) - status code ok got: ''
expected: '200'
encode-base64.t TEST 8: set base64 (number) with padding (explicitly specified) - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "My4xNA==\x{0a}"
length: 9
strings begin to differ at char 1 (line 1 column 1)
encode-base64.t TEST 8: set base64 (number) with padding (explicitly specified) - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):3 loop\])" should match a line in error.log (req 0)
encode-base64.t TEST 8: set base64 (number) with padding (explicitly specified) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 10:33:52 [error] 1188\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
encode-base64.t TEST 8: set base64 (number) with padding (explicitly specified) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
encode-base64.t TEST 8: set base64 (number) with padding (explicitly specified) - status code ok got: ''
expected: '200'
encode-base64.t TEST 8: set base64 (number) with padding (explicitly specified) - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "My4xNA==\x{0a}"
length: 9
strings begin to differ at char 1 (line 1 column 1)
encode-base64.t TEST 8: set base64 (number) with padding (explicitly specified) - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):3 loop\])" should match a line in error.log (req 1)
encode-base64.t TEST 8: set base64 (number) with padding (explicitly specified) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 10:33:52 [error] 1188\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
encode-base64.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
encode-base64.t TEST 5: set base64 (buf is a little larger than 4096) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
encode-base64.t TEST 5: set base64 (buf is a little larger than 4096) - status code ok got: ''
expected: '200'
encode-base64.t TEST 5: set base64 (buf is a little larger than 4096) - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "4100\x{0a}"
length: 5
strings begin to differ at char 1 (line 1 column 1)
encode-base64.t TEST 5: set base64 (buf is a little larger than 4096) - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):3 loop\])" should match a line in error.log (req 0)
encode-base64.t TEST 5: set base64 (buf is a little larger than 4096) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 10:33:57 [error] 1193\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
encode-base64.t TEST 5: set base64 (buf is a little larger than 4096) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
encode-base64.t TEST 5: set base64 (buf is a little larger than 4096) - status code ok got: ''
expected: '200'
encode-base64.t TEST 5: set base64 (buf is a little larger than 4096) - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "4100\x{0a}"
length: 5
strings begin to differ at char 1 (line 1 column 1)
encode-base64.t TEST 5: set base64 (buf is a little larger than 4096) - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):3 loop\])" should match a line in error.log (req 1)
encode-base64.t TEST 5: set base64 (buf is a little larger than 4096) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 10:33:57 [error] 1193\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
encode-base64.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
encode-base64.t TEST 3: set base64 (number) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
encode-base64.t TEST 3: set base64 (number) - status code ok got: ''
expected: '200'
encode-base64.t TEST 3: set base64 (number) - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "My4xNA==\x{0a}"
length: 9
strings begin to differ at char 1 (line 1 column 1)
encode-base64.t TEST 3: set base64 (number) - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):3 loop\])" should match a line in error.log (req 0)
encode-base64.t TEST 3: set base64 (number) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 10:34:01 [error] 1198\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
encode-base64.t TEST 3: set base64 (number) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
encode-base64.t TEST 3: set base64 (number) - status code ok got: ''
expected: '200'
encode-base64.t TEST 3: set base64 (number) - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "My4xNA==\x{0a}"
length: 9
strings begin to differ at char 1 (line 1 column 1)
encode-base64.t TEST 3: set base64 (number) - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):3 loop\])" should match a line in error.log (req 1)
encode-base64.t TEST 3: set base64 (number) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 10:34:01 [error] 1198\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
errlog-raw-log.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
errlog-raw-log.t TEST 4: errlog.raw_log test log-level ERR - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
errlog-raw-log.t TEST 4: errlog.raw_log test log-level ERR - status code ok got: ''
expected: '200'
errlog-raw-log.t TEST 4: errlog.raw_log test log-level ERR - pattern "(?^:\[error\] \S+: \S+ hello world)" should match a line in error.log (req 0)
errlog-raw-log.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
errlog-raw-log.t TEST 3: errlog.raw_log with bad log message - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
errlog-raw-log.t TEST 3: errlog.raw_log with bad log message - status code ok got: ''
expected: '500'
errlog-raw-log.t TEST 3: errlog.raw_log with bad log message - response_body_like - response is expected () ''
doesn't match '(?^s:500 Internal Server Error)'
errlog-raw-log.t TEST 3: errlog.raw_log with bad log message - pattern "bad argument \#2 to 'raw_log' (must be a string)" should match a line in error.log (req 0)
errlog-raw-log.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
errlog-raw-log.t TEST 5: errlog.raw_log JITs - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
errlog-raw-log.t TEST 5: errlog.raw_log JITs - status code ok got: ''
expected: '200'
errlog-raw-log.t TEST 5: errlog.raw_log JITs - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx.conf:\d+\):4 loop\])" should match a line in error.log (req 0)
errlog-raw-log.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
errlog-raw-log.t TEST 9: errlog.raw_log is captured by errlog.get_logs() - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
errlog-raw-log.t TEST 9: errlog.raw_log is captured by errlog.get_logs() - status code ok got: ''
expected: '200'
errlog-raw-log.t TEST 9: errlog.raw_log is captured by errlog.get_logs() - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'log lines: 1
'
errlog-raw-log.t TEST 9: errlog.raw_log is captured by errlog.get_logs() - pattern "(?^:\[error\] .*? hello from raw_log\(\))" should match a line in error.log (req 0)
errlog-raw-log.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
errlog-raw-log.t TEST 2: errlog.raw_log with bad levels (9) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
errlog-raw-log.t TEST 2: errlog.raw_log with bad levels (9) - status code ok got: ''
expected: '500'
errlog-raw-log.t TEST 2: errlog.raw_log with bad levels (9) - response_body_like - response is expected () ''
doesn't match '(?^s:500 Internal Server Error)'
errlog-raw-log.t TEST 2: errlog.raw_log with bad levels (9) - pattern "bad log level" should match a line in error.log (req 0)
errlog-raw-log.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
errlog-raw-log.t TEST 6: errlog.raw_log in init_by_lua - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
errlog-raw-log.t TEST 6: errlog.raw_log in init_by_lua - status code ok got: ''
expected: '200'
errlog-raw-log.t TEST 6: errlog.raw_log in init_by_lua - grep_error_log_out (req 0) got: ''
expected: 'hello world from init_by_lua
'
errlog-raw-log.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
errlog-raw-log.t TEST 7: errlog.raw_log in init_worker_by_lua - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
errlog-raw-log.t TEST 7: errlog.raw_log in init_worker_by_lua - status code ok got: ''
expected: '200'
errlog-raw-log.t TEST 7: errlog.raw_log in init_worker_by_lua - grep_error_log_out (req 0) got: ''
expected: 'hello world from init_worker_by_lua
'
errlog-raw-log.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
errlog-raw-log.t TEST 8: errlog.raw_log with \0 in the log message - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
errlog-raw-log.t TEST 8: errlog.raw_log with \0 in the log message - status code ok got: ''
expected: '200'
errlog-raw-log.t TEST 8: errlog.raw_log with \0 in the log message - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'ok
'
errlog-raw-log.t TEST 8: errlog.raw_log with \0 in the log message - pattern "helloworld, client: " should match a line in error.log (req 0)
errlog-raw-log.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
errlog-raw-log.t TEST 1: errlog.raw_log with bad log level (ngx.ERROR, -1) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
errlog-raw-log.t TEST 1: errlog.raw_log with bad log level (ngx.ERROR, -1) - status code ok got: ''
expected: '500'
errlog-raw-log.t TEST 1: errlog.raw_log with bad log level (ngx.ERROR, -1) - response_body_like - response is expected () ''
doesn't match '(?^s:500 Internal Server Error)'
errlog-raw-log.t TEST 1: errlog.raw_log with bad log level (ngx.ERROR, -1) - pattern "bad log level" should match a line in error.log (req 0)
errlog.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
errlog.t TEST 23: the system default filter level is "debug" - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
errlog.t TEST 23: the system default filter level is "debug" - status code ok got: ''
expected: '200'
errlog.t TEST 23: the system default filter level is "debug" - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'Is "debug" the system default filter level? true'
errlog.t TEST 23: the system default filter level is "debug" - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
errlog.t TEST 23: the system default filter level is "debug" - status code ok got: ''
expected: '200'
errlog.t TEST 23: the system default filter level is "debug" - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'Is "debug" the system default filter level? true'
errlog.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
errlog.t TEST 24: the system default filter level is "emerg" - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
errlog.t TEST 24: the system default filter level is "emerg" - status code ok got: ''
expected: '200'
errlog.t TEST 24: the system default filter level is "emerg" - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'Is "emerg" the system default filter level? true'
errlog.t TEST 24: the system default filter level is "emerg" - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
errlog.t TEST 24: the system default filter level is "emerg" - status code ok got: ''
expected: '200'
errlog.t TEST 24: the system default filter level is "emerg" - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'Is "emerg" the system default filter level? true'
errlog.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
errlog.t TEST 10: without directive + ngx.set_filter_level - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
errlog.t TEST 10: without directive + ngx.set_filter_level - status code ok got: ''
expected: '500'
errlog.t TEST 10: without directive + ngx.set_filter_level - response_body_like - response is expected () ''
doesn't match '(?^s:500 Internal Server Error)'
errlog.t TEST 10: without directive + ngx.set_filter_level - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
errlog.t TEST 10: without directive + ngx.set_filter_level - status code ok got: ''
expected: '500'
errlog.t TEST 10: without directive + ngx.set_filter_level - response_body_like - response is expected () ''
doesn't match '(?^s:500 Internal Server Error)'
errlog.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
errlog.t TEST 22: user-supplied Lua table to hold the result (get one log + no log) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
errlog.t TEST 22: user-supplied Lua table to hold the result (get one log + no log) - status code ok got: ''
expected: '200'
errlog.t TEST 22: user-supplied Lua table to hold the result (get one log + no log) - response_body_like - response is expected () ''
doesn't match '(?^s:\Amaybe log lines: #1
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*access_by_lua\(nginx.conf:\d+\):\d+: -->
new line, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
end
maybe log lines: #1
end
\z)'
errlog.t TEST 22: user-supplied Lua table to hold the result (get one log + no log) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
errlog.t TEST 22: user-supplied Lua table to hold the result (get one log + no log) - status code ok got: ''
expected: '200'
errlog.t TEST 22: user-supplied Lua table to hold the result (get one log + no log) - response_body_like - response is expected () ''
doesn't match '(?^s:\Amaybe log lines: #1
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*access_by_lua\(nginx.conf:\d+\):\d+: -->
new line, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
end
maybe log lines: #1
end
\z)'
errlog.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
errlog.t TEST 13: filter log by level(ngx.CRIT) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
errlog.t TEST 13: filter log by level(ngx.CRIT) - status code ok got: ''
expected: '200'
errlog.t TEST 13: filter log by level(ngx.CRIT) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'log lines:0
'
errlog.t TEST 13: filter log by level(ngx.CRIT) - grep_error_log_out (req 0) @@ -1,3 +0,0 @@
--->1
--->2
--->3
'
errlog.t TEST 13: filter log by level(ngx.CRIT) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
errlog.t TEST 13: filter log by level(ngx.CRIT) - status code ok got: ''
expected: '200'
errlog.t TEST 13: filter log by level(ngx.CRIT) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'log lines:0
'
errlog.t TEST 13: filter log by level(ngx.CRIT) - grep_error_log_out (req 1) @@ -1,3 +0,0 @@
--->1
--->2
--->3
'
errlog.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
errlog.t TEST 3: 404 error (not found) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
errlog.t TEST 3: 404 error (not found) - status code ok got: ''
expected: '404'
errlog.t TEST 3: 404 error (not found) - grep_error_log_out (req 0) ''
doesn't match '(?^:^No such file or directory
capture log line:1
$)'
errlog.t TEST 3: 404 error (not found) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
errlog.t TEST 3: 404 error (not found) - status code ok got: ''
expected: '404'
errlog.t TEST 3: 404 error (not found) - grep_error_log_out (req 1) ''
doesn't match '(?^:^No such file or directory
capture log line:2
$)'
errlog.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
errlog.t TEST 29: ringbuf overflow bug - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
errlog.t TEST 29: ringbuf overflow bug - status code ok got: ''
expected: '200'
errlog.t TEST 29: ringbuf overflow bug - response_body_like - response is expected () ''
doesn't match '(?^s:log level: 4
log time: \d+(?:\.\d+)?
log body: \d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: \*\*\*\*\*\*\*\*\*\*39, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level: 4
log time: \d{10}(?:\.\d+)?
log body: \d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: \*\*\*\*\*\*\*\*\*\*40, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost")'
errlog.t TEST 29: ringbuf overflow bug - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
errlog.t TEST 29: ringbuf overflow bug - status code ok got: ''
expected: '200'
errlog.t TEST 29: ringbuf overflow bug - response_body_like - response is expected () ''
doesn't match '(?^s:log level: 4
log time: \d+(?:\.\d+)?
log body: \d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: \*\*\*\*\*\*\*\*\*\*39, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level: 4
log time: \d{10}(?:\.\d+)?
log body: \d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: \*\*\*\*\*\*\*\*\*\*40, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost")'
errlog.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
errlog.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
errlog.t TEST 1: sanity - status code ok got: ''
expected: '200'
errlog.t TEST 1: sanity - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'log lines:2
'
errlog.t TEST 1: sanity - grep_error_log_out (req 0) @@ -1,2 +0,0 @@
-enter 1
-enter 11
'
errlog.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
errlog.t TEST 1: sanity - status code ok got: ''
expected: '200'
errlog.t TEST 1: sanity - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'log lines:2
'
errlog.t TEST 1: sanity - grep_error_log_out (req 1) @@ -1,2 +0,0 @@
-enter 1
-enter 11
'
errlog.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
errlog.t TEST 19: fetch a few and generate a few, then fetch again (overflown again) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
errlog.t TEST 19: fetch a few and generate a few, then fetch again (overflown again) - status code ok got: ''
expected: '200'
errlog.t TEST 19: fetch a few and generate a few, then fetch again (overflown again) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
errlog.t TEST 19: fetch a few and generate a few, then fetch again (overflown again) - status code ok got: ''
expected: '200'
errlog.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
errlog.t TEST 9: without directive + ngx.errlog - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
errlog.t TEST 9: without directive + ngx.errlog - status code ok got: ''
expected: '500'
errlog.t TEST 9: without directive + ngx.errlog - response_body_like - response is expected () ''
doesn't match '(?^s:500 Internal Server Error)'
errlog.t TEST 9: without directive + ngx.errlog - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
errlog.t TEST 9: without directive + ngx.errlog - status code ok got: ''
expected: '500'
errlog.t TEST 9: without directive + ngx.errlog - response_body_like - response is expected () ''
doesn't match '(?^s:500 Internal Server Error)'
errlog.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
errlog.t TEST 30: ringbuf sentinel bug1 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
errlog.t TEST 30: ringbuf sentinel bug1 - status code ok got: ''
expected: '200'
errlog.t TEST 30: ringbuf sentinel bug1 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
errlog.t TEST 30: ringbuf sentinel bug1 - status code ok got: ''
expected: '200'
errlog.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
errlog.t TEST 27: sanity (with log time) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
errlog.t TEST 27: sanity (with log time) - status code ok got: ''
expected: '200'
errlog.t TEST 27: sanity (with log time) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'log lines:2
'
errlog.t TEST 27: sanity (with log time) - grep_error_log_out (req 0) @@ -1,2 +0,0 @@
-enter 1
-enter 11
'
errlog.t TEST 27: sanity (with log time) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
errlog.t TEST 27: sanity (with log time) - status code ok got: ''
expected: '200'
errlog.t TEST 27: sanity (with log time) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'log lines:2
'
errlog.t TEST 27: sanity (with log time) - grep_error_log_out (req 1) @@ -1,2 +0,0 @@
-enter 1
-enter 11
'
errlog.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
errlog.t TEST 11: filter log by level(ngx.INFO) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
errlog.t TEST 11: filter log by level(ngx.INFO) - status code ok got: ''
expected: '200'
errlog.t TEST 11: filter log by level(ngx.INFO) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'log lines:3
'
errlog.t TEST 11: filter log by level(ngx.INFO) - grep_error_log_out (req 0) @@ -1,3 +0,0 @@
--->1
--->2
--->3
'
errlog.t TEST 11: filter log by level(ngx.INFO) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
errlog.t TEST 11: filter log by level(ngx.INFO) - status code ok got: ''
expected: '200'
errlog.t TEST 11: filter log by level(ngx.INFO) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'log lines:3
'
errlog.t TEST 11: filter log by level(ngx.INFO) - grep_error_log_out (req 1) @@ -1,3 +0,0 @@
--->1
--->2
--->3
'
errlog.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
errlog.t TEST 6: customize the log path - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
errlog.t TEST 6: customize the log path - status code ok got: ''
expected: '200'
errlog.t TEST 6: customize the log path - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'hello
'
errlog.t TEST 6: customize the log path - grep_error_log_out (req 0) ''
doesn't match '(?^:^enter access
capture log line:1
$)'
errlog.t TEST 6: customize the log path - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
errlog.t TEST 6: customize the log path - status code ok got: ''
expected: '200'
errlog.t TEST 6: customize the log path - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'hello
'
errlog.t TEST 6: customize the log path - grep_error_log_out (req 1) ''
doesn't match '(?^:^enter access
capture log line:2
$)'
errlog.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
errlog.t TEST 2: overflow captured error logs - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
errlog.t TEST 2: overflow captured error logs - status code ok got: ''
expected: '200'
errlog.t TEST 2: overflow captured error logs - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'log lines:1
'
errlog.t TEST 2: overflow captured error logs - grep_error_log_out (req 0) @@ -1,2 +0,0 @@
-enter 1
-enter 22
'
errlog.t TEST 2: overflow captured error logs - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
errlog.t TEST 2: overflow captured error logs - status code ok got: ''
expected: '200'
errlog.t TEST 2: overflow captured error logs - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'log lines:1
'
errlog.t TEST 2: overflow captured error logs - grep_error_log_out (req 1) @@ -1,2 +0,0 @@
-enter 1
-enter 22
'
errlog.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
errlog.t TEST 20: fetch a few and generate a few, then fetch again (not overflown again) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
errlog.t TEST 20: fetch a few and generate a few, then fetch again (not overflown again) - status code ok got: ''
expected: '200'
errlog.t TEST 20: fetch a few and generate a few, then fetch again (not overflown again) - response_body_like - response is expected () ''
doesn't match '(?^s:\Amsg count: 3
log level:5
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*?access_by_lua\(nginx.conf:\d+\):\d+: --> 88, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?access_by_lua\(nginx.conf:\d+\):\d+: --> 88, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level:5
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*?access_by_lua\(nginx.conf:\d+\):\d+: --> 89, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
msg count: 3
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?access_by_lua\(nginx.conf:\d+\):\d+: --> 89, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level:5
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*?access_by_lua\(nginx.conf:\d+\):\d+: --> 90, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?access_by_lua\(nginx.conf:\d+\):\d+: --> 90, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?access_by_lua\(nginx.conf:\d+\):\d+: --> 100, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: howdy, something new!, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: howdy, something even newer!, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
\z)'
errlog.t TEST 20: fetch a few and generate a few, then fetch again (not overflown again) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
errlog.t TEST 20: fetch a few and generate a few, then fetch again (not overflown again) - status code ok got: ''
expected: '200'
errlog.t TEST 20: fetch a few and generate a few, then fetch again (not overflown again) - response_body_like - response is expected () ''
doesn't match '(?^s:\Amsg count: 3
log level:5
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*?access_by_lua\(nginx.conf:\d+\):\d+: --> 88, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?access_by_lua\(nginx.conf:\d+\):\d+: --> 88, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level:5
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*?access_by_lua\(nginx.conf:\d+\):\d+: --> 89, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
msg count: 3
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?access_by_lua\(nginx.conf:\d+\):\d+: --> 89, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level:5
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*?access_by_lua\(nginx.conf:\d+\):\d+: --> 90, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?access_by_lua\(nginx.conf:\d+\):\d+: --> 90, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?access_by_lua\(nginx.conf:\d+\):\d+: --> 100, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: howdy, something new!, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: howdy, something even newer!, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
\z)'
errlog.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
errlog.t TEST 4: 500 error - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
errlog.t TEST 4: 500 error - status code ok got: ''
expected: '500'
errlog.t TEST 4: 500 error - grep_error_log_out (req 0) ''
doesn't match '(?^:^attempt to perform arithmetic on a table value
capture log line:1
$)'
errlog.t TEST 4: 500 error - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
errlog.t TEST 4: 500 error - status code ok got: ''
expected: '500'
errlog.t TEST 4: 500 error - grep_error_log_out (req 1) ''
doesn't match '(?^:^attempt to perform arithmetic on a table value
capture log line:2
$)'
errlog.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
errlog.t TEST 18: flood the capturing buffer (5k) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
errlog.t TEST 18: flood the capturing buffer (5k) - status code ok got: ''
expected: '200'
errlog.t TEST 18: flood the capturing buffer (5k) - response_body_like - response is expected () ''
doesn't match '(?^s:\Alog lines: #26
log level:5
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*access_by_lua\(nginx.conf:\d+\):\d+: --> 88, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*access_by_lua\(nginx.conf:\d+\):\d+: --> 88, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level:5
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*access_by_lua\(nginx.conf:\d+\):\d+: --> 89, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*access_by_lua\(nginx.conf:\d+\):\d+: --> 99, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level:5
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*access_by_lua\(nginx.conf:\d+\):\d+: --> 100, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*access_by_lua\(nginx.conf:\d+\):\d+: --> 100, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
\z)'
errlog.t TEST 18: flood the capturing buffer (5k) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
errlog.t TEST 18: flood the capturing buffer (5k) - status code ok got: ''
expected: '200'
errlog.t TEST 18: flood the capturing buffer (5k) - response_body_like - response is expected () ''
doesn't match '(?^s:\Alog lines: #26
log level:5
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*access_by_lua\(nginx.conf:\d+\):\d+: --> 88, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*access_by_lua\(nginx.conf:\d+\):\d+: --> 88, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level:5
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*access_by_lua\(nginx.conf:\d+\):\d+: --> 89, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*access_by_lua\(nginx.conf:\d+\):\d+: --> 99, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level:5
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*access_by_lua\(nginx.conf:\d+\):\d+: --> 100, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*access_by_lua\(nginx.conf:\d+\):\d+: --> 100, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
\z)'
errlog.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
errlog.t TEST 16: check the captured error log body - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
errlog.t TEST 16: check the captured error log body - status code ok got: ''
expected: '200'
errlog.t TEST 16: check the captured error log body - response_body_like - response is expected () ''
doesn't match '(?^s:log level:5
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*access_by_lua\(nginx.conf:\d+\):\d+: -->2, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*access_by_lua\(nginx.conf:\d+\):\d+: -->3, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
)'
errlog.t TEST 16: check the captured error log body - grep_error_log_out (req 0) @@ -1,3 +0,0 @@
--->1
--->2
--->3
'
errlog.t TEST 16: check the captured error log body - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
errlog.t TEST 16: check the captured error log body - status code ok got: ''
expected: '200'
errlog.t TEST 16: check the captured error log body - response_body_like - response is expected () ''
doesn't match '(?^s:log level:5
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*access_by_lua\(nginx.conf:\d+\):\d+: -->2, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*access_by_lua\(nginx.conf:\d+\):\d+: -->3, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
)'
errlog.t TEST 16: check the captured error log body - grep_error_log_out (req 1) @@ -1,3 +0,0 @@
--->1
--->2
--->3
'
errlog.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
errlog.t TEST 14: set max count and reuse table - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
errlog.t TEST 14: set max count and reuse table - status code ok got: ''
expected: '200'
errlog.t TEST 14: set max count and reuse table - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-log lines:2
-log lines:1
'
errlog.t TEST 14: set max count and reuse table - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
errlog.t TEST 14: set max count and reuse table - status code ok got: ''
expected: '200'
errlog.t TEST 14: set max count and reuse table - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-log lines:2
-log lines:1
'
errlog.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
errlog.t TEST 28: log time eq ngx.now - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
errlog.t TEST 28: log time eq ngx.now - status code ok got: ''
expected: '200'
errlog.t TEST 28: log time eq ngx.now - response_body_like - response is expected () ''
doesn't match '(?^s:\Alog lines: 2
log level: 3
log time: \d+(?:\.\d+)?
log body: \d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[crit\] (\d+).*?access_by_lua\(nginx.conf:\d+\):\d+: enter 1, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
same with now: true
log level: 4
log time: \d{10}(?:\.\d+)?
log body: \d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?access_by_lua\(nginx.conf:\d+\):\d+: enter 11, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
same with now: true)'
errlog.t TEST 28: log time eq ngx.now - grep_error_log_out (req 0) @@ -1,2 +0,0 @@
-enter 1
-enter 11
'
errlog.t TEST 28: log time eq ngx.now - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
errlog.t TEST 28: log time eq ngx.now - status code ok got: ''
expected: '200'
errlog.t TEST 28: log time eq ngx.now - response_body_like - response is expected () ''
doesn't match '(?^s:\Alog lines: 2
log level: 3
log time: \d+(?:\.\d+)?
log body: \d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[crit\] (\d+).*?access_by_lua\(nginx.conf:\d+\):\d+: enter 1, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
same with now: true
log level: 4
log time: \d{10}(?:\.\d+)?
log body: \d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?access_by_lua\(nginx.conf:\d+\):\d+: enter 11, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
same with now: true)'
errlog.t TEST 28: log time eq ngx.now - grep_error_log_out (req 1) @@ -1,2 +0,0 @@
-enter 1
-enter 11
'
errlog.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
errlog.t TEST 31: ringbuf sentinel bug2 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
errlog.t TEST 31: ringbuf sentinel bug2 - status code ok got: ''
expected: '200'
errlog.t TEST 31: ringbuf sentinel bug2 - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-log lines: \#18
-log lines: \#8
'
errlog.t TEST 31: ringbuf sentinel bug2 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
errlog.t TEST 31: ringbuf sentinel bug2 - status code ok got: ''
expected: '200'
errlog.t TEST 31: ringbuf sentinel bug2 - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-log lines: \#18
-log lines: \#8
'
errlog.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
errlog.t TEST 12: filter log by level(ngx.WARN) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
errlog.t TEST 12: filter log by level(ngx.WARN) - status code ok got: ''
expected: '200'
errlog.t TEST 12: filter log by level(ngx.WARN) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'log lines:2
'
errlog.t TEST 12: filter log by level(ngx.WARN) - grep_error_log_out (req 0) @@ -1,3 +0,0 @@
--->1
--->2
--->3
'
errlog.t TEST 12: filter log by level(ngx.WARN) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
errlog.t TEST 12: filter log by level(ngx.WARN) - status code ok got: ''
expected: '200'
errlog.t TEST 12: filter log by level(ngx.WARN) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'log lines:2
'
errlog.t TEST 12: filter log by level(ngx.WARN) - grep_error_log_out (req 1) @@ -1,3 +0,0 @@
--->1
--->2
--->3
'
errlog.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
errlog.t TEST 21: multi-line error log - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
errlog.t TEST 21: multi-line error log - status code ok got: ''
expected: '200'
errlog.t TEST 21: multi-line error log - response_body_like - response is expected () ''
doesn't match '(?^s:\Alog lines: #1
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*access_by_lua\(nginx.conf:\d+\):\d+: -->
new line, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
\z)'
errlog.t TEST 21: multi-line error log - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
errlog.t TEST 21: multi-line error log - status code ok got: ''
expected: '200'
errlog.t TEST 21: multi-line error log - response_body_like - response is expected () ''
doesn't match '(?^s:\Alog lines: #1
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*access_by_lua\(nginx.conf:\d+\):\d+: -->
new line, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
\z)'
errlog.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
errlog.t TEST 25: get system default filter level during Nginx starts (init) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
errlog.t TEST 25: get system default filter level during Nginx starts (init) - status code ok got: ''
expected: '200'
errlog.t TEST 25: get system default filter level during Nginx starts (init) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
errlog.t TEST 25: get system default filter level during Nginx starts (init) - status code ok got: ''
expected: '200'
errlog.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
errlog.t TEST 17: flood the capturing buffer (4k) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
errlog.t TEST 17: flood the capturing buffer (4k) - status code ok got: ''
expected: '200'
errlog.t TEST 17: flood the capturing buffer (4k) - response_body_like - response is expected () ''
doesn't match '(?^s:\A(?:log lines: #21
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*access_by_lua\(nginx.conf:\d+\):\d+: --> 90, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level:5
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*access_by_lua\(nginx.conf:\d+\):\d+: --> 91, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*access_by_lua\(nginx.conf:\d+\):\d+: --> 99, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level:5
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*access_by_lua\(nginx.conf:\d+\):\d+: --> 100, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*access_by_lua\(nginx.conf:\d+\):\d+: --> 100, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
|log lines: #20
log level:5
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*access_by_lua\(nginx.conf:\d+\):\d+: --> 91, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*access_by_lua\(nginx.conf:\d+\):\d+: --> 91, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level:5
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*access_by_lua\(nginx.conf:\d+\):\d+: --> 92, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*access_by_lua\(nginx.conf:\d+\):\d+: --> 99, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level:5
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*access_by_lua\(nginx.conf:\d+\):\d+: --> 100, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*access_by_lua\(nginx.conf:\d+\):\d+: --> 100, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
)\z)'
errlog.t TEST 17: flood the capturing buffer (4k) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
errlog.t TEST 17: flood the capturing buffer (4k) - status code ok got: ''
expected: '200'
errlog.t TEST 17: flood the capturing buffer (4k) - response_body_like - response is expected () ''
doesn't match '(?^s:\A(?:log lines: #21
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*access_by_lua\(nginx.conf:\d+\):\d+: --> 90, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level:5
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*access_by_lua\(nginx.conf:\d+\):\d+: --> 91, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*access_by_lua\(nginx.conf:\d+\):\d+: --> 99, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level:5
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*access_by_lua\(nginx.conf:\d+\):\d+: --> 100, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*access_by_lua\(nginx.conf:\d+\):\d+: --> 100, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
|log lines: #20
log level:5
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*access_by_lua\(nginx.conf:\d+\):\d+: --> 91, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*access_by_lua\(nginx.conf:\d+\):\d+: --> 91, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level:5
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*access_by_lua\(nginx.conf:\d+\):\d+: --> 92, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*access_by_lua\(nginx.conf:\d+\):\d+: --> 99, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level:5
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*access_by_lua\(nginx.conf:\d+\):\d+: --> 100, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*access_by_lua\(nginx.conf:\d+\):\d+: --> 100, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
)\z)'
errlog.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
errlog.t TEST 15: wrong argument - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
errlog.t TEST 15: wrong argument - status code ok got: ''
expected: '500'
errlog.t TEST 15: wrong argument - response_body_like - response is expected () ''
doesn't match '(?^s:500)'
errlog.t TEST 15: wrong argument - grep_error_log_out (req 0) got: ''
expected: 'missing "level" argument
'
errlog.t TEST 15: wrong argument - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
errlog.t TEST 15: wrong argument - status code ok got: ''
expected: '500'
errlog.t TEST 15: wrong argument - response_body_like - response is expected () ''
doesn't match '(?^s:500)'
errlog.t TEST 15: wrong argument - grep_error_log_out (req 1) got: ''
expected: 'missing "level" argument
'
errlog.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
errlog.t TEST 5: no error log - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
errlog.t TEST 5: no error log - status code ok got: ''
expected: '200'
errlog.t TEST 5: no error log - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'hello
'
errlog.t TEST 5: no error log - grep_error_log_out (req 0) ''
doesn't match '(?^:^capture log line:0
$)'
errlog.t TEST 5: no error log - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
errlog.t TEST 5: no error log - status code ok got: ''
expected: '200'
errlog.t TEST 5: no error log - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'hello
'
errlog.t TEST 5: no error log - grep_error_log_out (req 1) ''
doesn't match '(?^:^capture log line:1
$)'
errlog.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
errlog.t TEST 26: get system default filter level during Nginx worker starts (init worker) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
errlog.t TEST 26: get system default filter level during Nginx worker starts (init worker) - status code ok got: ''
expected: '200'
errlog.t TEST 26: get system default filter level during Nginx worker starts (init worker) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
errlog.t TEST 26: get system default filter level during Nginx worker starts (init worker) - status code ok got: ''
expected: '200'
exit.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
exit.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 1: sanity - status code ok got: ''
expected: '403'
exit.t TEST 1: sanity - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 1: sanity - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 10:36:59 [error] 1402\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
exit.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 1: sanity - status code ok got: ''
expected: '403'
exit.t TEST 1: sanity - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 1: sanity - status code ok got: ''
expected: '403'
exit.t TEST 1: sanity - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 1: sanity - status code ok got: ''
expected: '403'
exit.t TEST 1: sanity - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 1: sanity - status code ok got: ''
expected: '403'
exit.t TEST 1: sanity - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 1: sanity - status code ok got: ''
expected: '403'
exit.t TEST 1: sanity - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 1: sanity - status code ok got: ''
expected: '403'
exit.t TEST 1: sanity - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 1: sanity - status code ok got: ''
expected: '403'
exit.t TEST 1: sanity - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 1: sanity - status code ok got: ''
expected: '403'
exit.t TEST 1: sanity - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 1: sanity - status code ok got: ''
expected: '403'
exit.t TEST 1: sanity - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 1: sanity - status code ok got: ''
expected: '403'
exit.t TEST 1: sanity - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 1: sanity - status code ok got: ''
expected: '403'
exit.t TEST 1: sanity - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 1: sanity - status code ok got: ''
expected: '403'
exit.t TEST 1: sanity - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 1: sanity - status code ok got: ''
expected: '403'
exit.t TEST 1: sanity - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 1: sanity - status code ok got: ''
expected: '403'
exit.t TEST 1: sanity - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 1: sanity - status code ok got: ''
expected: '403'
exit.t TEST 1: sanity - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 1: sanity - status code ok got: ''
expected: '403'
exit.t TEST 1: sanity - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 1: sanity - status code ok got: ''
expected: '403'
exit.t TEST 1: sanity - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 1: sanity - status code ok got: ''
expected: '403'
exit.t TEST 1: sanity - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 1: sanity - status code ok got: ''
expected: '403'
exit.t TEST 1: sanity - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 1: sanity - status code ok got: ''
expected: '403'
exit.t TEST 1: sanity - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 1: sanity - status code ok got: ''
expected: '403'
exit.t TEST 1: sanity - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 1: sanity - status code ok got: ''
expected: '403'
exit.t TEST 1: sanity - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 1: sanity - status code ok got: ''
expected: '403'
exit.t TEST 1: sanity - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 1: sanity - status code ok got: ''
expected: '403'
exit.t TEST 1: sanity - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 1: sanity - status code ok got: ''
expected: '403'
exit.t TEST 1: sanity - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 1: sanity - status code ok got: ''
expected: '403'
exit.t TEST 1: sanity - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 1: sanity - status code ok got: ''
expected: '403'
exit.t TEST 1: sanity - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 1: sanity - status code ok got: ''
expected: '403'
exit.t TEST 1: sanity - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 1: sanity - status code ok got: ''
expected: '403'
exit.t TEST 1: sanity - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 1: sanity - status code ok got: ''
expected: '403'
exit.t TEST 1: sanity - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 1: sanity - status code ok got: ''
expected: '403'
exit.t TEST 1: sanity - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 1: sanity - status code ok got: ''
expected: '403'
exit.t TEST 1: sanity - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 1: sanity - status code ok got: ''
expected: '403'
exit.t TEST 1: sanity - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 1: sanity - status code ok got: ''
expected: '403'
exit.t TEST 1: sanity - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 1: sanity - status code ok got: ''
expected: '403'
exit.t TEST 1: sanity - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 1: sanity - status code ok got: ''
expected: '403'
exit.t TEST 1: sanity - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 1: sanity - status code ok got: ''
expected: '403'
exit.t TEST 1: sanity - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 1: sanity - status code ok got: ''
expected: '403'
exit.t TEST 1: sanity - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 1: sanity - status code ok got: ''
expected: '403'
exit.t TEST 1: sanity - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 1: sanity - status code ok got: ''
expected: '403'
exit.t TEST 1: sanity - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 1: sanity - status code ok got: ''
expected: '403'
exit.t TEST 1: sanity - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 1: sanity - status code ok got: ''
expected: '403'
exit.t TEST 1: sanity - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 1: sanity - status code ok got: ''
expected: '403'
exit.t TEST 1: sanity - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 1: sanity - status code ok got: ''
expected: '403'
exit.t TEST 1: sanity - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 1: sanity - status code ok got: ''
expected: '403'
exit.t TEST 1: sanity - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 1: sanity - status code ok got: ''
expected: '403'
exit.t TEST 1: sanity - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 1: sanity - status code ok got: ''
expected: '403'
exit.t TEST 1: sanity - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 1: sanity - status code ok got: ''
expected: '403'
exit.t TEST 1: sanity - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 1: sanity - status code ok got: ''
expected: '403'
exit.t TEST 1: sanity - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 1: sanity - status code ok got: ''
expected: '403'
exit.t TEST 1: sanity - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 1: sanity - status code ok got: ''
expected: '403'
exit.t TEST 1: sanity - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 1: sanity - status code ok got: ''
expected: '403'
exit.t TEST 1: sanity - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 1: sanity - status code ok got: ''
expected: '403'
exit.t TEST 1: sanity - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 1: sanity - status code ok got: ''
expected: '403'
exit.t TEST 1: sanity - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 1: sanity - status code ok got: ''
expected: '403'
exit.t TEST 1: sanity - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 1: sanity - status code ok got: ''
expected: '403'
exit.t TEST 1: sanity - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 1: sanity - status code ok got: ''
expected: '403'
exit.t TEST 1: sanity - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 1: sanity - status code ok got: ''
expected: '403'
exit.t TEST 1: sanity - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 1: sanity - status code ok got: ''
expected: '403'
exit.t TEST 1: sanity - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 1: sanity - status code ok got: ''
expected: '403'
exit.t TEST 1: sanity - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 1: sanity - status code ok got: ''
expected: '403'
exit.t TEST 1: sanity - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 1: sanity - status code ok got: ''
expected: '403'
exit.t TEST 1: sanity - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 1: sanity - status code ok got: ''
expected: '403'
exit.t TEST 1: sanity - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 1: sanity - status code ok got: ''
expected: '403'
exit.t TEST 1: sanity - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 1: sanity - status code ok got: ''
expected: '403'
exit.t TEST 1: sanity - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 1: sanity - status code ok got: ''
expected: '403'
exit.t TEST 1: sanity - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 1: sanity - status code ok got: ''
expected: '403'
exit.t TEST 1: sanity - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 1: sanity - status code ok got: ''
expected: '403'
exit.t TEST 1: sanity - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 1: sanity - status code ok got: ''
expected: '403'
exit.t TEST 1: sanity - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 1: sanity - status code ok got: ''
expected: '403'
exit.t TEST 1: sanity - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 1: sanity - status code ok got: ''
expected: '403'
exit.t TEST 1: sanity - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 1: sanity - status code ok got: ''
expected: '403'
exit.t TEST 1: sanity - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 1: sanity - status code ok got: ''
expected: '403'
exit.t TEST 1: sanity - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 1: sanity - status code ok got: ''
expected: '403'
exit.t TEST 1: sanity - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 1: sanity - status code ok got: ''
expected: '403'
exit.t TEST 1: sanity - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 1: sanity - status code ok got: ''
expected: '403'
exit.t TEST 1: sanity - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 1: sanity - status code ok got: ''
expected: '403'
exit.t TEST 1: sanity - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 1: sanity - status code ok got: ''
expected: '403'
exit.t TEST 1: sanity - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 1: sanity - status code ok got: ''
expected: '403'
exit.t TEST 1: sanity - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 1: sanity - status code ok got: ''
expected: '403'
exit.t TEST 1: sanity - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 1: sanity - status code ok got: ''
expected: '403'
exit.t TEST 1: sanity - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 1: sanity - status code ok got: ''
expected: '403'
exit.t TEST 1: sanity - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 1: sanity - status code ok got: ''
expected: '403'
exit.t TEST 1: sanity - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 1: sanity - status code ok got: ''
expected: '403'
exit.t TEST 1: sanity - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 1: sanity - status code ok got: ''
expected: '403'
exit.t TEST 1: sanity - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 1: sanity - status code ok got: ''
expected: '403'
exit.t TEST 1: sanity - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 1: sanity - status code ok got: ''
expected: '403'
exit.t TEST 1: sanity - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 1: sanity - status code ok got: ''
expected: '403'
exit.t TEST 1: sanity - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 1: sanity - status code ok got: ''
expected: '403'
exit.t TEST 1: sanity - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 1: sanity - status code ok got: ''
expected: '403'
exit.t TEST 1: sanity - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 1: sanity - status code ok got: ''
expected: '403'
exit.t TEST 1: sanity - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 1: sanity - status code ok got: ''
expected: '403'
exit.t TEST 1: sanity - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 1: sanity - status code ok got: ''
expected: '403'
exit.t TEST 1: sanity - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 1: sanity - status code ok got: ''
expected: '403'
exit.t TEST 1: sanity - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 1: sanity - status code ok got: ''
expected: '403'
exit.t TEST 1: sanity - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 1: sanity - status code ok got: ''
expected: '403'
exit.t TEST 1: sanity - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 1: sanity - status code ok got: ''
expected: '403'
exit.t TEST 1: sanity - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 1: sanity - status code ok got: ''
expected: '403'
exit.t TEST 1: sanity - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 1: sanity - status code ok got: ''
expected: '403'
exit.t TEST 1: sanity - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 1: sanity - status code ok got: ''
expected: '403'
exit.t TEST 1: sanity - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 1: sanity - status code ok got: ''
expected: '403'
exit.t TEST 1: sanity - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 1: sanity - status code ok got: ''
expected: '403'
exit.t TEST 1: sanity - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 1: sanity - status code ok got: ''
expected: '403'
exit.t TEST 1: sanity - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 1: sanity - status code ok got: ''
expected: '403'
exit.t TEST 1: sanity - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 1: sanity - status code ok got: ''
expected: '403'
exit.t TEST 1: sanity - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 1: sanity - status code ok got: ''
expected: '403'
exit.t TEST 1: sanity - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 1: sanity - status code ok got: ''
expected: '403'
exit.t TEST 1: sanity - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 1: sanity - status code ok got: ''
expected: '403'
exit.t TEST 1: sanity - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 1: sanity - status code ok got: ''
expected: '403'
exit.t TEST 1: sanity - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 1: sanity - status code ok got: ''
expected: '403'
exit.t TEST 1: sanity - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 1: sanity - status code ok got: ''
expected: '403'
exit.t TEST 1: sanity - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 1: sanity - status code ok got: ''
expected: '403'
exit.t TEST 1: sanity - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 1: sanity - status code ok got: ''
expected: '403'
exit.t TEST 1: sanity - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 1: sanity - status code ok got: ''
expected: '403'
exit.t TEST 1: sanity - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 1: sanity - status code ok got: ''
expected: '403'
exit.t TEST 1: sanity - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 1: sanity - status code ok got: ''
expected: '403'
exit.t TEST 1: sanity - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 1: sanity - status code ok got: ''
expected: '403'
exit.t TEST 1: sanity - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 1: sanity - status code ok got: ''
expected: '403'
exit.t TEST 1: sanity - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 1: sanity - status code ok got: ''
expected: '403'
exit.t TEST 1: sanity - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
exit.t TEST 2: call ngx.exit() from a custom lua module - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 2: call ngx.exit() from a custom lua module - status code ok got: ''
expected: '403'
exit.t TEST 2: call ngx.exit() from a custom lua module - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 2: call ngx.exit() from a custom lua module - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 10:37:12 [error] 1535\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
exit.t TEST 2: call ngx.exit() from a custom lua module - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 2: call ngx.exit() from a custom lua module - status code ok got: ''
expected: '403'
exit.t TEST 2: call ngx.exit() from a custom lua module - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 2: call ngx.exit() from a custom lua module - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 2: call ngx.exit() from a custom lua module - status code ok got: ''
expected: '403'
exit.t TEST 2: call ngx.exit() from a custom lua module - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 2: call ngx.exit() from a custom lua module - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 2: call ngx.exit() from a custom lua module - status code ok got: ''
expected: '403'
exit.t TEST 2: call ngx.exit() from a custom lua module - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 2: call ngx.exit() from a custom lua module - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 2: call ngx.exit() from a custom lua module - status code ok got: ''
expected: '403'
exit.t TEST 2: call ngx.exit() from a custom lua module - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 2: call ngx.exit() from a custom lua module - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 2: call ngx.exit() from a custom lua module - status code ok got: ''
expected: '403'
exit.t TEST 2: call ngx.exit() from a custom lua module - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 2: call ngx.exit() from a custom lua module - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 2: call ngx.exit() from a custom lua module - status code ok got: ''
expected: '403'
exit.t TEST 2: call ngx.exit() from a custom lua module - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 2: call ngx.exit() from a custom lua module - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 2: call ngx.exit() from a custom lua module - status code ok got: ''
expected: '403'
exit.t TEST 2: call ngx.exit() from a custom lua module - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 2: call ngx.exit() from a custom lua module - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 2: call ngx.exit() from a custom lua module - status code ok got: ''
expected: '403'
exit.t TEST 2: call ngx.exit() from a custom lua module - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 2: call ngx.exit() from a custom lua module - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 2: call ngx.exit() from a custom lua module - status code ok got: ''
expected: '403'
exit.t TEST 2: call ngx.exit() from a custom lua module - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 2: call ngx.exit() from a custom lua module - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 2: call ngx.exit() from a custom lua module - status code ok got: ''
expected: '403'
exit.t TEST 2: call ngx.exit() from a custom lua module - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 2: call ngx.exit() from a custom lua module - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 2: call ngx.exit() from a custom lua module - status code ok got: ''
expected: '403'
exit.t TEST 2: call ngx.exit() from a custom lua module - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 2: call ngx.exit() from a custom lua module - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 2: call ngx.exit() from a custom lua module - status code ok got: ''
expected: '403'
exit.t TEST 2: call ngx.exit() from a custom lua module - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 2: call ngx.exit() from a custom lua module - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 2: call ngx.exit() from a custom lua module - status code ok got: ''
expected: '403'
exit.t TEST 2: call ngx.exit() from a custom lua module - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 2: call ngx.exit() from a custom lua module - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 2: call ngx.exit() from a custom lua module - status code ok got: ''
expected: '403'
exit.t TEST 2: call ngx.exit() from a custom lua module - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 2: call ngx.exit() from a custom lua module - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 2: call ngx.exit() from a custom lua module - status code ok got: ''
expected: '403'
exit.t TEST 2: call ngx.exit() from a custom lua module - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 2: call ngx.exit() from a custom lua module - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 2: call ngx.exit() from a custom lua module - status code ok got: ''
expected: '403'
exit.t TEST 2: call ngx.exit() from a custom lua module - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 2: call ngx.exit() from a custom lua module - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 2: call ngx.exit() from a custom lua module - status code ok got: ''
expected: '403'
exit.t TEST 2: call ngx.exit() from a custom lua module - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 2: call ngx.exit() from a custom lua module - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 2: call ngx.exit() from a custom lua module - status code ok got: ''
expected: '403'
exit.t TEST 2: call ngx.exit() from a custom lua module - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 2: call ngx.exit() from a custom lua module - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 2: call ngx.exit() from a custom lua module - status code ok got: ''
expected: '403'
exit.t TEST 2: call ngx.exit() from a custom lua module - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 2: call ngx.exit() from a custom lua module - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 2: call ngx.exit() from a custom lua module - status code ok got: ''
expected: '403'
exit.t TEST 2: call ngx.exit() from a custom lua module - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 2: call ngx.exit() from a custom lua module - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 2: call ngx.exit() from a custom lua module - status code ok got: ''
expected: '403'
exit.t TEST 2: call ngx.exit() from a custom lua module - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 2: call ngx.exit() from a custom lua module - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 2: call ngx.exit() from a custom lua module - status code ok got: ''
expected: '403'
exit.t TEST 2: call ngx.exit() from a custom lua module - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 2: call ngx.exit() from a custom lua module - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 2: call ngx.exit() from a custom lua module - status code ok got: ''
expected: '403'
exit.t TEST 2: call ngx.exit() from a custom lua module - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 2: call ngx.exit() from a custom lua module - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 2: call ngx.exit() from a custom lua module - status code ok got: ''
expected: '403'
exit.t TEST 2: call ngx.exit() from a custom lua module - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 2: call ngx.exit() from a custom lua module - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 2: call ngx.exit() from a custom lua module - status code ok got: ''
expected: '403'
exit.t TEST 2: call ngx.exit() from a custom lua module - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 2: call ngx.exit() from a custom lua module - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 2: call ngx.exit() from a custom lua module - status code ok got: ''
expected: '403'
exit.t TEST 2: call ngx.exit() from a custom lua module - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 2: call ngx.exit() from a custom lua module - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 2: call ngx.exit() from a custom lua module - status code ok got: ''
expected: '403'
exit.t TEST 2: call ngx.exit() from a custom lua module - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 2: call ngx.exit() from a custom lua module - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 2: call ngx.exit() from a custom lua module - status code ok got: ''
expected: '403'
exit.t TEST 2: call ngx.exit() from a custom lua module - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 2: call ngx.exit() from a custom lua module - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 2: call ngx.exit() from a custom lua module - status code ok got: ''
expected: '403'
exit.t TEST 2: call ngx.exit() from a custom lua module - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 2: call ngx.exit() from a custom lua module - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 2: call ngx.exit() from a custom lua module - status code ok got: ''
expected: '403'
exit.t TEST 2: call ngx.exit() from a custom lua module - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 2: call ngx.exit() from a custom lua module - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 2: call ngx.exit() from a custom lua module - status code ok got: ''
expected: '403'
exit.t TEST 2: call ngx.exit() from a custom lua module - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 2: call ngx.exit() from a custom lua module - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 2: call ngx.exit() from a custom lua module - status code ok got: ''
expected: '403'
exit.t TEST 2: call ngx.exit() from a custom lua module - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 2: call ngx.exit() from a custom lua module - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 2: call ngx.exit() from a custom lua module - status code ok got: ''
expected: '403'
exit.t TEST 2: call ngx.exit() from a custom lua module - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 2: call ngx.exit() from a custom lua module - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 2: call ngx.exit() from a custom lua module - status code ok got: ''
expected: '403'
exit.t TEST 2: call ngx.exit() from a custom lua module - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 2: call ngx.exit() from a custom lua module - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 2: call ngx.exit() from a custom lua module - status code ok got: ''
expected: '403'
exit.t TEST 2: call ngx.exit() from a custom lua module - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 2: call ngx.exit() from a custom lua module - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 2: call ngx.exit() from a custom lua module - status code ok got: ''
expected: '403'
exit.t TEST 2: call ngx.exit() from a custom lua module - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 2: call ngx.exit() from a custom lua module - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 2: call ngx.exit() from a custom lua module - status code ok got: ''
expected: '403'
exit.t TEST 2: call ngx.exit() from a custom lua module - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 2: call ngx.exit() from a custom lua module - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 2: call ngx.exit() from a custom lua module - status code ok got: ''
expected: '403'
exit.t TEST 2: call ngx.exit() from a custom lua module - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 2: call ngx.exit() from a custom lua module - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 2: call ngx.exit() from a custom lua module - status code ok got: ''
expected: '403'
exit.t TEST 2: call ngx.exit() from a custom lua module - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 2: call ngx.exit() from a custom lua module - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 2: call ngx.exit() from a custom lua module - status code ok got: ''
expected: '403'
exit.t TEST 2: call ngx.exit() from a custom lua module - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 2: call ngx.exit() from a custom lua module - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 2: call ngx.exit() from a custom lua module - status code ok got: ''
expected: '403'
exit.t TEST 2: call ngx.exit() from a custom lua module - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 2: call ngx.exit() from a custom lua module - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 2: call ngx.exit() from a custom lua module - status code ok got: ''
expected: '403'
exit.t TEST 2: call ngx.exit() from a custom lua module - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 2: call ngx.exit() from a custom lua module - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 2: call ngx.exit() from a custom lua module - status code ok got: ''
expected: '403'
exit.t TEST 2: call ngx.exit() from a custom lua module - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 2: call ngx.exit() from a custom lua module - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 2: call ngx.exit() from a custom lua module - status code ok got: ''
expected: '403'
exit.t TEST 2: call ngx.exit() from a custom lua module - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 2: call ngx.exit() from a custom lua module - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 2: call ngx.exit() from a custom lua module - status code ok got: ''
expected: '403'
exit.t TEST 2: call ngx.exit() from a custom lua module - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 2: call ngx.exit() from a custom lua module - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 2: call ngx.exit() from a custom lua module - status code ok got: ''
expected: '403'
exit.t TEST 2: call ngx.exit() from a custom lua module - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 2: call ngx.exit() from a custom lua module - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 2: call ngx.exit() from a custom lua module - status code ok got: ''
expected: '403'
exit.t TEST 2: call ngx.exit() from a custom lua module - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 2: call ngx.exit() from a custom lua module - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 2: call ngx.exit() from a custom lua module - status code ok got: ''
expected: '403'
exit.t TEST 2: call ngx.exit() from a custom lua module - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 2: call ngx.exit() from a custom lua module - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 2: call ngx.exit() from a custom lua module - status code ok got: ''
expected: '403'
exit.t TEST 2: call ngx.exit() from a custom lua module - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 2: call ngx.exit() from a custom lua module - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 2: call ngx.exit() from a custom lua module - status code ok got: ''
expected: '403'
exit.t TEST 2: call ngx.exit() from a custom lua module - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 2: call ngx.exit() from a custom lua module - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 2: call ngx.exit() from a custom lua module - status code ok got: ''
expected: '403'
exit.t TEST 2: call ngx.exit() from a custom lua module - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 2: call ngx.exit() from a custom lua module - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 2: call ngx.exit() from a custom lua module - status code ok got: ''
expected: '403'
exit.t TEST 2: call ngx.exit() from a custom lua module - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 2: call ngx.exit() from a custom lua module - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 2: call ngx.exit() from a custom lua module - status code ok got: ''
expected: '403'
exit.t TEST 2: call ngx.exit() from a custom lua module - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 2: call ngx.exit() from a custom lua module - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 2: call ngx.exit() from a custom lua module - status code ok got: ''
expected: '403'
exit.t TEST 2: call ngx.exit() from a custom lua module - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 2: call ngx.exit() from a custom lua module - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 2: call ngx.exit() from a custom lua module - status code ok got: ''
expected: '403'
exit.t TEST 2: call ngx.exit() from a custom lua module - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 2: call ngx.exit() from a custom lua module - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 2: call ngx.exit() from a custom lua module - status code ok got: ''
expected: '403'
exit.t TEST 2: call ngx.exit() from a custom lua module - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 2: call ngx.exit() from a custom lua module - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 2: call ngx.exit() from a custom lua module - status code ok got: ''
expected: '403'
exit.t TEST 2: call ngx.exit() from a custom lua module - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 2: call ngx.exit() from a custom lua module - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 2: call ngx.exit() from a custom lua module - status code ok got: ''
expected: '403'
exit.t TEST 2: call ngx.exit() from a custom lua module - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 2: call ngx.exit() from a custom lua module - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 2: call ngx.exit() from a custom lua module - status code ok got: ''
expected: '403'
exit.t TEST 2: call ngx.exit() from a custom lua module - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 2: call ngx.exit() from a custom lua module - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 2: call ngx.exit() from a custom lua module - status code ok got: ''
expected: '403'
exit.t TEST 2: call ngx.exit() from a custom lua module - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 2: call ngx.exit() from a custom lua module - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 2: call ngx.exit() from a custom lua module - status code ok got: ''
expected: '403'
exit.t TEST 2: call ngx.exit() from a custom lua module - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 2: call ngx.exit() from a custom lua module - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 2: call ngx.exit() from a custom lua module - status code ok got: ''
expected: '403'
exit.t TEST 2: call ngx.exit() from a custom lua module - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 2: call ngx.exit() from a custom lua module - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 2: call ngx.exit() from a custom lua module - status code ok got: ''
expected: '403'
exit.t TEST 2: call ngx.exit() from a custom lua module - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 2: call ngx.exit() from a custom lua module - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 2: call ngx.exit() from a custom lua module - status code ok got: ''
expected: '403'
exit.t TEST 2: call ngx.exit() from a custom lua module - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 2: call ngx.exit() from a custom lua module - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 2: call ngx.exit() from a custom lua module - status code ok got: ''
expected: '403'
exit.t TEST 2: call ngx.exit() from a custom lua module - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 2: call ngx.exit() from a custom lua module - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 2: call ngx.exit() from a custom lua module - status code ok got: ''
expected: '403'
exit.t TEST 2: call ngx.exit() from a custom lua module - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 2: call ngx.exit() from a custom lua module - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 2: call ngx.exit() from a custom lua module - status code ok got: ''
expected: '403'
exit.t TEST 2: call ngx.exit() from a custom lua module - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 2: call ngx.exit() from a custom lua module - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 2: call ngx.exit() from a custom lua module - status code ok got: ''
expected: '403'
exit.t TEST 2: call ngx.exit() from a custom lua module - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 2: call ngx.exit() from a custom lua module - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 2: call ngx.exit() from a custom lua module - status code ok got: ''
expected: '403'
exit.t TEST 2: call ngx.exit() from a custom lua module - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 2: call ngx.exit() from a custom lua module - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 2: call ngx.exit() from a custom lua module - status code ok got: ''
expected: '403'
exit.t TEST 2: call ngx.exit() from a custom lua module - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 2: call ngx.exit() from a custom lua module - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 2: call ngx.exit() from a custom lua module - status code ok got: ''
expected: '403'
exit.t TEST 2: call ngx.exit() from a custom lua module - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 2: call ngx.exit() from a custom lua module - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 2: call ngx.exit() from a custom lua module - status code ok got: ''
expected: '403'
exit.t TEST 2: call ngx.exit() from a custom lua module - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 2: call ngx.exit() from a custom lua module - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 2: call ngx.exit() from a custom lua module - status code ok got: ''
expected: '403'
exit.t TEST 2: call ngx.exit() from a custom lua module - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 2: call ngx.exit() from a custom lua module - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 2: call ngx.exit() from a custom lua module - status code ok got: ''
expected: '403'
exit.t TEST 2: call ngx.exit() from a custom lua module - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 2: call ngx.exit() from a custom lua module - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 2: call ngx.exit() from a custom lua module - status code ok got: ''
expected: '403'
exit.t TEST 2: call ngx.exit() from a custom lua module - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 2: call ngx.exit() from a custom lua module - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 2: call ngx.exit() from a custom lua module - status code ok got: ''
expected: '403'
exit.t TEST 2: call ngx.exit() from a custom lua module - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 2: call ngx.exit() from a custom lua module - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 2: call ngx.exit() from a custom lua module - status code ok got: ''
expected: '403'
exit.t TEST 2: call ngx.exit() from a custom lua module - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 2: call ngx.exit() from a custom lua module - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 2: call ngx.exit() from a custom lua module - status code ok got: ''
expected: '403'
exit.t TEST 2: call ngx.exit() from a custom lua module - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 2: call ngx.exit() from a custom lua module - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 2: call ngx.exit() from a custom lua module - status code ok got: ''
expected: '403'
exit.t TEST 2: call ngx.exit() from a custom lua module - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 2: call ngx.exit() from a custom lua module - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 2: call ngx.exit() from a custom lua module - status code ok got: ''
expected: '403'
exit.t TEST 2: call ngx.exit() from a custom lua module - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 2: call ngx.exit() from a custom lua module - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 2: call ngx.exit() from a custom lua module - status code ok got: ''
expected: '403'
exit.t TEST 2: call ngx.exit() from a custom lua module - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 2: call ngx.exit() from a custom lua module - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 2: call ngx.exit() from a custom lua module - status code ok got: ''
expected: '403'
exit.t TEST 2: call ngx.exit() from a custom lua module - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 2: call ngx.exit() from a custom lua module - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 2: call ngx.exit() from a custom lua module - status code ok got: ''
expected: '403'
exit.t TEST 2: call ngx.exit() from a custom lua module - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 2: call ngx.exit() from a custom lua module - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 2: call ngx.exit() from a custom lua module - status code ok got: ''
expected: '403'
exit.t TEST 2: call ngx.exit() from a custom lua module - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 2: call ngx.exit() from a custom lua module - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 2: call ngx.exit() from a custom lua module - status code ok got: ''
expected: '403'
exit.t TEST 2: call ngx.exit() from a custom lua module - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 2: call ngx.exit() from a custom lua module - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 2: call ngx.exit() from a custom lua module - status code ok got: ''
expected: '403'
exit.t TEST 2: call ngx.exit() from a custom lua module - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 2: call ngx.exit() from a custom lua module - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 2: call ngx.exit() from a custom lua module - status code ok got: ''
expected: '403'
exit.t TEST 2: call ngx.exit() from a custom lua module - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 2: call ngx.exit() from a custom lua module - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 2: call ngx.exit() from a custom lua module - status code ok got: ''
expected: '403'
exit.t TEST 2: call ngx.exit() from a custom lua module - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 2: call ngx.exit() from a custom lua module - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 2: call ngx.exit() from a custom lua module - status code ok got: ''
expected: '403'
exit.t TEST 2: call ngx.exit() from a custom lua module - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 2: call ngx.exit() from a custom lua module - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 2: call ngx.exit() from a custom lua module - status code ok got: ''
expected: '403'
exit.t TEST 2: call ngx.exit() from a custom lua module - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 2: call ngx.exit() from a custom lua module - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 2: call ngx.exit() from a custom lua module - status code ok got: ''
expected: '403'
exit.t TEST 2: call ngx.exit() from a custom lua module - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 2: call ngx.exit() from a custom lua module - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 2: call ngx.exit() from a custom lua module - status code ok got: ''
expected: '403'
exit.t TEST 2: call ngx.exit() from a custom lua module - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 2: call ngx.exit() from a custom lua module - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 2: call ngx.exit() from a custom lua module - status code ok got: ''
expected: '403'
exit.t TEST 2: call ngx.exit() from a custom lua module - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 2: call ngx.exit() from a custom lua module - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 2: call ngx.exit() from a custom lua module - status code ok got: ''
expected: '403'
exit.t TEST 2: call ngx.exit() from a custom lua module - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 2: call ngx.exit() from a custom lua module - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 2: call ngx.exit() from a custom lua module - status code ok got: ''
expected: '403'
exit.t TEST 2: call ngx.exit() from a custom lua module - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 2: call ngx.exit() from a custom lua module - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 2: call ngx.exit() from a custom lua module - status code ok got: ''
expected: '403'
exit.t TEST 2: call ngx.exit() from a custom lua module - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 2: call ngx.exit() from a custom lua module - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 2: call ngx.exit() from a custom lua module - status code ok got: ''
expected: '403'
exit.t TEST 2: call ngx.exit() from a custom lua module - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 2: call ngx.exit() from a custom lua module - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 2: call ngx.exit() from a custom lua module - status code ok got: ''
expected: '403'
exit.t TEST 2: call ngx.exit() from a custom lua module - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 2: call ngx.exit() from a custom lua module - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 2: call ngx.exit() from a custom lua module - status code ok got: ''
expected: '403'
exit.t TEST 2: call ngx.exit() from a custom lua module - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 2: call ngx.exit() from a custom lua module - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 2: call ngx.exit() from a custom lua module - status code ok got: ''
expected: '403'
exit.t TEST 2: call ngx.exit() from a custom lua module - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 2: call ngx.exit() from a custom lua module - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 2: call ngx.exit() from a custom lua module - status code ok got: ''
expected: '403'
exit.t TEST 2: call ngx.exit() from a custom lua module - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 2: call ngx.exit() from a custom lua module - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 2: call ngx.exit() from a custom lua module - status code ok got: ''
expected: '403'
exit.t TEST 2: call ngx.exit() from a custom lua module - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 2: call ngx.exit() from a custom lua module - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 2: call ngx.exit() from a custom lua module - status code ok got: ''
expected: '403'
exit.t TEST 2: call ngx.exit() from a custom lua module - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 2: call ngx.exit() from a custom lua module - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 2: call ngx.exit() from a custom lua module - status code ok got: ''
expected: '403'
exit.t TEST 2: call ngx.exit() from a custom lua module - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 2: call ngx.exit() from a custom lua module - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 2: call ngx.exit() from a custom lua module - status code ok got: ''
expected: '403'
exit.t TEST 2: call ngx.exit() from a custom lua module - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 2: call ngx.exit() from a custom lua module - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 2: call ngx.exit() from a custom lua module - status code ok got: ''
expected: '403'
exit.t TEST 2: call ngx.exit() from a custom lua module - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 2: call ngx.exit() from a custom lua module - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 2: call ngx.exit() from a custom lua module - status code ok got: ''
expected: '403'
exit.t TEST 2: call ngx.exit() from a custom lua module - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 2: call ngx.exit() from a custom lua module - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 2: call ngx.exit() from a custom lua module - status code ok got: ''
expected: '403'
exit.t TEST 2: call ngx.exit() from a custom lua module - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 2: call ngx.exit() from a custom lua module - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 2: call ngx.exit() from a custom lua module - status code ok got: ''
expected: '403'
exit.t TEST 2: call ngx.exit() from a custom lua module - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 2: call ngx.exit() from a custom lua module - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 2: call ngx.exit() from a custom lua module - status code ok got: ''
expected: '403'
exit.t TEST 2: call ngx.exit() from a custom lua module - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 2: call ngx.exit() from a custom lua module - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 2: call ngx.exit() from a custom lua module - status code ok got: ''
expected: '403'
exit.t TEST 2: call ngx.exit() from a custom lua module - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 2: call ngx.exit() from a custom lua module - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 2: call ngx.exit() from a custom lua module - status code ok got: ''
expected: '403'
exit.t TEST 2: call ngx.exit() from a custom lua module - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 2: call ngx.exit() from a custom lua module - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 2: call ngx.exit() from a custom lua module - status code ok got: ''
expected: '403'
exit.t TEST 2: call ngx.exit() from a custom lua module - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 2: call ngx.exit() from a custom lua module - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 2: call ngx.exit() from a custom lua module - status code ok got: ''
expected: '403'
exit.t TEST 2: call ngx.exit() from a custom lua module - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 2: call ngx.exit() from a custom lua module - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 2: call ngx.exit() from a custom lua module - status code ok got: ''
expected: '403'
exit.t TEST 2: call ngx.exit() from a custom lua module - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 2: call ngx.exit() from a custom lua module - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 2: call ngx.exit() from a custom lua module - status code ok got: ''
expected: '403'
exit.t TEST 2: call ngx.exit() from a custom lua module - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 2: call ngx.exit() from a custom lua module - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 2: call ngx.exit() from a custom lua module - status code ok got: ''
expected: '403'
exit.t TEST 2: call ngx.exit() from a custom lua module - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 2: call ngx.exit() from a custom lua module - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 2: call ngx.exit() from a custom lua module - status code ok got: ''
expected: '403'
exit.t TEST 2: call ngx.exit() from a custom lua module - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
exit.t TEST 2: call ngx.exit() from a custom lua module - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
exit.t TEST 2: call ngx.exit() from a custom lua module - status code ok got: ''
expected: '403'
exit.t TEST 2: call ngx.exit() from a custom lua module - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
master-pid-single-process.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
master-pid-single-process.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
master-pid-single-process.t TEST 1: sanity - status code ok got: ''
expected: '200'
master-pid-single-process.t TEST 1: sanity - response_body_like - response is expected () ''
doesn't match '(?^s:\Aok
got: \d+ \(number\)
\z)'
master-pid-single-process.t TEST 1: sanity - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):\d loop\])" should match a line in error.log (req 0)
master-pid-single-process.t TEST 1: sanity - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 10:37:25 [error] 1671\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
master-pid-single-process.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
master-pid-single-process.t TEST 1: sanity - status code ok got: ''
expected: '200'
master-pid-single-process.t TEST 1: sanity - response_body_like - response is expected () ''
doesn't match '(?^s:\Aok
got: \d+ \(number\)
\z)'
master-pid-single-process.t TEST 1: sanity - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):\d loop\])" should match a line in error.log (req 1)
master-pid-single-process.t TEST 1: sanity - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 10:37:25 [error] 1671\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
master-pid.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
master-pid.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
master-pid.t TEST 1: sanity - status code ok got: ''
expected: '200'
master-pid.t TEST 1: sanity - response_body_like - response is expected () ''
doesn't match '(?^s:\Aok
got: \d+ \(number\)
\z)'
master-pid.t TEST 1: sanity - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):\d loop\])" should match a line in error.log (req 0)
master-pid.t TEST 1: sanity - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 10:37:30 [error] 1679\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
master-pid.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
master-pid.t TEST 1: sanity - status code ok got: ''
expected: '200'
master-pid.t TEST 1: sanity - response_body_like - response is expected () ''
doesn't match '(?^s:\Aok
got: \d+ \(number\)
\z)'
master-pid.t TEST 1: sanity - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):\d loop\])" should match a line in error.log (req 1)
master-pid.t TEST 1: sanity - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 10:37:30 [error] 1679\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
md5-bin.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
md5-bin.t TEST 2: set md5_bin (nil) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
md5-bin.t TEST 2: set md5_bin (nil) - status code ok got: ''
expected: '200'
md5-bin.t TEST 2: set md5_bin (nil) - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "16\x{0a}"
length: 3
strings begin to differ at char 1 (line 1 column 1)
md5-bin.t TEST 2: set md5_bin (nil) - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):3 loop\])" should match a line in error.log (req 0)
md5-bin.t TEST 2: set md5_bin (nil) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 10:37:35 [error] 1687\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
md5-bin.t TEST 2: set md5_bin (nil) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
md5-bin.t TEST 2: set md5_bin (nil) - status code ok got: ''
expected: '200'
md5-bin.t TEST 2: set md5_bin (nil) - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "16\x{0a}"
length: 3
strings begin to differ at char 1 (line 1 column 1)
md5-bin.t TEST 2: set md5_bin (nil) - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):3 loop\])" should match a line in error.log (req 1)
md5-bin.t TEST 2: set md5_bin (nil) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 10:37:35 [error] 1687\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
md5-bin.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
md5-bin.t TEST 1: set md5_bin (string) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
md5-bin.t TEST 1: set md5_bin (string) - status code ok got: ''
expected: '200'
md5-bin.t TEST 1: set md5_bin (string) - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "16\x{0a}"
length: 3
strings begin to differ at char 1 (line 1 column 1)
md5-bin.t TEST 1: set md5_bin (string) - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):3 loop\])" should match a line in error.log (req 0)
md5-bin.t TEST 1: set md5_bin (string) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 10:37:40 [error] 1692\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
md5-bin.t TEST 1: set md5_bin (string) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
md5-bin.t TEST 1: set md5_bin (string) - status code ok got: ''
expected: '200'
md5-bin.t TEST 1: set md5_bin (string) - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "16\x{0a}"
length: 3
strings begin to differ at char 1 (line 1 column 1)
md5-bin.t TEST 1: set md5_bin (string) - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):3 loop\])" should match a line in error.log (req 1)
md5-bin.t TEST 1: set md5_bin (string) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 10:37:40 [error] 1692\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
md5-bin.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
md5-bin.t TEST 3: set md5_bin (number) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
md5-bin.t TEST 3: set md5_bin (number) - status code ok got: ''
expected: '200'
md5-bin.t TEST 3: set md5_bin (number) - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "16\x{0a}"
length: 3
strings begin to differ at char 1 (line 1 column 1)
md5-bin.t TEST 3: set md5_bin (number) - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):3 loop\])" should match a line in error.log (req 0)
md5-bin.t TEST 3: set md5_bin (number) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 10:37:44 [error] 1697\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
md5-bin.t TEST 3: set md5_bin (number) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
md5-bin.t TEST 3: set md5_bin (number) - status code ok got: ''
expected: '200'
md5-bin.t TEST 3: set md5_bin (number) - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "16\x{0a}"
length: 3
strings begin to differ at char 1 (line 1 column 1)
md5-bin.t TEST 3: set md5_bin (number) - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):3 loop\])" should match a line in error.log (req 1)
md5-bin.t TEST 3: set md5_bin (number) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 10:37:44 [error] 1697\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
md5-bin.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
md5-bin.t TEST 4: set md5_bin (boolean) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
md5-bin.t TEST 4: set md5_bin (boolean) - status code ok got: ''
expected: '200'
md5-bin.t TEST 4: set md5_bin (boolean) - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "16\x{0a}"
length: 3
strings begin to differ at char 1 (line 1 column 1)
md5-bin.t TEST 4: set md5_bin (boolean) - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):3 loop\])" should match a line in error.log (req 0)
md5-bin.t TEST 4: set md5_bin (boolean) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 10:37:49 [error] 1702\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
md5-bin.t TEST 4: set md5_bin (boolean) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
md5-bin.t TEST 4: set md5_bin (boolean) - status code ok got: ''
expected: '200'
md5-bin.t TEST 4: set md5_bin (boolean) - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "16\x{0a}"
length: 3
strings begin to differ at char 1 (line 1 column 1)
md5-bin.t TEST 4: set md5_bin (boolean) - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):3 loop\])" should match a line in error.log (req 1)
md5-bin.t TEST 4: set md5_bin (boolean) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 10:37:49 [error] 1702\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
md5.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
md5.t TEST 2: nil string to ngx.md5 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
md5.t TEST 2: nil string to ngx.md5 - status code ok got: ''
expected: '200'
md5.t TEST 2: nil string to ngx.md5 - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "d41d8cd98f00b204e9800998ecf8427e\x{0a}"
length: 33
strings begin to differ at char 1 (line 1 column 1)
md5.t TEST 2: nil string to ngx.md5 - pattern "(?^:\[TRACE\s+1 content_by_lua\(nginx\.conf:\d+\):3 loop\])" should match a line in error.log (req 0)
md5.t TEST 2: nil string to ngx.md5 - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 10:37:53 [error] 1710\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
md5.t TEST 2: nil string to ngx.md5 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
md5.t TEST 2: nil string to ngx.md5 - status code ok got: ''
expected: '200'
md5.t TEST 2: nil string to ngx.md5 - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "d41d8cd98f00b204e9800998ecf8427e\x{0a}"
length: 33
strings begin to differ at char 1 (line 1 column 1)
md5.t TEST 2: nil string to ngx.md5 - pattern "(?^:\[TRACE\s+1 content_by_lua\(nginx\.conf:\d+\):3 loop\])" should match a line in error.log (req 1)
md5.t TEST 2: nil string to ngx.md5 - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 10:37:53 [error] 1710\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
md5.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
md5.t TEST 3: empty string to ngx.md5 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
md5.t TEST 3: empty string to ngx.md5 - status code ok got: ''
expected: '200'
md5.t TEST 3: empty string to ngx.md5 - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "d41d8cd98f00b204e9800998ecf8427e\x{0a}"
length: 33
strings begin to differ at char 1 (line 1 column 1)
md5.t TEST 3: empty string to ngx.md5 - pattern "(?^:\[TRACE\s+1 content_by_lua\(nginx\.conf:\d+\):3 loop\])" should match a line in error.log (req 0)
md5.t TEST 3: empty string to ngx.md5 - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 10:37:58 [error] 1715\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
md5.t TEST 3: empty string to ngx.md5 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
md5.t TEST 3: empty string to ngx.md5 - status code ok got: ''
expected: '200'
md5.t TEST 3: empty string to ngx.md5 - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "d41d8cd98f00b204e9800998ecf8427e\x{0a}"
length: 33
strings begin to differ at char 1 (line 1 column 1)
md5.t TEST 3: empty string to ngx.md5 - pattern "(?^:\[TRACE\s+1 content_by_lua\(nginx\.conf:\d+\):3 loop\])" should match a line in error.log (req 1)
md5.t TEST 3: empty string to ngx.md5 - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 10:37:58 [error] 1715\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
md5.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
md5.t TEST 1: set md5 hello - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
md5.t TEST 1: set md5 hello - status code ok got: ''
expected: '200'
md5.t TEST 1: set md5 hello - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "5d41402abc4b2a76b9719d911017c592\x{0a}"
length: 33
strings begin to differ at char 1 (line 1 column 1)
md5.t TEST 1: set md5 hello - pattern "(?^:\[TRACE\s+1 content_by_lua\(nginx\.conf:\d+\):3 loop\])" should match a line in error.log (req 0)
md5.t TEST 1: set md5 hello - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 10:38:03 [error] 1720\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
md5.t TEST 1: set md5 hello - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
md5.t TEST 1: set md5 hello - status code ok got: ''
expected: '200'
md5.t TEST 1: set md5 hello - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "5d41402abc4b2a76b9719d911017c592\x{0a}"
length: 33
strings begin to differ at char 1 (line 1 column 1)
md5.t TEST 1: set md5 hello - pattern "(?^:\[TRACE\s+1 content_by_lua\(nginx\.conf:\d+\):3 loop\])" should match a line in error.log (req 1)
md5.t TEST 1: set md5 hello - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 10:38:03 [error] 1720\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
md5.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
md5.t TEST 4: number to ngx.md5 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
md5.t TEST 4: number to ngx.md5 - status code ok got: ''
expected: '200'
md5.t TEST 4: number to ngx.md5 - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "4beed3b9c4a886067de0e3a094246f78\x{0a}"
length: 33
strings begin to differ at char 1 (line 1 column 1)
md5.t TEST 4: number to ngx.md5 - pattern "(?^:\[TRACE\s+1 content_by_lua\(nginx\.conf:\d+\):3 loop\])" should match a line in error.log (req 0)
md5.t TEST 4: number to ngx.md5 - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 10:38:07 [error] 1725\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
md5.t TEST 4: number to ngx.md5 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
md5.t TEST 4: number to ngx.md5 - status code ok got: ''
expected: '200'
md5.t TEST 4: number to ngx.md5 - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "4beed3b9c4a886067de0e3a094246f78\x{0a}"
length: 33
strings begin to differ at char 1 (line 1 column 1)
md5.t TEST 4: number to ngx.md5 - pattern "(?^:\[TRACE\s+1 content_by_lua\(nginx\.conf:\d+\):3 loop\])" should match a line in error.log (req 1)
md5.t TEST 4: number to ngx.md5 - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 10:38:07 [error] 1725\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
misc.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
misc.t TEST 4: base.check_subsystem - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
misc.t TEST 4: base.check_subsystem - status code ok got: ''
expected: '200'
misc.t TEST 4: base.check_subsystem - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "ok\x{0a}"
length: 3
strings begin to differ at char 1 (line 1 column 1)
misc.t TEST 4: base.check_subsystem - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 10:38:12 [error] 1733\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
misc.t TEST 4: base.check_subsystem - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
misc.t TEST 4: base.check_subsystem - status code ok got: ''
expected: '200'
misc.t TEST 4: base.check_subsystem - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "ok\x{0a}"
length: 3
strings begin to differ at char 1 (line 1 column 1)
misc.t TEST 4: base.check_subsystem - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 10:38:12 [error] 1733\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
misc.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
misc.t TEST 3: ngx.headers_sent (true) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
misc.t TEST 3: ngx.headers_sent (true) - status code ok got: ''
expected: '200'
misc.t TEST 3: ngx.headers_sent (true) - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "headers sent: true\x{0a}"
length: 19
strings begin to differ at char 1 (line 1 column 1)
misc.t TEST 3: ngx.headers_sent (true) - pattern "(?^:\[TRACE\s+\d+\s+content_by_lua\(nginx\.conf:\d+\):4 loop\])" should match a line in error.log (req 0)
misc.t TEST 3: ngx.headers_sent (true) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 10:38:16 [error] 1738\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
misc.t TEST 3: ngx.headers_sent (true) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
misc.t TEST 3: ngx.headers_sent (true) - status code ok got: ''
expected: '200'
misc.t TEST 3: ngx.headers_sent (true) - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "headers sent: true\x{0a}"
length: 19
strings begin to differ at char 1 (line 1 column 1)
misc.t TEST 3: ngx.headers_sent (true) - pattern "(?^:\[TRACE\s+\d+\s+content_by_lua\(nginx\.conf:\d+\):4 loop\])" should match a line in error.log (req 1)
misc.t TEST 3: ngx.headers_sent (true) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 10:38:16 [error] 1738\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
misc.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
misc.t TEST 1: ngx.is_subrequest - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
misc.t TEST 1: ngx.is_subrequest - status code ok got: ''
expected: '201'
misc.t TEST 1: ngx.is_subrequest - pattern "is subrequest: false," should match a line in error.log (req 0)
misc.t TEST 1: ngx.is_subrequest - pattern "(?^:\[TRACE\s+\d+\s+header_filter_by_lua:3 loop\])" should match a line in error.log (req 0)
misc.t TEST 1: ngx.is_subrequest - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 10:38:21 [error] 1743\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
misc.t TEST 1: ngx.is_subrequest - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
misc.t TEST 1: ngx.is_subrequest - status code ok got: ''
expected: '201'
misc.t TEST 1: ngx.is_subrequest - pattern "is subrequest: false," should match a line in error.log (req 1)
misc.t TEST 1: ngx.is_subrequest - pattern "(?^:\[TRACE\s+\d+\s+header_filter_by_lua:3 loop\])" should match a line in error.log (req 1)
misc.t TEST 1: ngx.is_subrequest - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 10:38:21 [error] 1743\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
misc.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
misc.t TEST 2: ngx.headers_sent (false) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
misc.t TEST 2: ngx.headers_sent (false) - status code ok got: ''
expected: '200'
misc.t TEST 2: ngx.headers_sent (false) - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "headers sent: false\x{0a}"
length: 20
strings begin to differ at char 1 (line 1 column 1)
misc.t TEST 2: ngx.headers_sent (false) - pattern "(?^:\[TRACE\s+\d+\s+content_by_lua\(nginx\.conf:\d+\):3 loop\])" should match a line in error.log (req 0)
misc.t TEST 2: ngx.headers_sent (false) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 10:38:25 [error] 1748\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
misc.t TEST 2: ngx.headers_sent (false) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
misc.t TEST 2: ngx.headers_sent (false) - status code ok got: ''
expected: '200'
misc.t TEST 2: ngx.headers_sent (false) - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "headers sent: false\x{0a}"
length: 20
strings begin to differ at char 1 (line 1 column 1)
misc.t TEST 2: ngx.headers_sent (false) - pattern "(?^:\[TRACE\s+\d+\s+content_by_lua\(nginx\.conf:\d+\):3 loop\])" should match a line in error.log (req 1)
misc.t TEST 2: ngx.headers_sent (false) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 10:38:25 [error] 1748\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
misc.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
misc.t TEST 5: base.check_subsystem with non-http subsystem - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
misc.t TEST 5: base.check_subsystem with non-http subsystem - status code ok got: ''
expected: '500'
misc.t TEST 5: base.check_subsystem with non-http subsystem - pattern "unsupported subsystem: http" should match a line in error.log (req 0)
misc.t TEST 5: base.check_subsystem with non-http subsystem - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
misc.t TEST 5: base.check_subsystem with non-http subsystem - status code ok got: ''
expected: '500'
misc.t TEST 5: base.check_subsystem with non-http subsystem - pattern "unsupported subsystem: http" should match a line in error.log (req 1)
ndk.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
ndk.t TEST 2: directive not found - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
ndk.t TEST 2: directive not found - status code ok got: ''
expected: '500'
ndk.t TEST 2: directive not found - response_body_like - response is expected () ''
doesn't match '(?^s:500 Internal Server Error)'
ndk.t TEST 2: directive not found - pattern "ndk.set_var: directive "set_escape_uri_blah_blah" not found or does not use ndk_set_var_value" should match a line in error.log (req 0)
ndk.t TEST 2: directive not found - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
ndk.t TEST 2: directive not found - status code ok got: ''
expected: '500'
ndk.t TEST 2: directive not found - response_body_like - response is expected () ''
doesn't match '(?^s:500 Internal Server Error)'
ndk.t TEST 2: directive not found - pattern "ndk.set_var: directive "set_escape_uri_blah_blah" not found or does not use ndk_set_var_value" should match a line in error.log (req 1)
ndk.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
ndk.t TEST 7: convert directive argument to string - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
ndk.t TEST 7: convert directive argument to string - status code ok got: ''
expected: '200'
ndk.t TEST 7: convert directive argument to string - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "1\x{0a}"
length: 2
strings begin to differ at char 1 (line 1 column 1)
ndk.t TEST 7: convert directive argument to string - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 10:38:39 [error] 1766\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
ndk.t TEST 7: convert directive argument to string - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
ndk.t TEST 7: convert directive argument to string - status code ok got: ''
expected: '200'
ndk.t TEST 7: convert directive argument to string - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "1\x{0a}"
length: 2
strings begin to differ at char 1 (line 1 column 1)
ndk.t TEST 7: convert directive argument to string - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 10:38:39 [error] 1766\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
ndk.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
ndk.t TEST 10: call in header_filter_by_lua - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
ndk.t TEST 10: call in header_filter_by_lua - status code ok got: ''
expected: '200'
ndk.t TEST 10: call in header_filter_by_lua - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "%20%3A\x{0a}"
length: 7
strings begin to differ at char 1 (line 1 column 1)
ndk.t TEST 10: call in header_filter_by_lua - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 10:38:44 [error] 1771\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
ndk.t TEST 10: call in header_filter_by_lua - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
ndk.t TEST 10: call in header_filter_by_lua - status code ok got: ''
expected: '200'
ndk.t TEST 10: call in header_filter_by_lua - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "%20%3A\x{0a}"
length: 7
strings begin to differ at char 1 (line 1 column 1)
ndk.t TEST 10: call in header_filter_by_lua - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 10:38:44 [error] 1771\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
ndk.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
ndk.t TEST 3: ndk.set_var initialize ngx_http_variable_value_t variable properly - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
ndk.t TEST 3: ndk.set_var initialize ngx_http_variable_value_t variable properly - status code ok got: ''
expected: '200'
ndk.t TEST 3: ndk.set_var initialize ngx_http_variable_value_t variable properly - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "68o32c9e64o2sc9j5co30c1g\x{0a}'2011.10.13+0000'\x{0a}"
length: 43
strings begin to differ at char 1 (line 1 column 1)
ndk.t TEST 3: ndk.set_var initialize ngx_http_variable_value_t variable properly - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 10:38:48 [error] 1776\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
ndk.t TEST 3: ndk.set_var initialize ngx_http_variable_value_t variable properly - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
ndk.t TEST 3: ndk.set_var initialize ngx_http_variable_value_t variable properly - status code ok got: ''
expected: '200'
ndk.t TEST 3: ndk.set_var initialize ngx_http_variable_value_t variable properly - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "68o32c9e64o2sc9j5co30c1g\x{0a}'2011.10.13+0000'\x{0a}"
length: 43
strings begin to differ at char 1 (line 1 column 1)
ndk.t TEST 3: ndk.set_var initialize ngx_http_variable_value_t variable properly - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 10:38:48 [error] 1776\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
ndk.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
ndk.t TEST 6: convert directive type to string - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
ndk.t TEST 6: convert directive type to string - status code ok got: ''
expected: '500'
ndk.t TEST 6: convert directive type to string - response_body_like - response is expected () ''
doesn't match '(?^s:500 Internal Server Error)'
ndk.t TEST 6: convert directive type to string - pattern "ndk.set_var: directive "1" not found or does not use ndk_set_var_value" should match a line in error.log (req 0)
ndk.t TEST 6: convert directive type to string - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
ndk.t TEST 6: convert directive type to string - status code ok got: ''
expected: '500'
ndk.t TEST 6: convert directive type to string - response_body_like - response is expected () ''
doesn't match '(?^s:500 Internal Server Error)'
ndk.t TEST 6: convert directive type to string - pattern "ndk.set_var: directive "1" not found or does not use ndk_set_var_value" should match a line in error.log (req 1)
ndk.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
ndk.t TEST 11: call in log_by_lua - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
ndk.t TEST 11: call in log_by_lua - status code ok got: ''
expected: '200'
ndk.t TEST 11: call in log_by_lua - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "ok\x{0a}"
length: 3
strings begin to differ at char 1 (line 1 column 1)
ndk.t TEST 11: call in log_by_lua - pattern "s = %20%3A" should match a line in error.log (req 0)
ndk.t TEST 11: call in log_by_lua - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 10:38:58 [error] 1786\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
ndk.t TEST 11: call in log_by_lua - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
ndk.t TEST 11: call in log_by_lua - status code ok got: ''
expected: '200'
ndk.t TEST 11: call in log_by_lua - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "ok\x{0a}"
length: 3
strings begin to differ at char 1 (line 1 column 1)
ndk.t TEST 11: call in log_by_lua - pattern "s = %20%3A" should match a line in error.log (req 1)
ndk.t TEST 11: call in log_by_lua - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 10:38:58 [error] 1786\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
ndk.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
ndk.t TEST 5: call directive failed - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
ndk.t TEST 5: call directive failed - status code ok got: ''
expected: '500'
ndk.t TEST 5: call directive failed - response_body_like - response is expected () ''
doesn't match '(?^s:500 Internal Server Error)'
ndk.t TEST 5: call directive failed - pattern "calling directive set_decode_hex failed with code -1" should match a line in error.log (req 0)
ndk.t TEST 5: call directive failed - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
ndk.t TEST 5: call directive failed - status code ok got: ''
expected: '500'
ndk.t TEST 5: call directive failed - response_body_like - response is expected () ''
doesn't match '(?^s:500 Internal Server Error)'
ndk.t TEST 5: call directive failed - pattern "calling directive set_decode_hex failed with code -1" should match a line in error.log (req 1)
ndk.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
ndk.t TEST 12: call in init_worker_by_lua - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
ndk.t TEST 12: call in init_worker_by_lua - status code ok got: ''
expected: '200'
ndk.t TEST 12: call in init_worker_by_lua - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "%20%3A\x{0a}"
length: 7
strings begin to differ at char 1 (line 1 column 1)
ndk.t TEST 12: call in init_worker_by_lua - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 10:39:07 [error] 1796\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
ndk.t TEST 12: call in init_worker_by_lua - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
ndk.t TEST 12: call in init_worker_by_lua - status code ok got: ''
expected: '200'
ndk.t TEST 12: call in init_worker_by_lua - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "%20%3A\x{0a}"
length: 7
strings begin to differ at char 1 (line 1 column 1)
ndk.t TEST 12: call in init_worker_by_lua - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 10:39:07 [error] 1796\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
ndk.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
ndk.t TEST 8: call in set_by_lua - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
ndk.t TEST 8: call in set_by_lua - status code ok got: ''
expected: '200'
ndk.t TEST 8: call in set_by_lua - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "%20%3A\x{0a}"
length: 7
strings begin to differ at char 1 (line 1 column 1)
ndk.t TEST 8: call in set_by_lua - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 10:39:11 [error] 1801\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
ndk.t TEST 8: call in set_by_lua - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
ndk.t TEST 8: call in set_by_lua - status code ok got: ''
expected: '200'
ndk.t TEST 8: call in set_by_lua - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "%20%3A\x{0a}"
length: 7
strings begin to differ at char 1 (line 1 column 1)
ndk.t TEST 8: call in set_by_lua - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 10:39:11 [error] 1801\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
ndk.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
ndk.t TEST 13: cache the function in init_worker_by_lua and call in other phases - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
ndk.t TEST 13: cache the function in init_worker_by_lua and call in other phases - status code ok got: ''
expected: '200'
ndk.t TEST 13: cache the function in init_worker_by_lua and call in other phases - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "%20%3A\x{0a}"
length: 7
strings begin to differ at char 1 (line 1 column 1)
ndk.t TEST 13: cache the function in init_worker_by_lua and call in other phases - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 10:39:16 [error] 1806\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
ndk.t TEST 13: cache the function in init_worker_by_lua and call in other phases - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
ndk.t TEST 13: cache the function in init_worker_by_lua and call in other phases - status code ok got: ''
expected: '200'
ndk.t TEST 13: cache the function in init_worker_by_lua and call in other phases - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "%20%3A\x{0a}"
length: 7
strings begin to differ at char 1 (line 1 column 1)
ndk.t TEST 13: cache the function in init_worker_by_lua and call in other phases - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 10:39:16 [error] 1806\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
ndk.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
ndk.t TEST 9: call in timer - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
ndk.t TEST 9: call in timer - status code ok got: ''
expected: '200'
ndk.t TEST 9: call in timer - pattern "s = %20%3A" should match a line in error.log (req 0)
ndk.t TEST 9: call in timer - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 10:39:20 [error] 1811\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
ndk.t TEST 9: call in timer - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
ndk.t TEST 9: call in timer - status code ok got: ''
expected: '200'
ndk.t TEST 9: call in timer - pattern "s = %20%3A" should match a line in error.log (req 1)
ndk.t TEST 9: call in timer - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 10:39:20 [error] 1811\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
ndk.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
ndk.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
ndk.t TEST 1: sanity - status code ok got: ''
expected: '200'
ndk.t TEST 1: sanity - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "%20%3A\x{0a}a b\x{0a}%20%3A\x{0a}a b\x{0a}"
length: 22
strings begin to differ at char 1 (line 1 column 1)
ndk.t TEST 1: sanity - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):13 loop\])" should match a line in error.log (req 0)
ndk.t TEST 1: sanity - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 10:39:25 [error] 1816\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
ndk.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
ndk.t TEST 1: sanity - status code ok got: ''
expected: '200'
ndk.t TEST 1: sanity - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "%20%3A\x{0a}a b\x{0a}%20%3A\x{0a}a b\x{0a}"
length: 22
strings begin to differ at char 1 (line 1 column 1)
ndk.t TEST 1: sanity - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):13 loop\])" should match a line in error.log (req 1)
ndk.t TEST 1: sanity - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 10:39:25 [error] 1816\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
ndk.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
ndk.t TEST 4: set directive not allowed - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
ndk.t TEST 4: set directive not allowed - status code ok got: ''
expected: '500'
ndk.t TEST 4: set directive not allowed - response_body_like - response is expected () ''
doesn't match '(?^s:500 Internal Server Error)'
ndk.t TEST 4: set directive not allowed - pattern "not allowed" should match a line in error.log (req 0)
ndk.t TEST 4: set directive not allowed - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
ndk.t TEST 4: set directive not allowed - status code ok got: ''
expected: '500'
ndk.t TEST 4: set directive not allowed - response_body_like - response is expected () ''
doesn't match '(?^s:500 Internal Server Error)'
ndk.t TEST 4: set directive not allowed - pattern "not allowed" should match a line in error.log (req 1)
ngx-req.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
ngx-req.t TEST 11: ngx_req.add_header (invalid header values) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
ngx-req.t TEST 11: ngx_req.add_header (invalid header values) - status code ok got: ''
expected: '200'
ngx-req.t TEST 11: ngx_req.add_header (invalid header values) - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-bad 'value' argument: string or table expected, got nil
-bad 'value' argument: string or table expected, got nil
-bad 'value' argument: non-empty table expected
'
ngx-req.t TEST 11: ngx_req.add_header (invalid header values) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 10:39:34 [error] 1829\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
ngx-req.t TEST 11: ngx_req.add_header (invalid header values) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
ngx-req.t TEST 11: ngx_req.add_header (invalid header values) - status code ok got: ''
expected: '200'
ngx-req.t TEST 11: ngx_req.add_header (invalid header values) - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-bad 'value' argument: string or table expected, got nil
-bad 'value' argument: string or table expected, got nil
-bad 'value' argument: non-empty table expected
'
ngx-req.t TEST 11: ngx_req.add_header (invalid header values) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 10:39:34 [error] 1829\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
ngx-req.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
ngx-req.t TEST 7: ngx_req.add_header (override builtin header) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
ngx-req.t TEST 7: ngx_req.add_header (override builtin header) - status code ok got: ''
expected: '200'
ngx-req.t TEST 7: ngx_req.add_header (override builtin header) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'UA: Mozilla/5.0 (Android; Mobile; rv:13.0) Gecko/13.0 Firefox/13.0
'
ngx-req.t TEST 7: ngx_req.add_header (override builtin header) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 10:39:39 [error] 1834\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
ngx-req.t TEST 7: ngx_req.add_header (override builtin header) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
ngx-req.t TEST 7: ngx_req.add_header (override builtin header) - status code ok got: ''
expected: '200'
ngx-req.t TEST 7: ngx_req.add_header (override builtin header) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'UA: Mozilla/5.0 (Android; Mobile; rv:13.0) Gecko/13.0 Firefox/13.0
'
ngx-req.t TEST 7: ngx_req.add_header (override builtin header) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 10:39:39 [error] 1834\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
ngx-req.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
ngx-req.t TEST 2: ngx_req.add_header (single value) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
ngx-req.t TEST 2: ngx_req.add_header (single value) - status code ok got: ''
expected: '200'
ngx-req.t TEST 2: ngx_req.add_header (single value) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'Foo: bar, baz, 2
'
ngx-req.t TEST 2: ngx_req.add_header (single value) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 10:39:43 [error] 1839\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
ngx-req.t TEST 2: ngx_req.add_header (single value) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
ngx-req.t TEST 2: ngx_req.add_header (single value) - status code ok got: ''
expected: '200'
ngx-req.t TEST 2: ngx_req.add_header (single value) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'Foo: bar, baz, 2
'
ngx-req.t TEST 2: ngx_req.add_header (single value) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 10:39:43 [error] 1839\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
ngx-req.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
ngx-req.t TEST 4: ngx_req.add_header (non-string single value) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
ngx-req.t TEST 4: ngx_req.add_header (non-string single value) - status code ok got: ''
expected: '200'
ngx-req.t TEST 4: ngx_req.add_header (non-string single value) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'Foo: [bar, 123]
'
ngx-req.t TEST 4: ngx_req.add_header (non-string single value) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 10:39:48 [error] 1844\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
ngx-req.t TEST 4: ngx_req.add_header (non-string single value) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
ngx-req.t TEST 4: ngx_req.add_header (non-string single value) - status code ok got: ''
expected: '200'
ngx-req.t TEST 4: ngx_req.add_header (non-string single value) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'Foo: [bar, 123]
'
ngx-req.t TEST 4: ngx_req.add_header (non-string single value) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 10:39:48 [error] 1844\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
ngx-req.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
ngx-req.t TEST 10: ngx_req.add_header (header names edge-cases) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
ngx-req.t TEST 10: ngx_req.add_header (header names edge-cases) - status code ok got: ''
expected: '200'
ngx-req.t TEST 10: ngx_req.add_header (header names edge-cases) - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-bad 'name' argument: string expected, got nil
-ok
-ok
'
ngx-req.t TEST 10: ngx_req.add_header (header names edge-cases) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 10:39:52 [error] 1849\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
ngx-req.t TEST 10: ngx_req.add_header (header names edge-cases) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
ngx-req.t TEST 10: ngx_req.add_header (header names edge-cases) - status code ok got: ''
expected: '200'
ngx-req.t TEST 10: ngx_req.add_header (header names edge-cases) - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-bad 'name' argument: string expected, got nil
-ok
-ok
'
ngx-req.t TEST 10: ngx_req.add_header (header names edge-cases) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 10:39:52 [error] 1849\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
ngx-req.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
ngx-req.t TEST 5: ngx_req.add_header (non-string header name) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
ngx-req.t TEST 5: ngx_req.add_header (non-string header name) - status code ok got: ''
expected: '200'
ngx-req.t TEST 5: ngx_req.add_header (non-string header name) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: '123: [456, 789]
'
ngx-req.t TEST 5: ngx_req.add_header (non-string header name) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 10:39:57 [error] 1854\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
ngx-req.t TEST 5: ngx_req.add_header (non-string header name) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
ngx-req.t TEST 5: ngx_req.add_header (non-string header name) - status code ok got: ''
expected: '200'
ngx-req.t TEST 5: ngx_req.add_header (non-string header name) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: '123: [456, 789]
'
ngx-req.t TEST 5: ngx_req.add_header (non-string header name) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 10:39:57 [error] 1854\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
ngx-req.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
ngx-req.t TEST 6: ngx_req.add_header (multiple values) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
ngx-req.t TEST 6: ngx_req.add_header (multiple values) - status code ok got: ''
expected: '200'
ngx-req.t TEST 6: ngx_req.add_header (multiple values) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'Foo: bar, baz, 123
'
ngx-req.t TEST 6: ngx_req.add_header (multiple values) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 10:40:01 [error] 1859\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
ngx-req.t TEST 6: ngx_req.add_header (multiple values) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
ngx-req.t TEST 6: ngx_req.add_header (multiple values) - status code ok got: ''
expected: '200'
ngx-req.t TEST 6: ngx_req.add_header (multiple values) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'Foo: bar, baz, 123
'
ngx-req.t TEST 6: ngx_req.add_header (multiple values) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 10:40:01 [error] 1859\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
ngx-req.t TEST 9: ngx_req.add_header (invalid context) - pattern "API disabled in the current context" should match a line in error.log (req 0)
ngx-req.t TEST 9: ngx_req.add_header (invalid context) - pattern "API disabled in the current context" should match a line in error.log (req 1)
ngx-req.t TEST 3: ngx_req.add_header (empty single value) - failed to reload configuration after 200 failed test requests
ngx-req.t TEST 3: ngx_req.add_header (empty single value) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'Foo: [bar, ]
'
ngx-req.t TEST 3: ngx_req.add_header (empty single value) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 10:40:07 [error] 1864\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
init_by_lua:11: in main chunk
'
ngx-req.t TEST 3: ngx_req.add_header (empty single value) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'Foo: [bar, ]
'
ngx-req.t TEST 3: ngx_req.add_header (empty single value) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 10:40:07 [error] 1864\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
init_by_lua:11: in main chunk
'
ngx-req.t TEST 15: ngx_req.add_header (header value with Chinese characters) - failed to reload configuration after 200 failed test requests
ngx-req.t TEST 15: ngx_req.add_header (header value with Chinese characters) - status code ok got: '404'
expected: '200'
ngx-req.t TEST 15: ngx_req.add_header (header value with Chinese characters) - response_body_like - response is expected (<html> <head><title>404 Not Found</title></head> <body> <center><h1>404 Not Found</h1></center> <hr><center>nginx/1.15.8 (no pool)</center> </body> </html>) '<html>
<head><title>404 Not Found</title></head>
<body>
<center><h1>404 Not Found</h1></center>
<hr><center>nginx/1.15.8 (no pool)</center>
</body>
</html>
'
doesn't match '(?^s:\bheader: value中文)'
ngx-req.t TEST 15: ngx_req.add_header (header value with Chinese characters) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 10:43:34 [error] 1864\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
init_by_lua:11: in main chunk
'
ngx-req.t TEST 15: ngx_req.add_header (header value with Chinese characters) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 10:47:01 [error] 1865\#0: *406 open() \"/home/ec2-user/git/lua-resty-core/t/servroot/html/bar\" failed (2: No such file or directory), client: 127.0.0.1, server: localhost, request: \"GET /bar HTTP/1.1\", host: \"localhost\"" (req 0) 2020/10/26 10:47:01 [debug] 1865\#0: *406 http finalize request: 404, "/bar?" a:1, c:1
2020/10/26 10:47:01 [debug] 1865\#0: *406 http special response: 404, "/bar?"
2020/10/26 10:47:01 [debug] 1865\#0: *406 http set discard body
2020/10/26 10:47:01 [debug] 1865\#0: *406 malloc: 04EFB888:52
2020/10/26 10:47:01 [debug] 1865\#0: *406 malloc: 04EFB8F0:8
2020/10/26 10:47:01 [debug] 1865\#0: *406 malloc: 04EFB928:177
2020/10/26 10:47:01 [debug] 1865\#0: *406 malloc: 04EFBA10:8
2020/10/26 10:47:01 [debug] 1865\#0: *406 HTTP/1.1 404 Not Found
Server: nginx/1.15.8 (no pool)
'
ngx-req.t TEST 15: ngx_req.add_header (header value with Chinese characters) - status code ok got: '404'
expected: '200'
ngx-req.t TEST 15: ngx_req.add_header (header value with Chinese characters) - response_body_like - response is expected (<html> <head><title>404 Not Found</title></head> <body> <center><h1>404 Not Found</h1></center> <hr><center>nginx/1.15.8 (no pool)</center> </body> </html>) '<html>
<head><title>404 Not Found</title></head>
<body>
<center><h1>404 Not Found</h1></center>
<hr><center>nginx/1.15.8 (no pool)</center>
</body>
</html>
'
doesn't match '(?^s:\bheader: value中文)'
ngx-req.t TEST 15: ngx_req.add_header (header value with Chinese characters) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 10:43:34 [error] 1864\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
init_by_lua:11: in main chunk
'
ngx-req.t TEST 15: ngx_req.add_header (header value with Chinese characters) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 10:47:01 [error] 1865\#0: *406 open() \"/home/ec2-user/git/lua-resty-core/t/servroot/html/bar\" failed (2: No such file or directory), client: 127.0.0.1, server: localhost, request: \"GET /bar HTTP/1.1\", host: \"localhost\"" (req 1) 2020/10/26 10:47:01 [debug] 1865\#0: *406 http finalize request: 404, "/bar?" a:1, c:1
2020/10/26 10:47:01 [debug] 1865\#0: *406 http special response: 404, "/bar?"
2020/10/26 10:47:01 [debug] 1865\#0: *406 http set discard body
2020/10/26 10:47:01 [debug] 1865\#0: *406 malloc: 04EFB888:52
2020/10/26 10:47:01 [debug] 1865\#0: *406 malloc: 04EFB8F0:8
2020/10/26 10:47:01 [debug] 1865\#0: *406 malloc: 04EFB928:177
2020/10/26 10:47:01 [debug] 1865\#0: *406 malloc: 04EFBA10:8
2020/10/26 10:47:01 [debug] 1865\#0: *406 HTTP/1.1 404 Not Found
Server: nginx/1.15.8 (no pool)
'
ngx-req.t TEST 15: ngx_req.add_header (header value with Chinese characters) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 10:47:02 [error] 1865\#0: *407 open() \"/home/ec2-user/git/lua-resty-core/t/servroot/html/bar\" failed (2: No such file or directory), client: 127.0.0.1, server: localhost, request: \"GET /bar HTTP/1.1\", host: \"localhost\"" (req 1) 2020/10/26 10:47:02 [debug] 1865\#0: *407 http finalize request: 404, "/bar?" a:1, c:1
2020/10/26 10:47:02 [debug] 1865\#0: *407 http special response: 404, "/bar?"
2020/10/26 10:47:02 [debug] 1865\#0: *407 http set discard body
2020/10/26 10:47:02 [debug] 1865\#0: *407 malloc: 04EFD4D0:52
2020/10/26 10:47:02 [debug] 1865\#0: *407 malloc: 04EFD538:8
2020/10/26 10:47:02 [debug] 1865\#0: *407 malloc: 04EFD570:177
2020/10/26 10:47:02 [debug] 1865\#0: *407 malloc: 04EFD658:8
2020/10/26 10:47:02 [debug] 1865\#0: *407 HTTP/1.1 404 Not Found
Server: nginx/1.15.8 (no pool)
'
ngx-req.t TEST 14: ngx_req.add_header (header name with Chinese characters) - failed to reload configuration after 200 failed test requests
ngx-req.t TEST 14: ngx_req.add_header (header name with Chinese characters) - status code ok got: '404'
expected: '200'
ngx-req.t TEST 14: ngx_req.add_header (header name with Chinese characters) - response_body_like - response is expected (<html> <head><title>404 Not Found</title></head> <body> <center><h1>404 Not Found</h1></center> <hr><center>nginx/1.15.8 (no pool)</center> </body> </html>) '<html>
<head><title>404 Not Found</title></head>
<body>
<center><h1>404 Not Found</h1></center>
<hr><center>nginx/1.15.8 (no pool)</center>
</body>
</html>
'
doesn't match '(?^s:\bheader%E4%B8%AD%E6%96%87: value)'
ngx-req.t TEST 14: ngx_req.add_header (header name with Chinese characters) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 10:47:02 [error] 1864\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
init_by_lua:11: in main chunk
'
ngx-req.t TEST 14: ngx_req.add_header (header name with Chinese characters) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 10:50:31 [error] 1865\#0: *608 open() \"/home/ec2-user/git/lua-resty-core/t/servroot/html/bar\" failed (2: No such file or directory), client: 127.0.0.1, server: localhost, request: \"GET /bar HTTP/1.1\", host: \"localhost\"" (req 0) 2020/10/26 10:50:31 [debug] 1865\#0: *608 http finalize request: 404, "/bar?" a:1, c:1
2020/10/26 10:50:31 [debug] 1865\#0: *608 http special response: 404, "/bar?"
2020/10/26 10:50:31 [debug] 1865\#0: *608 http set discard body
2020/10/26 10:50:31 [debug] 1865\#0: *608 malloc: 05088098:52
2020/10/26 10:50:31 [debug] 1865\#0: *608 malloc: 05088100:8
2020/10/26 10:50:31 [debug] 1865\#0: *608 malloc: 05088138:177
2020/10/26 10:50:31 [debug] 1865\#0: *608 malloc: 05088220:8
2020/10/26 10:50:31 [debug] 1865\#0: *608 HTTP/1.1 404 Not Found
Server: nginx/1.15.8 (no pool)
'
ngx-req.t TEST 14: ngx_req.add_header (header name with Chinese characters) - status code ok got: '404'
expected: '200'
ngx-req.t TEST 14: ngx_req.add_header (header name with Chinese characters) - response_body_like - response is expected (<html> <head><title>404 Not Found</title></head> <body> <center><h1>404 Not Found</h1></center> <hr><center>nginx/1.15.8 (no pool)</center> </body> </html>) '<html>
<head><title>404 Not Found</title></head>
<body>
<center><h1>404 Not Found</h1></center>
<hr><center>nginx/1.15.8 (no pool)</center>
</body>
</html>
'
doesn't match '(?^s:\bheader%E4%B8%AD%E6%96%87: value)'
ngx-req.t TEST 14: ngx_req.add_header (header name with Chinese characters) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 10:47:02 [error] 1864\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
init_by_lua:11: in main chunk
'
ngx-req.t TEST 14: ngx_req.add_header (header name with Chinese characters) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 10:50:31 [error] 1865\#0: *608 open() \"/home/ec2-user/git/lua-resty-core/t/servroot/html/bar\" failed (2: No such file or directory), client: 127.0.0.1, server: localhost, request: \"GET /bar HTTP/1.1\", host: \"localhost\"" (req 1) 2020/10/26 10:50:31 [debug] 1865\#0: *608 http finalize request: 404, "/bar?" a:1, c:1
2020/10/26 10:50:31 [debug] 1865\#0: *608 http special response: 404, "/bar?"
2020/10/26 10:50:31 [debug] 1865\#0: *608 http set discard body
2020/10/26 10:50:31 [debug] 1865\#0: *608 malloc: 05088098:52
2020/10/26 10:50:31 [debug] 1865\#0: *608 malloc: 05088100:8
2020/10/26 10:50:31 [debug] 1865\#0: *608 malloc: 05088138:177
2020/10/26 10:50:31 [debug] 1865\#0: *608 malloc: 05088220:8
2020/10/26 10:50:31 [debug] 1865\#0: *608 HTTP/1.1 404 Not Found
Server: nginx/1.15.8 (no pool)
'
ngx-req.t TEST 14: ngx_req.add_header (header name with Chinese characters) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 10:50:31 [error] 1865\#0: *609 open() \"/home/ec2-user/git/lua-resty-core/t/servroot/html/bar\" failed (2: No such file or directory), client: 127.0.0.1, server: localhost, request: \"GET /bar HTTP/1.1\", host: \"localhost\"" (req 1) 2020/10/26 10:50:31 [debug] 1865\#0: *609 http finalize request: 404, "/bar?" a:1, c:1
2020/10/26 10:50:31 [debug] 1865\#0: *609 http special response: 404, "/bar?"
2020/10/26 10:50:31 [debug] 1865\#0: *609 http set discard body
2020/10/26 10:50:31 [debug] 1865\#0: *609 malloc: 05089CE0:52
2020/10/26 10:50:31 [debug] 1865\#0: *609 malloc: 05089D48:8
2020/10/26 10:50:31 [debug] 1865\#0: *609 malloc: 05089D80:177
2020/10/26 10:50:31 [debug] 1865\#0: *609 malloc: 05089E68:8
2020/10/26 10:50:31 [debug] 1865\#0: *609 HTTP/1.1 404 Not Found
Server: nginx/1.15.8 (no pool)
'
ngx-req.t TEST 12: ngx_req.add_header (header name with control characters) - failed to reload configuration after 200 failed test requests
ngx-req.t TEST 12: ngx_req.add_header (header name with control characters) - status code ok got: '404'
expected: '200'
ngx-req.t TEST 12: ngx_req.add_header (header name with control characters) - response_body_like - response is expected (<html> <head><title>404 Not Found</title></head> <body> <center><h1>404 Not Found</h1></center> <hr><center>nginx/1.15.8 (no pool)</center> </body> </html>) '<html>
<head><title>404 Not Found</title></head>
<body>
<center><h1>404 Not Found</h1></center>
<hr><center>nginx/1.15.8 (no pool)</center>
</body>
</html>
'
doesn't match '(?^s:\bheader%0D%0Aabc: value\r\n)'
ngx-req.t TEST 12: ngx_req.add_header (header name with control characters) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 10:50:31 [error] 1864\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
init_by_lua:11: in main chunk
'
ngx-req.t TEST 12: ngx_req.add_header (header name with control characters) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 10:53:59 [error] 1865\#0: *810 open() \"/home/ec2-user/git/lua-resty-core/t/servroot/html/bar\" failed (2: No such file or directory), client: 127.0.0.1, server: localhost, request: \"GET /bar HTTP/1.1\", host: \"localhost\"" (req 0) 2020/10/26 10:53:59 [debug] 1865\#0: *810 http finalize request: 404, "/bar?" a:1, c:1
2020/10/26 10:53:59 [debug] 1865\#0: *810 http special response: 404, "/bar?"
2020/10/26 10:53:59 [debug] 1865\#0: *810 http set discard body
2020/10/26 10:53:59 [debug] 1865\#0: *810 malloc: 052148D0:52
2020/10/26 10:53:59 [debug] 1865\#0: *810 malloc: 05214938:8
2020/10/26 10:53:59 [debug] 1865\#0: *810 malloc: 05214970:177
2020/10/26 10:53:59 [debug] 1865\#0: *810 malloc: 05214A58:8
2020/10/26 10:53:59 [debug] 1865\#0: *810 HTTP/1.1 404 Not Found
Server: nginx/1.15.8 (no pool)
'
ngx-req.t TEST 12: ngx_req.add_header (header name with control characters) - status code ok got: '404'
expected: '200'
ngx-req.t TEST 12: ngx_req.add_header (header name with control characters) - response_body_like - response is expected (<html> <head><title>404 Not Found</title></head> <body> <center><h1>404 Not Found</h1></center> <hr><center>nginx/1.15.8 (no pool)</center> </body> </html>) '<html>
<head><title>404 Not Found</title></head>
<body>
<center><h1>404 Not Found</h1></center>
<hr><center>nginx/1.15.8 (no pool)</center>
</body>
</html>
'
doesn't match '(?^s:\bheader%0D%0Aabc: value\r\n)'
ngx-req.t TEST 12: ngx_req.add_header (header name with control characters) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 10:50:31 [error] 1864\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
init_by_lua:11: in main chunk
'
ngx-req.t TEST 12: ngx_req.add_header (header name with control characters) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 10:53:59 [error] 1865\#0: *810 open() \"/home/ec2-user/git/lua-resty-core/t/servroot/html/bar\" failed (2: No such file or directory), client: 127.0.0.1, server: localhost, request: \"GET /bar HTTP/1.1\", host: \"localhost\"" (req 1) 2020/10/26 10:53:59 [debug] 1865\#0: *810 http finalize request: 404, "/bar?" a:1, c:1
2020/10/26 10:53:59 [debug] 1865\#0: *810 http special response: 404, "/bar?"
2020/10/26 10:53:59 [debug] 1865\#0: *810 http set discard body
2020/10/26 10:53:59 [debug] 1865\#0: *810 malloc: 052148D0:52
2020/10/26 10:53:59 [debug] 1865\#0: *810 malloc: 05214938:8
2020/10/26 10:53:59 [debug] 1865\#0: *810 malloc: 05214970:177
2020/10/26 10:53:59 [debug] 1865\#0: *810 malloc: 05214A58:8
2020/10/26 10:53:59 [debug] 1865\#0: *810 HTTP/1.1 404 Not Found
Server: nginx/1.15.8 (no pool)
'
ngx-req.t TEST 12: ngx_req.add_header (header name with control characters) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 10:53:59 [error] 1865\#0: *811 open() \"/home/ec2-user/git/lua-resty-core/t/servroot/html/bar\" failed (2: No such file or directory), client: 127.0.0.1, server: localhost, request: \"GET /bar HTTP/1.1\", host: \"localhost\"" (req 1) 2020/10/26 10:53:59 [debug] 1865\#0: *811 http finalize request: 404, "/bar?" a:1, c:1
2020/10/26 10:53:59 [debug] 1865\#0: *811 http special response: 404, "/bar?"
2020/10/26 10:53:59 [debug] 1865\#0: *811 http set discard body
2020/10/26 10:53:59 [debug] 1865\#0: *811 malloc: 05216518:52
2020/10/26 10:53:59 [debug] 1865\#0: *811 malloc: 05216580:8
2020/10/26 10:53:59 [debug] 1865\#0: *811 malloc: 052165B8:177
2020/10/26 10:53:59 [debug] 1865\#0: *811 malloc: 052166A0:8
2020/10/26 10:53:59 [debug] 1865\#0: *811 HTTP/1.1 404 Not Found
Server: nginx/1.15.8 (no pool)
'
ngx-req.t TEST 1: ngx_req.add_header (jitted) - failed to reload configuration after 200 failed test requests
ngx-req.t TEST 1: ngx_req.add_header (jitted) - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):4 loop\])" should match a line in error.log (req 0)
ngx-req.t TEST 1: ngx_req.add_header (jitted) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 10:53:59 [error] 1864\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
init_by_lua:11: in main chunk
'
ngx-req.t TEST 1: ngx_req.add_header (jitted) - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):4 loop\])" should match a line in error.log (req 1)
ngx-req.t TEST 1: ngx_req.add_header (jitted) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 10:53:59 [error] 1864\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
init_by_lua:11: in main chunk
'
ngx-req.t TEST 13: ngx_req.add_header (header value with control characters) - failed to reload configuration after 200 failed test requests
ngx-req.t TEST 13: ngx_req.add_header (header value with control characters) - status code ok got: '404'
expected: '200'
ngx-req.t TEST 13: ngx_req.add_header (header value with control characters) - response_body_like - response is expected (<html> <head><title>404 Not Found</title></head> <body> <center><h1>404 Not Found</h1></center> <hr><center>nginx/1.15.8 (no pool)</center> </body> </html>) '<html>
<head><title>404 Not Found</title></head>
<body>
<center><h1>404 Not Found</h1></center>
<hr><center>nginx/1.15.8 (no pool)</center>
</body>
</html>
'
doesn't match '(?^s:\bheader: value%0D%0Aabc\r\n)'
ngx-req.t TEST 13: ngx_req.add_header (header value with control characters) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 10:57:27 [error] 1864\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
init_by_lua:11: in main chunk
'
ngx-req.t TEST 13: ngx_req.add_header (header value with control characters) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:00:54 [error] 1865\#0: *1214 open() \"/home/ec2-user/git/lua-resty-core/t/servroot/html/bar\" failed (2: No such file or directory), client: 127.0.0.1, server: localhost, request: \"GET /bar HTTP/1.1\", host: \"localhost\"" (req 0) 2020/10/26 11:00:54 [debug] 1865\#0: *1214 http finalize request: 404, "/bar?" a:1, c:1
2020/10/26 11:00:54 [debug] 1865\#0: *1214 http special response: 404, "/bar?"
2020/10/26 11:00:54 [debug] 1865\#0: *1214 http set discard body
2020/10/26 11:00:54 [debug] 1865\#0: *1214 malloc: 0552D480:52
2020/10/26 11:00:54 [debug] 1865\#0: *1214 malloc: 0552D4E8:8
2020/10/26 11:00:54 [debug] 1865\#0: *1214 malloc: 0552D520:177
2020/10/26 11:00:54 [debug] 1865\#0: *1214 malloc: 0552D608:8
2020/10/26 11:00:54 [debug] 1865\#0: *1214 HTTP/1.1 404 Not Found
Server: nginx/1.15.8 (no pool)
'
ngx-req.t TEST 13: ngx_req.add_header (header value with control characters) - status code ok got: '404'
expected: '200'
ngx-req.t TEST 13: ngx_req.add_header (header value with control characters) - response_body_like - response is expected (<html> <head><title>404 Not Found</title></head> <body> <center><h1>404 Not Found</h1></center> <hr><center>nginx/1.15.8 (no pool)</center> </body> </html>) '<html>
<head><title>404 Not Found</title></head>
<body>
<center><h1>404 Not Found</h1></center>
<hr><center>nginx/1.15.8 (no pool)</center>
</body>
</html>
'
doesn't match '(?^s:\bheader: value%0D%0Aabc\r\n)'
ngx-req.t TEST 13: ngx_req.add_header (header value with control characters) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 10:57:27 [error] 1864\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
init_by_lua:11: in main chunk
'
ngx-req.t TEST 13: ngx_req.add_header (header value with control characters) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:00:54 [error] 1865\#0: *1214 open() \"/home/ec2-user/git/lua-resty-core/t/servroot/html/bar\" failed (2: No such file or directory), client: 127.0.0.1, server: localhost, request: \"GET /bar HTTP/1.1\", host: \"localhost\"" (req 1) 2020/10/26 11:00:54 [debug] 1865\#0: *1214 http finalize request: 404, "/bar?" a:1, c:1
2020/10/26 11:00:54 [debug] 1865\#0: *1214 http special response: 404, "/bar?"
2020/10/26 11:00:54 [debug] 1865\#0: *1214 http set discard body
2020/10/26 11:00:54 [debug] 1865\#0: *1214 malloc: 0552D480:52
2020/10/26 11:00:54 [debug] 1865\#0: *1214 malloc: 0552D4E8:8
2020/10/26 11:00:54 [debug] 1865\#0: *1214 malloc: 0552D520:177
2020/10/26 11:00:54 [debug] 1865\#0: *1214 malloc: 0552D608:8
2020/10/26 11:00:54 [debug] 1865\#0: *1214 HTTP/1.1 404 Not Found
Server: nginx/1.15.8 (no pool)
'
ngx-req.t TEST 13: ngx_req.add_header (header value with control characters) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:00:55 [error] 1865\#0: *1215 open() \"/home/ec2-user/git/lua-resty-core/t/servroot/html/bar\" failed (2: No such file or directory), client: 127.0.0.1, server: localhost, request: \"GET /bar HTTP/1.1\", host: \"localhost\"" (req 1) 2020/10/26 11:00:55 [debug] 1865\#0: *1215 http finalize request: 404, "/bar?" a:1, c:1
2020/10/26 11:00:55 [debug] 1865\#0: *1215 http special response: 404, "/bar?"
2020/10/26 11:00:55 [debug] 1865\#0: *1215 http set discard body
2020/10/26 11:00:55 [debug] 1865\#0: *1215 malloc: 0552F0C8:52
2020/10/26 11:00:55 [debug] 1865\#0: *1215 malloc: 0552F130:8
2020/10/26 11:00:55 [debug] 1865\#0: *1215 malloc: 0552F168:177
2020/10/26 11:00:55 [debug] 1865\#0: *1215 malloc: 0552F250:8
2020/10/26 11:00:55 [debug] 1865\#0: *1215 HTTP/1.1 404 Not Found
Server: nginx/1.15.8 (no pool)
'
ngx-req.t TEST 8: ngx_req.add_header (added header is inherited by subrequests) - failed to reload configuration after 200 failed test requests
ngx-req.t TEST 8: ngx_req.add_header (added header is inherited by subrequests) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'Foo: bar, baz, 2
'
ngx-req.t TEST 8: ngx_req.add_header (added header is inherited by subrequests) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:00:55 [error] 1864\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
init_by_lua:11: in main chunk
'
ngx-req.t TEST 8: ngx_req.add_header (added header is inherited by subrequests) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'Foo: bar, baz, 2
'
ngx-req.t TEST 8: ngx_req.add_header (added header is inherited by subrequests) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:00:55 [error] 1864\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
init_by_lua:11: in main chunk
'
ngx-resp.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
ngx-resp.t TEST 2: ngx.resp.add_header (nil) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
ngx-resp.t TEST 2: ngx.resp.add_header (nil) - status code ok got: ''
expected: '200'
ngx-resp.t TEST 2: ngx.resp.add_header (nil) - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "invalid header value\x{0a}"
length: 21
strings begin to differ at char 1 (line 1 column 1)
ngx-resp.t TEST 2: ngx.resp.add_header (nil) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:04:25 [error] 9647\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
ngx-resp.t TEST 2: ngx.resp.add_header (nil) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
ngx-resp.t TEST 2: ngx.resp.add_header (nil) - status code ok got: ''
expected: '200'
ngx-resp.t TEST 2: ngx.resp.add_header (nil) - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "invalid header value\x{0a}"
length: 21
strings begin to differ at char 1 (line 1 column 1)
ngx-resp.t TEST 2: ngx.resp.add_header (nil) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:04:25 [error] 9647\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
ngx-resp.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
ngx-resp.t TEST 1: ngx.resp.add_header (single value) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
ngx-resp.t TEST 1: ngx.resp.add_header (single value) - status code ok got: ''
expected: '200'
ngx-resp.t TEST 1: ngx.resp.add_header (single value) - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "Foo: bar, 2\x{0a}"
length: 12
strings begin to differ at char 1 (line 1 column 1)
ngx-resp.t TEST 1: ngx.resp.add_header (single value) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:04:30 [error] 9652\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
ngx-resp.t TEST 1: ngx.resp.add_header (single value) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
ngx-resp.t TEST 1: ngx.resp.add_header (single value) - status code ok got: ''
expected: '200'
ngx-resp.t TEST 1: ngx.resp.add_header (single value) - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "Foo: bar, 2\x{0a}"
length: 12
strings begin to differ at char 1 (line 1 column 1)
ngx-resp.t TEST 1: ngx.resp.add_header (single value) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:04:30 [error] 9652\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
ngx-resp.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
ngx-resp.t TEST 3: ngx.resp.add_header (multi-value) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
ngx-resp.t TEST 3: ngx.resp.add_header (multi-value) - status code ok got: ''
expected: '200'
ngx-resp.t TEST 3: ngx.resp.add_header (multi-value) - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "Foo: bar, baz\x{0a}"
length: 14
strings begin to differ at char 1 (line 1 column 1)
ngx-resp.t TEST 3: ngx.resp.add_header (multi-value) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:04:34 [error] 9657\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
ngx-resp.t TEST 3: ngx.resp.add_header (multi-value) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
ngx-resp.t TEST 3: ngx.resp.add_header (multi-value) - status code ok got: ''
expected: '200'
ngx-resp.t TEST 3: ngx.resp.add_header (multi-value) - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "Foo: bar, baz\x{0a}"
length: 14
strings begin to differ at char 1 (line 1 column 1)
ngx-resp.t TEST 3: ngx.resp.add_header (multi-value) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:04:34 [error] 9657\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
ngx-resp.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
ngx-resp.t TEST 8: ngx.resp.add_header (header value with control characters) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
ngx-resp.t TEST 8: ngx.resp.add_header (header value with control characters) - status code ok got: ''
expected: '200'
ngx-resp.t TEST 8: ngx.resp.add_header (header value with control characters) - header head ok got: ''
expected: 'value%0D%0A'
ngx-resp.t TEST 8: ngx.resp.add_header (header value with control characters) - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "OK\x{0a}"
length: 3
strings begin to differ at char 1 (line 1 column 1)
ngx-resp.t TEST 8: ngx.resp.add_header (header value with control characters) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:04:39 [error] 9662\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
ngx-resp.t TEST 8: ngx.resp.add_header (header value with control characters) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
ngx-resp.t TEST 8: ngx.resp.add_header (header value with control characters) - status code ok got: ''
expected: '200'
ngx-resp.t TEST 8: ngx.resp.add_header (header value with control characters) - header head ok got: ''
expected: 'value%0D%0A'
ngx-resp.t TEST 8: ngx.resp.add_header (header value with control characters) - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "OK\x{0a}"
length: 3
strings begin to differ at char 1 (line 1 column 1)
ngx-resp.t TEST 8: ngx.resp.add_header (header value with control characters) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:04:39 [error] 9662\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
ngx-resp.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
ngx-resp.t TEST 10: ngx.resp.add_header (header value with Chinese characters) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
ngx-resp.t TEST 10: ngx.resp.add_header (header value with Chinese characters) - status code ok got: ''
expected: '200'
ngx-resp.t TEST 10: ngx.resp.add_header (header value with Chinese characters) - header head ok got: ''
expected: 'value中文'
ngx-resp.t TEST 10: ngx.resp.add_header (header value with Chinese characters) - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "OK\x{0a}"
length: 3
strings begin to differ at char 1 (line 1 column 1)
ngx-resp.t TEST 10: ngx.resp.add_header (header value with Chinese characters) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:04:43 [error] 9667\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
ngx-resp.t TEST 10: ngx.resp.add_header (header value with Chinese characters) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
ngx-resp.t TEST 10: ngx.resp.add_header (header value with Chinese characters) - status code ok got: ''
expected: '200'
ngx-resp.t TEST 10: ngx.resp.add_header (header value with Chinese characters) - header head ok got: ''
expected: 'value中文'
ngx-resp.t TEST 10: ngx.resp.add_header (header value with Chinese characters) - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "OK\x{0a}"
length: 3
strings begin to differ at char 1 (line 1 column 1)
ngx-resp.t TEST 10: ngx.resp.add_header (header value with Chinese characters) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:04:43 [error] 9667\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
ngx-resp.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
ngx-resp.t TEST 5: ngx.resp.add_header (override builtin header) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
ngx-resp.t TEST 5: ngx.resp.add_header (override builtin header) - status code ok got: ''
expected: '200'
ngx-resp.t TEST 5: ngx.resp.add_header (override builtin header) - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "Date: now\x{0a}"
length: 10
strings begin to differ at char 1 (line 1 column 1)
ngx-resp.t TEST 5: ngx.resp.add_header (override builtin header) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:04:48 [error] 9672\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
ngx-resp.t TEST 5: ngx.resp.add_header (override builtin header) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
ngx-resp.t TEST 5: ngx.resp.add_header (override builtin header) - status code ok got: ''
expected: '200'
ngx-resp.t TEST 5: ngx.resp.add_header (override builtin header) - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "Date: now\x{0a}"
length: 10
strings begin to differ at char 1 (line 1 column 1)
ngx-resp.t TEST 5: ngx.resp.add_header (override builtin header) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:04:48 [error] 9672\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
ngx-resp.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
ngx-resp.t TEST 9: ngx.resp.add_header (header name with Chinese characters) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
ngx-resp.t TEST 9: ngx.resp.add_header (header name with Chinese characters) - status code ok got: ''
expected: '200'
ngx-resp.t TEST 9: ngx.resp.add_header (header name with Chinese characters) - header head%E4%B8%AD%E6%96%87 ok got: ''
expected: 'value'
ngx-resp.t TEST 9: ngx.resp.add_header (header name with Chinese characters) - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "OK\x{0a}"
length: 3
strings begin to differ at char 1 (line 1 column 1)
ngx-resp.t TEST 9: ngx.resp.add_header (header name with Chinese characters) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:04:52 [error] 9677\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
ngx-resp.t TEST 9: ngx.resp.add_header (header name with Chinese characters) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
ngx-resp.t TEST 9: ngx.resp.add_header (header name with Chinese characters) - status code ok got: ''
expected: '200'
ngx-resp.t TEST 9: ngx.resp.add_header (header name with Chinese characters) - header head%E4%B8%AD%E6%96%87 ok got: ''
expected: 'value'
ngx-resp.t TEST 9: ngx.resp.add_header (header name with Chinese characters) - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "OK\x{0a}"
length: 3
strings begin to differ at char 1 (line 1 column 1)
ngx-resp.t TEST 9: ngx.resp.add_header (header name with Chinese characters) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:04:52 [error] 9677\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
ngx-resp.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
ngx-resp.t TEST 4: ngx.resp.add_header (append header) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
ngx-resp.t TEST 4: ngx.resp.add_header (append header) - status code ok got: ''
expected: '200'
ngx-resp.t TEST 4: ngx.resp.add_header (append header) - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "fruit: apple, banana, cherry\x{0a}"
length: 29
strings begin to differ at char 1 (line 1 column 1)
ngx-resp.t TEST 4: ngx.resp.add_header (append header) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:04:57 [error] 9682\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
ngx-resp.t TEST 4: ngx.resp.add_header (append header) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
ngx-resp.t TEST 4: ngx.resp.add_header (append header) - status code ok got: ''
expected: '200'
ngx-resp.t TEST 4: ngx.resp.add_header (append header) - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "fruit: apple, banana, cherry\x{0a}"
length: 29
strings begin to differ at char 1 (line 1 column 1)
ngx-resp.t TEST 4: ngx.resp.add_header (append header) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:04:57 [error] 9682\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
ngx-resp.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
ngx-resp.t TEST 7: ngx.resp.add_header (header name with control characters) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
ngx-resp.t TEST 7: ngx.resp.add_header (header name with control characters) - status code ok got: ''
expected: '200'
ngx-resp.t TEST 7: ngx.resp.add_header (header name with control characters) - header head%0D%0A ok got: ''
expected: 'value'
ngx-resp.t TEST 7: ngx.resp.add_header (header name with control characters) - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "OK\x{0a}"
length: 3
strings begin to differ at char 1 (line 1 column 1)
ngx-resp.t TEST 7: ngx.resp.add_header (header name with control characters) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:05:01 [error] 9689\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
ngx-resp.t TEST 7: ngx.resp.add_header (header name with control characters) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
ngx-resp.t TEST 7: ngx.resp.add_header (header name with control characters) - status code ok got: ''
expected: '200'
ngx-resp.t TEST 7: ngx.resp.add_header (header name with control characters) - header head%0D%0A ok got: ''
expected: 'value'
ngx-resp.t TEST 7: ngx.resp.add_header (header name with control characters) - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "OK\x{0a}"
length: 3
strings begin to differ at char 1 (line 1 column 1)
ngx-resp.t TEST 7: ngx.resp.add_header (header name with control characters) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:05:01 [error] 9689\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
ngx-resp.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
ngx-resp.t TEST 6: ngx.resp.add_header (empty table) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
ngx-resp.t TEST 6: ngx.resp.add_header (empty table) - status code ok got: ''
expected: '200'
ngx-resp.t TEST 6: ngx.resp.add_header (empty table) - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "Foo: aaa\x{0a}"
length: 9
strings begin to differ at char 1 (line 1 column 1)
ngx-resp.t TEST 6: ngx.resp.add_header (empty table) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:05:06 [error] 9694\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
ngx-resp.t TEST 6: ngx.resp.add_header (empty table) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
ngx-resp.t TEST 6: ngx.resp.add_header (empty table) - status code ok got: ''
expected: '200'
ngx-resp.t TEST 6: ngx.resp.add_header (empty table) - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "Foo: aaa\x{0a}"
length: 9
strings begin to differ at char 1 (line 1 column 1)
ngx-resp.t TEST 6: ngx.resp.add_header (empty table) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:05:06 [error] 9694\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
ocsp.t TEST 4: get OCSP responder (issuer cert not next to the leaf cert) - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
'
ocsp.t TEST 4: get OCSP responder (issuer cert not next to the leaf cert) - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
'
ocsp.t TEST 9: create OCSP request (no issuer cert in the chain) - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
'
ocsp.t TEST 9: create OCSP request (no issuer cert in the chain) - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
'
ocsp.t TEST 12: validate good OCSP response - no certs in response - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
'
ocsp.t TEST 12: validate good OCSP response - no certs in response - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:05:22 [error] 9774\#0: *101 lua entry thread aborted: runtime error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
coroutine 0:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/ngx/ssl.lua:4: in main chunk
[C]: in function 'require'
ssl_certificate_by_lua:2: in main chunk, context: ssl_certificate_by_lua*, client: unix:, server: unix:/home/ec2-user/git/lua-resty-core/t/servroot/html/nginx.sock
2020/10/26 11:05:22 [debug] 9774\#0: *101 lua request cleanup: forcible=0
'
ocsp.t TEST 12: validate good OCSP response - no certs in response - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:05:23 [error] 9774\#0: *98 SSL_do_handshake() failed (SSL: error:14094438:SSL routines:ssl3_read_bytes:tlsv1 alert internal error:SSL alert number 80), client: 127.0.0.1, server: localhost, request: \"GET /t HTTP/1.1\", host: \"localhost\"" (req 0) 2020/10/26 11:05:23 [debug] 9774\#0: *98 event timer del: 4: 7438697
2020/10/26 11:05:23 [debug] 9774\#0: *98 lua tcp socket handle connect error
2020/10/26 11:05:23 [debug] 9774\#0: *98 lua finalize socket
2020/10/26 11:05:23 [debug] 9774\#0: *98 lua http cleanup free: 05264910
2020/10/26 11:05:23 [debug] 9774\#0: *98 lua close socket connection
2020/10/26 11:05:23 [debug] 9774\#0: *98 free: 05265378, unused: 0
2020/10/26 11:05:23 [debug] 9774\#0: *98 reusable connection: 0
2020/10/26 11:05:23 [debug] 9774\#0: *98 lua tcp socket waking up the current request
2020/10/26 11:05:23 [debug] 9774\#0: *98 lua tcp operation done, resuming lua thread
'
ocsp.t TEST 12: validate good OCSP response - no certs in response - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
'
ocsp.t TEST 12: validate good OCSP response - no certs in response - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:05:23 [error] 9774\#0: *105 lua entry thread aborted: runtime error: ssl_certificate_by_lua:2: loop or previous error loading module 'ngx.ssl'" (req 1) stack traceback:
coroutine 0:
[C]: in function 'require'
ssl_certificate_by_lua:2: in main chunk, context: ssl_certificate_by_lua*, client: unix:, server: unix:/home/ec2-user/git/lua-resty-core/t/servroot/html/nginx.sock
2020/10/26 11:05:23 [debug] 9774\#0: *105 lua request cleanup: forcible=0
2020/10/26 11:05:23 [debug] 9774\#0: *105 http lua finalize fake request: 500, a:1, c:1
2020/10/26 11:05:23 [debug] 9774\#0: *105 http lua fake request count:1
2020/10/26 11:05:23 [debug] 9774\#0: *105 http lua close fake request
2020/10/26 11:05:23 [debug] 9774\#0: *105 http lua close fake http connection 05187134
'
ocsp.t TEST 12: validate good OCSP response - no certs in response - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:05:23 [error] 9774\#0: *102 SSL_do_handshake() failed (SSL: error:14094438:SSL routines:ssl3_read_bytes:tlsv1 alert internal error:SSL alert number 80), client: 127.0.0.1, server: localhost, request: \"GET /t HTTP/1.1\", host: \"localhost\"" (req 1) 2020/10/26 11:05:23 [debug] 9774\#0: *102 event timer del: 4: 7439401
2020/10/26 11:05:23 [debug] 9774\#0: *102 lua tcp socket handle connect error
2020/10/26 11:05:23 [debug] 9774\#0: *102 lua finalize socket
2020/10/26 11:05:23 [debug] 9774\#0: *102 lua http cleanup free: 052B1AA8
2020/10/26 11:05:23 [debug] 9774\#0: *102 lua close socket connection
2020/10/26 11:05:23 [debug] 9774\#0: *102 free: 052B2510, unused: 0
2020/10/26 11:05:23 [debug] 9774\#0: *102 reusable connection: 0
2020/10/26 11:05:23 [debug] 9774\#0: *102 lua tcp socket waking up the current request
2020/10/26 11:05:23 [debug] 9774\#0: *102 lua tcp operation done, resuming lua thread
'
ocsp.t TEST 5: get OCSP responder (truncated) - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
'
ocsp.t TEST 5: get OCSP responder (truncated) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:05:26 [error] 9804\#0: *133 lua entry thread aborted: runtime error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
coroutine 0:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/ngx/ssl.lua:4: in main chunk
[C]: in function 'require'
ssl_certificate_by_lua:2: in main chunk, context: ssl_certificate_by_lua*, client: unix:, server: unix:/home/ec2-user/git/lua-resty-core/t/servroot/html/nginx.sock
2020/10/26 11:05:26 [debug] 9804\#0: *133 lua request cleanup: forcible=0
'
ocsp.t TEST 5: get OCSP responder (truncated) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:05:26 [error] 9804\#0: *130 SSL_do_handshake() failed (SSL: error:14094438:SSL routines:ssl3_read_bytes:tlsv1 alert internal error:SSL alert number 80), client: 127.0.0.1, server: localhost, request: \"GET /t HTTP/1.1\", host: \"localhost\"" (req 0) 2020/10/26 11:05:26 [debug] 9804\#0: *130 event timer del: 4: 7441890
2020/10/26 11:05:26 [debug] 9804\#0: *130 lua tcp socket handle connect error
2020/10/26 11:05:26 [debug] 9804\#0: *130 lua finalize socket
2020/10/26 11:05:26 [debug] 9804\#0: *130 lua http cleanup free: 0547A4F8
2020/10/26 11:05:26 [debug] 9804\#0: *130 lua close socket connection
2020/10/26 11:05:26 [debug] 9804\#0: *130 free: 0547AF60, unused: 0
2020/10/26 11:05:26 [debug] 9804\#0: *130 reusable connection: 0
2020/10/26 11:05:26 [debug] 9804\#0: *130 lua tcp socket waking up the current request
2020/10/26 11:05:26 [debug] 9804\#0: *130 lua tcp operation done, resuming lua thread
'
ocsp.t TEST 5: get OCSP responder (truncated) - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
'
ocsp.t TEST 5: get OCSP responder (truncated) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:05:26 [error] 9804\#0: *137 lua entry thread aborted: runtime error: ssl_certificate_by_lua:2: loop or previous error loading module 'ngx.ssl'" (req 1) stack traceback:
coroutine 0:
[C]: in function 'require'
ssl_certificate_by_lua:2: in main chunk, context: ssl_certificate_by_lua*, client: unix:, server: unix:/home/ec2-user/git/lua-resty-core/t/servroot/html/nginx.sock
2020/10/26 11:05:26 [debug] 9804\#0: *137 lua request cleanup: forcible=0
2020/10/26 11:05:26 [debug] 9804\#0: *137 http lua finalize fake request: 500, a:1, c:1
2020/10/26 11:05:26 [debug] 9804\#0: *137 http lua fake request count:1
2020/10/26 11:05:26 [debug] 9804\#0: *137 http lua close fake request
2020/10/26 11:05:26 [debug] 9804\#0: *137 http lua close fake http connection 0544CC54
'
ocsp.t TEST 5: get OCSP responder (truncated) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:05:26 [error] 9804\#0: *134 SSL_do_handshake() failed (SSL: error:14094438:SSL routines:ssl3_read_bytes:tlsv1 alert internal error:SSL alert number 80), client: 127.0.0.1, server: localhost, request: \"GET /t HTTP/1.1\", host: \"localhost\"" (req 1) 2020/10/26 11:05:26 [debug] 9804\#0: *134 event timer del: 4: 7442618
2020/10/26 11:05:26 [debug] 9804\#0: *134 lua tcp socket handle connect error
2020/10/26 11:05:26 [debug] 9804\#0: *134 lua finalize socket
2020/10/26 11:05:26 [debug] 9804\#0: *134 lua http cleanup free: 054C75B8
2020/10/26 11:05:26 [debug] 9804\#0: *134 lua close socket connection
2020/10/26 11:05:26 [debug] 9804\#0: *134 free: 054C8020, unused: 0
2020/10/26 11:05:26 [debug] 9804\#0: *134 reusable connection: 0
2020/10/26 11:05:26 [debug] 9804\#0: *134 lua tcp socket waking up the current request
2020/10/26 11:05:26 [debug] 9804\#0: *134 lua tcp operation done, resuming lua thread
'
ocsp.t TEST 10: validate good OCSP response - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
'
ocsp.t TEST 10: validate good OCSP response - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:05:29 [error] 9834\#0: *165 lua entry thread aborted: runtime error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
coroutine 0:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/ngx/ssl.lua:4: in main chunk
[C]: in function 'require'
ssl_certificate_by_lua:2: in main chunk, context: ssl_certificate_by_lua*, client: unix:, server: unix:/home/ec2-user/git/lua-resty-core/t/servroot/html/nginx.sock
2020/10/26 11:05:29 [debug] 9834\#0: *165 lua request cleanup: forcible=0
'
ocsp.t TEST 10: validate good OCSP response - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:05:29 [error] 9834\#0: *162 SSL_do_handshake() failed (SSL: error:14094438:SSL routines:ssl3_read_bytes:tlsv1 alert internal error:SSL alert number 80), client: 127.0.0.1, server: localhost, request: \"GET /t HTTP/1.1\", host: \"localhost\"" (req 0) 2020/10/26 11:05:29 [debug] 9834\#0: *162 event timer del: 4: 7445138
2020/10/26 11:05:29 [debug] 9834\#0: *162 lua tcp socket handle connect error
2020/10/26 11:05:29 [debug] 9834\#0: *162 lua finalize socket
2020/10/26 11:05:29 [debug] 9834\#0: *162 lua http cleanup free: 0568FFF0
2020/10/26 11:05:29 [debug] 9834\#0: *162 lua close socket connection
2020/10/26 11:05:29 [debug] 9834\#0: *162 free: 05690A58, unused: 0
2020/10/26 11:05:29 [debug] 9834\#0: *162 reusable connection: 0
2020/10/26 11:05:29 [debug] 9834\#0: *162 lua tcp socket waking up the current request
2020/10/26 11:05:29 [debug] 9834\#0: *162 lua tcp operation done, resuming lua thread
'
ocsp.t TEST 10: validate good OCSP response - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
'
ocsp.t TEST 10: validate good OCSP response - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:05:29 [error] 9834\#0: *169 lua entry thread aborted: runtime error: ssl_certificate_by_lua:2: loop or previous error loading module 'ngx.ssl'" (req 1) stack traceback:
coroutine 0:
[C]: in function 'require'
ssl_certificate_by_lua:2: in main chunk, context: ssl_certificate_by_lua*, client: unix:, server: unix:/home/ec2-user/git/lua-resty-core/t/servroot/html/nginx.sock
2020/10/26 11:05:29 [debug] 9834\#0: *169 lua request cleanup: forcible=0
2020/10/26 11:05:29 [debug] 9834\#0: *169 http lua finalize fake request: 500, a:1, c:1
2020/10/26 11:05:29 [debug] 9834\#0: *169 http lua fake request count:1
2020/10/26 11:05:29 [debug] 9834\#0: *169 http lua close fake request
2020/10/26 11:05:29 [debug] 9834\#0: *169 http lua close fake http connection 0557047C
'
ocsp.t TEST 10: validate good OCSP response - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:05:29 [error] 9834\#0: *166 SSL_do_handshake() failed (SSL: error:14094438:SSL routines:ssl3_read_bytes:tlsv1 alert internal error:SSL alert number 80), client: 127.0.0.1, server: localhost, request: \"GET /t HTTP/1.1\", host: \"localhost\"" (req 1) 2020/10/26 11:05:29 [debug] 9834\#0: *166 event timer del: 4: 7445846
2020/10/26 11:05:29 [debug] 9834\#0: *166 lua tcp socket handle connect error
2020/10/26 11:05:29 [debug] 9834\#0: *166 lua finalize socket
2020/10/26 11:05:29 [debug] 9834\#0: *166 lua http cleanup free: 056DD130
2020/10/26 11:05:29 [debug] 9834\#0: *166 lua close socket connection
2020/10/26 11:05:29 [debug] 9834\#0: *166 free: 056DDB98, unused: 0
2020/10/26 11:05:29 [debug] 9834\#0: *166 reusable connection: 0
2020/10/26 11:05:29 [debug] 9834\#0: *166 lua tcp socket waking up the current request
2020/10/26 11:05:29 [debug] 9834\#0: *166 lua tcp operation done, resuming lua thread
'
ocsp.t TEST 11: fail to validate OCSP response - no issuer cert - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
'
ocsp.t TEST 11: fail to validate OCSP response - no issuer cert - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
'
ocsp.t TEST 16: good status req from client - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
'
ocsp.t TEST 16: good status req from client - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:05:35 [error] 9894\#0: *229 lua entry thread aborted: runtime error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
coroutine 0:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/ngx/ssl.lua:4: in main chunk
[C]: in function 'require'
ssl_certificate_by_lua:2: in main chunk, context: ssl_certificate_by_lua*, client: 127.0.0.1, server: 127.0.0.2:32749
2020/10/26 11:05:35 [debug] 9894\#0: *229 lua request cleanup: forcible=0
'
ocsp.t TEST 16: good status req from client - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:05:36 [error] 9894\#0: *226 SSL_do_handshake() failed (SSL: error:14094438:SSL routines:ssl3_read_bytes:tlsv1 alert internal error:SSL alert number 80), client: 127.0.0.1, server: localhost, request: \"GET /t HTTP/1.1\", host: \"localhost\"" (req 0) 2020/10/26 11:05:36 [debug] 9894\#0: *226 event timer del: 4: 7451658
2020/10/26 11:05:36 [debug] 9894\#0: *226 lua tcp socket handle connect error
2020/10/26 11:05:36 [debug] 9894\#0: *226 lua finalize socket
2020/10/26 11:05:36 [debug] 9894\#0: *226 lua http cleanup free: 05ADAC58
2020/10/26 11:05:36 [debug] 9894\#0: *226 lua close socket connection
2020/10/26 11:05:36 [debug] 9894\#0: *226 free: 0596C5E0, unused: 0
2020/10/26 11:05:36 [debug] 9894\#0: *226 reusable connection: 0
2020/10/26 11:05:36 [debug] 9894\#0: *226 lua tcp socket waking up the current request
2020/10/26 11:05:36 [debug] 9894\#0: *226 lua tcp operation done, resuming lua thread
'
ocsp.t TEST 16: good status req from client - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
'
ocsp.t TEST 16: good status req from client - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:05:36 [error] 9894\#0: *233 lua entry thread aborted: runtime error: ssl_certificate_by_lua:2: loop or previous error loading module 'ngx.ssl'" (req 1) stack traceback:
coroutine 0:
[C]: in function 'require'
ssl_certificate_by_lua:2: in main chunk, context: ssl_certificate_by_lua*, client: 127.0.0.1, server: 127.0.0.2:32749
2020/10/26 11:05:36 [debug] 9894\#0: *233 lua request cleanup: forcible=0
2020/10/26 11:05:36 [debug] 9894\#0: *233 http lua finalize fake request: 500, a:1, c:1
2020/10/26 11:05:36 [debug] 9894\#0: *233 http lua fake request count:1
2020/10/26 11:05:36 [debug] 9894\#0: *233 http lua close fake request
2020/10/26 11:05:36 [debug] 9894\#0: *233 http lua close fake http connection 0595B264
'
ocsp.t TEST 16: good status req from client - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:05:36 [error] 9894\#0: *230 SSL_do_handshake() failed (SSL: error:14094438:SSL routines:ssl3_read_bytes:tlsv1 alert internal error:SSL alert number 80), client: 127.0.0.1, server: localhost, request: \"GET /t HTTP/1.1\", host: \"localhost\"" (req 1) 2020/10/26 11:05:36 [debug] 9894\#0: *230 event timer del: 4: 7452310
2020/10/26 11:05:36 [debug] 9894\#0: *230 lua tcp socket handle connect error
2020/10/26 11:05:36 [debug] 9894\#0: *230 lua finalize socket
2020/10/26 11:05:36 [debug] 9894\#0: *230 lua http cleanup free: 05B030A8
2020/10/26 11:05:36 [debug] 9894\#0: *230 lua close socket connection
2020/10/26 11:05:36 [debug] 9894\#0: *230 free: 05B03B10, unused: 0
2020/10/26 11:05:36 [debug] 9894\#0: *230 reusable connection: 0
2020/10/26 11:05:36 [debug] 9894\#0: *230 lua tcp socket waking up the current request
2020/10/26 11:05:36 [debug] 9894\#0: *230 lua tcp operation done, resuming lua thread
'
ocsp.t TEST 2: get OCSP responder (not found) - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
'
ocsp.t TEST 2: get OCSP responder (not found) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:05:39 [error] 9924\#0: *261 lua entry thread aborted: runtime error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
coroutine 0:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/ngx/ssl.lua:4: in main chunk
[C]: in function 'require'
ssl_certificate_by_lua:2: in main chunk, context: ssl_certificate_by_lua*, client: unix:, server: unix:/home/ec2-user/git/lua-resty-core/t/servroot/html/nginx.sock
2020/10/26 11:05:39 [debug] 9924\#0: *261 lua request cleanup: forcible=0
'
ocsp.t TEST 2: get OCSP responder (not found) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:05:39 [error] 9924\#0: *258 SSL_do_handshake() failed (SSL: error:14094438:SSL routines:ssl3_read_bytes:tlsv1 alert internal error:SSL alert number 80), client: 127.0.0.1, server: localhost, request: \"GET /t HTTP/1.1\", host: \"localhost\"" (req 0) 2020/10/26 11:05:39 [debug] 9924\#0: *258 event timer del: 4: 7454814
2020/10/26 11:05:39 [debug] 9924\#0: *258 lua tcp socket handle connect error
2020/10/26 11:05:39 [debug] 9924\#0: *258 lua finalize socket
2020/10/26 11:05:39 [debug] 9924\#0: *258 lua http cleanup free: 05CD0848
2020/10/26 11:05:39 [debug] 9924\#0: *258 lua close socket connection
2020/10/26 11:05:39 [debug] 9924\#0: *258 free: 05CD12B0, unused: 0
2020/10/26 11:05:39 [debug] 9924\#0: *258 reusable connection: 0
2020/10/26 11:05:39 [debug] 9924\#0: *258 lua tcp socket waking up the current request
2020/10/26 11:05:39 [debug] 9924\#0: *258 lua tcp operation done, resuming lua thread
'
ocsp.t TEST 2: get OCSP responder (not found) - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
'
ocsp.t TEST 2: get OCSP responder (not found) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:05:39 [error] 9924\#0: *265 lua entry thread aborted: runtime error: ssl_certificate_by_lua:2: loop or previous error loading module 'ngx.ssl'" (req 1) stack traceback:
coroutine 0:
[C]: in function 'require'
ssl_certificate_by_lua:2: in main chunk, context: ssl_certificate_by_lua*, client: unix:, server: unix:/home/ec2-user/git/lua-resty-core/t/servroot/html/nginx.sock
2020/10/26 11:05:39 [debug] 9924\#0: *265 lua request cleanup: forcible=0
2020/10/26 11:05:39 [debug] 9924\#0: *265 http lua finalize fake request: 500, a:1, c:1
2020/10/26 11:05:39 [debug] 9924\#0: *265 http lua fake request count:1
2020/10/26 11:05:39 [debug] 9924\#0: *265 http lua close fake request
2020/10/26 11:05:39 [debug] 9924\#0: *265 http lua close fake http connection 05CA2FA4
'
ocsp.t TEST 2: get OCSP responder (not found) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:05:39 [error] 9924\#0: *262 SSL_do_handshake() failed (SSL: error:14094438:SSL routines:ssl3_read_bytes:tlsv1 alert internal error:SSL alert number 80), client: 127.0.0.1, server: localhost, request: \"GET /t HTTP/1.1\", host: \"localhost\"" (req 1) 2020/10/26 11:05:39 [debug] 9924\#0: *262 event timer del: 4: 7455518
2020/10/26 11:05:39 [debug] 9924\#0: *262 lua tcp socket handle connect error
2020/10/26 11:05:39 [debug] 9924\#0: *262 lua finalize socket
2020/10/26 11:05:39 [debug] 9924\#0: *262 lua http cleanup free: 05D1D870
2020/10/26 11:05:39 [debug] 9924\#0: *262 lua close socket connection
2020/10/26 11:05:39 [debug] 9924\#0: *262 free: 05D1E2D8, unused: 0
2020/10/26 11:05:39 [debug] 9924\#0: *262 reusable connection: 0
2020/10/26 11:05:39 [debug] 9924\#0: *262 lua tcp socket waking up the current request
2020/10/26 11:05:39 [debug] 9924\#0: *262 lua tcp operation done, resuming lua thread
'
ocsp.t TEST 7: create OCSP request (buffer too small) - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
'
ocsp.t TEST 7: create OCSP request (buffer too small) - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
'
ocsp.t TEST 17: no status req from client - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
'
ocsp.t TEST 17: no status req from client - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:05:45 [error] 9984\#0: *325 lua entry thread aborted: runtime error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
coroutine 0:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/ngx/ssl.lua:4: in main chunk
[C]: in function 'require'
ssl_certificate_by_lua:2: in main chunk, context: ssl_certificate_by_lua*, client: 127.0.0.1, server: 127.0.0.2:48399
2020/10/26 11:05:45 [debug] 9984\#0: *325 lua request cleanup: forcible=0
'
ocsp.t TEST 17: no status req from client - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:05:45 [error] 9984\#0: *322 SSL_do_handshake() failed (SSL: error:14094438:SSL routines:ssl3_read_bytes:tlsv1 alert internal error:SSL alert number 80), client: 127.0.0.1, server: localhost, request: \"GET /t HTTP/1.1\", host: \"localhost\"" (req 0) 2020/10/26 11:05:45 [debug] 9984\#0: *322 event timer del: 4: 7461330
2020/10/26 11:05:45 [debug] 9984\#0: *322 lua tcp socket handle connect error
2020/10/26 11:05:45 [debug] 9984\#0: *322 lua finalize socket
2020/10/26 11:05:45 [debug] 9984\#0: *322 lua http cleanup free: 04A2CBD0
2020/10/26 11:05:45 [debug] 9984\#0: *322 lua close socket connection
2020/10/26 11:05:45 [debug] 9984\#0: *322 free: 04A2D600, unused: 0
2020/10/26 11:05:45 [debug] 9984\#0: *322 reusable connection: 0
2020/10/26 11:05:45 [debug] 9984\#0: *322 lua tcp socket waking up the current request
2020/10/26 11:05:45 [debug] 9984\#0: *322 lua tcp operation done, resuming lua thread
'
ocsp.t TEST 17: no status req from client - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
'
ocsp.t TEST 17: no status req from client - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:05:46 [error] 9984\#0: *329 lua entry thread aborted: runtime error: ssl_certificate_by_lua:2: loop or previous error loading module 'ngx.ssl'" (req 1) stack traceback:
coroutine 0:
[C]: in function 'require'
ssl_certificate_by_lua:2: in main chunk, context: ssl_certificate_by_lua*, client: 127.0.0.1, server: 127.0.0.2:48399
2020/10/26 11:05:46 [debug] 9984\#0: *329 lua request cleanup: forcible=0
2020/10/26 11:05:46 [debug] 9984\#0: *329 http lua finalize fake request: 500, a:1, c:1
2020/10/26 11:05:46 [debug] 9984\#0: *329 http lua fake request count:1
2020/10/26 11:05:46 [debug] 9984\#0: *329 http lua close fake request
2020/10/26 11:05:46 [debug] 9984\#0: *329 http lua close fake http connection 049C423C
'
ocsp.t TEST 17: no status req from client - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:05:46 [error] 9984\#0: *326 SSL_do_handshake() failed (SSL: error:14094438:SSL routines:ssl3_read_bytes:tlsv1 alert internal error:SSL alert number 80), client: 127.0.0.1, server: localhost, request: \"GET /t HTTP/1.1\", host: \"localhost\"" (req 1) 2020/10/26 11:05:46 [debug] 9984\#0: *326 event timer del: 4: 7461982
2020/10/26 11:05:46 [debug] 9984\#0: *326 lua tcp socket handle connect error
2020/10/26 11:05:46 [debug] 9984\#0: *326 lua finalize socket
2020/10/26 11:05:46 [debug] 9984\#0: *326 lua http cleanup free: 04B161B8
2020/10/26 11:05:46 [debug] 9984\#0: *326 lua close socket connection
2020/10/26 11:05:46 [debug] 9984\#0: *326 free: 04AD1018, unused: 0
2020/10/26 11:05:46 [debug] 9984\#0: *326 reusable connection: 0
2020/10/26 11:05:46 [debug] 9984\#0: *326 lua tcp socket waking up the current request
2020/10/26 11:05:46 [debug] 9984\#0: *326 lua tcp operation done, resuming lua thread
'
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 - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
'
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 - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
'
ocsp.t TEST 1: get OCSP responder (good case) - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
'
ocsp.t TEST 1: get OCSP responder (good case) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:05:55 [error] 10074\#0: *421 lua entry thread aborted: runtime error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
coroutine 0:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/ngx/ssl.lua:4: in main chunk
[C]: in function 'require'
ssl_certificate_by_lua:2: in main chunk, context: ssl_certificate_by_lua*, client: unix:, server: unix:/home/ec2-user/git/lua-resty-core/t/servroot/html/nginx.sock
2020/10/26 11:05:55 [debug] 10074\#0: *421 lua request cleanup: forcible=0
'
ocsp.t TEST 1: get OCSP responder (good case) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:05:55 [error] 10074\#0: *418 SSL_do_handshake() failed (SSL: error:14094438:SSL routines:ssl3_read_bytes:tlsv1 alert internal error:SSL alert number 80), client: 127.0.0.1, server: localhost, request: \"GET /t HTTP/1.1\", host: \"localhost\"" (req 0) 2020/10/26 11:05:55 [debug] 10074\#0: *418 event timer del: 4: 7470995
2020/10/26 11:05:55 [debug] 10074\#0: *418 lua tcp socket handle connect error
2020/10/26 11:05:55 [debug] 10074\#0: *418 lua finalize socket
2020/10/26 11:05:55 [debug] 10074\#0: *418 lua http cleanup free: 04C68078
2020/10/26 11:05:55 [debug] 10074\#0: *418 lua close socket connection
2020/10/26 11:05:55 [debug] 10074\#0: *418 free: 04C7F9A8, unused: 0
2020/10/26 11:05:55 [debug] 10074\#0: *418 reusable connection: 0
2020/10/26 11:05:55 [debug] 10074\#0: *418 lua tcp socket waking up the current request
2020/10/26 11:05:55 [debug] 10074\#0: *418 lua tcp operation done, resuming lua thread
'
ocsp.t TEST 1: get OCSP responder (good case) - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
'
ocsp.t TEST 1: get OCSP responder (good case) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:05:55 [error] 10074\#0: *425 lua entry thread aborted: runtime error: ssl_certificate_by_lua:2: loop or previous error loading module 'ngx.ssl'" (req 1) stack traceback:
coroutine 0:
[C]: in function 'require'
ssl_certificate_by_lua:2: in main chunk, context: ssl_certificate_by_lua*, client: unix:, server: unix:/home/ec2-user/git/lua-resty-core/t/servroot/html/nginx.sock
2020/10/26 11:05:55 [debug] 10074\#0: *425 lua request cleanup: forcible=0
2020/10/26 11:05:55 [debug] 10074\#0: *425 http lua finalize fake request: 500, a:1, c:1
2020/10/26 11:05:55 [debug] 10074\#0: *425 http lua fake request count:1
2020/10/26 11:05:55 [debug] 10074\#0: *425 http lua close fake request
2020/10/26 11:05:55 [debug] 10074\#0: *425 http lua close fake http connection 049E7B0C
'
ocsp.t TEST 1: get OCSP responder (good case) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:05:55 [error] 10074\#0: *422 SSL_do_handshake() failed (SSL: error:14094438:SSL routines:ssl3_read_bytes:tlsv1 alert internal error:SSL alert number 80), client: 127.0.0.1, server: localhost, request: \"GET /t HTTP/1.1\", host: \"localhost\"" (req 1) 2020/10/26 11:05:55 [debug] 10074\#0: *422 event timer del: 4: 7471707
2020/10/26 11:05:55 [debug] 10074\#0: *422 lua tcp socket handle connect error
2020/10/26 11:05:55 [debug] 10074\#0: *422 lua finalize socket
2020/10/26 11:05:55 [debug] 10074\#0: *422 lua http cleanup free: 0508C430
2020/10/26 11:05:55 [debug] 10074\#0: *422 lua close socket connection
2020/10/26 11:05:55 [debug] 10074\#0: *422 free: 0508CE98, unused: 0
2020/10/26 11:05:55 [debug] 10074\#0: *422 reusable connection: 0
2020/10/26 11:05:55 [debug] 10074\#0: *422 lua tcp socket waking up the current request
2020/10/26 11:05:55 [debug] 10074\#0: *422 lua tcp operation done, resuming lua thread
'
ocsp.t TEST 13: validate OCSP response - OCSP response signed by an unknown cert and the OCSP response contains the unknown cert - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
'
ocsp.t TEST 13: validate OCSP response - OCSP response signed by an unknown cert and the OCSP response contains the unknown cert - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:05:58 [error] 10104\#0: *453 lua entry thread aborted: runtime error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
coroutine 0:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/ngx/ssl.lua:4: in main chunk
[C]: in function 'require'
ssl_certificate_by_lua:2: in main chunk, context: ssl_certificate_by_lua*, client: unix:, server: unix:/home/ec2-user/git/lua-resty-core/t/servroot/html/nginx.sock
2020/10/26 11:05:58 [debug] 10104\#0: *453 lua request cleanup: forcible=0
'
ocsp.t TEST 13: validate OCSP response - OCSP response signed by an unknown cert and the OCSP response contains the unknown cert - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:05:58 [error] 10104\#0: *450 SSL_do_handshake() failed (SSL: error:14094438:SSL routines:ssl3_read_bytes:tlsv1 alert internal error:SSL alert number 80), client: 127.0.0.1, server: localhost, request: \"GET /t HTTP/1.1\", host: \"localhost\"" (req 0) 2020/10/26 11:05:58 [debug] 10104\#0: *450 event timer del: 4: 7474231
2020/10/26 11:05:58 [debug] 10104\#0: *450 lua tcp socket handle connect error
2020/10/26 11:05:58 [debug] 10104\#0: *450 lua finalize socket
2020/10/26 11:05:58 [debug] 10104\#0: *450 lua http cleanup free: 0527D868
2020/10/26 11:05:58 [debug] 10104\#0: *450 lua close socket connection
2020/10/26 11:05:58 [debug] 10104\#0: *450 free: 052D74E0, unused: 0
2020/10/26 11:05:58 [debug] 10104\#0: *450 reusable connection: 0
2020/10/26 11:05:58 [debug] 10104\#0: *450 lua tcp socket waking up the current request
2020/10/26 11:05:58 [debug] 10104\#0: *450 lua tcp operation done, resuming lua thread
'
ocsp.t TEST 13: validate OCSP response - OCSP response signed by an unknown cert and the OCSP response contains the unknown cert - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
'
ocsp.t TEST 13: validate OCSP response - OCSP response signed by an unknown cert and the OCSP response contains the unknown cert - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:05:58 [error] 10104\#0: *457 lua entry thread aborted: runtime error: ssl_certificate_by_lua:2: loop or previous error loading module 'ngx.ssl'" (req 1) stack traceback:
coroutine 0:
[C]: in function 'require'
ssl_certificate_by_lua:2: in main chunk, context: ssl_certificate_by_lua*, client: unix:, server: unix:/home/ec2-user/git/lua-resty-core/t/servroot/html/nginx.sock
2020/10/26 11:05:58 [debug] 10104\#0: *457 lua request cleanup: forcible=0
2020/10/26 11:05:58 [debug] 10104\#0: *457 http lua finalize fake request: 500, a:1, c:1
2020/10/26 11:05:58 [debug] 10104\#0: *457 http lua fake request count:1
2020/10/26 11:05:58 [debug] 10104\#0: *457 http lua close fake request
2020/10/26 11:05:58 [debug] 10104\#0: *457 http lua close fake http connection 04D6E41C
'
ocsp.t TEST 13: validate OCSP response - OCSP response signed by an unknown cert and the OCSP response contains the unknown cert - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:05:58 [error] 10104\#0: *454 SSL_do_handshake() failed (SSL: error:14094438:SSL routines:ssl3_read_bytes:tlsv1 alert internal error:SSL alert number 80), client: 127.0.0.1, server: localhost, request: \"GET /t HTTP/1.1\", host: \"localhost\"" (req 1) 2020/10/26 11:05:58 [debug] 10104\#0: *454 event timer del: 4: 7474939
2020/10/26 11:05:58 [debug] 10104\#0: *454 lua tcp socket handle connect error
2020/10/26 11:05:58 [debug] 10104\#0: *454 lua finalize socket
2020/10/26 11:05:58 [debug] 10104\#0: *454 lua http cleanup free: 05297AB8
2020/10/26 11:05:58 [debug] 10104\#0: *454 lua close socket connection
2020/10/26 11:05:58 [debug] 10104\#0: *454 free: 0528E588, unused: 0
2020/10/26 11:05:58 [debug] 10104\#0: *454 reusable connection: 0
2020/10/26 11:05:58 [debug] 10104\#0: *454 lua tcp socket waking up the current request
2020/10/26 11:05:58 [debug] 10104\#0: *454 lua tcp operation done, resuming lua thread
'
ocsp.t TEST 3: get OCSP responder (no issuer cert at all) - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
'
ocsp.t TEST 3: get OCSP responder (no issuer cert at all) - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
'
ocsp.t TEST 6: create OCSP request (good) - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
'
ocsp.t TEST 6: create OCSP request (good) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:06:04 [error] 10164\#0: *517 lua entry thread aborted: runtime error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
coroutine 0:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/ngx/ssl.lua:4: in main chunk
[C]: in function 'require'
ssl_certificate_by_lua:2: in main chunk, context: ssl_certificate_by_lua*, client: unix:, server: unix:/home/ec2-user/git/lua-resty-core/t/servroot/html/nginx.sock
2020/10/26 11:06:04 [debug] 10164\#0: *517 lua request cleanup: forcible=0
'
ocsp.t TEST 6: create OCSP request (good) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:06:05 [error] 10164\#0: *514 SSL_do_handshake() failed (SSL: error:14094438:SSL routines:ssl3_read_bytes:tlsv1 alert internal error:SSL alert number 80), client: 127.0.0.1, server: localhost, request: \"GET /t HTTP/1.1\", host: \"localhost\"" (req 0) 2020/10/26 11:06:05 [debug] 10164\#0: *514 event timer del: 4: 7480727
2020/10/26 11:06:05 [debug] 10164\#0: *514 lua tcp socket handle connect error
2020/10/26 11:06:05 [debug] 10164\#0: *514 lua finalize socket
2020/10/26 11:06:05 [debug] 10164\#0: *514 lua http cleanup free: 0529F918
2020/10/26 11:06:05 [debug] 10164\#0: *514 lua close socket connection
2020/10/26 11:06:05 [debug] 10164\#0: *514 free: 052A9990, unused: 0
2020/10/26 11:06:05 [debug] 10164\#0: *514 reusable connection: 0
2020/10/26 11:06:05 [debug] 10164\#0: *514 lua tcp socket waking up the current request
2020/10/26 11:06:05 [debug] 10164\#0: *514 lua tcp operation done, resuming lua thread
'
ocsp.t TEST 6: create OCSP request (good) - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
'
ocsp.t TEST 6: create OCSP request (good) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:06:05 [error] 10164\#0: *521 lua entry thread aborted: runtime error: ssl_certificate_by_lua:2: loop or previous error loading module 'ngx.ssl'" (req 1) stack traceback:
coroutine 0:
[C]: in function 'require'
ssl_certificate_by_lua:2: in main chunk, context: ssl_certificate_by_lua*, client: unix:, server: unix:/home/ec2-user/git/lua-resty-core/t/servroot/html/nginx.sock
2020/10/26 11:06:05 [debug] 10164\#0: *521 lua request cleanup: forcible=0
2020/10/26 11:06:05 [debug] 10164\#0: *521 http lua finalize fake request: 500, a:1, c:1
2020/10/26 11:06:05 [debug] 10164\#0: *521 http lua fake request count:1
2020/10/26 11:06:05 [debug] 10164\#0: *521 http lua close fake request
2020/10/26 11:06:05 [debug] 10164\#0: *521 http lua close fake http connection 0545335C
'
ocsp.t TEST 6: create OCSP request (good) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:06:05 [error] 10164\#0: *518 SSL_do_handshake() failed (SSL: error:14094438:SSL routines:ssl3_read_bytes:tlsv1 alert internal error:SSL alert number 80), client: 127.0.0.1, server: localhost, request: \"GET /t HTTP/1.1\", host: \"localhost\"" (req 1) 2020/10/26 11:06:05 [debug] 10164\#0: *518 event timer del: 4: 7481435
2020/10/26 11:06:05 [debug] 10164\#0: *518 lua tcp socket handle connect error
2020/10/26 11:06:05 [debug] 10164\#0: *518 lua finalize socket
2020/10/26 11:06:05 [debug] 10164\#0: *518 lua http cleanup free: 056CE400
2020/10/26 11:06:05 [debug] 10164\#0: *518 lua close socket connection
2020/10/26 11:06:05 [debug] 10164\#0: *518 free: 056DB928, unused: 0
2020/10/26 11:06:05 [debug] 10164\#0: *518 reusable connection: 0
2020/10/26 11:06:05 [debug] 10164\#0: *518 lua tcp socket waking up the current request
2020/10/26 11:06:05 [debug] 10164\#0: *518 lua tcp operation done, resuming lua thread
'
os-getenv-hup.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
os-getenv-hup.t TEST 1: env directive explicit value is visible within init_by_lua* - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
os-getenv-hup.t TEST 1: env directive explicit value is visible within init_by_lua* - status code ok got: ''
expected: '200'
os-getenv-hup.t TEST 1: env directive explicit value is visible within init_by_lua* - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "old\x{0a}"
length: 4
strings begin to differ at char 1 (line 1 column 1)
os-getenv-hup.t TEST 1: env directive explicit value is visible within init_by_lua* - pattern "[notice]" should match a line in error.log (req 0)
os-getenv-hup.t TEST 1: env directive explicit value is visible within init_by_lua* - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:06:07 [error] 10192\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
os-getenv-hup.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
os-getenv-hup.t TEST 2: HUP reload changes env value (1/3) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
os-getenv-hup.t TEST 2: HUP reload changes env value (1/3) - status code ok got: ''
expected: '200'
os-getenv-hup.t TEST 2: HUP reload changes env value (1/3) - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "new\x{0a}"
length: 4
strings begin to differ at char 1 (line 1 column 1)
os-getenv-hup.t TEST 2: HUP reload changes env value (1/3) - pattern "(?^:\[notice\] .*? \(SIGHUP\) received)" should match a line in error.log (req 0)
os-getenv-hup.t TEST 2: HUP reload changes env value (1/3) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:06:11 [error] 10196\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
os-getenv-hup.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
os-getenv-hup.t TEST 3: HUP reload changes env value (2/3) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
os-getenv-hup.t TEST 3: HUP reload changes env value (2/3) - status code ok got: ''
expected: '200'
os-getenv-hup.t TEST 3: HUP reload changes env value (2/3) - response_body_like - response is expected () ''
doesn't match '(?^s:\s)'
os-getenv-hup.t TEST 3: HUP reload changes env value (2/3) - pattern "(?^:\[notice\] .*? \(SIGHUP\) received)" should match a line in error.log (req 0)
os-getenv-hup.t TEST 3: HUP reload changes env value (2/3) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:06:14 [error] 10200\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
os-getenv-hup.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
os-getenv-hup.t TEST 4: HUP reload changes env value (3/3) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
os-getenv-hup.t TEST 4: HUP reload changes env value (3/3) - status code ok got: ''
expected: '200'
os-getenv-hup.t TEST 4: HUP reload changes env value (3/3) - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "nil\x{0a}"
length: 4
strings begin to differ at char 1 (line 1 column 1)
os-getenv-hup.t TEST 4: HUP reload changes env value (3/3) - pattern "(?^:\[notice\] .*? \(SIGHUP\) received)" should match a line in error.log (req 0)
os-getenv-hup.t TEST 4: HUP reload changes env value (3/3) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:06:18 [error] 10204\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
os-getenv-hup.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
os-getenv-hup.t TEST 5: HUP reload changes visible environment variable (1/2) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
os-getenv-hup.t TEST 5: HUP reload changes visible environment variable (1/2) - status code ok got: ''
expected: '200'
os-getenv-hup.t TEST 5: HUP reload changes visible environment variable (1/2) - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "old\x{0a}"
length: 4
strings begin to differ at char 1 (line 1 column 1)
os-getenv-hup.t TEST 5: HUP reload changes visible environment variable (1/2) - pattern "(?^:\[notice\] .*? \(SIGHUP\) received)" should match a line in error.log (req 0)
os-getenv-hup.t TEST 5: HUP reload changes visible environment variable (1/2) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:06:21 [error] 10208\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
os-getenv-hup.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
os-getenv-hup.t TEST 6: HUP reload changes visible environment variable (2/2) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
os-getenv-hup.t TEST 6: HUP reload changes visible environment variable (2/2) - status code ok got: ''
expected: '200'
os-getenv-hup.t TEST 6: HUP reload changes visible environment variable (2/2) - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "new\x{0a}"
length: 4
strings begin to differ at char 1 (line 1 column 1)
os-getenv-hup.t TEST 6: HUP reload changes visible environment variable (2/2) - pattern "(?^:\[notice\] .*? \(SIGHUP\) received)" should match a line in error.log (req 0)
os-getenv-hup.t TEST 6: HUP reload changes visible environment variable (2/2) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:06:25 [error] 10212\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
os-getenv.t TEST 8: os.getenv() overwrite is reverted in worker phases - response_body - response is expected (repeated req 0, req 0) got: "FOO=hello\x{0a}os.getenv() overwrite was not reverted\x{0a}"
length: 49
expected: "FOO=hello\x{0a}os.getenv() overwrite was reverted\x{0a}"
length: 45
strings begin to differ at char 37 (line 2 column 27)
os-getenv.t TEST 1: env directive explicit value is visible within init_by_lua* - failed to reload configuration after 200 failed test requests
os-getenv.t TEST 1: env directive explicit value is visible within init_by_lua* - response_body - response is expected (repeated req 0, req 0) got: "FOO=hello\x{0a}os.getenv() overwrite was not reverted\x{0a}"
length: 49
expected: "hello\x{0a}hello\x{0a}"
length: 12
strings begin to differ at char 1 (line 1 column 1)
os-getenv.t TEST 1: env directive explicit value is visible within init_by_lua* - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:06:30 [error] 10219\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
init_by_lua:2: in main chunk
'
os-getenv.t TEST 2: env directive explicit value is visible within init_by_lua* with lua_shared_dict - failed to reload configuration after 200 failed test requests
os-getenv.t TEST 2: env directive explicit value is visible within init_by_lua* with lua_shared_dict - response_body - response is expected (repeated req 0, req 0) got: "FOO=hello\x{0a}os.getenv() overwrite was not reverted\x{0a}"
length: 49
expected: "hello\x{0a}hello\x{0a}"
length: 12
strings begin to differ at char 1 (line 1 column 1)
os-getenv.t TEST 2: env directive explicit value is visible within init_by_lua* with lua_shared_dict - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:09:57 [error] 10219\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
init_by_lua:2: in main chunk
'
os-getenv.t TEST 3: env directive explicit value is case-sensitive within init_by_lua* - failed to reload configuration after 200 failed test requests
os-getenv.t TEST 3: env directive explicit value is case-sensitive within init_by_lua* - response_body - response is expected (repeated req 0, req 0) got: "FOO=hello\x{0a}os.getenv() overwrite was not reverted\x{0a}"
length: 49
expected: "nil\x{0a}nil\x{0a}"
length: 8
strings begin to differ at char 1 (line 1 column 1)
os-getenv.t TEST 3: env directive explicit value is case-sensitive within init_by_lua* - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:13:24 [error] 10219\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
init_by_lua:2: in main chunk
'
os-getenv.t TEST 6: env explicit set vs environment set - failed to reload configuration after 200 failed test requests
os-getenv.t TEST 6: env explicit set vs environment set - response_body - response is expected (repeated req 0, req 0) got: "FOO=hello\x{0a}os.getenv() overwrite was not reverted\x{0a}"
length: 49
expected: "goodbye\x{0a}goodbye\x{0a}"
length: 16
strings begin to differ at char 1 (line 1 column 1)
os-getenv.t TEST 6: env explicit set vs environment set - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:16:52 [error] 10219\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
init_by_lua:2: in main chunk
'
os-getenv.t TEST 7: env directive with empty value - failed to reload configuration after 200 failed test requests
os-getenv.t TEST 7: env directive with empty value - response_body_like - response is expected (FOO=hello os.getenv() overwrite was not reverted) 'FOO=hello
os.getenv() overwrite was not reverted
'
doesn't match '(?^s:in init:\s+
in content:\s+
)'
os-getenv.t TEST 7: env directive with empty value - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:20:20 [error] 10219\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
init_by_lua:2: in main chunk
'
os-getenv.t TEST 9: os.getenv() can be localized after loading resty.core - failed to reload configuration after 200 failed test requests
os-getenv.t TEST 9: os.getenv() can be localized after loading resty.core - response_body - response is expected (repeated req 0, req 0) got: "FOO=hello\x{0a}os.getenv() overwrite was not reverted\x{0a}"
length: 49
expected: "os.getenv() overwrite was reverted\x{0a}"
length: 35
strings begin to differ at char 1 (line 1 column 1)
os-getenv.t TEST 9: os.getenv() can be localized after loading resty.core - grep_error_log_out (req 0) got: ""
length: 0
expected: "FOO: hello\x{0a}FOO: hello\x{0a}FOO: hello\x{0a}"
length: 33
strings begin to differ at char 1 (line 1 column 1)
os-getenv.t TEST 9: os.getenv() can be localized after loading resty.core - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:23:48 [error] 10219\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
init_by_lua:10: in main chunk
'
os-getenv.t TEST 4: env directives with no value are ignored - failed to reload configuration after 200 failed test requests
os-getenv.t TEST 4: env directives with no value are ignored - response_body - response is expected (repeated req 0, req 0) got: "FOO=hello\x{0a}os.getenv() overwrite was not reverted\x{0a}"
length: 49
expected: "nil\x{0a}nil\x{0a}"
length: 8
strings begin to differ at char 1 (line 1 column 1)
os-getenv.t TEST 4: env directives with no value are ignored - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:27:16 [error] 10219\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
init_by_lua:2: in main chunk
'
os-getenv.t TEST 5: env is visible from environment - failed to reload configuration after 200 failed test requests
os-getenv.t TEST 5: env is visible from environment - response_body - response is expected (repeated req 0, req 0) got: "FOO=hello\x{0a}os.getenv() overwrite was not reverted\x{0a}"
length: 49
expected: "world\x{0a}world\x{0a}"
length: 12
strings begin to differ at char 1 (line 1 column 1)
os-getenv.t TEST 5: env is visible from environment - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:30:44 [error] 10219\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
init_by_lua:2: in main chunk
'
phase.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
phase.t TEST 1: get_phase - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
phase.t TEST 1: get_phase - status code ok got: ''
expected: '200'
phase.t TEST 1: get_phase - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "content\x{0a}"
length: 8
strings begin to differ at char 1 (line 1 column 1)
phase.t TEST 1: get_phase - pattern "(?^:\[TRACE\s+\d+\s+content_by_lua\(nginx\.conf:\d+\):3 loop\])" should match a line in error.log (req 0)
phase.t TEST 1: get_phase - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:34:14 [error] 11890\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
phase.t TEST 1: get_phase - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
phase.t TEST 1: get_phase - status code ok got: ''
expected: '200'
phase.t TEST 1: get_phase - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "content\x{0a}"
length: 8
strings begin to differ at char 1 (line 1 column 1)
phase.t TEST 1: get_phase - pattern "(?^:\[TRACE\s+\d+\s+content_by_lua\(nginx\.conf:\d+\):3 loop\])" should match a line in error.log (req 1)
phase.t TEST 1: get_phase - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:34:14 [error] 11890\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
pipe-cpu-affinity.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
pipe-cpu-affinity.t TEST 1: reset the cpu affinity in the sub-process - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe-cpu-affinity.t TEST 1: reset the cpu affinity in the sub-process - status code ok got: ''
expected: '200'
pipe-cpu-affinity.t TEST 1: reset the cpu affinity in the sub-process - response_body_like - response is expected () ''
doesn't match '(?^s:(ok|pid \d+'s current affinity list: 0[-,]\d+)
)'
pipe-cpu-affinity.t TEST 1: reset the cpu affinity in the sub-process - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:34:19 [error] 11898\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
pipe-cpu-affinity.t TEST 1: reset the cpu affinity in the sub-process - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe-cpu-affinity.t TEST 1: reset the cpu affinity in the sub-process - status code ok got: ''
expected: '200'
pipe-cpu-affinity.t TEST 1: reset the cpu affinity in the sub-process - response_body_like - response is expected () ''
doesn't match '(?^s:(ok|pid \d+'s current affinity list: 0[-,]\d+)
)'
pipe-stderr.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
pipe-stderr.t TEST 3: read stderr, bytes length is zero - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe-stderr.t TEST 3: read stderr, bytes length is zero - status code ok got: ''
expected: '200'
pipe-stderr.t TEST 3: read stderr, bytes length is zero - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'data:
'
pipe-stderr.t TEST 3: read stderr, bytes length is zero - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:34:23 [error] 11906\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
pipe-stderr.t TEST 3: read stderr, bytes length is zero - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe-stderr.t TEST 3: read stderr, bytes length is zero - status code ok got: ''
expected: '200'
pipe-stderr.t TEST 3: read stderr, bytes length is zero - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'data:
'
pipe-stderr.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
pipe-stderr.t TEST 5: read stderr, bytes length is more than data - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe-stderr.t TEST 5: read stderr, bytes length is more than data - status code ok got: ''
expected: '200'
pipe-stderr.t TEST 5: read stderr, bytes length is more than data - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'closed
'
pipe-stderr.t TEST 5: read stderr, bytes length is more than data - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:34:28 [error] 11911\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
pipe-stderr.t TEST 5: read stderr, bytes length is more than data - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe-stderr.t TEST 5: read stderr, bytes length is more than data - status code ok got: ''
expected: '200'
pipe-stderr.t TEST 5: read stderr, bytes length is more than data - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'closed
'
pipe-stderr.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
pipe-stderr.t TEST 9: read stderr, without yield - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe-stderr.t TEST 9: read stderr, without yield - status code ok got: ''
expected: '200'
pipe-stderr.t TEST 9: read stderr, without yield - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'hello world
'
pipe-stderr.t TEST 9: read stderr, without yield - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:34:33 [error] 11916\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
pipe-stderr.t TEST 9: read stderr, without yield - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe-stderr.t TEST 9: read stderr, without yield - status code ok got: ''
expected: '200'
pipe-stderr.t TEST 9: read stderr, without yield - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'hello world
'
pipe-stderr.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
pipe-stderr.t TEST 16: more than one coroutines read stderr of a process - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe-stderr.t TEST 16: more than one coroutines read stderr of a process - status code ok got: ''
expected: '200'
pipe-stderr.t TEST 16: more than one coroutines read stderr of a process - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-pipe busy reading
-hello
-world
'
pipe-stderr.t TEST 16: more than one coroutines read stderr of a process - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:34:37 [error] 11921\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
pipe-stderr.t TEST 16: more than one coroutines read stderr of a process - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe-stderr.t TEST 16: more than one coroutines read stderr of a process - status code ok got: ''
expected: '200'
pipe-stderr.t TEST 16: more than one coroutines read stderr of a process - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-pipe busy reading
-hello
-world
'
pipe-stderr.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
pipe-stderr.t TEST 10: read stderr, without yield, pattern is read bytes - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe-stderr.t TEST 10: read stderr, without yield, pattern is read bytes - status code ok got: ''
expected: '200'
pipe-stderr.t TEST 10: read stderr, without yield, pattern is read bytes - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'hello w
'
pipe-stderr.t TEST 10: read stderr, without yield, pattern is read bytes - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:34:42 [error] 11926\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
pipe-stderr.t TEST 10: read stderr, without yield, pattern is read bytes - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe-stderr.t TEST 10: read stderr, without yield, pattern is read bytes - status code ok got: ''
expected: '200'
pipe-stderr.t TEST 10: read stderr, without yield, pattern is read bytes - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'hello w
'
pipe-stderr.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
pipe-stderr.t TEST 23: read stderr, aborted by uthread kill, with graceful shutdown - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe-stderr.t TEST 23: read stderr, aborted by uthread kill, with graceful shutdown - status code ok got: ''
expected: '200'
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 +0,0 @@
-stdout: ok
-stderr err: closed
'
pipe-stderr.t TEST 23: read stderr, aborted by uthread kill, with graceful shutdown - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:34:46 [error] 11931\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
pipe-stderr.t TEST 23: read stderr, aborted by uthread kill, with graceful shutdown - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe-stderr.t TEST 23: read stderr, aborted by uthread kill, with graceful shutdown - status code ok got: ''
expected: '200'
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 +0,0 @@
-stdout: ok
-stderr err: closed
'
pipe-stderr.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
pipe-stderr.t TEST 17: read stderr while read stdout in other request - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe-stderr.t TEST 17: read stderr while read stdout in other request - status code ok got: ''
expected: '200'
pipe-stderr.t TEST 17: read stderr while read stdout in other request - response_body - response is expected (repeated req 0, req 0) @@ -1,8 +0,0 @@
-stderr:
-world
-more
-data
-stdout:
-hello
-data
-more
'
pipe-stderr.t TEST 17: read stderr while read stdout in other request - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:34:51 [error] 11937\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
pipe-stderr.t TEST 17: read stderr while read stdout in other request - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe-stderr.t TEST 17: read stderr while read stdout in other request - status code ok got: ''
expected: '200'
pipe-stderr.t TEST 17: read stderr while read stdout in other request - response_body - response is expected (repeated req 1, req 0) @@ -1,8 +0,0 @@
-stderr:
-world
-more
-data
-stdout:
-hello
-data
-more
'
pipe-stderr.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
pipe-stderr.t TEST 18: read stderr while read stdout in other request, individual error - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe-stderr.t TEST 18: read stderr while read stdout in other request, individual error - status code ok got: ''
expected: '200'
pipe-stderr.t TEST 18: read stderr while read stdout in other request, individual error - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-stderr:
-closed
-stdout:
-timeout
'
pipe-stderr.t TEST 18: read stderr while read stdout in other request, individual error - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:34:55 [error] 11942\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
pipe-stderr.t TEST 18: read stderr while read stdout in other request, individual error - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe-stderr.t TEST 18: read stderr while read stdout in other request, individual error - status code ok got: ''
expected: '200'
pipe-stderr.t TEST 18: read stderr while read stdout in other request, individual error - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +0,0 @@
-stderr:
-closed
-stdout:
-timeout
'
pipe-stderr.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
pipe-stderr.t TEST 14: read stderr, timeout - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe-stderr.t TEST 14: read stderr, timeout - status code ok got: ''
expected: '200'
pipe-stderr.t TEST 14: read stderr, timeout - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'timeout
'
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 "[error]" should not match any line in error.log but matches line "2020/10/26 11:35:00 [error] 11947\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
pipe-stderr.t TEST 14: read stderr, timeout - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe-stderr.t TEST 14: read stderr, timeout - status code ok got: ''
expected: '200'
pipe-stderr.t TEST 14: read stderr, timeout - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'timeout
'
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 nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
pipe-stderr.t TEST 11: read stderr, without yield, pattern is read all - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe-stderr.t TEST 11: read stderr, without yield, pattern is read all - status code ok got: ''
expected: '200'
pipe-stderr.t TEST 11: read stderr, without yield, pattern is read all - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-hello
-world
'
pipe-stderr.t TEST 11: read stderr, without yield, pattern is read all - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:35:04 [error] 11952\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
pipe-stderr.t TEST 11: read stderr, without yield, pattern is read all - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe-stderr.t TEST 11: read stderr, without yield, pattern is read all - status code ok got: ''
expected: '200'
pipe-stderr.t TEST 11: read stderr, without yield, pattern is read all - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-hello
-world
'
pipe-stderr.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
pipe-stderr.t TEST 13: read stderr, mix read pattern and stdout/stderr - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe-stderr.t TEST 13: read stderr, mix read pattern and stdout/stderr - status code ok got: ''
expected: '200'
pipe-stderr.t TEST 13: read stderr, mix read pattern and stdout/stderr - response_body - response is expected (repeated req 0, req 0) @@ -1,9 +0,0 @@
-reading any
-world
-more
-reading 3
-dat
-reading line
-a
-reading all
-data
'
pipe-stderr.t TEST 13: read stderr, mix read pattern and stdout/stderr - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:35:09 [error] 11957\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
pipe-stderr.t TEST 13: read stderr, mix read pattern and stdout/stderr - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe-stderr.t TEST 13: read stderr, mix read pattern and stdout/stderr - status code ok got: ''
expected: '200'
pipe-stderr.t TEST 13: read stderr, mix read pattern and stdout/stderr - response_body - response is expected (repeated req 1, req 0) @@ -1,9 +0,0 @@
-reading any
-world
-more
-reading 3
-dat
-reading line
-a
-reading all
-data
'
pipe-stderr.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
pipe-stderr.t TEST 7: read stderr, pattern is read any - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe-stderr.t TEST 7: read stderr, pattern is read any - status code ok got: ''
expected: '200'
pipe-stderr.t TEST 7: read stderr, pattern is read any - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:35:13 [error] 11962\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
pipe-stderr.t TEST 7: read stderr, pattern is read any - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe-stderr.t TEST 7: read stderr, pattern is read any - status code ok got: ''
expected: '200'
pipe-stderr.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
pipe-stderr.t TEST 19: read stderr while read stdout in other request, individual result - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe-stderr.t TEST 19: read stderr while read stdout in other request, individual result - status code ok got: ''
expected: '200'
pipe-stderr.t TEST 19: read stderr while read stdout in other request, individual result - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-stderr:
-hello
-stdout:
-closed
'
pipe-stderr.t TEST 19: read stderr while read stdout in other request, individual result - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:35:18 [error] 11967\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
pipe-stderr.t TEST 19: read stderr while read stdout in other request, individual result - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe-stderr.t TEST 19: read stderr while read stdout in other request, individual result - status code ok got: ''
expected: '200'
pipe-stderr.t TEST 19: read stderr while read stdout in other request, individual result - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +0,0 @@
-stderr:
-hello
-stdout:
-closed
'
pipe-stderr.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
pipe-stderr.t TEST 12: read stderr, without yield, pattern is read any - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe-stderr.t TEST 12: read stderr, without yield, pattern is read any - status code ok got: ''
expected: '200'
pipe-stderr.t TEST 12: read stderr, without yield, pattern is read any - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'helloworld
'
pipe-stderr.t TEST 12: read stderr, without yield, pattern is read any - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:35:22 [error] 11972\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
pipe-stderr.t TEST 12: read stderr, without yield, pattern is read any - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe-stderr.t TEST 12: read stderr, without yield, pattern is read any - status code ok got: ''
expected: '200'
pipe-stderr.t TEST 12: read stderr, without yield, pattern is read any - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'helloworld
'
pipe-stderr.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
pipe-stderr.t TEST 6: read stderr, pattern is read all - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe-stderr.t TEST 6: read stderr, pattern is read all - status code ok got: ''
expected: '200'
pipe-stderr.t TEST 6: read stderr, pattern is read all - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'helloworld
'
pipe-stderr.t TEST 6: read stderr, pattern is read all - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:35:27 [error] 11977\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
pipe-stderr.t TEST 6: read stderr, pattern is read all - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe-stderr.t TEST 6: read stderr, pattern is read all - status code ok got: ''
expected: '200'
pipe-stderr.t TEST 6: read stderr, pattern is read all - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'helloworld
'
pipe-stderr.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
pipe-stderr.t TEST 4: read stderr, bytes length is less than zero - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe-stderr.t TEST 4: read stderr, bytes length is less than zero - status code ok got: ''
expected: '200'
pipe-stderr.t TEST 4: read stderr, bytes length is less than zero - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'bad len argument
'
pipe-stderr.t TEST 4: read stderr, bytes length is less than zero - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:35:31 [error] 11982\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
pipe-stderr.t TEST 4: read stderr, bytes length is less than zero - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe-stderr.t TEST 4: read stderr, bytes length is less than zero - status code ok got: ''
expected: '200'
pipe-stderr.t TEST 4: read stderr, bytes length is less than zero - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'bad len argument
'
pipe-stderr.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
pipe-stderr.t TEST 24: spawn process with stderr_read_timeout option - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe-stderr.t TEST 24: spawn process with stderr_read_timeout option - status code ok got: ''
expected: '200'
pipe-stderr.t TEST 24: spawn process with stderr_read_timeout option - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'stderr err: timeout
'
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 "[error]" should not match any line in error.log but matches line "2020/10/26 11:35:36 [error] 11987\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
pipe-stderr.t TEST 24: spawn process with stderr_read_timeout option - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe-stderr.t TEST 24: spawn process with stderr_read_timeout option - status code ok got: ''
expected: '200'
pipe-stderr.t TEST 24: spawn process with stderr_read_timeout option - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'stderr err: timeout
'
pipe-stderr.t TEST 24: spawn process with stderr_read_timeout option - pattern "lua pipe add timer for reading: 100(ms)" should match a line in error.log (req 1)
pipe-stderr.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
pipe-stderr.t TEST 22: read stdout as stderr, aborted by uthread kill, merge_stderr is true - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe-stderr.t TEST 22: read stdout as stderr, aborted by uthread kill, merge_stderr is true - status code ok got: ''
expected: '200'
pipe-stderr.t TEST 22: read stdout as stderr, aborted by uthread kill, merge_stderr is true - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-hello
-world
'
pipe-stderr.t TEST 22: read stdout as stderr, aborted by uthread kill, merge_stderr is true - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:35:40 [error] 11992\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
pipe-stderr.t TEST 22: read stdout as stderr, aborted by uthread kill, merge_stderr is true - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe-stderr.t TEST 22: read stdout as stderr, aborted by uthread kill, merge_stderr is true - status code ok got: ''
expected: '200'
pipe-stderr.t TEST 22: read stdout as stderr, aborted by uthread kill, merge_stderr is true - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-hello
-world
'
pipe-stderr.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
pipe-stderr.t TEST 21: read stderr, merge_stderr is true - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe-stderr.t TEST 21: read stderr, merge_stderr is true - status code ok got: ''
expected: '200'
pipe-stderr.t TEST 21: read stderr, merge_stderr is true - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-merged to stdout
-merged to stdout
-merged to stdout
-merged to stdout
'
pipe-stderr.t TEST 21: read stderr, merge_stderr is true - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:35:45 [error] 11997\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
pipe-stderr.t TEST 21: read stderr, merge_stderr is true - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe-stderr.t TEST 21: read stderr, merge_stderr is true - status code ok got: ''
expected: '200'
pipe-stderr.t TEST 21: read stderr, merge_stderr is true - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +0,0 @@
-merged to stdout
-merged to stdout
-merged to stdout
-merged to stdout
'
pipe-stderr.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
pipe-stderr.t TEST 20: read stdout as stderr, mix read pattern and stdout/stderr, merge_stderr is true - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe-stderr.t TEST 20: read stdout as stderr, mix read pattern and stdout/stderr, merge_stderr is true - status code ok got: ''
expected: '200'
pipe-stderr.t TEST 20: read stdout as stderr, mix read pattern and stdout/stderr, merge_stderr is true - response_body - response is expected (repeated req 0, req 0) @@ -1,14 +0,0 @@
-reading stdout all
-hello
-world
-more
-data
-more
-data
-reading any
-hello
-world
-more
-data
-more
-data
'
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 "[error]" should not match any line in error.log but matches line "2020/10/26 11:35:50 [error] 12002\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
pipe-stderr.t TEST 20: read stdout as stderr, mix read pattern and stdout/stderr, merge_stderr is true - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe-stderr.t TEST 20: read stdout as stderr, mix read pattern and stdout/stderr, merge_stderr is true - status code ok got: ''
expected: '200'
pipe-stderr.t TEST 20: read stdout as stderr, mix read pattern and stdout/stderr, merge_stderr is true - response_body - response is expected (repeated req 1, req 0) @@ -1,14 +0,0 @@
-reading stdout all
-hello
-world
-more
-data
-more
-data
-reading any
-hello
-world
-more
-data
-more
-data
'
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 nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
pipe-stderr.t TEST 1: read stderr, pattern is read line - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe-stderr.t TEST 1: read stderr, pattern is read line - status code ok got: ''
expected: '200'
pipe-stderr.t TEST 1: read stderr, pattern is read line - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'hello world
'
pipe-stderr.t TEST 1: read stderr, pattern is read line - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:35:54 [error] 12007\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
pipe-stderr.t TEST 1: read stderr, pattern is read line - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe-stderr.t TEST 1: read stderr, pattern is read line - status code ok got: ''
expected: '200'
pipe-stderr.t TEST 1: read stderr, pattern is read line - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'hello world
'
pipe-stderr.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
pipe-stderr.t TEST 8: read stderr, pattern is read any, with limited, max <= 0 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe-stderr.t TEST 8: read stderr, pattern is read any, with limited, max <= 0 - status code ok got: ''
expected: '200'
pipe-stderr.t TEST 8: read stderr, pattern is read any, with limited, max <= 0 - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'bad max argument
'
pipe-stderr.t TEST 8: read stderr, pattern is read any, with limited, max <= 0 - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:35:59 [error] 12012\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
pipe-stderr.t TEST 8: read stderr, pattern is read any, with limited, max <= 0 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe-stderr.t TEST 8: read stderr, pattern is read any, with limited, max <= 0 - status code ok got: ''
expected: '200'
pipe-stderr.t TEST 8: read stderr, pattern is read any, with limited, max <= 0 - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'bad max argument
'
pipe-stderr.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
pipe-stderr.t TEST 2: read stderr, pattern is read bytes - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe-stderr.t TEST 2: read stderr, pattern is read bytes - status code ok got: ''
expected: '200'
pipe-stderr.t TEST 2: read stderr, pattern is read bytes - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-hello
- world
'
pipe-stderr.t TEST 2: read stderr, pattern is read bytes - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:36:03 [error] 12017\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
pipe-stderr.t TEST 2: read stderr, pattern is read bytes - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe-stderr.t TEST 2: read stderr, pattern is read bytes - status code ok got: ''
expected: '200'
pipe-stderr.t TEST 2: read stderr, pattern is read bytes - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-hello
- world
'
pipe-stderr.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
pipe-stderr.t TEST 15: read stderr, aborted by uthread kill - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe-stderr.t TEST 15: read stderr, aborted by uthread kill - status code ok got: ''
expected: '200'
pipe-stderr.t TEST 15: read stderr, aborted by uthread kill - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'hello
'
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 "[error]" should not match any line in error.log but matches line "2020/10/26 11:36:08 [error] 12022\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
pipe-stderr.t TEST 15: read stderr, aborted by uthread kill - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe-stderr.t TEST 15: read stderr, aborted by uthread kill - status code ok got: ''
expected: '200'
pipe-stderr.t TEST 15: read stderr, aborted by uthread kill - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'hello
'
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-stdin.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
pipe-stdin.t TEST 3: write process after waiting - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe-stdin.t TEST 3: write process after waiting - status code ok got: ''
expected: '200'
pipe-stdin.t TEST 3: write process after waiting - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'closed
'
pipe-stdin.t TEST 3: write process after waiting - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:36:13 [error] 12030\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
pipe-stdin.t TEST 3: write process after waiting - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe-stdin.t TEST 3: write process after waiting - status code ok got: ''
expected: '200'
pipe-stdin.t TEST 3: write process after waiting - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'closed
'
pipe-stdin.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
pipe-stdin.t TEST 1: write process - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe-stdin.t TEST 1: write process - status code ok got: ''
expected: '200'
pipe-stdin.t TEST 1: write process - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-0
-5
-6
-hello world
'
pipe-stdin.t TEST 1: write process - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:36:17 [error] 12035\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
pipe-stdin.t TEST 1: write process - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe-stdin.t TEST 1: write process - status code ok got: ''
expected: '200'
pipe-stdin.t TEST 1: write process - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +0,0 @@
-0
-5
-6
-hello world
'
pipe-stdin.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
pipe-stdin.t TEST 2: write process, bad pipe - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe-stdin.t TEST 2: write process, bad pipe - status code ok got: ''
expected: '200'
pipe-stdin.t TEST 2: write process, bad pipe - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'closed
'
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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe-stdin.t TEST 2: write process, bad pipe - status code ok got: ''
expected: '200'
pipe-stdin.t TEST 2: write process, bad pipe - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'closed
'
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 nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
pipe-stdin.t TEST 4: write process, timeout - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe-stdin.t TEST 4: write process, timeout - status code ok got: ''
expected: '200'
pipe-stdin.t TEST 4: write process, timeout - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'timeout
'
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 "[error]" should not match any line in error.log but matches line "2020/10/26 11:36:26 [error] 12045\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
pipe-stdin.t TEST 4: write process, timeout - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe-stdin.t TEST 4: write process, timeout - status code ok got: ''
expected: '200'
pipe-stdin.t TEST 4: write process, timeout - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'timeout
'
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 nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
pipe-stdin.t TEST 9: write process, support table, number and boolean arguments - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe-stdin.t TEST 9: write process, support table, number and boolean arguments - status code ok got: ''
expected: '200'
pipe-stdin.t TEST 9: write process, support table, number and boolean arguments - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-2
-11
-10hello world
'
pipe-stdin.t TEST 9: write process, support table, number and boolean arguments - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:36:31 [error] 12050\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
pipe-stdin.t TEST 9: write process, support table, number and boolean arguments - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe-stdin.t TEST 9: write process, support table, number and boolean arguments - status code ok got: ''
expected: '200'
pipe-stdin.t TEST 9: write process, support table, number and boolean arguments - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-2
-11
-10hello world
'
pipe-stdin.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
pipe-stdin.t TEST 8: write and read process - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe-stdin.t TEST 8: write and read process - status code ok got: ''
expected: '200'
pipe-stdin.t TEST 8: write and read process - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'payload
'
pipe-stdin.t TEST 8: write and read process - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:36:35 [error] 12055\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
pipe-stdin.t TEST 8: write and read process - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe-stdin.t TEST 8: write and read process - status code ok got: ''
expected: '200'
pipe-stdin.t TEST 8: write and read process - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'payload
'
pipe-stdin.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
pipe-stdin.t TEST 6: more than one coroutines write - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe-stdin.t TEST 6: more than one coroutines write - status code ok got: ''
expected: '200'
pipe-stdin.t TEST 6: more than one coroutines write - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-timeout
-pipe busy writing
-timeout
-timeout
'
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 "[error]" should not match any line in error.log but matches line "2020/10/26 11:36:40 [error] 12060\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
pipe-stdin.t TEST 6: more than one coroutines write - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe-stdin.t TEST 6: more than one coroutines write - status code ok got: ''
expected: '200'
pipe-stdin.t TEST 6: more than one coroutines write - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +0,0 @@
-timeout
-pipe busy writing
-timeout
-timeout
'
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 nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
pipe-stdin.t TEST 11: write process, aborted by uthread kill, with graceful shutdown - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe-stdin.t TEST 11: write process, aborted by uthread kill, with graceful shutdown - status code ok got: ''
expected: '200'
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 +0,0 @@
-stdout: ok
-stderr err: closed
'
pipe-stdin.t TEST 11: write process, aborted by uthread kill, with graceful shutdown - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:36:44 [error] 12065\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
pipe-stdin.t TEST 11: write process, aborted by uthread kill, with graceful shutdown - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe-stdin.t TEST 11: write process, aborted by uthread kill, with graceful shutdown - status code ok got: ''
expected: '200'
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 +0,0 @@
-stdout: ok
-stderr err: closed
'
pipe-stdin.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
pipe-stdin.t TEST 12: spawn process with write_timeout option - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe-stdin.t TEST 12: spawn process with write_timeout option - status code ok got: ''
expected: '200'
pipe-stdin.t TEST 12: spawn process with write_timeout option - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'timeout
'
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 "[error]" should not match any line in error.log but matches line "2020/10/26 11:36:49 [error] 12071\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
pipe-stdin.t TEST 12: spawn process with write_timeout option - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe-stdin.t TEST 12: spawn process with write_timeout option - status code ok got: ''
expected: '200'
pipe-stdin.t TEST 12: spawn process with write_timeout option - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'timeout
'
pipe-stdin.t TEST 12: spawn process with write_timeout option - pattern "lua pipe add timer for writing: 100(ms)" should match a line in error.log (req 1)
pipe-stdin.t TEST 12: spawn process with write_timeout option - pattern "lua pipe write yielding" should match a line in error.log (req 1)
pipe-stdin.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
pipe-stdin.t TEST 10: write process, throw error if bad argument is written - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe-stdin.t TEST 10: write process, throw error if bad argument is written - status code ok got: ''
expected: '200'
pipe-stdin.t TEST 10: write process, throw error if bad argument is written - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-bad data arg: string, number, or table expected, got boolean
-bad data arg: string, number, or table expected, got nil
-bad data arg: string, number, or table expected, got userdata
'
pipe-stdin.t TEST 10: write process, throw error if bad argument is written - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:36:53 [error] 12076\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
pipe-stdin.t TEST 10: write process, throw error if bad argument is written - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe-stdin.t TEST 10: write process, throw error if bad argument is written - status code ok got: ''
expected: '200'
pipe-stdin.t TEST 10: write process, throw error if bad argument is written - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-bad data arg: string, number, or table expected, got boolean
-bad data arg: string, number, or table expected, got nil
-bad data arg: string, number, or table expected, got userdata
'
pipe-stdin.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
pipe-stdin.t TEST 5: write process, yield and write again - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe-stdin.t TEST 5: write process, yield and write again - status code ok got: ''
expected: '200'
pipe-stdin.t TEST 5: write process, yield and write again - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-timeout
-8192
'
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 "[error]" should not match any line in error.log but matches line "2020/10/26 11:36:58 [error] 12081\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
pipe-stdin.t TEST 5: write process, yield and write again - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe-stdin.t TEST 5: write process, yield and write again - status code ok got: ''
expected: '200'
pipe-stdin.t TEST 5: write process, yield and write again - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-timeout
-8192
'
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 nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
pipe-stdin.t TEST 7: write process, aborted by uthread kill - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe-stdin.t TEST 7: write process, aborted by uthread kill - status code ok got: ''
expected: '200'
pipe-stdin.t TEST 7: write process, aborted by uthread kill - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-timeout
-timeout
'
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 "[error]" should not match any line in error.log but matches line "2020/10/26 11:37:02 [error] 12086\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
pipe-stdin.t TEST 7: write process, aborted by uthread kill - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe-stdin.t TEST 7: write process, aborted by uthread kill - status code ok got: ''
expected: '200'
pipe-stdin.t TEST 7: write process, aborted by uthread kill - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-timeout
-timeout
'
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-stdout.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
pipe-stdout.t TEST 30: user case with read and wait - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe-stdout.t TEST 30: user case with read and wait - status code ok got: ''
expected: '200'
pipe-stdout.t TEST 30: user case with read and wait - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-ok
-exit
'
pipe-stdout.t TEST 30: user case with read and wait - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:37:07 [error] 12094\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
pipe-stdout.t TEST 30: user case with read and wait - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe-stdout.t TEST 30: user case with read and wait - status code ok got: ''
expected: '200'
pipe-stdout.t TEST 30: user case with read and wait - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-ok
-exit
'
pipe-stdout.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
pipe-stdout.t TEST 28: read process while waiting process in other request - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe-stdout.t TEST 28: read process while waiting process in other request - status code ok got: ''
expected: '200'
pipe-stdout.t TEST 28: read process while waiting process in other request - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-hello world
-exit
-2
'
pipe-stdout.t TEST 28: read process while waiting process in other request - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:37:12 [error] 12099\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
pipe-stdout.t TEST 28: read process while waiting process in other request - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe-stdout.t TEST 28: read process while waiting process in other request - status code ok got: ''
expected: '200'
pipe-stdout.t TEST 28: read process while waiting process in other request - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-hello world
-exit
-2
'
pipe-stdout.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
pipe-stdout.t TEST 9: read process, pattern is read any, with limited, max <= 0 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe-stdout.t TEST 9: read process, pattern is read any, with limited, max <= 0 - status code ok got: ''
expected: '200'
pipe-stdout.t TEST 9: read process, pattern is read any, with limited, max <= 0 - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'bad max argument
'
pipe-stdout.t TEST 9: read process, pattern is read any, with limited, max <= 0 - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:37:16 [error] 12104\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
pipe-stdout.t TEST 9: read process, pattern is read any, with limited, max <= 0 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe-stdout.t TEST 9: read process, pattern is read any, with limited, max <= 0 - status code ok got: ''
expected: '200'
pipe-stdout.t TEST 9: read process, pattern is read any, with limited, max <= 0 - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'bad max argument
'
pipe-stdout.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
pipe-stdout.t TEST 2: read process, read line without line break - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe-stdout.t TEST 2: read process, read line without line break - status code ok got: ''
expected: '200'
pipe-stdout.t TEST 2: read process, read line without line break - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-closed
-hello world
'
pipe-stdout.t TEST 2: read process, read line without line break - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:37:21 [error] 12109\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
pipe-stdout.t TEST 2: read process, read line without line break - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe-stdout.t TEST 2: read process, read line without line break - status code ok got: ''
expected: '200'
pipe-stdout.t TEST 2: read process, read line without line break - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-closed
-hello world
'
pipe-stdout.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
pipe-stdout.t TEST 22: read process, no data to read - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe-stdout.t TEST 22: read process, no data to read - status code ok got: ''
expected: '200'
pipe-stdout.t TEST 22: read process, no data to read - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'closed
'
pipe-stdout.t TEST 22: read process, no data to read - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:37:25 [error] 12114\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
pipe-stdout.t TEST 22: read process, no data to read - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe-stdout.t TEST 22: read process, no data to read - status code ok got: ''
expected: '200'
pipe-stdout.t TEST 22: read process, no data to read - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'closed
'
pipe-stdout.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
pipe-stdout.t TEST 8: read process, pattern is read any - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe-stdout.t TEST 8: read process, pattern is read any - status code ok got: ''
expected: '200'
pipe-stdout.t TEST 8: read process, pattern is read any - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-hello
-world
'
pipe-stdout.t TEST 8: read process, pattern is read any - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:37:30 [error] 12119\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
pipe-stdout.t TEST 8: read process, pattern is read any - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe-stdout.t TEST 8: read process, pattern is read any - status code ok got: ''
expected: '200'
pipe-stdout.t TEST 8: read process, pattern is read any - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-hello
-world
'
pipe-stdout.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
pipe-stdout.t TEST 25: more than one coroutines read a process - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe-stdout.t TEST 25: more than one coroutines read a process - status code ok got: ''
expected: '200'
pipe-stdout.t TEST 25: more than one coroutines read a process - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-pipe busy reading
-hello
-world
'
pipe-stdout.t TEST 25: more than one coroutines read a process - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:37:34 [error] 12124\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
pipe-stdout.t TEST 25: more than one coroutines read a process - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe-stdout.t TEST 25: more than one coroutines read a process - status code ok got: ''
expected: '200'
pipe-stdout.t TEST 25: more than one coroutines read a process - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-pipe busy reading
-hello
-world
'
pipe-stdout.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
pipe-stdout.t TEST 3: read process, pattern is read bytes - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe-stdout.t TEST 3: read process, pattern is read bytes - status code ok got: ''
expected: '200'
pipe-stdout.t TEST 3: read process, pattern is read bytes - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-hello
- world
'
pipe-stdout.t TEST 3: read process, pattern is read bytes - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:37:39 [error] 12129\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
pipe-stdout.t TEST 3: read process, pattern is read bytes - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe-stdout.t TEST 3: read process, pattern is read bytes - status code ok got: ''
expected: '200'
pipe-stdout.t TEST 3: read process, pattern is read bytes - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-hello
- world
'
pipe-stdout.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
pipe-stdout.t TEST 14: read process, without yield, pattern is read bytes - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe-stdout.t TEST 14: read process, without yield, pattern is read bytes - status code ok got: ''
expected: '200'
pipe-stdout.t TEST 14: read process, without yield, pattern is read bytes - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'hello wor
'
pipe-stdout.t TEST 14: read process, without yield, pattern is read bytes - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:37:43 [error] 12134\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
pipe-stdout.t TEST 14: read process, without yield, pattern is read bytes - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe-stdout.t TEST 14: read process, without yield, pattern is read bytes - status code ok got: ''
expected: '200'
pipe-stdout.t TEST 14: read process, without yield, pattern is read bytes - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'hello wor
'
pipe-stdout.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
pipe-stdout.t TEST 12: read process, without yield - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe-stdout.t TEST 12: read process, without yield - status code ok got: ''
expected: '200'
pipe-stdout.t TEST 12: read process, without yield - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'hello world
'
pipe-stdout.t TEST 12: read process, without yield - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:37:48 [error] 12139\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
pipe-stdout.t TEST 12: read process, without yield - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe-stdout.t TEST 12: read process, without yield - status code ok got: ''
expected: '200'
pipe-stdout.t TEST 12: read process, without yield - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'hello world
'
pipe-stdout.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
pipe-stdout.t TEST 19: read process, with yield, read more data than preallocated buffer - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe-stdout.t TEST 19: read process, with yield, read more data than preallocated buffer - status code ok got: ''
expected: '200'
pipe-stdout.t TEST 19: read process, with yield, read more data than preallocated buffer - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'ok
'
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 "[error]" should not match any line in error.log but matches line "2020/10/26 11:37:53 [error] 12144\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
pipe-stdout.t TEST 19: read process, with yield, read more data than preallocated buffer - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe-stdout.t TEST 19: read process, with yield, read more data than preallocated buffer - status code ok got: ''
expected: '200'
pipe-stdout.t TEST 19: read process, with yield, read more data than preallocated buffer - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'ok
'
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 nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
pipe-stdout.t TEST 10: read process, pattern is read any, with limited, limit larger than read data - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe-stdout.t TEST 10: read process, pattern is read any, with limited, limit larger than read data - status code ok got: ''
expected: '200'
pipe-stdout.t TEST 10: read process, pattern is read any, with limited, limit larger than read data - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-hello
-world
'
pipe-stdout.t TEST 10: read process, pattern is read any, with limited, limit larger than read data - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:37:57 [error] 12149\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
pipe-stdout.t TEST 10: read process, pattern is read any, with limited, limit larger than read data - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe-stdout.t TEST 10: read process, pattern is read any, with limited, limit larger than read data - status code ok got: ''
expected: '200'
pipe-stdout.t TEST 10: read process, pattern is read any, with limited, limit larger than read data - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-hello
-world
'
pipe-stdout.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
pipe-stdout.t TEST 16: read process, without yield, pattern is read any - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe-stdout.t TEST 16: read process, without yield, pattern is read any - status code ok got: ''
expected: '200'
pipe-stdout.t TEST 16: read process, without yield, pattern is read any - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'helloworld
'
pipe-stdout.t TEST 16: read process, without yield, pattern is read any - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:38:02 [error] 12154\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
pipe-stdout.t TEST 16: read process, without yield, pattern is read any - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe-stdout.t TEST 16: read process, without yield, pattern is read any - status code ok got: ''
expected: '200'
pipe-stdout.t TEST 16: read process, without yield, pattern is read any - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'helloworld
'
pipe-stdout.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
pipe-stdout.t TEST 29: read process while waiting process in other request, return error - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe-stdout.t TEST 29: read process while waiting process in other request, return error - status code ok got: ''
expected: '200'
pipe-stdout.t TEST 29: read process while waiting process in other request, return error - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-timeout
-signal
-15
'
pipe-stdout.t TEST 29: read process while waiting process in other request, return error - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:38:06 [error] 12159\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
pipe-stdout.t TEST 29: read process while waiting process in other request, return error - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe-stdout.t TEST 29: read process while waiting process in other request, return error - status code ok got: ''
expected: '200'
pipe-stdout.t TEST 29: read process while waiting process in other request, return error - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-timeout
-signal
-15
'
pipe-stdout.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
pipe-stdout.t TEST 27: read process, aborted by uthread kill - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe-stdout.t TEST 27: read process, aborted by uthread kill - status code ok got: ''
expected: '200'
pipe-stdout.t TEST 27: read process, aborted by uthread kill - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'hello
'
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 "[error]" should not match any line in error.log but matches line "2020/10/26 11:38:11 [error] 12164\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
pipe-stdout.t TEST 27: read process, aborted by uthread kill - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe-stdout.t TEST 27: read process, aborted by uthread kill - status code ok got: ''
expected: '200'
pipe-stdout.t TEST 27: read process, aborted by uthread kill - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'hello
'
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 nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
pipe-stdout.t TEST 32: but we could spawn it in init_worker_by_lua and read it later - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe-stdout.t TEST 32: but we could spawn it in init_worker_by_lua and read it later - status code ok got: ''
expected: '200'
pipe-stdout.t TEST 32: but we could spawn it in init_worker_by_lua and read it later - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'hello world
'
pipe-stdout.t TEST 32: but we could spawn it in init_worker_by_lua and read it later - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:38:15 [error] 12169\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
pipe-stdout.t TEST 32: but we could spawn it in init_worker_by_lua and read it later - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe-stdout.t TEST 32: but we could spawn it in init_worker_by_lua and read it later - status code ok got: ''
expected: '200'
pipe-stdout.t TEST 32: but we could spawn it in init_worker_by_lua and read it later - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'hello world
'
pipe-stdout.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
pipe-stdout.t TEST 21: read process, mix read pattern - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe-stdout.t TEST 21: read process, mix read pattern - status code ok got: ''
expected: '200'
pipe-stdout.t TEST 21: read process, mix read pattern - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:38:20 [error] 12174\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
pipe-stdout.t TEST 21: read process, mix read pattern - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe-stdout.t TEST 21: read process, mix read pattern - status code ok got: ''
expected: '200'
pipe-stdout.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
pipe-stdout.t TEST 26: read process, timeout - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe-stdout.t TEST 26: read process, timeout - status code ok got: ''
expected: '200'
pipe-stdout.t TEST 26: read process, timeout - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'timeout
'
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 "[error]" should not match any line in error.log but matches line "2020/10/26 11:38:24 [error] 12179\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
pipe-stdout.t TEST 26: read process, timeout - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe-stdout.t TEST 26: read process, timeout - status code ok got: ''
expected: '200'
pipe-stdout.t TEST 26: read process, timeout - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'timeout
'
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 nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
pipe-stdout.t TEST 34: spawn process with stdout_read_timeout option - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe-stdout.t TEST 34: spawn process with stdout_read_timeout option - status code ok got: ''
expected: '200'
pipe-stdout.t TEST 34: spawn process with stdout_read_timeout option - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'stdout err: timeout
'
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 "[error]" should not match any line in error.log but matches line "2020/10/26 11:38:29 [error] 12184\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
pipe-stdout.t TEST 34: spawn process with stdout_read_timeout option - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe-stdout.t TEST 34: spawn process with stdout_read_timeout option - status code ok got: ''
expected: '200'
pipe-stdout.t TEST 34: spawn process with stdout_read_timeout option - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'stdout err: timeout
'
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 nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
pipe-stdout.t TEST 13: read process, without yield, get partial data - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe-stdout.t TEST 13: read process, without yield, get partial data - status code ok got: ''
expected: '200'
pipe-stdout.t TEST 13: read process, without yield, get partial data - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-closed
-hello world
'
pipe-stdout.t TEST 13: read process, without yield, get partial data - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:38:33 [error] 12189\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
pipe-stdout.t TEST 13: read process, without yield, get partial data - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe-stdout.t TEST 13: read process, without yield, get partial data - status code ok got: ''
expected: '200'
pipe-stdout.t TEST 13: read process, without yield, get partial data - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-closed
-hello world
'
pipe-stdout.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
pipe-stdout.t TEST 4: read process, bytes length is zero - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe-stdout.t TEST 4: read process, bytes length is zero - status code ok got: ''
expected: '200'
pipe-stdout.t TEST 4: read process, bytes length is zero - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'data:
'
pipe-stdout.t TEST 4: read process, bytes length is zero - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:38:38 [error] 12194\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
pipe-stdout.t TEST 4: read process, bytes length is zero - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe-stdout.t TEST 4: read process, bytes length is zero - status code ok got: ''
expected: '200'
pipe-stdout.t TEST 4: read process, bytes length is zero - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'data:
'
pipe-stdout.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
pipe-stdout.t TEST 17: read process, without yield, read more data than preallocated buffer - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe-stdout.t TEST 17: read process, without yield, read more data than preallocated buffer - status code ok got: ''
expected: '200'
pipe-stdout.t TEST 17: read process, without yield, read more data than preallocated buffer - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'ok
'
pipe-stdout.t TEST 17: read process, without yield, read more data than preallocated buffer - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:38:42 [error] 12199\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
pipe-stdout.t TEST 17: read process, without yield, read more data than preallocated buffer - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe-stdout.t TEST 17: read process, without yield, read more data than preallocated buffer - status code ok got: ''
expected: '200'
pipe-stdout.t TEST 17: read process, without yield, read more data than preallocated buffer - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'ok
'
pipe-stdout.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
pipe-stdout.t TEST 7: read process, pattern is read all - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe-stdout.t TEST 7: read process, pattern is read all - status code ok got: ''
expected: '200'
pipe-stdout.t TEST 7: read process, pattern is read all - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'helloworld
'
pipe-stdout.t TEST 7: read process, pattern is read all - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:38:47 [error] 12204\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
pipe-stdout.t TEST 7: read process, pattern is read all - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe-stdout.t TEST 7: read process, pattern is read all - status code ok got: ''
expected: '200'
pipe-stdout.t TEST 7: read process, pattern is read all - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'helloworld
'
pipe-stdout.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
pipe-stdout.t TEST 24: read process after waiting - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe-stdout.t TEST 24: read process after waiting - status code ok got: ''
expected: '200'
pipe-stdout.t TEST 24: read process after waiting - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'closed
'
pipe-stdout.t TEST 24: read process after waiting - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:38:51 [error] 12209\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
pipe-stdout.t TEST 24: read process after waiting - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe-stdout.t TEST 24: read process after waiting - status code ok got: ''
expected: '200'
pipe-stdout.t TEST 24: read process after waiting - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'closed
'
pipe-stdout.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
pipe-stdout.t TEST 5: read process, bytes length is less than zero - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe-stdout.t TEST 5: read process, bytes length is less than zero - status code ok got: ''
expected: '200'
pipe-stdout.t TEST 5: read process, bytes length is less than zero - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'bad len argument
'
pipe-stdout.t TEST 5: read process, bytes length is less than zero - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:38:56 [error] 12214\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
pipe-stdout.t TEST 5: read process, bytes length is less than zero - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe-stdout.t TEST 5: read process, bytes length is less than zero - status code ok got: ''
expected: '200'
pipe-stdout.t TEST 5: read process, bytes length is less than zero - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'bad len argument
'
pipe-stdout.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
pipe-stdout.t TEST 1: read process, pattern is read line - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe-stdout.t TEST 1: read process, pattern is read line - status code ok got: ''
expected: '200'
pipe-stdout.t TEST 1: read process, pattern is read line - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'hello world
'
pipe-stdout.t TEST 1: read process, pattern is read line - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:39:00 [error] 12219\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
pipe-stdout.t TEST 1: read process, pattern is read line - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe-stdout.t TEST 1: read process, pattern is read line - status code ok got: ''
expected: '200'
pipe-stdout.t TEST 1: read process, pattern is read line - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'hello world
'
pipe-stdout.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
pipe-stdout.t TEST 20: read process, with yield, read more partial data than preallocated buffer - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe-stdout.t TEST 20: read process, with yield, read more partial data than preallocated buffer - status code ok got: ''
expected: '200'
pipe-stdout.t TEST 20: read process, with yield, read more partial data than preallocated buffer - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-closed
-ok
'
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 "[error]" should not match any line in error.log but matches line "2020/10/26 11:39:05 [error] 12224\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
pipe-stdout.t TEST 20: read process, with yield, read more partial data than preallocated buffer - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe-stdout.t TEST 20: read process, with yield, read more partial data than preallocated buffer - status code ok got: ''
expected: '200'
pipe-stdout.t TEST 20: read process, with yield, read more partial data than preallocated buffer - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-closed
-ok
'
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 nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
pipe-stdout.t TEST 15: read process, without yield, pattern is read all - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe-stdout.t TEST 15: read process, without yield, pattern is read all - status code ok got: ''
expected: '200'
pipe-stdout.t TEST 15: read process, without yield, pattern is read all - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-hello
-world
'
pipe-stdout.t TEST 15: read process, without yield, pattern is read all - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:39:10 [error] 12229\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
pipe-stdout.t TEST 15: read process, without yield, pattern is read all - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe-stdout.t TEST 15: read process, without yield, pattern is read all - status code ok got: ''
expected: '200'
pipe-stdout.t TEST 15: read process, without yield, pattern is read all - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-hello
-world
'
pipe-stdout.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
pipe-stdout.t TEST 31: ensure reading process in phases without yield support is disabled - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe-stdout.t TEST 31: ensure reading process in phases without yield support is disabled - status code ok got: ''
expected: '200'
pipe-stdout.t TEST 31: ensure reading process in phases without yield support is disabled - response_body_like - response is expected () ''
doesn't match '(?^s:.+ API disabled in the context of init_worker_by_lua\*
)'
pipe-stdout.t TEST 31: ensure reading process in phases without yield support is disabled - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:39:14 [error] 12234\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
pipe-stdout.t TEST 31: ensure reading process in phases without yield support is disabled - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe-stdout.t TEST 31: ensure reading process in phases without yield support is disabled - status code ok got: ''
expected: '200'
pipe-stdout.t TEST 31: ensure reading process in phases without yield support is disabled - response_body_like - response is expected () ''
doesn't match '(?^s:.+ API disabled in the context of init_worker_by_lua\*
)'
pipe-stdout.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
pipe-stdout.t TEST 23: read process, no data to read, use read all - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe-stdout.t TEST 23: read process, no data to read, use read all - status code ok got: ''
expected: '200'
pipe-stdout.t TEST 23: read process, no data to read, use read all - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'data:
'
pipe-stdout.t TEST 23: read process, no data to read, use read all - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:39:19 [error] 12239\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
pipe-stdout.t TEST 23: read process, no data to read, use read all - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe-stdout.t TEST 23: read process, no data to read, use read all - status code ok got: ''
expected: '200'
pipe-stdout.t TEST 23: read process, no data to read, use read all - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'data:
'
pipe-stdout.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
pipe-stdout.t TEST 33: read process, aborted by uthread kill, with graceful shutdown - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe-stdout.t TEST 33: read process, aborted by uthread kill, with graceful shutdown - status code ok got: ''
expected: '200'
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 +0,0 @@
-stdout: ok
-stderr err: closed
'
pipe-stdout.t TEST 33: read process, aborted by uthread kill, with graceful shutdown - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:39:23 [error] 12244\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
pipe-stdout.t TEST 33: read process, aborted by uthread kill, with graceful shutdown - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe-stdout.t TEST 33: read process, aborted by uthread kill, with graceful shutdown - status code ok got: ''
expected: '200'
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 +0,0 @@
-stdout: ok
-stderr err: closed
'
pipe-stdout.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
pipe-stdout.t TEST 6: read process, bytes length is more than data - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe-stdout.t TEST 6: read process, bytes length is more than data - status code ok got: ''
expected: '200'
pipe-stdout.t TEST 6: read process, bytes length is more than data - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'closed
'
pipe-stdout.t TEST 6: read process, bytes length is more than data - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:39:28 [error] 12250\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
pipe-stdout.t TEST 6: read process, bytes length is more than data - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe-stdout.t TEST 6: read process, bytes length is more than data - status code ok got: ''
expected: '200'
pipe-stdout.t TEST 6: read process, bytes length is more than data - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'closed
'
pipe-stdout.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
pipe-stdout.t TEST 18: read process, without yield, read more partial data than preallocated buffer - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe-stdout.t TEST 18: read process, without yield, read more partial data than preallocated buffer - status code ok got: ''
expected: '200'
pipe-stdout.t TEST 18: read process, without yield, read more partial data than preallocated buffer - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-closed
-ok
'
pipe-stdout.t TEST 18: read process, without yield, read more partial data than preallocated buffer - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:39:32 [error] 12255\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
pipe-stdout.t TEST 18: read process, without yield, read more partial data than preallocated buffer - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe-stdout.t TEST 18: read process, without yield, read more partial data than preallocated buffer - status code ok got: ''
expected: '200'
pipe-stdout.t TEST 18: read process, without yield, read more partial data than preallocated buffer - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-closed
-ok
'
pipe-stdout.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
pipe-stdout.t TEST 11: read process, pattern is read any, with limited, limit smaller than read data - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe-stdout.t TEST 11: read process, pattern is read any, with limited, limit smaller than read data - status code ok got: ''
expected: '200'
pipe-stdout.t TEST 11: read process, pattern is read any, with limited, limit smaller than read data - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:39:37 [error] 12260\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
pipe-stdout.t TEST 11: read process, pattern is read any, with limited, limit smaller than read data - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe-stdout.t TEST 11: read process, pattern is read any, with limited, limit smaller than read data - status code ok got: ''
expected: '200'
pipe.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
pipe.t TEST 18: wait process, timeout, test for race condition - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe.t TEST 18: wait process, timeout, test for race condition - status code ok got: ''
expected: '200'
pipe.t TEST 18: wait process, timeout, test for race condition - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'ok
'
pipe.t TEST 18: wait process, timeout, test for race condition - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:39:42 [error] 12268\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
pipe.t TEST 18: wait process, timeout, test for race condition - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe.t TEST 18: wait process, timeout, test for race condition - status code ok got: ''
expected: '200'
pipe.t TEST 18: wait process, timeout, test for race condition - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'ok
'
pipe.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
pipe.t TEST 9: wait process, process killed by signal before waiting - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe.t TEST 9: wait process, process killed by signal before waiting - status code ok got: ''
expected: '200'
pipe.t TEST 9: wait process, process killed by signal before waiting - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'signal status: 2
'
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 "[error]" should not match any line in error.log but matches line "2020/10/26 11:39:46 [error] 12273\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
pipe.t TEST 9: wait process, process killed by signal before waiting - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe.t TEST 9: wait process, process killed by signal before waiting - status code ok got: ''
expected: '200'
pipe.t TEST 9: wait process, process killed by signal before waiting - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'signal status: 2
'
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 nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
pipe.t TEST 53: validate timeout options when spawning process - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe.t TEST 53: validate timeout options when spawning process - status code ok got: ''
expected: '200'
pipe.t TEST 53: validate timeout options when spawning process - pattern "(?^:\[error\] .*? content_by_lua\(nginx\.conf:\d+\):\d+: .*? bad write_timeout option)" should match a line in error.log (req 0)
pipe.t TEST 53: validate timeout options when spawning process - pattern "(?^:\[error\] .*? content_by_lua\(nginx\.conf:\d+\):\d+: .*? bad stdout_read_timeout option)" should match a line in error.log (req 0)
pipe.t TEST 53: validate timeout options when spawning process - pattern "(?^:\[error\] .*? content_by_lua\(nginx\.conf:\d+\):\d+: .*? bad stderr_read_timeout option)" should match a line in error.log (req 0)
pipe.t TEST 53: validate timeout options when spawning process - pattern "(?^:\[error\] .*? content_by_lua\(nginx\.conf:\d+\):\d+: .*? bad wait_timeout option)" should match a line in error.log (req 0)
pipe.t TEST 53: validate timeout options when spawning process - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe.t TEST 53: validate timeout options when spawning process - status code ok got: ''
expected: '200'
pipe.t TEST 53: validate timeout options when spawning process - pattern "(?^:\[error\] .*? content_by_lua\(nginx\.conf:\d+\):\d+: .*? bad write_timeout option)" should match a line in error.log (req 1)
pipe.t TEST 53: validate timeout options when spawning process - pattern "(?^:\[error\] .*? content_by_lua\(nginx\.conf:\d+\):\d+: .*? bad stdout_read_timeout option)" should match a line in error.log (req 1)
pipe.t TEST 53: validate timeout options when spawning process - pattern "(?^:\[error\] .*? content_by_lua\(nginx\.conf:\d+\):\d+: .*? bad stderr_read_timeout option)" should match a line in error.log (req 1)
pipe.t TEST 53: validate timeout options when spawning process - pattern "(?^:\[error\] .*? content_by_lua\(nginx\.conf:\d+\):\d+: .*? bad wait_timeout option)" should match a line in error.log (req 1)
pipe.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
pipe.t TEST 16: avoid setting negative timeout - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe.t TEST 16: avoid setting negative timeout - status code ok got: ''
expected: '200'
pipe.t TEST 16: avoid setting negative timeout - response_body - response is expected (repeated req 0, req 0) @@ -1,13 +0,0 @@
-set_timeouts: ok
-
-write_timeout:
-failed to set timeouts: bad write_timeout option
-
-stdout_read_timeout:
-failed to set timeouts: bad stdout_read_timeout option
-
-stderr_read_timeout:
-failed to set timeouts: bad stderr_read_timeout option
-
-wait_timeout:
-failed to set timeouts: bad wait_timeout option
'
pipe.t TEST 16: avoid setting negative timeout - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:39:55 [error] 12283\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
pipe.t TEST 16: avoid setting negative timeout - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe.t TEST 16: avoid setting negative timeout - status code ok got: ''
expected: '200'
pipe.t TEST 16: avoid setting negative timeout - response_body - response is expected (repeated req 1, req 0) @@ -1,13 +0,0 @@
-set_timeouts: ok
-
-write_timeout:
-failed to set timeouts: bad write_timeout option
-
-stdout_read_timeout:
-failed to set timeouts: bad stdout_read_timeout option
-
-stderr_read_timeout:
-failed to set timeouts: bad stderr_read_timeout option
-
-wait_timeout:
-failed to set timeouts: bad wait_timeout option
'
pipe.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
pipe.t TEST 29: interact with bc - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe.t TEST 29: interact with bc - status code ok got: ''
expected: '200'
pipe.t TEST 29: interact with bc - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'ok
'
pipe.t TEST 29: interact with bc - pattern "bc say 3" should match a line in error.log (req 0)
pipe.t TEST 29: interact with bc - pattern "bc say 8" should match a line in error.log (req 0)
pipe.t TEST 29: interact with bc - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:40:00 [error] 12288\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
pipe.t TEST 29: interact with bc - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe.t TEST 29: interact with bc - status code ok got: ''
expected: '200'
pipe.t TEST 29: interact with bc - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'ok
'
pipe.t TEST 29: interact with bc - pattern "bc say 3" should match a line in error.log (req 1)
pipe.t TEST 29: interact with bc - pattern "bc say 8" should match a line in error.log (req 1)
pipe.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
pipe.t TEST 38: kill living sub-process during Lua VM destruction. - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe.t TEST 38: kill living sub-process during Lua VM destruction. - status code ok got: ''
expected: '200'
pipe.t TEST 38: kill living sub-process during Lua VM destruction. - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'ok
'
pipe.t TEST 38: kill living sub-process during Lua VM destruction. - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:40:04 [error] 12293\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
pipe.t TEST 38: kill living sub-process during Lua VM destruction. - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe.t TEST 38: kill living sub-process during Lua VM destruction. - status code ok got: ''
expected: '200'
pipe.t TEST 38: kill living sub-process during Lua VM destruction. - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'ok
'
pipe.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
pipe.t TEST 36: wait process which is terminated by a signal, using proc.kill - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe.t TEST 36: wait process which is terminated by a signal, using proc.kill - status code ok got: ''
expected: '200'
pipe.t TEST 36: wait process which is terminated by a signal, using proc.kill - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-signal
-15
'
pipe.t TEST 36: wait process which is terminated by a signal, using proc.kill - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:40:09 [error] 12298\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
pipe.t TEST 36: wait process which is terminated by a signal, using proc.kill - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe.t TEST 36: wait process which is terminated by a signal, using proc.kill - status code ok got: ''
expected: '200'
pipe.t TEST 36: wait process which is terminated by a signal, using proc.kill - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-signal
-15
'
pipe.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
pipe.t TEST 19: user case with send and shutdown - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe.t TEST 19: user case with send and shutdown - status code ok got: ''
expected: '200'
pipe.t TEST 19: user case with send and shutdown - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-0
-1
-5
-8192
'
pipe.t TEST 19: user case with send and shutdown - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:40:13 [error] 12303\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
pipe.t TEST 19: user case with send and shutdown - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe.t TEST 19: user case with send and shutdown - status code ok got: ''
expected: '200'
pipe.t TEST 19: user case with send and shutdown - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +0,0 @@
-0
-1
-5
-8192
'
pipe.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
pipe.t TEST 31: specify a string to spawn works like os.execute - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe.t TEST 31: specify a string to spawn works like os.execute - status code ok got: ''
expected: '200'
pipe.t TEST 31: specify a string to spawn works like os.execute - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-stdout: hello
-stderr: world
'
pipe.t TEST 31: specify a string to spawn works like os.execute - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:40:18 [error] 12308\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
pipe.t TEST 31: specify a string to spawn works like os.execute - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe.t TEST 31: specify a string to spawn works like os.execute - status code ok got: ''
expected: '200'
pipe.t TEST 31: specify a string to spawn works like os.execute - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-stdout: hello
-stderr: world
'
pipe.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
pipe.t TEST 24: shutdown a direction while a coroutine is waiting on it - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe.t TEST 24: shutdown a direction while a coroutine is waiting on it - status code ok got: ''
expected: '200'
pipe.t TEST 24: shutdown a direction while a coroutine is waiting on it - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-read stdout err: aborted
-read stderr err: aborted
-write stdin err: timeout
-write stdin err: aborted
'
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 - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:40:22 [error] 12313\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
pipe.t TEST 24: shutdown a direction while a coroutine is waiting on it - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe.t TEST 24: shutdown a direction while a coroutine is waiting on it - status code ok got: ''
expected: '200'
pipe.t TEST 24: shutdown a direction while a coroutine is waiting on it - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +0,0 @@
-read stdout err: aborted
-read stderr err: aborted
-write stdin err: timeout
-write stdin err: aborted
'
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 nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
pipe.t TEST 42: return nil plus string 'timeout' when waiting process timed out - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe.t TEST 42: return nil plus string 'timeout' when waiting process timed out - status code ok got: ''
expected: '200'
pipe.t TEST 42: return nil plus string 'timeout' when waiting process timed out - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-nil
-timeout
'
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 "[error]" should not match any line in error.log but matches line "2020/10/26 11:40:27 [error] 12318\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
pipe.t TEST 42: return nil plus string 'timeout' when waiting process timed out - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe.t TEST 42: return nil plus string 'timeout' when waiting process timed out - status code ok got: ''
expected: '200'
pipe.t TEST 42: return nil plus string 'timeout' when waiting process timed out - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-nil
-timeout
'
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 nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
pipe.t TEST 47: spawn process, with empty environ option (no values) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe.t TEST 47: spawn process, with empty environ option (no values) - status code ok got: ''
expected: '200'
pipe.t TEST 47: spawn process, with empty environ option (no values) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'TEST_ENV:
'
pipe.t TEST 47: spawn process, with empty environ option (no values) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:40:32 [error] 12323\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
pipe.t TEST 47: spawn process, with empty environ option (no values) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe.t TEST 47: spawn process, with empty environ option (no values) - status code ok got: ''
expected: '200'
pipe.t TEST 47: spawn process, with empty environ option (no values) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'TEST_ENV:
'
pipe.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
pipe.t TEST 14: wait process which terminated by signal - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe.t TEST 14: wait process which terminated by signal - status code ok got: ''
expected: '200'
pipe.t TEST 14: wait process which terminated by signal - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-signal
-15
'
pipe.t TEST 14: wait process which terminated by signal - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:40:36 [error] 12328\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
pipe.t TEST 14: wait process which terminated by signal - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe.t TEST 14: wait process which terminated by signal - status code ok got: ''
expected: '200'
pipe.t TEST 14: wait process which terminated by signal - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-signal
-15
'
pipe.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
pipe.t TEST 46: spawn process, with environ option (multiple values) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe.t TEST 46: spawn process, with environ option (multiple values) - status code ok got: ''
expected: '200'
pipe.t TEST 46: spawn process, with environ option (multiple values) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'blahblah hello
'
pipe.t TEST 46: spawn process, with environ option (multiple values) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:40:41 [error] 12333\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
pipe.t TEST 46: spawn process, with environ option (multiple values) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe.t TEST 46: spawn process, with environ option (multiple values) - status code ok got: ''
expected: '200'
pipe.t TEST 46: spawn process, with environ option (multiple values) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'blahblah hello
'
pipe.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
pipe.t TEST 30: allow to specify nil as terminator - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe.t TEST 30: allow to specify nil as terminator - status code ok got: ''
expected: '200'
pipe.t TEST 30: allow to specify nil as terminator - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'hello
'
pipe.t TEST 30: allow to specify nil as terminator - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:40:45 [error] 12338\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
pipe.t TEST 30: allow to specify nil as terminator - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe.t TEST 30: allow to specify nil as terminator - status code ok got: ''
expected: '200'
pipe.t TEST 30: allow to specify nil as terminator - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'hello
'
pipe.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
pipe.t TEST 4: check phase for process wait - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe.t TEST 4: check phase for process wait - status code ok got: ''
expected: '200'
pipe.t TEST 4: check phase for process wait - pattern "API disabled in the context of log_by_lua" should match a line in error.log (req 0)
pipe.t TEST 4: check phase for process wait - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe.t TEST 4: check phase for process wait - status code ok got: ''
expected: '200'
pipe.t TEST 4: check phase for process wait - pattern "API disabled in the context of log_by_lua" should match a line in error.log (req 1)
pipe.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
pipe.t TEST 27: ensure signals ignored by Nginx are reset. - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe.t TEST 27: ensure signals ignored by Nginx are reset. - status code ok got: ''
expected: '200'
pipe.t TEST 27: ensure signals ignored by Nginx are reset. - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'closed
'
pipe.t TEST 27: ensure signals ignored by Nginx are reset. - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:40:54 [error] 12367\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
pipe.t TEST 27: ensure signals ignored by Nginx are reset. - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe.t TEST 27: ensure signals ignored by Nginx are reset. - status code ok got: ''
expected: '200'
pipe.t TEST 27: ensure signals ignored by Nginx are reset. - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'closed
'
pipe.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
pipe.t TEST 13: wait process which exited abnormally - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe.t TEST 13: wait process which exited abnormally - status code ok got: ''
expected: '200'
pipe.t TEST 13: wait process which exited abnormally - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-exit
-2
'
pipe.t TEST 13: wait process which exited abnormally - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:40:59 [error] 12372\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
pipe.t TEST 13: wait process which exited abnormally - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe.t TEST 13: wait process which exited abnormally - status code ok got: ''
expected: '200'
pipe.t TEST 13: wait process which exited abnormally - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-exit
-2
'
pipe.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
pipe.t TEST 45: spawn process, with environ option (sanity) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe.t TEST 45: spawn process, with environ option (sanity) - status code ok got: ''
expected: '200'
pipe.t TEST 45: spawn process, with environ option (sanity) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'blahblah
'
pipe.t TEST 45: spawn process, with environ option (sanity) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:41:03 [error] 12377\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
pipe.t TEST 45: spawn process, with environ option (sanity) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe.t TEST 45: spawn process, with environ option (sanity) - status code ok got: ''
expected: '200'
pipe.t TEST 45: spawn process, with environ option (sanity) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'blahblah
'
pipe.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
pipe.t TEST 6: wait an already waited process - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe.t TEST 6: wait an already waited process - status code ok got: ''
expected: '200'
pipe.t TEST 6: wait an already waited process - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'exited
'
pipe.t TEST 6: wait an already waited process - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:41:08 [error] 12382\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
pipe.t TEST 6: wait an already waited process - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe.t TEST 6: wait an already waited process - status code ok got: ''
expected: '200'
pipe.t TEST 6: wait an already waited process - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'exited
'
pipe.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
pipe.t TEST 40: avoid shell cmd's constants being GCed - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe.t TEST 40: avoid shell cmd's constants being GCed - status code ok got: ''
expected: '200'
pipe.t TEST 40: avoid shell cmd's constants being GCed - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'ok
'
pipe.t TEST 40: avoid shell cmd's constants being GCed - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:41:12 [error] 12387\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
pipe.t TEST 40: avoid shell cmd's constants being GCed - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe.t TEST 40: avoid shell cmd's constants being GCed - status code ok got: ''
expected: '200'
pipe.t TEST 40: avoid shell cmd's constants being GCed - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'ok
'
pipe.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
pipe.t TEST 11: pid() return process pid - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe.t TEST 11: pid() return process pid - status code ok got: ''
expected: '200'
pipe.t TEST 11: pid() return process pid - response_body_like - response is expected () ''
doesn't match '(?^s:pid: \d+ type: number
pid: \d+ type: number
)'
pipe.t TEST 11: pid() return process pid - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:41:17 [error] 12392\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
pipe.t TEST 11: pid() return process pid - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe.t TEST 11: pid() return process pid - status code ok got: ''
expected: '200'
pipe.t TEST 11: pid() return process pid - response_body_like - response is expected () ''
doesn't match '(?^s:pid: \d+ type: number
pid: \d+ type: number
)'
pipe.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
pipe.t TEST 21: shutdown after write/stdout_read/stderr_read - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe.t TEST 21: shutdown after write/stdout_read/stderr_read - status code ok got: ''
expected: '200'
pipe.t TEST 21: shutdown after write/stdout_read/stderr_read - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-stdin: closed
-stdout: closed
-stderr: closed
'
pipe.t TEST 21: shutdown after write/stdout_read/stderr_read - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:41:21 [error] 12397\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
pipe.t TEST 21: shutdown after write/stdout_read/stderr_read - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe.t TEST 21: shutdown after write/stdout_read/stderr_read - status code ok got: ''
expected: '200'
pipe.t TEST 21: shutdown after write/stdout_read/stderr_read - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-stdin: closed
-stdout: closed
-stderr: closed
'
pipe.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
pipe.t TEST 39: avoided overwritting log fd when stderr is used as destination. - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe.t TEST 39: avoided overwritting log fd when stderr is used as destination. - status code ok got: ''
expected: '200'
pipe.t TEST 39: avoided overwritting log fd when stderr is used as destination. - response_body_like - response is expected () ''
doesn't match '(?^s:lua pipe child execvp\(\) failed while executing no-such-cmd \(2: No such file or directory\)
)'
pipe.t TEST 39: avoided overwritting log fd when stderr is used as destination. - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:41:26 [error] 12402\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
pipe.t TEST 39: avoided overwritting log fd when stderr is used as destination. - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe.t TEST 39: avoided overwritting log fd when stderr is used as destination. - status code ok got: ''
expected: '200'
pipe.t TEST 39: avoided overwritting log fd when stderr is used as destination. - response_body_like - response is expected () ''
doesn't match '(?^s:lua pipe child execvp\(\) failed while executing no-such-cmd \(2: No such file or directory\)
)'
pipe.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
pipe.t TEST 17: wait process, timeout - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe.t TEST 17: wait process, timeout - status code ok got: ''
expected: '200'
pipe.t TEST 17: wait process, timeout - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'timeout
'
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 "[error]" should not match any line in error.log but matches line "2020/10/26 11:41:30 [error] 12409\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
pipe.t TEST 17: wait process, timeout - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe.t TEST 17: wait process, timeout - status code ok got: ''
expected: '200'
pipe.t TEST 17: wait process, timeout - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'timeout
'
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 nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
pipe.t TEST 51: spawn process with wait_timeout option - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe.t TEST 51: spawn process with wait_timeout option - status code ok got: ''
expected: '200'
pipe.t TEST 51: spawn process with wait_timeout option - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'timeout
'
pipe.t TEST 51: spawn process with wait_timeout option - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:41:35 [error] 12414\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
pipe.t TEST 51: spawn process with wait_timeout option - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe.t TEST 51: spawn process with wait_timeout option - status code ok got: ''
expected: '200'
pipe.t TEST 51: spawn process with wait_timeout option - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'timeout
'
pipe.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
pipe.t TEST 48: spawn process, with invalid environ option - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe.t TEST 48: spawn process, with invalid environ option - status code ok got: ''
expected: '200'
pipe.t TEST 48: spawn process, with invalid environ option - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-bad environ option: table expected, got string
-bad value at index 2 of environ option: string expected, got number
-bad value at index 1 of environ option: 'name=[value]' format expected, got 'TEST_ENV'
-bad value at index 1 of environ option: 'name=[value]' format expected, got '=1'
'
pipe.t TEST 48: spawn process, with invalid environ option - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:41:40 [error] 12419\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
pipe.t TEST 48: spawn process, with invalid environ option - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe.t TEST 48: spawn process, with invalid environ option - status code ok got: ''
expected: '200'
pipe.t TEST 48: spawn process, with invalid environ option - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +0,0 @@
-bad environ option: table expected, got string
-bad value at index 2 of environ option: string expected, got number
-bad value at index 1 of environ option: 'name=[value]' format expected, got 'TEST_ENV'
-bad value at index 1 of environ option: 'name=[value]' format expected, got '=1'
'
pipe.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
pipe.t TEST 52: validate timeout options when spawning process - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe.t TEST 52: validate timeout options when spawning process - status code ok got: ''
expected: '200'
pipe.t TEST 52: validate timeout options when spawning process - response_body - response is expected (repeated req 0, req 0) @@ -1,15 +0,0 @@
-write_timeout:
-bad write_timeout option
-bad write_timeout option
-
-stdout_read_timeout:
-bad stdout_read_timeout option
-bad stdout_read_timeout option
-
-stderr_read_timeout:
-bad stderr_read_timeout option
-bad stderr_read_timeout option
-
-wait_timeout:
-bad wait_timeout option
-bad wait_timeout option
'
pipe.t TEST 52: validate timeout options when spawning process - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:41:44 [error] 12424\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
pipe.t TEST 52: validate timeout options when spawning process - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe.t TEST 52: validate timeout options when spawning process - status code ok got: ''
expected: '200'
pipe.t TEST 52: validate timeout options when spawning process - response_body - response is expected (repeated req 1, req 0) @@ -1,15 +0,0 @@
-write_timeout:
-bad write_timeout option
-bad write_timeout option
-
-stdout_read_timeout:
-bad stdout_read_timeout option
-bad stdout_read_timeout option
-
-stderr_read_timeout:
-bad stderr_read_timeout option
-bad stderr_read_timeout option
-
-wait_timeout:
-bad wait_timeout option
-bad wait_timeout option
'
pipe.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
pipe.t TEST 23: shutdown unknown direction - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe.t TEST 23: shutdown unknown direction - status code ok got: ''
expected: '200'
pipe.t TEST 23: shutdown unknown direction - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-bad shutdown arg: read
-bad shutdown arg: 0
'
pipe.t TEST 23: shutdown unknown direction - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:41:49 [error] 12429\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
pipe.t TEST 23: shutdown unknown direction - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe.t TEST 23: shutdown unknown direction - status code ok got: ''
expected: '200'
pipe.t TEST 23: shutdown unknown direction - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-bad shutdown arg: read
-bad shutdown arg: 0
'
pipe.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
pipe.t TEST 3: ensure process is destroyed in GC - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe.t TEST 3: ensure process is destroyed in GC - status code ok got: ''
expected: '200'
pipe.t TEST 3: ensure process is destroyed in GC - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'ok
'
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 "[error]" should not match any line in error.log but matches line "2020/10/26 11:41:53 [error] 12434\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
pipe.t TEST 3: ensure process is destroyed in GC - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe.t TEST 3: ensure process is destroyed in GC - status code ok got: ''
expected: '200'
pipe.t TEST 3: ensure process is destroyed in GC - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'ok
'
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 nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
pipe.t TEST 1: check pipe spawn arguments - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe.t TEST 1: check pipe spawn arguments - status code ok got: ''
expected: '200'
pipe.t TEST 1: check pipe spawn arguments - response_body - response is expected (repeated req 0, req 0) @@ -1,6 +0,0 @@
-bad args arg: table expected, got nil
-bad args arg: non-empty table expected
-bad buffer_size option
-bad buffer_size option
-ok
-bad buffer_size option
'
pipe.t TEST 1: check pipe spawn arguments - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:41:58 [error] 12439\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
pipe.t TEST 1: check pipe spawn arguments - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe.t TEST 1: check pipe spawn arguments - status code ok got: ''
expected: '200'
pipe.t TEST 1: check pipe spawn arguments - response_body - response is expected (repeated req 1, req 0) @@ -1,6 +0,0 @@
-bad args arg: table expected, got nil
-bad args arg: non-empty table expected
-bad buffer_size option
-bad buffer_size option
-ok
-bad buffer_size option
'
pipe.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
pipe.t TEST 33: wait process, process exited normally after waiting - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe.t TEST 33: wait process, process exited normally after waiting - status code ok got: ''
expected: '200'
pipe.t TEST 33: wait process, process exited normally after waiting - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-ok: true
-exit status: 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 0)
pipe.t TEST 33: wait process, process exited normally after waiting - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:42:02 [error] 12444\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
pipe.t TEST 33: wait process, process exited normally after waiting - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe.t TEST 33: wait process, process exited normally after waiting - status code ok got: ''
expected: '200'
pipe.t TEST 33: wait process, process exited normally after waiting - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-ok: true
-exit status: 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 nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
pipe.t TEST 37: kill living sub-process when the process instance is collected by GC. - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe.t TEST 37: kill living sub-process when the process instance is collected by GC. - status code ok got: ''
expected: '200'
pipe.t TEST 37: kill living sub-process when the process instance is collected by GC. - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'ok
'
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 "[error]" should not match any line in error.log but matches line "2020/10/26 11:42:07 [error] 12449\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
pipe.t TEST 37: kill living sub-process when the process instance is collected by GC. - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe.t TEST 37: kill living sub-process when the process instance is collected by GC. - status code ok got: ''
expected: '200'
pipe.t TEST 37: kill living sub-process when the process instance is collected by GC. - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'ok
'
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 nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
pipe.t TEST 7: more than one coroutines wait a process - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe.t TEST 7: more than one coroutines wait a process - status code ok got: ''
expected: '200'
pipe.t TEST 7: more than one coroutines wait a process - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-pipe busy waiting
-exited
'
pipe.t TEST 7: more than one coroutines wait a process - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:42:11 [error] 12454\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
pipe.t TEST 7: more than one coroutines wait a process - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe.t TEST 7: more than one coroutines wait a process - status code ok got: ''
expected: '200'
pipe.t TEST 7: more than one coroutines wait a process - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-pipe busy waiting
-exited
'
pipe.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
pipe.t TEST 26: interrupt signals which break io.popen should not break ngx.pipe IO - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe.t TEST 26: interrupt signals which break io.popen should not break ngx.pipe IO - status code ok got: ''
expected: '200'
pipe.t TEST 26: interrupt signals which break io.popen should not break ngx.pipe IO - response_body_like - response is expected () ''
doesn't match '(?^s:MD5\([^)]+\)= 8bc944dbd052ef51652e70a5104492e3
)'
pipe.t TEST 26: interrupt signals which break io.popen should not break ngx.pipe IO - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:42:16 [error] 12459\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
pipe.t TEST 26: interrupt signals which break io.popen should not break ngx.pipe IO - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe.t TEST 26: interrupt signals which break io.popen should not break ngx.pipe IO - status code ok got: ''
expected: '200'
pipe.t TEST 26: interrupt signals which break io.popen should not break ngx.pipe IO - response_body_like - response is expected () ''
doesn't match '(?^s:MD5\([^)]+\)= 8bc944dbd052ef51652e70a5104492e3
)'
pipe.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
pipe.t TEST 50: spawn process, with environ option containing nil holes - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe.t TEST 50: spawn process, with environ option containing nil holes - status code ok got: ''
expected: '200'
pipe.t TEST 50: spawn process, with environ option containing nil holes - response_body - response is expected (repeated req 0, req 0) @@ -1,5 +0,0 @@
-1
-1
-
-1
-1
'
pipe.t TEST 50: spawn process, with environ option containing nil holes - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:42:20 [error] 12464\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
pipe.t TEST 50: spawn process, with environ option containing nil holes - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe.t TEST 50: spawn process, with environ option containing nil holes - status code ok got: ''
expected: '200'
pipe.t TEST 50: spawn process, with environ option containing nil holes - response_body - response is expected (repeated req 1, req 0) @@ -1,5 +0,0 @@
-1
-1
-
-1
-1
'
pipe.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
pipe.t TEST 5: check process wait arguments - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe.t TEST 5: check process wait arguments - status code ok got: ''
expected: '500'
pipe.t TEST 5: check process wait arguments - pattern "(?^:\[error\] .*? runtime error: content_by_lua\(nginx\.conf\:\d+\):\d+: not a process instance)" should match a line in error.log (req 0)
pipe.t TEST 5: check process wait arguments - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe.t TEST 5: check process wait arguments - status code ok got: ''
expected: '500'
pipe.t TEST 5: check process wait arguments - pattern "(?^:\[error\] .*? runtime error: content_by_lua\(nginx\.conf\:\d+\):\d+: not a process instance)" should match a line in error.log (req 1)
pipe.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
pipe.t TEST 43: spawn sub-process when error_log is configured with syslog - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe.t TEST 43: spawn sub-process when error_log is configured with syslog - status code ok got: ''
expected: '200'
pipe.t TEST 43: spawn sub-process when error_log is configured with syslog - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-true
-exit
-0
'
pipe.t TEST 43: spawn sub-process when error_log is configured with syslog - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:42:29 [error] 12474\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
pipe.t TEST 43: spawn sub-process when error_log is configured with syslog - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe.t TEST 43: spawn sub-process when error_log is configured with syslog - status code ok got: ''
expected: '200'
pipe.t TEST 43: spawn sub-process when error_log is configured with syslog - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-true
-exit
-0
'
pipe.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
pipe.t TEST 2: spawn process, with buffer_size option - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe.t TEST 2: spawn process, with buffer_size option - status code ok got: ''
expected: '200'
pipe.t TEST 2: spawn process, with buffer_size option - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'ok
'
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 "[error]" should not match any line in error.log but matches line "2020/10/26 11:42:34 [error] 12481\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
pipe.t TEST 2: spawn process, with buffer_size option - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe.t TEST 2: spawn process, with buffer_size option - status code ok got: ''
expected: '200'
pipe.t TEST 2: spawn process, with buffer_size option - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'ok
'
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 nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
pipe.t TEST 15: avoid set_timeouts overflow - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe.t TEST 15: avoid set_timeouts overflow - status code ok got: ''
expected: '200'
pipe.t TEST 15: avoid set_timeouts overflow - response_body - response is expected (repeated req 0, req 0) @@ -1,15 +0,0 @@
-write_timeout:
-set_timeouts: ok
-failed to set timeouts: bad write_timeout option
-
-stdout_read_timeout:
-set_timeouts: ok
-failed to set timeouts: bad stdout_read_timeout option
-
-stderr_read_timeout:
-set_timeouts: ok
-failed to set timeouts: bad stderr_read_timeout option
-
-wait_timeout:
-set_timeouts: ok
-failed to set timeouts: bad wait_timeout option
'
pipe.t TEST 15: avoid set_timeouts overflow - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:42:38 [error] 12486\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
pipe.t TEST 15: avoid set_timeouts overflow - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe.t TEST 15: avoid set_timeouts overflow - status code ok got: ''
expected: '200'
pipe.t TEST 15: avoid set_timeouts overflow - response_body - response is expected (repeated req 1, req 0) @@ -1,15 +0,0 @@
-write_timeout:
-set_timeouts: ok
-failed to set timeouts: bad write_timeout option
-
-stdout_read_timeout:
-set_timeouts: ok
-failed to set timeouts: bad stdout_read_timeout option
-
-stderr_read_timeout:
-set_timeouts: ok
-failed to set timeouts: bad stderr_read_timeout option
-
-wait_timeout:
-set_timeouts: ok
-failed to set timeouts: bad wait_timeout option
'
pipe.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
pipe.t TEST 22: shutdown repeatedly is harmless - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe.t TEST 22: shutdown repeatedly is harmless - status code ok got: ''
expected: '200'
pipe.t TEST 22: shutdown repeatedly is harmless - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-stdin: closed
-stdout: closed
-stderr: closed
'
pipe.t TEST 22: shutdown repeatedly is harmless - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:42:43 [error] 12491\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
pipe.t TEST 22: shutdown repeatedly is harmless - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe.t TEST 22: shutdown repeatedly is harmless - status code ok got: ''
expected: '200'
pipe.t TEST 22: shutdown repeatedly is harmless - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-stdin: closed
-stdout: closed
-stderr: closed
'
pipe.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
pipe.t TEST 20: shutdown before write/stdout_read/stderr_read - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe.t TEST 20: shutdown before write/stdout_read/stderr_read - status code ok got: ''
expected: '200'
pipe.t TEST 20: shutdown before write/stdout_read/stderr_read - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-stdin: closed
-stdout: closed
-stderr: closed
'
pipe.t TEST 20: shutdown before write/stdout_read/stderr_read - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:42:48 [error] 12496\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
pipe.t TEST 20: shutdown before write/stdout_read/stderr_read - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe.t TEST 20: shutdown before write/stdout_read/stderr_read - status code ok got: ''
expected: '200'
pipe.t TEST 20: shutdown before write/stdout_read/stderr_read - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-stdin: closed
-stdout: closed
-stderr: closed
'
pipe.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
pipe.t TEST 12: wait process, aborted by uthread kill - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe.t TEST 12: wait process, aborted by uthread kill - status code ok got: ''
expected: '200'
pipe.t TEST 12: wait process, aborted by uthread kill - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'timeout
'
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 "[error]" should not match any line in error.log but matches line "2020/10/26 11:42:52 [error] 12501\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
pipe.t TEST 12: wait process, aborted by uthread kill - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe.t TEST 12: wait process, aborted by uthread kill - status code ok got: ''
expected: '200'
pipe.t TEST 12: wait process, aborted by uthread kill - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'timeout
'
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 nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
pipe.t TEST 25: shutdown when merge_stderr is true - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe.t TEST 25: shutdown when merge_stderr is true - status code ok got: ''
expected: '200'
pipe.t TEST 25: shutdown when merge_stderr is true - response_body - response is expected (repeated req 0, req 0) @@ -1,6 +0,0 @@
-shutdown stdout after read
-stdout: closed
-shutdown stdout before read
-stdout: closed
-shutdown stderr
-shutdown: merged to stdout
'
pipe.t TEST 25: shutdown when merge_stderr is true - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:42:57 [error] 12506\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
pipe.t TEST 25: shutdown when merge_stderr is true - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe.t TEST 25: shutdown when merge_stderr is true - status code ok got: ''
expected: '200'
pipe.t TEST 25: shutdown when merge_stderr is true - response_body - response is expected (repeated req 1, req 0) @@ -1,6 +0,0 @@
-shutdown stdout after read
-stdout: closed
-shutdown stdout before read
-stdout: closed
-shutdown stderr
-shutdown: merged to stdout
'
pipe.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
pipe.t TEST 41: log the signal info like what Nginx does for SIGCHLD - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe.t TEST 41: log the signal info like what Nginx does for SIGCHLD - status code ok got: ''
expected: '200'
pipe.t TEST 41: log the signal info like what Nginx does for SIGCHLD - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'ok
'
pipe.t TEST 41: log the signal info like what Nginx does for SIGCHLD - pattern "(?^:\[notice\] .* signal \d+ \(SIGCHLD\) received from \d+)" should match a line in error.log (req 0)
pipe.t TEST 41: log the signal info like what Nginx does for SIGCHLD - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:43:01 [error] 12511\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
pipe.t TEST 41: log the signal info like what Nginx does for SIGCHLD - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe.t TEST 41: log the signal info like what Nginx does for SIGCHLD - status code ok got: ''
expected: '200'
pipe.t TEST 41: log the signal info like what Nginx does for SIGCHLD - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'ok
'
pipe.t TEST 41: log the signal info like what Nginx does for SIGCHLD - pattern "(?^:\[notice\] .* signal \d+ \(SIGCHLD\) received from \d+)" should match a line in error.log (req 1)
pipe.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
pipe.t TEST 49: spawn process, with invalid environ option - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe.t TEST 49: spawn process, with invalid environ option - status code ok got: ''
expected: '200'
pipe.t TEST 49: spawn process, with invalid environ option - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-TEST_ENV:
-TEST_ENV: 1
-TEST_ENV:=1
'
pipe.t TEST 49: spawn process, with invalid environ option - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:43:06 [error] 12516\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
pipe.t TEST 49: spawn process, with invalid environ option - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe.t TEST 49: spawn process, with invalid environ option - status code ok got: ''
expected: '200'
pipe.t TEST 49: spawn process, with invalid environ option - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-TEST_ENV:
-TEST_ENV: 1
-TEST_ENV:=1
'
pipe.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
pipe.t TEST 10: wait process, process exited before waiting - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe.t TEST 10: wait process, process exited before waiting - status code ok got: ''
expected: '200'
pipe.t TEST 10: wait process, process exited before waiting - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-ok: true
-exit status: 0
'
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 "[error]" should not match any line in error.log but matches line "2020/10/26 11:43:10 [error] 12521\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
pipe.t TEST 10: wait process, process exited before waiting - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe.t TEST 10: wait process, process exited before waiting - status code ok got: ''
expected: '200'
pipe.t TEST 10: wait process, process exited before waiting - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-ok: true
-exit status: 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 nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
pipe.t TEST 35: kill exited process - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe.t TEST 35: kill exited process - status code ok got: ''
expected: '200'
pipe.t TEST 35: kill exited process - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-exited
-exited
'
pipe.t TEST 35: kill exited process - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:43:15 [error] 12526\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
pipe.t TEST 35: kill exited process - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe.t TEST 35: kill exited process - status code ok got: ''
expected: '200'
pipe.t TEST 35: kill exited process - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-exited
-exited
'
pipe.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
pipe.t TEST 28: ensure spawning process in init_by_lua is disabled. - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe.t TEST 28: ensure spawning process in init_by_lua is disabled. - status code ok got: ''
expected: '200'
pipe.t TEST 28: ensure spawning process in init_by_lua is disabled. - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'API disabled in the current context
'
pipe.t TEST 28: ensure spawning process in init_by_lua is disabled. - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:43:19 [error] 12531\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
pipe.t TEST 28: ensure spawning process in init_by_lua is disabled. - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe.t TEST 28: ensure spawning process in init_by_lua is disabled. - status code ok got: ''
expected: '200'
pipe.t TEST 28: ensure spawning process in init_by_lua is disabled. - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'API disabled in the current context
'
pipe.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
pipe.t TEST 34: kill process with invalid signal - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe.t TEST 34: kill process with invalid signal - status code ok got: ''
expected: '200'
pipe.t TEST 34: kill process with invalid signal - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-bad signal arg: number expected, got nil
-invalid signal
'
pipe.t TEST 34: kill process with invalid signal - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:43:24 [error] 12536\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
pipe.t TEST 34: kill process with invalid signal - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe.t TEST 34: kill process with invalid signal - status code ok got: ''
expected: '200'
pipe.t TEST 34: kill process with invalid signal - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-bad signal arg: number expected, got nil
-invalid signal
'
pipe.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
pipe.t TEST 8: wait process, process exited abnormally before waiting - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe.t TEST 8: wait process, process exited abnormally before waiting - status code ok got: ''
expected: '200'
pipe.t TEST 8: wait process, process exited abnormally before waiting - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'exit status: 2
'
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 "[error]" should not match any line in error.log but matches line "2020/10/26 11:43:28 [error] 12541\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
pipe.t TEST 8: wait process, process exited abnormally before waiting - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe.t TEST 8: wait process, process exited abnormally before waiting - status code ok got: ''
expected: '200'
pipe.t TEST 8: wait process, process exited abnormally before waiting - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'exit status: 2
'
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 nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
pipe.t TEST 44: wait process, aborted by uthread kill, with graceful shutdown - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe.t TEST 44: wait process, aborted by uthread kill, with graceful shutdown - status code ok got: ''
expected: '200'
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 +0,0 @@
-stdout: ok
-stderr err: closed
'
pipe.t TEST 44: wait process, aborted by uthread kill, with graceful shutdown - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:43:33 [error] 12546\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
pipe.t TEST 44: wait process, aborted by uthread kill, with graceful shutdown - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
pipe.t TEST 44: wait process, aborted by uthread kill, with graceful shutdown - status code ok got: ''
expected: '200'
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 +0,0 @@
-stdout: ok
-stderr err: closed
'
process-type-cache.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
process-type-cache.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
process-type-cache.t TEST 1: sanity - status code ok got: ''
expected: '200'
process-type-cache.t TEST 1: sanity - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "type: worker\x{0a}"
length: 13
strings begin to differ at char 1 (line 1 column 1)
process-type-cache.t TEST 1: sanity - grep_error_log_out (req 0) ''
doesn't match '(?^:\[TRACE\s+\d+ init_worker_by_lua:\d+ loop\]
\[TRACE\s+\d+ content_by_lua\(nginx.conf:\d+\):\d+ loop\]
)'
process-type-cache.t TEST 1: sanity - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:43:38 [error] 12555\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
process-type-cache.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
process-type-cache.t TEST 1: sanity - status code ok got: ''
expected: '200'
process-type-cache.t TEST 1: sanity - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "type: worker\x{0a}"
length: 13
strings begin to differ at char 1 (line 1 column 1)
process-type-cache.t TEST 1: sanity - grep_error_log_out (req 1) ''
doesn't match '(?^:\[TRACE\s+\d+ init_worker_by_lua:\d+ loop\]
\[TRACE\s+\d+ content_by_lua\(nginx.conf:\d+\):\d+ loop\]
)'
process-type-cache.t TEST 1: sanity - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:43:38 [error] 12555\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
process-type-hup.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
process-type-hup.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
process-type-hup.t TEST 1: sanity - status code ok got: ''
expected: '200'
process-type-hup.t TEST 1: sanity - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'type: worker
'
process-type-hup.t TEST 1: sanity - pattern "init_worker_by_lua:6: process type: privileged" should match a line in error.log (req 0)
process-type-hup.t TEST 1: sanity - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:43:43 [error] 12564\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
process-type-hup.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
process-type-hup.t TEST 1: sanity - status code ok got: ''
expected: '200'
process-type-hup.t TEST 1: sanity - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'type: worker
'
process-type-hup.t TEST 1: sanity - pattern "init_worker_by_lua:6: process type: privileged" should match a line in error.log (req 1)
process-type-hup.t TEST 1: sanity - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:43:43 [error] 12564\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
process-type-master.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
process-type-master.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
process-type-master.t TEST 1: sanity - status code ok got: ''
expected: '200'
process-type-master.t TEST 1: sanity - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "process type: master\x{0a}"
length: 21
strings begin to differ at char 1 (line 1 column 1)
process-type-master.t TEST 1: sanity - grep_error_log_out (req 0) ''
doesn't match '(?^:\A\[TRACE\s+\d+ init_by_lua:\d+ loop\]
\z)'
process-type-master.t TEST 1: sanity - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:43:48 [error] 12573\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
process-type-master.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
process-type-master.t TEST 1: sanity - status code ok got: ''
expected: '200'
process-type-master.t TEST 1: sanity - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "process type: master\x{0a}"
length: 21
strings begin to differ at char 1 (line 1 column 1)
process-type-master.t TEST 1: sanity - grep_error_log_out (req 1) ''
doesn't match '(?^:\A\[TRACE\s+\d+ init_by_lua:\d+ loop\]
\z)'
process-type-master.t TEST 1: sanity - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:43:48 [error] 12573\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
process-type-privileged-agent.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
process-type-privileged-agent.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
process-type-privileged-agent.t TEST 1: sanity - status code ok got: ''
expected: '200'
process-type-privileged-agent.t TEST 1: sanity - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "type: worker\x{0a}"
length: 13
strings begin to differ at char 1 (line 1 column 1)
process-type-privileged-agent.t TEST 1: sanity - grep_error_log_out (req 0) ''
doesn't match '(?^:\[TRACE\s+\d+ init_worker_by_lua:\d+ loop\]
(?:\[TRACE\s+\d+ init_worker_by_lua:\d+ loop\]
)?\[TRACE\s+\d+ content_by_lua\(nginx.conf:\d+\):\d+ loop\]
init_worker_by_lua:10: process type: privileged
)'
process-type-privileged-agent.t TEST 1: sanity - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:43:53 [error] 12581\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
process-type-privileged-agent.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
process-type-privileged-agent.t TEST 1: sanity - status code ok got: ''
expected: '200'
process-type-privileged-agent.t TEST 1: sanity - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "type: worker\x{0a}"
length: 13
strings begin to differ at char 1 (line 1 column 1)
process-type-privileged-agent.t TEST 1: sanity - grep_error_log_out (req 1) ''
doesn't match '(?^:\[TRACE\s+\d+ init_worker_by_lua:\d+ loop\]
(?:\[TRACE\s+\d+ init_worker_by_lua:\d+ loop\]
)?\[TRACE\s+\d+ content_by_lua\(nginx.conf:\d+\):\d+ loop\]
init_worker_by_lua:10: process type: privileged
)'
process-type-privileged-agent.t TEST 1: sanity - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:43:53 [error] 12581\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
process-type-privileged-agent.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
process-type-privileged-agent.t TEST 2: `enable_privileged_agent` disabled - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
process-type-privileged-agent.t TEST 2: `enable_privileged_agent` disabled - status code ok got: ''
expected: '500'
process-type-privileged-agent.t TEST 2: `enable_privileged_agent` disabled - response_body_like - response is expected () ''
doesn't match '(?^s:500 Internal Server Error)'
process-type-privileged-agent.t TEST 2: `enable_privileged_agent` disabled - pattern "(?^:\[error\] .*? API disabled in the current context)" should match a line in error.log (req 0)
process-type-privileged-agent.t TEST 2: `enable_privileged_agent` disabled - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
process-type-privileged-agent.t TEST 2: `enable_privileged_agent` disabled - status code ok got: ''
expected: '500'
process-type-privileged-agent.t TEST 2: `enable_privileged_agent` disabled - response_body_like - response is expected () ''
doesn't match '(?^s:500 Internal Server Error)'
process-type-privileged-agent.t TEST 2: `enable_privileged_agent` disabled - pattern "(?^:\[error\] .*? API disabled in the current context)" should match a line in error.log (req 1)
process-type-single.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
process-type-single.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
process-type-single.t TEST 1: sanity - status code ok got: ''
expected: '200'
process-type-single.t TEST 1: sanity - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "process type: single\x{0a}"
length: 21
strings begin to differ at char 1 (line 1 column 1)
process-type-single.t TEST 1: sanity - grep_error_log_out (req 0) ''
doesn't match '(?^:\[TRACE\s+\d+ init_by_lua:\d+ loop\]
\[TRACE\s+\d+ init_worker_by_lua:\d+ loop\]
\[TRACE\s+\d+ content_by_lua\(nginx.conf:\d+\):4 loop\]
process type in init_by_lua\*: single
init_worker_by_lua:10: process type: single
)'
process-type-single.t TEST 1: sanity - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:44:03 [error] 12594\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
process-type-single.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
process-type-single.t TEST 1: sanity - status code ok got: ''
expected: '200'
process-type-single.t TEST 1: sanity - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "process type: single\x{0a}"
length: 21
strings begin to differ at char 1 (line 1 column 1)
process-type-single.t TEST 1: sanity - grep_error_log_out (req 1) ''
doesn't match '(?^:\[TRACE\s+\d+ init_by_lua:\d+ loop\]
\[TRACE\s+\d+ init_worker_by_lua:\d+ loop\]
\[TRACE\s+\d+ content_by_lua\(nginx.conf:\d+\):4 loop\]
process type in init_by_lua\*: single
init_worker_by_lua:10: process type: single
)'
process-type-single.t TEST 1: sanity - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:44:03 [error] 12594\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
process-type-worker.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
process-type-worker.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
process-type-worker.t TEST 1: sanity - status code ok got: ''
expected: '200'
process-type-worker.t TEST 1: sanity - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "process type: worker\x{0a}"
length: 21
strings begin to differ at char 1 (line 1 column 1)
process-type-worker.t TEST 1: sanity - grep_error_log_out (req 0) ''
doesn't match '(?^:\[TRACE\s+\d+ init_worker_by_lua:4 loop\]
\[TRACE\s+\d+ content_by_lua\(nginx.conf:\d+\):4 loop\]
init_worker_by_lua:8: process type: worker
)'
process-type-worker.t TEST 1: sanity - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:44:08 [error] 12602\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
process-type-worker.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
process-type-worker.t TEST 1: sanity - status code ok got: ''
expected: '200'
process-type-worker.t TEST 1: sanity - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "process type: worker\x{0a}"
length: 21
strings begin to differ at char 1 (line 1 column 1)
process-type-worker.t TEST 1: sanity - grep_error_log_out (req 1) ''
doesn't match '(?^:\[TRACE\s+\d+ init_worker_by_lua:4 loop\]
\[TRACE\s+\d+ content_by_lua\(nginx.conf:\d+\):4 loop\]
init_worker_by_lua:8: process type: worker
)'
process-type-worker.t TEST 1: sanity - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:44:08 [error] 12602\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
re-base.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
re-base.t TEST 6: just not hit match limit - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
re-base.t TEST 6: just not hit match limit - status code ok got: ''
expected: '200'
re-base.t TEST 6: just not hit match limit - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'failed to match
'
re-base.t TEST 6: just not hit match limit - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
re-base.t TEST 6: just not hit match limit - status code ok got: ''
expected: '200'
re-base.t TEST 6: just not hit match limit - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'failed to match
'
re-base.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
re-base.t TEST 2: bad UTF-8 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
re-base.t TEST 2: bad UTF-8 - status code ok got: ''
expected: '200'
re-base.t TEST 2: bad UTF-8 - response_body_like - response is expected () ''
doesn't match '(?^s:error: pcre_exec\(\) failed: -10)'
re-base.t TEST 2: bad UTF-8 - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:44:17 [error] 12616\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
re-base.t TEST 2: bad UTF-8 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
re-base.t TEST 2: bad UTF-8 - status code ok got: ''
expected: '200'
re-base.t TEST 2: bad UTF-8 - response_body_like - response is expected () ''
doesn't match '(?^s:error: pcre_exec\(\) failed: -10)'
re-base.t TEST 2: bad UTF-8 - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:44:17 [error] 12616\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
re-base.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
re-base.t TEST 3: UTF-8 mode without UTF-8 sequence checks - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
re-base.t TEST 3: UTF-8 mode without UTF-8 sequence checks - status code ok got: ''
expected: '200'
re-base.t TEST 3: UTF-8 mode without UTF-8 sequence checks - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'ä½ 
'
re-base.t TEST 3: UTF-8 mode without UTF-8 sequence checks - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:44:22 [error] 12621\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
re-base.t TEST 3: UTF-8 mode without UTF-8 sequence checks - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
re-base.t TEST 3: UTF-8 mode without UTF-8 sequence checks - status code ok got: ''
expected: '200'
re-base.t TEST 3: UTF-8 mode without UTF-8 sequence checks - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'ä½ 
'
re-base.t TEST 3: UTF-8 mode without UTF-8 sequence checks - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:44:22 [error] 12621\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
re-base.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
re-base.t TEST 5: just hit match limit - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
re-base.t TEST 5: just hit match limit - status code ok got: ''
expected: '200'
re-base.t TEST 5: just hit match limit - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'error: pcre_exec() failed: -8
'
re-base.t TEST 5: just hit match limit - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
re-base.t TEST 5: just hit match limit - status code ok got: ''
expected: '200'
re-base.t TEST 5: just hit match limit - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'error: pcre_exec() failed: -8
'
re-base.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
re-base.t TEST 1: bad pattern - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
re-base.t TEST 1: bad pattern - status code ok got: ''
expected: '200'
re-base.t TEST 1: bad pattern - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'error: pcre_compile() failed: missing ) in "(abc"
'
re-base.t TEST 1: bad pattern - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:44:31 [error] 12632\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
re-base.t TEST 1: bad pattern - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
re-base.t TEST 1: bad pattern - status code ok got: ''
expected: '200'
re-base.t TEST 1: bad pattern - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'error: pcre_compile() failed: missing ) in "(abc"
'
re-base.t TEST 1: bad pattern - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:44:31 [error] 12632\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
re-base.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
re-base.t TEST 4: UTF-8 mode with UTF-8 sequence checks - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
re-base.t TEST 4: UTF-8 mode with UTF-8 sequence checks - status code ok got: ''
expected: '200'
re-base.t TEST 4: UTF-8 mode with UTF-8 sequence checks - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'ä½ 
'
re-base.t TEST 4: UTF-8 mode with UTF-8 sequence checks - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:44:35 [error] 12637\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
re-base.t TEST 4: UTF-8 mode with UTF-8 sequence checks - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
re-base.t TEST 4: UTF-8 mode with UTF-8 sequence checks - status code ok got: ''
expected: '200'
re-base.t TEST 4: UTF-8 mode with UTF-8 sequence checks - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'ä½ 
'
re-base.t TEST 4: UTF-8 mode with UTF-8 sequence checks - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:44:35 [error] 12637\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
re-bugs.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
re-bugs.t TEST 4: PCRE MAP_JIT workaround is not in effect under other OSs - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
re-bugs.t TEST 4: PCRE MAP_JIT workaround is not in effect under other OSs - status code ok got: ''
expected: '200'
re-bugs.t TEST 4: PCRE MAP_JIT workaround is not in effect under other OSs - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-c0
-c0
'
re-bugs.t TEST 4: PCRE MAP_JIT workaround is not in effect under other OSs - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:44:40 [error] 12645\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
re-bugs.t TEST 4: PCRE MAP_JIT workaround is not in effect under other OSs - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
re-bugs.t TEST 4: PCRE MAP_JIT workaround is not in effect under other OSs - status code ok got: ''
expected: '200'
re-bugs.t TEST 4: PCRE MAP_JIT workaround is not in effect under other OSs - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-c0
-c0
'
re-bugs.t TEST 4: PCRE MAP_JIT workaround is not in effect under other OSs - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:44:40 [error] 12645\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
re-find.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
re-find.t TEST 2: matched, no submatch, jit compile, regex cache - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
re-find.t TEST 2: matched, no submatch, jit compile, regex cache - status code ok got: ''
expected: '200'
re-find.t TEST 2: matched, no submatch, jit compile, regex cache - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-from: 1
-to: 1
-matched: a
'
re-find.t TEST 2: matched, no submatch, jit compile, regex cache - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):5 loop\])" should match a line in error.log (req 0)
re-find.t TEST 2: matched, no submatch, jit compile, regex cache - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:44:45 [error] 12653\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
re-find.t TEST 2: matched, no submatch, jit compile, regex cache - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
re-find.t TEST 2: matched, no submatch, jit compile, regex cache - status code ok got: ''
expected: '200'
re-find.t TEST 2: matched, no submatch, jit compile, regex cache - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-from: 1
-to: 1
-matched: a
'
re-find.t TEST 2: matched, no submatch, jit compile, regex cache - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):5 loop\])" should match a line in error.log (req 1)
re-find.t TEST 2: matched, no submatch, jit compile, regex cache - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:44:45 [error] 12653\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
re-find.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
re-find.t TEST 6: specify the group (2) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
re-find.t TEST 6: specify the group (2) - status code ok got: ''
expected: '200'
re-find.t TEST 6: specify the group (2) - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-from: 9
-to: 11
-matched: 234
'
re-find.t TEST 6: specify the group (2) - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):4 loop\])" should match a line in error.log (req 0)
re-find.t TEST 6: specify the group (2) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:44:49 [error] 12658\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
re-find.t TEST 6: specify the group (2) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
re-find.t TEST 6: specify the group (2) - status code ok got: ''
expected: '200'
re-find.t TEST 6: specify the group (2) - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-from: 9
-to: 11
-matched: 234
'
re-find.t TEST 6: specify the group (2) - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):4 loop\])" should match a line in error.log (req 1)
re-find.t TEST 6: specify the group (2) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:44:49 [error] 12658\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
re-find.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
re-find.t TEST 5: nil submatch (1st) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
re-find.t TEST 5: nil submatch (1st) - status code ok got: ''
expected: '200'
re-find.t TEST 5: nil submatch (1st) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'not matched!
'
re-find.t TEST 5: nil submatch (1st) - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):4 loop\])" should match a line in error.log (req 0)
re-find.t TEST 5: nil submatch (1st) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:44:54 [error] 12663\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
re-find.t TEST 5: nil submatch (1st) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
re-find.t TEST 5: nil submatch (1st) - status code ok got: ''
expected: '200'
re-find.t TEST 5: nil submatch (1st) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'not matched!
'
re-find.t TEST 5: nil submatch (1st) - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):4 loop\])" should match a line in error.log (req 1)
re-find.t TEST 5: nil submatch (1st) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:44:54 [error] 12663\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
re-find.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
re-find.t TEST 4: nil submatch (2nd) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
re-find.t TEST 4: nil submatch (2nd) - status code ok got: ''
expected: '200'
re-find.t TEST 4: nil submatch (2nd) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'not matched!
'
re-find.t TEST 4: nil submatch (2nd) - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):4 loop\])" should match a line in error.log (req 0)
re-find.t TEST 4: nil submatch (2nd) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:44:58 [error] 12668\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
re-find.t TEST 4: nil submatch (2nd) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
re-find.t TEST 4: nil submatch (2nd) - status code ok got: ''
expected: '200'
re-find.t TEST 4: nil submatch (2nd) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'not matched!
'
re-find.t TEST 4: nil submatch (2nd) - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):4 loop\])" should match a line in error.log (req 1)
re-find.t TEST 4: nil submatch (2nd) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:44:58 [error] 12668\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
re-find.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
re-find.t TEST 3: not matched, no submatch, jit compile, regex cache - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
re-find.t TEST 3: not matched, no submatch, jit compile, regex cache - status code ok got: ''
expected: '200'
re-find.t TEST 3: not matched, no submatch, jit compile, regex cache - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'no match
'
re-find.t TEST 3: not matched, no submatch, jit compile, regex cache - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):5 loop\])" should match a line in error.log (req 0)
re-find.t TEST 3: not matched, no submatch, jit compile, regex cache - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:45:03 [error] 12673\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
re-find.t TEST 3: not matched, no submatch, jit compile, regex cache - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
re-find.t TEST 3: not matched, no submatch, jit compile, regex cache - status code ok got: ''
expected: '200'
re-find.t TEST 3: not matched, no submatch, jit compile, regex cache - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'no match
'
re-find.t TEST 3: not matched, no submatch, jit compile, regex cache - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):5 loop\])" should match a line in error.log (req 1)
re-find.t TEST 3: not matched, no submatch, jit compile, regex cache - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:45:03 [error] 12673\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
re-find.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
re-find.t TEST 1: matched, no submatch, no jit compile, no regex cache - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
re-find.t TEST 1: matched, no submatch, no jit compile, no regex cache - status code ok got: ''
expected: '200'
re-find.t TEST 1: matched, no submatch, no jit compile, no regex cache - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-from: 1
-to: 1
-matched: a
'
re-find.t TEST 1: matched, no submatch, no jit compile, no regex cache - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):5 loop\])" should match a line in error.log (req 0)
re-find.t TEST 1: matched, no submatch, no jit compile, no regex cache - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:45:07 [error] 12678\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
re-find.t TEST 1: matched, no submatch, no jit compile, no regex cache - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
re-find.t TEST 1: matched, no submatch, no jit compile, no regex cache - status code ok got: ''
expected: '200'
re-find.t TEST 1: matched, no submatch, no jit compile, no regex cache - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-from: 1
-to: 1
-matched: a
'
re-find.t TEST 1: matched, no submatch, no jit compile, no regex cache - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):5 loop\])" should match a line in error.log (req 1)
re-find.t TEST 1: matched, no submatch, no jit compile, no regex cache - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:45:07 [error] 12678\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
re-gmatch.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
re-gmatch.t TEST 3: not matched, no submatch, jit compile, regex cache - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
re-gmatch.t TEST 3: not matched, no submatch, jit compile, regex cache - status code ok got: ''
expected: '200'
re-gmatch.t TEST 3: not matched, no submatch, jit compile, regex cache - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'no match
'
re-gmatch.t TEST 3: not matched, no submatch, jit compile, regex cache - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):4 loop\])" should match a line in error.log (req 0)
re-gmatch.t TEST 3: not matched, no submatch, jit compile, regex cache - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:45:12 [error] 12686\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
re-gmatch.t TEST 3: not matched, no submatch, jit compile, regex cache - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
re-gmatch.t TEST 3: not matched, no submatch, jit compile, regex cache - status code ok got: ''
expected: '200'
re-gmatch.t TEST 3: not matched, no submatch, jit compile, regex cache - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'no match
'
re-gmatch.t TEST 3: not matched, no submatch, jit compile, regex cache - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):4 loop\])" should match a line in error.log (req 1)
re-gmatch.t TEST 3: not matched, no submatch, jit compile, regex cache - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:45:12 [error] 12686\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
re-gmatch.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
re-gmatch.t TEST 1: matched, no submatch, no jit compile, no regex cache - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
re-gmatch.t TEST 1: matched, no submatch, no jit compile, no regex cache - status code ok got: ''
expected: '200'
re-gmatch.t TEST 1: matched, no submatch, no jit compile, no regex cache - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-matched: hello
-matched: world
'
re-gmatch.t TEST 1: matched, no submatch, no jit compile, no regex cache - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:45:17 [error] 12691\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
re-gmatch.t TEST 1: matched, no submatch, no jit compile, no regex cache - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
re-gmatch.t TEST 1: matched, no submatch, no jit compile, no regex cache - status code ok got: ''
expected: '200'
re-gmatch.t TEST 1: matched, no submatch, no jit compile, no regex cache - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-matched: hello
-matched: world
'
re-gmatch.t TEST 1: matched, no submatch, no jit compile, no regex cache - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:45:17 [error] 12691\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
re-gmatch.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
re-gmatch.t TEST 4: not matched, no submatch, no jit compile, no regex cache - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
re-gmatch.t TEST 4: not matched, no submatch, no jit compile, no regex cache - status code ok got: ''
expected: '200'
re-gmatch.t TEST 4: not matched, no submatch, no jit compile, no regex cache - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'no match
'
re-gmatch.t TEST 4: not matched, no submatch, no jit compile, no regex cache - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):4 loop\])" should match a line in error.log (req 0)
re-gmatch.t TEST 4: not matched, no submatch, no jit compile, no regex cache - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:45:21 [error] 12696\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
re-gmatch.t TEST 4: not matched, no submatch, no jit compile, no regex cache - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
re-gmatch.t TEST 4: not matched, no submatch, no jit compile, no regex cache - status code ok got: ''
expected: '200'
re-gmatch.t TEST 4: not matched, no submatch, no jit compile, no regex cache - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'no match
'
re-gmatch.t TEST 4: not matched, no submatch, no jit compile, no regex cache - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):4 loop\])" should match a line in error.log (req 1)
re-gmatch.t TEST 4: not matched, no submatch, no jit compile, no regex cache - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:45:21 [error] 12696\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
re-gmatch.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
re-gmatch.t TEST 12: an exhausted gmatch iterator should return nil - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
re-gmatch.t TEST 12: an exhausted gmatch iterator should return nil - status code ok got: ''
expected: '200'
re-gmatch.t TEST 12: an exhausted gmatch iterator should return nil - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-matched: hello
-matched: nil
-matched: nil
'
re-gmatch.t TEST 12: an exhausted gmatch iterator should return nil - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:45:26 [error] 12701\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
re-gmatch.t TEST 12: an exhausted gmatch iterator should return nil - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
re-gmatch.t TEST 12: an exhausted gmatch iterator should return nil - status code ok got: ''
expected: '200'
re-gmatch.t TEST 12: an exhausted gmatch iterator should return nil - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-matched: hello
-matched: nil
-matched: nil
'
re-gmatch.t TEST 12: an exhausted gmatch iterator should return nil - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:45:26 [error] 12701\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
re-gmatch.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
re-gmatch.t TEST 14: each gmatch iterator is separate - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
re-gmatch.t TEST 14: each gmatch iterator is separate - status code ok got: ''
expected: '200'
re-gmatch.t TEST 14: each gmatch iterator is separate - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-matched iter1 (1/2): 9
-matched iter2 (1/2): 1
-matched iter1 (2/2): 8
-matched iter2 (2/2): 2
'
re-gmatch.t TEST 14: each gmatch iterator is separate - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:45:30 [error] 12706\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
re-gmatch.t TEST 14: each gmatch iterator is separate - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
re-gmatch.t TEST 14: each gmatch iterator is separate - status code ok got: ''
expected: '200'
re-gmatch.t TEST 14: each gmatch iterator is separate - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +0,0 @@
-matched iter1 (1/2): 9
-matched iter2 (1/2): 1
-matched iter1 (2/2): 8
-matched iter2 (2/2): 2
'
re-gmatch.t TEST 14: each gmatch iterator is separate - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:45:30 [error] 12706\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
re-gmatch.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
re-gmatch.t TEST 11: subject is not a string type - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
re-gmatch.t TEST 11: subject is not a string type - status code ok got: ''
expected: '200'
re-gmatch.t TEST 11: subject is not a string type - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-12
-345
'
re-gmatch.t TEST 11: subject is not a string type - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:45:35 [error] 12711\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
re-gmatch.t TEST 11: subject is not a string type - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
re-gmatch.t TEST 11: subject is not a string type - status code ok got: ''
expected: '200'
re-gmatch.t TEST 11: subject is not a string type - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-12
-345
'
re-gmatch.t TEST 11: subject is not a string type - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:45:35 [error] 12711\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
re-gmatch.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
re-gmatch.t TEST 7: named submatches - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
re-gmatch.t TEST 7: named submatches - status code ok got: ''
expected: '200'
re-gmatch.t TEST 7: named submatches - response_body - response is expected (repeated req 0, req 0) @@ -1,10 +0,0 @@
-matched: hello
-$1: h
-$2: ello
-$first: h
-$second: nil
-matched: world
-$1: w
-$2: orld
-$first: w
-$second: nil
'
re-gmatch.t TEST 7: named submatches - pattern "(?^:\[TRACE\s+\d+\s+)" should match a line in error.log (req 0)
re-gmatch.t TEST 7: named submatches - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:45:39 [error] 12716\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
re-gmatch.t TEST 7: named submatches - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
re-gmatch.t TEST 7: named submatches - status code ok got: ''
expected: '200'
re-gmatch.t TEST 7: named submatches - response_body - response is expected (repeated req 1, req 0) @@ -1,10 +0,0 @@
-matched: hello
-$1: h
-$2: ello
-$first: h
-$second: nil
-matched: world
-$1: w
-$2: orld
-$first: w
-$second: nil
'
re-gmatch.t TEST 7: named submatches - pattern "(?^:\[TRACE\s+\d+\s+)" should match a line in error.log (req 1)
re-gmatch.t TEST 7: named submatches - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:45:39 [error] 12716\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
re-gmatch.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
re-gmatch.t TEST 6: submatches, matched, with regex cache - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
re-gmatch.t TEST 6: submatches, matched, with regex cache - status code ok got: ''
expected: '200'
re-gmatch.t TEST 6: submatches, matched, with regex cache - response_body - response is expected (repeated req 0, req 0) @@ -1,8 +0,0 @@
-matched: hello
-$1: h
-$2: ello
-$3: nil
-matched: world
-$1: w
-$2: orld
-$3: nil
'
re-gmatch.t TEST 6: submatches, matched, with regex cache - pattern "(?^:\[TRACE\s+\d+\s+)" should match a line in error.log (req 0)
re-gmatch.t TEST 6: submatches, matched, with regex cache - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:45:44 [error] 12721\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
re-gmatch.t TEST 6: submatches, matched, with regex cache - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
re-gmatch.t TEST 6: submatches, matched, with regex cache - status code ok got: ''
expected: '200'
re-gmatch.t TEST 6: submatches, matched, with regex cache - response_body - response is expected (repeated req 1, req 0) @@ -1,8 +0,0 @@
-matched: hello
-$1: h
-$2: ello
-$3: nil
-matched: world
-$1: w
-$2: orld
-$3: nil
'
re-gmatch.t TEST 6: submatches, matched, with regex cache - pattern "(?^:\[TRACE\s+\d+\s+)" should match a line in error.log (req 1)
re-gmatch.t TEST 6: submatches, matched, with regex cache - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:45:44 [error] 12721\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
re-gmatch.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
re-gmatch.t TEST 8: unmatched captures are false - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
re-gmatch.t TEST 8: unmatched captures are false - status code ok got: ''
expected: '200'
re-gmatch.t TEST 8: unmatched captures are false - response_body - response is expected (repeated req 0, req 0) @@ -1,8 +0,0 @@
-hello!
-hello
-false
-!
-world!
-world
-false
-!
'
re-gmatch.t TEST 8: unmatched captures are false - pattern "(?^:\[TRACE\s+\d+\s+)" should match a line in error.log (req 0)
re-gmatch.t TEST 8: unmatched captures are false - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:45:49 [error] 12726\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
re-gmatch.t TEST 8: unmatched captures are false - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
re-gmatch.t TEST 8: unmatched captures are false - status code ok got: ''
expected: '200'
re-gmatch.t TEST 8: unmatched captures are false - response_body - response is expected (repeated req 1, req 0) @@ -1,8 +0,0 @@
-hello!
-hello
-false
-!
-world!
-world
-false
-!
'
re-gmatch.t TEST 8: unmatched captures are false - pattern "(?^:\[TRACE\s+\d+\s+)" should match a line in error.log (req 1)
re-gmatch.t TEST 8: unmatched captures are false - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:45:49 [error] 12726\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
re-gmatch.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
re-gmatch.t TEST 15: gmatch (empty matched string) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
re-gmatch.t TEST 15: gmatch (empty matched string) - status code ok got: ''
expected: '200'
re-gmatch.t TEST 15: gmatch (empty matched string) - response_body - response is expected (repeated req 0, req 0) @@ -1,6 +0,0 @@
-matched: []
-matched: []
-matched: []
-matched: []
-matched: []
-matched: []
'
re-gmatch.t TEST 15: gmatch (empty matched string) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
re-gmatch.t TEST 15: gmatch (empty matched string) - status code ok got: ''
expected: '200'
re-gmatch.t TEST 15: gmatch (empty matched string) - response_body - response is expected (repeated req 1, req 0) @@ -1,6 +0,0 @@
-matched: []
-matched: []
-matched: []
-matched: []
-matched: []
-matched: []
'
re-gmatch.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
re-gmatch.t TEST 9: unmatched trailing captures are false - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
re-gmatch.t TEST 9: unmatched trailing captures are false - status code ok got: ''
expected: '200'
re-gmatch.t TEST 9: unmatched trailing captures are false - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-hello
-hello
-false
-false
'
re-gmatch.t TEST 9: unmatched trailing captures are false - pattern "(?^:\[TRACE\s+\d+\s+)" should match a line in error.log (req 0)
re-gmatch.t TEST 9: unmatched trailing captures are false - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:45:58 [error] 12736\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
re-gmatch.t TEST 9: unmatched trailing captures are false - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
re-gmatch.t TEST 9: unmatched trailing captures are false - status code ok got: ''
expected: '200'
re-gmatch.t TEST 9: unmatched trailing captures are false - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +0,0 @@
-hello
-hello
-false
-false
'
re-gmatch.t TEST 9: unmatched trailing captures are false - pattern "(?^:\[TRACE\s+\d+\s+)" should match a line in error.log (req 1)
re-gmatch.t TEST 9: unmatched trailing captures are false - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:45:58 [error] 12736\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
re-gmatch.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
re-gmatch.t TEST 2: matched, no submatch, jit compile, regex cache - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
re-gmatch.t TEST 2: matched, no submatch, jit compile, regex cache - status code ok got: ''
expected: '200'
re-gmatch.t TEST 2: matched, no submatch, jit compile, regex cache - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-matched: hello
-matched: world
'
re-gmatch.t TEST 2: matched, no submatch, jit compile, regex cache - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):4 loop\])" should match a line in error.log (req 0)
re-gmatch.t TEST 2: matched, no submatch, jit compile, regex cache - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:46:02 [error] 12741\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
re-gmatch.t TEST 2: matched, no submatch, jit compile, regex cache - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
re-gmatch.t TEST 2: matched, no submatch, jit compile, regex cache - status code ok got: ''
expected: '200'
re-gmatch.t TEST 2: matched, no submatch, jit compile, regex cache - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-matched: hello
-matched: world
'
re-gmatch.t TEST 2: matched, no submatch, jit compile, regex cache - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):4 loop\])" should match a line in error.log (req 1)
re-gmatch.t TEST 2: matched, no submatch, jit compile, regex cache - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:46:02 [error] 12741\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
re-gmatch.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
re-gmatch.t TEST 5: submatches, matched, no regex cache - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
re-gmatch.t TEST 5: submatches, matched, no regex cache - status code ok got: ''
expected: '200'
re-gmatch.t TEST 5: submatches, matched, no regex cache - response_body - response is expected (repeated req 0, req 0) @@ -1,8 +0,0 @@
-matched: hello
-$1: h
-$2: ello
-$3: nil
-matched: world
-$1: w
-$2: orld
-$3: nil
'
re-gmatch.t TEST 5: submatches, matched, no regex cache - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:46:07 [error] 12746\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
re-gmatch.t TEST 5: submatches, matched, no regex cache - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
re-gmatch.t TEST 5: submatches, matched, no regex cache - status code ok got: ''
expected: '200'
re-gmatch.t TEST 5: submatches, matched, no regex cache - response_body - response is expected (repeated req 1, req 0) @@ -1,8 +0,0 @@
-matched: hello
-$1: h
-$2: ello
-$3: nil
-matched: world
-$1: w
-$2: orld
-$3: nil
'
re-gmatch.t TEST 5: submatches, matched, no regex cache - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:46:07 [error] 12746\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
re-gmatch.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
re-gmatch.t TEST 10: unmatched named captures are false - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
re-gmatch.t TEST 10: unmatched named captures are false - status code ok got: ''
expected: '200'
re-gmatch.t TEST 10: unmatched named captures are false - response_body - response is expected (repeated req 0, req 0) @@ -1,14 +0,0 @@
-hello!
-hello
-false
-!
-hello
-false
-!
-world!
-world
-false
-!
-world
-false
-!
'
re-gmatch.t TEST 10: unmatched named captures are false - pattern "(?^:\[TRACE\s+\d+\s+)" should match a line in error.log (req 0)
re-gmatch.t TEST 10: unmatched named captures are false - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:46:11 [error] 12751\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
re-gmatch.t TEST 10: unmatched named captures are false - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
re-gmatch.t TEST 10: unmatched named captures are false - status code ok got: ''
expected: '200'
re-gmatch.t TEST 10: unmatched named captures are false - response_body - response is expected (repeated req 1, req 0) @@ -1,14 +0,0 @@
-hello!
-hello
-false
-!
-hello
-false
-!
-world!
-world
-false
-!
-world
-false
-!
'
re-gmatch.t TEST 10: unmatched named captures are false - pattern "(?^:\[TRACE\s+\d+\s+)" should match a line in error.log (req 1)
re-gmatch.t TEST 10: unmatched named captures are false - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:46:11 [error] 12751\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
re-gmatch.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
re-gmatch.t TEST 13: an error-ed out gmatch iterator should return nil - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
re-gmatch.t TEST 13: an error-ed out gmatch iterator should return nil - status code ok got: ''
expected: '200'
re-gmatch.t TEST 13: an error-ed out gmatch iterator should return nil - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-error: pcre_exec() failed: -10
-not matched
'
re-gmatch.t TEST 13: an error-ed out gmatch iterator should return nil - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:46:16 [error] 12756\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
re-gmatch.t TEST 13: an error-ed out gmatch iterator should return nil - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
re-gmatch.t TEST 13: an error-ed out gmatch iterator should return nil - status code ok got: ''
expected: '200'
re-gmatch.t TEST 13: an error-ed out gmatch iterator should return nil - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-error: pcre_exec() failed: -10
-not matched
'
re-gmatch.t TEST 13: an error-ed out gmatch iterator should return nil - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:46:16 [error] 12756\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
re-match.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
re-match.t TEST 1: matched, no submatch, no jit compile, no regex cache - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
re-match.t TEST 1: matched, no submatch, no jit compile, no regex cache - status code ok got: ''
expected: '200'
re-match.t TEST 1: matched, no submatch, no jit compile, no regex cache - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-matched: a
-$1: nil
'
re-match.t TEST 1: matched, no submatch, no jit compile, no regex cache - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):4 loop\])" should match a line in error.log (req 0)
re-match.t TEST 1: matched, no submatch, no jit compile, no regex cache - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:46:21 [error] 12764\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
re-match.t TEST 1: matched, no submatch, no jit compile, no regex cache - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
re-match.t TEST 1: matched, no submatch, no jit compile, no regex cache - status code ok got: ''
expected: '200'
re-match.t TEST 1: matched, no submatch, no jit compile, no regex cache - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-matched: a
-$1: nil
'
re-match.t TEST 1: matched, no submatch, no jit compile, no regex cache - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):4 loop\])" should match a line in error.log (req 1)
re-match.t TEST 1: matched, no submatch, no jit compile, no regex cache - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:46:21 [error] 12764\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
re-match.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
re-match.t TEST 14: subject is not a string type - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
re-match.t TEST 14: subject is not a string type - status code ok got: ''
expected: '200'
re-match.t TEST 14: subject is not a string type - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-12345
-12345
'
re-match.t TEST 14: subject is not a string type - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:46:25 [error] 12769\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
re-match.t TEST 14: subject is not a string type - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
re-match.t TEST 14: subject is not a string type - status code ok got: ''
expected: '200'
re-match.t TEST 14: subject is not a string type - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-12345
-12345
'
re-match.t TEST 14: subject is not a string type - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:46:25 [error] 12769\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
re-match.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
re-match.t TEST 5: submatches, matched, no regex cache - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
re-match.t TEST 5: submatches, matched, no regex cache - status code ok got: ''
expected: '200'
re-match.t TEST 5: submatches, matched, no regex cache - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-matched: 1234
-$1: 1
-$2: 234
-$3: nil
'
re-match.t TEST 5: submatches, matched, no regex cache - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:46:30 [error] 12774\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
re-match.t TEST 5: submatches, matched, no regex cache - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
re-match.t TEST 5: submatches, matched, no regex cache - status code ok got: ''
expected: '200'
re-match.t TEST 5: submatches, matched, no regex cache - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +0,0 @@
-matched: 1234
-$1: 1
-$2: 234
-$3: nil
'
re-match.t TEST 5: submatches, matched, no regex cache - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:46:30 [error] 12774\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
re-match.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
re-match.t TEST 8: named subpatterns w/ extraction (use of duplicate names in non-duplicate mode) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
re-match.t TEST 8: named subpatterns w/ extraction (use of duplicate names in non-duplicate mode) - status code ok got: ''
expected: '200'
re-match.t TEST 8: named subpatterns w/ extraction (use of duplicate names in non-duplicate mode) - response_body_like - response is expected () ''
doesn't match '(?^s:error: pcre_compile\(\) failed: two named subpatterns have the same name)'
re-match.t TEST 8: named subpatterns w/ extraction (use of duplicate names in non-duplicate mode) - pattern "(?^:\[TRACE\s+\d+)" should match a line in error.log (req 0)
re-match.t TEST 8: named subpatterns w/ extraction (use of duplicate names in non-duplicate mode) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:46:34 [error] 12779\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
re-match.t TEST 8: named subpatterns w/ extraction (use of duplicate names in non-duplicate mode) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
re-match.t TEST 8: named subpatterns w/ extraction (use of duplicate names in non-duplicate mode) - status code ok got: ''
expected: '200'
re-match.t TEST 8: named subpatterns w/ extraction (use of duplicate names in non-duplicate mode) - response_body_like - response is expected () ''
doesn't match '(?^s:error: pcre_compile\(\) failed: two named subpatterns have the same name)'
re-match.t TEST 8: named subpatterns w/ extraction (use of duplicate names in non-duplicate mode) - pattern "(?^:\[TRACE\s+\d+)" should match a line in error.log (req 1)
re-match.t TEST 8: named subpatterns w/ extraction (use of duplicate names in non-duplicate mode) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:46:34 [error] 12779\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
re-match.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
re-match.t TEST 15: subject is not a string type - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
re-match.t TEST 15: subject is not a string type - status code ok got: ''
expected: '200'
re-match.t TEST 15: subject is not a string type - response_body - response is expected (repeated req 0, req 0) got: ''
expected: '123
'
re-match.t TEST 15: subject is not a string type - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:46:39 [error] 12784\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
re-match.t TEST 15: subject is not a string type - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
re-match.t TEST 15: subject is not a string type - status code ok got: ''
expected: '200'
re-match.t TEST 15: subject is not a string type - response_body - response is expected (repeated req 1, req 0) got: ''
expected: '123
'
re-match.t TEST 15: subject is not a string type - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:46:39 [error] 12784\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
re-match.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
re-match.t TEST 7: named subpatterns w/ extraction (matched) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
re-match.t TEST 7: named subpatterns w/ extraction (matched) - status code ok got: ''
expected: '200'
re-match.t TEST 7: named subpatterns w/ extraction (matched) - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-hello, 1234
-hello
-hello
-nil
'
re-match.t TEST 7: named subpatterns w/ extraction (matched) - pattern "(?^:\[TRACE\s+\d+)" should match a line in error.log (req 0)
re-match.t TEST 7: named subpatterns w/ extraction (matched) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:46:43 [error] 12789\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
re-match.t TEST 7: named subpatterns w/ extraction (matched) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
re-match.t TEST 7: named subpatterns w/ extraction (matched) - status code ok got: ''
expected: '200'
re-match.t TEST 7: named subpatterns w/ extraction (matched) - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +0,0 @@
-hello, 1234
-hello
-hello
-nil
'
re-match.t TEST 7: named subpatterns w/ extraction (matched) - pattern "(?^:\[TRACE\s+\d+)" should match a line in error.log (req 1)
re-match.t TEST 7: named subpatterns w/ extraction (matched) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:46:43 [error] 12789\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
re-match.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
re-match.t TEST 3: not matched, no submatch, jit compile, regex cache - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
re-match.t TEST 3: not matched, no submatch, jit compile, regex cache - status code ok got: ''
expected: '200'
re-match.t TEST 3: not matched, no submatch, jit compile, regex cache - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'no match
'
re-match.t TEST 3: not matched, no submatch, jit compile, regex cache - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):4 loop\])" should match a line in error.log (req 0)
re-match.t TEST 3: not matched, no submatch, jit compile, regex cache - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:46:48 [error] 12794\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
re-match.t TEST 3: not matched, no submatch, jit compile, regex cache - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
re-match.t TEST 3: not matched, no submatch, jit compile, regex cache - status code ok got: ''
expected: '200'
re-match.t TEST 3: not matched, no submatch, jit compile, regex cache - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'no match
'
re-match.t TEST 3: not matched, no submatch, jit compile, regex cache - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):4 loop\])" should match a line in error.log (req 1)
re-match.t TEST 3: not matched, no submatch, jit compile, regex cache - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:46:48 [error] 12794\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
re-match.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
re-match.t TEST 2: matched, no submatch, jit compile, regex cache - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
re-match.t TEST 2: matched, no submatch, jit compile, regex cache - status code ok got: ''
expected: '200'
re-match.t TEST 2: matched, no submatch, jit compile, regex cache - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-matched: a
-$1: nil
'
re-match.t TEST 2: matched, no submatch, jit compile, regex cache - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):4 loop\])" should match a line in error.log (req 0)
re-match.t TEST 2: matched, no submatch, jit compile, regex cache - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:46:52 [error] 12799\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
re-match.t TEST 2: matched, no submatch, jit compile, regex cache - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
re-match.t TEST 2: matched, no submatch, jit compile, regex cache - status code ok got: ''
expected: '200'
re-match.t TEST 2: matched, no submatch, jit compile, regex cache - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-matched: a
-$1: nil
'
re-match.t TEST 2: matched, no submatch, jit compile, regex cache - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):4 loop\])" should match a line in error.log (req 1)
re-match.t TEST 2: matched, no submatch, jit compile, regex cache - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:46:52 [error] 12799\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
re-match.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
re-match.t TEST 11: unmatched captures are false - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
re-match.t TEST 11: unmatched captures are false - status code ok got: ''
expected: '200'
re-match.t TEST 11: unmatched captures are false - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-hello!
-hello
-false
-!
'
re-match.t TEST 11: unmatched captures are false - pattern "(?^:\[TRACE\s+\d+\s+)" should match a line in error.log (req 0)
re-match.t TEST 11: unmatched captures are false - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:46:57 [error] 12804\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
re-match.t TEST 11: unmatched captures are false - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
re-match.t TEST 11: unmatched captures are false - status code ok got: ''
expected: '200'
re-match.t TEST 11: unmatched captures are false - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +0,0 @@
-hello!
-hello
-false
-!
'
re-match.t TEST 11: unmatched captures are false - pattern "(?^:\[TRACE\s+\d+\s+)" should match a line in error.log (req 1)
re-match.t TEST 11: unmatched captures are false - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:46:57 [error] 12804\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
re-match.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
re-match.t TEST 4: not matched, no submatch, no jit compile, no regex cache - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
re-match.t TEST 4: not matched, no submatch, no jit compile, no regex cache - status code ok got: ''
expected: '200'
re-match.t TEST 4: not matched, no submatch, no jit compile, no regex cache - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'no match
'
re-match.t TEST 4: not matched, no submatch, no jit compile, no regex cache - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):4 loop\])" should match a line in error.log (req 0)
re-match.t TEST 4: not matched, no submatch, no jit compile, no regex cache - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:47:01 [error] 12809\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
re-match.t TEST 4: not matched, no submatch, no jit compile, no regex cache - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
re-match.t TEST 4: not matched, no submatch, no jit compile, no regex cache - status code ok got: ''
expected: '200'
re-match.t TEST 4: not matched, no submatch, no jit compile, no regex cache - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'no match
'
re-match.t TEST 4: not matched, no submatch, no jit compile, no regex cache - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):4 loop\])" should match a line in error.log (req 1)
re-match.t TEST 4: not matched, no submatch, no jit compile, no regex cache - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:47:01 [error] 12809\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
re-match.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
re-match.t TEST 10: captures input table in ngx.re.match - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
re-match.t TEST 10: captures input table in ngx.re.match - status code ok got: ''
expected: '200'
re-match.t TEST 10: captures input table in ngx.re.match - response_body - response is expected (repeated req 0, req 0) @@ -1,6 +0,0 @@
-1234
-1
-2
-3
-4
-hello
'
re-match.t TEST 10: captures input table in ngx.re.match - pattern "(?^:\[TRACE\s+\d+\s+)" should match a line in error.log (req 0)
re-match.t TEST 10: captures input table in ngx.re.match - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:47:06 [error] 12814\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
re-match.t TEST 10: captures input table in ngx.re.match - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
re-match.t TEST 10: captures input table in ngx.re.match - status code ok got: ''
expected: '200'
re-match.t TEST 10: captures input table in ngx.re.match - response_body - response is expected (repeated req 1, req 0) @@ -1,6 +0,0 @@
-1234
-1
-2
-3
-4
-hello
'
re-match.t TEST 10: captures input table in ngx.re.match - pattern "(?^:\[TRACE\s+\d+\s+)" should match a line in error.log (req 1)
re-match.t TEST 10: captures input table in ngx.re.match - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:47:06 [error] 12814\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
re-match.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
re-match.t TEST 6: submatches, matched, with regex cache - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
re-match.t TEST 6: submatches, matched, with regex cache - status code ok got: ''
expected: '200'
re-match.t TEST 6: submatches, matched, with regex cache - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-matched: 1234
-$1: 1
-$2: 234
-$3: nil
'
re-match.t TEST 6: submatches, matched, with regex cache - pattern "(?^:\[TRACE\s+\d+)" should match a line in error.log (req 0)
re-match.t TEST 6: submatches, matched, with regex cache - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:47:10 [error] 12819\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
re-match.t TEST 6: submatches, matched, with regex cache - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
re-match.t TEST 6: submatches, matched, with regex cache - status code ok got: ''
expected: '200'
re-match.t TEST 6: submatches, matched, with regex cache - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +0,0 @@
-matched: 1234
-$1: 1
-$2: 234
-$3: nil
'
re-match.t TEST 6: submatches, matched, with regex cache - pattern "(?^:\[TRACE\s+\d+)" should match a line in error.log (req 1)
re-match.t TEST 6: submatches, matched, with regex cache - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:47:10 [error] 12819\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
re-match.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
re-match.t TEST 13: unmatched named captures are false - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
re-match.t TEST 13: unmatched named captures are false - status code ok got: ''
expected: '200'
re-match.t TEST 13: unmatched named captures are false - response_body - response is expected (repeated req 0, req 0) @@ -1,7 +0,0 @@
-hello!
-hello
-false
-!
-hello
-false
-!
'
re-match.t TEST 13: unmatched named captures are false - pattern "(?^:\[TRACE\s+\d+\s+)" should match a line in error.log (req 0)
re-match.t TEST 13: unmatched named captures are false - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:47:15 [error] 12824\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
re-match.t TEST 13: unmatched named captures are false - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
re-match.t TEST 13: unmatched named captures are false - status code ok got: ''
expected: '200'
re-match.t TEST 13: unmatched named captures are false - response_body - response is expected (repeated req 1, req 0) @@ -1,7 +0,0 @@
-hello!
-hello
-false
-!
-hello
-false
-!
'
re-match.t TEST 13: unmatched named captures are false - pattern "(?^:\[TRACE\s+\d+\s+)" should match a line in error.log (req 1)
re-match.t TEST 13: unmatched named captures are false - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:47:15 [error] 12824\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
re-match.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
re-match.t TEST 9: named subpatterns w/ extraction (use of duplicate names in duplicate mode) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
re-match.t TEST 9: named subpatterns w/ extraction (use of duplicate names in duplicate mode) - status code ok got: ''
expected: '200'
re-match.t TEST 9: named subpatterns w/ extraction (use of duplicate names in duplicate mode) - response_body_like - response is expected () ''
doesn't match '(?^s:hello, 1234
h
ello
h|ello
nil
)'
re-match.t TEST 9: named subpatterns w/ extraction (use of duplicate names in duplicate mode) - pattern "(?^:\[TRACE\s+\d+)" should match a line in error.log (req 0)
re-match.t TEST 9: named subpatterns w/ extraction (use of duplicate names in duplicate mode) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:47:19 [error] 12829\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
re-match.t TEST 9: named subpatterns w/ extraction (use of duplicate names in duplicate mode) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
re-match.t TEST 9: named subpatterns w/ extraction (use of duplicate names in duplicate mode) - status code ok got: ''
expected: '200'
re-match.t TEST 9: named subpatterns w/ extraction (use of duplicate names in duplicate mode) - response_body_like - response is expected () ''
doesn't match '(?^s:hello, 1234
h
ello
h|ello
nil
)'
re-match.t TEST 9: named subpatterns w/ extraction (use of duplicate names in duplicate mode) - pattern "(?^:\[TRACE\s+\d+)" should match a line in error.log (req 1)
re-match.t TEST 9: named subpatterns w/ extraction (use of duplicate names in duplicate mode) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:47:19 [error] 12829\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
re-match.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
re-match.t TEST 12: unmatched trailing captures are false - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
re-match.t TEST 12: unmatched trailing captures are false - status code ok got: ''
expected: '200'
re-match.t TEST 12: unmatched trailing captures are false - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-hello
-hello
-false
-false
'
re-match.t TEST 12: unmatched trailing captures are false - pattern "(?^:\[TRACE\s+\d+\s+)" should match a line in error.log (req 0)
re-match.t TEST 12: unmatched trailing captures are false - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:47:24 [error] 12834\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
re-match.t TEST 12: unmatched trailing captures are false - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
re-match.t TEST 12: unmatched trailing captures are false - status code ok got: ''
expected: '200'
re-match.t TEST 12: unmatched trailing captures are false - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +0,0 @@
-hello
-hello
-false
-false
'
re-match.t TEST 12: unmatched trailing captures are false - pattern "(?^:\[TRACE\s+\d+\s+)" should match a line in error.log (req 1)
re-match.t TEST 12: unmatched trailing captures are false - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:47:24 [error] 12834\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
re-opt.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
re-opt.t TEST 1: default jit_stack_size too small - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
re-opt.t TEST 1: default jit_stack_size too small - status code ok got: ''
expected: '200'
re-opt.t TEST 1: default jit_stack_size too small - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'error: pcre_exec() failed: -27
'
re-opt.t TEST 1: default jit_stack_size too small - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:47:29 [error] 12842\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
re-opt.t TEST 1: default jit_stack_size too small - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
re-opt.t TEST 1: default jit_stack_size too small - status code ok got: ''
expected: '200'
re-opt.t TEST 1: default jit_stack_size too small - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'error: pcre_exec() failed: -27
'
re-opt.t TEST 1: default jit_stack_size too small - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:47:29 [error] 12842\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
re-opt.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
re-opt.t TEST 4: passing unknown options to ngx_re.opt throws an error - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
re-opt.t TEST 4: passing unknown options to ngx_re.opt throws an error - status code ok got: ''
expected: '200'
re-opt.t TEST 4: passing unknown options to ngx_re.opt throws an error - response_body_like - response is expected () ''
doesn't match '(?^s:unrecognized option name$)'
re-opt.t TEST 4: passing unknown options to ngx_re.opt throws an error - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:47:33 [error] 12847\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
re-opt.t TEST 4: passing unknown options to ngx_re.opt throws an error - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
re-opt.t TEST 4: passing unknown options to ngx_re.opt throws an error - status code ok got: ''
expected: '200'
re-opt.t TEST 4: passing unknown options to ngx_re.opt throws an error - response_body_like - response is expected () ''
doesn't match '(?^s:unrecognized option name$)'
re-opt.t TEST 4: passing unknown options to ngx_re.opt throws an error - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:47:33 [error] 12847\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
re-opt.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
re-opt.t TEST 2: increase jit_stack_size - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
re-opt.t TEST 2: increase jit_stack_size - status code ok got: ''
expected: '200'
re-opt.t TEST 2: increase jit_stack_size - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'from: 1
to: 1563
'
re-opt.t TEST 2: increase jit_stack_size - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:47:38 [error] 12852\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
re-opt.t TEST 2: increase jit_stack_size - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
re-opt.t TEST 2: increase jit_stack_size - status code ok got: ''
expected: '200'
re-opt.t TEST 2: increase jit_stack_size - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'from: 1
to: 1563
'
re-opt.t TEST 2: increase jit_stack_size - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:47:38 [error] 12852\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
re-opt.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
re-opt.t TEST 3: jit_stack_size change disallowed once regex cache is populated - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
re-opt.t TEST 3: jit_stack_size change disallowed once regex cache is populated - status code ok got: ''
expected: '200'
re-opt.t TEST 3: jit_stack_size change disallowed once regex cache is populated - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'from: 8
to: 8
'
re-opt.t TEST 3: jit_stack_size change disallowed once regex cache is populated - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
re-opt.t TEST 3: jit_stack_size change disallowed once regex cache is populated - status code ok got: ''
expected: '200'
re-opt.t TEST 3: jit_stack_size change disallowed once regex cache is populated - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'from: 8
to: 8
'
re-opt.t TEST 3: jit_stack_size change disallowed once regex cache is populated - grep_error_log_out (req 1) got: ''
expected: 'changing jit stack size is not allowed when some regexs have already been compiled and cached
'
re-split.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
re-split.t TEST 25: regex is "" with pos larger than subject length - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
re-split.t TEST 25: regex is "" with pos larger than subject length - status code ok got: ''
expected: '200'
re-split.t TEST 25: regex is "" with pos larger than subject length - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'len: 0
'
re-split.t TEST 25: regex is "" with pos larger than subject length - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:47:47 [error] 12865\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
re-split.t TEST 25: regex is "" with pos larger than subject length - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
re-split.t TEST 25: regex is "" with pos larger than subject length - status code ok got: ''
expected: '200'
re-split.t TEST 25: regex is "" with pos larger than subject length - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'len: 0
'
re-split.t TEST 25: regex is "" with pos larger than subject length - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:47:47 [error] 12865\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
re-split.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
re-split.t TEST 33: behavior with /^/m & max - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
re-split.t TEST 33: behavior with /^/m & max - status code ok got: ''
expected: '200'
re-split.t TEST 33: behavior with /^/m & max - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'ab
:cd
ef
len: 2
'
re-split.t TEST 33: behavior with /^/m & max - pattern "(?^:\[TRACE\s+\d+)" should match a line in error.log (req 0)
re-split.t TEST 33: behavior with /^/m & max - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:47:52 [error] 12870\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
re-split.t TEST 33: behavior with /^/m & max - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
re-split.t TEST 33: behavior with /^/m & max - status code ok got: ''
expected: '200'
re-split.t TEST 33: behavior with /^/m & max - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'ab
:cd
ef
len: 2
'
re-split.t TEST 33: behavior with /^/m & max - pattern "(?^:\[TRACE\s+\d+)" should match a line in error.log (req 1)
re-split.t TEST 33: behavior with /^/m & max - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:47:52 [error] 12870\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
re-split.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
re-split.t TEST 29: no match separator bis (github issue \#104) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
re-split.t TEST 29: no match separator bis (github issue \#104) - status code ok got: ''
expected: '200'
re-split.t TEST 29: no match separator bis (github issue \#104) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'a::b::c::d
len: 7
'
re-split.t TEST 29: no match separator bis (github issue \#104) - pattern "(?^:\[TRACE\s+\d+)" should match a line in error.log (req 0)
re-split.t TEST 29: no match separator bis (github issue \#104) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:47:56 [error] 12875\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
re-split.t TEST 29: no match separator bis (github issue \#104) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
re-split.t TEST 29: no match separator bis (github issue \#104) - status code ok got: ''
expected: '200'
re-split.t TEST 29: no match separator bis (github issue \#104) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'a::b::c::d
len: 7
'
re-split.t TEST 29: no match separator bis (github issue \#104) - pattern "(?^:\[TRACE\s+\d+)" should match a line in error.log (req 1)
re-split.t TEST 29: no match separator bis (github issue \#104) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:47:56 [error] 12875\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
re-split.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
re-split.t TEST 9: split matches + max limiter set to a negative value - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
re-split.t TEST 9: split matches + max limiter set to a negative value - status code ok got: ''
expected: '200'
re-split.t TEST 9: split matches + max limiter set to a negative value - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'a
b
c
d
e
'
re-split.t TEST 9: split matches + max limiter set to a negative value - pattern "(?^:\[TRACE\s+\d+)" should match a line in error.log (req 0)
re-split.t TEST 9: split matches + max limiter set to a negative value - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:48:01 [error] 12880\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
re-split.t TEST 9: split matches + max limiter set to a negative value - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
re-split.t TEST 9: split matches + max limiter set to a negative value - status code ok got: ''
expected: '200'
re-split.t TEST 9: split matches + max limiter set to a negative value - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'a
b
c
d
e
'
re-split.t TEST 9: split matches + max limiter set to a negative value - pattern "(?^:\[TRACE\s+\d+)" should match a line in error.log (req 1)
re-split.t TEST 9: split matches + max limiter set to a negative value - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:48:01 [error] 12880\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
re-split.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
re-split.t TEST 22: regex is "" - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
re-split.t TEST 22: regex is "" - status code ok got: ''
expected: '200'
re-split.t TEST 22: regex is "" - response_body - response is expected (repeated req 0, req 0) got: ''
expected: '1
2
3
4
5
len: 5
'
re-split.t TEST 22: regex is "" - pattern "(?^:\[TRACE\s+\d+)" should match a line in error.log (req 0)
re-split.t TEST 22: regex is "" - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:48:05 [error] 12885\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
re-split.t TEST 22: regex is "" - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
re-split.t TEST 22: regex is "" - status code ok got: ''
expected: '200'
re-split.t TEST 22: regex is "" - response_body - response is expected (repeated req 1, req 0) got: ''
expected: '1
2
3
4
5
len: 5
'
re-split.t TEST 22: regex is "" - pattern "(?^:\[TRACE\s+\d+)" should match a line in error.log (req 1)
re-split.t TEST 22: regex is "" - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:48:05 [error] 12885\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
re-split.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
re-split.t TEST 8: split matches + max limiter set to 0 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
re-split.t TEST 8: split matches + max limiter set to 0 - status code ok got: ''
expected: '200'
re-split.t TEST 8: split matches + max limiter set to 0 - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'a
b
c
d
e
'
re-split.t TEST 8: split matches + max limiter set to 0 - pattern "(?^:\[TRACE\s+\d+)" should match a line in error.log (req 0)
re-split.t TEST 8: split matches + max limiter set to 0 - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:48:10 [error] 12890\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
re-split.t TEST 8: split matches + max limiter set to 0 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
re-split.t TEST 8: split matches + max limiter set to 0 - status code ok got: ''
expected: '200'
re-split.t TEST 8: split matches + max limiter set to 0 - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'a
b
c
d
e
'
re-split.t TEST 8: split matches + max limiter set to 0 - pattern "(?^:\[TRACE\s+\d+)" should match a line in error.log (req 1)
re-split.t TEST 8: split matches + max limiter set to 0 - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:48:10 [error] 12890\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
re-split.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
re-split.t TEST 13: split matches, provided res table + max limiter - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
re-split.t TEST 13: split matches, provided res table + max limiter - status code ok got: ''
expected: '200'
re-split.t TEST 13: split matches, provided res table + max limiter - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'a
b
c,d,e
'
re-split.t TEST 13: split matches, provided res table + max limiter - pattern "(?^:\[TRACE\s+\d+)" should match a line in error.log (req 0)
re-split.t TEST 13: split matches, provided res table + max limiter - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:48:14 [error] 12895\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
re-split.t TEST 13: split matches, provided res table + max limiter - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
re-split.t TEST 13: split matches, provided res table + max limiter - status code ok got: ''
expected: '200'
re-split.t TEST 13: split matches, provided res table + max limiter - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'a
b
c,d,e
'
re-split.t TEST 13: split matches, provided res table + max limiter - pattern "(?^:\[TRACE\s+\d+)" should match a line in error.log (req 1)
re-split.t TEST 13: split matches, provided res table + max limiter - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:48:14 [error] 12895\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
re-split.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
re-split.t TEST 34: behavior with /^\d/m - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
re-split.t TEST 34: behavior with /^\d/m - status code ok got: ''
expected: '200'
re-split.t TEST 34: behavior with /^\d/m - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'ab
:cdefg
:hij
len: 3
'
re-split.t TEST 34: behavior with /^\d/m - pattern "(?^:\[TRACE\s+\d+)" should match a line in error.log (req 0)
re-split.t TEST 34: behavior with /^\d/m - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:48:19 [error] 12900\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
re-split.t TEST 34: behavior with /^\d/m - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
re-split.t TEST 34: behavior with /^\d/m - status code ok got: ''
expected: '200'
re-split.t TEST 34: behavior with /^\d/m - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'ab
:cdefg
:hij
len: 3
'
re-split.t TEST 34: behavior with /^\d/m - pattern "(?^:\[TRACE\s+\d+)" should match a line in error.log (req 1)
re-split.t TEST 34: behavior with /^\d/m - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:48:19 [error] 12900\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
re-split.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
re-split.t TEST 21: split matches, pos is larger than subject length - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
re-split.t TEST 21: split matches, pos is larger than subject length - status code ok got: ''
expected: '200'
re-split.t TEST 21: split matches, pos is larger than subject length - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'len: 0
'
re-split.t TEST 21: split matches, pos is larger than subject length - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:48:24 [error] 12905\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
re-split.t TEST 21: split matches, pos is larger than subject length - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
re-split.t TEST 21: split matches, pos is larger than subject length - status code ok got: ''
expected: '200'
re-split.t TEST 21: split matches, pos is larger than subject length - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'len: 0
'
re-split.t TEST 21: split matches, pos is larger than subject length - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:48:24 [error] 12905\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
re-split.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
re-split.t TEST 23: regex is "" with max - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
re-split.t TEST 23: regex is "" with max - status code ok got: ''
expected: '200'
re-split.t TEST 23: regex is "" with max - response_body - response is expected (repeated req 0, req 0) got: ''
expected: '1
2
345
len: 3
'
re-split.t TEST 23: regex is "" with max - pattern "(?^:\[TRACE\s+\d+)" should match a line in error.log (req 0)
re-split.t TEST 23: regex is "" with max - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:48:28 [error] 12910\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
re-split.t TEST 23: regex is "" with max - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
re-split.t TEST 23: regex is "" with max - status code ok got: ''
expected: '200'
re-split.t TEST 23: regex is "" with max - response_body - response is expected (repeated req 1, req 0) got: ''
expected: '1
2
345
len: 3
'
re-split.t TEST 23: regex is "" with max - pattern "(?^:\[TRACE\s+\d+)" should match a line in error.log (req 1)
re-split.t TEST 23: regex is "" with max - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:48:28 [error] 12910\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
re-split.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
re-split.t TEST 39: remaining characters are matched by regex (with max) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
re-split.t TEST 39: remaining characters are matched by regex (with max) - status code ok got: ''
expected: '200'
re-split.t TEST 39: remaining characters are matched by regex (with max) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: '1 a,b,cd,,,
2 a|b,cd,,,
3 a|b|cd,,,
4 a|b|cd|,,
5 a|b|cd||,
6 a|b|cd|||
6 a|b|cd|||
'
re-split.t TEST 39: remaining characters are matched by regex (with max) - pattern "(?^:\[TRACE\s+\d+)" should match a line in error.log (req 0)
re-split.t TEST 39: remaining characters are matched by regex (with max) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:48:33 [error] 12915\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
re-split.t TEST 39: remaining characters are matched by regex (with max) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
re-split.t TEST 39: remaining characters are matched by regex (with max) - status code ok got: ''
expected: '200'
re-split.t TEST 39: remaining characters are matched by regex (with max) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: '1 a,b,cd,,,
2 a|b,cd,,,
3 a|b|cd,,,
4 a|b|cd|,,
5 a|b|cd||,
6 a|b|cd|||
6 a|b|cd|||
'
re-split.t TEST 39: remaining characters are matched by regex (with max) - pattern "(?^:\[TRACE\s+\d+)" should match a line in error.log (req 1)
re-split.t TEST 39: remaining characters are matched by regex (with max) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:48:33 [error] 12915\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
re-split.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
re-split.t TEST 11: split matches, provided res table - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
re-split.t TEST 11: split matches, provided res table - status code ok got: ''
expected: '200'
re-split.t TEST 11: split matches, provided res table - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'a
b
c
d
e
'
re-split.t TEST 11: split matches, provided res table - pattern "(?^:\[TRACE\s+\d+)" should match a line in error.log (req 0)
re-split.t TEST 11: split matches, provided res table - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:48:37 [error] 12920\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
re-split.t TEST 11: split matches, provided res table - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
re-split.t TEST 11: split matches, provided res table - status code ok got: ''
expected: '200'
re-split.t TEST 11: split matches, provided res table - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'a
b
c
d
e
'
re-split.t TEST 11: split matches, provided res table - pattern "(?^:\[TRACE\s+\d+)" should match a line in error.log (req 1)
re-split.t TEST 11: split matches, provided res table - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:48:37 [error] 12920\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
re-split.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
re-split.t TEST 16: split matches, ctx arg - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
re-split.t TEST 16: split matches, ctx arg - status code ok got: ''
expected: '200'
re-split.t TEST 16: split matches, ctx arg - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'c
d
e
'
re-split.t TEST 16: split matches, ctx arg - pattern "(?^:\[TRACE\s+\d+)" should match a line in error.log (req 0)
re-split.t TEST 16: split matches, ctx arg - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:48:42 [error] 12925\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
re-split.t TEST 16: split matches, ctx arg - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
re-split.t TEST 16: split matches, ctx arg - status code ok got: ''
expected: '200'
re-split.t TEST 16: split matches, ctx arg - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'c
d
e
'
re-split.t TEST 16: split matches, ctx arg - pattern "(?^:\[TRACE\s+\d+)" should match a line in error.log (req 1)
re-split.t TEST 16: split matches, ctx arg - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:48:42 [error] 12925\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
re-split.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
re-split.t TEST 30: behavior with /^/ differs from Perl's split - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
re-split.t TEST 30: behavior with /^/ differs from Perl's split - status code ok got: ''
expected: '200'
re-split.t TEST 30: behavior with /^/ differs from Perl's split - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'ab
cd
ef
len: 1
'
re-split.t TEST 30: behavior with /^/ differs from Perl's split - pattern "(?^:\[TRACE\s+\d+)" should match a line in error.log (req 0)
re-split.t TEST 30: behavior with /^/ differs from Perl's split - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:48:46 [error] 12930\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
re-split.t TEST 30: behavior with /^/ differs from Perl's split - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
re-split.t TEST 30: behavior with /^/ differs from Perl's split - status code ok got: ''
expected: '200'
re-split.t TEST 30: behavior with /^/ differs from Perl's split - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'ab
cd
ef
len: 1
'
re-split.t TEST 30: behavior with /^/ differs from Perl's split - pattern "(?^:\[TRACE\s+\d+)" should match a line in error.log (req 1)
re-split.t TEST 30: behavior with /^/ differs from Perl's split - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:48:46 [error] 12930\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
re-split.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
re-split.t TEST 15: split matches, provided res table + max limiter + sub-match capturing group - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
re-split.t TEST 15: split matches, provided res table + max limiter + sub-match capturing group - status code ok got: ''
expected: '200'
re-split.t TEST 15: split matches, provided res table + max limiter + sub-match capturing group - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'a
,
b
,
c,d,e
'
re-split.t TEST 15: split matches, provided res table + max limiter + sub-match capturing group - pattern "(?^:\[TRACE\s+\d+)" should match a line in error.log (req 0)
re-split.t TEST 15: split matches, provided res table + max limiter + sub-match capturing group - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:48:51 [error] 12935\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
re-split.t TEST 15: split matches, provided res table + max limiter + sub-match capturing group - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
re-split.t TEST 15: split matches, provided res table + max limiter + sub-match capturing group - status code ok got: ''
expected: '200'
re-split.t TEST 15: split matches, provided res table + max limiter + sub-match capturing group - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'a
,
b
,
c,d,e
'
re-split.t TEST 15: split matches, provided res table + max limiter + sub-match capturing group - pattern "(?^:\[TRACE\s+\d+)" should match a line in error.log (req 1)
re-split.t TEST 15: split matches, provided res table + max limiter + sub-match capturing group - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:48:51 [error] 12935\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
re-split.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
re-split.t TEST 37: split by unit separator 2/2 (with ctx.pos) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
re-split.t TEST 37: split by unit separator 2/2 (with ctx.pos) - status code ok got: ''
expected: '200'
re-split.t TEST 37: split by unit separator 2/2 (with ctx.pos) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: '12 |||||||||||15
13 ||||||||||||15
13 |T|||||||||||15
'
re-split.t TEST 37: split by unit separator 2/2 (with ctx.pos) - pattern "(?^:\[TRACE\s+\d+)" should match a line in error.log (req 0)
re-split.t TEST 37: split by unit separator 2/2 (with ctx.pos) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:48:55 [error] 12940\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
re-split.t TEST 37: split by unit separator 2/2 (with ctx.pos) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
re-split.t TEST 37: split by unit separator 2/2 (with ctx.pos) - status code ok got: ''
expected: '200'
re-split.t TEST 37: split by unit separator 2/2 (with ctx.pos) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: '12 |||||||||||15
13 ||||||||||||15
13 |T|||||||||||15
'
re-split.t TEST 37: split by unit separator 2/2 (with ctx.pos) - pattern "(?^:\[TRACE\s+\d+)" should match a line in error.log (req 1)
re-split.t TEST 37: split by unit separator 2/2 (with ctx.pos) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:48:55 [error] 12940\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
re-split.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
re-split.t TEST 14: split matches, provided res table (non-cleared) + max limiter - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
re-split.t TEST 14: split matches, provided res table (non-cleared) + max limiter - status code ok got: ''
expected: '200'
re-split.t TEST 14: split matches, provided res table (non-cleared) + max limiter - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'a
b
c,d,e
'
re-split.t TEST 14: split matches, provided res table (non-cleared) + max limiter - pattern "(?^:\[TRACE\s+\d+)" should match a line in error.log (req 0)
re-split.t TEST 14: split matches, provided res table (non-cleared) + max limiter - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:49:00 [error] 12945\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
re-split.t TEST 14: split matches, provided res table (non-cleared) + max limiter - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
re-split.t TEST 14: split matches, provided res table (non-cleared) + max limiter - status code ok got: ''
expected: '200'
re-split.t TEST 14: split matches, provided res table (non-cleared) + max limiter - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'a
b
c,d,e
'
re-split.t TEST 14: split matches, provided res table (non-cleared) + max limiter - pattern "(?^:\[TRACE\s+\d+)" should match a line in error.log (req 1)
re-split.t TEST 14: split matches, provided res table (non-cleared) + max limiter - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:49:00 [error] 12945\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
re-split.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
re-split.t TEST 10: split matches + max limiter set to 1 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
re-split.t TEST 10: split matches + max limiter set to 1 - status code ok got: ''
expected: '200'
re-split.t TEST 10: split matches + max limiter set to 1 - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'a,b,c,d,e
'
re-split.t TEST 10: split matches + max limiter set to 1 - pattern "(?^:\[TRACE\s+\d+)" should match a line in error.log (req 0)
re-split.t TEST 10: split matches + max limiter set to 1 - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:49:04 [error] 12950\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
re-split.t TEST 10: split matches + max limiter set to 1 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
re-split.t TEST 10: split matches + max limiter set to 1 - status code ok got: ''
expected: '200'
re-split.t TEST 10: split matches + max limiter set to 1 - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'a,b,c,d,e
'
re-split.t TEST 10: split matches + max limiter set to 1 - pattern "(?^:\[TRACE\s+\d+)" should match a line in error.log (req 1)
re-split.t TEST 10: split matches + max limiter set to 1 - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:49:04 [error] 12950\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
re-split.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
re-split.t TEST 6: split matches + max limiter - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
re-split.t TEST 6: split matches + max limiter - status code ok got: ''
expected: '200'
re-split.t TEST 6: split matches + max limiter - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'a
b
c,d,e
'
re-split.t TEST 6: split matches + max limiter - pattern "(?^:\[TRACE\s+\d+)" should match a line in error.log (req 0)
re-split.t TEST 6: split matches + max limiter - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:49:09 [error] 12955\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
re-split.t TEST 6: split matches + max limiter - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
re-split.t TEST 6: split matches + max limiter - status code ok got: ''
expected: '200'
re-split.t TEST 6: split matches + max limiter - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'a
b
c,d,e
'
re-split.t TEST 6: split matches + max limiter - pattern "(?^:\[TRACE\s+\d+)" should match a line in error.log (req 1)
re-split.t TEST 6: split matches + max limiter - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:49:09 [error] 12955\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
re-split.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
re-split.t TEST 32: behavior with /^()/m (capture) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
re-split.t TEST 32: behavior with /^()/m (capture) - status code ok got: ''
expected: '200'
re-split.t TEST 32: behavior with /^()/m (capture) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'ab
::cd
::ef
len: 5
'
re-split.t TEST 32: behavior with /^()/m (capture) - pattern "(?^:\[TRACE\s+\d+)" should match a line in error.log (req 0)
re-split.t TEST 32: behavior with /^()/m (capture) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:49:13 [error] 12960\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
re-split.t TEST 32: behavior with /^()/m (capture) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
re-split.t TEST 32: behavior with /^()/m (capture) - status code ok got: ''
expected: '200'
re-split.t TEST 32: behavior with /^()/m (capture) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'ab
::cd
::ef
len: 5
'
re-split.t TEST 32: behavior with /^()/m (capture) - pattern "(?^:\[TRACE\s+\d+)" should match a line in error.log (req 1)
re-split.t TEST 32: behavior with /^()/m (capture) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:49:13 [error] 12960\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
re-split.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
re-split.t TEST 3: split matches, no submatch, jit compile, regex cache - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
re-split.t TEST 3: split matches, no submatch, jit compile, regex cache - status code ok got: ''
expected: '200'
re-split.t TEST 3: split matches, no submatch, jit compile, regex cache - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'a
b
c
d
'
re-split.t TEST 3: split matches, no submatch, jit compile, regex cache - pattern "(?^:\[TRACE\s+\d+)" should match a line in error.log (req 0)
re-split.t TEST 3: split matches, no submatch, jit compile, regex cache - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:49:18 [error] 12965\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
re-split.t TEST 3: split matches, no submatch, jit compile, regex cache - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
re-split.t TEST 3: split matches, no submatch, jit compile, regex cache - status code ok got: ''
expected: '200'
re-split.t TEST 3: split matches, no submatch, jit compile, regex cache - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'a
b
c
d
'
re-split.t TEST 3: split matches, no submatch, jit compile, regex cache - pattern "(?^:\[TRACE\s+\d+)" should match a line in error.log (req 1)
re-split.t TEST 3: split matches, no submatch, jit compile, regex cache - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:49:18 [error] 12965\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
re-split.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
re-split.t TEST 12: split matches, provided res table (non-cleared) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
re-split.t TEST 12: split matches, provided res table (non-cleared) - status code ok got: ''
expected: '200'
re-split.t TEST 12: split matches, provided res table (non-cleared) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'a
b
c
d
e
'
re-split.t TEST 12: split matches, provided res table (non-cleared) - pattern "(?^:\[TRACE\s+\d+)" should match a line in error.log (req 0)
re-split.t TEST 12: split matches, provided res table (non-cleared) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:49:22 [error] 12970\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
re-split.t TEST 12: split matches, provided res table (non-cleared) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
re-split.t TEST 12: split matches, provided res table (non-cleared) - status code ok got: ''
expected: '200'
re-split.t TEST 12: split matches, provided res table (non-cleared) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'a
b
c
d
e
'
re-split.t TEST 12: split matches, provided res table (non-cleared) - pattern "(?^:\[TRACE\s+\d+)" should match a line in error.log (req 1)
re-split.t TEST 12: split matches, provided res table (non-cleared) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:49:22 [error] 12970\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
re-split.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
re-split.t TEST 36: split by unit separator 1/2 (GH issue lua-nginx-module \#1217) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
re-split.t TEST 36: split by unit separator 1/2 (GH issue lua-nginx-module \#1217) - status code ok got: ''
expected: '200'
re-split.t TEST 36: split by unit separator 1/2 (GH issue lua-nginx-module \#1217) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: '15 1|T|||||||||||||15
15 1|T|T||||||||||||15
15 1|T|T|T|||||||||||15
'
re-split.t TEST 36: split by unit separator 1/2 (GH issue lua-nginx-module \#1217) - pattern "(?^:\[TRACE\s+\d+)" should match a line in error.log (req 0)
re-split.t TEST 36: split by unit separator 1/2 (GH issue lua-nginx-module \#1217) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:49:27 [error] 12975\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
re-split.t TEST 36: split by unit separator 1/2 (GH issue lua-nginx-module \#1217) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
re-split.t TEST 36: split by unit separator 1/2 (GH issue lua-nginx-module \#1217) - status code ok got: ''
expected: '200'
re-split.t TEST 36: split by unit separator 1/2 (GH issue lua-nginx-module \#1217) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: '15 1|T|||||||||||||15
15 1|T|T||||||||||||15
15 1|T|T|T|||||||||||15
'
re-split.t TEST 36: split by unit separator 1/2 (GH issue lua-nginx-module \#1217) - pattern "(?^:\[TRACE\s+\d+)" should match a line in error.log (req 1)
re-split.t TEST 36: split by unit separator 1/2 (GH issue lua-nginx-module \#1217) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:49:27 [error] 12975\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
re-split.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
re-split.t TEST 7: split matches + submatch + max limiter - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
re-split.t TEST 7: split matches + submatch + max limiter - status code ok got: ''
expected: '200'
re-split.t TEST 7: split matches + submatch + max limiter - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'a
,
b
,
c,d,e
'
re-split.t TEST 7: split matches + submatch + max limiter - pattern "(?^:\[TRACE\s+\d+)" should match a line in error.log (req 0)
re-split.t TEST 7: split matches + submatch + max limiter - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:49:31 [error] 12980\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
re-split.t TEST 7: split matches + submatch + max limiter - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
re-split.t TEST 7: split matches + submatch + max limiter - status code ok got: ''
expected: '200'
re-split.t TEST 7: split matches + submatch + max limiter - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'a
,
b
,
c,d,e
'
re-split.t TEST 7: split matches + submatch + max limiter - pattern "(?^:\[TRACE\s+\d+)" should match a line in error.log (req 1)
re-split.t TEST 7: split matches + submatch + max limiter - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:49:31 [error] 12980\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
re-split.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
re-split.t TEST 2: split matches, no submatch, no jit compile, no regex cache - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
re-split.t TEST 2: split matches, no submatch, no jit compile, no regex cache - status code ok got: ''
expected: '200'
re-split.t TEST 2: split matches, no submatch, no jit compile, no regex cache - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'a
b
c
d;e
'
re-split.t TEST 2: split matches, no submatch, no jit compile, no regex cache - pattern "(?^:\[TRACE\s+\d+)" should match a line in error.log (req 0)
re-split.t TEST 2: split matches, no submatch, no jit compile, no regex cache - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:49:36 [error] 12985\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
re-split.t TEST 2: split matches, no submatch, no jit compile, no regex cache - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
re-split.t TEST 2: split matches, no submatch, no jit compile, no regex cache - status code ok got: ''
expected: '200'
re-split.t TEST 2: split matches, no submatch, no jit compile, no regex cache - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'a
b
c
d;e
'
re-split.t TEST 2: split matches, no submatch, no jit compile, no regex cache - pattern "(?^:\[TRACE\s+\d+)" should match a line in error.log (req 1)
re-split.t TEST 2: split matches, no submatch, no jit compile, no regex cache - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:49:36 [error] 12985\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
re-split.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
re-split.t TEST 38: remaining characters are matched by regex (without max) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
re-split.t TEST 38: remaining characters are matched by regex (without max) - status code ok got: ''
expected: '200'
re-split.t TEST 38: remaining characters are matched by regex (without max) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: '3 a|b|cd
'
re-split.t TEST 38: remaining characters are matched by regex (without max) - pattern "(?^:\[TRACE\s+\d+)" should match a line in error.log (req 0)
re-split.t TEST 38: remaining characters are matched by regex (without max) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:49:41 [error] 12990\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
re-split.t TEST 38: remaining characters are matched by regex (without max) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
re-split.t TEST 38: remaining characters are matched by regex (without max) - status code ok got: ''
expected: '200'
re-split.t TEST 38: remaining characters are matched by regex (without max) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: '3 a|b|cd
'
re-split.t TEST 38: remaining characters are matched by regex (without max) - pattern "(?^:\[TRACE\s+\d+)" should match a line in error.log (req 1)
re-split.t TEST 38: remaining characters are matched by regex (without max) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:49:41 [error] 12990\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
re-split.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
re-split.t TEST 27: no match separator (github issue \#104) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
re-split.t TEST 27: no match separator (github issue \#104) - status code ok got: ''
expected: '200'
re-split.t TEST 27: no match separator (github issue \#104) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'a:b:c:d
len: 4
'
re-split.t TEST 27: no match separator (github issue \#104) - pattern "(?^:\[TRACE\s+\d+)" should match a line in error.log (req 0)
re-split.t TEST 27: no match separator (github issue \#104) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:49:45 [error] 12995\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
re-split.t TEST 27: no match separator (github issue \#104) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
re-split.t TEST 27: no match separator (github issue \#104) - status code ok got: ''
expected: '200'
re-split.t TEST 27: no match separator (github issue \#104) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'a:b:c:d
len: 4
'
re-split.t TEST 27: no match separator (github issue \#104) - pattern "(?^:\[TRACE\s+\d+)" should match a line in error.log (req 1)
re-split.t TEST 27: no match separator (github issue \#104) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:49:45 [error] 12995\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
re-split.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
re-split.t TEST 35: behavior with /^(\d)/m (capture) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
re-split.t TEST 35: behavior with /^(\d)/m (capture) - status code ok got: ''
expected: '200'
re-split.t TEST 35: behavior with /^(\d)/m (capture) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'ab
:1:cdefg
:2:hij
len: 5
'
re-split.t TEST 35: behavior with /^(\d)/m (capture) - pattern "(?^:\[TRACE\s+\d+)" should match a line in error.log (req 0)
re-split.t TEST 35: behavior with /^(\d)/m (capture) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:49:50 [error] 13000\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
re-split.t TEST 35: behavior with /^(\d)/m (capture) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
re-split.t TEST 35: behavior with /^(\d)/m (capture) - status code ok got: ''
expected: '200'
re-split.t TEST 35: behavior with /^(\d)/m (capture) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'ab
:1:cdefg
:2:hij
len: 5
'
re-split.t TEST 35: behavior with /^(\d)/m (capture) - pattern "(?^:\[TRACE\s+\d+)" should match a line in error.log (req 1)
re-split.t TEST 35: behavior with /^(\d)/m (capture) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:49:50 [error] 13000\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
re-split.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
re-split.t TEST 19: split no matches - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
re-split.t TEST 19: split no matches - status code ok got: ''
expected: '200'
re-split.t TEST 19: split no matches - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'abcd
'
re-split.t TEST 19: split no matches - pattern "(?^:\[TRACE\s+\d+)" should match a line in error.log (req 0)
re-split.t TEST 19: split no matches - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:49:54 [error] 13005\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
re-split.t TEST 19: split no matches - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
re-split.t TEST 19: split no matches - status code ok got: ''
expected: '200'
re-split.t TEST 19: split no matches - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'abcd
'
re-split.t TEST 19: split no matches - pattern "(?^:\[TRACE\s+\d+)" should match a line in error.log (req 1)
re-split.t TEST 19: split no matches - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:49:54 [error] 13005\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
re-split.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
re-split.t TEST 26: regex is "" with pos & max - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
re-split.t TEST 26: regex is "" with pos & max - status code ok got: ''
expected: '200'
re-split.t TEST 26: regex is "" with pos & max - response_body - response is expected (repeated req 0, req 0) got: ''
expected: '2
345
len: 2
'
re-split.t TEST 26: regex is "" with pos & max - pattern "(?^:\[TRACE\s+\d+)" should match a line in error.log (req 0)
re-split.t TEST 26: regex is "" with pos & max - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:49:59 [error] 13010\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
re-split.t TEST 26: regex is "" with pos & max - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
re-split.t TEST 26: regex is "" with pos & max - status code ok got: ''
expected: '200'
re-split.t TEST 26: regex is "" with pos & max - response_body - response is expected (repeated req 1, req 0) got: ''
expected: '2
345
len: 2
'
re-split.t TEST 26: regex is "" with pos & max - pattern "(?^:\[TRACE\s+\d+)" should match a line in error.log (req 1)
re-split.t TEST 26: regex is "" with pos & max - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:49:59 [error] 13010\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
re-split.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
re-split.t TEST 4: split matches + submatch (matching) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
re-split.t TEST 4: split matches + submatch (matching) - status code ok got: ''
expected: '200'
re-split.t TEST 4: split matches + submatch (matching) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'a
;
b
;
c
;
d,e
'
re-split.t TEST 4: split matches + submatch (matching) - pattern "(?^:\[TRACE\s+\d+)" should match a line in error.log (req 0)
re-split.t TEST 4: split matches + submatch (matching) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:50:03 [error] 13015\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
re-split.t TEST 4: split matches + submatch (matching) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
re-split.t TEST 4: split matches + submatch (matching) - status code ok got: ''
expected: '200'
re-split.t TEST 4: split matches + submatch (matching) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'a
;
b
;
c
;
d,e
'
re-split.t TEST 4: split matches + submatch (matching) - pattern "(?^:\[TRACE\s+\d+)" should match a line in error.log (req 1)
re-split.t TEST 4: split matches + submatch (matching) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:50:03 [error] 13015\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
re-split.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
re-split.t TEST 40: cannot load ngx.re module when lacking PCRE support - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
re-split.t TEST 40: cannot load ngx.re module when lacking PCRE support - status code ok got: ''
expected: '200'
re-split.t TEST 40: cannot load ngx.re module when lacking PCRE support - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'no support for 'ngx.re' module: OpenResty was compiled without PCRE support
'
re-split.t TEST 40: cannot load ngx.re module when lacking PCRE support - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:50:08 [error] 13020\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
re-split.t TEST 40: cannot load ngx.re module when lacking PCRE support - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
re-split.t TEST 40: cannot load ngx.re module when lacking PCRE support - status code ok got: ''
expected: '200'
re-split.t TEST 40: cannot load ngx.re module when lacking PCRE support - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'no support for 'ngx.re' module: OpenResty was compiled without PCRE support
'
re-split.t TEST 40: cannot load ngx.re module when lacking PCRE support - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:50:08 [error] 13020\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
re-split.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
re-split.t TEST 1: split matches, no submatch, no jit compile, no regex cache - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
re-split.t TEST 1: split matches, no submatch, no jit compile, no regex cache - status code ok got: ''
expected: '200'
re-split.t TEST 1: split matches, no submatch, no jit compile, no regex cache - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'a
b
c
d
'
re-split.t TEST 1: split matches, no submatch, no jit compile, no regex cache - pattern "(?^:\[TRACE\s+\d+)" should match a line in error.log (req 0)
re-split.t TEST 1: split matches, no submatch, no jit compile, no regex cache - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:50:12 [error] 13025\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
re-split.t TEST 1: split matches, no submatch, no jit compile, no regex cache - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
re-split.t TEST 1: split matches, no submatch, no jit compile, no regex cache - status code ok got: ''
expected: '200'
re-split.t TEST 1: split matches, no submatch, no jit compile, no regex cache - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'a
b
c
d
'
re-split.t TEST 1: split matches, no submatch, no jit compile, no regex cache - pattern "(?^:\[TRACE\s+\d+)" should match a line in error.log (req 1)
re-split.t TEST 1: split matches, no submatch, no jit compile, no regex cache - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:50:12 [error] 13025\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
re-split.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
re-split.t TEST 17: split matches, trailing subjects - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
re-split.t TEST 17: split matches, trailing subjects - status code ok got: ''
expected: '200'
re-split.t TEST 17: split matches, trailing subjects - response_body - response is expected (repeated req 0, req 0) got: ''
expected: '_blank_
a
b
c
d
'
re-split.t TEST 17: split matches, trailing subjects - pattern "(?^:\[TRACE\s+\d+)" should match a line in error.log (req 0)
re-split.t TEST 17: split matches, trailing subjects - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:50:17 [error] 13030\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
re-split.t TEST 17: split matches, trailing subjects - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
re-split.t TEST 17: split matches, trailing subjects - status code ok got: ''
expected: '200'
re-split.t TEST 17: split matches, trailing subjects - response_body - response is expected (repeated req 1, req 0) got: ''
expected: '_blank_
a
b
c
d
'
re-split.t TEST 17: split matches, trailing subjects - pattern "(?^:\[TRACE\s+\d+)" should match a line in error.log (req 1)
re-split.t TEST 17: split matches, trailing subjects - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:50:17 [error] 13030\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
re-split.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
re-split.t TEST 5: split matches + submatch (not matching) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
re-split.t TEST 5: split matches + submatch (not matching) - status code ok got: ''
expected: '200'
re-split.t TEST 5: split matches + submatch (not matching) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'a
b
c
d
e
'
re-split.t TEST 5: split matches + submatch (not matching) - pattern "(?^:\[TRACE\s+\d+)" should match a line in error.log (req 0)
re-split.t TEST 5: split matches + submatch (not matching) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:50:21 [error] 13035\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
re-split.t TEST 5: split matches + submatch (not matching) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
re-split.t TEST 5: split matches + submatch (not matching) - status code ok got: ''
expected: '200'
re-split.t TEST 5: split matches + submatch (not matching) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'a
b
c
d
e
'
re-split.t TEST 5: split matches + submatch (not matching) - pattern "(?^:\[TRACE\s+\d+)" should match a line in error.log (req 1)
re-split.t TEST 5: split matches + submatch (not matching) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:50:21 [error] 13035\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
re-split.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
re-split.t TEST 24: regex is "" with pos - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
re-split.t TEST 24: regex is "" with pos - status code ok got: ''
expected: '200'
re-split.t TEST 24: regex is "" with pos - response_body - response is expected (repeated req 0, req 0) got: ''
expected: '2
3
4
5
len: 4
'
re-split.t TEST 24: regex is "" with pos - pattern "(?^:\[TRACE\s+\d+)" should match a line in error.log (req 0)
re-split.t TEST 24: regex is "" with pos - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:50:26 [error] 13040\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
re-split.t TEST 24: regex is "" with pos - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
re-split.t TEST 24: regex is "" with pos - status code ok got: ''
expected: '200'
re-split.t TEST 24: regex is "" with pos - response_body - response is expected (repeated req 1, req 0) got: ''
expected: '2
3
4
5
len: 4
'
re-split.t TEST 24: regex is "" with pos - pattern "(?^:\[TRACE\s+\d+)" should match a line in error.log (req 1)
re-split.t TEST 24: regex is "" with pos - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:50:26 [error] 13040\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
re-split.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
re-split.t TEST 18: split matches, real use-case - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
re-split.t TEST 18: split matches, real use-case - status code ok got: ''
expected: '200'
re-split.t TEST 18: split matches, real use-case - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'abcd
erfg
ghij
hello world
aaa
'
re-split.t TEST 18: split matches, real use-case - pattern "(?^:\[TRACE\s+\d+)" should match a line in error.log (req 0)
re-split.t TEST 18: split matches, real use-case - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:50:30 [error] 13045\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
re-split.t TEST 18: split matches, real use-case - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
re-split.t TEST 18: split matches, real use-case - status code ok got: ''
expected: '200'
re-split.t TEST 18: split matches, real use-case - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'abcd
erfg
ghij
hello world
aaa
'
re-split.t TEST 18: split matches, real use-case - pattern "(?^:\[TRACE\s+\d+)" should match a line in error.log (req 1)
re-split.t TEST 18: split matches, real use-case - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:50:30 [error] 13045\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
re-split.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
re-split.t TEST 20: subject is not a string type - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
re-split.t TEST 20: subject is not a string type - status code ok got: ''
expected: '200'
re-split.t TEST 20: subject is not a string type - response_body - response is expected (repeated req 0, req 0) got: ''
expected: '1
451
45
'
re-split.t TEST 20: subject is not a string type - pattern "(?^:\[TRACE\s+\d+)" should match a line in error.log (req 0)
re-split.t TEST 20: subject is not a string type - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:50:35 [error] 13050\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
re-split.t TEST 20: subject is not a string type - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
re-split.t TEST 20: subject is not a string type - status code ok got: ''
expected: '200'
re-split.t TEST 20: subject is not a string type - response_body - response is expected (repeated req 1, req 0) got: ''
expected: '1
451
45
'
re-split.t TEST 20: subject is not a string type - pattern "(?^:\[TRACE\s+\d+)" should match a line in error.log (req 1)
re-split.t TEST 20: subject is not a string type - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:50:35 [error] 13050\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
re-split.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
re-split.t TEST 31: behavior with /^/m - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
re-split.t TEST 31: behavior with /^/m - status code ok got: ''
expected: '200'
re-split.t TEST 31: behavior with /^/m - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'ab
:cd
:ef
len: 3
'
re-split.t TEST 31: behavior with /^/m - pattern "(?^:\[TRACE\s+\d+)" should match a line in error.log (req 0)
re-split.t TEST 31: behavior with /^/m - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:50:39 [error] 13055\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
re-split.t TEST 31: behavior with /^/m - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
re-split.t TEST 31: behavior with /^/m - status code ok got: ''
expected: '200'
re-split.t TEST 31: behavior with /^/m - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'ab
:cd
:ef
len: 3
'
re-split.t TEST 31: behavior with /^/m - pattern "(?^:\[TRACE\s+\d+)" should match a line in error.log (req 1)
re-split.t TEST 31: behavior with /^/m - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:50:39 [error] 13055\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
re-split.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
re-split.t TEST 28: no match separator (github issue \#104) & max - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
re-split.t TEST 28: no match separator (github issue \#104) & max - status code ok got: ''
expected: '200'
re-split.t TEST 28: no match separator (github issue \#104) & max - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'a:bcd
len: 2
'
re-split.t TEST 28: no match separator (github issue \#104) & max - pattern "(?^:\[TRACE\s+\d+)" should match a line in error.log (req 0)
re-split.t TEST 28: no match separator (github issue \#104) & max - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:50:44 [error] 13060\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
re-split.t TEST 28: no match separator (github issue \#104) & max - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
re-split.t TEST 28: no match separator (github issue \#104) & max - status code ok got: ''
expected: '200'
re-split.t TEST 28: no match separator (github issue \#104) & max - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'a:bcd
len: 2
'
re-split.t TEST 28: no match separator (github issue \#104) & max - pattern "(?^:\[TRACE\s+\d+)" should match a line in error.log (req 1)
re-split.t TEST 28: no match separator (github issue \#104) & max - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:50:44 [error] 13060\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
re-sub.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
re-sub.t TEST 7: ngx.re.gsub: use of ngx.var in the user callback - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
re-sub.t TEST 7: ngx.re.gsub: use of ngx.var in the user callback - status code ok got: ''
expected: '200'
re-sub.t TEST 7: ngx.re.gsub: use of ngx.var in the user callback - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
- INNER_REPLACED
- INNER_REPLACED
'
re-sub.t TEST 7: ngx.re.gsub: use of ngx.var in the user callback - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:50:49 [error] 13068\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
re-sub.t TEST 7: ngx.re.gsub: use of ngx.var in the user callback - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
re-sub.t TEST 7: ngx.re.gsub: use of ngx.var in the user callback - status code ok got: ''
expected: '200'
re-sub.t TEST 7: ngx.re.gsub: use of ngx.var in the user callback - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
- INNER_REPLACED
- INNER_REPLACED
'
re-sub.t TEST 7: ngx.re.gsub: use of ngx.var in the user callback - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:50:49 [error] 13068\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
re-sub.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
re-sub.t TEST 10: func replace return is not a string type (ngx.re.sub) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
re-sub.t TEST 10: func replace return is not a string type (ngx.re.sub) - status code ok got: ''
expected: '200'
re-sub.t TEST 10: func replace return is not a string type (ngx.re.sub) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'hello, 534
'
re-sub.t TEST 10: func replace return is not a string type (ngx.re.sub) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:50:53 [error] 13073\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
re-sub.t TEST 10: func replace return is not a string type (ngx.re.sub) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
re-sub.t TEST 10: func replace return is not a string type (ngx.re.sub) - status code ok got: ''
expected: '200'
re-sub.t TEST 10: func replace return is not a string type (ngx.re.sub) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'hello, 534
'
re-sub.t TEST 10: func replace return is not a string type (ngx.re.sub) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:50:53 [error] 13073\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
re-sub.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
re-sub.t TEST 3: func + submatches - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
re-sub.t TEST 3: func + submatches - status code ok got: ''
expected: '200'
re-sub.t TEST 3: func + submatches - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-s: a[bc(c)]bd
-n: 1
'
re-sub.t TEST 3: func + submatches - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:50:58 [error] 13078\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
re-sub.t TEST 3: func + submatches - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
re-sub.t TEST 3: func + submatches - status code ok got: ''
expected: '200'
re-sub.t TEST 3: func + submatches - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-s: a[bc(c)]bd
-n: 1
'
re-sub.t TEST 3: func + submatches - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:50:58 [error] 13078\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
re-sub.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
re-sub.t TEST 5: replace template + submatches (exceeding buffers) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
re-sub.t TEST 5: replace template + submatches (exceeding buffers) - status code ok got: ''
expected: '200'
re-sub.t TEST 5: replace template + submatches (exceeding buffers) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:51:02 [error] 13083\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
re-sub.t TEST 5: replace template + submatches (exceeding buffers) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
re-sub.t TEST 5: replace template + submatches (exceeding buffers) - status code ok got: ''
expected: '200'
re-sub.t TEST 5: replace template + submatches (exceeding buffers) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:51:02 [error] 13083\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
re-sub.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
re-sub.t TEST 1: sub, no submatch, no jit compile, regex cache - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
re-sub.t TEST 1: sub, no submatch, no jit compile, regex cache - status code ok got: ''
expected: '200'
re-sub.t TEST 1: sub, no submatch, no jit compile, regex cache - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-s: aBcbd
-n: 1
'
re-sub.t TEST 1: sub, no submatch, no jit compile, regex cache - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):4 loop\])" should match a line in error.log (req 0)
re-sub.t TEST 1: sub, no submatch, no jit compile, regex cache - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:51:07 [error] 13088\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
re-sub.t TEST 1: sub, no submatch, no jit compile, regex cache - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
re-sub.t TEST 1: sub, no submatch, no jit compile, regex cache - status code ok got: ''
expected: '200'
re-sub.t TEST 1: sub, no submatch, no jit compile, regex cache - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-s: aBcbd
-n: 1
'
re-sub.t TEST 1: sub, no submatch, no jit compile, regex cache - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):4 loop\])" should match a line in error.log (req 1)
re-sub.t TEST 1: sub, no submatch, no jit compile, regex cache - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:51:07 [error] 13088\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
re-sub.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
re-sub.t TEST 11: func replace return is not a string type (ngx.re.gsub) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
re-sub.t TEST 11: func replace return is not a string type (ngx.re.gsub) - status code ok got: ''
expected: '200'
re-sub.t TEST 11: func replace return is not a string type (ngx.re.gsub) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'hello, 55
'
re-sub.t TEST 11: func replace return is not a string type (ngx.re.gsub) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:51:11 [error] 13093\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
re-sub.t TEST 11: func replace return is not a string type (ngx.re.gsub) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
re-sub.t TEST 11: func replace return is not a string type (ngx.re.gsub) - status code ok got: ''
expected: '200'
re-sub.t TEST 11: func replace return is not a string type (ngx.re.gsub) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'hello, 55
'
re-sub.t TEST 11: func replace return is not a string type (ngx.re.gsub) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:51:11 [error] 13093\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
re-sub.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
re-sub.t TEST 2: sub, no submatch, no jit compile, no regex cache - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
re-sub.t TEST 2: sub, no submatch, no jit compile, no regex cache - status code ok got: ''
expected: '200'
re-sub.t TEST 2: sub, no submatch, no jit compile, no regex cache - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-s: aBcbd
-n: 1
'
re-sub.t TEST 2: sub, no submatch, no jit compile, no regex cache - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):4 loop\])" should match a line in error.log (req 0)
re-sub.t TEST 2: sub, no submatch, no jit compile, no regex cache - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:51:16 [error] 13098\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
re-sub.t TEST 2: sub, no submatch, no jit compile, no regex cache - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
re-sub.t TEST 2: sub, no submatch, no jit compile, no regex cache - status code ok got: ''
expected: '200'
re-sub.t TEST 2: sub, no submatch, no jit compile, no regex cache - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-s: aBcbd
-n: 1
'
re-sub.t TEST 2: sub, no submatch, no jit compile, no regex cache - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):4 loop\])" should match a line in error.log (req 1)
re-sub.t TEST 2: sub, no submatch, no jit compile, no regex cache - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:51:16 [error] 13098\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
re-sub.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
re-sub.t TEST 8: ngx.re.gsub: recursive calling (github openresty/lua-nginx-module\#445) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
re-sub.t TEST 8: ngx.re.gsub: recursive calling (github openresty/lua-nginx-module\#445) - status code ok got: ''
expected: '200'
re-sub.t TEST 8: ngx.re.gsub: recursive calling (github openresty/lua-nginx-module\#445) - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
- OUTER {FIRST}
- OUTER REPLACED
'
re-sub.t TEST 8: ngx.re.gsub: recursive calling (github openresty/lua-nginx-module\#445) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:51:21 [error] 13103\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
re-sub.t TEST 8: ngx.re.gsub: recursive calling (github openresty/lua-nginx-module\#445) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
re-sub.t TEST 8: ngx.re.gsub: recursive calling (github openresty/lua-nginx-module\#445) - status code ok got: ''
expected: '200'
re-sub.t TEST 8: ngx.re.gsub: recursive calling (github openresty/lua-nginx-module\#445) - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
- OUTER {FIRST}
- OUTER REPLACED
'
re-sub.t TEST 8: ngx.re.gsub: recursive calling (github openresty/lua-nginx-module\#445) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:51:21 [error] 13103\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
re-sub.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
re-sub.t TEST 4: replace template + submatches - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
re-sub.t TEST 4: replace template + submatches - status code ok got: ''
expected: '200'
re-sub.t TEST 4: replace template + submatches - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-s: a[bc(c)]bd
-n: 1
'
re-sub.t TEST 4: replace template + submatches - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):4 loop\])" should match a line in error.log (req 0)
re-sub.t TEST 4: replace template + submatches - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:51:25 [error] 13108\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
re-sub.t TEST 4: replace template + submatches - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
re-sub.t TEST 4: replace template + submatches - status code ok got: ''
expected: '200'
re-sub.t TEST 4: replace template + submatches - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-s: a[bc(c)]bd
-n: 1
'
re-sub.t TEST 4: replace template + submatches - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):4 loop\])" should match a line in error.log (req 1)
re-sub.t TEST 4: replace template + submatches - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:51:25 [error] 13108\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
re-sub.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
re-sub.t TEST 9: string replace subj is not a string type - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
re-sub.t TEST 9: string replace subj is not a string type - status code ok got: ''
expected: '200'
re-sub.t TEST 9: string replace subj is not a string type - response_body - response is expected (repeated req 0, req 0) got: ''
expected: '534
'
re-sub.t TEST 9: string replace subj is not a string type - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:51:30 [error] 13113\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
re-sub.t TEST 9: string replace subj is not a string type - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
re-sub.t TEST 9: string replace subj is not a string type - status code ok got: ''
expected: '200'
re-sub.t TEST 9: string replace subj is not a string type - response_body - response is expected (repeated req 1, req 0) got: ''
expected: '534
'
re-sub.t TEST 9: string replace subj is not a string type - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:51:30 [error] 13113\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
re-sub.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
re-sub.t TEST 6: ngx.re.gsub: use of ngx.req.get_headers in the user callback - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
re-sub.t TEST 6: ngx.re.gsub: use of ngx.req.get_headers in the user callback - status code ok got: ''
expected: '200'
re-sub.t TEST 6: ngx.re.gsub: use of ngx.req.get_headers in the user callback - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
- INNER_REPLACED
- INNER_REPLACED
'
re-sub.t TEST 6: ngx.re.gsub: use of ngx.req.get_headers in the user callback - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:51:34 [error] 13118\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
re-sub.t TEST 6: ngx.re.gsub: use of ngx.req.get_headers in the user callback - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
re-sub.t TEST 6: ngx.re.gsub: use of ngx.req.get_headers in the user callback - status code ok got: ''
expected: '200'
re-sub.t TEST 6: ngx.re.gsub: use of ngx.req.get_headers in the user callback - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
- INNER_REPLACED
- INNER_REPLACED
'
re-sub.t TEST 6: ngx.re.gsub: use of ngx.req.get_headers in the user callback - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:51:34 [error] 13118\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
request.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
request.t TEST 9: ngx.req.get_method (OPTIONS) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
request.t TEST 9: ngx.req.get_method (OPTIONS) - status code ok got: ''
expected: '200'
request.t TEST 9: ngx.req.get_method (OPTIONS) - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "method: OPTIONS\x{0a}"
length: 16
strings begin to differ at char 1 (line 1 column 1)
request.t TEST 9: ngx.req.get_method (OPTIONS) - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):3 loop\])" should match a line in error.log (req 0)
request.t TEST 9: ngx.req.get_method (OPTIONS) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:51:39 [error] 13126\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
request.t TEST 9: ngx.req.get_method (OPTIONS) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
request.t TEST 9: ngx.req.get_method (OPTIONS) - status code ok got: ''
expected: '200'
request.t TEST 9: ngx.req.get_method (OPTIONS) - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "method: OPTIONS\x{0a}"
length: 16
strings begin to differ at char 1 (line 1 column 1)
request.t TEST 9: ngx.req.get_method (OPTIONS) - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):3 loop\])" should match a line in error.log (req 1)
request.t TEST 9: ngx.req.get_method (OPTIONS) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:51:39 [error] 13126\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
request.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
request.t TEST 6: ngx.req.get_uri_args (empty) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
request.t TEST 6: ngx.req.get_uri_args (empty) - status code ok got: ''
expected: '200'
request.t TEST 6: ngx.req.get_uri_args (empty) - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):4 loop\])" should match a line in error.log (req 0)
request.t TEST 6: ngx.req.get_uri_args (empty) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:51:44 [error] 13131\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
request.t TEST 6: ngx.req.get_uri_args (empty) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
request.t TEST 6: ngx.req.get_uri_args (empty) - status code ok got: ''
expected: '200'
request.t TEST 6: ngx.req.get_uri_args (empty) - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):4 loop\])" should match a line in error.log (req 1)
request.t TEST 6: ngx.req.get_uri_args (empty) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:51:44 [error] 13131\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
request.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
request.t TEST 2: ngx.req.get_headers (raw) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
request.t TEST 2: ngx.req.get_headers (raw) - status code ok got: ''
expected: '200'
request.t TEST 2: ngx.req.get_headers (raw) - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "Bar: bar\x{0a}Baz: baz\x{0a}Connection: close\x{0a}Foo: foo\x{0a}Host:"...
length: 61
strings begin to differ at char 1 (line 1 column 1)
request.t TEST 2: ngx.req.get_headers (raw) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:51:49 [error] 13136\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
request.t TEST 2: ngx.req.get_headers (raw) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
request.t TEST 2: ngx.req.get_headers (raw) - status code ok got: ''
expected: '200'
request.t TEST 2: ngx.req.get_headers (raw) - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "Bar: bar\x{0a}Baz: baz\x{0a}Connection: close\x{0a}Foo: foo\x{0a}Host:"...
length: 61
strings begin to differ at char 1 (line 1 column 1)
request.t TEST 2: ngx.req.get_headers (raw) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:51:49 [error] 13136\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
request.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
request.t TEST 14: ngx.req.set_header (single number value) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
request.t TEST 14: ngx.req.set_header (single number value) - status code ok got: ''
expected: '200'
request.t TEST 14: ngx.req.set_header (single number value) - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "header foo: 500\x{0a}"
length: 16
strings begin to differ at char 1 (line 1 column 1)
request.t TEST 14: ngx.req.set_header (single number value) - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):3 loop\])" should match a line in error.log (req 0)
request.t TEST 14: ngx.req.set_header (single number value) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:51:54 [error] 13141\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
request.t TEST 14: ngx.req.set_header (single number value) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
request.t TEST 14: ngx.req.set_header (single number value) - status code ok got: ''
expected: '200'
request.t TEST 14: ngx.req.set_header (single number value) - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "header foo: 500\x{0a}"
length: 16
strings begin to differ at char 1 (line 1 column 1)
request.t TEST 14: ngx.req.set_header (single number value) - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):3 loop\])" should match a line in error.log (req 1)
request.t TEST 14: ngx.req.set_header (single number value) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:51:54 [error] 13141\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
request.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
request.t TEST 5: ngx.req.get_uri_args - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
request.t TEST 5: ngx.req.get_uri_args - status code ok got: ''
expected: '200'
request.t TEST 5: ngx.req.get_uri_args - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "a: 3 0, hello\x{0a}blah: true\x{0a}foo bar: \x{0a}"
length: 35
strings begin to differ at char 1 (line 1 column 1)
request.t TEST 5: ngx.req.get_uri_args - pattern "(?^:\[TRACE\s+\d+ .*? -> \d+\])" should match a line in error.log (req 0)
request.t TEST 5: ngx.req.get_uri_args - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:51:59 [error] 13146\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
request.t TEST 5: ngx.req.get_uri_args - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
request.t TEST 5: ngx.req.get_uri_args - status code ok got: ''
expected: '200'
request.t TEST 5: ngx.req.get_uri_args - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "a: 3 0, hello\x{0a}blah: true\x{0a}foo bar: \x{0a}"
length: 35
strings begin to differ at char 1 (line 1 column 1)
request.t TEST 5: ngx.req.get_uri_args - pattern "(?^:\[TRACE\s+\d+ .*? -> \d+\])" should match a line in error.log (req 1)
request.t TEST 5: ngx.req.get_uri_args - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:51:59 [error] 13146\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
request.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
request.t TEST 16: ngx.req.clear_header - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
request.t TEST 16: ngx.req.clear_header - status code ok got: ''
expected: '200'
request.t TEST 16: ngx.req.clear_header - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "header foo: nil\x{0a}"
length: 16
strings begin to differ at char 1 (line 1 column 1)
request.t TEST 16: ngx.req.clear_header - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):4 loop\])" should match a line in error.log (req 0)
request.t TEST 16: ngx.req.clear_header - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:52:04 [error] 13151\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
request.t TEST 16: ngx.req.clear_header - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
request.t TEST 16: ngx.req.clear_header - status code ok got: ''
expected: '200'
request.t TEST 16: ngx.req.clear_header - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "header foo: nil\x{0a}"
length: 16
strings begin to differ at char 1 (line 1 column 1)
request.t TEST 16: ngx.req.clear_header - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):4 loop\])" should match a line in error.log (req 1)
request.t TEST 16: ngx.req.clear_header - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:52:04 [error] 13151\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
request.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
request.t TEST 17: ngx.req.set_header (multiple values) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
request.t TEST 17: ngx.req.set_header (multiple values) - status code ok got: ''
expected: '200'
request.t TEST 17: ngx.req.set_header (multiple values) - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "Foo: baz, 123\x{0a}"
length: 14
strings begin to differ at char 1 (line 1 column 1)
request.t TEST 17: ngx.req.set_header (multiple values) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:52:09 [error] 13156\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
request.t TEST 17: ngx.req.set_header (multiple values) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
request.t TEST 17: ngx.req.set_header (multiple values) - status code ok got: ''
expected: '200'
request.t TEST 17: ngx.req.set_header (multiple values) - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "Foo: baz, 123\x{0a}"
length: 14
strings begin to differ at char 1 (line 1 column 1)
request.t TEST 17: ngx.req.set_header (multiple values) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:52:09 [error] 13156\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
request.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
request.t TEST 1: ngx.req.get_headers - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
request.t TEST 1: ngx.req.get_headers - status code ok got: ''
expected: '200'
request.t TEST 1: ngx.req.get_headers - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "bar: bar\x{0a}baz: baz\x{0a}connection: close\x{0a}foo: foo\x{0a}host:"...
length: 61
strings begin to differ at char 1 (line 1 column 1)
request.t TEST 1: ngx.req.get_headers - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:52:13 [error] 13161\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
request.t TEST 1: ngx.req.get_headers - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
request.t TEST 1: ngx.req.get_headers - status code ok got: ''
expected: '200'
request.t TEST 1: ngx.req.get_headers - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "bar: bar\x{0a}baz: baz\x{0a}connection: close\x{0a}foo: foo\x{0a}host:"...
length: 61
strings begin to differ at char 1 (line 1 column 1)
request.t TEST 1: ngx.req.get_headers - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:52:13 [error] 13161\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
request.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
request.t TEST 11: ngx.req.get_method (unknown method) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
request.t TEST 11: ngx.req.get_method (unknown method) - status code ok got: ''
expected: '200'
request.t TEST 11: ngx.req.get_method (unknown method) - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "method: BLAH\x{0a}"
length: 13
strings begin to differ at char 1 (line 1 column 1)
request.t TEST 11: ngx.req.get_method (unknown method) - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):3 loop\])" should match a line in error.log (req 0)
request.t TEST 11: ngx.req.get_method (unknown method) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:52:18 [error] 13166\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
request.t TEST 11: ngx.req.get_method (unknown method) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
request.t TEST 11: ngx.req.get_method (unknown method) - status code ok got: ''
expected: '200'
request.t TEST 11: ngx.req.get_method (unknown method) - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "method: BLAH\x{0a}"
length: 13
strings begin to differ at char 1 (line 1 column 1)
request.t TEST 11: ngx.req.get_method (unknown method) - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):3 loop\])" should match a line in error.log (req 1)
request.t TEST 11: ngx.req.get_method (unknown method) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:52:18 [error] 13166\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
request.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
request.t TEST 13: ngx.req.set_method (GET -> PUT) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
request.t TEST 13: ngx.req.set_method (GET -> PUT) - status code ok got: ''
expected: '200'
request.t TEST 13: ngx.req.set_method (GET -> PUT) - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "method: PUT\x{0a}"
length: 12
strings begin to differ at char 1 (line 1 column 1)
request.t TEST 13: ngx.req.set_method (GET -> PUT) - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):3 loop\])" should match a line in error.log (req 0)
request.t TEST 13: ngx.req.set_method (GET -> PUT) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:52:23 [error] 13171\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
request.t TEST 13: ngx.req.set_method (GET -> PUT) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
request.t TEST 13: ngx.req.set_method (GET -> PUT) - status code ok got: ''
expected: '200'
request.t TEST 13: ngx.req.set_method (GET -> PUT) - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "method: PUT\x{0a}"
length: 12
strings begin to differ at char 1 (line 1 column 1)
request.t TEST 13: ngx.req.set_method (GET -> PUT) - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):3 loop\])" should match a line in error.log (req 1)
request.t TEST 13: ngx.req.set_method (GET -> PUT) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:52:23 [error] 13171\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
request.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
request.t TEST 3: ngx.req.get_headers (count is 2) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
request.t TEST 3: ngx.req.get_headers (count is 2) - status code ok got: ''
expected: '200'
request.t TEST 3: ngx.req.get_headers (count is 2) - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "Connection: close\x{0a}Host: localhost\x{0a}"
length: 34
strings begin to differ at char 1 (line 1 column 1)
request.t TEST 3: ngx.req.get_headers (count is 2) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:52:28 [error] 13176\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
request.t TEST 3: ngx.req.get_headers (count is 2) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
request.t TEST 3: ngx.req.get_headers (count is 2) - status code ok got: ''
expected: '200'
request.t TEST 3: ngx.req.get_headers (count is 2) - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "Connection: close\x{0a}Host: localhost\x{0a}"
length: 34
strings begin to differ at char 1 (line 1 column 1)
request.t TEST 3: ngx.req.get_headers (count is 2) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:52:28 [error] 13176\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
request.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
request.t TEST 10: ngx.req.get_method (POST) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
request.t TEST 10: ngx.req.get_method (POST) - status code ok got: ''
expected: '200'
request.t TEST 10: ngx.req.get_method (POST) - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "method: POST\x{0a}"
length: 13
strings begin to differ at char 1 (line 1 column 1)
request.t TEST 10: ngx.req.get_method (POST) - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):3 loop\])" should match a line in error.log (req 0)
request.t TEST 10: ngx.req.get_method (POST) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:52:33 [error] 13181\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
request.t TEST 10: ngx.req.get_method (POST) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
request.t TEST 10: ngx.req.get_method (POST) - status code ok got: ''
expected: '200'
request.t TEST 10: ngx.req.get_method (POST) - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "method: POST\x{0a}"
length: 13
strings begin to differ at char 1 (line 1 column 1)
request.t TEST 10: ngx.req.get_method (POST) - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):3 loop\])" should match a line in error.log (req 1)
request.t TEST 10: ngx.req.get_method (POST) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:52:33 [error] 13181\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
request.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
request.t TEST 7: ngx.req.start_time() - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
request.t TEST 7: ngx.req.start_time() - status code ok got: ''
expected: '200'
request.t TEST 7: ngx.req.start_time() - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "true\x{0a}>= 0.099: true\x{0a}< 0.11: true\x{0a}"
length: 33
strings begin to differ at char 1 (line 1 column 1)
request.t TEST 7: ngx.req.start_time() - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):3 loop\])" should match a line in error.log (req 0)
request.t TEST 7: ngx.req.start_time() - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:52:38 [error] 13186\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
request.t TEST 7: ngx.req.start_time() - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
request.t TEST 7: ngx.req.start_time() - status code ok got: ''
expected: '200'
request.t TEST 7: ngx.req.start_time() - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "true\x{0a}>= 0.099: true\x{0a}< 0.11: true\x{0a}"
length: 33
strings begin to differ at char 1 (line 1 column 1)
request.t TEST 7: ngx.req.start_time() - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):3 loop\])" should match a line in error.log (req 1)
request.t TEST 7: ngx.req.start_time() - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:52:38 [error] 13186\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
request.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
request.t TEST 8: ngx.req.get_method (GET) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
request.t TEST 8: ngx.req.get_method (GET) - status code ok got: ''
expected: '200'
request.t TEST 8: ngx.req.get_method (GET) - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "method: GET\x{0a}"
length: 12
strings begin to differ at char 1 (line 1 column 1)
request.t TEST 8: ngx.req.get_method (GET) - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):3 loop\])" should match a line in error.log (req 0)
request.t TEST 8: ngx.req.get_method (GET) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:52:43 [error] 13191\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
request.t TEST 8: ngx.req.get_method (GET) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
request.t TEST 8: ngx.req.get_method (GET) - status code ok got: ''
expected: '200'
request.t TEST 8: ngx.req.get_method (GET) - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "method: GET\x{0a}"
length: 12
strings begin to differ at char 1 (line 1 column 1)
request.t TEST 8: ngx.req.get_method (GET) - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):3 loop\])" should match a line in error.log (req 1)
request.t TEST 8: ngx.req.get_method (GET) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:52:43 [error] 13191\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
request.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
request.t TEST 15: ngx.req.set_header (nil value) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
request.t TEST 15: ngx.req.set_header (nil value) - status code ok got: ''
expected: '200'
request.t TEST 15: ngx.req.set_header (nil value) - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "header foo: nil\x{0a}"
length: 16
strings begin to differ at char 1 (line 1 column 1)
request.t TEST 15: ngx.req.set_header (nil value) - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):3 loop\])" should match a line in error.log (req 0)
request.t TEST 15: ngx.req.set_header (nil value) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:52:48 [error] 13196\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
request.t TEST 15: ngx.req.set_header (nil value) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
request.t TEST 15: ngx.req.set_header (nil value) - status code ok got: ''
expected: '200'
request.t TEST 15: ngx.req.set_header (nil value) - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "header foo: nil\x{0a}"
length: 16
strings begin to differ at char 1 (line 1 column 1)
request.t TEST 15: ngx.req.set_header (nil value) - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):3 loop\])" should match a line in error.log (req 1)
request.t TEST 15: ngx.req.set_header (nil value) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:52:48 [error] 13196\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
request.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
request.t TEST 4: ngx.req.get_headers (metatable) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
request.t TEST 4: ngx.req.get_headers (metatable) - status code ok got: ''
expected: '200'
request.t TEST 4: ngx.req.get_headers (metatable) - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "foo_BAR: foo\x{0a}baz: baz\x{0a}connection: close\x{0a}foo-bar: f"...
length: 69
strings begin to differ at char 1 (line 1 column 1)
request.t TEST 4: ngx.req.get_headers (metatable) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:52:53 [error] 13201\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
request.t TEST 4: ngx.req.get_headers (metatable) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
request.t TEST 4: ngx.req.get_headers (metatable) - status code ok got: ''
expected: '200'
request.t TEST 4: ngx.req.get_headers (metatable) - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "foo_BAR: foo\x{0a}baz: baz\x{0a}connection: close\x{0a}foo-bar: f"...
length: 69
strings begin to differ at char 1 (line 1 column 1)
request.t TEST 4: ngx.req.get_headers (metatable) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:52:53 [error] 13201\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
request.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
request.t TEST 12: ngx.req.get_method (CONNECT) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
request.t TEST 12: ngx.req.get_method (CONNECT) - status code ok got: ''
expected: '200'
request.t TEST 12: ngx.req.get_method (CONNECT) - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "method: CONNECT\x{0a}"
length: 16
strings begin to differ at char 1 (line 1 column 1)
request.t TEST 12: ngx.req.get_method (CONNECT) - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):3 loop\])" should match a line in error.log (req 0)
request.t TEST 12: ngx.req.get_method (CONNECT) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:52:58 [error] 13206\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
request.t TEST 12: ngx.req.get_method (CONNECT) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
request.t TEST 12: ngx.req.get_method (CONNECT) - status code ok got: ''
expected: '200'
request.t TEST 12: ngx.req.get_method (CONNECT) - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "method: CONNECT\x{0a}"
length: 16
strings begin to differ at char 1 (line 1 column 1)
request.t TEST 12: ngx.req.get_method (CONNECT) - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):3 loop\])" should match a line in error.log (req 1)
request.t TEST 12: ngx.req.get_method (CONNECT) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:52:58 [error] 13206\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
request.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
request.t TEST 18: ngx.req.get_header (metatable is nil) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
request.t TEST 18: ngx.req.get_header (metatable is nil) - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "table,table\x{0a}"
length: 12
strings begin to differ at char 1 (line 1 column 1)
request.t TEST 18: ngx.req.get_header (metatable is nil) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
request.t TEST 18: ngx.req.get_header (metatable is nil) - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "table,table\x{0a}"
length: 12
strings begin to differ at char 1 (line 1 column 1)
response.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
response.t TEST 1: write to ngx.header.HEADER (single value) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
response.t TEST 1: write to ngx.header.HEADER (single value) - status code ok got: ''
expected: '200'
response.t TEST 1: write to ngx.header.HEADER (single value) - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "Foo: 100\x{0a}"
length: 9
strings begin to differ at char 1 (line 1 column 1)
response.t TEST 1: write to ngx.header.HEADER (single value) - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):2 loop\])" should match a line in error.log (req 0)
response.t TEST 1: write to ngx.header.HEADER (single value) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:53:07 [error] 13219\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
response.t TEST 1: write to ngx.header.HEADER (single value) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
response.t TEST 1: write to ngx.header.HEADER (single value) - status code ok got: ''
expected: '200'
response.t TEST 1: write to ngx.header.HEADER (single value) - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "Foo: 100\x{0a}"
length: 9
strings begin to differ at char 1 (line 1 column 1)
response.t TEST 1: write to ngx.header.HEADER (single value) - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):2 loop\])" should match a line in error.log (req 1)
response.t TEST 1: write to ngx.header.HEADER (single value) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:53:07 [error] 13219\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
response.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
response.t TEST 3: write to ngx.header.HEADER (multi-value) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
response.t TEST 3: write to ngx.header.HEADER (multi-value) - status code ok got: ''
expected: '200'
response.t TEST 3: write to ngx.header.HEADER (multi-value) - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "Foo: 200, 201\x{0a}"
length: 14
strings begin to differ at char 1 (line 1 column 1)
response.t TEST 3: write to ngx.header.HEADER (multi-value) - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):2 loop\])" should match a line in error.log (req 0)
response.t TEST 3: write to ngx.header.HEADER (multi-value) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:53:12 [error] 13224\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
response.t TEST 3: write to ngx.header.HEADER (multi-value) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
response.t TEST 3: write to ngx.header.HEADER (multi-value) - status code ok got: ''
expected: '200'
response.t TEST 3: write to ngx.header.HEADER (multi-value) - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "Foo: 200, 201\x{0a}"
length: 14
strings begin to differ at char 1 (line 1 column 1)
response.t TEST 3: write to ngx.header.HEADER (multi-value) - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):2 loop\])" should match a line in error.log (req 1)
response.t TEST 3: write to ngx.header.HEADER (multi-value) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:53:12 [error] 13224\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
response.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
response.t TEST 4: read from ngx.header.HEADER (single value) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
response.t TEST 4: read from ngx.header.HEADER (single value) - status code ok got: ''
expected: '200'
response.t TEST 4: read from ngx.header.HEADER (single value) - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "Foo: 100\x{0a}"
length: 9
strings begin to differ at char 1 (line 1 column 1)
response.t TEST 4: read from ngx.header.HEADER (single value) - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):3 loop\])" should match a line in error.log (req 0)
response.t TEST 4: read from ngx.header.HEADER (single value) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:53:16 [error] 13229\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
response.t TEST 4: read from ngx.header.HEADER (single value) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
response.t TEST 4: read from ngx.header.HEADER (single value) - status code ok got: ''
expected: '200'
response.t TEST 4: read from ngx.header.HEADER (single value) - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "Foo: 100\x{0a}"
length: 9
strings begin to differ at char 1 (line 1 column 1)
response.t TEST 4: read from ngx.header.HEADER (single value) - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):3 loop\])" should match a line in error.log (req 1)
response.t TEST 4: read from ngx.header.HEADER (single value) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:53:16 [error] 13229\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
response.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
response.t TEST 6: read from ngx.header.HEADER (multi-value) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
response.t TEST 6: read from ngx.header.HEADER (multi-value) - status code ok got: ''
expected: '200'
response.t TEST 6: read from ngx.header.HEADER (multi-value) - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "Foo: foo, bar\x{0a}"
length: 14
strings begin to differ at char 1 (line 1 column 1)
response.t TEST 6: read from ngx.header.HEADER (multi-value) - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):4 loop\])" should match a line in error.log (req 0)
response.t TEST 6: read from ngx.header.HEADER (multi-value) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:53:21 [error] 13234\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
response.t TEST 6: read from ngx.header.HEADER (multi-value) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
response.t TEST 6: read from ngx.header.HEADER (multi-value) - status code ok got: ''
expected: '200'
response.t TEST 6: read from ngx.header.HEADER (multi-value) - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "Foo: foo, bar\x{0a}"
length: 14
strings begin to differ at char 1 (line 1 column 1)
response.t TEST 6: read from ngx.header.HEADER (multi-value) - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):4 loop\])" should match a line in error.log (req 1)
response.t TEST 6: read from ngx.header.HEADER (multi-value) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:53:21 [error] 13234\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
response.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
response.t TEST 5: read from ngx.header.HEADER (not found) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
response.t TEST 5: read from ngx.header.HEADER (not found) - status code ok got: ''
expected: '200'
response.t TEST 5: read from ngx.header.HEADER (not found) - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "Foo: nil\x{0a}"
length: 9
strings begin to differ at char 1 (line 1 column 1)
response.t TEST 5: read from ngx.header.HEADER (not found) - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):3 loop\])" should match a line in error.log (req 0)
response.t TEST 5: read from ngx.header.HEADER (not found) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:53:25 [error] 13239\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
response.t TEST 5: read from ngx.header.HEADER (not found) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
response.t TEST 5: read from ngx.header.HEADER (not found) - status code ok got: ''
expected: '200'
response.t TEST 5: read from ngx.header.HEADER (not found) - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "Foo: nil\x{0a}"
length: 9
strings begin to differ at char 1 (line 1 column 1)
response.t TEST 5: read from ngx.header.HEADER (not found) - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):3 loop\])" should match a line in error.log (req 1)
response.t TEST 5: read from ngx.header.HEADER (not found) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:53:25 [error] 13239\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
response.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
response.t TEST 2: write to ngx.header.HEADER (nil) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
response.t TEST 2: write to ngx.header.HEADER (nil) - status code ok got: ''
expected: '200'
response.t TEST 2: write to ngx.header.HEADER (nil) - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "Foo: nil\x{0a}"
length: 9
strings begin to differ at char 1 (line 1 column 1)
response.t TEST 2: write to ngx.header.HEADER (nil) - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):2 loop\])" should match a line in error.log (req 0)
response.t TEST 2: write to ngx.header.HEADER (nil) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:53:30 [error] 13244\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
response.t TEST 2: write to ngx.header.HEADER (nil) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
response.t TEST 2: write to ngx.header.HEADER (nil) - status code ok got: ''
expected: '200'
response.t TEST 2: write to ngx.header.HEADER (nil) - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "Foo: nil\x{0a}"
length: 9
strings begin to differ at char 1 (line 1 column 1)
response.t TEST 2: write to ngx.header.HEADER (nil) - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):2 loop\])" should match a line in error.log (req 1)
response.t TEST 2: write to ngx.header.HEADER (nil) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:53:30 [error] 13244\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
response.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
response.t TEST 7: set multi values to cache-control and override it with multiple values - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
response.t TEST 7: set multi values to cache-control and override it with multiple values - status code ok got: ''
expected: '200'
response.t TEST 7: set multi values to cache-control and override it with multiple values - header Cache-Control ok got: ''
expected: 'no-cache, blah, foo'
response.t TEST 7: set multi values to cache-control and override it with multiple values - response_body_like - response is expected () ''
doesn't match '(?^s:^Cache-Control: no-cache[;,] blah[;,] foo$)'
response.t TEST 7: set multi values to cache-control and override it with multiple values - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):5 (?:loop|-> \d+)\])" should match a line in error.log (req 0)
response.t TEST 7: set multi values to cache-control and override it with multiple values - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:53:35 [error] 13249\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
response.t TEST 7: set multi values to cache-control and override it with multiple values - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
response.t TEST 7: set multi values to cache-control and override it with multiple values - status code ok got: ''
expected: '200'
response.t TEST 7: set multi values to cache-control and override it with multiple values - header Cache-Control ok got: ''
expected: 'no-cache, blah, foo'
response.t TEST 7: set multi values to cache-control and override it with multiple values - response_body_like - response is expected () ''
doesn't match '(?^s:^Cache-Control: no-cache[;,] blah[;,] foo$)'
response.t TEST 7: set multi values to cache-control and override it with multiple values - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):5 (?:loop|-> \d+)\])" should match a line in error.log (req 1)
response.t TEST 7: set multi values to cache-control and override it with multiple values - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:53:35 [error] 13249\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
semaphore.t TEST 32: semaphore wait time is zero - status code ok got: '500'
expected: '200'
semaphore.t TEST 32: semaphore wait time is zero - response_body - response is expected (repeated req 0, req 0) got: '<html>
<head><title>500 Internal Server Error</title></head>
<body>
<center><h1>500 Internal Server Error</h1></center>
<hr><center>nginx/1.15.8 (no pool)</center>
</body>
</html>
'
expected: 'timeout
'
semaphore.t TEST 32: semaphore wait time is zero - status code ok got: '500'
expected: '200'
semaphore.t TEST 32: semaphore wait time is zero - response_body - response is expected (repeated req 1, req 0) got: '<html>
<head><title>500 Internal Server Error</title></head>
<body>
<center><h1>500 Internal Server Error</h1></center>
<hr><center>nginx/1.15.8 (no pool)</center>
</body>
</html>
'
expected: 'timeout
'
semaphore.t TEST 22: semaphore post in body_filter_by_lua (subrequest) - status code ok got: ''
expected: '200'
semaphore.t TEST 22: semaphore post in body_filter_by_lua (subrequest) - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-200
-wait
-200
-post
'
semaphore.t TEST 22: semaphore post in body_filter_by_lua (subrequest) - status code ok got: ''
expected: '200'
semaphore.t TEST 22: semaphore post in body_filter_by_lua (subrequest) - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +0,0 @@
-200
-wait
-200
-post
'
semaphore.t TEST 29: a light thread that is going to exit is waiting on a semaphore - status code ok got: '500'
expected: '200'
semaphore.t TEST 29: a light thread that is going to exit is waiting on a semaphore - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +1,7 @@
-sem waiting
+<html>
-ok
+<head><title>500 Internal Server Error</title></head>
+<body>
+<center><h1>500 Internal Server Error</h1></center>
+<hr><center>nginx/1.15.8 (no pool)</center>
+</body>
+</html>
'
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 - status code ok got: '500'
expected: '200'
semaphore.t TEST 29: a light thread that is going to exit is waiting on a semaphore - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +1,7 @@
-sem waiting
+<html>
-ok
+<head><title>500 Internal Server Error</title></head>
+<body>
+<center><h1>500 Internal Server Error</h1></center>
+<hr><center>nginx/1.15.8 (no pool)</center>
+</body>
+</html>
'
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 40: bugfix: semaphore instance can't be garbage collected when someone is waiting on it - status code ok got: '500'
expected: '200'
semaphore.t TEST 40: bugfix: semaphore instance can't be garbage collected when someone is waiting on it - response_body - response is expected (repeated req 0, req 0) got: '<html>
<head><title>500 Internal Server Error</title></head>
<body>
<center><h1>500 Internal Server Error</h1></center>
<hr><center>nginx/1.15.8 (no pool)</center>
</body>
</html>
'
expected: 'true, nil
'
semaphore.t TEST 40: bugfix: semaphore instance can't be garbage collected when someone is waiting on it - status code ok got: '500'
expected: '200'
semaphore.t TEST 40: bugfix: semaphore instance can't be garbage collected when someone is waiting on it - response_body - response is expected (repeated req 1, req 0) got: '<html>
<head><title>500 Internal Server Error</title></head>
<body>
<center><h1>500 Internal Server Error</h1></center>
<hr><center>nginx/1.15.8 (no pool)</center>
</body>
</html>
'
expected: 'true, nil
'
semaphore.t TEST 10: semaphore in rewrite_by_lua (all allowed) - status code ok got: '500'
expected: '200'
semaphore.t TEST 10: semaphore in rewrite_by_lua (all allowed) - response_body - response is expected (repeated req 0, req 0) got: '<html>
<head><title>500 Internal Server Error</title></head>
<body>
<center><h1>500 Internal Server Error</h1></center>
<hr><center>nginx/1.15.8 (no pool)</center>
</body>
</html>
'
expected: 'ok
'
semaphore.t TEST 10: semaphore in rewrite_by_lua (all allowed) - status code ok got: '500'
expected: '200'
semaphore.t TEST 10: semaphore in rewrite_by_lua (all allowed) - response_body - response is expected (repeated req 1, req 0) got: '<html>
<head><title>500 Internal Server Error</title></head>
<body>
<center><h1>500 Internal Server Error</h1></center>
<hr><center>nginx/1.15.8 (no pool)</center>
</body>
</html>
'
expected: 'ok
'
semaphore.t TEST 5: semaphore.new in init_by_lua* (w/o shdict) - failed to reload configuration after 200 failed test requests
semaphore.t TEST 5: semaphore.new in init_by_lua* (w/o shdict) - status code ok got: '500'
expected: '200'
semaphore.t TEST 5: semaphore.new in init_by_lua* (w/o shdict) - response_body_like - response is expected (<html> <head><title>500 Internal Server Error</title></head> <body> <center><h1>500 Internal Server Error</h1></center> <hr><center>nginx/1.15.8 (no pool)</center> </body> </html>) '<html>
<head><title>500 Internal Server Error</title></head>
<body>
<center><h1>500 Internal Server Error</h1></center>
<hr><center>nginx/1.15.8 (no pool)</center>
</body>
</html>
'
doesn't match '(?^s:sem count: [12]
waited successfully.
)'
semaphore.t TEST 5: semaphore.new in init_by_lua* (w/o shdict) - status code ok got: '500'
expected: '200'
semaphore.t TEST 5: semaphore.new in init_by_lua* (w/o shdict) - response_body_like - response is expected (<html> <head><title>500 Internal Server Error</title></head> <body> <center><h1>500 Internal Server Error</h1></center> <hr><center>nginx/1.15.8 (no pool)</center> </body> </html>) '<html>
<head><title>500 Internal Server Error</title></head>
<body>
<center><h1>500 Internal Server Error</h1></center>
<hr><center>nginx/1.15.8 (no pool)</center>
</body>
</html>
'
doesn't match '(?^s:sem count: [12]
waited successfully.
)'
semaphore.t TEST 3: semaphore wait time=0 - status code ok got: '500'
expected: '200'
semaphore.t TEST 3: semaphore wait time=0 - response_body - response is expected (repeated req 0, req 0) @@ -1,10 +1,7 @@
-wait success
+<html>
-err: timeout
+<head><title>500 Internal Server Error</title></head>
-enter 1s wait
+<body>
-back in main thread
+<center><h1>500 Internal Server Error</h1></center>
-err: timeout
+<hr><center>nginx/1.15.8 (no pool)</center>
-err: timeout
+</body>
-still in main thread
+</html>
-wait success in 1s wait
-wait success
-main thread end
'
semaphore.t TEST 3: semaphore wait time=0 - status code ok got: '500'
expected: '200'
semaphore.t TEST 3: semaphore wait time=0 - response_body - response is expected (repeated req 1, req 0) @@ -1,10 +1,7 @@
-wait success
+<html>
-err: timeout
+<head><title>500 Internal Server Error</title></head>
-enter 1s wait
+<body>
-back in main thread
+<center><h1>500 Internal Server Error</h1></center>
-err: timeout
+<hr><center>nginx/1.15.8 (no pool)</center>
-err: timeout
+</body>
-still in main thread
+</html>
-wait success in 1s wait
-wait success
-main thread end
'
semaphore.t TEST 37: semaphore_mm free block (load <= 50% & the on the older side) - status code ok got: '500'
expected: '200'
semaphore.t TEST 37: semaphore_mm free block (load <= 50% & the on the older side) - response_body - response is expected (repeated req 0, req 0) got: '<html>
<head><title>500 Internal Server Error</title></head>
<body>
<center><h1>500 Internal Server Error</h1></center>
<hr><center>nginx/1.15.8 (no pool)</center>
</body>
</html>
'
expected: 'ok
'
semaphore.t TEST 37: semaphore_mm free block (load <= 50% & the on the older side) - status code ok got: '500'
expected: '200'
semaphore.t TEST 37: semaphore_mm free block (load <= 50% & the on the older side) - response_body - response is expected (repeated req 1, req 0) got: '<html>
<head><title>500 Internal Server Error</title></head>
<body>
<center><h1>500 Internal Server Error</h1></center>
<hr><center>nginx/1.15.8 (no pool)</center>
</body>
</html>
'
expected: 'ok
'
semaphore.t TEST 12: semaphore in content_by_lua (all allowed) - status code ok got: '500'
expected: '200'
semaphore.t TEST 12: semaphore in content_by_lua (all allowed) - response_body - response is expected (repeated req 0, req 0) got: '<html>
<head><title>500 Internal Server Error</title></head>
<body>
<center><h1>500 Internal Server Error</h1></center>
<hr><center>nginx/1.15.8 (no pool)</center>
</body>
</html>
'
expected: 'ok
'
semaphore.t TEST 12: semaphore in content_by_lua (all allowed) - status code ok got: '500'
expected: '200'
semaphore.t TEST 12: semaphore in content_by_lua (all allowed) - response_body - response is expected (repeated req 1, req 0) got: '<html>
<head><title>500 Internal Server Error</title></head>
<body>
<center><h1>500 Internal Server Error</h1></center>
<hr><center>nginx/1.15.8 (no pool)</center>
</body>
</html>
'
expected: 'ok
'
semaphore.t TEST 9: semaphore in set_by_lua (wait is not allowed) - status code ok got: '500'
expected: '200'
semaphore.t TEST 9: semaphore in set_by_lua (wait is not allowed) - response_body - response is expected (repeated req 0, req 0) got: '<html>
<head><title>500 Internal Server Error</title></head>
<body>
<center><h1>500 Internal Server Error</h1></center>
<hr><center>nginx/1.15.8 (no pool)</center>
</body>
</html>
'
expected: 'ok
'
semaphore.t TEST 9: semaphore in set_by_lua (wait is not allowed) - status code ok got: '500'
expected: '200'
semaphore.t TEST 9: semaphore in set_by_lua (wait is not allowed) - response_body - response is expected (repeated req 1, req 0) got: '<html>
<head><title>500 Internal Server Error</title></head>
<body>
<center><h1>500 Internal Server Error</h1></center>
<hr><center>nginx/1.15.8 (no pool)</center>
</body>
</html>
'
expected: 'ok
'
semaphore.t TEST 34: basic semaphore_mm alloc - status code ok got: '500'
expected: '200'
semaphore.t TEST 34: basic semaphore_mm alloc - response_body - response is expected (repeated req 0, req 0) got: '<html>
<head><title>500 Internal Server Error</title></head>
<body>
<center><h1>500 Internal Server Error</h1></center>
<hr><center>nginx/1.15.8 (no pool)</center>
</body>
</html>
'
expected: 'ok
'
semaphore.t TEST 34: basic semaphore_mm alloc - status code ok got: '500'
expected: '200'
semaphore.t TEST 34: basic semaphore_mm alloc - response_body - response is expected (repeated req 1, req 0) got: '<html>
<head><title>500 Internal Server Error</title></head>
<body>
<center><h1>500 Internal Server Error</h1></center>
<hr><center>nginx/1.15.8 (no pool)</center>
</body>
</html>
'
expected: 'ok
'
semaphore.t TEST 20: semaphore wait in timer.at - status code ok got: '500'
expected: '200'
semaphore.t TEST 20: semaphore wait in timer.at - response_body - response is expected (repeated req 0, req 0) got: '<html>
<head><title>500 Internal Server Error</title></head>
<body>
<center><h1>500 Internal Server Error</h1></center>
<hr><center>nginx/1.15.8 (no pool)</center>
</body>
</html>
'
expected: 'ok
'
semaphore.t TEST 20: semaphore wait in timer.at - pattern "wait success" should match a line in error.log (req 0)
semaphore.t TEST 20: semaphore wait in timer.at - status code ok got: '500'
expected: '200'
semaphore.t TEST 20: semaphore wait in timer.at - response_body - response is expected (repeated req 1, req 0) got: '<html>
<head><title>500 Internal Server Error</title></head>
<body>
<center><h1>500 Internal Server Error</h1></center>
<hr><center>nginx/1.15.8 (no pool)</center>
</body>
</html>
'
expected: 'ok
'
semaphore.t TEST 20: semaphore wait in timer.at - pattern "wait success" should match a line in error.log (req 1)
semaphore.t TEST 15: semaphore in body_filter_by_lua (wait not allowed) - status code ok got: ''
expected: '200'
semaphore.t TEST 15: semaphore in body_filter_by_lua (wait not allowed) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'ok
'
semaphore.t TEST 15: semaphore in body_filter_by_lua (wait not allowed) - status code ok got: ''
expected: '200'
semaphore.t TEST 15: semaphore in body_filter_by_lua (wait not allowed) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'ok
'
semaphore.t TEST 26: kill a light thread that is waiting on a semaphore (no resource) - status code ok got: '500'
expected: '200'
semaphore.t TEST 26: kill a light thread that is waiting on a semaphore (no resource) - response_body - response is expected (repeated req 0, req 0) got: '<html>
<head><title>500 Internal Server Error</title></head>
<body>
<center><h1>500 Internal Server Error</h1></center>
<hr><center>nginx/1.15.8 (no pool)</center>
</body>
</html>
'
expected: 'ok
'
semaphore.t TEST 26: kill a light thread that is waiting on a semaphore (no resource) - status code ok got: '500'
expected: '200'
semaphore.t TEST 26: kill a light thread that is waiting on a semaphore (no resource) - response_body - response is expected (repeated req 1, req 0) got: '<html>
<head><title>500 Internal Server Error</title></head>
<body>
<center><h1>500 Internal Server Error</h1></center>
<hr><center>nginx/1.15.8 (no pool)</center>
</body>
</html>
'
expected: 'ok
'
semaphore.t TEST 33: test semaphore gc - status code ok got: '500'
expected: '200'
semaphore.t TEST 33: test semaphore gc - response_body - response is expected (repeated req 0, req 0) got: '<html>
<head><title>500 Internal Server Error</title></head>
<body>
<center><h1>500 Internal Server Error</h1></center>
<hr><center>nginx/1.15.8 (no pool)</center>
</body>
</html>
'
expected: 'success
'
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 - status code ok got: '500'
expected: '200'
semaphore.t TEST 33: test semaphore gc - response_body - response is expected (repeated req 1, req 0) got: '<html>
<head><title>500 Internal Server Error</title></head>
<body>
<center><h1>500 Internal Server Error</h1></center>
<hr><center>nginx/1.15.8 (no pool)</center>
</body>
</html>
'
expected: 'success
'
semaphore.t TEST 33: test semaphore gc - pattern "in lua gc, semaphore" should match a line in error.log (req 1)
semaphore.t TEST 18: semaphore wait post in access_by_lua - status code ok got: '500'
expected: '200'
semaphore.t TEST 18: semaphore wait post in access_by_lua - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +1,7 @@
-enter wait
+<html>
-enter post
+<head><title>500 Internal Server Error</title></head>
-post success
+<body>
-wait success
+<center><h1>500 Internal Server Error</h1></center>
+<hr><center>nginx/1.15.8 (no pool)</center>
+</body>
+</html>
'
semaphore.t TEST 18: semaphore wait post in access_by_lua - status code ok got: '500'
expected: '200'
semaphore.t TEST 18: semaphore wait post in access_by_lua - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +1,7 @@
-enter wait
+<html>
-enter post
+<head><title>500 Internal Server Error</title></head>
-post success
+<body>
-wait success
+<center><h1>500 Internal Server Error</h1></center>
+<hr><center>nginx/1.15.8 (no pool)</center>
+</body>
+</html>
'
semaphore.t TEST 17: semaphore post in all phase (in a request) - status code ok got: ''
expected: '200'
semaphore.t TEST 17: semaphore post in all phase (in a request) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'ok
'
semaphore.t TEST 17: semaphore post in all phase (in a request) - status code ok got: ''
expected: '200'
semaphore.t TEST 17: semaphore post in all phase (in a request) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'ok
'
semaphore.t TEST 8: semaphore in init_worker_by_lua (new and post) - status code ok got: '500'
expected: '200'
semaphore.t TEST 8: semaphore in init_worker_by_lua (new and post) - response_body - response is expected (repeated req 0, req 0) got: '<html>
<head><title>500 Internal Server Error</title></head>
<body>
<center><h1>500 Internal Server Error</h1></center>
<hr><center>nginx/1.15.8 (no pool)</center>
</body>
</html>
'
expected: 'sem wait successfully.
'
semaphore.t TEST 8: semaphore in init_worker_by_lua (new and post) - status code ok got: '500'
expected: '200'
semaphore.t TEST 8: semaphore in init_worker_by_lua (new and post) - response_body - response is expected (repeated req 1, req 0) got: '<html>
<head><title>500 Internal Server Error</title></head>
<body>
<center><h1>500 Internal Server Error</h1></center>
<hr><center>nginx/1.15.8 (no pool)</center>
</body>
</html>
'
expected: 'sem wait successfully.
'
semaphore.t TEST 14: semaphore in header_filter_by_lua (wait not allowed) - status code ok got: ''
expected: '200'
semaphore.t TEST 14: semaphore in header_filter_by_lua (wait not allowed) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'ok
'
semaphore.t TEST 14: semaphore in header_filter_by_lua (wait not allowed) - status code ok got: ''
expected: '200'
semaphore.t TEST 14: semaphore in header_filter_by_lua (wait not allowed) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'ok
'
semaphore.t TEST 27: kill a light thread that is waiting on a semaphore (after post) - status code ok got: '500'
expected: '200'
semaphore.t TEST 27: kill a light thread that is waiting on a semaphore (after post) - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +1,7 @@
-ok
+<html>
-count: 1
+<head><title>500 Internal Server Error</title></head>
+<body>
+<center><h1>500 Internal Server Error</h1></center>
+<hr><center>nginx/1.15.8 (no pool)</center>
+</body>
+</html>
'
semaphore.t TEST 27: kill a light thread that is waiting on a semaphore (after post) - status code ok got: '500'
expected: '200'
semaphore.t TEST 27: kill a light thread that is waiting on a semaphore (after post) - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +1,7 @@
-ok
+<html>
-count: 1
+<head><title>500 Internal Server Error</title></head>
+<body>
+<center><h1>500 Internal Server Error</h1></center>
+<hr><center>nginx/1.15.8 (no pool)</center>
+</body>
+</html>
'
semaphore.t TEST 11: semaphore in access_by_lua (all allowed) - status code ok got: '500'
expected: '200'
semaphore.t TEST 11: semaphore in access_by_lua (all allowed) - response_body - response is expected (repeated req 0, req 0) got: '<html>
<head><title>500 Internal Server Error</title></head>
<body>
<center><h1>500 Internal Server Error</h1></center>
<hr><center>nginx/1.15.8 (no pool)</center>
</body>
</html>
'
expected: 'ok
'
semaphore.t TEST 11: semaphore in access_by_lua (all allowed) - status code ok got: '500'
expected: '200'
semaphore.t TEST 11: semaphore in access_by_lua (all allowed) - response_body - response is expected (repeated req 1, req 0) got: '<html>
<head><title>500 Internal Server Error</title></head>
<body>
<center><h1>500 Internal Server Error</h1></center>
<hr><center>nginx/1.15.8 (no pool)</center>
</body>
</html>
'
expected: 'ok
'
semaphore.t TEST 6: semaphore.new in init_by_lua* (with shdict) - failed to reload configuration after 200 failed test requests
semaphore.t TEST 6: semaphore.new in init_by_lua* (with shdict) - status code ok got: '500'
expected: '200'
semaphore.t TEST 6: semaphore.new in init_by_lua* (with shdict) - response_body_like - response is expected (<html> <head><title>500 Internal Server Error</title></head> <body> <center><h1>500 Internal Server Error</h1></center> <hr><center>nginx/1.15.8 (no pool)</center> </body> </html>) '<html>
<head><title>500 Internal Server Error</title></head>
<body>
<center><h1>500 Internal Server Error</h1></center>
<hr><center>nginx/1.15.8 (no pool)</center>
</body>
</html>
'
doesn't match '(?^s:sem count: [12]
waited successfully.
)'
semaphore.t TEST 6: semaphore.new in init_by_lua* (with shdict) - status code ok got: '500'
expected: '200'
semaphore.t TEST 6: semaphore.new in init_by_lua* (with shdict) - response_body_like - response is expected (<html> <head><title>500 Internal Server Error</title></head> <body> <center><h1>500 Internal Server Error</h1></center> <hr><center>nginx/1.15.8 (no pool)</center> </body> </html>) '<html>
<head><title>500 Internal Server Error</title></head>
<body>
<center><h1>500 Internal Server Error</h1></center>
<hr><center>nginx/1.15.8 (no pool)</center>
</body>
</html>
'
doesn't match '(?^s:sem count: [12]
waited successfully.
)'
semaphore.t TEST 31: multi wait and mult post with one semaphore - status code ok got: '500'
expected: '200'
semaphore.t TEST 31: multi wait and mult post with one semaphore - response_body - response is expected (repeated req 0, req 0) @@ -1,9 +1,7 @@
-wait: 1
+<html>
-wait: 2
+<head><title>500 Internal Server Error</title></head>
-wait: 3
+<body>
-post: 1
+<center><h1>500 Internal Server Error</h1></center>
-post: 2
+<hr><center>nginx/1.15.8 (no pool)</center>
-post: 3
+</body>
-wait success: 1
+</html>
-wait success: 2
-wait success: 3
'
semaphore.t TEST 31: multi wait and mult post with one semaphore - status code ok got: '500'
expected: '200'
semaphore.t TEST 31: multi wait and mult post with one semaphore - response_body - response is expected (repeated req 1, req 0) @@ -1,9 +1,7 @@
-wait: 1
+<html>
-wait: 2
+<head><title>500 Internal Server Error</title></head>
-wait: 3
+<body>
-post: 1
+<center><h1>500 Internal Server Error</h1></center>
-post: 2
+<hr><center>nginx/1.15.8 (no pool)</center>
-post: 3
+</body>
-wait success: 1
+</html>
-wait success: 2
-wait success: 3
'
semaphore.t TEST 25: two thread wait for each other - status code ok got: '500'
expected: '200'
semaphore.t TEST 25: two thread wait for each other - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +1,7 @@
-count in B: 0
+<html>
-count in A: 0
+<head><title>500 Internal Server Error</title></head>
+<body>
+<center><h1>500 Internal Server Error</h1></center>
+<hr><center>nginx/1.15.8 (no pool)</center>
+</body>
+</html>
'
semaphore.t TEST 25: two thread wait for each other - status code ok got: '500'
expected: '200'
semaphore.t TEST 25: two thread wait for each other - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +1,7 @@
-count in B: 0
+<html>
-count in A: 0
+<head><title>500 Internal Server Error</title></head>
+<body>
+<center><h1>500 Internal Server Error</h1></center>
+<hr><center>nginx/1.15.8 (no pool)</center>
+</body>
+</html>
'
semaphore.t TEST 4: basic semaphore in subrequest - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +1,4 @@
-200
+500
-wait
+
-200
+500
-post
+
'
semaphore.t TEST 4: basic semaphore in subrequest - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +1,4 @@
-200
+500
-wait
+
-200
+500
-post
+
'
semaphore.t TEST 35: basic semaphore_mm free insert tail - status code ok got: '500'
expected: '200'
semaphore.t TEST 35: basic semaphore_mm free insert tail - response_body - response is expected (repeated req 0, req 0) got: '<html>
<head><title>500 Internal Server Error</title></head>
<body>
<center><h1>500 Internal Server Error</h1></center>
<hr><center>nginx/1.15.8 (no pool)</center>
</body>
</html>
'
expected: 'ok
'
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 - status code ok got: '500'
expected: '200'
semaphore.t TEST 35: basic semaphore_mm free insert tail - response_body - response is expected (repeated req 1, req 0) got: '<html>
<head><title>500 Internal Server Error</title></head>
<body>
<center><h1>500 Internal Server Error</h1></center>
<hr><center>nginx/1.15.8 (no pool)</center>
</body>
</html>
'
expected: 'ok
'
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 30: main thread wait a light thread that is waiting on a semaphore - status code ok got: '500'
expected: '200'
semaphore.t TEST 30: main thread wait a light thread that is waiting on a semaphore - response_body - response is expected (repeated req 0, req 0) got: '<html>
<head><title>500 Internal Server Error</title></head>
<body>
<center><h1>500 Internal Server Error</h1></center>
<hr><center>nginx/1.15.8 (no pool)</center>
</body>
</html>
'
expected: 'err: timeout
'
semaphore.t TEST 30: main thread wait a light thread that is waiting on a semaphore - status code ok got: '500'
expected: '200'
semaphore.t TEST 30: main thread wait a light thread that is waiting on a semaphore - response_body - response is expected (repeated req 1, req 0) got: '<html>
<head><title>500 Internal Server Error</title></head>
<body>
<center><h1>500 Internal Server Error</h1></center>
<hr><center>nginx/1.15.8 (no pool)</center>
</body>
</html>
'
expected: 'err: timeout
'
semaphore.t TEST 21: semaphore post in header_filter_by_lua (subrequest) - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +1,4 @@
+500
+
200
-wait
+
-200
-post
'
semaphore.t TEST 21: semaphore post in header_filter_by_lua (subrequest) - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +1,4 @@
+500
+
200
-wait
+
-200
-post
'
semaphore.t TEST 19: semaphore wait post in rewrite_by_lua - status code ok got: '500'
expected: '200'
semaphore.t TEST 19: semaphore wait post in rewrite_by_lua - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +1,7 @@
-enter wait
+<html>
-enter post
+<head><title>500 Internal Server Error</title></head>
-post success
+<body>
-wait success
+<center><h1>500 Internal Server Error</h1></center>
+<hr><center>nginx/1.15.8 (no pool)</center>
+</body>
+</html>
'
semaphore.t TEST 19: semaphore wait post in rewrite_by_lua - status code ok got: '500'
expected: '200'
semaphore.t TEST 19: semaphore wait post in rewrite_by_lua - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +1,7 @@
-enter wait
+<html>
-enter post
+<head><title>500 Internal Server Error</title></head>
-post success
+<body>
-wait success
+<center><h1>500 Internal Server Error</h1></center>
+<hr><center>nginx/1.15.8 (no pool)</center>
+</body>
+</html>
'
semaphore.t TEST 24: semaphore post in timer.at - status code ok got: '500'
expected: '200'
semaphore.t TEST 24: semaphore post in timer.at - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +1,7 @@
-200
+<html>
-wait
+<head><title>500 Internal Server Error</title></head>
-200
+<body>
-post
+<center><h1>500 Internal Server Error</h1></center>
+<hr><center>nginx/1.15.8 (no pool)</center>
+</body>
+</html>
'
semaphore.t TEST 24: semaphore post in timer.at - status code ok got: '500'
expected: '200'
semaphore.t TEST 24: semaphore post in timer.at - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +1,7 @@
-200
+<html>
-wait
+<head><title>500 Internal Server Error</title></head>
-200
+<body>
-post
+<center><h1>500 Internal Server Error</h1></center>
+<hr><center>nginx/1.15.8 (no pool)</center>
+</body>
+</html>
'
semaphore.t TEST 23: semaphore post in set_by_lua - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +1,4 @@
-200
+500
-wait
+
-200
+500
-post
+
'
semaphore.t TEST 23: semaphore post in set_by_lua - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +1,4 @@
-200
+500
-wait
+
-200
+500
-post
+
'
semaphore.t TEST 28: kill a thread that is waiting on another thread that is waiting on semaphore - status code ok got: '500'
expected: '200'
semaphore.t TEST 28: kill a thread that is waiting on another thread that is waiting on semaphore - response_body - response is expected (repeated req 0, req 0) @@ -1,5 +1,7 @@
-sem waiting start
+<html>
-thread waiting start
+<head><title>500 Internal Server Error</title></head>
-thread kill success
+<body>
-sem wait err: timeout
+<center><h1>500 Internal Server Error</h1></center>
-sem waiting done
+<hr><center>nginx/1.15.8 (no pool)</center>
+</body>
+</html>
'
semaphore.t TEST 28: kill a thread that is waiting on another thread that is waiting on semaphore - status code ok got: '500'
expected: '200'
semaphore.t TEST 28: kill a thread that is waiting on another thread that is waiting on semaphore - response_body - response is expected (repeated req 1, req 0) @@ -1,5 +1,7 @@
-sem waiting start
+<html>
-thread waiting start
+<head><title>500 Internal Server Error</title></head>
-thread kill success
+<body>
-sem wait err: timeout
+<center><h1>500 Internal Server Error</h1></center>
-sem waiting done
+<hr><center>nginx/1.15.8 (no pool)</center>
+</body>
+</html>
'
semaphore.t TEST 1: basic semaphore in uthread - status code ok got: '500'
expected: '200'
semaphore.t TEST 1: basic semaphore in uthread - response_body - response is expected (repeated req 0, req 0) @@ -1,5 +1,7 @@
-enter waiting
+<html>
-back in main thread
+<head><title>500 Internal Server Error</title></head>
-still in main thread
+<body>
-wait success
+<center><h1>500 Internal Server Error</h1></center>
-main thread end
+<hr><center>nginx/1.15.8 (no pool)</center>
+</body>
+</html>
'
semaphore.t TEST 1: basic semaphore in uthread - status code ok got: '500'
expected: '200'
semaphore.t TEST 1: basic semaphore in uthread - response_body - response is expected (repeated req 1, req 0) @@ -1,5 +1,7 @@
-enter waiting
+<html>
-back in main thread
+<head><title>500 Internal Server Error</title></head>
-still in main thread
+<body>
-wait success
+<center><h1>500 Internal Server Error</h1></center>
-main thread end
+<hr><center>nginx/1.15.8 (no pool)</center>
+</body>
+</html>
'
semaphore.t TEST 36: basic semaphore_mm free insert head - status code ok got: '500'
expected: '200'
semaphore.t TEST 36: basic semaphore_mm free insert head - response_body - response is expected (repeated req 0, req 0) got: '<html>
<head><title>500 Internal Server Error</title></head>
<body>
<center><h1>500 Internal Server Error</h1></center>
<hr><center>nginx/1.15.8 (no pool)</center>
</body>
</html>
'
expected: 'ok
'
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 - status code ok got: '500'
expected: '200'
semaphore.t TEST 36: basic semaphore_mm free insert head - response_body - response is expected (repeated req 1, req 0) got: '<html>
<head><title>500 Internal Server Error</title></head>
<body>
<center><h1>500 Internal Server Error</h1></center>
<hr><center>nginx/1.15.8 (no pool)</center>
</body>
</html>
'
expected: 'ok
'
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 38: basic semaphore count - status code ok got: '500'
expected: '200'
semaphore.t TEST 38: basic semaphore count - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +1,7 @@
-10
+<html>
-9
+<head><title>500 Internal Server Error</title></head>
-12
+<body>
+<center><h1>500 Internal Server Error</h1></center>
+<hr><center>nginx/1.15.8 (no pool)</center>
+</body>
+</html>
'
semaphore.t TEST 38: basic semaphore count - status code ok got: '500'
expected: '200'
semaphore.t TEST 38: basic semaphore count - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +1,7 @@
-10
+<html>
-9
+<head><title>500 Internal Server Error</title></head>
-12
+<body>
+<center><h1>500 Internal Server Error</h1></center>
+<hr><center>nginx/1.15.8 (no pool)</center>
+</body>
+</html>
'
semaphore.t TEST 39: basic semaphore count (negative number) - status code ok got: '500'
expected: '200'
semaphore.t TEST 39: basic semaphore count (negative number) - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +1,7 @@
-0
+<html>
--1
+<head><title>500 Internal Server Error</title></head>
+<body>
+<center><h1>500 Internal Server Error</h1></center>
+<hr><center>nginx/1.15.8 (no pool)</center>
+</body>
+</html>
'
semaphore.t TEST 39: basic semaphore count (negative number) - status code ok got: '500'
expected: '200'
semaphore.t TEST 39: basic semaphore count (negative number) - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +1,7 @@
-0
+<html>
--1
+<head><title>500 Internal Server Error</title></head>
+<body>
+<center><h1>500 Internal Server Error</h1></center>
+<hr><center>nginx/1.15.8 (no pool)</center>
+</body>
+</html>
'
semaphore.t TEST 2: semaphore wait order - status code ok got: '500'
expected: '200'
semaphore.t TEST 2: semaphore wait order - response_body - response is expected (repeated req 0, req 0) @@ -1,9 +1,7 @@
-enter waiting, id: 1
+<html>
-enter waiting, id: 2
+<head><title>500 Internal Server Error</title></head>
-back in main thread
+<body>
-wait failed in main thread: timeout
+<center><h1>500 Internal Server Error</h1></center>
-still in main thread
+<hr><center>nginx/1.15.8 (no pool)</center>
-wait success, id: 1
+</body>
-wait success, id: 2
+</html>
-wait failed in main thread: timeout
-main thread end
'
semaphore.t TEST 2: semaphore wait order - status code ok got: '500'
expected: '200'
semaphore.t TEST 2: semaphore wait order - response_body - response is expected (repeated req 1, req 0) @@ -1,9 +1,7 @@
-enter waiting, id: 1
+<html>
-enter waiting, id: 2
+<head><title>500 Internal Server Error</title></head>
-back in main thread
+<body>
-wait failed in main thread: timeout
+<center><h1>500 Internal Server Error</h1></center>
-still in main thread
+<hr><center>nginx/1.15.8 (no pool)</center>
-wait success, id: 1
+</body>
-wait success, id: 2
+</html>
-wait failed in main thread: timeout
-main thread end
'
sha1-bin.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
sha1-bin.t TEST 1: set sha1_bin (string) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
sha1-bin.t TEST 1: set sha1_bin (string) - status code ok got: ''
expected: '200'
sha1-bin.t TEST 1: set sha1_bin (string) - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "20\x{0a}"
length: 3
strings begin to differ at char 1 (line 1 column 1)
sha1-bin.t TEST 1: set sha1_bin (string) - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):3 loop\])" should match a line in error.log (req 0)
sha1-bin.t TEST 1: set sha1_bin (string) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:02:21 [error] 14796\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
sha1-bin.t TEST 1: set sha1_bin (string) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
sha1-bin.t TEST 1: set sha1_bin (string) - status code ok got: ''
expected: '200'
sha1-bin.t TEST 1: set sha1_bin (string) - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "20\x{0a}"
length: 3
strings begin to differ at char 1 (line 1 column 1)
sha1-bin.t TEST 1: set sha1_bin (string) - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):3 loop\])" should match a line in error.log (req 1)
sha1-bin.t TEST 1: set sha1_bin (string) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:02:21 [error] 14796\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
sha1-bin.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
sha1-bin.t TEST 3: set sha1_bin (number) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
sha1-bin.t TEST 3: set sha1_bin (number) - status code ok got: ''
expected: '200'
sha1-bin.t TEST 3: set sha1_bin (number) - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "20\x{0a}"
length: 3
strings begin to differ at char 1 (line 1 column 1)
sha1-bin.t TEST 3: set sha1_bin (number) - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):3 loop\])" should match a line in error.log (req 0)
sha1-bin.t TEST 3: set sha1_bin (number) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:02:25 [error] 14801\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
sha1-bin.t TEST 3: set sha1_bin (number) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
sha1-bin.t TEST 3: set sha1_bin (number) - status code ok got: ''
expected: '200'
sha1-bin.t TEST 3: set sha1_bin (number) - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "20\x{0a}"
length: 3
strings begin to differ at char 1 (line 1 column 1)
sha1-bin.t TEST 3: set sha1_bin (number) - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):3 loop\])" should match a line in error.log (req 1)
sha1-bin.t TEST 3: set sha1_bin (number) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:02:25 [error] 14801\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
sha1-bin.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
sha1-bin.t TEST 4: set sha1_bin (boolean) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
sha1-bin.t TEST 4: set sha1_bin (boolean) - status code ok got: ''
expected: '200'
sha1-bin.t TEST 4: set sha1_bin (boolean) - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "20\x{0a}"
length: 3
strings begin to differ at char 1 (line 1 column 1)
sha1-bin.t TEST 4: set sha1_bin (boolean) - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):3 loop\])" should match a line in error.log (req 0)
sha1-bin.t TEST 4: set sha1_bin (boolean) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:02:30 [error] 14806\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
sha1-bin.t TEST 4: set sha1_bin (boolean) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
sha1-bin.t TEST 4: set sha1_bin (boolean) - status code ok got: ''
expected: '200'
sha1-bin.t TEST 4: set sha1_bin (boolean) - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "20\x{0a}"
length: 3
strings begin to differ at char 1 (line 1 column 1)
sha1-bin.t TEST 4: set sha1_bin (boolean) - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):3 loop\])" should match a line in error.log (req 1)
sha1-bin.t TEST 4: set sha1_bin (boolean) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:02:30 [error] 14806\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
sha1-bin.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
sha1-bin.t TEST 2: set sha1_bin (nil) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
sha1-bin.t TEST 2: set sha1_bin (nil) - status code ok got: ''
expected: '200'
sha1-bin.t TEST 2: set sha1_bin (nil) - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "20\x{0a}"
length: 3
strings begin to differ at char 1 (line 1 column 1)
sha1-bin.t TEST 2: set sha1_bin (nil) - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):3 loop\])" should match a line in error.log (req 0)
sha1-bin.t TEST 2: set sha1_bin (nil) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:02:34 [error] 14811\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
sha1-bin.t TEST 2: set sha1_bin (nil) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
sha1-bin.t TEST 2: set sha1_bin (nil) - status code ok got: ''
expected: '200'
sha1-bin.t TEST 2: set sha1_bin (nil) - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "20\x{0a}"
length: 3
strings begin to differ at char 1 (line 1 column 1)
sha1-bin.t TEST 2: set sha1_bin (nil) - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):3 loop\])" should match a line in error.log (req 1)
sha1-bin.t TEST 2: set sha1_bin (nil) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:02:34 [error] 14811\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
shared.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
shared.t TEST 1: shared.ttl errors on nil key - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
shared.t TEST 1: shared.ttl errors on nil key - status code ok got: ''
expected: '200'
shared.t TEST 1: shared.ttl errors on nil key - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'failed to get ttl: nil key
'
shared.t TEST 1: shared.ttl errors on nil key - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:02:39 [error] 14819\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
shared.t TEST 1: shared.ttl errors on nil key - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
shared.t TEST 1: shared.ttl errors on nil key - status code ok got: ''
expected: '200'
shared.t TEST 1: shared.ttl errors on nil key - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'failed to get ttl: nil key
'
shared.t TEST 1: shared.ttl errors on nil key - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:02:39 [error] 14819\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
shared.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
shared.t TEST 9: shared.expire returns error on nil key - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
shared.t TEST 9: shared.expire returns error on nil key - status code ok got: ''
expected: '200'
shared.t TEST 9: shared.expire returns error on nil key - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'failed to set ttl: nil key
'
shared.t TEST 9: shared.expire returns error on nil key - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:02:44 [error] 14825\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
shared.t TEST 9: shared.expire returns error on nil key - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
shared.t TEST 9: shared.expire returns error on nil key - status code ok got: ''
expected: '200'
shared.t TEST 9: shared.expire returns error on nil key - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'failed to set ttl: nil key
'
shared.t TEST 9: shared.expire returns error on nil key - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:02:44 [error] 14825\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
shared.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
shared.t TEST 13: shared.expire updates ttl of key with default ttl (0) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
shared.t TEST 13: shared.expire updates ttl of key with default ttl (0) - status code ok got: ''
expected: '200'
shared.t TEST 13: shared.expire updates ttl of key with default ttl (0) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'after set: true
after 0.4s: nil
'
shared.t TEST 13: shared.expire updates ttl of key with default ttl (0) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:02:48 [error] 14831\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
shared.t TEST 13: shared.expire updates ttl of key with default ttl (0) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
shared.t TEST 13: shared.expire updates ttl of key with default ttl (0) - status code ok got: ''
expected: '200'
shared.t TEST 13: shared.expire updates ttl of key with default ttl (0) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'after set: true
after 0.4s: nil
'
shared.t TEST 13: shared.expire updates ttl of key with default ttl (0) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:02:48 [error] 14831\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
shared.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
shared.t TEST 3: shared.ttl returns error on not found key - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
shared.t TEST 3: shared.ttl returns error on not found key - status code ok got: ''
expected: '200'
shared.t TEST 3: shared.ttl returns error on not found key - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:02:53 [error] 14837\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
shared.t TEST 3: shared.ttl returns error on not found key - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
shared.t TEST 3: shared.ttl returns error on not found key - status code ok got: ''
expected: '200'
shared.t TEST 3: shared.ttl returns error on not found key - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:02:53 [error] 14837\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
shared.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
shared.t TEST 7: shared.ttl JIT compiles - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
shared.t TEST 7: shared.ttl JIT compiles - status code ok got: ''
expected: '200'
shared.t TEST 7: shared.ttl JIT compiles - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):4 loop\])" should match a line in error.log (req 0)
shared.t TEST 7: shared.ttl JIT compiles - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:02:57 [error] 14843\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
shared.t TEST 7: shared.ttl JIT compiles - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
shared.t TEST 7: shared.ttl JIT compiles - status code ok got: ''
expected: '200'
shared.t TEST 7: shared.ttl JIT compiles - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):4 loop\])" should match a line in error.log (req 1)
shared.t TEST 7: shared.ttl JIT compiles - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:02:57 [error] 14843\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
shared.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
shared.t TEST 5: shared.ttl returns key ttl for non-default (negative) ttl - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
shared.t TEST 5: shared.ttl returns key ttl for non-default (negative) ttl - status code ok got: ''
expected: '200'
shared.t TEST 5: shared.ttl returns key ttl for non-default (negative) ttl - response_body_like - response is expected () ''
doesn't match '(?^s:\A0.1
sleep for 0.2s...
-0.\d*
\z)'
shared.t TEST 5: shared.ttl returns key ttl for non-default (negative) ttl - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:03:02 [error] 14849\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
shared.t TEST 5: shared.ttl returns key ttl for non-default (negative) ttl - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
shared.t TEST 5: shared.ttl returns key ttl for non-default (negative) ttl - status code ok got: ''
expected: '200'
shared.t TEST 5: shared.ttl returns key ttl for non-default (negative) ttl - response_body_like - response is expected () ''
doesn't match '(?^s:\A0.1
sleep for 0.2s...
-0.\d*
\z)'
shared.t TEST 5: shared.ttl returns key ttl for non-default (negative) ttl - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:03:02 [error] 14849\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
shared.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
shared.t TEST 10: shared.expire returns error on empty key - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
shared.t TEST 10: shared.expire returns error on empty key - status code ok got: ''
expected: '200'
shared.t TEST 10: shared.expire returns error on empty key - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'failed to set ttl: empty key
'
shared.t TEST 10: shared.expire returns error on empty key - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:03:06 [error] 14855\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
shared.t TEST 10: shared.expire returns error on empty key - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
shared.t TEST 10: shared.expire returns error on empty key - status code ok got: ''
expected: '200'
shared.t TEST 10: shared.expire returns error on empty key - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'failed to set ttl: empty key
'
shared.t TEST 10: shared.expire returns error on empty key - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:03:06 [error] 14855\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
shared.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
shared.t TEST 14: shared.expire JIT compiles - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
shared.t TEST 14: shared.expire JIT compiles - status code ok got: ''
expected: '200'
shared.t TEST 14: shared.expire JIT compiles - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):9 loop\])" should match a line in error.log (req 0)
shared.t TEST 14: shared.expire JIT compiles - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:03:11 [error] 14861\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
shared.t TEST 14: shared.expire JIT compiles - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
shared.t TEST 14: shared.expire JIT compiles - status code ok got: ''
expected: '200'
shared.t TEST 14: shared.expire JIT compiles - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):9 loop\])" should match a line in error.log (req 1)
shared.t TEST 14: shared.expire JIT compiles - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:03:11 [error] 14861\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
shared.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
shared.t TEST 11: shared.expire returns error on not found key - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
shared.t TEST 11: shared.expire returns error on not found key - status code ok got: ''
expected: '200'
shared.t TEST 11: shared.expire returns error on not found key - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:03:15 [error] 14867\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
shared.t TEST 11: shared.expire returns error on not found key - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
shared.t TEST 11: shared.expire returns error on not found key - status code ok got: ''
expected: '200'
shared.t TEST 11: shared.expire returns error on not found key - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:03:15 [error] 14867\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
shared.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
shared.t TEST 12: shared.expire updates ttl of key with non-default ttl - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
shared.t TEST 12: shared.expire updates ttl of key with non-default ttl - status code ok got: ''
expected: '200'
shared.t TEST 12: shared.expire updates ttl of key with non-default ttl - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'after 0.2s: true
after 0.4s: nil
'
shared.t TEST 12: shared.expire updates ttl of key with non-default ttl - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:03:20 [error] 14873\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
shared.t TEST 12: shared.expire updates ttl of key with non-default ttl - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
shared.t TEST 12: shared.expire updates ttl of key with non-default ttl - status code ok got: ''
expected: '200'
shared.t TEST 12: shared.expire updates ttl of key with non-default ttl - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'after 0.2s: true
after 0.4s: nil
'
shared.t TEST 12: shared.expire updates ttl of key with non-default ttl - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:03:20 [error] 14873\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
shared.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
shared.t TEST 2: shared.ttl errors on empty key - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
shared.t TEST 2: shared.ttl errors on empty key - status code ok got: ''
expected: '200'
shared.t TEST 2: shared.ttl errors on empty key - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'failed to get ttl: empty key
'
shared.t TEST 2: shared.ttl errors on empty key - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:03:25 [error] 14879\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
shared.t TEST 2: shared.ttl errors on empty key - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
shared.t TEST 2: shared.ttl errors on empty key - status code ok got: ''
expected: '200'
shared.t TEST 2: shared.ttl errors on empty key - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'failed to get ttl: empty key
'
shared.t TEST 2: shared.ttl errors on empty key - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:03:25 [error] 14879\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
shared.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
shared.t TEST 6: shared.ttl returns key ttl for default ttl (0) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
shared.t TEST 6: shared.ttl returns key ttl for default ttl (0) - status code ok got: ''
expected: '200'
shared.t TEST 6: shared.ttl returns key ttl for default ttl (0) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: '0
sleep for 0.1s...
0
'
shared.t TEST 6: shared.ttl returns key ttl for default ttl (0) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:03:29 [error] 14885\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
shared.t TEST 6: shared.ttl returns key ttl for default ttl (0) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
shared.t TEST 6: shared.ttl returns key ttl for default ttl (0) - status code ok got: ''
expected: '200'
shared.t TEST 6: shared.ttl returns key ttl for default ttl (0) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: '0
sleep for 0.1s...
0
'
shared.t TEST 6: shared.ttl returns key ttl for default ttl (0) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:03:29 [error] 14885\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
shared.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
shared.t TEST 8: shared.expire errors on invalid exptime - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
shared.t TEST 8: shared.expire errors on invalid exptime - status code ok got: ''
expected: '200'
shared.t TEST 8: shared.expire errors on invalid exptime - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'bad "exptime" argument
'
shared.t TEST 8: shared.expire errors on invalid exptime - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:03:34 [error] 14891\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
shared.t TEST 8: shared.expire errors on invalid exptime - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
shared.t TEST 8: shared.expire errors on invalid exptime - status code ok got: ''
expected: '200'
shared.t TEST 8: shared.expire errors on invalid exptime - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'bad "exptime" argument
'
shared.t TEST 8: shared.expire errors on invalid exptime - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:03:34 [error] 14891\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
shared.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
shared.t TEST 4: shared.ttl returns key ttl for non-default (positive) ttl - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
shared.t TEST 4: shared.ttl returns key ttl for non-default (positive) ttl - status code ok got: ''
expected: '200'
shared.t TEST 4: shared.ttl returns key ttl for non-default (positive) ttl - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:03:38 [error] 14897\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
shared.t TEST 4: shared.ttl returns key ttl for non-default (positive) ttl - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
shared.t TEST 4: shared.ttl returns key ttl for non-default (positive) ttl - status code ok got: ''
expected: '200'
shared.t TEST 4: shared.ttl returns key ttl for non-default (positive) ttl - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:03:38 [error] 14897\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
shdict.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
shdict.t TEST 31: capacity - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
shdict.t TEST 31: capacity - status code ok got: ''
expected: '200'
shdict.t TEST 31: capacity - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-capacity type: number
-capacity: 16384
'
shdict.t TEST 31: capacity - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:03:43 [error] 14906\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
shdict.t TEST 31: capacity - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
shdict.t TEST 31: capacity - status code ok got: ''
expected: '200'
shdict.t TEST 31: capacity - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-capacity type: number
-capacity: 16384
'
shdict.t TEST 31: capacity - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:03:43 [error] 14906\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
shdict.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
shdict.t TEST 1: get a string value - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
shdict.t TEST 1: get a string value - status code ok got: ''
expected: '200'
shdict.t TEST 1: get a string value - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-value type: string
-value: bar
-flags: 72
'
shdict.t TEST 1: get a string value - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):11 loop\])" should match a line in error.log (req 0)
shdict.t TEST 1: get a string value - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:03:48 [error] 14912\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
shdict.t TEST 1: get a string value - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
shdict.t TEST 1: get a string value - status code ok got: ''
expected: '200'
shdict.t TEST 1: get a string value - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-value type: string
-value: bar
-flags: 72
'
shdict.t TEST 1: get a string value - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):11 loop\])" should match a line in error.log (req 1)
shdict.t TEST 1: get a string value - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:03:48 [error] 14912\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
shdict.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
shdict.t TEST 40: incr init_ttl argument is not a number - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
shdict.t TEST 40: incr init_ttl argument is not a number - status code ok got: ''
expected: '200'
shdict.t TEST 40: incr init_ttl argument is not a number - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'not ok: bad init_ttl arg: number expected, got string
'
shdict.t TEST 40: incr init_ttl argument is not a number - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:03:52 [error] 14918\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
shdict.t TEST 40: incr init_ttl argument is not a number - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
shdict.t TEST 40: incr init_ttl argument is not a number - status code ok got: ''
expected: '200'
shdict.t TEST 40: incr init_ttl argument is not a number - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'not ok: bad init_ttl arg: number expected, got string
'
shdict.t TEST 40: incr init_ttl argument is not a number - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:03:52 [error] 14918\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
shdict.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
shdict.t TEST 15: set a number value (int) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
shdict.t TEST 15: set a number value (int) - status code ok got: ''
expected: '200'
shdict.t TEST 15: set a number value (int) - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-value type: number
-value: 51203
-flags: nil
'
shdict.t TEST 15: set a number value (int) - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):6 loop\])" should match a line in error.log (req 0)
shdict.t TEST 15: set a number value (int) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:03:57 [error] 14924\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
shdict.t TEST 15: set a number value (int) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
shdict.t TEST 15: set a number value (int) - status code ok got: ''
expected: '200'
shdict.t TEST 15: set a number value (int) - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-value type: number
-value: 51203
-flags: nil
'
shdict.t TEST 15: set a number value (int) - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):6 loop\])" should match a line in error.log (req 1)
shdict.t TEST 15: set a number value (int) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:03:57 [error] 14924\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
shdict.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
shdict.t TEST 32: free_space, empty (16k zone) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
shdict.t TEST 32: free_space, empty (16k zone) - status code ok got: ''
expected: '200'
shdict.t TEST 32: free_space, empty (16k zone) - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-free_page_bytes type: number
-free_page_bytes: 4096
'
shdict.t TEST 32: free_space, empty (16k zone) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:04:01 [error] 14930\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
shdict.t TEST 32: free_space, empty (16k zone) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
shdict.t TEST 32: free_space, empty (16k zone) - status code ok got: ''
expected: '200'
shdict.t TEST 32: free_space, empty (16k zone) - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-free_page_bytes type: number
-free_page_bytes: 4096
'
shdict.t TEST 32: free_space, empty (16k zone) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:04:01 [error] 14930\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
shdict.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
shdict.t TEST 41: incr init_ttl argument without init - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
shdict.t TEST 41: incr init_ttl argument without init - status code ok got: ''
expected: '200'
shdict.t TEST 41: incr init_ttl argument without init - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'not ok: must provide "init" when providing "init_ttl"
'
shdict.t TEST 41: incr init_ttl argument without init - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:04:06 [error] 14936\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
shdict.t TEST 41: incr init_ttl argument without init - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
shdict.t TEST 41: incr init_ttl argument without init - status code ok got: ''
expected: '200'
shdict.t TEST 41: incr init_ttl argument without init - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'not ok: must provide "init" when providing "init_ttl"
'
shdict.t TEST 41: incr init_ttl argument without init - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:04:06 [error] 14936\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
shdict.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
shdict.t TEST 42: incr key with init_ttl (key exists) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
shdict.t TEST 42: incr key with init_ttl (key exists) - status code ok got: ''
expected: '200'
shdict.t TEST 42: incr key with init_ttl (key exists) - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-incr: 10534 nil
-foo = 10534
-foo after incr init_ttl = 10534
'
shdict.t TEST 42: incr key with init_ttl (key exists) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:04:10 [error] 14942\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
shdict.t TEST 42: incr key with init_ttl (key exists) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
shdict.t TEST 42: incr key with init_ttl (key exists) - status code ok got: ''
expected: '200'
shdict.t TEST 42: incr key with init_ttl (key exists) - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-incr: 10534 nil
-foo = 10534
-foo after incr init_ttl = 10534
'
shdict.t TEST 42: incr key with init_ttl (key exists) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:04:10 [error] 14942\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
shdict.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
shdict.t TEST 38: free_space, full (100k) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
shdict.t TEST 38: free_space, full (100k) - status code ok got: ''
expected: '200'
shdict.t TEST 38: free_space, full (100k) - response_body_like - response is expected () ''
doesn't match '(?^s:\A(?:got forcible, i=736
)?free_page_bytes type: number
free_page_bytes: (?:0|32768)
\z)'
shdict.t TEST 38: free_space, full (100k) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:04:15 [error] 14948\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
shdict.t TEST 38: free_space, full (100k) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
shdict.t TEST 38: free_space, full (100k) - status code ok got: ''
expected: '200'
shdict.t TEST 38: free_space, full (100k) - response_body_like - response is expected () ''
doesn't match '(?^s:\A(?:got forcible, i=736
)?free_page_bytes type: number
free_page_bytes: (?:0|32768)
\z)'
shdict.t TEST 38: free_space, full (100k) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:04:15 [error] 14948\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
shdict.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
shdict.t TEST 22: set a number value and delete - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
shdict.t TEST 22: set a number value and delete - status code ok got: ''
expected: '200'
shdict.t TEST 22: set a number value and delete - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-value type: nil
-value: nil
-flags: nil
'
shdict.t TEST 22: set a number value and delete - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):6 loop\])" should match a line in error.log (req 0)
shdict.t TEST 22: set a number value and delete - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:04:19 [error] 14954\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
shdict.t TEST 22: set a number value and delete - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
shdict.t TEST 22: set a number value and delete - status code ok got: ''
expected: '200'
shdict.t TEST 22: set a number value and delete - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-value type: nil
-value: nil
-flags: nil
'
shdict.t TEST 22: set a number value and delete - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):6 loop\])" should match a line in error.log (req 1)
shdict.t TEST 22: set a number value and delete - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:04:19 [error] 14954\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
shdict.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
shdict.t TEST 34: free_space, about half full, one page left - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
shdict.t TEST 34: free_space, about half full, one page left - status code ok got: ''
expected: '200'
shdict.t TEST 34: free_space, about half full, one page left - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-free_page_bytes type: number
-free_page_bytes: 4096
'
shdict.t TEST 34: free_space, about half full, one page left - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:04:24 [error] 14960\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
shdict.t TEST 34: free_space, about half full, one page left - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
shdict.t TEST 34: free_space, about half full, one page left - status code ok got: ''
expected: '200'
shdict.t TEST 34: free_space, about half full, one page left - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-free_page_bytes type: number
-free_page_bytes: 4096
'
shdict.t TEST 34: free_space, about half full, one page left - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:04:24 [error] 14960\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
shdict.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
shdict.t TEST 37: free_space, got forcible - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
shdict.t TEST 37: free_space, got forcible - status code ok got: ''
expected: '200'
shdict.t TEST 37: free_space, got forcible - response_body_like - response is expected () ''
doesn't match '(?^s:\A(?:got forcible, i=64
)?free_page_bytes type: number
free_page_bytes: 0
\z)'
shdict.t TEST 37: free_space, got forcible - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:04:29 [error] 14966\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
shdict.t TEST 37: free_space, got forcible - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
shdict.t TEST 37: free_space, got forcible - status code ok got: ''
expected: '200'
shdict.t TEST 37: free_space, got forcible - response_body_like - response is expected () ''
doesn't match '(?^s:\A(?:got forcible, i=64
)?free_page_bytes type: number
free_page_bytes: 0
\z)'
shdict.t TEST 37: free_space, got forcible - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:04:29 [error] 14966\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
shdict.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
shdict.t TEST 35: free_space, about half full, no page left - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
shdict.t TEST 35: free_space, about half full, no page left - status code ok got: ''
expected: '200'
shdict.t TEST 35: free_space, about half full, no page left - response_body_like - response is expected () ''
doesn't match '(?^s:\Afree_page_bytes type: number
free_page_bytes: (?:0|4096)
\z)'
shdict.t TEST 35: free_space, about half full, no page left - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:04:33 [error] 14972\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
shdict.t TEST 35: free_space, about half full, no page left - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
shdict.t TEST 35: free_space, about half full, no page left - status code ok got: ''
expected: '200'
shdict.t TEST 35: free_space, about half full, no page left - response_body_like - response is expected () ''
doesn't match '(?^s:\Afree_page_bytes type: number
free_page_bytes: (?:0|4096)
\z)'
shdict.t TEST 35: free_space, about half full, no page left - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:04:33 [error] 14972\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
shdict.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
shdict.t TEST 14: set a boolean value (false) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
shdict.t TEST 14: set a boolean value (false) - status code ok got: ''
expected: '200'
shdict.t TEST 14: set a boolean value (false) - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-value type: boolean
-value: false
-flags: 777
'
shdict.t TEST 14: set a boolean value (false) - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):6 loop\])" should match a line in error.log (req 0)
shdict.t TEST 14: set a boolean value (false) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:04:38 [error] 14978\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
shdict.t TEST 14: set a boolean value (false) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
shdict.t TEST 14: set a boolean value (false) - status code ok got: ''
expected: '200'
shdict.t TEST 14: set a boolean value (false) - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-value type: boolean
-value: false
-flags: 777
'
shdict.t TEST 14: set a boolean value (false) - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):6 loop\])" should match a line in error.log (req 1)
shdict.t TEST 14: set a boolean value (false) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:04:38 [error] 14978\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
shdict.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
shdict.t TEST 49: init_ttl uses long type to avoid overflow in incr() + ttl() - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
shdict.t TEST 49: init_ttl uses long type to avoid overflow in incr() + ttl() - status code ok got: ''
expected: '200'
shdict.t TEST 49: init_ttl uses long type to avoid overflow in incr() + ttl() - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'ttl: 2147483648
'
shdict.t TEST 49: init_ttl uses long type to avoid overflow in incr() + ttl() - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:04:42 [error] 14984\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
shdict.t TEST 49: init_ttl uses long type to avoid overflow in incr() + ttl() - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
shdict.t TEST 49: init_ttl uses long type to avoid overflow in incr() + ttl() - status code ok got: ''
expected: '200'
shdict.t TEST 49: init_ttl uses long type to avoid overflow in incr() + ttl() - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'ttl: 2147483648
'
shdict.t TEST 49: init_ttl uses long type to avoid overflow in incr() + ttl() - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:04:42 [error] 14984\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
shdict.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
shdict.t TEST 27: flush_all - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
shdict.t TEST 27: flush_all - status code ok got: ''
expected: '200'
shdict.t TEST 27: flush_all - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-value type: nil
-value: nil
-flags: nil
'
shdict.t TEST 27: flush_all - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):7 loop\])" should match a line in error.log (req 0)
shdict.t TEST 27: flush_all - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:04:47 [error] 14990\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
shdict.t TEST 27: flush_all - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
shdict.t TEST 27: flush_all - status code ok got: ''
expected: '200'
shdict.t TEST 27: flush_all - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-value type: nil
-value: nil
-flags: nil
'
shdict.t TEST 27: flush_all - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):7 loop\])" should match a line in error.log (req 1)
shdict.t TEST 27: flush_all - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:04:47 [error] 14990\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
shdict.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
shdict.t TEST 21: replace a string value - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
shdict.t TEST 21: replace a string value - status code ok got: ''
expected: '200'
shdict.t TEST 21: replace a string value - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-value type: string
-value: bar100
-flags: 72
'
shdict.t TEST 21: replace a string value - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):8 loop\])" should match a line in error.log (req 0)
shdict.t TEST 21: replace a string value - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:04:51 [error] 14996\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
shdict.t TEST 21: replace a string value - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
shdict.t TEST 21: replace a string value - status code ok got: ''
expected: '200'
shdict.t TEST 21: replace a string value - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-value type: string
-value: bar100
-flags: 72
'
shdict.t TEST 21: replace a string value - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):8 loop\])" should match a line in error.log (req 1)
shdict.t TEST 21: replace a string value - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:04:51 [error] 14996\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
shdict.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
shdict.t TEST 19: add a string value - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
shdict.t TEST 19: add a string value - status code ok got: ''
expected: '200'
shdict.t TEST 19: add a string value - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-value type: string
-value: bar
-flags: 72
'
shdict.t TEST 19: add a string value - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):8 loop\])" should match a line in error.log (req 0)
shdict.t TEST 19: add a string value - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:04:56 [error] 15002\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
shdict.t TEST 19: add a string value - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
shdict.t TEST 19: add a string value - status code ok got: ''
expected: '200'
shdict.t TEST 19: add a string value - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-value type: string
-value: bar
-flags: 72
'
shdict.t TEST 19: add a string value - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):8 loop\])" should match a line in error.log (req 1)
shdict.t TEST 19: add a string value - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:04:56 [error] 15002\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
shdict.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
shdict.t TEST 43: incr key with init and init_ttl (key not exists) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
shdict.t TEST 43: incr key with init and init_ttl (key not exists) - status code ok got: ''
expected: '200'
shdict.t TEST 43: incr key with init and init_ttl (key not exists) - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-incr: 10503 nil
-foo = 10503
-foo after init_ttl = nil
'
shdict.t TEST 43: incr key with init and init_ttl (key not exists) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:05:00 [error] 15010\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
shdict.t TEST 43: incr key with init and init_ttl (key not exists) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
shdict.t TEST 43: incr key with init and init_ttl (key not exists) - status code ok got: ''
expected: '200'
shdict.t TEST 43: incr key with init and init_ttl (key not exists) - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-incr: 10503 nil
-foo = 10503
-foo after init_ttl = nil
'
shdict.t TEST 43: incr key with init and init_ttl (key not exists) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:05:00 [error] 15010\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
shdict.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
shdict.t TEST 23: set nil key - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
shdict.t TEST 23: set nil key - status code ok got: ''
expected: '200'
shdict.t TEST 23: set nil key - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'failed to set: nil key
'
shdict.t TEST 23: set nil key - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:05:05 [error] 15016\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
shdict.t TEST 23: set nil key - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
shdict.t TEST 23: set nil key - status code ok got: ''
expected: '200'
shdict.t TEST 23: set nil key - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'failed to set: nil key
'
shdict.t TEST 23: set nil key - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:05:05 [error] 15016\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
shdict.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
shdict.t TEST 50: check zone argument - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
shdict.t TEST 50: check zone argument - status code ok got: ''
expected: '200'
shdict.t TEST 50: check zone argument - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-ok
-bad "zone" argument
-bad "zone" argument
-bad "zone" argument
'
shdict.t TEST 50: check zone argument - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:05:10 [error] 15022\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
shdict.t TEST 50: check zone argument - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
shdict.t TEST 50: check zone argument - status code ok got: ''
expected: '200'
shdict.t TEST 50: check zone argument - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +0,0 @@
-ok
-bad "zone" argument
-bad "zone" argument
-bad "zone" argument
'
shdict.t TEST 50: check zone argument - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:05:10 [error] 15022\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
shdict.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
shdict.t TEST 30: incr, init is not number - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
shdict.t TEST 30: incr, init is not number - status code ok got: ''
expected: '500'
shdict.t TEST 30: incr, init is not number - response_body_like - response is expected () ''
doesn't match '(?^s:500)'
shdict.t TEST 30: incr, init is not number - pattern "number expected, got string" should match a line in error.log (req 0)
shdict.t TEST 30: incr, init is not number - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
shdict.t TEST 30: incr, init is not number - status code ok got: ''
expected: '500'
shdict.t TEST 30: incr, init is not number - response_body_like - response is expected () ''
doesn't match '(?^s:500)'
shdict.t TEST 30: incr, init is not number - pattern "number expected, got string" should match a line in error.log (req 1)
shdict.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
shdict.t TEST 18: safe set a number value - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
shdict.t TEST 18: safe set a number value - status code ok got: ''
expected: '200'
shdict.t TEST 18: safe set a number value - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-value type: number
-value: 3.1415926
-flags: 78
'
shdict.t TEST 18: safe set a number value - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):8 loop\])" should match a line in error.log (req 0)
shdict.t TEST 18: safe set a number value - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:05:19 [error] 15034\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
shdict.t TEST 18: safe set a number value - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
shdict.t TEST 18: safe set a number value - status code ok got: ''
expected: '200'
shdict.t TEST 18: safe set a number value - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-value type: number
-value: 3.1415926
-flags: 78
'
shdict.t TEST 18: safe set a number value - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):8 loop\])" should match a line in error.log (req 1)
shdict.t TEST 18: safe set a number value - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:05:19 [error] 15034\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
shdict.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
shdict.t TEST 25: get stale key - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
shdict.t TEST 25: get stale key - status code ok got: ''
expected: '200'
shdict.t TEST 25: get stale key - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'failed to get stale: nil key
'
shdict.t TEST 25: get stale key - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:05:23 [error] 15040\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
shdict.t TEST 25: get stale key - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
shdict.t TEST 25: get stale key - status code ok got: ''
expected: '200'
shdict.t TEST 25: get stale key - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'failed to get stale: nil key
'
shdict.t TEST 25: get stale key - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:05:23 [error] 15040\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
shdict.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
shdict.t TEST 28: incr, value is not number - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
shdict.t TEST 28: incr, value is not number - status code ok got: ''
expected: '500'
shdict.t TEST 28: incr, value is not number - response_body_like - response is expected () ''
doesn't match '(?^s:500)'
shdict.t TEST 28: incr, value is not number - pattern "cannot convert 'nil' to 'double'" should match a line in error.log (req 0)
shdict.t TEST 28: incr, value is not number - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
shdict.t TEST 28: incr, value is not number - status code ok got: ''
expected: '500'
shdict.t TEST 28: incr, value is not number - response_body_like - response is expected () ''
doesn't match '(?^s:500)'
shdict.t TEST 28: incr, value is not number - pattern "cannot convert 'nil' to 'double'" should match a line in error.log (req 1)
shdict.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
shdict.t TEST 36: free_space, full - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
shdict.t TEST 36: free_space, full - status code ok got: ''
expected: '200'
shdict.t TEST 36: free_space, full - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-free_page_bytes type: number
-free_page_bytes: 0
'
shdict.t TEST 36: free_space, full - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:05:32 [error] 15052\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
shdict.t TEST 36: free_space, full - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
shdict.t TEST 36: free_space, full - status code ok got: ''
expected: '200'
shdict.t TEST 36: free_space, full - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-free_page_bytes type: number
-free_page_bytes: 0
'
shdict.t TEST 36: free_space, full - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:05:32 [error] 15052\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
shdict.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
shdict.t TEST 29: incr with init - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
shdict.t TEST 29: incr with init - status code ok got: ''
expected: '200'
shdict.t TEST 29: incr with init - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-failed to incr: not found
-incr ok, value: 20, forcible: false
'
shdict.t TEST 29: incr with init - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:05:37 [error] 15058\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
shdict.t TEST 29: incr with init - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
shdict.t TEST 29: incr with init - status code ok got: ''
expected: '200'
shdict.t TEST 29: incr with init - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-failed to incr: not found
-incr ok, value: 20, forcible: false
'
shdict.t TEST 29: incr with init - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:05:37 [error] 15058\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
shdict.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
shdict.t TEST 39: incr bad init_ttl argument - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
shdict.t TEST 39: incr bad init_ttl argument - status code ok got: ''
expected: '200'
shdict.t TEST 39: incr bad init_ttl argument - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'not ok: bad "init_ttl" argument
'
shdict.t TEST 39: incr bad init_ttl argument - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:05:41 [error] 15064\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
shdict.t TEST 39: incr bad init_ttl argument - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
shdict.t TEST 39: incr bad init_ttl argument - status code ok got: ''
expected: '200'
shdict.t TEST 39: incr bad init_ttl argument - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'not ok: bad "init_ttl" argument
'
shdict.t TEST 39: incr bad init_ttl argument - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:05:41 [error] 15064\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
shdict.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
shdict.t TEST 9: get_stale (true) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
shdict.t TEST 9: get_stale (true) - status code ok got: ''
expected: '200'
shdict.t TEST 9: get_stale (true) - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-value type: string
-value: bar
-flags: 72
-stale: true
'
shdict.t TEST 9: get_stale (true) - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):13 loop\])" should match a line in error.log (req 0)
shdict.t TEST 9: get_stale (true) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:05:46 [error] 15070\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
shdict.t TEST 9: get_stale (true) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
shdict.t TEST 9: get_stale (true) - status code ok got: ''
expected: '200'
shdict.t TEST 9: get_stale (true) - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +0,0 @@
-value type: string
-value: bar
-flags: 72
-stale: true
'
shdict.t TEST 9: get_stale (true) - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):13 loop\])" should match a line in error.log (req 1)
shdict.t TEST 9: get_stale (true) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:05:46 [error] 15070\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
shdict.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
shdict.t TEST 20: safe add a string value - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
shdict.t TEST 20: safe add a string value - status code ok got: ''
expected: '200'
shdict.t TEST 20: safe add a string value - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-value type: string
-value: bar
-flags: 72
'
shdict.t TEST 20: safe add a string value - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):9 loop\])" should match a line in error.log (req 0)
shdict.t TEST 20: safe add a string value - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:05:51 [error] 15076\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
shdict.t TEST 20: safe add a string value - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
shdict.t TEST 20: safe add a string value - status code ok got: ''
expected: '200'
shdict.t TEST 20: safe add a string value - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-value type: string
-value: bar
-flags: 72
'
shdict.t TEST 20: safe add a string value - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):9 loop\])" should match a line in error.log (req 1)
shdict.t TEST 20: safe add a string value - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:05:51 [error] 15076\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
shdict.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
shdict.t TEST 48: exptime uses long type to avoid overflow in expire() + ttl() - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
shdict.t TEST 48: exptime uses long type to avoid overflow in expire() + ttl() - status code ok got: ''
expected: '200'
shdict.t TEST 48: exptime uses long type to avoid overflow in expire() + ttl() - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'ttl: 2147483648
'
shdict.t TEST 48: exptime uses long type to avoid overflow in expire() + ttl() - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:05:55 [error] 15082\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
shdict.t TEST 48: exptime uses long type to avoid overflow in expire() + ttl() - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
shdict.t TEST 48: exptime uses long type to avoid overflow in expire() + ttl() - status code ok got: ''
expected: '200'
shdict.t TEST 48: exptime uses long type to avoid overflow in expire() + ttl() - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'ttl: 2147483648
'
shdict.t TEST 48: exptime uses long type to avoid overflow in expire() + ttl() - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:05:55 [error] 15082\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
shdict.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
shdict.t TEST 11: incr double - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
shdict.t TEST 11: incr double - status code ok got: ''
expected: '200'
shdict.t TEST 11: incr double - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-value: 371
-err: nil
'
shdict.t TEST 11: incr double - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):7 loop\])" should match a line in error.log (req 0)
shdict.t TEST 11: incr double - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:06:00 [error] 15088\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
shdict.t TEST 11: incr double - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
shdict.t TEST 11: incr double - status code ok got: ''
expected: '200'
shdict.t TEST 11: incr double - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-value: 371
-err: nil
'
shdict.t TEST 11: incr double - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):7 loop\])" should match a line in error.log (req 1)
shdict.t TEST 11: incr double - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:06:00 [error] 15088\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
shdict.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
shdict.t TEST 12: set a string value - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
shdict.t TEST 12: set a string value - status code ok got: ''
expected: '200'
shdict.t TEST 12: set a string value - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-value type: string
-value: bar
-flags: 72
'
shdict.t TEST 12: set a string value - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):7 loop\])" should match a line in error.log (req 0)
shdict.t TEST 12: set a string value - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:06:04 [error] 15094\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
shdict.t TEST 12: set a string value - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
shdict.t TEST 12: set a string value - status code ok got: ''
expected: '200'
shdict.t TEST 12: set a string value - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-value type: string
-value: bar
-flags: 72
'
shdict.t TEST 12: set a string value - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):7 loop\])" should match a line in error.log (req 1)
shdict.t TEST 12: set a string value - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:06:04 [error] 15094\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
shdict.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
shdict.t TEST 3: get a boolean value (true) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
shdict.t TEST 3: get a boolean value (true) - status code ok got: ''
expected: '200'
shdict.t TEST 3: get a boolean value (true) - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-value type: boolean
-value: true
-flags: 5678
'
shdict.t TEST 3: get a boolean value (true) - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):7 loop\])" should match a line in error.log (req 0)
shdict.t TEST 3: get a boolean value (true) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:06:09 [error] 15100\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
shdict.t TEST 3: get a boolean value (true) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
shdict.t TEST 3: get a boolean value (true) - status code ok got: ''
expected: '200'
shdict.t TEST 3: get a boolean value (true) - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-value type: boolean
-value: true
-flags: 5678
'
shdict.t TEST 3: get a boolean value (true) - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):7 loop\])" should match a line in error.log (req 1)
shdict.t TEST 3: get a boolean value (true) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:06:09 [error] 15100\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
shdict.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
shdict.t TEST 17: set a number value and a nil - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
shdict.t TEST 17: set a number value and a nil - status code ok got: ''
expected: '200'
shdict.t TEST 17: set a number value and a nil - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-value type: nil
-value: nil
-flags: nil
'
shdict.t TEST 17: set a number value and a nil - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):6 loop\])" should match a line in error.log (req 0)
shdict.t TEST 17: set a number value and a nil - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:06:13 [error] 15106\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
shdict.t TEST 17: set a number value and a nil - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
shdict.t TEST 17: set a number value and a nil - status code ok got: ''
expected: '200'
shdict.t TEST 17: set a number value and a nil - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-value type: nil
-value: nil
-flags: nil
'
shdict.t TEST 17: set a number value and a nil - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):6 loop\])" should match a line in error.log (req 1)
shdict.t TEST 17: set a number value and a nil - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:06:13 [error] 15106\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
shdict.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
shdict.t TEST 45: incr key with init and init_ttl (key expired and size matched) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
shdict.t TEST 45: incr key with init and init_ttl (key expired and size matched) - status code ok got: ''
expected: '200'
shdict.t TEST 45: incr key with init and init_ttl (key expired and size matched) - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-incr: 10502 nil
-foo = 10502
-foo after init_ttl = nil
'
shdict.t TEST 45: incr key with init and init_ttl (key expired and size matched) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:06:18 [error] 15112\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
shdict.t TEST 45: incr key with init and init_ttl (key expired and size matched) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
shdict.t TEST 45: incr key with init and init_ttl (key expired and size matched) - status code ok got: ''
expected: '200'
shdict.t TEST 45: incr key with init and init_ttl (key expired and size matched) - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-incr: 10502 nil
-foo = 10502
-foo after init_ttl = nil
'
shdict.t TEST 45: incr key with init and init_ttl (key expired and size matched) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:06:18 [error] 15112\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
shdict.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
shdict.t TEST 24: get nil key - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
shdict.t TEST 24: get nil key - status code ok got: ''
expected: '200'
shdict.t TEST 24: get nil key - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'failed to get: nil key
'
shdict.t TEST 24: get nil key - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:06:22 [error] 15118\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
shdict.t TEST 24: get nil key - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
shdict.t TEST 24: get nil key - status code ok got: ''
expected: '200'
shdict.t TEST 24: get nil key - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'failed to get: nil key
'
shdict.t TEST 24: get nil key - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:06:22 [error] 15118\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
shdict.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
shdict.t TEST 6: get a number value (double) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
shdict.t TEST 6: get a number value (double) - status code ok got: ''
expected: '200'
shdict.t TEST 6: get a number value (double) - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-value type: number
-value: 3.1415926
-flags: 78
'
shdict.t TEST 6: get a number value (double) - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):7 loop\])" should match a line in error.log (req 0)
shdict.t TEST 6: get a number value (double) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:06:27 [error] 15124\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
shdict.t TEST 6: get a number value (double) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
shdict.t TEST 6: get a number value (double) - status code ok got: ''
expected: '200'
shdict.t TEST 6: get a number value (double) - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-value type: number
-value: 3.1415926
-flags: 78
'
shdict.t TEST 6: get a number value (double) - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):7 loop\])" should match a line in error.log (req 1)
shdict.t TEST 6: get a number value (double) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:06:27 [error] 15124\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
shdict.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
shdict.t TEST 2: get an nonexistent key - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
shdict.t TEST 2: get an nonexistent key - status code ok got: ''
expected: '200'
shdict.t TEST 2: get an nonexistent key - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):7 loop\])" should match a line in error.log (req 0)
shdict.t TEST 2: get an nonexistent key - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:06:31 [error] 15130\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
shdict.t TEST 2: get an nonexistent key - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
shdict.t TEST 2: get an nonexistent key - status code ok got: ''
expected: '200'
shdict.t TEST 2: get an nonexistent key - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):7 loop\])" should match a line in error.log (req 1)
shdict.t TEST 2: get an nonexistent key - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:06:31 [error] 15130\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
shdict.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
shdict.t TEST 44: incr key with init and init_ttl as string (key not exists) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
shdict.t TEST 44: incr key with init and init_ttl as string (key not exists) - status code ok got: ''
expected: '200'
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 +0,0 @@
-incr: 10503 nil
-foo = 10503
-foo after init_ttl = nil
'
shdict.t TEST 44: incr key with init and init_ttl as string (key not exists) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:06:36 [error] 15136\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
shdict.t TEST 44: incr key with init and init_ttl as string (key not exists) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
shdict.t TEST 44: incr key with init and init_ttl as string (key not exists) - status code ok got: ''
expected: '200'
shdict.t TEST 44: incr key with init and init_ttl as string (key not exists) - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-incr: 10503 nil
-foo = 10503
-foo after init_ttl = nil
'
shdict.t TEST 44: incr key with init and init_ttl as string (key not exists) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:06:36 [error] 15136\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
shdict.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
shdict.t TEST 47: exptime uses long type to avoid overflow in set() + ttl() - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
shdict.t TEST 47: exptime uses long type to avoid overflow in set() + ttl() - status code ok got: ''
expected: '200'
shdict.t TEST 47: exptime uses long type to avoid overflow in set() + ttl() - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'ttl: 2147483648
'
shdict.t TEST 47: exptime uses long type to avoid overflow in set() + ttl() - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:06:41 [error] 15142\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
shdict.t TEST 47: exptime uses long type to avoid overflow in set() + ttl() - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
shdict.t TEST 47: exptime uses long type to avoid overflow in set() + ttl() - status code ok got: ''
expected: '200'
shdict.t TEST 47: exptime uses long type to avoid overflow in set() + ttl() - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'ttl: 2147483648
'
shdict.t TEST 47: exptime uses long type to avoid overflow in set() + ttl() - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:06:41 [error] 15142\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
shdict.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
shdict.t TEST 16: set a number value (double) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
shdict.t TEST 16: set a number value (double) - status code ok got: ''
expected: '200'
shdict.t TEST 16: set a number value (double) - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-value type: number
-value: 3.1415926
-flags: 78
'
shdict.t TEST 16: set a number value (double) - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):6 loop\])" should match a line in error.log (req 0)
shdict.t TEST 16: set a number value (double) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:06:45 [error] 15148\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
shdict.t TEST 16: set a number value (double) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
shdict.t TEST 16: set a number value (double) - status code ok got: ''
expected: '200'
shdict.t TEST 16: set a number value (double) - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-value type: number
-value: 3.1415926
-flags: 78
'
shdict.t TEST 16: set a number value (double) - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):6 loop\])" should match a line in error.log (req 1)
shdict.t TEST 16: set a number value (double) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:06:45 [error] 15148\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
shdict.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
shdict.t TEST 13: set a boolean value (true) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
shdict.t TEST 13: set a boolean value (true) - status code ok got: ''
expected: '200'
shdict.t TEST 13: set a boolean value (true) - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-value type: boolean
-value: true
-flags: 5678
'
shdict.t TEST 13: set a boolean value (true) - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):7 loop\])" should match a line in error.log (req 0)
shdict.t TEST 13: set a boolean value (true) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:06:50 [error] 15154\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
shdict.t TEST 13: set a boolean value (true) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
shdict.t TEST 13: set a boolean value (true) - status code ok got: ''
expected: '200'
shdict.t TEST 13: set a boolean value (true) - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-value type: boolean
-value: true
-flags: 5678
'
shdict.t TEST 13: set a boolean value (true) - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):7 loop\])" should match a line in error.log (req 1)
shdict.t TEST 13: set a boolean value (true) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:06:50 [error] 15154\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
shdict.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
shdict.t TEST 5: get a number value (int) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
shdict.t TEST 5: get a number value (int) - status code ok got: ''
expected: '200'
shdict.t TEST 5: get a number value (int) - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-value type: number
-value: 51203
-flags: nil
'
shdict.t TEST 5: get a number value (int) - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):7 loop\])" should match a line in error.log (req 0)
shdict.t TEST 5: get a number value (int) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:06:54 [error] 15160\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
shdict.t TEST 5: get a number value (int) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
shdict.t TEST 5: get a number value (int) - status code ok got: ''
expected: '200'
shdict.t TEST 5: get a number value (int) - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-value type: number
-value: 51203
-flags: nil
'
shdict.t TEST 5: get a number value (int) - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):7 loop\])" should match a line in error.log (req 1)
shdict.t TEST 5: get a number value (int) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:06:54 [error] 15160\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
shdict.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
shdict.t TEST 10: incr int - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
shdict.t TEST 10: incr int - status code ok got: ''
expected: '200'
shdict.t TEST 10: incr int - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-value: 256
-err: nil
'
shdict.t TEST 10: incr int - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):11 loop\])" should match a line in error.log (req 0)
shdict.t TEST 10: incr int - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:06:59 [error] 15166\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
shdict.t TEST 10: incr int - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
shdict.t TEST 10: incr int - status code ok got: ''
expected: '200'
shdict.t TEST 10: incr int - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-value: 256
-err: nil
'
shdict.t TEST 10: incr int - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):11 loop\])" should match a line in error.log (req 1)
shdict.t TEST 10: incr int - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:06:59 [error] 15166\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
shdict.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
shdict.t TEST 4: get a boolean value (false) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
shdict.t TEST 4: get a boolean value (false) - status code ok got: ''
expected: '200'
shdict.t TEST 4: get a boolean value (false) - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-value type: boolean
-value: false
-flags: 777
'
shdict.t TEST 4: get a boolean value (false) - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):7 loop\])" should match a line in error.log (req 0)
shdict.t TEST 4: get a boolean value (false) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:07:03 [error] 15172\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
shdict.t TEST 4: get a boolean value (false) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
shdict.t TEST 4: get a boolean value (false) - status code ok got: ''
expected: '200'
shdict.t TEST 4: get a boolean value (false) - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-value type: boolean
-value: false
-flags: 777
'
shdict.t TEST 4: get a boolean value (false) - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):7 loop\])" should match a line in error.log (req 1)
shdict.t TEST 4: get a boolean value (false) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:07:03 [error] 15172\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
shdict.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
shdict.t TEST 33: free_space, empty (100k zone) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
shdict.t TEST 33: free_space, empty (100k zone) - status code ok got: ''
expected: '200'
shdict.t TEST 33: free_space, empty (100k zone) - response_body_like - response is expected () ''
doesn't match '(?^s:\Afree_page_bytes type: number
free_page_bytes: (?:90112|94208)
\z)'
shdict.t TEST 33: free_space, empty (100k zone) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:07:08 [error] 15197\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
shdict.t TEST 33: free_space, empty (100k zone) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
shdict.t TEST 33: free_space, empty (100k zone) - status code ok got: ''
expected: '200'
shdict.t TEST 33: free_space, empty (100k zone) - response_body_like - response is expected () ''
doesn't match '(?^s:\Afree_page_bytes type: number
free_page_bytes: (?:90112|94208)
\z)'
shdict.t TEST 33: free_space, empty (100k zone) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:07:08 [error] 15197\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
shdict.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
shdict.t TEST 26: incr key - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
shdict.t TEST 26: incr key - status code ok got: ''
expected: '200'
shdict.t TEST 26: incr key - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'failed to incr: nil key
'
shdict.t TEST 26: incr key - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:07:12 [error] 15203\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
shdict.t TEST 26: incr key - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
shdict.t TEST 26: incr key - status code ok got: ''
expected: '200'
shdict.t TEST 26: incr key - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'failed to incr: nil key
'
shdict.t TEST 26: incr key - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:07:12 [error] 15203\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
shdict.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
shdict.t TEST 46: incr key with init and init_ttl (forcibly override other valid entries) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
shdict.t TEST 46: incr key with init and init_ttl (forcibly override other valid entries) - status code ok got: ''
expected: '200'
shdict.t TEST 46: incr key with init and init_ttl (forcibly override other valid entries) - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-incr: 10502 nil false
-incr: 10502 nil true
-foo = 10502
-foo after init_ttl = nil
'
shdict.t TEST 46: incr key with init and init_ttl (forcibly override other valid entries) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:07:17 [error] 15209\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
shdict.t TEST 46: incr key with init and init_ttl (forcibly override other valid entries) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
shdict.t TEST 46: incr key with init and init_ttl (forcibly override other valid entries) - status code ok got: ''
expected: '200'
shdict.t TEST 46: incr key with init and init_ttl (forcibly override other valid entries) - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +0,0 @@
-incr: 10502 nil false
-incr: 10502 nil true
-foo = 10502
-foo after init_ttl = nil
'
shdict.t TEST 46: incr key with init and init_ttl (forcibly override other valid entries) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:07:17 [error] 15209\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
shdict.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
shdict.t TEST 8: get_stale (false) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
shdict.t TEST 8: get_stale (false) - status code ok got: ''
expected: '200'
shdict.t TEST 8: get_stale (false) - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-value type: string
-value: bar
-flags: 72
-stale: false
'
shdict.t TEST 8: get_stale (false) - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):7 loop\])" should match a line in error.log (req 0)
shdict.t TEST 8: get_stale (false) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:07:22 [error] 15215\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
shdict.t TEST 8: get_stale (false) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
shdict.t TEST 8: get_stale (false) - status code ok got: ''
expected: '200'
shdict.t TEST 8: get_stale (false) - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +0,0 @@
-value type: string
-value: bar
-flags: 72
-stale: false
'
shdict.t TEST 8: get_stale (false) - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):7 loop\])" should match a line in error.log (req 1)
shdict.t TEST 8: get_stale (false) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:07:22 [error] 15215\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
shdict.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
shdict.t TEST 7: get a large string value - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
shdict.t TEST 7: get a large string value - status code ok got: ''
expected: '200'
shdict.t TEST 7: get a large string value - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-value type: string
-value: bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbba
-flags: 912
'
shdict.t TEST 7: get a large string value - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):9 loop\])" should match a line in error.log (req 0)
shdict.t TEST 7: get a large string value - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:07:26 [error] 15221\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
shdict.t TEST 7: get a large string value - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
shdict.t TEST 7: get a large string value - status code ok got: ''
expected: '200'
shdict.t TEST 7: get a large string value - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-value type: string
-value: bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbba
-flags: 912
'
shdict.t TEST 7: get a large string value - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):9 loop\])" should match a line in error.log (req 1)
shdict.t TEST 7: get a large string value - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:07:26 [error] 15221\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
socket-tcp-getoption.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
socket-tcp-getoption.t TEST 1: no parameters. - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
socket-tcp-getoption.t TEST 1: no parameters. - status code ok got: ''
expected: '200'
socket-tcp-getoption.t TEST 1: no parameters. - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'getoption failed: missing the "option" argument
'
socket-tcp-getoption.t TEST 1: no parameters. - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:07:31 [error] 15230\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
socket-tcp-getoption.t TEST 1: no parameters. - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
socket-tcp-getoption.t TEST 1: no parameters. - status code ok got: ''
expected: '200'
socket-tcp-getoption.t TEST 1: no parameters. - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'getoption failed: missing the "option" argument
'
socket-tcp-getoption.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
socket-tcp-getoption.t TEST 6: get tcp-nodelay. - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
socket-tcp-getoption.t TEST 6: get tcp-nodelay. - status code ok got: ''
expected: '200'
socket-tcp-getoption.t TEST 6: get tcp-nodelay. - response_body_like - response is expected () ''
doesn't match '(?^:tcp-nodelay: \d+)'
socket-tcp-getoption.t TEST 6: get tcp-nodelay. - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:07:36 [error] 15235\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
socket-tcp-getoption.t TEST 6: get tcp-nodelay. - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
socket-tcp-getoption.t TEST 6: get tcp-nodelay. - status code ok got: ''
expected: '200'
socket-tcp-getoption.t TEST 6: get tcp-nodelay. - response_body_like - response is expected () ''
doesn't match '(?^:tcp-nodelay: \d+)'
socket-tcp-getoption.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
socket-tcp-getoption.t TEST 7: get sndbuf. - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
socket-tcp-getoption.t TEST 7: get sndbuf. - status code ok got: ''
expected: '200'
socket-tcp-getoption.t TEST 7: get sndbuf. - response_body_like - response is expected () ''
doesn't match '(?^:sndbuf: \d+)'
socket-tcp-getoption.t TEST 7: get sndbuf. - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:07:40 [error] 15240\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
socket-tcp-getoption.t TEST 7: get sndbuf. - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
socket-tcp-getoption.t TEST 7: get sndbuf. - status code ok got: ''
expected: '200'
socket-tcp-getoption.t TEST 7: get sndbuf. - response_body_like - response is expected () ''
doesn't match '(?^:sndbuf: \d+)'
socket-tcp-getoption.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
socket-tcp-getoption.t TEST 8: get rcvbuf. - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
socket-tcp-getoption.t TEST 8: get rcvbuf. - status code ok got: ''
expected: '200'
socket-tcp-getoption.t TEST 8: get rcvbuf. - response_body_like - response is expected () ''
doesn't match '(?^:rcvbuf: \d+)'
socket-tcp-getoption.t TEST 8: get rcvbuf. - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:07:45 [error] 15245\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
socket-tcp-getoption.t TEST 8: get rcvbuf. - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
socket-tcp-getoption.t TEST 8: get rcvbuf. - status code ok got: ''
expected: '200'
socket-tcp-getoption.t TEST 8: get rcvbuf. - response_body_like - response is expected () ''
doesn't match '(?^:rcvbuf: \d+)'
socket-tcp-getoption.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
socket-tcp-getoption.t TEST 5: get reuseaddr. - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
socket-tcp-getoption.t TEST 5: get reuseaddr. - status code ok got: ''
expected: '200'
socket-tcp-getoption.t TEST 5: get reuseaddr. - response_body_like - response is expected () ''
doesn't match '(?^:reuseaddr: \d+)'
socket-tcp-getoption.t TEST 5: get reuseaddr. - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:07:49 [error] 15250\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
socket-tcp-getoption.t TEST 5: get reuseaddr. - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
socket-tcp-getoption.t TEST 5: get reuseaddr. - status code ok got: ''
expected: '200'
socket-tcp-getoption.t TEST 5: get reuseaddr. - response_body_like - response is expected () ''
doesn't match '(?^:reuseaddr: \d+)'
socket-tcp-getoption.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
socket-tcp-getoption.t TEST 2: unsuppotrted option name. - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
socket-tcp-getoption.t TEST 2: unsuppotrted option name. - status code ok got: ''
expected: '200'
socket-tcp-getoption.t TEST 2: unsuppotrted option name. - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'getoption abc failed: unsupported option abc
'
socket-tcp-getoption.t TEST 2: unsuppotrted option name. - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:07:54 [error] 15255\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
socket-tcp-getoption.t TEST 2: unsuppotrted option name. - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
socket-tcp-getoption.t TEST 2: unsuppotrted option name. - status code ok got: ''
expected: '200'
socket-tcp-getoption.t TEST 2: unsuppotrted option name. - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'getoption abc failed: unsupported option abc
'
socket-tcp-getoption.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
socket-tcp-getoption.t TEST 4: get keepalive. - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
socket-tcp-getoption.t TEST 4: get keepalive. - status code ok got: ''
expected: '200'
socket-tcp-getoption.t TEST 4: get keepalive. - response_body_like - response is expected () ''
doesn't match '(?^:keepalive: \d+)'
socket-tcp-getoption.t TEST 4: get keepalive. - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:07:58 [error] 15260\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
socket-tcp-getoption.t TEST 4: get keepalive. - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
socket-tcp-getoption.t TEST 4: get keepalive. - status code ok got: ''
expected: '200'
socket-tcp-getoption.t TEST 4: get keepalive. - response_body_like - response is expected () ''
doesn't match '(?^:keepalive: \d+)'
socket-tcp-getoption.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
socket-tcp-getoption.t TEST 3: getoption before calling connect. - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
socket-tcp-getoption.t TEST 3: getoption before calling connect. - status code ok got: ''
expected: '500'
socket-tcp-getoption.t TEST 3: getoption before calling connect. - pattern "socket is never created nor connected" should match a line in error.log (req 0)
socket-tcp-getoption.t TEST 3: getoption before calling connect. - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
socket-tcp-getoption.t TEST 3: getoption before calling connect. - status code ok got: ''
expected: '500'
socket-tcp-getoption.t TEST 3: getoption before calling connect. - pattern "socket is never created nor connected" should match a line in error.log (req 1)
socket-tcp-setoption.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
socket-tcp-setoption.t TEST 1: no parameters. - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
socket-tcp-setoption.t TEST 1: no parameters. - status code ok got: ''
expected: '200'
socket-tcp-setoption.t TEST 1: no parameters. - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-setoption failed: missing the "option" argument
-setoption failed: missing the "value" argument
'
socket-tcp-setoption.t TEST 1: no parameters. - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:08:08 [error] 15273\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
socket-tcp-setoption.t TEST 1: no parameters. - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
socket-tcp-setoption.t TEST 1: no parameters. - status code ok got: ''
expected: '200'
socket-tcp-setoption.t TEST 1: no parameters. - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-setoption failed: missing the "option" argument
-setoption failed: missing the "value" argument
'
socket-tcp-setoption.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
socket-tcp-setoption.t TEST 14: rcvbuf. - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
socket-tcp-setoption.t TEST 14: rcvbuf. - status code ok got: ''
expected: '200'
socket-tcp-setoption.t TEST 14: rcvbuf. - response_body_like - response is expected () ''
doesn't match '(?^:\Arcvbuf changes from \d+ to \d+\n\z)'
socket-tcp-setoption.t TEST 14: rcvbuf. - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:08:12 [error] 15278\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
socket-tcp-setoption.t TEST 14: rcvbuf. - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
socket-tcp-setoption.t TEST 14: rcvbuf. - status code ok got: ''
expected: '200'
socket-tcp-setoption.t TEST 14: rcvbuf. - response_body_like - response is expected () ''
doesn't match '(?^:\Arcvbuf changes from \d+ to \d+\n\z)'
socket-tcp-setoption.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
socket-tcp-setoption.t TEST 13: sndbuf. - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
socket-tcp-setoption.t TEST 13: sndbuf. - status code ok got: ''
expected: '200'
socket-tcp-setoption.t TEST 13: sndbuf. - response_body_like - response is expected () ''
doesn't match '(?^:\Asndbuf changes from \d+ to \d+\n\z)'
socket-tcp-setoption.t TEST 13: sndbuf. - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:08:17 [error] 15283\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
socket-tcp-setoption.t TEST 13: sndbuf. - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
socket-tcp-setoption.t TEST 13: sndbuf. - status code ok got: ''
expected: '200'
socket-tcp-setoption.t TEST 13: sndbuf. - response_body_like - response is expected () ''
doesn't match '(?^:\Asndbuf changes from \d+ to \d+\n\z)'
socket-tcp-setoption.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
socket-tcp-setoption.t TEST 10: tcp-nodelay set by 1/0. - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
socket-tcp-setoption.t TEST 10: tcp-nodelay set by 1/0. - status code ok got: ''
expected: '200'
socket-tcp-setoption.t TEST 10: tcp-nodelay set by 1/0. - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-tcp-nodelay changes from 0 to 1
-tcp-nodelay changes from 1 to 0
'
socket-tcp-setoption.t TEST 10: tcp-nodelay set by 1/0. - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:08:21 [error] 15288\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
socket-tcp-setoption.t TEST 10: tcp-nodelay set by 1/0. - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
socket-tcp-setoption.t TEST 10: tcp-nodelay set by 1/0. - status code ok got: ''
expected: '200'
socket-tcp-setoption.t TEST 10: tcp-nodelay set by 1/0. - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-tcp-nodelay changes from 0 to 1
-tcp-nodelay changes from 1 to 0
'
socket-tcp-setoption.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
socket-tcp-setoption.t TEST 11: tcp-nodelay set by true/false. - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
socket-tcp-setoption.t TEST 11: tcp-nodelay set by true/false. - status code ok got: ''
expected: '200'
socket-tcp-setoption.t TEST 11: tcp-nodelay set by true/false. - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-tcp-nodelay changes from 0 to 1
-tcp-nodelay changes from 1 to 0
'
socket-tcp-setoption.t TEST 11: tcp-nodelay set by true/false. - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:08:26 [error] 15293\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
socket-tcp-setoption.t TEST 11: tcp-nodelay set by true/false. - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
socket-tcp-setoption.t TEST 11: tcp-nodelay set by true/false. - status code ok got: ''
expected: '200'
socket-tcp-setoption.t TEST 11: tcp-nodelay set by true/false. - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-tcp-nodelay changes from 0 to 1
-tcp-nodelay changes from 1 to 0
'
socket-tcp-setoption.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
socket-tcp-setoption.t TEST 12: tcp-nodelay set by ~0/0. - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
socket-tcp-setoption.t TEST 12: tcp-nodelay set by ~0/0. - status code ok got: ''
expected: '200'
socket-tcp-setoption.t TEST 12: tcp-nodelay set by ~0/0. - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-tcp-nodelay changes from 0 to 1
-tcp-nodelay changes from 1 to 0
'
socket-tcp-setoption.t TEST 12: tcp-nodelay set by ~0/0. - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:08:30 [error] 15298\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
socket-tcp-setoption.t TEST 12: tcp-nodelay set by ~0/0. - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
socket-tcp-setoption.t TEST 12: tcp-nodelay set by ~0/0. - status code ok got: ''
expected: '200'
socket-tcp-setoption.t TEST 12: tcp-nodelay set by ~0/0. - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-tcp-nodelay changes from 0 to 1
-tcp-nodelay changes from 1 to 0
'
socket-tcp-setoption.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
socket-tcp-setoption.t TEST 5: keepalive set by true/false. - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
socket-tcp-setoption.t TEST 5: keepalive set by true/false. - status code ok got: ''
expected: '200'
socket-tcp-setoption.t TEST 5: keepalive set by true/false. - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-keepalive changes from 0 to 1
-keepalive changes from 1 to 0
'
socket-tcp-setoption.t TEST 5: keepalive set by true/false. - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:08:35 [error] 15303\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
socket-tcp-setoption.t TEST 5: keepalive set by true/false. - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
socket-tcp-setoption.t TEST 5: keepalive set by true/false. - status code ok got: ''
expected: '200'
socket-tcp-setoption.t TEST 5: keepalive set by true/false. - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-keepalive changes from 0 to 1
-keepalive changes from 1 to 0
'
socket-tcp-setoption.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
socket-tcp-setoption.t TEST 8: reuseaddr set by true/false. - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
socket-tcp-setoption.t TEST 8: reuseaddr set by true/false. - status code ok got: ''
expected: '200'
socket-tcp-setoption.t TEST 8: reuseaddr set by true/false. - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-reuseaddr changes from 0 to 1
-reuseaddr changes from 1 to 0
'
socket-tcp-setoption.t TEST 8: reuseaddr set by true/false. - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:08:39 [error] 15308\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
socket-tcp-setoption.t TEST 8: reuseaddr set by true/false. - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
socket-tcp-setoption.t TEST 8: reuseaddr set by true/false. - status code ok got: ''
expected: '200'
socket-tcp-setoption.t TEST 8: reuseaddr set by true/false. - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-reuseaddr changes from 0 to 1
-reuseaddr changes from 1 to 0
'
socket-tcp-setoption.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
socket-tcp-setoption.t TEST 4: keepalive set by 1/0. - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
socket-tcp-setoption.t TEST 4: keepalive set by 1/0. - status code ok got: ''
expected: '200'
socket-tcp-setoption.t TEST 4: keepalive set by 1/0. - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-keepalive changes from 0 to 1
-keepalive changes from 1 to 0
'
socket-tcp-setoption.t TEST 4: keepalive set by 1/0. - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:08:44 [error] 15313\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
socket-tcp-setoption.t TEST 4: keepalive set by 1/0. - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
socket-tcp-setoption.t TEST 4: keepalive set by 1/0. - status code ok got: ''
expected: '200'
socket-tcp-setoption.t TEST 4: keepalive set by 1/0. - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-keepalive changes from 0 to 1
-keepalive changes from 1 to 0
'
socket-tcp-setoption.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
socket-tcp-setoption.t TEST 2: unsuppotrted option name. - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
socket-tcp-setoption.t TEST 2: unsuppotrted option name. - status code ok got: ''
expected: '200'
socket-tcp-setoption.t TEST 2: unsuppotrted option name. - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'setoption abc failed: unsupported option abc
'
socket-tcp-setoption.t TEST 2: unsuppotrted option name. - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:08:48 [error] 15318\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
socket-tcp-setoption.t TEST 2: unsuppotrted option name. - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
socket-tcp-setoption.t TEST 2: unsuppotrted option name. - status code ok got: ''
expected: '200'
socket-tcp-setoption.t TEST 2: unsuppotrted option name. - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'setoption abc failed: unsupported option abc
'
socket-tcp-setoption.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
socket-tcp-setoption.t TEST 3: getoption before calling connect. - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
socket-tcp-setoption.t TEST 3: getoption before calling connect. - status code ok got: ''
expected: '500'
socket-tcp-setoption.t TEST 3: getoption before calling connect. - pattern "socket is never created nor connected" should match a line in error.log (req 0)
socket-tcp-setoption.t TEST 3: getoption before calling connect. - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
socket-tcp-setoption.t TEST 3: getoption before calling connect. - status code ok got: ''
expected: '500'
socket-tcp-setoption.t TEST 3: getoption before calling connect. - pattern "socket is never created nor connected" should match a line in error.log (req 1)
socket-tcp-setoption.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
socket-tcp-setoption.t TEST 6: keepalive set by ~0/0. - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
socket-tcp-setoption.t TEST 6: keepalive set by ~0/0. - status code ok got: ''
expected: '200'
socket-tcp-setoption.t TEST 6: keepalive set by ~0/0. - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-keepalive changes from 0 to 1
-keepalive changes from 1 to 0
'
socket-tcp-setoption.t TEST 6: keepalive set by ~0/0. - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:08:57 [error] 15328\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
socket-tcp-setoption.t TEST 6: keepalive set by ~0/0. - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
socket-tcp-setoption.t TEST 6: keepalive set by ~0/0. - status code ok got: ''
expected: '200'
socket-tcp-setoption.t TEST 6: keepalive set by ~0/0. - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-keepalive changes from 0 to 1
-keepalive changes from 1 to 0
'
socket-tcp-setoption.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
socket-tcp-setoption.t TEST 15: strerr. - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
socket-tcp-setoption.t TEST 15: strerr. - status code ok got: ''
expected: '200'
socket-tcp-setoption.t TEST 15: strerr. - response_body_like - response is expected () ''
doesn't match '(?^:\Aenabling rcvbuf failed: [/\s\w]+\n\z)'
socket-tcp-setoption.t TEST 15: strerr. - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:09:02 [error] 15333\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
socket-tcp-setoption.t TEST 15: strerr. - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
socket-tcp-setoption.t TEST 15: strerr. - status code ok got: ''
expected: '200'
socket-tcp-setoption.t TEST 15: strerr. - response_body_like - response is expected () ''
doesn't match '(?^:\Aenabling rcvbuf failed: [/\s\w]+\n\z)'
socket-tcp-setoption.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
socket-tcp-setoption.t TEST 7: reuseaddr set by 1/0. - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
socket-tcp-setoption.t TEST 7: reuseaddr set by 1/0. - status code ok got: ''
expected: '200'
socket-tcp-setoption.t TEST 7: reuseaddr set by 1/0. - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-reuseaddr changes from 0 to 1
-reuseaddr changes from 1 to 0
'
socket-tcp-setoption.t TEST 7: reuseaddr set by 1/0. - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:09:06 [error] 15338\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
socket-tcp-setoption.t TEST 7: reuseaddr set by 1/0. - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
socket-tcp-setoption.t TEST 7: reuseaddr set by 1/0. - status code ok got: ''
expected: '200'
socket-tcp-setoption.t TEST 7: reuseaddr set by 1/0. - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-reuseaddr changes from 0 to 1
-reuseaddr changes from 1 to 0
'
socket-tcp-setoption.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
socket-tcp-setoption.t TEST 9: reuseaddr set by ~0/0. - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
socket-tcp-setoption.t TEST 9: reuseaddr set by ~0/0. - status code ok got: ''
expected: '200'
socket-tcp-setoption.t TEST 9: reuseaddr set by ~0/0. - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-reuseaddr changes from 0 to 1
-reuseaddr changes from 1 to 0
'
socket-tcp-setoption.t TEST 9: reuseaddr set by ~0/0. - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:09:11 [error] 15343\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
socket-tcp-setoption.t TEST 9: reuseaddr set by ~0/0. - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
socket-tcp-setoption.t TEST 9: reuseaddr set by ~0/0. - status code ok got: ''
expected: '200'
socket-tcp-setoption.t TEST 9: reuseaddr set by ~0/0. - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-reuseaddr changes from 0 to 1
-reuseaddr changes from 1 to 0
'
ssl-session-fetch.t TEST 6: store new session, and resume it, avoid memory leak when calling repeatly - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:09:19 [error] 15352\#0: *4 failed to run session_store_by_lua*: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/ngx/ssl/session.lua:4: in main chunk
[C]: in function 'require'
ssl_session_store_by_lua_block:2: in main chunk, context: ssl_session_store_by_lua*, client: unix:, server: unix:/home/ec2-user/git/lua-resty-core/t/servroot/html/nginx.sock
2020/10/26 12:09:19 [debug] 15352\#0: *4 http lua finalize fake request: 2, a:1, c:1
2020/10/26 12:09:19 [debug] 15352\#0: *4 http lua fake request count:1
'
ssl-session-fetch.t TEST 6: store new session, and resume it, avoid memory leak when calling repeatly - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:09:19 [error] 15352\#0: *8 lua entry thread aborted: runtime error: ssl_session_fetch_by_lua_block:2: loop or previous error loading module 'ngx.ssl.session'" (req 1) stack traceback:
coroutine 0:
[C]: in function 'require'
ssl_session_fetch_by_lua_block:2: in main chunk, context: ssl_session_fetch_by_lua*, client: unix:, server: unix:/home/ec2-user/git/lua-resty-core/t/servroot/html/nginx.sock
2020/10/26 12:09:19 [debug] 15352\#0: *8 lua request cleanup: forcible=0
2020/10/26 12:09:19 [debug] 15352\#0: *8 http lua finalize fake request: 500, a:1, c:1
2020/10/26 12:09:19 [debug] 15352\#0: *8 http lua fake request count:1
2020/10/26 12:09:19 [debug] 15352\#0: *8 http lua close fake request
2020/10/26 12:09:19 [debug] 15352\#0: *8 http lua close fake http connection 04BEF424
'
ssl-session-fetch.t TEST 6: store new session, and resume it, avoid memory leak when calling repeatly - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:09:20 [error] 15352\#0: *9 failed to run session_store_by_lua*: ssl_session_store_by_lua_block:2: loop or previous error loading module 'ngx.ssl.session'" (req 1) stack traceback:
[C]: in function 'require'
ssl_session_store_by_lua_block:2: in main chunk, context: ssl_session_store_by_lua*, client: unix:, server: unix:/home/ec2-user/git/lua-resty-core/t/servroot/html/nginx.sock
2020/10/26 12:09:20 [debug] 15352\#0: *9 http lua finalize fake request: 2, a:1, c:1
2020/10/26 12:09:20 [debug] 15352\#0: *9 http lua fake request count:1
2020/10/26 12:09:20 [debug] 15352\#0: *9 http lua close fake request
2020/10/26 12:09:20 [debug] 15352\#0: *9 http lua close fake http connection 04BEF424
2020/10/26 12:09:20 [debug] 15352\#0: free: 04D0D5C0, unused: 0
2020/10/26 12:09:20 [debug] 15352\#0: free: 04D0D478, unused: 0
'
ssl-session-fetch.t TEST 1: get resume session id serialized - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:09:24 [error] 15362\#0: *41 lua entry thread aborted: runtime error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
coroutine 0:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/ngx/ssl/session.lua:4: in main chunk
[C]: in function 'require'
ssl_session_fetch_by_lua_block:2: in main chunk, context: ssl_session_fetch_by_lua*, client: unix:, server: unix:/home/ec2-user/git/lua-resty-core/t/servroot/html/nginx.sock
2020/10/26 12:09:24 [debug] 15362\#0: *41 lua request cleanup: forcible=0
'
ssl-session-fetch.t TEST 3: store new session, and resume it - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:09:28 [error] 15393\#0: *69 failed to run session_store_by_lua*: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/ngx/ssl/session.lua:4: in main chunk
[C]: in function 'require'
ssl_session_store_by_lua_block:2: in main chunk, context: ssl_session_store_by_lua*, client: unix:, server: unix:/home/ec2-user/git/lua-resty-core/t/servroot/html/nginx.sock
2020/10/26 12:09:28 [debug] 15393\#0: *69 http lua finalize fake request: 2, a:1, c:1
2020/10/26 12:09:28 [debug] 15393\#0: *69 http lua fake request count:1
'
ssl-session-fetch.t TEST 3: store new session, and resume it - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:09:28 [error] 15393\#0: *73 lua entry thread aborted: runtime error: ssl_session_fetch_by_lua_block:2: loop or previous error loading module 'ngx.ssl.session'" (req 1) stack traceback:
coroutine 0:
[C]: in function 'require'
ssl_session_fetch_by_lua_block:2: in main chunk, context: ssl_session_fetch_by_lua*, client: unix:, server: unix:/home/ec2-user/git/lua-resty-core/t/servroot/html/nginx.sock
2020/10/26 12:09:28 [debug] 15393\#0: *73 lua request cleanup: forcible=0
2020/10/26 12:09:28 [debug] 15393\#0: *73 http lua finalize fake request: 500, a:1, c:1
2020/10/26 12:09:28 [debug] 15393\#0: *73 http lua fake request count:1
2020/10/26 12:09:28 [debug] 15393\#0: *73 http lua close fake request
2020/10/26 12:09:28 [debug] 15393\#0: *73 http lua close fake http connection 0500DCAC
'
ssl-session-fetch.t TEST 3: store new session, and resume it - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:09:28 [error] 15393\#0: *74 failed to run session_store_by_lua*: ssl_session_store_by_lua_block:2: loop or previous error loading module 'ngx.ssl.session'" (req 1) stack traceback:
[C]: in function 'require'
ssl_session_store_by_lua_block:2: in main chunk, context: ssl_session_store_by_lua*, client: unix:, server: unix:/home/ec2-user/git/lua-resty-core/t/servroot/html/nginx.sock
2020/10/26 12:09:28 [debug] 15393\#0: *74 http lua finalize fake request: 2, a:1, c:1
2020/10/26 12:09:28 [debug] 15393\#0: *74 http lua fake request count:1
2020/10/26 12:09:28 [debug] 15393\#0: *74 http lua close fake request
2020/10/26 12:09:28 [debug] 15393\#0: *74 http lua close fake http connection 0500DCAC
2020/10/26 12:09:28 [debug] 15393\#0: free: 05153BF0, unused: 0
2020/10/26 12:09:28 [debug] 15393\#0: free: 05153AA8, unused: 0
'
ssl-session-fetch.t TEST 5: yield during doing handshake with client which uses low version OpenSSL - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:09:32 [error] 15423\#0: *101 failed to run session_store_by_lua*: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/ngx/ssl/session.lua:4: in main chunk
[C]: in function 'require'
ssl_session_store_by_lua_block:2: in main chunk, context: ssl_session_store_by_lua*, client: 127.0.0.1, server: 0.0.0.0:14254
2020/10/26 12:09:32 [debug] 15423\#0: *101 http lua finalize fake request: 2, a:1, c:1
2020/10/26 12:09:32 [debug] 15423\#0: *101 http lua fake request count:1
'
ssl-session-fetch.t TEST 5: yield during doing handshake with client which uses low version OpenSSL - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:09:33 [error] 15423\#0: *104 lua entry thread aborted: runtime error: ssl_session_fetch_by_lua_block:2: loop or previous error loading module 'ngx.ssl.session'" (req 1) stack traceback:
coroutine 0:
[C]: in function 'require'
ssl_session_fetch_by_lua_block:2: in main chunk, context: ssl_session_fetch_by_lua*, client: 127.0.0.1, server: 0.0.0.0:14254
2020/10/26 12:09:33 [debug] 15423\#0: *104 lua request cleanup: forcible=0
2020/10/26 12:09:33 [debug] 15423\#0: *104 http lua finalize fake request: 500, a:1, c:1
2020/10/26 12:09:33 [debug] 15423\#0: *104 http lua fake request count:1
2020/10/26 12:09:33 [debug] 15423\#0: *104 http lua close fake request
2020/10/26 12:09:33 [debug] 15423\#0: *104 http lua close fake http connection 051730C0
'
ssl-session-fetch.t TEST 5: yield during doing handshake with client which uses low version OpenSSL - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:09:33 [error] 15423\#0: *105 failed to run session_store_by_lua*: ssl_session_store_by_lua_block:2: loop or previous error loading module 'ngx.ssl.session'" (req 1) stack traceback:
[C]: in function 'require'
ssl_session_store_by_lua_block:2: in main chunk, context: ssl_session_store_by_lua*, client: 127.0.0.1, server: 0.0.0.0:14254
2020/10/26 12:09:33 [debug] 15423\#0: *105 http lua finalize fake request: 2, a:1, c:1
2020/10/26 12:09:33 [debug] 15423\#0: *105 http lua fake request count:1
2020/10/26 12:09:33 [debug] 15423\#0: *105 http lua close fake request
2020/10/26 12:09:33 [debug] 15423\#0: *105 http lua close fake http connection 051730C0
2020/10/26 12:09:33 [debug] 15423\#0: free: 05301210, unused: 0
2020/10/26 12:09:33 [debug] 15423\#0: free: 053010C8, unused: 0
'
ssl-session-fetch.t TEST 2: attempt to fetch new session in lua_ctx during resumption. - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:09:37 [error] 15462\#0: *136 lua entry thread aborted: runtime error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
coroutine 0:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/ngx/ssl/session.lua:4: in main chunk
[C]: in function 'require'
ssl_session_fetch_by_lua_block:2: in main chunk, context: ssl_session_fetch_by_lua*, client: unix:, server: unix:/home/ec2-user/git/lua-resty-core/t/servroot/html/nginx.sock
2020/10/26 12:09:37 [debug] 15462\#0: *136 lua request cleanup: forcible=0
'
ssl-session-fetch.t TEST 4: attempt to resume a corrupted session - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:09:41 [error] 15492\#0: *164 failed to run session_store_by_lua*: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/ngx/ssl/session.lua:4: in main chunk
[C]: in function 'require'
ssl_session_store_by_lua_block:2: in main chunk, context: ssl_session_store_by_lua*, client: unix:, server: unix:/home/ec2-user/git/lua-resty-core/t/servroot/html/nginx.sock
2020/10/26 12:09:41 [debug] 15492\#0: *164 http lua finalize fake request: 2, a:1, c:1
2020/10/26 12:09:41 [debug] 15492\#0: *164 http lua fake request count:1
'
ssl-session-fetch.t TEST 4: attempt to resume a corrupted session - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:09:41 [error] 15492\#0: *168 lua entry thread aborted: runtime error: ssl_session_fetch_by_lua_block:2: loop or previous error loading module 'ngx.ssl.session'" (req 1) stack traceback:
coroutine 0:
[C]: in function 'require'
ssl_session_fetch_by_lua_block:2: in main chunk, context: ssl_session_fetch_by_lua*, client: unix:, server: unix:/home/ec2-user/git/lua-resty-core/t/servroot/html/nginx.sock
2020/10/26 12:09:41 [debug] 15492\#0: *168 lua request cleanup: forcible=0
2020/10/26 12:09:41 [debug] 15492\#0: *168 http lua finalize fake request: 500, a:1, c:1
2020/10/26 12:09:41 [debug] 15492\#0: *168 http lua fake request count:1
2020/10/26 12:09:41 [debug] 15492\#0: *168 http lua close fake request
2020/10/26 12:09:41 [debug] 15492\#0: *168 http lua close fake http connection 0555167C
'
ssl-session-fetch.t TEST 4: attempt to resume a corrupted session - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:09:42 [error] 15492\#0: *169 failed to run session_store_by_lua*: ssl_session_store_by_lua_block:2: loop or previous error loading module 'ngx.ssl.session'" (req 1) stack traceback:
[C]: in function 'require'
ssl_session_store_by_lua_block:2: in main chunk, context: ssl_session_store_by_lua*, client: unix:, server: unix:/home/ec2-user/git/lua-resty-core/t/servroot/html/nginx.sock
2020/10/26 12:09:42 [debug] 15492\#0: *169 http lua finalize fake request: 2, a:1, c:1
2020/10/26 12:09:42 [debug] 15492\#0: *169 http lua fake request count:1
2020/10/26 12:09:42 [debug] 15492\#0: *169 http lua close fake request
2020/10/26 12:09:42 [debug] 15492\#0: *169 http lua close fake http connection 0555167C
2020/10/26 12:09:42 [debug] 15492\#0: free: 05788FD0, unused: 0
2020/10/26 12:09:42 [debug] 15492\#0: free: 05788E88, unused: 0
'
ssl-session-store.t TEST 2: get new session id serialized - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:09:47 [error] 15521\#0: *4 failed to run session_store_by_lua*: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/ngx/ssl/session.lua:4: in main chunk
[C]: in function 'require'
ssl_session_store_by_lua_block:2: in main chunk, context: ssl_session_store_by_lua*, client: unix:, server: unix:/home/ec2-user/git/lua-resty-core/t/servroot/html/nginx.sock
2020/10/26 12:09:47 [debug] 15521\#0: *4 http lua finalize fake request: 2, a:1, c:1
2020/10/26 12:09:47 [debug] 15521\#0: *4 http lua fake request count:1
'
ssl-session-store.t TEST 2: get new session id serialized - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:09:48 [error] 15521\#0: *8 failed to run session_store_by_lua*: ssl_session_store_by_lua_block:2: loop or previous error loading module 'ngx.ssl.session'" (req 1) stack traceback:
[C]: in function 'require'
ssl_session_store_by_lua_block:2: in main chunk, context: ssl_session_store_by_lua*, client: unix:, server: unix:/home/ec2-user/git/lua-resty-core/t/servroot/html/nginx.sock
2020/10/26 12:09:48 [debug] 15521\#0: *8 http lua finalize fake request: 2, a:1, c:1
2020/10/26 12:09:48 [debug] 15521\#0: *8 http lua fake request count:1
2020/10/26 12:09:48 [debug] 15521\#0: *8 http lua close fake request
2020/10/26 12:09:48 [debug] 15521\#0: *8 http lua close fake http connection 04BEEBCC
2020/10/26 12:09:48 [debug] 15521\#0: free: 04D0B138, unused: 0
2020/10/26 12:09:48 [debug] 15521\#0: free: 04D0AF68, unused: 0
'
ssl-session-store.t TEST 1: get new session serialized - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:09:51 [error] 15531\#0: *36 failed to run session_store_by_lua*: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/ngx/ssl/session.lua:4: in main chunk
[C]: in function 'require'
ssl_session_store_by_lua_block:2: in main chunk, context: ssl_session_store_by_lua*, client: unix:, server: unix:/home/ec2-user/git/lua-resty-core/t/servroot/html/nginx.sock
2020/10/26 12:09:51 [debug] 15531\#0: *36 http lua finalize fake request: 2, a:1, c:1
2020/10/26 12:09:51 [debug] 15531\#0: *36 http lua fake request count:1
'
ssl-session-store.t TEST 1: get new session serialized - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:09:52 [error] 15531\#0: *40 failed to run session_store_by_lua*: ssl_session_store_by_lua_block:2: loop or previous error loading module 'ngx.ssl.session'" (req 1) stack traceback:
[C]: in function 'require'
ssl_session_store_by_lua_block:2: in main chunk, context: ssl_session_store_by_lua*, client: unix:, server: unix:/home/ec2-user/git/lua-resty-core/t/servroot/html/nginx.sock
2020/10/26 12:09:52 [debug] 15531\#0: *40 http lua finalize fake request: 2, a:1, c:1
2020/10/26 12:09:52 [debug] 15531\#0: *40 http lua fake request count:1
2020/10/26 12:09:52 [debug] 15531\#0: *40 http lua close fake request
2020/10/26 12:09:52 [debug] 15531\#0: *40 http lua close fake http connection 04D87EC4
2020/10/26 12:09:52 [debug] 15531\#0: free: 04F40E10, unused: 0
2020/10/26 12:09:52 [debug] 15531\#0: free: 04F40C40, unused: 0
'
ssl-session-store.t TEST 3: store the session via timer to memcached - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:09:56 [error] 15561\#0: *68 failed to run session_store_by_lua*: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/ngx/ssl/session.lua:4: in main chunk
[C]: in function 'require'
ssl_session_store_by_lua_block:2: in main chunk, context: ssl_session_store_by_lua*, client: unix:, server: unix:/home/ec2-user/git/lua-resty-core/t/servroot/html/nginx.sock
2020/10/26 12:09:56 [debug] 15561\#0: *68 http lua finalize fake request: 2, a:1, c:1
2020/10/26 12:09:56 [debug] 15561\#0: *68 http lua fake request count:1
'
ssl-session-store.t TEST 3: store the session via timer to memcached - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:09:57 [error] 15561\#0: *72 failed to run session_store_by_lua*: ssl_session_store_by_lua_block:2: loop or previous error loading module 'ngx.ssl.session'" (req 1) stack traceback:
[C]: in function 'require'
ssl_session_store_by_lua_block:2: in main chunk, context: ssl_session_store_by_lua*, client: unix:, server: unix:/home/ec2-user/git/lua-resty-core/t/servroot/html/nginx.sock
2020/10/26 12:09:57 [debug] 15561\#0: *72 http lua finalize fake request: 2, a:1, c:1
2020/10/26 12:09:57 [debug] 15561\#0: *72 http lua fake request count:1
2020/10/26 12:09:57 [debug] 15561\#0: *72 http lua close fake request
2020/10/26 12:09:57 [debug] 15561\#0: *72 http lua close fake http connection 0500CFA4
2020/10/26 12:09:57 [debug] 15561\#0: free: 05152E38, unused: 0
2020/10/26 12:09:57 [debug] 15561\#0: free: 05152C68, unused: 0
'
ssl.t TEST 13: tls version - TLSv1.2 - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +1,2 @@
connected: 1
-ssl handshake: boolean
+failed to do SSL handshake: handshake failed
'
ssl.t TEST 13: tls version - TLSv1.2 - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:10:01 [error] 15590\#0: *4 lua entry thread aborted: runtime error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
coroutine 0:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/ngx/ssl.lua:4: in main chunk
[C]: in function 'require'
ssl_certificate_by_lua:2: in main chunk, context: ssl_certificate_by_lua*, client: 127.0.0.1, server: 127.0.0.2:58367
2020/10/26 12:10:01 [debug] 15590\#0: *4 lua request cleanup: forcible=0
'
ssl.t TEST 13: tls version - TLSv1.2 - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:10:02 [error] 15590\#0: *1 SSL_do_handshake() failed (SSL: error:14094438:SSL routines:ssl3_read_bytes:tlsv1 alert internal error:SSL alert number 80), client: 127.0.0.1, server: localhost, request: \"GET /t HTTP/1.1\", host: \"localhost\"" (req 0) 2020/10/26 12:10:02 [debug] 15590\#0: *1 event timer del: 13: 11317744
2020/10/26 12:10:02 [debug] 15590\#0: *1 lua tcp socket handle connect error
2020/10/26 12:10:02 [debug] 15590\#0: *1 lua finalize socket
2020/10/26 12:10:02 [debug] 15590\#0: *1 lua http cleanup free: 04BFBBC0
2020/10/26 12:10:02 [debug] 15590\#0: *1 lua close socket connection
2020/10/26 12:10:02 [debug] 15590\#0: *1 free: 04BFC628, unused: 0
2020/10/26 12:10:02 [debug] 15590\#0: *1 reusable connection: 0
2020/10/26 12:10:02 [debug] 15590\#0: *1 lua tcp socket waking up the current request
2020/10/26 12:10:02 [debug] 15590\#0: *1 lua tcp operation done, resuming lua thread
'
ssl.t TEST 13: tls version - TLSv1.2 - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +1,2 @@
connected: 1
-ssl handshake: boolean
+failed to do SSL handshake: handshake failed
'
ssl.t TEST 13: tls version - TLSv1.2 - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:10:02 [error] 15590\#0: *8 lua entry thread aborted: runtime error: ssl_certificate_by_lua:2: loop or previous error loading module 'ngx.ssl'" (req 1) stack traceback:
coroutine 0:
[C]: in function 'require'
ssl_certificate_by_lua:2: in main chunk, context: ssl_certificate_by_lua*, client: 127.0.0.1, server: 127.0.0.2:58367
2020/10/26 12:10:02 [debug] 15590\#0: *8 lua request cleanup: forcible=0
2020/10/26 12:10:02 [debug] 15590\#0: *8 http lua finalize fake request: 500, a:1, c:1
2020/10/26 12:10:02 [debug] 15590\#0: *8 http lua fake request count:1
2020/10/26 12:10:02 [debug] 15590\#0: *8 http lua close fake request
2020/10/26 12:10:02 [debug] 15590\#0: *8 http lua close fake http connection 04BF5814
'
ssl.t TEST 13: tls version - TLSv1.2 - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:10:02 [error] 15590\#0: *5 SSL_do_handshake() failed (SSL: error:14094438:SSL routines:ssl3_read_bytes:tlsv1 alert internal error:SSL alert number 80), client: 127.0.0.1, server: localhost, request: \"GET /t HTTP/1.1\", host: \"localhost\"" (req 1) 2020/10/26 12:10:02 [debug] 15590\#0: *5 event timer del: 13: 11318336
2020/10/26 12:10:02 [debug] 15590\#0: *5 lua tcp socket handle connect error
2020/10/26 12:10:02 [debug] 15590\#0: *5 lua finalize socket
2020/10/26 12:10:02 [debug] 15590\#0: *5 lua http cleanup free: 04C43670
2020/10/26 12:10:02 [debug] 15590\#0: *5 lua close socket connection
2020/10/26 12:10:02 [debug] 15590\#0: *5 free: 04C440D8, unused: 0
2020/10/26 12:10:02 [debug] 15590\#0: *5 reusable connection: 0
2020/10/26 12:10:02 [debug] 15590\#0: *5 lua tcp socket waking up the current request
2020/10/26 12:10:02 [debug] 15590\#0: *5 lua tcp operation done, resuming lua thread
'
ssl.t TEST 3: read SNI name via ssl.server_name() - response_body - response is expected (repeated req 0, req 0) @@ -1,11 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
-sent http request: 56 bytes.
-received: HTTP/1.1 201 Created
-received: Server: nginx
-received: Content-Type: text/plain
-received: Content-Length: 4
-received: Connection: close
-received:
-received: foo
-close: 1 nil
'
ssl.t TEST 3: read SNI name via ssl.server_name() - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:10:05 [error] 15600\#0: *37 lua entry thread aborted: runtime error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
coroutine 0:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/ngx/ssl.lua:4: in main chunk
[C]: in function 'require'
ssl_certificate_by_lua:2: in main chunk, context: ssl_certificate_by_lua*, client: unix:, server: unix:/home/ec2-user/git/lua-resty-core/t/servroot/html/nginx.sock
2020/10/26 12:10:05 [debug] 15600\#0: *37 lua request cleanup: forcible=0
'
ssl.t TEST 3: read SNI name via ssl.server_name() - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:10:05 [error] 15600\#0: *34 SSL_do_handshake() failed (SSL: error:14094438:SSL routines:ssl3_read_bytes:tlsv1 alert internal error:SSL alert number 80), client: 127.0.0.1, server: localhost, request: \"GET /t HTTP/1.1\", host: \"localhost\"" (req 0) 2020/10/26 12:10:05 [debug] 15600\#0: *34 event timer del: 4: 11321045
2020/10/26 12:10:05 [debug] 15600\#0: *34 lua tcp socket handle connect error
2020/10/26 12:10:05 [debug] 15600\#0: *34 lua finalize socket
2020/10/26 12:10:05 [debug] 15600\#0: *34 lua http cleanup free: 04E5ADD0
2020/10/26 12:10:05 [debug] 15600\#0: *34 lua close socket connection
2020/10/26 12:10:05 [debug] 15600\#0: *34 free: 04D6B7A8, unused: 0
2020/10/26 12:10:05 [debug] 15600\#0: *34 reusable connection: 0
2020/10/26 12:10:05 [debug] 15600\#0: *34 lua tcp socket waking up the current request
2020/10/26 12:10:05 [debug] 15600\#0: *34 lua tcp operation done, resuming lua thread
'
ssl.t TEST 3: read SNI name via ssl.server_name() - response_body - response is expected (repeated req 1, req 0) @@ -1,11 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
-sent http request: 56 bytes.
-received: HTTP/1.1 201 Created
-received: Server: nginx
-received: Content-Type: text/plain
-received: Content-Length: 4
-received: Connection: close
-received:
-received: foo
-close: 1 nil
'
ssl.t TEST 3: read SNI name via ssl.server_name() - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:10:05 [error] 15600\#0: *41 lua entry thread aborted: runtime error: ssl_certificate_by_lua:2: loop or previous error loading module 'ngx.ssl'" (req 1) stack traceback:
coroutine 0:
[C]: in function 'require'
ssl_certificate_by_lua:2: in main chunk, context: ssl_certificate_by_lua*, client: unix:, server: unix:/home/ec2-user/git/lua-resty-core/t/servroot/html/nginx.sock
2020/10/26 12:10:05 [debug] 15600\#0: *41 lua request cleanup: forcible=0
2020/10/26 12:10:05 [debug] 15600\#0: *41 http lua finalize fake request: 500, a:1, c:1
2020/10/26 12:10:05 [debug] 15600\#0: *41 http lua fake request count:1
2020/10/26 12:10:05 [debug] 15600\#0: *41 http lua close fake request
2020/10/26 12:10:05 [debug] 15600\#0: *41 http lua close fake http connection 04D59644
'
ssl.t TEST 3: read SNI name via ssl.server_name() - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:10:05 [error] 15600\#0: *38 SSL_do_handshake() failed (SSL: error:14094438:SSL routines:ssl3_read_bytes:tlsv1 alert internal error:SSL alert number 80), client: 127.0.0.1, server: localhost, request: \"GET /t HTTP/1.1\", host: \"localhost\"" (req 1) 2020/10/26 12:10:05 [debug] 15600\#0: *38 event timer del: 4: 11321753
2020/10/26 12:10:05 [debug] 15600\#0: *38 lua tcp socket handle connect error
2020/10/26 12:10:05 [debug] 15600\#0: *38 lua finalize socket
2020/10/26 12:10:05 [debug] 15600\#0: *38 lua http cleanup free: 04E85900
2020/10/26 12:10:05 [debug] 15600\#0: *38 lua close socket connection
2020/10/26 12:10:05 [debug] 15600\#0: *38 free: 04E86368, unused: 0
2020/10/26 12:10:05 [debug] 15600\#0: *38 reusable connection: 0
2020/10/26 12:10:05 [debug] 15600\#0: *38 lua tcp socket waking up the current request
2020/10/26 12:10:05 [debug] 15600\#0: *38 lua tcp operation done, resuming lua thread
'
ssl.t TEST 16: parse PEM cert and key to cdata - response_body - response is expected (repeated req 0, req 0) @@ -1,11 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
-sent http request: 56 bytes.
-received: HTTP/1.1 201 Created
-received: Server: nginx
-received: Content-Type: text/plain
-received: Content-Length: 4
-received: Connection: close
-received:
-received: foo
-close: 1 nil
'
ssl.t TEST 16: parse PEM cert and key to cdata - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:10:08 [error] 15631\#0: *69 lua entry thread aborted: runtime error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
coroutine 0:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/ngx/ssl.lua:4: in main chunk
[C]: in function 'require'
ssl_certificate_by_lua:2: in main chunk, context: ssl_certificate_by_lua*, client: unix:, server: unix:/home/ec2-user/git/lua-resty-core/t/servroot/html/nginx.sock
2020/10/26 12:10:08 [debug] 15631\#0: *69 lua request cleanup: forcible=0
'
ssl.t TEST 16: parse PEM cert and key to cdata - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:10:08 [error] 15631\#0: *66 SSL_do_handshake() failed (SSL: error:14094438:SSL routines:ssl3_read_bytes:tlsv1 alert internal error:SSL alert number 80), client: 127.0.0.1, server: localhost, request: \"GET /t HTTP/1.1\", host: \"localhost\"" (req 0) 2020/10/26 12:10:08 [debug] 15631\#0: *66 event timer del: 4: 11324273
2020/10/26 12:10:08 [debug] 15631\#0: *66 lua tcp socket handle connect error
2020/10/26 12:10:08 [debug] 15631\#0: *66 lua finalize socket
2020/10/26 12:10:08 [debug] 15631\#0: *66 lua http cleanup free: 0504EA68
2020/10/26 12:10:08 [debug] 15631\#0: *66 lua close socket connection
2020/10/26 12:10:08 [debug] 15631\#0: *66 free: 0504F4D0, unused: 0
2020/10/26 12:10:08 [debug] 15631\#0: *66 reusable connection: 0
2020/10/26 12:10:08 [debug] 15631\#0: *66 lua tcp socket waking up the current request
2020/10/26 12:10:08 [debug] 15631\#0: *66 lua tcp operation done, resuming lua thread
'
ssl.t TEST 16: parse PEM cert and key to cdata - response_body - response is expected (repeated req 1, req 0) @@ -1,11 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
-sent http request: 56 bytes.
-received: HTTP/1.1 201 Created
-received: Server: nginx
-received: Content-Type: text/plain
-received: Content-Length: 4
-received: Connection: close
-received:
-received: foo
-close: 1 nil
'
ssl.t TEST 16: parse PEM cert and key to cdata - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:10:08 [error] 15631\#0: *73 lua entry thread aborted: runtime error: ssl_certificate_by_lua:2: loop or previous error loading module 'ngx.ssl'" (req 1) stack traceback:
coroutine 0:
[C]: in function 'require'
ssl_certificate_by_lua:2: in main chunk, context: ssl_certificate_by_lua*, client: unix:, server: unix:/home/ec2-user/git/lua-resty-core/t/servroot/html/nginx.sock
2020/10/26 12:10:08 [debug] 15631\#0: *73 lua request cleanup: forcible=0
2020/10/26 12:10:08 [debug] 15631\#0: *73 http lua finalize fake request: 500, a:1, c:1
2020/10/26 12:10:08 [debug] 15631\#0: *73 http lua fake request count:1
2020/10/26 12:10:08 [debug] 15631\#0: *73 http lua close fake request
2020/10/26 12:10:08 [debug] 15631\#0: *73 http lua close fake http connection 050201F4
'
ssl.t TEST 16: parse PEM cert and key to cdata - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:10:08 [error] 15631\#0: *70 SSL_do_handshake() failed (SSL: error:14094438:SSL routines:ssl3_read_bytes:tlsv1 alert internal error:SSL alert number 80), client: 127.0.0.1, server: localhost, request: \"GET /t HTTP/1.1\", host: \"localhost\"" (req 1) 2020/10/26 12:10:08 [debug] 15631\#0: *70 event timer del: 4: 11324945
2020/10/26 12:10:08 [debug] 15631\#0: *70 lua tcp socket handle connect error
2020/10/26 12:10:08 [debug] 15631\#0: *70 lua finalize socket
2020/10/26 12:10:08 [debug] 15631\#0: *70 lua http cleanup free: 0509BC10
2020/10/26 12:10:08 [debug] 15631\#0: *70 lua close socket connection
2020/10/26 12:10:08 [debug] 15631\#0: *70 free: 0509C678, unused: 0
2020/10/26 12:10:08 [debug] 15631\#0: *70 reusable connection: 0
2020/10/26 12:10:08 [debug] 15631\#0: *70 lua tcp socket waking up the current request
2020/10/26 12:10:08 [debug] 15631\#0: *70 lua tcp operation done, resuming lua thread
'
ssl.t TEST 21: yield during doing handshake with client which uses low version OpenSSL - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'ok
'
ssl.t TEST 21: yield during doing handshake with client which uses low version OpenSSL - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:10:11 [error] 15663\#0: *100 lua entry thread aborted: runtime error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
coroutine 0:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/ngx/ssl.lua:4: in main chunk
[C]: in function 'require'
ssl_certificate_by_lua:2: in main chunk, context: ssl_certificate_by_lua*, client: 127.0.0.1, server: 0.0.0.0:3069
2020/10/26 12:10:11 [debug] 15663\#0: *100 lua request cleanup: forcible=0
'
ssl.t TEST 21: yield during doing handshake with client which uses low version OpenSSL - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:10:14 [error] 15663\#0: *98 [lua] content_by_lua(nginx.conf:111):25: openssl client handshake timeout, client: 127.0.0.1, server: localhost, request: \"GET /t HTTP/1.1\", host: \"localhost\"" (req 0) 2020/10/26 12:10:14 [debug] 15663\#0: *98 lua resume returned 0
2020/10/26 12:10:14 [debug] 15663\#0: *98 lua light thread ended normally
2020/10/26 12:10:14 [debug] 15663\#0: *98 lua deleting light thread
2020/10/26 12:10:14 [debug] 15663\#0: *98 lua capture header filter, uri "/t"
2020/10/26 12:10:14 [debug] 15663\#0: *98 malloc: 05293CA8:8
2020/10/26 12:10:14 [debug] 15663\#0: *98 malloc: 05293CE0:8
2020/10/26 12:10:14 [debug] 15663\#0: *98 malloc: 05293D18:52
2020/10/26 12:10:14 [debug] 15663\#0: *98 malloc: 05293D80:8
2020/10/26 12:10:14 [debug] 15663\#0: *98 malloc: 05293DB8:161
'
ssl.t TEST 21: yield during doing handshake with client which uses low version OpenSSL - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'ok
'
ssl.t TEST 21: yield during doing handshake with client which uses low version OpenSSL - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:10:14 [error] 15663\#0: *103 lua entry thread aborted: runtime error: ssl_certificate_by_lua:2: loop or previous error loading module 'ngx.ssl'" (req 1) stack traceback:
coroutine 0:
[C]: in function 'require'
ssl_certificate_by_lua:2: in main chunk, context: ssl_certificate_by_lua*, client: 127.0.0.1, server: 0.0.0.0:3069
2020/10/26 12:10:14 [debug] 15663\#0: *103 lua request cleanup: forcible=0
2020/10/26 12:10:14 [debug] 15663\#0: *103 http lua finalize fake request: 500, a:1, c:1
2020/10/26 12:10:14 [debug] 15663\#0: *103 http lua fake request count:1
2020/10/26 12:10:14 [debug] 15663\#0: *103 http lua close fake request
2020/10/26 12:10:14 [debug] 15663\#0: *103 http lua close fake http connection 05186560
'
ssl.t TEST 21: yield during doing handshake with client which uses low version OpenSSL - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:10:16 [error] 15663\#0: *101 [lua] content_by_lua(nginx.conf:111):25: openssl client handshake timeout, client: 127.0.0.1, server: localhost, request: \"GET /t HTTP/1.1\", host: \"localhost\"" (req 1) 2020/10/26 12:10:16 [debug] 15663\#0: *101 lua resume returned 0
2020/10/26 12:10:16 [debug] 15663\#0: *101 lua light thread ended normally
2020/10/26 12:10:16 [debug] 15663\#0: *101 lua deleting light thread
2020/10/26 12:10:16 [debug] 15663\#0: *101 lua capture header filter, uri "/t"
2020/10/26 12:10:16 [debug] 15663\#0: *101 malloc: 052A8F08:8
2020/10/26 12:10:16 [debug] 15663\#0: *101 malloc: 052A8F40:8
2020/10/26 12:10:16 [debug] 15663\#0: *101 malloc: 052A8F78:52
2020/10/26 12:10:16 [debug] 15663\#0: *101 malloc: 052A8FE0:8
2020/10/26 12:10:16 [debug] 15663\#0: *101 malloc: 052A9018:161
'
ssl.t TEST 24: verify client without CA certificates - status code ok got: '502'
expected: '200'
ssl.t TEST 24: verify client without CA certificates - response_body - response is expected (repeated req 0, req 0) got: '<html>
<head><title>502 Bad Gateway</title></head>
<body>
<center><h1>502 Bad Gateway</h1></center>
<hr><center>nginx/1.15.8 (no pool)</center>
</body>
</html>
'
expected: 'FAILED:self signed certificate
'
ssl.t TEST 24: verify client without CA certificates - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:10:19 [error] 15701\#0: *131 lua entry thread aborted: runtime error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
coroutine 0:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/ngx/ssl.lua:4: in main chunk
[C]: in function 'require'
ssl_certificate_by_lua:2: in main chunk, context: ssl_certificate_by_lua*, client: unix:, server: unix:/home/ec2-user/git/lua-resty-core/t/servroot/html/nginx.sock
2020/10/26 12:10:19 [debug] 15701\#0: *131 lua request cleanup: forcible=0
'
ssl.t TEST 24: verify client without CA certificates - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:10:19 [error] 15701\#0: *128 SSL_do_handshake() failed (SSL: error:14094438:SSL routines:ssl3_read_bytes:tlsv1 alert internal error:SSL alert number 80) while SSL handshaking to upstream, client: 127.0.0.1, server: localhost, request: \"GET /t HTTP/1.1\", upstream: \"https://unix:/home/ec2-user/git/lua-resty-core/t/servroot/html/nginx.sock:/t\", host: \"localhost\"" (req 0) 2020/10/26 12:10:19 [debug] 15701\#0: *128 http upstream ssl handshake: "/t?"
2020/10/26 12:10:19 [debug] 15701\#0: *128 http next upstream, 2
2020/10/26 12:10:19 [debug] 15701\#0: *128 free rr peer 1 4
2020/10/26 12:10:19 [debug] 15701\#0: *128 finalize http upstream request: 502
2020/10/26 12:10:19 [debug] 15701\#0: *128 finalize http proxy request
2020/10/26 12:10:19 [debug] 15701\#0: *128 close http upstream connection: 4
2020/10/26 12:10:19 [debug] 15701\#0: *128 free: 054716C0, unused: 0
2020/10/26 12:10:19 [debug] 15701\#0: *128 event timer del: 4: 11391869
2020/10/26 12:10:19 [debug] 15701\#0: *128 reusable connection: 0
'
ssl.t TEST 24: verify client without CA certificates - status code ok got: '502'
expected: '200'
ssl.t TEST 24: verify client without CA certificates - response_body - response is expected (repeated req 1, req 0) got: '<html>
<head><title>502 Bad Gateway</title></head>
<body>
<center><h1>502 Bad Gateway</h1></center>
<hr><center>nginx/1.15.8 (no pool)</center>
</body>
</html>
'
expected: 'FAILED:self signed certificate
'
ssl.t TEST 24: verify client without CA certificates - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:10:19 [error] 15701\#0: *135 lua entry thread aborted: runtime error: ssl_certificate_by_lua:2: loop or previous error loading module 'ngx.ssl'" (req 1) stack traceback:
coroutine 0:
[C]: in function 'require'
ssl_certificate_by_lua:2: in main chunk, context: ssl_certificate_by_lua*, client: unix:, server: unix:/home/ec2-user/git/lua-resty-core/t/servroot/html/nginx.sock
2020/10/26 12:10:19 [debug] 15701\#0: *135 lua request cleanup: forcible=0
2020/10/26 12:10:19 [debug] 15701\#0: *135 http lua finalize fake request: 500, a:1, c:1
2020/10/26 12:10:19 [debug] 15701\#0: *135 http lua fake request count:1
2020/10/26 12:10:19 [debug] 15701\#0: *135 http lua close fake request
2020/10/26 12:10:19 [debug] 15701\#0: *135 http lua close fake http connection 0544501C
'
ssl.t TEST 24: verify client without CA certificates - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:10:19 [error] 15701\#0: *132 SSL_do_handshake() failed (SSL: error:14094438:SSL routines:ssl3_read_bytes:tlsv1 alert internal error:SSL alert number 80) while SSL handshaking to upstream, client: 127.0.0.1, server: localhost, request: \"GET /t HTTP/1.1\", upstream: \"https://unix:/home/ec2-user/git/lua-resty-core/t/servroot/html/nginx.sock:/t\", host: \"localhost\"" (req 1) 2020/10/26 12:10:19 [debug] 15701\#0: *132 http upstream ssl handshake: "/t?"
2020/10/26 12:10:19 [debug] 15701\#0: *132 http next upstream, 2
2020/10/26 12:10:19 [debug] 15701\#0: *132 free rr peer 1 4
2020/10/26 12:10:19 [debug] 15701\#0: *132 finalize http upstream request: 502
2020/10/26 12:10:19 [debug] 15701\#0: *132 finalize http proxy request
2020/10/26 12:10:19 [debug] 15701\#0: *132 close http upstream connection: 4
2020/10/26 12:10:19 [debug] 15701\#0: *132 free: 054BC308, unused: 0
2020/10/26 12:10:19 [debug] 15701\#0: *132 event timer del: 4: 11392481
2020/10/26 12:10:19 [debug] 15701\#0: *132 reusable connection: 0
'
ssl.t TEST 9: read PEM cert chain but set DER cert chain - response_body - response is expected (repeated req 0, req 0) @@ -1,11 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
-sent http request: 56 bytes.
-received: HTTP/1.1 201 Created
-received: Server: nginx
-received: Content-Type: text/plain
-received: Content-Length: 4
-received: Connection: close
-received:
-received: foo
-close: 1 nil
'
ssl.t TEST 9: read PEM cert chain but set DER cert chain - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:10:22 [error] 15731\#0: *163 lua entry thread aborted: runtime error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
coroutine 0:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/ngx/ssl.lua:4: in main chunk
[C]: in function 'require'
ssl_certificate_by_lua:2: in main chunk, context: ssl_certificate_by_lua*, client: unix:, server: unix:/home/ec2-user/git/lua-resty-core/t/servroot/html/nginx.sock
2020/10/26 12:10:22 [debug] 15731\#0: *163 lua request cleanup: forcible=0
'
ssl.t TEST 9: read PEM cert chain but set DER cert chain - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:10:22 [error] 15731\#0: *160 SSL_do_handshake() failed (SSL: error:14094438:SSL routines:ssl3_read_bytes:tlsv1 alert internal error:SSL alert number 80), client: 127.0.0.1, server: localhost, request: \"GET /t HTTP/1.1\", host: \"localhost\"" (req 0) 2020/10/26 12:10:22 [debug] 15731\#0: *160 event timer del: 4: 11337993
2020/10/26 12:10:22 [debug] 15731\#0: *160 lua tcp socket handle connect error
2020/10/26 12:10:22 [debug] 15731\#0: *160 lua finalize socket
2020/10/26 12:10:22 [debug] 15731\#0: *160 lua http cleanup free: 05579660
2020/10/26 12:10:22 [debug] 15731\#0: *160 lua close socket connection
2020/10/26 12:10:22 [debug] 15731\#0: *160 free: 0557A0C8, unused: 0
2020/10/26 12:10:22 [debug] 15731\#0: *160 reusable connection: 0
2020/10/26 12:10:22 [debug] 15731\#0: *160 lua tcp socket waking up the current request
2020/10/26 12:10:22 [debug] 15731\#0: *160 lua tcp operation done, resuming lua thread
'
ssl.t TEST 9: read PEM cert chain but set DER cert chain - response_body - response is expected (repeated req 1, req 0) @@ -1,11 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
-sent http request: 56 bytes.
-received: HTTP/1.1 201 Created
-received: Server: nginx
-received: Content-Type: text/plain
-received: Content-Length: 4
-received: Connection: close
-received:
-received: foo
-close: 1 nil
'
ssl.t TEST 9: read PEM cert chain but set DER cert chain - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:10:22 [error] 15731\#0: *167 lua entry thread aborted: runtime error: ssl_certificate_by_lua:2: loop or previous error loading module 'ngx.ssl'" (req 1) stack traceback:
coroutine 0:
[C]: in function 'require'
ssl_certificate_by_lua:2: in main chunk, context: ssl_certificate_by_lua*, client: unix:, server: unix:/home/ec2-user/git/lua-resty-core/t/servroot/html/nginx.sock
2020/10/26 12:10:22 [debug] 15731\#0: *167 lua request cleanup: forcible=0
2020/10/26 12:10:22 [debug] 15731\#0: *167 http lua finalize fake request: 500, a:1, c:1
2020/10/26 12:10:22 [debug] 15731\#0: *167 http lua fake request count:1
2020/10/26 12:10:22 [debug] 15731\#0: *167 http lua close fake request
2020/10/26 12:10:22 [debug] 15731\#0: *167 http lua close fake http connection 0556746C
'
ssl.t TEST 9: read PEM cert chain but set DER cert chain - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:10:22 [error] 15731\#0: *164 SSL_do_handshake() failed (SSL: error:14094438:SSL routines:ssl3_read_bytes:tlsv1 alert internal error:SSL alert number 80), client: 127.0.0.1, server: localhost, request: \"GET /t HTTP/1.1\", host: \"localhost\"" (req 1) 2020/10/26 12:10:22 [debug] 15731\#0: *164 event timer del: 4: 11338653
2020/10/26 12:10:22 [debug] 15731\#0: *164 lua tcp socket handle connect error
2020/10/26 12:10:22 [debug] 15731\#0: *164 lua finalize socket
2020/10/26 12:10:22 [debug] 15731\#0: *164 lua http cleanup free: 056D50A8
2020/10/26 12:10:22 [debug] 15731\#0: *164 lua close socket connection
2020/10/26 12:10:22 [debug] 15731\#0: *164 free: 056D5B10, unused: 0
2020/10/26 12:10:22 [debug] 15731\#0: *164 reusable connection: 0
2020/10/26 12:10:22 [debug] 15731\#0: *164 lua tcp socket waking up the current request
2020/10/26 12:10:22 [debug] 15731\#0: *164 lua tcp operation done, resuming lua thread
'
ssl.t TEST 17: parse PEM cert and key to cdata (bad cert 0 in the chain) - pattern "[crit]" should not match any line in error.log but matches line "2020/10/26 12:10:25 [crit] 15761\#0: *194 SSL_do_handshake() failed (SSL: error:1417A179:SSL routines:tls_post_process_client_hello:cert cb error) while SSL handshaking, client: unix:, server: unix:/home/ec2-user/git/lua-resty-core/t/servroot/html/nginx.sock" (req 0) 2020/10/26 12:10:25 [debug] 15761\#0: *194 close http connection: 7
2020/10/26 12:10:25 [debug] 15761\#0: *194 event timer del: 7: 11398417
2020/10/26 12:10:25 [debug] 15761\#0: *194 reusable connection: 0
2020/10/26 12:10:25 [debug] 15761\#0: *194 free: 058C6170, unused: 0
2020/10/26 12:10:25 [debug] 15761\#0: *194 free: 058C5A80, unused: 0
2020/10/26 12:10:25 [debug] 15761\#0: *194 free: 058B3A80, unused: 0
2020/10/26 12:10:25 [debug] 15761\#0: *194 free: 058B39E8, unused: 0
2020/10/26 12:10:25 [debug] 15761\#0: *194 free: 058B3970, unused: 0
2020/10/26 12:10:25 [debug] 15761\#0: *194 free: 058B38E8, unused: 0
'
ssl.t TEST 17: parse PEM cert and key to cdata (bad cert 0 in the chain) - pattern "[crit]" should not match any line in error.log but matches line "2020/10/26 12:10:25 [crit] 15761\#0: *198 SSL_do_handshake() failed (SSL: error:1417A179:SSL routines:tls_post_process_client_hello:cert cb error) while SSL handshaking, client: unix:, server: unix:/home/ec2-user/git/lua-resty-core/t/servroot/html/nginx.sock" (req 1) 2020/10/26 12:10:25 [debug] 15761\#0: *198 close http connection: 7
2020/10/26 12:10:25 [debug] 15761\#0: *198 event timer del: 7: 11398861
2020/10/26 12:10:25 [debug] 15761\#0: *198 reusable connection: 0
2020/10/26 12:10:25 [debug] 15761\#0: *198 free: 059131A8, unused: 0
2020/10/26 12:10:25 [debug] 15761\#0: *198 free: 05912AB8, unused: 0
2020/10/26 12:10:25 [debug] 15761\#0: *198 free: 05900AB8, unused: 0
2020/10/26 12:10:25 [debug] 15761\#0: *198 free: 05900A20, unused: 0
2020/10/26 12:10:25 [debug] 15761\#0: *198 free: 059009A8, unused: 0
2020/10/26 12:10:25 [debug] 15761\#0: *198 free: 05900920, unused: 0
'
ssl.t TEST 25: verify client but client provides no certificate - status code ok got: '502'
expected: '200'
ssl.t TEST 25: verify client but client provides no certificate - response_body - response is expected (repeated req 0, req 0) got: '<html>
<head><title>502 Bad Gateway</title></head>
<body>
<center><h1>502 Bad Gateway</h1></center>
<hr><center>nginx/1.15.8 (no pool)</center>
</body>
</html>
'
expected: 'NONE
'
ssl.t TEST 25: verify client but client provides no certificate - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:10:28 [error] 15791\#0: *227 lua entry thread aborted: runtime error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
coroutine 0:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/ngx/ssl.lua:4: in main chunk
[C]: in function 'require'
ssl_certificate_by_lua:2: in main chunk, context: ssl_certificate_by_lua*, client: unix:, server: unix:/home/ec2-user/git/lua-resty-core/t/servroot/html/nginx.sock
2020/10/26 12:10:28 [debug] 15791\#0: *227 lua request cleanup: forcible=0
'
ssl.t TEST 25: verify client but client provides no certificate - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:10:28 [error] 15791\#0: *224 SSL_do_handshake() failed (SSL: error:14094438:SSL routines:ssl3_read_bytes:tlsv1 alert internal error:SSL alert number 80) while SSL handshaking to upstream, client: 127.0.0.1, server: localhost, request: \"GET /t HTTP/1.1\", upstream: \"https://unix:/home/ec2-user/git/lua-resty-core/t/servroot/html/nginx.sock:/t\", host: \"localhost\"" (req 0) 2020/10/26 12:10:28 [debug] 15791\#0: *224 http upstream ssl handshake: "/t?"
2020/10/26 12:10:28 [debug] 15791\#0: *224 http next upstream, 2
2020/10/26 12:10:28 [debug] 15791\#0: *224 free rr peer 1 4
2020/10/26 12:10:28 [debug] 15791\#0: *224 finalize http upstream request: 502
2020/10/26 12:10:28 [debug] 15791\#0: *224 finalize http proxy request
2020/10/26 12:10:28 [debug] 15791\#0: *224 close http upstream connection: 4
2020/10/26 12:10:28 [debug] 15791\#0: *224 free: 05AA1798, unused: 0
2020/10/26 12:10:28 [debug] 15791\#0: *224 event timer del: 4: 11401350
2020/10/26 12:10:28 [debug] 15791\#0: *224 reusable connection: 0
'
ssl.t TEST 25: verify client but client provides no certificate - status code ok got: '502'
expected: '200'
ssl.t TEST 25: verify client but client provides no certificate - response_body - response is expected (repeated req 1, req 0) got: '<html>
<head><title>502 Bad Gateway</title></head>
<body>
<center><h1>502 Bad Gateway</h1></center>
<hr><center>nginx/1.15.8 (no pool)</center>
</body>
</html>
'
expected: 'NONE
'
ssl.t TEST 25: verify client but client provides no certificate - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:10:29 [error] 15791\#0: *231 lua entry thread aborted: runtime error: ssl_certificate_by_lua:2: loop or previous error loading module 'ngx.ssl'" (req 1) stack traceback:
coroutine 0:
[C]: in function 'require'
ssl_certificate_by_lua:2: in main chunk, context: ssl_certificate_by_lua*, client: unix:, server: unix:/home/ec2-user/git/lua-resty-core/t/servroot/html/nginx.sock
2020/10/26 12:10:29 [debug] 15791\#0: *231 lua request cleanup: forcible=0
2020/10/26 12:10:29 [debug] 15791\#0: *231 http lua finalize fake request: 500, a:1, c:1
2020/10/26 12:10:29 [debug] 15791\#0: *231 http lua fake request count:1
2020/10/26 12:10:29 [debug] 15791\#0: *231 http lua close fake request
2020/10/26 12:10:29 [debug] 15791\#0: *231 http lua close fake http connection 0598518C
'
ssl.t TEST 25: verify client but client provides no certificate - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:10:29 [error] 15791\#0: *228 SSL_do_handshake() failed (SSL: error:14094438:SSL routines:ssl3_read_bytes:tlsv1 alert internal error:SSL alert number 80) while SSL handshaking to upstream, client: 127.0.0.1, server: localhost, request: \"GET /t HTTP/1.1\", upstream: \"https://unix:/home/ec2-user/git/lua-resty-core/t/servroot/html/nginx.sock:/t\", host: \"localhost\"" (req 1) 2020/10/26 12:10:29 [debug] 15791\#0: *228 http upstream ssl handshake: "/t?"
2020/10/26 12:10:29 [debug] 15791\#0: *228 http next upstream, 2
2020/10/26 12:10:29 [debug] 15791\#0: *228 free rr peer 1 4
2020/10/26 12:10:29 [debug] 15791\#0: *228 finalize http upstream request: 502
2020/10/26 12:10:29 [debug] 15791\#0: *228 finalize http proxy request
2020/10/26 12:10:29 [debug] 15791\#0: *228 close http upstream connection: 4
2020/10/26 12:10:29 [debug] 15791\#0: *228 free: 05AECBD8, unused: 0
2020/10/26 12:10:29 [debug] 15791\#0: *228 event timer del: 4: 11401962
2020/10/26 12:10:29 [debug] 15791\#0: *228 reusable connection: 0
'
ssl.t TEST 27: read server port via ssl.server_port() with unix domain socket - response_body - response is expected (repeated req 0, req 0) @@ -1,11 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
-sent http request: 56 bytes.
-received: HTTP/1.1 201 Created
-received: Server: nginx
-received: Content-Type: text/plain
-received: Content-Length: 4
-received: Connection: close
-received:
-received: foo
-close: 1 nil
'
ssl.t TEST 27: read server port via ssl.server_port() with unix domain socket - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:10:31 [error] 15821\#0: *259 lua entry thread aborted: runtime error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
coroutine 0:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/ngx/ssl.lua:4: in main chunk
[C]: in function 'require'
ssl_certificate_by_lua:2: in main chunk, context: ssl_certificate_by_lua*, client: unix:, server: unix:/home/ec2-user/git/lua-resty-core/t/servroot/html/nginx.sock
2020/10/26 12:10:31 [debug] 15821\#0: *259 lua request cleanup: forcible=0
'
ssl.t TEST 27: read server port via ssl.server_port() with unix domain socket - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:10:31 [error] 15821\#0: *256 SSL_do_handshake() failed (SSL: error:14094438:SSL routines:ssl3_read_bytes:tlsv1 alert internal error:SSL alert number 80), client: 127.0.0.1, server: localhost, request: \"GET /t HTTP/1.1\", host: \"localhost\"" (req 0) 2020/10/26 12:10:31 [debug] 15821\#0: *256 event timer del: 4: 11347474
2020/10/26 12:10:31 [debug] 15821\#0: *256 lua tcp socket handle connect error
2020/10/26 12:10:31 [debug] 15821\#0: *256 lua finalize socket
2020/10/26 12:10:31 [debug] 15821\#0: *256 lua http cleanup free: 05CB9A50
2020/10/26 12:10:31 [debug] 15821\#0: *256 lua close socket connection
2020/10/26 12:10:31 [debug] 15821\#0: *256 free: 05CBA4B8, unused: 0
2020/10/26 12:10:31 [debug] 15821\#0: *256 reusable connection: 0
2020/10/26 12:10:31 [debug] 15821\#0: *256 lua tcp socket waking up the current request
2020/10/26 12:10:31 [debug] 15821\#0: *256 lua tcp operation done, resuming lua thread
'
ssl.t TEST 27: read server port via ssl.server_port() with unix domain socket - response_body - response is expected (repeated req 1, req 0) @@ -1,11 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
-sent http request: 56 bytes.
-received: HTTP/1.1 201 Created
-received: Server: nginx
-received: Content-Type: text/plain
-received: Content-Length: 4
-received: Connection: close
-received:
-received: foo
-close: 1 nil
'
ssl.t TEST 27: read server port via ssl.server_port() with unix domain socket - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:10:32 [error] 15821\#0: *263 lua entry thread aborted: runtime error: ssl_certificate_by_lua:2: loop or previous error loading module 'ngx.ssl'" (req 1) stack traceback:
coroutine 0:
[C]: in function 'require'
ssl_certificate_by_lua:2: in main chunk, context: ssl_certificate_by_lua*, client: unix:, server: unix:/home/ec2-user/git/lua-resty-core/t/servroot/html/nginx.sock
2020/10/26 12:10:32 [debug] 15821\#0: *263 lua request cleanup: forcible=0
2020/10/26 12:10:32 [debug] 15821\#0: *263 http lua finalize fake request: 500, a:1, c:1
2020/10/26 12:10:32 [debug] 15821\#0: *263 http lua fake request count:1
2020/10/26 12:10:32 [debug] 15821\#0: *263 http lua close fake request
2020/10/26 12:10:32 [debug] 15821\#0: *263 http lua close fake http connection 05C8B1DC
'
ssl.t TEST 27: read server port via ssl.server_port() with unix domain socket - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:10:32 [error] 15821\#0: *260 SSL_do_handshake() failed (SSL: error:14094438:SSL routines:ssl3_read_bytes:tlsv1 alert internal error:SSL alert number 80), client: 127.0.0.1, server: localhost, request: \"GET /t HTTP/1.1\", host: \"localhost\"" (req 1) 2020/10/26 12:10:32 [debug] 15821\#0: *260 event timer del: 4: 11348134
2020/10/26 12:10:32 [debug] 15821\#0: *260 lua tcp socket handle connect error
2020/10/26 12:10:32 [debug] 15821\#0: *260 lua finalize socket
2020/10/26 12:10:32 [debug] 15821\#0: *260 lua http cleanup free: 05D05440
2020/10/26 12:10:32 [debug] 15821\#0: *260 lua close socket connection
2020/10/26 12:10:32 [debug] 15821\#0: *260 free: 05D05EA8, unused: 0
2020/10/26 12:10:32 [debug] 15821\#0: *260 reusable connection: 0
2020/10/26 12:10:32 [debug] 15821\#0: *260 lua tcp socket waking up the current request
2020/10/26 12:10:32 [debug] 15821\#0: *260 lua tcp operation done, resuming lua thread
'
ssl.t TEST 11: tls version - TLSv1 - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +1,2 @@
connected: 1
-ssl handshake: boolean
+failed to do SSL handshake: handshake failed
'
ssl.t TEST 11: tls version - TLSv1 - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:10:34 [error] 15851\#0: *291 lua entry thread aborted: runtime error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
coroutine 0:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/ngx/ssl.lua:4: in main chunk
[C]: in function 'require'
ssl_certificate_by_lua:2: in main chunk, context: ssl_certificate_by_lua*, client: 127.0.0.1, server: 127.0.0.2:6743
2020/10/26 12:10:34 [debug] 15851\#0: *291 lua request cleanup: forcible=0
'
ssl.t TEST 11: tls version - TLSv1 - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:10:35 [error] 15851\#0: *288 SSL_do_handshake() failed (SSL: error:14094438:SSL routines:ssl3_read_bytes:tlsv1 alert internal error:SSL alert number 80), client: 127.0.0.1, server: localhost, request: \"GET /t HTTP/1.1\", host: \"localhost\"" (req 0) 2020/10/26 12:10:35 [debug] 15851\#0: *288 event timer del: 4: 11350730
2020/10/26 12:10:35 [debug] 15851\#0: *288 lua tcp socket handle connect error
2020/10/26 12:10:35 [debug] 15851\#0: *288 lua finalize socket
2020/10/26 12:10:35 [debug] 15851\#0: *288 lua http cleanup free: 05D8B588
2020/10/26 12:10:35 [debug] 15851\#0: *288 lua close socket connection
2020/10/26 12:10:35 [debug] 15851\#0: *288 free: 05ECE8C0, unused: 0
2020/10/26 12:10:35 [debug] 15851\#0: *288 reusable connection: 0
2020/10/26 12:10:35 [debug] 15851\#0: *288 lua tcp socket waking up the current request
2020/10/26 12:10:35 [debug] 15851\#0: *288 lua tcp operation done, resuming lua thread
'
ssl.t TEST 11: tls version - TLSv1 - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +1,2 @@
connected: 1
-ssl handshake: boolean
+failed to do SSL handshake: handshake failed
'
ssl.t TEST 11: tls version - TLSv1 - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:10:35 [error] 15851\#0: *295 lua entry thread aborted: runtime error: ssl_certificate_by_lua:2: loop or previous error loading module 'ngx.ssl'" (req 1) stack traceback:
coroutine 0:
[C]: in function 'require'
ssl_certificate_by_lua:2: in main chunk, context: ssl_certificate_by_lua*, client: 127.0.0.1, server: 127.0.0.2:6743
2020/10/26 12:10:35 [debug] 15851\#0: *295 lua request cleanup: forcible=0
2020/10/26 12:10:35 [debug] 15851\#0: *295 http lua finalize fake request: 500, a:1, c:1
2020/10/26 12:10:35 [debug] 15851\#0: *295 http lua fake request count:1
2020/10/26 12:10:35 [debug] 15851\#0: *295 http lua close fake request
2020/10/26 12:10:35 [debug] 15851\#0: *295 http lua close fake http connection 05D6E2FC
'
ssl.t TEST 11: tls version - TLSv1 - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:10:35 [error] 15851\#0: *292 SSL_do_handshake() failed (SSL: error:14094438:SSL routines:ssl3_read_bytes:tlsv1 alert internal error:SSL alert number 80), client: 127.0.0.1, server: localhost, request: \"GET /t HTTP/1.1\", host: \"localhost\"" (req 1) 2020/10/26 12:10:35 [debug] 15851\#0: *292 event timer del: 4: 11351314
2020/10/26 12:10:35 [debug] 15851\#0: *292 lua tcp socket handle connect error
2020/10/26 12:10:35 [debug] 15851\#0: *292 lua finalize socket
2020/10/26 12:10:35 [debug] 15851\#0: *292 lua http cleanup free: 05F151E0
2020/10/26 12:10:35 [debug] 15851\#0: *292 lua close socket connection
2020/10/26 12:10:35 [debug] 15851\#0: *292 free: 05F15C48, unused: 0
2020/10/26 12:10:35 [debug] 15851\#0: *292 reusable connection: 0
2020/10/26 12:10:35 [debug] 15851\#0: *292 lua tcp socket waking up the current request
2020/10/26 12:10:35 [debug] 15851\#0: *292 lua tcp operation done, resuming lua thread
'
ssl.t TEST 6: read raw server addr via ssl.raw_server_addr() (IPv4) - response_body - response is expected (repeated req 0, req 0) @@ -1,11 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
-sent http request: 56 bytes.
-received: HTTP/1.1 201 Created
-received: Server: nginx
-received: Content-Type: text/plain
-received: Content-Length: 4
-received: Connection: close
-received:
-received: foo
-close: 1 nil
'
ssl.t TEST 6: read raw server addr via ssl.raw_server_addr() (IPv4) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:10:38 [error] 15881\#0: *323 lua entry thread aborted: runtime error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
coroutine 0:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/ngx/ssl.lua:4: in main chunk
[C]: in function 'require'
ssl_certificate_by_lua:2: in main chunk, context: ssl_certificate_by_lua*, client: 127.0.0.1, server: 127.0.0.1:3762
2020/10/26 12:10:38 [debug] 15881\#0: *323 lua request cleanup: forcible=0
'
ssl.t TEST 6: read raw server addr via ssl.raw_server_addr() (IPv4) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:10:38 [error] 15881\#0: *320 SSL_do_handshake() failed (SSL: error:14094438:SSL routines:ssl3_read_bytes:tlsv1 alert internal error:SSL alert number 80), client: 127.0.0.1, server: localhost, request: \"GET /t HTTP/1.1\", host: \"localhost\"" (req 0) 2020/10/26 12:10:38 [debug] 15881\#0: *320 event timer del: 4: 11353922
2020/10/26 12:10:38 [debug] 15881\#0: *320 lua tcp socket handle connect error
2020/10/26 12:10:38 [debug] 15881\#0: *320 lua finalize socket
2020/10/26 12:10:38 [debug] 15881\#0: *320 lua http cleanup free: 04A2DA90
2020/10/26 12:10:38 [debug] 15881\#0: *320 lua close socket connection
2020/10/26 12:10:38 [debug] 15881\#0: *320 free: 04A308C0, unused: 0
2020/10/26 12:10:38 [debug] 15881\#0: *320 reusable connection: 0
2020/10/26 12:10:38 [debug] 15881\#0: *320 lua tcp socket waking up the current request
2020/10/26 12:10:38 [debug] 15881\#0: *320 lua tcp operation done, resuming lua thread
'
ssl.t TEST 6: read raw server addr via ssl.raw_server_addr() (IPv4) - response_body - response is expected (repeated req 1, req 0) @@ -1,11 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
-sent http request: 56 bytes.
-received: HTTP/1.1 201 Created
-received: Server: nginx
-received: Content-Type: text/plain
-received: Content-Length: 4
-received: Connection: close
-received:
-received: foo
-close: 1 nil
'
ssl.t TEST 6: read raw server addr via ssl.raw_server_addr() (IPv4) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:10:38 [error] 15881\#0: *327 lua entry thread aborted: runtime error: ssl_certificate_by_lua:2: loop or previous error loading module 'ngx.ssl'" (req 1) stack traceback:
coroutine 0:
[C]: in function 'require'
ssl_certificate_by_lua:2: in main chunk, context: ssl_certificate_by_lua*, client: 127.0.0.1, server: 127.0.0.1:3762
2020/10/26 12:10:38 [debug] 15881\#0: *327 lua request cleanup: forcible=0
2020/10/26 12:10:38 [debug] 15881\#0: *327 http lua finalize fake request: 500, a:1, c:1
2020/10/26 12:10:38 [debug] 15881\#0: *327 http lua fake request count:1
2020/10/26 12:10:38 [debug] 15881\#0: *327 http lua close fake request
2020/10/26 12:10:38 [debug] 15881\#0: *327 http lua close fake http connection 049C423C
'
ssl.t TEST 6: read raw server addr via ssl.raw_server_addr() (IPv4) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:10:38 [error] 15881\#0: *324 SSL_do_handshake() failed (SSL: error:14094438:SSL routines:ssl3_read_bytes:tlsv1 alert internal error:SSL alert number 80), client: 127.0.0.1, server: localhost, request: \"GET /t HTTP/1.1\", host: \"localhost\"" (req 1) 2020/10/26 12:10:38 [debug] 15881\#0: *324 event timer del: 4: 11354550
2020/10/26 12:10:38 [debug] 15881\#0: *324 lua tcp socket handle connect error
2020/10/26 12:10:38 [debug] 15881\#0: *324 lua finalize socket
2020/10/26 12:10:38 [debug] 15881\#0: *324 lua http cleanup free: 04B16FD0
2020/10/26 12:10:38 [debug] 15881\#0: *324 lua close socket connection
2020/10/26 12:10:38 [debug] 15881\#0: *324 free: 04AD0B50, unused: 0
2020/10/26 12:10:38 [debug] 15881\#0: *324 reusable connection: 0
2020/10/26 12:10:38 [debug] 15881\#0: *324 lua tcp socket waking up the current request
2020/10/26 12:10:38 [debug] 15881\#0: *324 lua tcp operation done, resuming lua thread
'
ssl.t TEST 8: set DER cert chain - response_body - response is expected (repeated req 0, req 0) @@ -1,11 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
-sent http request: 56 bytes.
-received: HTTP/1.1 201 Created
-received: Server: nginx
-received: Content-Type: text/plain
-received: Content-Length: 4
-received: Connection: close
-received:
-received: foo
-close: 1 nil
'
ssl.t TEST 8: set DER cert chain - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:10:41 [error] 15911\#0: *355 lua entry thread aborted: runtime error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
coroutine 0:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/ngx/ssl.lua:4: in main chunk
[C]: in function 'require'
ssl_certificate_by_lua:2: in main chunk, context: ssl_certificate_by_lua*, client: unix:, server: unix:/home/ec2-user/git/lua-resty-core/t/servroot/html/nginx.sock
2020/10/26 12:10:41 [debug] 15911\#0: *355 lua request cleanup: forcible=0
'
ssl.t TEST 8: set DER cert chain - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:10:41 [error] 15911\#0: *352 SSL_do_handshake() failed (SSL: error:14094438:SSL routines:ssl3_read_bytes:tlsv1 alert internal error:SSL alert number 80), client: 127.0.0.1, server: localhost, request: \"GET /t HTTP/1.1\", host: \"localhost\"" (req 0) 2020/10/26 12:10:41 [debug] 15911\#0: *352 event timer del: 4: 11357070
2020/10/26 12:10:41 [debug] 15911\#0: *352 lua tcp socket handle connect error
2020/10/26 12:10:41 [debug] 15911\#0: *352 lua finalize socket
2020/10/26 12:10:41 [debug] 15911\#0: *352 lua http cleanup free: 04C2C5D8
2020/10/26 12:10:41 [debug] 15911\#0: *352 lua close socket connection
2020/10/26 12:10:41 [debug] 15911\#0: *352 free: 04C469A8, unused: 0
2020/10/26 12:10:41 [debug] 15911\#0: *352 reusable connection: 0
2020/10/26 12:10:41 [debug] 15911\#0: *352 lua tcp socket waking up the current request
2020/10/26 12:10:41 [debug] 15911\#0: *352 lua tcp operation done, resuming lua thread
'
ssl.t TEST 8: set DER cert chain - response_body - response is expected (repeated req 1, req 0) @@ -1,11 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
-sent http request: 56 bytes.
-received: HTTP/1.1 201 Created
-received: Server: nginx
-received: Content-Type: text/plain
-received: Content-Length: 4
-received: Connection: close
-received:
-received: foo
-close: 1 nil
'
ssl.t TEST 8: set DER cert chain - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:10:41 [error] 15911\#0: *359 lua entry thread aborted: runtime error: ssl_certificate_by_lua:2: loop or previous error loading module 'ngx.ssl'" (req 1) stack traceback:
coroutine 0:
[C]: in function 'require'
ssl_certificate_by_lua:2: in main chunk, context: ssl_certificate_by_lua*, client: unix:, server: unix:/home/ec2-user/git/lua-resty-core/t/servroot/html/nginx.sock
2020/10/26 12:10:41 [debug] 15911\#0: *359 lua request cleanup: forcible=0
2020/10/26 12:10:41 [debug] 15911\#0: *359 http lua finalize fake request: 500, a:1, c:1
2020/10/26 12:10:41 [debug] 15911\#0: *359 http lua fake request count:1
2020/10/26 12:10:41 [debug] 15911\#0: *359 http lua close fake request
2020/10/26 12:10:41 [debug] 15911\#0: *359 http lua close fake http connection 049D97D4
'
ssl.t TEST 8: set DER cert chain - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:10:41 [error] 15911\#0: *356 SSL_do_handshake() failed (SSL: error:14094438:SSL routines:ssl3_read_bytes:tlsv1 alert internal error:SSL alert number 80), client: 127.0.0.1, server: localhost, request: \"GET /t HTTP/1.1\", host: \"localhost\"" (req 1) 2020/10/26 12:10:41 [debug] 15911\#0: *356 event timer del: 4: 11357734
2020/10/26 12:10:41 [debug] 15911\#0: *356 lua tcp socket handle connect error
2020/10/26 12:10:41 [debug] 15911\#0: *356 lua finalize socket
2020/10/26 12:10:41 [debug] 15911\#0: *356 lua http cleanup free: 04A98890
2020/10/26 12:10:41 [debug] 15911\#0: *356 lua close socket connection
2020/10/26 12:10:41 [debug] 15911\#0: *356 free: 04AE7468, unused: 0
2020/10/26 12:10:41 [debug] 15911\#0: *356 reusable connection: 0
2020/10/26 12:10:41 [debug] 15911\#0: *356 lua tcp socket waking up the current request
2020/10/26 12:10:41 [debug] 15911\#0: *356 lua tcp operation done, resuming lua thread
'
ssl.t TEST 10: tls version - SSLv3 - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +1,2 @@
connected: 1
-ssl handshake: boolean
+failed to do SSL handshake: handshake failed
'
ssl.t TEST 10: tls version - SSLv3 - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:10:44 [error] 15941\#0: *387 lua entry thread aborted: runtime error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
coroutine 0:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/ngx/ssl.lua:4: in main chunk
[C]: in function 'require'
ssl_certificate_by_lua:2: in main chunk, context: ssl_certificate_by_lua*, client: 127.0.0.1, server: 127.0.0.2:5621
2020/10/26 12:10:44 [debug] 15941\#0: *387 lua request cleanup: forcible=0
'
ssl.t TEST 10: tls version - SSLv3 - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:10:44 [error] 15941\#0: *384 SSL_do_handshake() failed (SSL: error:14094410:SSL routines:ssl3_read_bytes:sslv3 alert handshake failure:SSL alert number 40), client: 127.0.0.1, server: localhost, request: \"GET /t HTTP/1.1\", host: \"localhost\"" (req 0) 2020/10/26 12:10:44 [debug] 15941\#0: *384 event timer del: 4: 11360354
2020/10/26 12:10:44 [debug] 15941\#0: *384 lua tcp socket handle connect error
2020/10/26 12:10:44 [debug] 15941\#0: *384 lua finalize socket
2020/10/26 12:10:44 [debug] 15941\#0: *384 lua http cleanup free: 04D87E48
2020/10/26 12:10:44 [debug] 15941\#0: *384 lua close socket connection
2020/10/26 12:10:44 [debug] 15941\#0: *384 free: 04D894C0, unused: 0
2020/10/26 12:10:44 [debug] 15941\#0: *384 reusable connection: 0
2020/10/26 12:10:44 [debug] 15941\#0: *384 lua tcp socket waking up the current request
2020/10/26 12:10:44 [debug] 15941\#0: *384 lua tcp operation done, resuming lua thread
'
ssl.t TEST 10: tls version - SSLv3 - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +1,2 @@
connected: 1
-ssl handshake: boolean
+failed to do SSL handshake: handshake failed
'
ssl.t TEST 10: tls version - SSLv3 - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:10:44 [error] 15941\#0: *391 lua entry thread aborted: runtime error: ssl_certificate_by_lua:2: loop or previous error loading module 'ngx.ssl'" (req 1) stack traceback:
coroutine 0:
[C]: in function 'require'
ssl_certificate_by_lua:2: in main chunk, context: ssl_certificate_by_lua*, client: 127.0.0.1, server: 127.0.0.2:5621
2020/10/26 12:10:44 [debug] 15941\#0: *391 lua request cleanup: forcible=0
2020/10/26 12:10:44 [debug] 15941\#0: *391 http lua finalize fake request: 500, a:1, c:1
2020/10/26 12:10:44 [debug] 15941\#0: *391 http lua fake request count:1
2020/10/26 12:10:44 [debug] 15941\#0: *391 http lua close fake request
2020/10/26 12:10:44 [debug] 15941\#0: *391 http lua close fake http connection 04BFC3CC
'
ssl.t TEST 10: tls version - SSLv3 - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:10:44 [error] 15941\#0: *388 SSL_do_handshake() failed (SSL: error:14094410:SSL routines:ssl3_read_bytes:sslv3 alert handshake failure:SSL alert number 40), client: 127.0.0.1, server: localhost, request: \"GET /t HTTP/1.1\", host: \"localhost\"" (req 1) 2020/10/26 12:10:44 [debug] 15941\#0: *388 event timer del: 4: 11360922
2020/10/26 12:10:44 [debug] 15941\#0: *388 lua tcp socket handle connect error
2020/10/26 12:10:44 [debug] 15941\#0: *388 lua finalize socket
2020/10/26 12:10:44 [debug] 15941\#0: *388 lua http cleanup free: 04E84138
2020/10/26 12:10:44 [debug] 15941\#0: *388 lua close socket connection
2020/10/26 12:10:44 [debug] 15941\#0: *388 free: 04D85268, unused: 0
2020/10/26 12:10:44 [debug] 15941\#0: *388 reusable connection: 0
2020/10/26 12:10:44 [debug] 15941\#0: *388 lua tcp socket waking up the current request
2020/10/26 12:10:44 [debug] 15941\#0: *388 lua tcp operation done, resuming lua thread
'
ssl.t TEST 5: read raw server addr via ssl.raw_server_addr() (unix domain socket) - response_body - response is expected (repeated req 0, req 0) @@ -1,11 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
-sent http request: 56 bytes.
-received: HTTP/1.1 201 Created
-received: Server: nginx
-received: Content-Type: text/plain
-received: Content-Length: 4
-received: Connection: close
-received:
-received: foo
-close: 1 nil
'
ssl.t TEST 5: read raw server addr via ssl.raw_server_addr() (unix domain socket) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:10:47 [error] 15971\#0: *419 lua entry thread aborted: runtime error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
coroutine 0:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/ngx/ssl.lua:4: in main chunk
[C]: in function 'require'
ssl_certificate_by_lua:2: in main chunk, context: ssl_certificate_by_lua*, client: unix:, server: unix:/home/ec2-user/git/lua-resty-core/t/servroot/html/nginx.sock
2020/10/26 12:10:47 [debug] 15971\#0: *419 lua request cleanup: forcible=0
'
ssl.t TEST 5: read raw server addr via ssl.raw_server_addr() (unix domain socket) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:10:47 [error] 15971\#0: *416 SSL_do_handshake() failed (SSL: error:14094438:SSL routines:ssl3_read_bytes:tlsv1 alert internal error:SSL alert number 80), client: 127.0.0.1, server: localhost, request: \"GET /t HTTP/1.1\", host: \"localhost\"" (req 0) 2020/10/26 12:10:47 [debug] 15971\#0: *416 event timer del: 4: 11363462
2020/10/26 12:10:47 [debug] 15971\#0: *416 lua tcp socket handle connect error
2020/10/26 12:10:47 [debug] 15971\#0: *416 lua finalize socket
2020/10/26 12:10:47 [debug] 15971\#0: *416 lua http cleanup free: 04C67FB0
2020/10/26 12:10:47 [debug] 15971\#0: *416 lua close socket connection
2020/10/26 12:10:47 [debug] 15971\#0: *416 free: 04D58C80, unused: 0
2020/10/26 12:10:47 [debug] 15971\#0: *416 reusable connection: 0
2020/10/26 12:10:47 [debug] 15971\#0: *416 lua tcp socket waking up the current request
2020/10/26 12:10:47 [debug] 15971\#0: *416 lua tcp operation done, resuming lua thread
'
ssl.t TEST 5: read raw server addr via ssl.raw_server_addr() (unix domain socket) - response_body - response is expected (repeated req 1, req 0) @@ -1,11 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
-sent http request: 56 bytes.
-received: HTTP/1.1 201 Created
-received: Server: nginx
-received: Content-Type: text/plain
-received: Content-Length: 4
-received: Connection: close
-received:
-received: foo
-close: 1 nil
'
ssl.t TEST 5: read raw server addr via ssl.raw_server_addr() (unix domain socket) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:10:48 [error] 15971\#0: *423 lua entry thread aborted: runtime error: ssl_certificate_by_lua:2: loop or previous error loading module 'ngx.ssl'" (req 1) stack traceback:
coroutine 0:
[C]: in function 'require'
ssl_certificate_by_lua:2: in main chunk, context: ssl_certificate_by_lua*, client: unix:, server: unix:/home/ec2-user/git/lua-resty-core/t/servroot/html/nginx.sock
2020/10/26 12:10:48 [debug] 15971\#0: *423 lua request cleanup: forcible=0
2020/10/26 12:10:48 [debug] 15971\#0: *423 http lua finalize fake request: 500, a:1, c:1
2020/10/26 12:10:48 [debug] 15971\#0: *423 http lua fake request count:1
2020/10/26 12:10:48 [debug] 15971\#0: *423 http lua close fake request
2020/10/26 12:10:48 [debug] 15971\#0: *423 http lua close fake http connection 04D5F30C
'
ssl.t TEST 5: read raw server addr via ssl.raw_server_addr() (unix domain socket) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:10:48 [error] 15971\#0: *420 SSL_do_handshake() failed (SSL: error:14094438:SSL routines:ssl3_read_bytes:tlsv1 alert internal error:SSL alert number 80), client: 127.0.0.1, server: localhost, request: \"GET /t HTTP/1.1\", host: \"localhost\"" (req 1) 2020/10/26 12:10:48 [debug] 15971\#0: *420 event timer del: 4: 11364162
2020/10/26 12:10:48 [debug] 15971\#0: *420 lua tcp socket handle connect error
2020/10/26 12:10:48 [debug] 15971\#0: *420 lua finalize socket
2020/10/26 12:10:48 [debug] 15971\#0: *420 lua http cleanup free: 05094CA0
2020/10/26 12:10:48 [debug] 15971\#0: *420 lua close socket connection
2020/10/26 12:10:48 [debug] 15971\#0: *420 free: 05095708, unused: 0
2020/10/26 12:10:48 [debug] 15971\#0: *420 reusable connection: 0
2020/10/26 12:10:48 [debug] 15971\#0: *420 lua tcp socket waking up the current request
2020/10/26 12:10:48 [debug] 15971\#0: *420 lua tcp operation done, resuming lua thread
'
ssl.t TEST 2: set DER cert and private key - response_body - response is expected (repeated req 0, req 0) @@ -1,11 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
-sent http request: 56 bytes.
-received: HTTP/1.1 201 Created
-received: Server: nginx
-received: Content-Type: text/plain
-received: Content-Length: 4
-received: Connection: close
-received:
-received: foo
-close: 1 nil
'
ssl.t TEST 2: set DER cert and private key - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:10:50 [error] 16001\#0: *451 lua entry thread aborted: runtime error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
coroutine 0:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/ngx/ssl.lua:4: in main chunk
[C]: in function 'require'
ssl_certificate_by_lua:2: in main chunk, context: ssl_certificate_by_lua*, client: unix:, server: unix:/home/ec2-user/git/lua-resty-core/t/servroot/html/nginx.sock
2020/10/26 12:10:50 [debug] 16001\#0: *451 lua request cleanup: forcible=0
'
ssl.t TEST 2: set DER cert and private key - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:10:51 [error] 16001\#0: *448 SSL_do_handshake() failed (SSL: error:14094438:SSL routines:ssl3_read_bytes:tlsv1 alert internal error:SSL alert number 80), client: 127.0.0.1, server: localhost, request: \"GET /t HTTP/1.1\", host: \"localhost\"" (req 0) 2020/10/26 12:10:51 [debug] 16001\#0: *448 event timer del: 4: 11366731
2020/10/26 12:10:51 [debug] 16001\#0: *448 lua tcp socket handle connect error
2020/10/26 12:10:51 [debug] 16001\#0: *448 lua finalize socket
2020/10/26 12:10:51 [debug] 16001\#0: *448 lua http cleanup free: 04E72CA0
2020/10/26 12:10:51 [debug] 16001\#0: *448 lua close socket connection
2020/10/26 12:10:51 [debug] 16001\#0: *448 free: 04E7C120, unused: 0
2020/10/26 12:10:51 [debug] 16001\#0: *448 reusable connection: 0
2020/10/26 12:10:51 [debug] 16001\#0: *448 lua tcp socket waking up the current request
2020/10/26 12:10:51 [debug] 16001\#0: *448 lua tcp operation done, resuming lua thread
'
ssl.t TEST 2: set DER cert and private key - response_body - response is expected (repeated req 1, req 0) @@ -1,11 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
-sent http request: 56 bytes.
-received: HTTP/1.1 201 Created
-received: Server: nginx
-received: Content-Type: text/plain
-received: Content-Length: 4
-received: Connection: close
-received:
-received: foo
-close: 1 nil
'
ssl.t TEST 2: set DER cert and private key - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:10:51 [error] 16001\#0: *455 lua entry thread aborted: runtime error: ssl_certificate_by_lua:2: loop or previous error loading module 'ngx.ssl'" (req 1) stack traceback:
coroutine 0:
[C]: in function 'require'
ssl_certificate_by_lua:2: in main chunk, context: ssl_certificate_by_lua*, client: unix:, server: unix:/home/ec2-user/git/lua-resty-core/t/servroot/html/nginx.sock
2020/10/26 12:10:51 [debug] 16001\#0: *455 lua request cleanup: forcible=0
2020/10/26 12:10:51 [debug] 16001\#0: *455 http lua finalize fake request: 500, a:1, c:1
2020/10/26 12:10:51 [debug] 16001\#0: *455 http lua fake request count:1
2020/10/26 12:10:51 [debug] 16001\#0: *455 http lua close fake request
2020/10/26 12:10:51 [debug] 16001\#0: *455 http lua close fake http connection 04D6EC94
'
ssl.t TEST 2: set DER cert and private key - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:10:51 [error] 16001\#0: *452 SSL_do_handshake() failed (SSL: error:14094438:SSL routines:ssl3_read_bytes:tlsv1 alert internal error:SSL alert number 80), client: 127.0.0.1, server: localhost, request: \"GET /t HTTP/1.1\", host: \"localhost\"" (req 1) 2020/10/26 12:10:51 [debug] 16001\#0: *452 event timer del: 4: 11367391
2020/10/26 12:10:51 [debug] 16001\#0: *452 lua tcp socket handle connect error
2020/10/26 12:10:51 [debug] 16001\#0: *452 lua finalize socket
2020/10/26 12:10:51 [debug] 16001\#0: *452 lua http cleanup free: 0529C548
2020/10/26 12:10:51 [debug] 16001\#0: *452 lua close socket connection
2020/10/26 12:10:51 [debug] 16001\#0: *452 free: 0529FBD0, unused: 0
2020/10/26 12:10:51 [debug] 16001\#0: *452 reusable connection: 0
2020/10/26 12:10:51 [debug] 16001\#0: *452 lua tcp socket waking up the current request
2020/10/26 12:10:51 [debug] 16001\#0: *452 lua tcp operation done, resuming lua thread
'
ssl.t TEST 7: read raw server addr via ssl.raw_server_addr() (IPv6) - response_body - response is expected (repeated req 0, req 0) @@ -1,11 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
-sent http request: 56 bytes.
-received: HTTP/1.1 201 Created
-received: Server: nginx
-received: Content-Type: text/plain
-received: Content-Length: 4
-received: Connection: close
-received:
-received: foo
-close: 1 nil
'
ssl.t TEST 7: read raw server addr via ssl.raw_server_addr() (IPv6) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:10:54 [error] 16033\#0: *483 lua entry thread aborted: runtime error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
coroutine 0:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/ngx/ssl.lua:4: in main chunk
[C]: in function 'require'
ssl_certificate_by_lua:2: in main chunk, context: ssl_certificate_by_lua*, client: ::1, server: [::1]:50598
2020/10/26 12:10:54 [debug] 16033\#0: *483 lua request cleanup: forcible=0
'
ssl.t TEST 7: read raw server addr via ssl.raw_server_addr() (IPv6) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:10:54 [error] 16033\#0: *480 SSL_do_handshake() failed (SSL: error:14094438:SSL routines:ssl3_read_bytes:tlsv1 alert internal error:SSL alert number 80), client: 127.0.0.1, server: localhost, request: \"GET /t HTTP/1.1\", host: \"localhost\"" (req 0) 2020/10/26 12:10:54 [debug] 16033\#0: *480 event timer del: 4: 11370071
2020/10/26 12:10:54 [debug] 16033\#0: *480 lua tcp socket handle connect error
2020/10/26 12:10:54 [debug] 16033\#0: *480 lua finalize socket
2020/10/26 12:10:54 [debug] 16033\#0: *480 lua http cleanup free: 054E3C68
2020/10/26 12:10:54 [debug] 16033\#0: *480 lua close socket connection
2020/10/26 12:10:54 [debug] 16033\#0: *480 free: 0507E1F0, unused: 0
2020/10/26 12:10:54 [debug] 16033\#0: *480 reusable connection: 0
2020/10/26 12:10:54 [debug] 16033\#0: *480 lua tcp socket waking up the current request
2020/10/26 12:10:54 [debug] 16033\#0: *480 lua tcp operation done, resuming lua thread
'
ssl.t TEST 7: read raw server addr via ssl.raw_server_addr() (IPv6) - response_body - response is expected (repeated req 1, req 0) @@ -1,11 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
-sent http request: 56 bytes.
-received: HTTP/1.1 201 Created
-received: Server: nginx
-received: Content-Type: text/plain
-received: Content-Length: 4
-received: Connection: close
-received:
-received: foo
-close: 1 nil
'
ssl.t TEST 7: read raw server addr via ssl.raw_server_addr() (IPv6) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:10:54 [error] 16033\#0: *487 lua entry thread aborted: runtime error: ssl_certificate_by_lua:2: loop or previous error loading module 'ngx.ssl'" (req 1) stack traceback:
coroutine 0:
[C]: in function 'require'
ssl_certificate_by_lua:2: in main chunk, context: ssl_certificate_by_lua*, client: ::1, server: [::1]:50598
2020/10/26 12:10:54 [debug] 16033\#0: *487 lua request cleanup: forcible=0
2020/10/26 12:10:54 [debug] 16033\#0: *487 http lua finalize fake request: 500, a:1, c:1
2020/10/26 12:10:54 [debug] 16033\#0: *487 http lua fake request count:1
2020/10/26 12:10:54 [debug] 16033\#0: *487 http lua close fake request
2020/10/26 12:10:54 [debug] 16033\#0: *487 http lua close fake http connection 0523CC1C
'
ssl.t TEST 7: read raw server addr via ssl.raw_server_addr() (IPv6) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:10:54 [error] 16033\#0: *484 SSL_do_handshake() failed (SSL: error:14094438:SSL routines:ssl3_read_bytes:tlsv1 alert internal error:SSL alert number 80), client: 127.0.0.1, server: localhost, request: \"GET /t HTTP/1.1\", host: \"localhost\"" (req 1) 2020/10/26 12:10:54 [debug] 16033\#0: *484 event timer del: 4: 11370699
2020/10/26 12:10:54 [debug] 16033\#0: *484 lua tcp socket handle connect error
2020/10/26 12:10:54 [debug] 16033\#0: *484 lua finalize socket
2020/10/26 12:10:54 [debug] 16033\#0: *484 lua http cleanup free: 0547D060
2020/10/26 12:10:54 [debug] 16033\#0: *484 lua close socket connection
2020/10/26 12:10:54 [debug] 16033\#0: *484 free: 05496D20, unused: 0
2020/10/26 12:10:54 [debug] 16033\#0: *484 reusable connection: 0
2020/10/26 12:10:54 [debug] 16033\#0: *484 lua tcp socket waking up the current request
2020/10/26 12:10:54 [debug] 16033\#0: *484 lua tcp operation done, resuming lua thread
'
ssl.t TEST 23: verify client with CA certificates - status code ok got: '502'
expected: '200'
ssl.t TEST 23: verify client with CA certificates - response_body - response is expected (repeated req 0, req 0) got: '<html>
<head><title>502 Bad Gateway</title></head>
<body>
<center><h1>502 Bad Gateway</h1></center>
<hr><center>nginx/1.15.8 (no pool)</center>
</body>
</html>
'
expected: 'SUCCESS
'
ssl.t TEST 23: verify client with CA certificates - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:10:57 [error] 16063\#0: *515 lua entry thread aborted: runtime error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
coroutine 0:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/ngx/ssl.lua:4: in main chunk
[C]: in function 'require'
ssl_certificate_by_lua:2: in main chunk, context: ssl_certificate_by_lua*, client: unix:, server: unix:/home/ec2-user/git/lua-resty-core/t/servroot/html/nginx.sock
2020/10/26 12:10:57 [debug] 16063\#0: *515 lua request cleanup: forcible=0
'
ssl.t TEST 23: verify client with CA certificates - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:10:57 [error] 16063\#0: *512 SSL_do_handshake() failed (SSL: error:14094438:SSL routines:ssl3_read_bytes:tlsv1 alert internal error:SSL alert number 80) while SSL handshaking to upstream, client: 127.0.0.1, server: localhost, request: \"GET /t HTTP/1.1\", upstream: \"https://unix:/home/ec2-user/git/lua-resty-core/t/servroot/html/nginx.sock:/t\", host: \"localhost\"" (req 0) 2020/10/26 12:10:57 [debug] 16063\#0: *512 http upstream ssl handshake: "/t?"
2020/10/26 12:10:57 [debug] 16063\#0: *512 http next upstream, 2
2020/10/26 12:10:57 [debug] 16063\#0: *512 free rr peer 1 4
2020/10/26 12:10:57 [debug] 16063\#0: *512 finalize http upstream request: 502
2020/10/26 12:10:57 [debug] 16063\#0: *512 finalize http proxy request
2020/10/26 12:10:57 [debug] 16063\#0: *512 close http upstream connection: 4
2020/10/26 12:10:57 [debug] 16063\#0: *512 free: 0524E198, unused: 0
2020/10/26 12:10:57 [debug] 16063\#0: *512 event timer del: 4: 11430235
2020/10/26 12:10:57 [debug] 16063\#0: *512 reusable connection: 0
'
ssl.t TEST 23: verify client with CA certificates - status code ok got: '502'
expected: '200'
ssl.t TEST 23: verify client with CA certificates - response_body - response is expected (repeated req 1, req 0) got: '<html>
<head><title>502 Bad Gateway</title></head>
<body>
<center><h1>502 Bad Gateway</h1></center>
<hr><center>nginx/1.15.8 (no pool)</center>
</body>
</html>
'
expected: 'SUCCESS
'
ssl.t TEST 23: verify client with CA certificates - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:10:57 [error] 16063\#0: *519 lua entry thread aborted: runtime error: ssl_certificate_by_lua:2: loop or previous error loading module 'ngx.ssl'" (req 1) stack traceback:
coroutine 0:
[C]: in function 'require'
ssl_certificate_by_lua:2: in main chunk, context: ssl_certificate_by_lua*, client: unix:, server: unix:/home/ec2-user/git/lua-resty-core/t/servroot/html/nginx.sock
2020/10/26 12:10:57 [debug] 16063\#0: *519 lua request cleanup: forcible=0
2020/10/26 12:10:57 [debug] 16063\#0: *519 http lua finalize fake request: 500, a:1, c:1
2020/10/26 12:10:57 [debug] 16063\#0: *519 http lua fake request count:1
2020/10/26 12:10:57 [debug] 16063\#0: *519 http lua close fake request
2020/10/26 12:10:57 [debug] 16063\#0: *519 http lua close fake http connection 0544BF34
'
ssl.t TEST 23: verify client with CA certificates - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:10:57 [error] 16063\#0: *516 SSL_do_handshake() failed (SSL: error:14094438:SSL routines:ssl3_read_bytes:tlsv1 alert internal error:SSL alert number 80) while SSL handshaking to upstream, client: 127.0.0.1, server: localhost, request: \"GET /t HTTP/1.1\", upstream: \"https://unix:/home/ec2-user/git/lua-resty-core/t/servroot/html/nginx.sock:/t\", host: \"localhost\"" (req 1) 2020/10/26 12:10:57 [debug] 16063\#0: *516 http upstream ssl handshake: "/t?"
2020/10/26 12:10:57 [debug] 16063\#0: *516 http next upstream, 2
2020/10/26 12:10:57 [debug] 16063\#0: *516 free rr peer 1 4
2020/10/26 12:10:57 [debug] 16063\#0: *516 finalize http upstream request: 502
2020/10/26 12:10:57 [debug] 16063\#0: *516 finalize http proxy request
2020/10/26 12:10:57 [debug] 16063\#0: *516 close http upstream connection: 4
2020/10/26 12:10:57 [debug] 16063\#0: *516 free: 056D1C78, unused: 0
2020/10/26 12:10:57 [debug] 16063\#0: *516 event timer del: 4: 11430851
2020/10/26 12:10:57 [debug] 16063\#0: *516 reusable connection: 0
'
ssl.t TEST 19: parse PEM cert and key to cdata (bad priv key) - pattern "[crit]" should not match any line in error.log but matches line "2020/10/26 12:11:00 [crit] 16093\#0: *546 SSL_do_handshake() failed (SSL: error:1417A179:SSL routines:tls_post_process_client_hello:cert cb error) while SSL handshaking, client: unix:, server: unix:/home/ec2-user/git/lua-resty-core/t/servroot/html/nginx.sock" (req 0) 2020/10/26 12:11:00 [debug] 16093\#0: *546 close http connection: 6
2020/10/26 12:11:00 [debug] 16093\#0: *546 event timer del: 6: 11433619
2020/10/26 12:11:00 [debug] 16093\#0: *546 reusable connection: 0
2020/10/26 12:11:00 [debug] 16093\#0: *546 free: 0557D660, unused: 0
2020/10/26 12:11:00 [debug] 16093\#0: *546 free: 054CAF78, unused: 0
2020/10/26 12:11:00 [debug] 16093\#0: *546 free: 054C3778, unused: 0
2020/10/26 12:11:00 [debug] 16093\#0: *546 free: 054C36E0, unused: 0
2020/10/26 12:11:00 [debug] 16093\#0: *546 free: 054C3668, unused: 0
2020/10/26 12:11:00 [debug] 16093\#0: *546 free: 054C35E0, unused: 0
'
ssl.t TEST 19: parse PEM cert and key to cdata (bad priv key) - pattern "[crit]" should not match any line in error.log but matches line "2020/10/26 12:11:01 [crit] 16093\#0: *550 SSL_do_handshake() failed (SSL: error:1417A179:SSL routines:tls_post_process_client_hello:cert cb error) while SSL handshaking, client: unix:, server: unix:/home/ec2-user/git/lua-resty-core/t/servroot/html/nginx.sock" (req 1) 2020/10/26 12:11:01 [debug] 16093\#0: *550 close http connection: 6
2020/10/26 12:11:01 [debug] 16093\#0: *550 event timer del: 6: 11434067
2020/10/26 12:11:01 [debug] 16093\#0: *550 reusable connection: 0
2020/10/26 12:11:01 [debug] 16093\#0: *550 free: 058D7490, unused: 0
2020/10/26 12:11:01 [debug] 16093\#0: *550 free: 058D36E8, unused: 0
2020/10/26 12:11:01 [debug] 16093\#0: *550 free: 058CB178, unused: 0
2020/10/26 12:11:01 [debug] 16093\#0: *550 free: 058CB0E0, unused: 0
2020/10/26 12:11:01 [debug] 16093\#0: *550 free: 058CB068, unused: 0
2020/10/26 12:11:01 [debug] 16093\#0: *550 free: 058CAFE0, unused: 0
'
ssl.t TEST 26: read server port via ssl.server_port() with ipv4 - response_body - response is expected (repeated req 0, req 0) @@ -1,11 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
-sent http request: 56 bytes.
-received: HTTP/1.1 201 Created
-received: Server: nginx
-received: Content-Type: text/plain
-received: Content-Length: 4
-received: Connection: close
-received:
-received: foo
-close: 1 nil
'
ssl.t TEST 26: read server port via ssl.server_port() with ipv4 - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:11:03 [error] 16123\#0: *579 lua entry thread aborted: runtime error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
coroutine 0:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/ngx/ssl.lua:4: in main chunk
[C]: in function 'require'
ssl_certificate_by_lua:2: in main chunk, context: ssl_certificate_by_lua*, client: 127.0.0.1, server: 127.0.0.1:12345
2020/10/26 12:11:03 [debug] 16123\#0: *579 lua request cleanup: forcible=0
'
ssl.t TEST 26: read server port via ssl.server_port() with ipv4 - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:11:04 [error] 16123\#0: *576 SSL_do_handshake() failed (SSL: error:14094438:SSL routines:ssl3_read_bytes:tlsv1 alert internal error:SSL alert number 80), client: 127.0.0.1, server: localhost, request: \"GET /t HTTP/1.1\", host: \"localhost\"" (req 0) 2020/10/26 12:11:04 [debug] 16123\#0: *576 event timer del: 4: 11379691
2020/10/26 12:11:04 [debug] 16123\#0: *576 lua tcp socket handle connect error
2020/10/26 12:11:04 [debug] 16123\#0: *576 lua finalize socket
2020/10/26 12:11:04 [debug] 16123\#0: *576 lua http cleanup free: 056C04B0
2020/10/26 12:11:04 [debug] 16123\#0: *576 lua close socket connection
2020/10/26 12:11:04 [debug] 16123\#0: *576 free: 056C9938, unused: 0
2020/10/26 12:11:04 [debug] 16123\#0: *576 reusable connection: 0
2020/10/26 12:11:04 [debug] 16123\#0: *576 lua tcp socket waking up the current request
2020/10/26 12:11:04 [debug] 16123\#0: *576 lua tcp operation done, resuming lua thread
'
ssl.t TEST 26: read server port via ssl.server_port() with ipv4 - response_body - response is expected (repeated req 1, req 0) @@ -1,11 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
-sent http request: 56 bytes.
-received: HTTP/1.1 201 Created
-received: Server: nginx
-received: Content-Type: text/plain
-received: Content-Length: 4
-received: Connection: close
-received:
-received: foo
-close: 1 nil
'
ssl.t TEST 26: read server port via ssl.server_port() with ipv4 - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:11:04 [error] 16123\#0: *583 lua entry thread aborted: runtime error: ssl_certificate_by_lua:2: loop or previous error loading module 'ngx.ssl'" (req 1) stack traceback:
coroutine 0:
[C]: in function 'require'
ssl_certificate_by_lua:2: in main chunk, context: ssl_certificate_by_lua*, client: 127.0.0.1, server: 127.0.0.1:12345
2020/10/26 12:11:04 [debug] 16123\#0: *583 lua request cleanup: forcible=0
2020/10/26 12:11:04 [debug] 16123\#0: *583 http lua finalize fake request: 500, a:1, c:1
2020/10/26 12:11:04 [debug] 16123\#0: *583 http lua fake request count:1
2020/10/26 12:11:04 [debug] 16123\#0: *583 http lua close fake request
2020/10/26 12:11:04 [debug] 16123\#0: *583 http lua close fake http connection 05874874
'
ssl.t TEST 26: read server port via ssl.server_port() with ipv4 - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:11:04 [error] 16123\#0: *580 SSL_do_handshake() failed (SSL: error:14094438:SSL routines:ssl3_read_bytes:tlsv1 alert internal error:SSL alert number 80), client: 127.0.0.1, server: localhost, request: \"GET /t HTTP/1.1\", host: \"localhost\"" (req 1) 2020/10/26 12:11:04 [debug] 16123\#0: *580 event timer del: 4: 11380291
2020/10/26 12:11:04 [debug] 16123\#0: *580 lua tcp socket handle connect error
2020/10/26 12:11:04 [debug] 16123\#0: *580 lua finalize socket
2020/10/26 12:11:04 [debug] 16123\#0: *580 lua http cleanup free: 05AEA0E8
2020/10/26 12:11:04 [debug] 16123\#0: *580 lua close socket connection
2020/10/26 12:11:04 [debug] 16123\#0: *580 free: 05AEAB50, unused: 0
2020/10/26 12:11:04 [debug] 16123\#0: *580 reusable connection: 0
2020/10/26 12:11:04 [debug] 16123\#0: *580 lua tcp socket waking up the current request
2020/10/26 12:11:04 [debug] 16123\#0: *580 lua tcp operation done, resuming lua thread
'
ssl.t TEST 4: read SNI name via ssl.server_name() when no SNI name specified - response_body - response is expected (repeated req 0, req 0) @@ -1,11 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
-sent http request: 56 bytes.
-received: HTTP/1.1 201 Created
-received: Server: nginx
-received: Content-Type: text/plain
-received: Content-Length: 4
-received: Connection: close
-received:
-received: foo
-close: 1 nil
'
ssl.t TEST 4: read SNI name via ssl.server_name() when no SNI name specified - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:11:07 [error] 16158\#0: *611 lua entry thread aborted: runtime error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
coroutine 0:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/ngx/ssl.lua:4: in main chunk
[C]: in function 'require'
ssl_certificate_by_lua:2: in main chunk, context: ssl_certificate_by_lua*, client: unix:, server: unix:/home/ec2-user/git/lua-resty-core/t/servroot/html/nginx.sock
2020/10/26 12:11:07 [debug] 16158\#0: *611 lua request cleanup: forcible=0
'
ssl.t TEST 4: read SNI name via ssl.server_name() when no SNI name specified - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:11:07 [error] 16158\#0: *608 SSL_do_handshake() failed (SSL: error:14094438:SSL routines:ssl3_read_bytes:tlsv1 alert internal error:SSL alert number 80), client: 127.0.0.1, server: localhost, request: \"GET /t HTTP/1.1\", host: \"localhost\"" (req 0) 2020/10/26 12:11:07 [debug] 16158\#0: *608 event timer del: 4: 11382839
2020/10/26 12:11:07 [debug] 16158\#0: *608 lua tcp socket handle connect error
2020/10/26 12:11:07 [debug] 16158\#0: *608 lua finalize socket
2020/10/26 12:11:07 [debug] 16158\#0: *608 lua http cleanup free: 058BCF10
2020/10/26 12:11:07 [debug] 16158\#0: *608 lua close socket connection
2020/10/26 12:11:07 [debug] 16158\#0: *608 free: 058C0FA8, unused: 0
2020/10/26 12:11:07 [debug] 16158\#0: *608 reusable connection: 0
2020/10/26 12:11:07 [debug] 16158\#0: *608 lua tcp socket waking up the current request
2020/10/26 12:11:07 [debug] 16158\#0: *608 lua tcp operation done, resuming lua thread
'
ssl.t TEST 4: read SNI name via ssl.server_name() when no SNI name specified - response_body - response is expected (repeated req 1, req 0) @@ -1,11 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
-sent http request: 56 bytes.
-received: HTTP/1.1 201 Created
-received: Server: nginx
-received: Content-Type: text/plain
-received: Content-Length: 4
-received: Connection: close
-received:
-received: foo
-close: 1 nil
'
ssl.t TEST 4: read SNI name via ssl.server_name() when no SNI name specified - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:11:07 [error] 16158\#0: *615 lua entry thread aborted: runtime error: ssl_certificate_by_lua:2: loop or previous error loading module 'ngx.ssl'" (req 1) stack traceback:
coroutine 0:
[C]: in function 'require'
ssl_certificate_by_lua:2: in main chunk, context: ssl_certificate_by_lua*, client: unix:, server: unix:/home/ec2-user/git/lua-resty-core/t/servroot/html/nginx.sock
2020/10/26 12:11:07 [debug] 16158\#0: *615 lua request cleanup: forcible=0
2020/10/26 12:11:07 [debug] 16158\#0: *615 http lua finalize fake request: 500, a:1, c:1
2020/10/26 12:11:07 [debug] 16158\#0: *615 http lua fake request count:1
2020/10/26 12:11:07 [debug] 16158\#0: *615 http lua close fake request
2020/10/26 12:11:07 [debug] 16158\#0: *615 http lua close fake http connection 0589157C
'
ssl.t TEST 4: read SNI name via ssl.server_name() when no SNI name specified - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:11:07 [error] 16158\#0: *612 SSL_do_handshake() failed (SSL: error:14094438:SSL routines:ssl3_read_bytes:tlsv1 alert internal error:SSL alert number 80), client: 127.0.0.1, server: localhost, request: \"GET /t HTTP/1.1\", host: \"localhost\"" (req 1) 2020/10/26 12:11:07 [debug] 16158\#0: *612 event timer del: 4: 11383495
2020/10/26 12:11:07 [debug] 16158\#0: *612 lua tcp socket handle connect error
2020/10/26 12:11:07 [debug] 16158\#0: *612 lua finalize socket
2020/10/26 12:11:07 [debug] 16158\#0: *612 lua http cleanup free: 05CC0F98
2020/10/26 12:11:07 [debug] 16158\#0: *612 lua close socket connection
2020/10/26 12:11:07 [debug] 16158\#0: *612 free: 05CD73B8, unused: 0
2020/10/26 12:11:07 [debug] 16158\#0: *612 reusable connection: 0
2020/10/26 12:11:07 [debug] 16158\#0: *612 lua tcp socket waking up the current request
2020/10/26 12:11:07 [debug] 16158\#0: *612 lua tcp operation done, resuming lua thread
'
ssl.t TEST 20: read client addr via ssl.raw_client_addr() - response_body - response is expected (repeated req 0, req 0) @@ -1,11 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
-sent http request: 56 bytes.
-received: HTTP/1.1 201 Created
-received: Server: nginx
-received: Content-Type: text/plain
-received: Content-Length: 4
-received: Connection: close
-received:
-received: foo
-close: 1 nil
'
ssl.t TEST 20: read client addr via ssl.raw_client_addr() - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:11:10 [error] 16188\#0: *643 lua entry thread aborted: runtime error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
coroutine 0:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/ngx/ssl.lua:4: in main chunk
[C]: in function 'require'
ssl_certificate_by_lua:2: in main chunk, context: ssl_certificate_by_lua*, client: 127.0.0.1, server: 127.0.0.1:12963
2020/10/26 12:11:10 [debug] 16188\#0: *643 lua request cleanup: forcible=0
'
ssl.t TEST 20: read client addr via ssl.raw_client_addr() - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:11:10 [error] 16188\#0: *640 SSL_do_handshake() failed (SSL: error:14094438:SSL routines:ssl3_read_bytes:tlsv1 alert internal error:SSL alert number 80), client: 127.0.0.1, server: localhost, request: \"GET /t HTTP/1.1\", host: \"localhost\"" (req 0) 2020/10/26 12:11:10 [debug] 16188\#0: *640 event timer del: 4: 11386131
2020/10/26 12:11:10 [debug] 16188\#0: *640 lua tcp socket handle connect error
2020/10/26 12:11:10 [debug] 16188\#0: *640 lua finalize socket
2020/10/26 12:11:10 [debug] 16188\#0: *640 lua http cleanup free: 05A8CB58
2020/10/26 12:11:10 [debug] 16188\#0: *640 lua close socket connection
2020/10/26 12:11:10 [debug] 16188\#0: *640 free: 05B0DF90, unused: 0
2020/10/26 12:11:10 [debug] 16188\#0: *640 reusable connection: 0
2020/10/26 12:11:10 [debug] 16188\#0: *640 lua tcp socket waking up the current request
2020/10/26 12:11:10 [debug] 16188\#0: *640 lua tcp operation done, resuming lua thread
'
ssl.t TEST 20: read client addr via ssl.raw_client_addr() - response_body - response is expected (repeated req 1, req 0) @@ -1,11 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
-sent http request: 56 bytes.
-received: HTTP/1.1 201 Created
-received: Server: nginx
-received: Content-Type: text/plain
-received: Content-Length: 4
-received: Connection: close
-received:
-received: foo
-close: 1 nil
'
ssl.t TEST 20: read client addr via ssl.raw_client_addr() - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:11:10 [error] 16188\#0: *647 lua entry thread aborted: runtime error: ssl_certificate_by_lua:2: loop or previous error loading module 'ngx.ssl'" (req 1) stack traceback:
coroutine 0:
[C]: in function 'require'
ssl_certificate_by_lua:2: in main chunk, context: ssl_certificate_by_lua*, client: 127.0.0.1, server: 127.0.0.1:12963
2020/10/26 12:11:10 [debug] 16188\#0: *647 lua request cleanup: forcible=0
2020/10/26 12:11:10 [debug] 16188\#0: *647 http lua finalize fake request: 500, a:1, c:1
2020/10/26 12:11:10 [debug] 16188\#0: *647 http lua fake request count:1
2020/10/26 12:11:10 [debug] 16188\#0: *647 http lua close fake request
2020/10/26 12:11:10 [debug] 16188\#0: *647 http lua close fake http connection 05C91B14
'
ssl.t TEST 20: read client addr via ssl.raw_client_addr() - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:11:10 [error] 16188\#0: *644 SSL_do_handshake() failed (SSL: error:14094438:SSL routines:ssl3_read_bytes:tlsv1 alert internal error:SSL alert number 80), client: 127.0.0.1, server: localhost, request: \"GET /t HTTP/1.1\", host: \"localhost\"" (req 1) 2020/10/26 12:11:10 [debug] 16188\#0: *644 event timer del: 4: 11386723
2020/10/26 12:11:10 [debug] 16188\#0: *644 lua tcp socket handle connect error
2020/10/26 12:11:10 [debug] 16188\#0: *644 lua finalize socket
2020/10/26 12:11:10 [debug] 16188\#0: *644 lua http cleanup free: 05ED6EE8
2020/10/26 12:11:10 [debug] 16188\#0: *644 lua close socket connection
2020/10/26 12:11:10 [debug] 16188\#0: *644 free: 05ED7898, unused: 0
2020/10/26 12:11:10 [debug] 16188\#0: *644 reusable connection: 0
2020/10/26 12:11:10 [debug] 16188\#0: *644 lua tcp socket waking up the current request
2020/10/26 12:11:10 [debug] 16188\#0: *644 lua tcp operation done, resuming lua thread
'
ssl.t TEST 12: tls version - TLSv1.1 - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +1,2 @@
connected: 1
-ssl handshake: boolean
+failed to do SSL handshake: handshake failed
'
ssl.t TEST 12: tls version - TLSv1.1 - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:11:13 [error] 16218\#0: *675 lua entry thread aborted: runtime error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
coroutine 0:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/ngx/ssl.lua:4: in main chunk
[C]: in function 'require'
ssl_certificate_by_lua:2: in main chunk, context: ssl_certificate_by_lua*, client: 127.0.0.1, server: 127.0.0.2:49595
2020/10/26 12:11:13 [debug] 16218\#0: *675 lua request cleanup: forcible=0
'
ssl.t TEST 12: tls version - TLSv1.1 - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:11:13 [error] 16218\#0: *672 SSL_do_handshake() failed (SSL: error:14094438:SSL routines:ssl3_read_bytes:tlsv1 alert internal error:SSL alert number 80), client: 127.0.0.1, server: localhost, request: \"GET /t HTTP/1.1\", host: \"localhost\"" (req 0) 2020/10/26 12:11:13 [debug] 16218\#0: *672 event timer del: 4: 11389355
2020/10/26 12:11:13 [debug] 16218\#0: *672 lua tcp socket handle connect error
2020/10/26 12:11:13 [debug] 16218\#0: *672 lua finalize socket
2020/10/26 12:11:13 [debug] 16218\#0: *672 lua http cleanup free: 04B2D6A8
2020/10/26 12:11:13 [debug] 16218\#0: *672 lua close socket connection
2020/10/26 12:11:13 [debug] 16218\#0: *672 free: 04B46CE8, unused: 0
2020/10/26 12:11:13 [debug] 16218\#0: *672 reusable connection: 0
2020/10/26 12:11:13 [debug] 16218\#0: *672 lua tcp socket waking up the current request
2020/10/26 12:11:13 [debug] 16218\#0: *672 lua tcp operation done, resuming lua thread
'
ssl.t TEST 12: tls version - TLSv1.1 - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +1,2 @@
connected: 1
-ssl handshake: boolean
+failed to do SSL handshake: handshake failed
'
ssl.t TEST 12: tls version - TLSv1.1 - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:11:13 [error] 16218\#0: *679 lua entry thread aborted: runtime error: ssl_certificate_by_lua:2: loop or previous error loading module 'ngx.ssl'" (req 1) stack traceback:
coroutine 0:
[C]: in function 'require'
ssl_certificate_by_lua:2: in main chunk, context: ssl_certificate_by_lua*, client: 127.0.0.1, server: 127.0.0.2:49595
2020/10/26 12:11:13 [debug] 16218\#0: *679 lua request cleanup: forcible=0
2020/10/26 12:11:13 [debug] 16218\#0: *679 http lua finalize fake request: 500, a:1, c:1
2020/10/26 12:11:13 [debug] 16218\#0: *679 http lua fake request count:1
2020/10/26 12:11:13 [debug] 16218\#0: *679 http lua close fake request
2020/10/26 12:11:13 [debug] 16218\#0: *679 http lua close fake http connection 05A7CA0C
'
ssl.t TEST 12: tls version - TLSv1.1 - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:11:13 [error] 16218\#0: *676 SSL_do_handshake() failed (SSL: error:14094438:SSL routines:ssl3_read_bytes:tlsv1 alert internal error:SSL alert number 80), client: 127.0.0.1, server: localhost, request: \"GET /t HTTP/1.1\", host: \"localhost\"" (req 1) 2020/10/26 12:11:13 [debug] 16218\#0: *676 event timer del: 4: 11389939
2020/10/26 12:11:13 [debug] 16218\#0: *676 lua tcp socket handle connect error
2020/10/26 12:11:13 [debug] 16218\#0: *676 lua finalize socket
2020/10/26 12:11:13 [debug] 16218\#0: *676 lua http cleanup free: 04B08F58
2020/10/26 12:11:13 [debug] 16218\#0: *676 lua close socket connection
2020/10/26 12:11:13 [debug] 16218\#0: *676 free: 04B0FD50, unused: 0
2020/10/26 12:11:13 [debug] 16218\#0: *676 reusable connection: 0
2020/10/26 12:11:13 [debug] 16218\#0: *676 lua tcp socket waking up the current request
2020/10/26 12:11:13 [debug] 16218\#0: *676 lua tcp operation done, resuming lua thread
'
ssl.t TEST 15: read PEM key chain but set DER key chain - response_body - response is expected (repeated req 0, req 0) @@ -1,11 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
-sent http request: 56 bytes.
-received: HTTP/1.1 201 Created
-received: Server: nginx
-received: Content-Type: text/plain
-received: Content-Length: 4
-received: Connection: close
-received:
-received: foo
-close: 1 nil
'
ssl.t TEST 15: read PEM key chain but set DER key chain - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:11:16 [error] 16248\#0: *707 lua entry thread aborted: runtime error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
coroutine 0:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/ngx/ssl.lua:4: in main chunk
[C]: in function 'require'
ssl_certificate_by_lua:2: in main chunk, context: ssl_certificate_by_lua*, client: unix:, server: unix:/home/ec2-user/git/lua-resty-core/t/servroot/html/nginx.sock
2020/10/26 12:11:16 [debug] 16248\#0: *707 lua request cleanup: forcible=0
'
ssl.t TEST 15: read PEM key chain but set DER key chain - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:11:16 [error] 16248\#0: *704 SSL_do_handshake() failed (SSL: error:14094438:SSL routines:ssl3_read_bytes:tlsv1 alert internal error:SSL alert number 80), client: 127.0.0.1, server: localhost, request: \"GET /t HTTP/1.1\", host: \"localhost\"" (req 0) 2020/10/26 12:11:16 [debug] 16248\#0: *704 event timer del: 4: 11392488
2020/10/26 12:11:16 [debug] 16248\#0: *704 lua tcp socket handle connect error
2020/10/26 12:11:16 [debug] 16248\#0: *704 lua finalize socket
2020/10/26 12:11:16 [debug] 16248\#0: *704 lua http cleanup free: 04A89518
2020/10/26 12:11:16 [debug] 16248\#0: *704 lua close socket connection
2020/10/26 12:11:16 [debug] 16248\#0: *704 free: 04A936C8, unused: 0
2020/10/26 12:11:16 [debug] 16248\#0: *704 reusable connection: 0
2020/10/26 12:11:16 [debug] 16248\#0: *704 lua tcp socket waking up the current request
2020/10/26 12:11:16 [debug] 16248\#0: *704 lua tcp operation done, resuming lua thread
'
ssl.t TEST 15: read PEM key chain but set DER key chain - response_body - response is expected (repeated req 1, req 0) @@ -1,11 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
-sent http request: 56 bytes.
-received: HTTP/1.1 201 Created
-received: Server: nginx
-received: Content-Type: text/plain
-received: Content-Length: 4
-received: Connection: close
-received:
-received: foo
-close: 1 nil
'
ssl.t TEST 15: read PEM key chain but set DER key chain - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:11:17 [error] 16248\#0: *711 lua entry thread aborted: runtime error: ssl_certificate_by_lua:2: loop or previous error loading module 'ngx.ssl'" (req 1) stack traceback:
coroutine 0:
[C]: in function 'require'
ssl_certificate_by_lua:2: in main chunk, context: ssl_certificate_by_lua*, client: unix:, server: unix:/home/ec2-user/git/lua-resty-core/t/servroot/html/nginx.sock
2020/10/26 12:11:17 [debug] 16248\#0: *711 lua request cleanup: forcible=0
2020/10/26 12:11:17 [debug] 16248\#0: *711 http lua finalize fake request: 500, a:1, c:1
2020/10/26 12:11:17 [debug] 16248\#0: *711 http lua fake request count:1
2020/10/26 12:11:17 [debug] 16248\#0: *711 http lua close fake request
2020/10/26 12:11:17 [debug] 16248\#0: *711 http lua close fake http connection 05C88B4C
'
ssl.t TEST 15: read PEM key chain but set DER key chain - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:11:17 [error] 16248\#0: *708 SSL_do_handshake() failed (SSL: error:14094438:SSL routines:ssl3_read_bytes:tlsv1 alert internal error:SSL alert number 80), client: 127.0.0.1, server: localhost, request: \"GET /t HTTP/1.1\", host: \"localhost\"" (req 1) 2020/10/26 12:11:17 [debug] 16248\#0: *708 event timer del: 4: 11393152
2020/10/26 12:11:17 [debug] 16248\#0: *708 lua tcp socket handle connect error
2020/10/26 12:11:17 [debug] 16248\#0: *708 lua finalize socket
2020/10/26 12:11:17 [debug] 16248\#0: *708 lua http cleanup free: 05F273E8
2020/10/26 12:11:17 [debug] 16248\#0: *708 lua close socket connection
2020/10/26 12:11:17 [debug] 16248\#0: *708 free: 04AC9F88, unused: 0
2020/10/26 12:11:17 [debug] 16248\#0: *708 reusable connection: 0
2020/10/26 12:11:17 [debug] 16248\#0: *708 lua tcp socket waking up the current request
2020/10/26 12:11:17 [debug] 16248\#0: *708 lua tcp operation done, resuming lua thread
'
ssl.t TEST 14: ngx.semaphore in ssl_certificate_by_lua* - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +1,2 @@
connected: 1
-ssl handshake: boolean
+failed to do SSL handshake: handshake failed
'
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* - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:11:19 [error] 16278\#0: *739 lua entry thread aborted: runtime error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
coroutine 0:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/ngx/semaphore.lua:7: in main chunk
[C]: in function 'require'
ssl_certificate_by_lua:2: in main chunk, context: ssl_certificate_by_lua*, client: 127.0.0.1, server: 127.0.0.2:61714
2020/10/26 12:11:19 [debug] 16278\#0: *739 lua request cleanup: forcible=0
'
ssl.t TEST 14: ngx.semaphore in ssl_certificate_by_lua* - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:11:20 [error] 16278\#0: *736 SSL_do_handshake() failed (SSL: error:14094438:SSL routines:ssl3_read_bytes:tlsv1 alert internal error:SSL alert number 80), client: 127.0.0.1, server: localhost, request: \"GET /t HTTP/1.1\", host: \"localhost\"" (req 0) 2020/10/26 12:11:20 [debug] 16278\#0: *736 event timer del: 4: 11395792
2020/10/26 12:11:20 [debug] 16278\#0: *736 lua tcp socket handle connect error
2020/10/26 12:11:20 [debug] 16278\#0: *736 lua finalize socket
2020/10/26 12:11:20 [debug] 16278\#0: *736 lua http cleanup free: 04B4E448
2020/10/26 12:11:20 [debug] 16278\#0: *736 lua close socket connection
2020/10/26 12:11:20 [debug] 16278\#0: *736 free: 049DC398, unused: 0
2020/10/26 12:11:20 [debug] 16278\#0: *736 reusable connection: 0
2020/10/26 12:11:20 [debug] 16278\#0: *736 lua tcp socket waking up the current request
2020/10/26 12:11:20 [debug] 16278\#0: *736 lua tcp operation done, resuming lua thread
'
ssl.t TEST 14: ngx.semaphore in ssl_certificate_by_lua* - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +1,2 @@
connected: 1
-ssl handshake: boolean
+failed to do SSL handshake: handshake failed
'
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 14: ngx.semaphore in ssl_certificate_by_lua* - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:11:20 [error] 16278\#0: *743 lua entry thread aborted: runtime error: ssl_certificate_by_lua:2: loop or previous error loading module 'ngx.semaphore'" (req 1) stack traceback:
coroutine 0:
[C]: in function 'require'
ssl_certificate_by_lua:2: in main chunk, context: ssl_certificate_by_lua*, client: 127.0.0.1, server: 127.0.0.2:61714
2020/10/26 12:11:20 [debug] 16278\#0: *743 lua request cleanup: forcible=0
2020/10/26 12:11:20 [debug] 16278\#0: *743 http lua finalize fake request: 500, a:1, c:1
2020/10/26 12:11:20 [debug] 16278\#0: *743 http lua fake request count:1
2020/10/26 12:11:20 [debug] 16278\#0: *743 http lua close fake request
2020/10/26 12:11:20 [debug] 16278\#0: *743 http lua close fake http connection 049D1B84
'
ssl.t TEST 14: ngx.semaphore in ssl_certificate_by_lua* - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:11:20 [error] 16278\#0: *740 SSL_do_handshake() failed (SSL: error:14094438:SSL routines:ssl3_read_bytes:tlsv1 alert internal error:SSL alert number 80), client: 127.0.0.1, server: localhost, request: \"GET /t HTTP/1.1\", host: \"localhost\"" (req 1) 2020/10/26 12:11:20 [debug] 16278\#0: *740 event timer del: 4: 11396388
2020/10/26 12:11:20 [debug] 16278\#0: *740 lua tcp socket handle connect error
2020/10/26 12:11:20 [debug] 16278\#0: *740 lua finalize socket
2020/10/26 12:11:20 [debug] 16278\#0: *740 lua http cleanup free: 04B44138
2020/10/26 12:11:20 [debug] 16278\#0: *740 lua close socket connection
2020/10/26 12:11:20 [debug] 16278\#0: *740 free: 04C6B548, unused: 0
2020/10/26 12:11:20 [debug] 16278\#0: *740 reusable connection: 0
2020/10/26 12:11:20 [debug] 16278\#0: *740 lua tcp socket waking up the current request
2020/10/26 12:11:20 [debug] 16278\#0: *740 lua tcp operation done, resuming lua thread
'
ssl.t TEST 18: parse PEM cert and key to cdata (bad cert 2 in the chain) - pattern "[crit]" should not match any line in error.log but matches line "2020/10/26 12:11:23 [crit] 16308\#0: *770 SSL_do_handshake() failed (SSL: error:1417A179:SSL routines:tls_post_process_client_hello:cert cb error) while SSL handshaking, client: unix:, server: unix:/home/ec2-user/git/lua-resty-core/t/servroot/html/nginx.sock" (req 0) 2020/10/26 12:11:23 [debug] 16308\#0: *770 close http connection: 7
2020/10/26 12:11:23 [debug] 16308\#0: *770 event timer del: 7: 11456188
2020/10/26 12:11:23 [debug] 16308\#0: *770 reusable connection: 0
2020/10/26 12:11:23 [debug] 16308\#0: *770 free: 04C57DA8, unused: 0
2020/10/26 12:11:23 [debug] 16308\#0: *770 free: 04C45AA8, unused: 0
2020/10/26 12:11:23 [debug] 16308\#0: *770 free: 04AE6748, unused: 0
2020/10/26 12:11:23 [debug] 16308\#0: *770 free: 049E3298, unused: 0
2020/10/26 12:11:23 [debug] 16308\#0: *770 free: 049E3260, unused: 0
2020/10/26 12:11:23 [debug] 16308\#0: *770 free: 049E31D8, unused: 0
'
ssl.t TEST 18: parse PEM cert and key to cdata (bad cert 2 in the chain) - pattern "[crit]" should not match any line in error.log but matches line "2020/10/26 12:11:23 [crit] 16308\#0: *774 SSL_do_handshake() failed (SSL: error:1417A179:SSL routines:tls_post_process_client_hello:cert cb error) while SSL handshaking, client: unix:, server: unix:/home/ec2-user/git/lua-resty-core/t/servroot/html/nginx.sock" (req 1) 2020/10/26 12:11:23 [debug] 16308\#0: *774 close http connection: 7
2020/10/26 12:11:23 [debug] 16308\#0: *774 event timer del: 7: 11456636
2020/10/26 12:11:23 [debug] 16308\#0: *774 reusable connection: 0
2020/10/26 12:11:23 [debug] 16308\#0: *774 free: 04AF2050, unused: 0
2020/10/26 12:11:23 [debug] 16308\#0: *774 free: 04C12CF8, unused: 0
2020/10/26 12:11:23 [debug] 16308\#0: *774 free: 04AF1C30, unused: 0
2020/10/26 12:11:23 [debug] 16308\#0: *774 free: 04AE65C0, unused: 0
2020/10/26 12:11:23 [debug] 16308\#0: *774 free: 04AE6548, unused: 0
2020/10/26 12:11:23 [debug] 16308\#0: *774 free: 04AE64C0, unused: 0
'
status.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
status.t TEST 1: get ngx.status - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
status.t TEST 1: get ngx.status - status code ok got: ''
expected: '201'
status.t TEST 1: get ngx.status - pattern "sum: 6030," should match a line in error.log (req 0)
status.t TEST 1: get ngx.status - pattern "(?^:\[TRACE\s+\d+\s+header_filter_by_lua:3 loop\])" should match a line in error.log (req 0)
status.t TEST 1: get ngx.status - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:11:29 [error] 16366\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
status.t TEST 1: get ngx.status - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
status.t TEST 1: get ngx.status - status code ok got: ''
expected: '201'
status.t TEST 1: get ngx.status - pattern "sum: 6030," should match a line in error.log (req 1)
status.t TEST 1: get ngx.status - pattern "(?^:\[TRACE\s+\d+\s+header_filter_by_lua:3 loop\])" should match a line in error.log (req 1)
status.t TEST 1: get ngx.status - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:11:29 [error] 16366\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
status.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
status.t TEST 2: set ngx.status - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
status.t TEST 2: set ngx.status - status code ok got: ''
expected: '200'
status.t TEST 2: set ngx.status - pattern "status: 200," should match a line in error.log (req 0)
status.t TEST 2: set ngx.status - pattern "(?^:\[TRACE\s+\d+\s+header_filter_by_lua:2 loop\])" should match a line in error.log (req 0)
status.t TEST 2: set ngx.status - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:11:33 [error] 16371\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
status.t TEST 2: set ngx.status - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
status.t TEST 2: set ngx.status - status code ok got: ''
expected: '200'
status.t TEST 2: set ngx.status - pattern "status: 200," should match a line in error.log (req 1)
status.t TEST 2: set ngx.status - pattern "(?^:\[TRACE\s+\d+\s+header_filter_by_lua:2 loop\])" should match a line in error.log (req 1)
status.t TEST 2: set ngx.status - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:11:33 [error] 16371\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/balancer-timeout.t TEST 4: set_timeouts (nil read timeout) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'fake origin
'
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) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'fake origin
'
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 6: set connect timeout to -1 - pattern "(?^:\[error\] .*? balancer_by_lua:3: bad connect timeout)" should match a line in error.log (req 0)
stream/balancer-timeout.t TEST 6: set connect timeout to -1 - pattern "(?^:\[error\] .*? balancer_by_lua:3: bad connect timeout)" should match a line in error.log (req 1)
stream/balancer-timeout.t TEST 10 set read timeout to -1 - pattern "(?^:\[error\] .*? balancer_by_lua:3: bad read timeout)" should match a line in error.log (req 0)
stream/balancer-timeout.t TEST 10 set read timeout to -1 - pattern "(?^:\[error\] .*? balancer_by_lua:3: bad read timeout)" should match a line in error.log (req 1)
stream/balancer-timeout.t TEST 7: set send timeout to 0 - pattern "(?^:\[error\] .*? balancer_by_lua:3: bad send timeout)" should match a line in error.log (req 0)
stream/balancer-timeout.t TEST 7: set send timeout to 0 - pattern "(?^:\[error\] .*? balancer_by_lua:3: bad send timeout)" should match a line in error.log (req 1)
stream/balancer-timeout.t TEST 12: set_timeouts called with a non-numerical parameter - pattern "(?^:\[error\] .*? bad connect timeout)" should match a line in error.log (req 0)
stream/balancer-timeout.t TEST 12: set_timeouts called with a non-numerical parameter - pattern "(?^:\[error\] .*? bad connect timeout)" should match a line in error.log (req 1)
stream/balancer-timeout.t TEST 11: set_timeouts called in a wrong context - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'failed to call: API disabled in the current context
'
stream/balancer-timeout.t TEST 11: set_timeouts called in a wrong context - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:13:03 [error] 16495\#0: *138 lua entry thread aborted: runtime error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 0) stack traceback:
coroutine 0:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/ngx/balancer.lua:4: in main chunk
[C]: in function 'require'
content_by_lua(nginx.conf:30):2: in main chunk, client: 127.0.0.1, server: 0.0.0.0:1985
2020/10/26 12:13:03 [debug] 16495\#0: *138 lua request cleanup: forcible=0
'
stream/balancer-timeout.t TEST 11: set_timeouts called in a wrong context - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'failed to call: API disabled in the current context
'
stream/balancer-timeout.t TEST 11: set_timeouts called in a wrong context - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:13:05 [error] 16495\#0: *141 lua entry thread aborted: runtime error: content_by_lua(nginx.conf:30):2: loop or previous error loading module 'ngx.balancer'" (req 1) stack traceback:
coroutine 0:
[C]: in function 'require'
content_by_lua(nginx.conf:30):2: in main chunk, client: 127.0.0.1, server: 0.0.0.0:1985
2020/10/26 12:13:05 [debug] 16495\#0: *141 lua request cleanup: forcible=0
2020/10/26 12:13:05 [debug] 16495\#0: *141 finalize stream request: 500
2020/10/26 12:13:05 [debug] 16495\#0: *141 finalize stream session: 500
2020/10/26 12:13:05 [debug] 16495\#0: *141 stream log handler
2020/10/26 12:13:05 [debug] 16495\#0: *141 close stream connection: 6
'
stream/balancer-timeout.t TEST 1: set_timeouts - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'fake origin
'
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 - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'fake origin
'
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 2: set_timeouts (nil connect timeout) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'fake origin
'
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) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'fake origin
'
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 3: set_timeouts (nil send timeout) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'fake origin
'
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) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'fake origin
'
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 5: set connect timeout to 0 - pattern "(?^:\[error\] .*? balancer_by_lua:3: bad connect timeout)" should match a line in error.log (req 0)
stream/balancer-timeout.t TEST 5: set connect timeout to 0 - pattern "(?^:\[error\] .*? balancer_by_lua:3: bad connect timeout)" should match a line in error.log (req 1)
stream/balancer-timeout.t TEST 8: set send timeout to -1 - pattern "(?^:\[error\] .*? balancer_by_lua:3: bad send timeout)" should match a line in error.log (req 0)
stream/balancer-timeout.t TEST 8: set send timeout to -1 - pattern "(?^:\[error\] .*? balancer_by_lua:3: bad send timeout)" should match a line in error.log (req 1)
stream/balancer-timeout.t TEST 9: set read timeout to 0 - pattern "(?^:\[error\] .*? balancer_by_lua:3: bad read timeout)" should match a line in error.log (req 0)
stream/balancer-timeout.t TEST 9: set read timeout to 0 - pattern "(?^:\[error\] .*? balancer_by_lua:3: bad read timeout)" should match a line in error.log (req 1)
stream/balancer.t TEST 5: get last peer failure status (connect failed) - grep_error_log_out (req 0) @@ -1,3 +0,0 @@
-last peer failure: nil nil
-last peer failure: failed 0
-last peer failure: failed 0
'
stream/balancer.t TEST 5: get last peer failure status (connect failed) - grep_error_log_out (req 1) @@ -1,3 +0,0 @@
-last peer failure: nil nil
-last peer failure: failed 0
-last peer failure: failed 0
'
stream/balancer.t TEST 6: set current peer (port embedded in addr) - pattern "(?^:connect\(\) failed .*?, upstream: "127\.0\.0\.3:12345")" should match a line in error.log (req 0)
stream/balancer.t TEST 6: set current peer (port embedded in addr) - pattern "(?^:connect\(\) failed .*?, upstream: "127\.0\.0\.3:12345")" should match a line in error.log (req 1)
stream/balancer.t TEST 1: set current peer (separate addr and port) - pattern "(?^:connect\(\) failed .*?, upstream: "127\.0\.0\.3:12345")" should match a line in error.log (req 0)
stream/balancer.t TEST 1: set current peer (separate addr and port) - pattern "(?^:connect\(\) failed .*?, upstream: "127\.0\.0\.3:12345")" should match a line in error.log (req 1)
stream/balancer.t TEST 3: set current peer & next upstream (no retries) - grep_error_log_out (req 0) ''
doesn't match '(?^:^(?:connect\(\) failed .*?, upstream: "127.0.0.3:12345"\n){1}$)'
stream/balancer.t TEST 3: set current peer & next upstream (no retries) - grep_error_log_out (req 1) ''
doesn't match '(?^:^(?:connect\(\) failed .*?, upstream: "127.0.0.3:12345"\n){1}$)'
stream/balancer.t TEST 4: set current peer & next upstream (3 tries exceeding the limit) - grep_error_log_out (req 0) ''
doesn't match '(?^:^(?:connect\(\) failed .*?, upstream: "127.0.0.3:12345"\n){2}$)'
stream/balancer.t TEST 4: set current peer & next upstream (3 tries exceeding the limit) - pattern "set more tries: reduced tries due to limit" should match a line in error.log (req 0)
stream/balancer.t TEST 4: set current peer & next upstream (3 tries exceeding the limit) - grep_error_log_out (req 1) ''
doesn't match '(?^:^(?:connect\(\) failed .*?, upstream: "127.0.0.3:12345"\n){2}$)'
stream/balancer.t TEST 4: set current peer & next upstream (3 tries exceeding the limit) - pattern "set more tries: reduced tries due to limit" should match a line in error.log (req 1)
stream/balancer.t TEST 2: set current peer & next upstream (3 tries) - grep_error_log_out (req 0) ''
doesn't match '(?^:^(?:connect\(\) failed .*?, upstream: "127.0.0.3:12345"\n){3}$)'
stream/balancer.t TEST 2: set current peer & next upstream (3 tries) - grep_error_log_out (req 1) ''
doesn't match '(?^:^(?:connect\(\) failed .*?, upstream: "127.0.0.3:12345"\n){3}$)'
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 - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +1 @@
-received: 42
+received: nil
-received: 1
'
stream/ctx.t TEST 1: ngx.ctx in ssl_certificate_by_lua - grep_error_log_out (req 0) @@ -1,2 +1,2 @@
-lua release ngx.ctx at ref 2
+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 - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:15:15 [error] 16856\#0: *42 lua entry thread aborted: runtime error: content_by_lua(nginx.conf:32):3: attempt to perform arithmetic on field 'count' (a nil value)" (req 0) stack traceback:
coroutine 0:
content_by_lua(nginx.conf:32): in main chunk, client: unix:, server: unix:/home/ec2-user/git/lua-resty-core/t/servroot/html/nginx.sock
2020/10/26 12:15:15 [debug] 16856\#0: *42 lua request cleanup: forcible=0
2020/10/26 12:15:15 [debug] 16856\#0: *42 finalize stream request: 500
2020/10/26 12:15:15 [debug] 16856\#0: *42 finalize stream session: 500
2020/10/26 12:15:15 [debug] 16856\#0: *42 stream log handler
2020/10/26 12:15:15 [debug] 16856\#0: *42 close stream connection: 17
2020/10/26 12:15:15 [debug] 16856\#0: *42 SSL_shutdown: 0
'
stream/ctx.t TEST 1: ngx.ctx in ssl_certificate_by_lua - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +1 @@
-received: 42
+received: nil
-received: 1
'
stream/ctx.t TEST 1: ngx.ctx in ssl_certificate_by_lua - grep_error_log_out (req 1) @@ -1,4 +1,4 @@
-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
+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 - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:15:15 [error] 16856\#0: *42 lua entry thread aborted: runtime error: content_by_lua(nginx.conf:32):3: attempt to perform arithmetic on field 'count' (a nil value)" (req 1) stack traceback:
coroutine 0:
content_by_lua(nginx.conf:32): in main chunk, client: unix:, server: unix:/home/ec2-user/git/lua-resty-core/t/servroot/html/nginx.sock
2020/10/26 12:15:15 [debug] 16856\#0: *42 lua request cleanup: forcible=0
2020/10/26 12:15:15 [debug] 16856\#0: *42 finalize stream request: 500
2020/10/26 12:15:15 [debug] 16856\#0: *42 finalize stream session: 500
2020/10/26 12:15:15 [debug] 16856\#0: *42 stream log handler
2020/10/26 12:15:15 [debug] 16856\#0: *42 close stream connection: 17
2020/10/26 12:15:15 [debug] 16856\#0: *42 SSL_shutdown: 0
'
stream/ctx.t TEST 1: ngx.ctx in ssl_certificate_by_lua - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:15:16 [error] 16856\#0: *48 lua entry thread aborted: runtime error: content_by_lua(nginx.conf:32):3: attempt to perform arithmetic on field 'count' (a nil value)" (req 1) stack traceback:
coroutine 0:
content_by_lua(nginx.conf:32): in main chunk, client: unix:, server: unix:/home/ec2-user/git/lua-resty-core/t/servroot/html/nginx.sock
2020/10/26 12:15:16 [debug] 16856\#0: *48 lua request cleanup: forcible=0
2020/10/26 12:15:16 [debug] 16856\#0: *48 finalize stream request: 500
2020/10/26 12:15:16 [debug] 16856\#0: *48 finalize stream session: 500
2020/10/26 12:15:16 [debug] 16856\#0: *48 stream log handler
2020/10/26 12:15:16 [debug] 16856\#0: *48 close stream connection: 17
2020/10/26 12:15:16 [debug] 16856\#0: *48 SSL_shutdown: 0
'
stream/ctx.t TEST 2: ngx.ctx in ssl_certificate_by_lua (share objects) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'received: 1
'
stream/ctx.t TEST 2: ngx.ctx in ssl_certificate_by_lua (share objects) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:15:20 [error] 16887\#0: *78 lua entry thread aborted: runtime error: content_by_lua(nginx.conf:28):2: attempt to index field 'req' (a nil value)" (req 0) stack traceback:
coroutine 0:
content_by_lua(nginx.conf:28): in main chunk, client: unix:, server: unix:/home/ec2-user/git/lua-resty-core/t/servroot/html/nginx.sock
2020/10/26 12:15:20 [debug] 16887\#0: *78 lua request cleanup: forcible=0
2020/10/26 12:15:20 [debug] 16887\#0: *78 finalize stream request: 500
2020/10/26 12:15:20 [debug] 16887\#0: *78 finalize stream session: 500
2020/10/26 12:15:20 [debug] 16887\#0: *78 stream log handler
2020/10/26 12:15:20 [debug] 16887\#0: *78 close stream connection: 17
2020/10/26 12:15:20 [debug] 16887\#0: *78 SSL_shutdown: 0
'
stream/ctx.t TEST 2: ngx.ctx in ssl_certificate_by_lua (share objects) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'received: 1
'
stream/ctx.t TEST 2: ngx.ctx in ssl_certificate_by_lua (share objects) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:15:20 [error] 16887\#0: *78 lua entry thread aborted: runtime error: content_by_lua(nginx.conf:28):2: attempt to index field 'req' (a nil value)" (req 1) stack traceback:
coroutine 0:
content_by_lua(nginx.conf:28): in main chunk, client: unix:, server: unix:/home/ec2-user/git/lua-resty-core/t/servroot/html/nginx.sock
2020/10/26 12:15:20 [debug] 16887\#0: *78 lua request cleanup: forcible=0
2020/10/26 12:15:20 [debug] 16887\#0: *78 finalize stream request: 500
2020/10/26 12:15:20 [debug] 16887\#0: *78 finalize stream session: 500
2020/10/26 12:15:20 [debug] 16887\#0: *78 stream log handler
2020/10/26 12:15:20 [debug] 16887\#0: *78 close stream connection: 17
2020/10/26 12:15:20 [debug] 16887\#0: *78 SSL_shutdown: 0
'
stream/ctx.t TEST 2: ngx.ctx in ssl_certificate_by_lua (share objects) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:15:20 [error] 16887\#0: *84 lua entry thread aborted: runtime error: content_by_lua(nginx.conf:28):2: attempt to index field 'req' (a nil value)" (req 1) stack traceback:
coroutine 0:
content_by_lua(nginx.conf:28): in main chunk, client: unix:, server: unix:/home/ec2-user/git/lua-resty-core/t/servroot/html/nginx.sock
2020/10/26 12:15:20 [debug] 16887\#0: *84 lua request cleanup: forcible=0
2020/10/26 12:15:20 [debug] 16887\#0: *84 finalize stream request: 500
2020/10/26 12:15:20 [debug] 16887\#0: *84 finalize stream session: 500
2020/10/26 12:15:20 [debug] 16887\#0: *84 stream log handler
2020/10/26 12:15:20 [debug] 16887\#0: *84 close stream connection: 17
2020/10/26 12:15:20 [debug] 16887\#0: *84 SSL_shutdown: 0
'
stream/errlog-raw-log.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required
stream/errlog-raw-log.t TEST 2: errlog.raw_log with bad levels (9) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/errlog-raw-log.t TEST 2: errlog.raw_log with bad levels (9) - status code ok got: ''
expected: '200'
stream/errlog-raw-log.t TEST 2: errlog.raw_log with bad levels (9) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'not ok: bad log level
'
stream/errlog-raw-log.t TEST 2: errlog.raw_log with bad levels (9) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:15:23 [error] 16916\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/errlog-raw-log.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required
stream/errlog-raw-log.t TEST 7: errlog.raw_log in init_worker_by_lua - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/errlog-raw-log.t TEST 7: errlog.raw_log in init_worker_by_lua - status code ok got: ''
expected: '200'
stream/errlog-raw-log.t TEST 7: errlog.raw_log in init_worker_by_lua - grep_error_log_out (req 0) got: ''
expected: 'hello world from init_worker_by_lua
'
stream/errlog-raw-log.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required
stream/errlog-raw-log.t TEST 1: errlog.raw_log with bad log level (ngx.ERROR, -1) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/errlog-raw-log.t TEST 1: errlog.raw_log with bad log level (ngx.ERROR, -1) - status code ok got: ''
expected: '200'
stream/errlog-raw-log.t TEST 1: errlog.raw_log with bad log level (ngx.ERROR, -1) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'not ok: bad log level
'
stream/errlog-raw-log.t TEST 1: errlog.raw_log with bad log level (ngx.ERROR, -1) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:15:30 [error] 16924\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/errlog-raw-log.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required
stream/errlog-raw-log.t TEST 8: errlog.raw_log with \0 in the log message - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/errlog-raw-log.t TEST 8: errlog.raw_log with \0 in the log message - status code ok got: ''
expected: '200'
stream/errlog-raw-log.t TEST 8: errlog.raw_log with \0 in the log message - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'ok
'
stream/errlog-raw-log.t TEST 8: errlog.raw_log with \0 in the log message - pattern "helloworld, client: " should match a line in error.log (req 0)
stream/errlog-raw-log.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required
stream/errlog-raw-log.t TEST 5: errlog.raw_log JITs - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/errlog-raw-log.t TEST 5: errlog.raw_log JITs - status code ok got: ''
expected: '200'
stream/errlog-raw-log.t TEST 5: errlog.raw_log JITs - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx.conf:\d+\):4 loop\])" should match a line in error.log (req 0)
stream/errlog-raw-log.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required
stream/errlog-raw-log.t TEST 3: errlog.raw_log with bad log message - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/errlog-raw-log.t TEST 3: errlog.raw_log with bad log message - status code ok got: ''
expected: '200'
stream/errlog-raw-log.t TEST 3: errlog.raw_log with bad log message - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'not ok: bad argument #2 to 'raw_log' (must be a string)
'
stream/errlog-raw-log.t TEST 3: errlog.raw_log with bad log message - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:15:40 [error] 16936\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/errlog-raw-log.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required
stream/errlog-raw-log.t TEST 4: errlog.raw_log test log-level ERR - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/errlog-raw-log.t TEST 4: errlog.raw_log test log-level ERR - status code ok got: ''
expected: '200'
stream/errlog-raw-log.t TEST 4: errlog.raw_log test log-level ERR - pattern "(?^:\[error\] \S+: \S+ hello world)" should match a line in error.log (req 0)
stream/errlog-raw-log.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required
stream/errlog-raw-log.t TEST 9: errlog.raw_log is captured by errlog.get_logs() - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/errlog-raw-log.t TEST 9: errlog.raw_log is captured by errlog.get_logs() - status code ok got: ''
expected: '200'
stream/errlog-raw-log.t TEST 9: errlog.raw_log is captured by errlog.get_logs() - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'log lines: 1
'
stream/errlog-raw-log.t TEST 9: errlog.raw_log is captured by errlog.get_logs() - pattern "(?^:\[error\] .*? hello from raw_log\(\))" should match a line in error.log (req 0)
stream/errlog-raw-log.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required
stream/errlog-raw-log.t TEST 6: errlog.raw_log in init_by_lua - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/errlog-raw-log.t TEST 6: errlog.raw_log in init_by_lua - status code ok got: ''
expected: '200'
stream/errlog-raw-log.t TEST 6: errlog.raw_log in init_by_lua - grep_error_log_out (req 0) got: ''
expected: 'hello world from init_by_lua
'
stream/errlog.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required
stream/errlog.t TEST 31: ringbuf sentinel bug2 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/errlog.t TEST 31: ringbuf sentinel bug2 - status code ok got: ''
expected: '200'
stream/errlog.t TEST 31: ringbuf sentinel bug2 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/errlog.t TEST 31: ringbuf sentinel bug2 - status code ok got: ''
expected: '200'
stream/errlog.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required
stream/errlog.t TEST 27: sanity (with log time) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/errlog.t TEST 27: sanity (with log time) - status code ok got: ''
expected: '200'
stream/errlog.t TEST 27: sanity (with log time) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'log lines:2
'
stream/errlog.t TEST 27: sanity (with log time) - grep_error_log_out (req 0) @@ -1,2 +0,0 @@
-enter 1
-enter 11
'
stream/errlog.t TEST 27: sanity (with log time) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/errlog.t TEST 27: sanity (with log time) - status code ok got: ''
expected: '200'
stream/errlog.t TEST 27: sanity (with log time) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'log lines:2
'
stream/errlog.t TEST 27: sanity (with log time) - grep_error_log_out (req 1) @@ -1,2 +0,0 @@
-enter 1
-enter 11
'
stream/errlog.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required
stream/errlog.t TEST 23: the system default filter level is "debug" - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/errlog.t TEST 23: the system default filter level is "debug" - status code ok got: ''
expected: '200'
stream/errlog.t TEST 23: the system default filter level is "debug" - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'Is "debug" the system default filter level? true'
stream/errlog.t TEST 23: the system default filter level is "debug" - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/errlog.t TEST 23: the system default filter level is "debug" - status code ok got: ''
expected: '200'
stream/errlog.t TEST 23: the system default filter level is "debug" - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'Is "debug" the system default filter level? true'
stream/errlog.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required
stream/errlog.t TEST 9: without directive + ngx.errlog - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/errlog.t TEST 9: without directive + ngx.errlog - status code ok got: ''
expected: '200'
stream/errlog.t TEST 9: without directive + ngx.errlog - pattern "directive "lua_capture_error_log" is not set" should match a line in error.log (req 0)
stream/errlog.t TEST 9: without directive + ngx.errlog - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/errlog.t TEST 9: without directive + ngx.errlog - status code ok got: ''
expected: '200'
stream/errlog.t TEST 9: without directive + ngx.errlog - pattern "directive "lua_capture_error_log" is not set" should match a line in error.log (req 1)
stream/errlog.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required
stream/errlog.t TEST 19: fetch a few and generate a few, then fetch again (overflown again) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/errlog.t TEST 19: fetch a few and generate a few, then fetch again (overflown again) - status code ok got: ''
expected: '200'
stream/errlog.t TEST 19: fetch a few and generate a few, then fetch again (overflown again) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/errlog.t TEST 19: fetch a few and generate a few, then fetch again (overflown again) - status code ok got: ''
expected: '200'
stream/errlog.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required
stream/errlog.t TEST 29: ringbuf overflow bug - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/errlog.t TEST 29: ringbuf overflow bug - status code ok got: ''
expected: '200'
stream/errlog.t TEST 29: ringbuf overflow bug - response_body_like - response is expected () ''
doesn't match '(?^s:log level: 4
log time: \d+(?:\.\d+)?
log body: \d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: \*\*\*\*\*\*\*\*\*\*39, client: 127.0.0.1, server: 0.0.0.0:\d+
log level: 4
log time: \d{10}(?:\.\d+)?
log body: \d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: \*\*\*\*\*\*\*\*\*\*40, client: 127.0.0.1, server: 0.0.0.0:\d+)'
stream/errlog.t TEST 29: ringbuf overflow bug - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/errlog.t TEST 29: ringbuf overflow bug - status code ok got: ''
expected: '200'
stream/errlog.t TEST 29: ringbuf overflow bug - response_body_like - response is expected () ''
doesn't match '(?^s:log level: 4
log time: \d+(?:\.\d+)?
log body: \d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: \*\*\*\*\*\*\*\*\*\*39, client: 127.0.0.1, server: 0.0.0.0:\d+
log level: 4
log time: \d{10}(?:\.\d+)?
log body: \d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: \*\*\*\*\*\*\*\*\*\*40, client: 127.0.0.1, server: 0.0.0.0:\d+)'
stream/errlog.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required
stream/errlog.t TEST 11: filter log by level(ngx.INFO) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/errlog.t TEST 11: filter log by level(ngx.INFO) - status code ok got: ''
expected: '200'
stream/errlog.t TEST 11: filter log by level(ngx.INFO) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'log lines:3
'
stream/errlog.t TEST 11: filter log by level(ngx.INFO) - grep_error_log_out (req 0) @@ -1,3 +0,0 @@
--->1
--->2
--->3
'
stream/errlog.t TEST 11: filter log by level(ngx.INFO) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/errlog.t TEST 11: filter log by level(ngx.INFO) - status code ok got: ''
expected: '200'
stream/errlog.t TEST 11: filter log by level(ngx.INFO) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'log lines:3
'
stream/errlog.t TEST 11: filter log by level(ngx.INFO) - grep_error_log_out (req 1) @@ -1,3 +0,0 @@
--->1
--->2
--->3
'
stream/errlog.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required
stream/errlog.t TEST 18: flood the capturing buffer (5k) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/errlog.t TEST 18: flood the capturing buffer (5k) - status code ok got: ''
expected: '200'
stream/errlog.t TEST 18: flood the capturing buffer (5k) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/errlog.t TEST 18: flood the capturing buffer (5k) - status code ok got: ''
expected: '200'
stream/errlog.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required
stream/errlog.t TEST 12: filter log by level(ngx.WARN) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/errlog.t TEST 12: filter log by level(ngx.WARN) - status code ok got: ''
expected: '200'
stream/errlog.t TEST 12: filter log by level(ngx.WARN) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'log lines:2
'
stream/errlog.t TEST 12: filter log by level(ngx.WARN) - grep_error_log_out (req 0) @@ -1,3 +0,0 @@
--->1
--->2
--->3
'
stream/errlog.t TEST 12: filter log by level(ngx.WARN) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/errlog.t TEST 12: filter log by level(ngx.WARN) - status code ok got: ''
expected: '200'
stream/errlog.t TEST 12: filter log by level(ngx.WARN) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'log lines:2
'
stream/errlog.t TEST 12: filter log by level(ngx.WARN) - grep_error_log_out (req 1) @@ -1,3 +0,0 @@
--->1
--->2
--->3
'
stream/errlog.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required
stream/errlog.t TEST 3: client connected info - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/errlog.t TEST 3: client connected info - status code ok got: ''
expected: '200'
stream/errlog.t TEST 3: client connected info - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/errlog.t TEST 3: client connected info - status code ok got: ''
expected: '200'
stream/errlog.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required
stream/errlog.t TEST 20: fetch a few and generate a few, then fetch again (not overflown again) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/errlog.t TEST 20: fetch a few and generate a few, then fetch again (not overflown again) - status code ok got: ''
expected: '200'
stream/errlog.t TEST 20: fetch a few and generate a few, then fetch again (not overflown again) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/errlog.t TEST 20: fetch a few and generate a few, then fetch again (not overflown again) - status code ok got: ''
expected: '200'
stream/errlog.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required
stream/errlog.t TEST 28: log time eq ngx.now - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/errlog.t TEST 28: log time eq ngx.now - status code ok got: ''
expected: '200'
stream/errlog.t TEST 28: log time eq ngx.now - response_body_like - response is expected () ''
doesn't match '(?^s:\Alog lines: 2
log level: 3
log time: \d+(?:\.\d+)?
log body: \d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[crit\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: enter 1, client: 127.0.0.1, server: 0.0.0.0:\d+
same with now: true
log level: 4
log time: \d{10}(?:\.\d+)?
log body: \d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: enter 11, client: 127.0.0.1, server: 0.0.0.0:\d+
same with now: true)'
stream/errlog.t TEST 28: log time eq ngx.now - grep_error_log_out (req 0) @@ -1,2 +0,0 @@
-enter 1
-enter 11
'
stream/errlog.t TEST 28: log time eq ngx.now - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/errlog.t TEST 28: log time eq ngx.now - status code ok got: ''
expected: '200'
stream/errlog.t TEST 28: log time eq ngx.now - response_body_like - response is expected () ''
doesn't match '(?^s:\Alog lines: 2
log level: 3
log time: \d+(?:\.\d+)?
log body: \d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[crit\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: enter 1, client: 127.0.0.1, server: 0.0.0.0:\d+
same with now: true
log level: 4
log time: \d{10}(?:\.\d+)?
log body: \d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: enter 11, client: 127.0.0.1, server: 0.0.0.0:\d+
same with now: true)'
stream/errlog.t TEST 28: log time eq ngx.now - grep_error_log_out (req 1) @@ -1,2 +0,0 @@
-enter 1
-enter 11
'
stream/errlog.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required
stream/errlog.t TEST 21: multi-line error log - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/errlog.t TEST 21: multi-line error log - status code ok got: ''
expected: '200'
stream/errlog.t TEST 21: multi-line error log - response_body_like - response is expected () ''
doesn't match '(?^s:\Alog lines: #1
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*content_by_lua\(nginx.conf:\d+\):\d+: -->
new line, client: 127.0.0.1, server: 0.0.0.0:\d+
\z)'
stream/errlog.t TEST 21: multi-line error log - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/errlog.t TEST 21: multi-line error log - status code ok got: ''
expected: '200'
stream/errlog.t TEST 21: multi-line error log - response_body_like - response is expected () ''
doesn't match '(?^s:\Alog lines: #1
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*content_by_lua\(nginx.conf:\d+\):\d+: -->
new line, client: 127.0.0.1, server: 0.0.0.0:\d+
\z)'
stream/errlog.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required
stream/errlog.t TEST 22: user-supplied Lua table to hold the result (get one log + no log) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/errlog.t TEST 22: user-supplied Lua table to hold the result (get one log + no log) - status code ok got: ''
expected: '200'
stream/errlog.t TEST 22: user-supplied Lua table to hold the result (get one log + no log) - response_body_like - response is expected () ''
doesn't match '(?^s:\Amaybe log lines: #1
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*content_by_lua\(nginx.conf:\d+\):\d+: -->
new line, client: 127.0.0.1, server: 0.0.0.0:\d+
end
maybe log lines: #1
end
\z)'
stream/errlog.t TEST 22: user-supplied Lua table to hold the result (get one log + no log) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/errlog.t TEST 22: user-supplied Lua table to hold the result (get one log + no log) - status code ok got: ''
expected: '200'
stream/errlog.t TEST 22: user-supplied Lua table to hold the result (get one log + no log) - response_body_like - response is expected () ''
doesn't match '(?^s:\Amaybe log lines: #1
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*content_by_lua\(nginx.conf:\d+\):\d+: -->
new line, client: 127.0.0.1, server: 0.0.0.0:\d+
end
maybe log lines: #1
end
\z)'
stream/errlog.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required
stream/errlog.t TEST 10: without directive + ngx.set_filter_level - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/errlog.t TEST 10: without directive + ngx.set_filter_level - status code ok got: ''
expected: '200'
stream/errlog.t TEST 10: without directive + ngx.set_filter_level - pattern "directive "lua_capture_error_log" is not set" should match a line in error.log (req 0)
stream/errlog.t TEST 10: without directive + ngx.set_filter_level - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/errlog.t TEST 10: without directive + ngx.set_filter_level - status code ok got: ''
expected: '200'
stream/errlog.t TEST 10: without directive + ngx.set_filter_level - pattern "directive "lua_capture_error_log" is not set" should match a line in error.log (req 1)
stream/errlog.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required
stream/errlog.t TEST 15: wrong argument - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/errlog.t TEST 15: wrong argument - status code ok got: ''
expected: '200'
stream/errlog.t TEST 15: wrong argument - grep_error_log_out (req 0) got: ''
expected: 'missing "level" argument
'
stream/errlog.t TEST 15: wrong argument - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/errlog.t TEST 15: wrong argument - status code ok got: ''
expected: '200'
stream/errlog.t TEST 15: wrong argument - grep_error_log_out (req 1) got: ''
expected: 'missing "level" argument
'
stream/errlog.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required
stream/errlog.t TEST 13: filter log by level(ngx.CRIT) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/errlog.t TEST 13: filter log by level(ngx.CRIT) - status code ok got: ''
expected: '200'
stream/errlog.t TEST 13: filter log by level(ngx.CRIT) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'log lines:0
'
stream/errlog.t TEST 13: filter log by level(ngx.CRIT) - grep_error_log_out (req 0) @@ -1,3 +0,0 @@
--->1
--->2
--->3
'
stream/errlog.t TEST 13: filter log by level(ngx.CRIT) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/errlog.t TEST 13: filter log by level(ngx.CRIT) - status code ok got: ''
expected: '200'
stream/errlog.t TEST 13: filter log by level(ngx.CRIT) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'log lines:0
'
stream/errlog.t TEST 13: filter log by level(ngx.CRIT) - grep_error_log_out (req 1) @@ -1,3 +0,0 @@
--->1
--->2
--->3
'
stream/errlog.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required
stream/errlog.t TEST 2: overflow captured error logs - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/errlog.t TEST 2: overflow captured error logs - status code ok got: ''
expected: '200'
stream/errlog.t TEST 2: overflow captured error logs - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'log lines:1
'
stream/errlog.t TEST 2: overflow captured error logs - grep_error_log_out (req 0) @@ -1,2 +0,0 @@
-enter 1
-enter 22
'
stream/errlog.t TEST 2: overflow captured error logs - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/errlog.t TEST 2: overflow captured error logs - status code ok got: ''
expected: '200'
stream/errlog.t TEST 2: overflow captured error logs - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'log lines:1
'
stream/errlog.t TEST 2: overflow captured error logs - grep_error_log_out (req 1) @@ -1,2 +0,0 @@
-enter 1
-enter 22
'
stream/errlog.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required
stream/errlog.t TEST 17: flood the capturing buffer (4k) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/errlog.t TEST 17: flood the capturing buffer (4k) - status code ok got: ''
expected: '200'
stream/errlog.t TEST 17: flood the capturing buffer (4k) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/errlog.t TEST 17: flood the capturing buffer (4k) - status code ok got: ''
expected: '200'
stream/errlog.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required
stream/errlog.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/errlog.t TEST 1: sanity - status code ok got: ''
expected: '200'
stream/errlog.t TEST 1: sanity - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'log lines:2
'
stream/errlog.t TEST 1: sanity - grep_error_log_out (req 0) @@ -1,2 +0,0 @@
-enter 1
-enter 11
'
stream/errlog.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/errlog.t TEST 1: sanity - status code ok got: ''
expected: '200'
stream/errlog.t TEST 1: sanity - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'log lines:2
'
stream/errlog.t TEST 1: sanity - grep_error_log_out (req 1) @@ -1,2 +0,0 @@
-enter 1
-enter 11
'
stream/errlog.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required
stream/errlog.t TEST 6: customize the log path - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/errlog.t TEST 6: customize the log path - status code ok got: ''
expected: '200'
stream/errlog.t TEST 6: customize the log path - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'hello
'
stream/errlog.t TEST 6: customize the log path - grep_error_log_out (req 0) ''
doesn't match '(?^:^enter access
capture log line:1
$)'
stream/errlog.t TEST 6: customize the log path - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/errlog.t TEST 6: customize the log path - status code ok got: ''
expected: '200'
stream/errlog.t TEST 6: customize the log path - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'hello
'
stream/errlog.t TEST 6: customize the log path - grep_error_log_out (req 1) ''
doesn't match '(?^:^enter access
capture log line:2
$)'
stream/errlog.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required
stream/errlog.t TEST 4: 500 error - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/errlog.t TEST 4: 500 error - status code ok got: ''
expected: '200'
stream/errlog.t TEST 4: 500 error - grep_error_log_out (req 0) ''
doesn't match '(?^:^attempt to perform arithmetic on a table value
capture log line:1
$)'
stream/errlog.t TEST 4: 500 error - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/errlog.t TEST 4: 500 error - status code ok got: ''
expected: '200'
stream/errlog.t TEST 4: 500 error - grep_error_log_out (req 1) ''
doesn't match '(?^:^attempt to perform arithmetic on a table value
capture log line:2
$)'
stream/errlog.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required
stream/errlog.t TEST 16: check the captured error log body - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/errlog.t TEST 16: check the captured error log body - status code ok got: ''
expected: '200'
stream/errlog.t TEST 16: check the captured error log body - response_body_like - response is expected () ''
doesn't match '(?^s: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+: -->2, 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+: -->3, client: 127.0.0.1, server: 0.0.0.0:\d+
)'
stream/errlog.t TEST 16: check the captured error log body - grep_error_log_out (req 0) @@ -1,3 +0,0 @@
--->1
--->2
--->3
'
stream/errlog.t TEST 16: check the captured error log body - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/errlog.t TEST 16: check the captured error log body - status code ok got: ''
expected: '200'
stream/errlog.t TEST 16: check the captured error log body - response_body_like - response is expected () ''
doesn't match '(?^s: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+: -->2, 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+: -->3, client: 127.0.0.1, server: 0.0.0.0:\d+
)'
stream/errlog.t TEST 16: check the captured error log body - grep_error_log_out (req 1) @@ -1,3 +0,0 @@
--->1
--->2
--->3
'
stream/errlog.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required
stream/errlog.t TEST 30: ringbuf sentinel bug1 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/errlog.t TEST 30: ringbuf sentinel bug1 - status code ok got: ''
expected: '200'
stream/errlog.t TEST 30: ringbuf sentinel bug1 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/errlog.t TEST 30: ringbuf sentinel bug1 - status code ok got: ''
expected: '200'
stream/errlog.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required
stream/errlog.t TEST 24: the system default filter level is "emerg" - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/errlog.t TEST 24: the system default filter level is "emerg" - status code ok got: ''
expected: '200'
stream/errlog.t TEST 24: the system default filter level is "emerg" - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'Is "emerg" the system default filter level? true'
stream/errlog.t TEST 24: the system default filter level is "emerg" - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/errlog.t TEST 24: the system default filter level is "emerg" - status code ok got: ''
expected: '200'
stream/errlog.t TEST 24: the system default filter level is "emerg" - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'Is "emerg" the system default filter level? true'
stream/errlog.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required
stream/errlog.t TEST 14: set max count and reuse table - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/errlog.t TEST 14: set max count and reuse table - status code ok got: ''
expected: '200'
stream/errlog.t TEST 14: set max count and reuse table - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-log lines:2
-log lines:1
'
stream/errlog.t TEST 14: set max count and reuse table - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/errlog.t TEST 14: set max count and reuse table - status code ok got: ''
expected: '200'
stream/errlog.t TEST 14: set max count and reuse table - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-log lines:2
-log lines:1
'
stream/errlog.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required
stream/errlog.t TEST 5: no error log - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/errlog.t TEST 5: no error log - status code ok got: ''
expected: '200'
stream/errlog.t TEST 5: no error log - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'hello
'
stream/errlog.t TEST 5: no error log - grep_error_log_out (req 0) ''
doesn't match '(?^:^capture log line:0
$)'
stream/errlog.t TEST 5: no error log - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/errlog.t TEST 5: no error log - status code ok got: ''
expected: '200'
stream/errlog.t TEST 5: no error log - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'hello
'
stream/errlog.t TEST 5: no error log - grep_error_log_out (req 1) ''
doesn't match '(?^:^capture log line:1
$)'
stream/misc.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required
stream/misc.t TEST 2: base.check_subsystem with non-stream subsystem - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/misc.t TEST 2: base.check_subsystem with non-stream subsystem - status code ok got: ''
expected: '200'
stream/misc.t TEST 2: base.check_subsystem with non-stream subsystem - pattern "unsupported subsystem: stream" should match a line in error.log (req 0)
stream/misc.t TEST 2: base.check_subsystem with non-stream subsystem - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/misc.t TEST 2: base.check_subsystem with non-stream subsystem - status code ok got: ''
expected: '200'
stream/misc.t TEST 2: base.check_subsystem with non-stream subsystem - pattern "unsupported subsystem: stream" should match a line in error.log (req 1)
stream/misc.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required
stream/misc.t TEST 1: base.check_subsystem - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/misc.t TEST 1: base.check_subsystem - status code ok got: ''
expected: '200'
stream/misc.t TEST 1: base.check_subsystem - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'ok
'
stream/misc.t TEST 1: base.check_subsystem - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:17:34 [error] 17108\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/misc.t TEST 1: base.check_subsystem - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/misc.t TEST 1: base.check_subsystem - status code ok got: ''
expected: '200'
stream/misc.t TEST 1: base.check_subsystem - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'ok
'
stream/os-getenv-hup.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required
stream/os-getenv-hup.t TEST 1: env directive explicit value is visible within init_by_lua* - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/os-getenv-hup.t TEST 1: env directive explicit value is visible within init_by_lua* - status code ok got: ''
expected: '200'
stream/os-getenv-hup.t TEST 1: env directive explicit value is visible within init_by_lua* - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "old\x{0a}"
length: 4
strings begin to differ at char 1 (line 1 column 1)
stream/os-getenv-hup.t TEST 1: env directive explicit value is visible within init_by_lua* - pattern "[notice]" should match a line in error.log (req 0)
stream/os-getenv-hup.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required
stream/os-getenv-hup.t TEST 2: HUP reload changes env value (1/3) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/os-getenv-hup.t TEST 2: HUP reload changes env value (1/3) - status code ok got: ''
expected: '200'
stream/os-getenv-hup.t TEST 2: HUP reload changes env value (1/3) - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "new\x{0a}"
length: 4
strings begin to differ at char 1 (line 1 column 1)
stream/os-getenv-hup.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required
stream/os-getenv-hup.t TEST 3: HUP reload changes env value (2/3) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/os-getenv-hup.t TEST 3: HUP reload changes env value (2/3) - status code ok got: ''
expected: '200'
stream/os-getenv-hup.t TEST 3: HUP reload changes env value (2/3) - response_body_like - response is expected () ''
doesn't match '(?^s:\s)'
stream/os-getenv-hup.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required
stream/os-getenv-hup.t TEST 4: HUP reload changes env value (3/3) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/os-getenv-hup.t TEST 4: HUP reload changes env value (3/3) - status code ok got: ''
expected: '200'
stream/os-getenv-hup.t TEST 4: HUP reload changes env value (3/3) - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "nil\x{0a}"
length: 4
strings begin to differ at char 1 (line 1 column 1)
stream/os-getenv-hup.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required
stream/os-getenv-hup.t TEST 5: HUP reload changes visible environment variable (1/2) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/os-getenv-hup.t TEST 5: HUP reload changes visible environment variable (1/2) - status code ok got: ''
expected: '200'
stream/os-getenv-hup.t TEST 5: HUP reload changes visible environment variable (1/2) - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "old\x{0a}"
length: 4
strings begin to differ at char 1 (line 1 column 1)
stream/os-getenv-hup.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required
stream/os-getenv-hup.t TEST 6: HUP reload changes visible environment variable (2/2) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/os-getenv-hup.t TEST 6: HUP reload changes visible environment variable (2/2) - status code ok got: ''
expected: '200'
stream/os-getenv-hup.t TEST 6: HUP reload changes visible environment variable (2/2) - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "new\x{0a}"
length: 4
strings begin to differ at char 1 (line 1 column 1)
stream/os-getenv.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required
stream/os-getenv.t TEST 5: env is visible from environment - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/os-getenv.t TEST 5: env is visible from environment - status code ok got: ''
expected: '200'
stream/os-getenv.t TEST 5: env is visible from environment - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "world\x{0a}world\x{0a}"
length: 12
strings begin to differ at char 1 (line 1 column 1)
stream/os-getenv.t TEST 8: os.getenv() overwrite is reverted in worker phases - response_body - response is expected (repeated req 0, req 0) got: "FOO=hello\x{0a}os.getenv() overwrite was not reverted\x{0a}"
length: 49
expected: "FOO=hello\x{0a}os.getenv() overwrite was reverted\x{0a}"
length: 45
strings begin to differ at char 37 (line 2 column 27)
stream/os-getenv.t TEST 3: env directive explicit value is case-sensitive within init_by_lua* - failed to reload configuration after 200 failed test requests
stream/os-getenv.t TEST 3: env directive explicit value is case-sensitive within init_by_lua* - response_body - response is expected (repeated req 0, req 0) got: "FOO=hello\x{0a}os.getenv() overwrite was not reverted\x{0a}"
length: 49
expected: "nil\x{0a}nil\x{0a}"
length: 8
strings begin to differ at char 1 (line 1 column 1)
stream/os-getenv.t TEST 2: env directive explicit value is visible within init_by_lua* with lua_shared_dict - failed to reload configuration after 200 failed test requests
stream/os-getenv.t TEST 2: env directive explicit value is visible within init_by_lua* with lua_shared_dict - response_body - response is expected (repeated req 0, req 0) got: "FOO=hello\x{0a}os.getenv() overwrite was not reverted\x{0a}"
length: 49
expected: "hello\x{0a}hello\x{0a}"
length: 12
strings begin to differ at char 1 (line 1 column 1)
stream/os-getenv.t TEST 9: os.getenv() can be localized after loading resty.core - failed to reload configuration after 200 failed test requests
stream/os-getenv.t TEST 9: os.getenv() can be localized after loading resty.core - response_body - response is expected (repeated req 0, req 0) got: "FOO=hello\x{0a}os.getenv() overwrite was not reverted\x{0a}"
length: 49
expected: "os.getenv() overwrite was reverted\x{0a}"
length: 35
strings begin to differ at char 1 (line 1 column 1)
stream/os-getenv.t TEST 9: os.getenv() can be localized after loading resty.core - grep_error_log_out (req 0) got: ""
length: 0
expected: "FOO: hello\x{0a}FOO: hello\x{0a}FOO: hello\x{0a}"
length: 33
strings begin to differ at char 1 (line 1 column 1)
stream/os-getenv.t TEST 6: env explicit set vs environment set - failed to reload configuration after 200 failed test requests
stream/os-getenv.t TEST 6: env explicit set vs environment set - response_body - response is expected (repeated req 0, req 0) got: "FOO=hello\x{0a}os.getenv() overwrite was not reverted\x{0a}"
length: 49
expected: "goodbye\x{0a}goodbye\x{0a}"
length: 16
strings begin to differ at char 1 (line 1 column 1)
stream/os-getenv.t TEST 1: env directive explicit value is visible within init_by_lua* - failed to reload configuration after 200 failed test requests
stream/os-getenv.t TEST 1: env directive explicit value is visible within init_by_lua* - response_body - response is expected (repeated req 0, req 0) got: "FOO=hello\x{0a}os.getenv() overwrite was not reverted\x{0a}"
length: 49
expected: "hello\x{0a}hello\x{0a}"
length: 12
strings begin to differ at char 1 (line 1 column 1)
stream/os-getenv.t TEST 4: env directives with no value are ignored - failed to reload configuration after 200 failed test requests
stream/os-getenv.t TEST 4: env directives with no value are ignored - response_body - response is expected (repeated req 0, req 0) got: "FOO=hello\x{0a}os.getenv() overwrite was not reverted\x{0a}"
length: 49
expected: "nil\x{0a}nil\x{0a}"
length: 8
strings begin to differ at char 1 (line 1 column 1)
stream/os-getenv.t TEST 7: env directive with empty value - failed to reload configuration after 200 failed test requests
stream/os-getenv.t TEST 7: env directive with empty value - response_body_like - response is expected (FOO=hello os.getenv() overwrite was not reverted) 'FOO=hello
os.getenv() overwrite was not reverted
'
doesn't match '(?^s:in init:\s+
in content:\s+
)'
stream/re-base.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required
stream/re-base.t TEST 1: bad pattern - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-base.t TEST 1: bad pattern - status code ok got: ''
expected: '200'
stream/re-base.t TEST 1: bad pattern - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'error: pcre_compile() failed: missing ) in "(abc"
'
stream/re-base.t TEST 1: bad pattern - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:42:20 [error] 18612\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/re-base.t TEST 1: bad pattern - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-base.t TEST 1: bad pattern - status code ok got: ''
expected: '200'
stream/re-base.t TEST 1: bad pattern - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'error: pcre_compile() failed: missing ) in "(abc"
'
stream/re-base.t TEST 1: bad pattern - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:42:20 [error] 18612\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/re-base.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required
stream/re-base.t TEST 4: UTF-8 mode with UTF-8 sequence checks - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-base.t TEST 4: UTF-8 mode with UTF-8 sequence checks - status code ok got: ''
expected: '200'
stream/re-base.t TEST 4: UTF-8 mode with UTF-8 sequence checks - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'ä½ 
'
stream/re-base.t TEST 4: UTF-8 mode with UTF-8 sequence checks - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:42:24 [error] 18617\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/re-base.t TEST 4: UTF-8 mode with UTF-8 sequence checks - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-base.t TEST 4: UTF-8 mode with UTF-8 sequence checks - status code ok got: ''
expected: '200'
stream/re-base.t TEST 4: UTF-8 mode with UTF-8 sequence checks - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'ä½ 
'
stream/re-base.t TEST 4: UTF-8 mode with UTF-8 sequence checks - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:42:24 [error] 18617\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/re-base.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required
stream/re-base.t TEST 5: just hit match limit - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-base.t TEST 5: just hit match limit - status code ok got: ''
expected: '200'
stream/re-base.t TEST 5: just hit match limit - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'error: pcre_exec() failed: -8
'
stream/re-base.t TEST 5: just hit match limit - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-base.t TEST 5: just hit match limit - status code ok got: ''
expected: '200'
stream/re-base.t TEST 5: just hit match limit - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'error: pcre_exec() failed: -8
'
stream/re-base.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required
stream/re-base.t TEST 3: UTF-8 mode without UTF-8 sequence checks - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-base.t TEST 3: UTF-8 mode without UTF-8 sequence checks - status code ok got: ''
expected: '200'
stream/re-base.t TEST 3: UTF-8 mode without UTF-8 sequence checks - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'ä½ 
'
stream/re-base.t TEST 3: UTF-8 mode without UTF-8 sequence checks - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:42:31 [error] 18628\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/re-base.t TEST 3: UTF-8 mode without UTF-8 sequence checks - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-base.t TEST 3: UTF-8 mode without UTF-8 sequence checks - status code ok got: ''
expected: '200'
stream/re-base.t TEST 3: UTF-8 mode without UTF-8 sequence checks - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'ä½ 
'
stream/re-base.t TEST 3: UTF-8 mode without UTF-8 sequence checks - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:42:31 [error] 18628\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/re-base.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required
stream/re-base.t TEST 6: just not hit match limit - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-base.t TEST 6: just not hit match limit - status code ok got: ''
expected: '200'
stream/re-base.t TEST 6: just not hit match limit - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'failed to match
'
stream/re-base.t TEST 6: just not hit match limit - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-base.t TEST 6: just not hit match limit - status code ok got: ''
expected: '200'
stream/re-base.t TEST 6: just not hit match limit - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'failed to match
'
stream/re-base.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required
stream/re-base.t TEST 2: bad UTF-8 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-base.t TEST 2: bad UTF-8 - status code ok got: ''
expected: '200'
stream/re-base.t TEST 2: bad UTF-8 - response_body_like - response is expected () ''
doesn't match '(?^s:error: pcre_exec\(\) failed: -10)'
stream/re-base.t TEST 2: bad UTF-8 - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:42:38 [error] 18639\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/re-base.t TEST 2: bad UTF-8 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-base.t TEST 2: bad UTF-8 - status code ok got: ''
expected: '200'
stream/re-base.t TEST 2: bad UTF-8 - response_body_like - response is expected () ''
doesn't match '(?^s:error: pcre_exec\(\) failed: -10)'
stream/re-base.t TEST 2: bad UTF-8 - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:42:38 [error] 18639\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/re-find.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required
stream/re-find.t TEST 5: nil submatch (1st) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-find.t TEST 5: nil submatch (1st) - status code ok got: ''
expected: '200'
stream/re-find.t TEST 5: nil submatch (1st) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'not matched!
'
stream/re-find.t TEST 5: nil submatch (1st) - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):4 loop\])" should match a line in error.log (req 0)
stream/re-find.t TEST 5: nil submatch (1st) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:42:42 [error] 18648\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/re-find.t TEST 5: nil submatch (1st) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-find.t TEST 5: nil submatch (1st) - status code ok got: ''
expected: '200'
stream/re-find.t TEST 5: nil submatch (1st) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'not matched!
'
stream/re-find.t TEST 5: nil submatch (1st) - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):4 loop\])" should match a line in error.log (req 1)
stream/re-find.t TEST 5: nil submatch (1st) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:42:42 [error] 18648\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/re-find.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required
stream/re-find.t TEST 1: matched, no submatch, no jit compile, no regex cache - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-find.t TEST 1: matched, no submatch, no jit compile, no regex cache - status code ok got: ''
expected: '200'
stream/re-find.t TEST 1: matched, no submatch, no jit compile, no regex cache - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-from: 1
-to: 1
-matched: a
'
stream/re-find.t TEST 1: matched, no submatch, no jit compile, no regex cache - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):5 loop\])" should match a line in error.log (req 0)
stream/re-find.t TEST 1: matched, no submatch, no jit compile, no regex cache - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:42:45 [error] 18653\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/re-find.t TEST 1: matched, no submatch, no jit compile, no regex cache - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-find.t TEST 1: matched, no submatch, no jit compile, no regex cache - status code ok got: ''
expected: '200'
stream/re-find.t TEST 1: matched, no submatch, no jit compile, no regex cache - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-from: 1
-to: 1
-matched: a
'
stream/re-find.t TEST 1: matched, no submatch, no jit compile, no regex cache - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):5 loop\])" should match a line in error.log (req 1)
stream/re-find.t TEST 1: matched, no submatch, no jit compile, no regex cache - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:42:45 [error] 18653\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/re-find.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required
stream/re-find.t TEST 2: matched, no submatch, jit compile, regex cache - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-find.t TEST 2: matched, no submatch, jit compile, regex cache - status code ok got: ''
expected: '200'
stream/re-find.t TEST 2: matched, no submatch, jit compile, regex cache - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-from: 1
-to: 1
-matched: a
'
stream/re-find.t TEST 2: matched, no submatch, jit compile, regex cache - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):5 loop\])" should match a line in error.log (req 0)
stream/re-find.t TEST 2: matched, no submatch, jit compile, regex cache - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:42:49 [error] 18658\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/re-find.t TEST 2: matched, no submatch, jit compile, regex cache - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-find.t TEST 2: matched, no submatch, jit compile, regex cache - status code ok got: ''
expected: '200'
stream/re-find.t TEST 2: matched, no submatch, jit compile, regex cache - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-from: 1
-to: 1
-matched: a
'
stream/re-find.t TEST 2: matched, no submatch, jit compile, regex cache - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):5 loop\])" should match a line in error.log (req 1)
stream/re-find.t TEST 2: matched, no submatch, jit compile, regex cache - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:42:49 [error] 18658\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/re-find.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required
stream/re-find.t TEST 6: specify the group (2) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-find.t TEST 6: specify the group (2) - status code ok got: ''
expected: '200'
stream/re-find.t TEST 6: specify the group (2) - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-from: 9
-to: 11
-matched: 234
'
stream/re-find.t TEST 6: specify the group (2) - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):4 loop\])" should match a line in error.log (req 0)
stream/re-find.t TEST 6: specify the group (2) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:42:52 [error] 18663\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/re-find.t TEST 6: specify the group (2) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-find.t TEST 6: specify the group (2) - status code ok got: ''
expected: '200'
stream/re-find.t TEST 6: specify the group (2) - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-from: 9
-to: 11
-matched: 234
'
stream/re-find.t TEST 6: specify the group (2) - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):4 loop\])" should match a line in error.log (req 1)
stream/re-find.t TEST 6: specify the group (2) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:42:52 [error] 18663\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/re-find.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required
stream/re-find.t TEST 3: not matched, no submatch, jit compile, regex cache - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-find.t TEST 3: not matched, no submatch, jit compile, regex cache - status code ok got: ''
expected: '200'
stream/re-find.t TEST 3: not matched, no submatch, jit compile, regex cache - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'no match
'
stream/re-find.t TEST 3: not matched, no submatch, jit compile, regex cache - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):5 loop\])" should match a line in error.log (req 0)
stream/re-find.t TEST 3: not matched, no submatch, jit compile, regex cache - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:42:56 [error] 18668\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/re-find.t TEST 3: not matched, no submatch, jit compile, regex cache - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-find.t TEST 3: not matched, no submatch, jit compile, regex cache - status code ok got: ''
expected: '200'
stream/re-find.t TEST 3: not matched, no submatch, jit compile, regex cache - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'no match
'
stream/re-find.t TEST 3: not matched, no submatch, jit compile, regex cache - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):5 loop\])" should match a line in error.log (req 1)
stream/re-find.t TEST 3: not matched, no submatch, jit compile, regex cache - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:42:56 [error] 18668\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/re-find.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required
stream/re-find.t TEST 4: nil submatch (2nd) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-find.t TEST 4: nil submatch (2nd) - status code ok got: ''
expected: '200'
stream/re-find.t TEST 4: nil submatch (2nd) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'not matched!
'
stream/re-find.t TEST 4: nil submatch (2nd) - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):4 loop\])" should match a line in error.log (req 0)
stream/re-find.t TEST 4: nil submatch (2nd) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:42:59 [error] 18676\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/re-find.t TEST 4: nil submatch (2nd) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-find.t TEST 4: nil submatch (2nd) - status code ok got: ''
expected: '200'
stream/re-find.t TEST 4: nil submatch (2nd) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'not matched!
'
stream/re-find.t TEST 4: nil submatch (2nd) - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):4 loop\])" should match a line in error.log (req 1)
stream/re-find.t TEST 4: nil submatch (2nd) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:42:59 [error] 18676\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/re-gmatch.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required
stream/re-gmatch.t TEST 5: submatches, matched, no regex cache - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-gmatch.t TEST 5: submatches, matched, no regex cache - status code ok got: ''
expected: '200'
stream/re-gmatch.t TEST 5: submatches, matched, no regex cache - response_body - response is expected (repeated req 0, req 0) @@ -1,8 +0,0 @@
-matched: hello
-$1: h
-$2: ello
-$3: nil
-matched: world
-$1: w
-$2: orld
-$3: nil
'
stream/re-gmatch.t TEST 5: submatches, matched, no regex cache - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:43:03 [error] 18686\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/re-gmatch.t TEST 5: submatches, matched, no regex cache - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-gmatch.t TEST 5: submatches, matched, no regex cache - status code ok got: ''
expected: '200'
stream/re-gmatch.t TEST 5: submatches, matched, no regex cache - response_body - response is expected (repeated req 1, req 0) @@ -1,8 +0,0 @@
-matched: hello
-$1: h
-$2: ello
-$3: nil
-matched: world
-$1: w
-$2: orld
-$3: nil
'
stream/re-gmatch.t TEST 5: submatches, matched, no regex cache - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:43:03 [error] 18686\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/re-gmatch.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required
stream/re-gmatch.t TEST 9: unmatched trailing captures are false - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-gmatch.t TEST 9: unmatched trailing captures are false - status code ok got: ''
expected: '200'
stream/re-gmatch.t TEST 9: unmatched trailing captures are false - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-hello
-hello
-false
-false
'
stream/re-gmatch.t TEST 9: unmatched trailing captures are false - pattern "(?^:\[TRACE\s+\d+\s+)" should match a line in error.log (req 0)
stream/re-gmatch.t TEST 9: unmatched trailing captures are false - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:43:07 [error] 18692\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/re-gmatch.t TEST 9: unmatched trailing captures are false - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-gmatch.t TEST 9: unmatched trailing captures are false - status code ok got: ''
expected: '200'
stream/re-gmatch.t TEST 9: unmatched trailing captures are false - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +0,0 @@
-hello
-hello
-false
-false
'
stream/re-gmatch.t TEST 9: unmatched trailing captures are false - pattern "(?^:\[TRACE\s+\d+\s+)" should match a line in error.log (req 1)
stream/re-gmatch.t TEST 9: unmatched trailing captures are false - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:43:07 [error] 18692\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/re-gmatch.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required
stream/re-gmatch.t TEST 11: subject is not a string type - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-gmatch.t TEST 11: subject is not a string type - status code ok got: ''
expected: '200'
stream/re-gmatch.t TEST 11: subject is not a string type - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-12
-345
'
stream/re-gmatch.t TEST 11: subject is not a string type - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:43:10 [error] 18697\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/re-gmatch.t TEST 11: subject is not a string type - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-gmatch.t TEST 11: subject is not a string type - status code ok got: ''
expected: '200'
stream/re-gmatch.t TEST 11: subject is not a string type - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-12
-345
'
stream/re-gmatch.t TEST 11: subject is not a string type - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:43:10 [error] 18697\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/re-gmatch.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required
stream/re-gmatch.t TEST 1: matched, no submatch, no jit compile, no regex cache - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-gmatch.t TEST 1: matched, no submatch, no jit compile, no regex cache - status code ok got: ''
expected: '200'
stream/re-gmatch.t TEST 1: matched, no submatch, no jit compile, no regex cache - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-matched: hello
-matched: world
'
stream/re-gmatch.t TEST 1: matched, no submatch, no jit compile, no regex cache - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):4 loop\])" should match a line in error.log (req 0)
stream/re-gmatch.t TEST 1: matched, no submatch, no jit compile, no regex cache - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:43:14 [error] 18702\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/re-gmatch.t TEST 1: matched, no submatch, no jit compile, no regex cache - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-gmatch.t TEST 1: matched, no submatch, no jit compile, no regex cache - status code ok got: ''
expected: '200'
stream/re-gmatch.t TEST 1: matched, no submatch, no jit compile, no regex cache - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-matched: hello
-matched: world
'
stream/re-gmatch.t TEST 1: matched, no submatch, no jit compile, no regex cache - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):4 loop\])" should match a line in error.log (req 1)
stream/re-gmatch.t TEST 1: matched, no submatch, no jit compile, no regex cache - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:43:14 [error] 18702\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/re-gmatch.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required
stream/re-gmatch.t TEST 7: named submatches - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-gmatch.t TEST 7: named submatches - status code ok got: ''
expected: '200'
stream/re-gmatch.t TEST 7: named submatches - response_body - response is expected (repeated req 0, req 0) @@ -1,10 +0,0 @@
-matched: hello
-$1: h
-$2: ello
-$first: h
-$second: nil
-matched: world
-$1: w
-$2: orld
-$first: w
-$second: nil
'
stream/re-gmatch.t TEST 7: named submatches - pattern "(?^:\[TRACE\s+\d+\s+)" should match a line in error.log (req 0)
stream/re-gmatch.t TEST 7: named submatches - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:43:17 [error] 18707\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/re-gmatch.t TEST 7: named submatches - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-gmatch.t TEST 7: named submatches - status code ok got: ''
expected: '200'
stream/re-gmatch.t TEST 7: named submatches - response_body - response is expected (repeated req 1, req 0) @@ -1,10 +0,0 @@
-matched: hello
-$1: h
-$2: ello
-$first: h
-$second: nil
-matched: world
-$1: w
-$2: orld
-$first: w
-$second: nil
'
stream/re-gmatch.t TEST 7: named submatches - pattern "(?^:\[TRACE\s+\d+\s+)" should match a line in error.log (req 1)
stream/re-gmatch.t TEST 7: named submatches - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:43:17 [error] 18707\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/re-gmatch.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required
stream/re-gmatch.t TEST 8: unmatched captures are false - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-gmatch.t TEST 8: unmatched captures are false - status code ok got: ''
expected: '200'
stream/re-gmatch.t TEST 8: unmatched captures are false - response_body - response is expected (repeated req 0, req 0) @@ -1,8 +0,0 @@
-hello!
-hello
-false
-!
-world!
-world
-false
-!
'
stream/re-gmatch.t TEST 8: unmatched captures are false - pattern "(?^:\[TRACE\s+\d+\s+)" should match a line in error.log (req 0)
stream/re-gmatch.t TEST 8: unmatched captures are false - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:43:21 [error] 18712\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/re-gmatch.t TEST 8: unmatched captures are false - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-gmatch.t TEST 8: unmatched captures are false - status code ok got: ''
expected: '200'
stream/re-gmatch.t TEST 8: unmatched captures are false - response_body - response is expected (repeated req 1, req 0) @@ -1,8 +0,0 @@
-hello!
-hello
-false
-!
-world!
-world
-false
-!
'
stream/re-gmatch.t TEST 8: unmatched captures are false - pattern "(?^:\[TRACE\s+\d+\s+)" should match a line in error.log (req 1)
stream/re-gmatch.t TEST 8: unmatched captures are false - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:43:21 [error] 18712\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/re-gmatch.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required
stream/re-gmatch.t TEST 12: an exhausted gmatch iterator should return nil - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-gmatch.t TEST 12: an exhausted gmatch iterator should return nil - status code ok got: ''
expected: '200'
stream/re-gmatch.t TEST 12: an exhausted gmatch iterator should return nil - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-matched: hello
-matched: nil
-matched: nil
'
stream/re-gmatch.t TEST 12: an exhausted gmatch iterator should return nil - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:43:25 [error] 18717\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/re-gmatch.t TEST 12: an exhausted gmatch iterator should return nil - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-gmatch.t TEST 12: an exhausted gmatch iterator should return nil - status code ok got: ''
expected: '200'
stream/re-gmatch.t TEST 12: an exhausted gmatch iterator should return nil - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-matched: hello
-matched: nil
-matched: nil
'
stream/re-gmatch.t TEST 12: an exhausted gmatch iterator should return nil - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:43:25 [error] 18717\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/re-gmatch.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required
stream/re-gmatch.t TEST 6: submatches, matched, with regex cache - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-gmatch.t TEST 6: submatches, matched, with regex cache - status code ok got: ''
expected: '200'
stream/re-gmatch.t TEST 6: submatches, matched, with regex cache - response_body - response is expected (repeated req 0, req 0) @@ -1,8 +0,0 @@
-matched: hello
-$1: h
-$2: ello
-$3: nil
-matched: world
-$1: w
-$2: orld
-$3: nil
'
stream/re-gmatch.t TEST 6: submatches, matched, with regex cache - pattern "(?^:\[TRACE\s+\d+\s+)" should match a line in error.log (req 0)
stream/re-gmatch.t TEST 6: submatches, matched, with regex cache - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:43:28 [error] 18722\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/re-gmatch.t TEST 6: submatches, matched, with regex cache - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-gmatch.t TEST 6: submatches, matched, with regex cache - status code ok got: ''
expected: '200'
stream/re-gmatch.t TEST 6: submatches, matched, with regex cache - response_body - response is expected (repeated req 1, req 0) @@ -1,8 +0,0 @@
-matched: hello
-$1: h
-$2: ello
-$3: nil
-matched: world
-$1: w
-$2: orld
-$3: nil
'
stream/re-gmatch.t TEST 6: submatches, matched, with regex cache - pattern "(?^:\[TRACE\s+\d+\s+)" should match a line in error.log (req 1)
stream/re-gmatch.t TEST 6: submatches, matched, with regex cache - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:43:28 [error] 18722\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/re-gmatch.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required
stream/re-gmatch.t TEST 2: matched, no submatch, jit compile, regex cache - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-gmatch.t TEST 2: matched, no submatch, jit compile, regex cache - status code ok got: ''
expected: '200'
stream/re-gmatch.t TEST 2: matched, no submatch, jit compile, regex cache - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-matched: hello
-matched: world
'
stream/re-gmatch.t TEST 2: matched, no submatch, jit compile, regex cache - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):4 loop\])" should match a line in error.log (req 0)
stream/re-gmatch.t TEST 2: matched, no submatch, jit compile, regex cache - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:43:32 [error] 18727\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/re-gmatch.t TEST 2: matched, no submatch, jit compile, regex cache - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-gmatch.t TEST 2: matched, no submatch, jit compile, regex cache - status code ok got: ''
expected: '200'
stream/re-gmatch.t TEST 2: matched, no submatch, jit compile, regex cache - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-matched: hello
-matched: world
'
stream/re-gmatch.t TEST 2: matched, no submatch, jit compile, regex cache - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):4 loop\])" should match a line in error.log (req 1)
stream/re-gmatch.t TEST 2: matched, no submatch, jit compile, regex cache - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:43:32 [error] 18727\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/re-gmatch.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required
stream/re-gmatch.t TEST 14: each gmatch iterator is separate - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-gmatch.t TEST 14: each gmatch iterator is separate - status code ok got: ''
expected: '200'
stream/re-gmatch.t TEST 14: each gmatch iterator is separate - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-matched iter1 (1/2): 9
-matched iter2 (1/2): 1
-matched iter1 (2/2): 8
-matched iter2 (2/2): 2
'
stream/re-gmatch.t TEST 14: each gmatch iterator is separate - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:43:35 [error] 18732\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/re-gmatch.t TEST 14: each gmatch iterator is separate - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-gmatch.t TEST 14: each gmatch iterator is separate - status code ok got: ''
expected: '200'
stream/re-gmatch.t TEST 14: each gmatch iterator is separate - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +0,0 @@
-matched iter1 (1/2): 9
-matched iter2 (1/2): 1
-matched iter1 (2/2): 8
-matched iter2 (2/2): 2
'
stream/re-gmatch.t TEST 14: each gmatch iterator is separate - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:43:35 [error] 18732\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/re-gmatch.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required
stream/re-gmatch.t TEST 15: gmatch (empty matched string) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-gmatch.t TEST 15: gmatch (empty matched string) - status code ok got: ''
expected: '200'
stream/re-gmatch.t TEST 15: gmatch (empty matched string) - response_body - response is expected (repeated req 0, req 0) @@ -1,6 +0,0 @@
-matched: []
-matched: []
-matched: []
-matched: []
-matched: []
-matched: []
'
stream/re-gmatch.t TEST 15: gmatch (empty matched string) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-gmatch.t TEST 15: gmatch (empty matched string) - status code ok got: ''
expected: '200'
stream/re-gmatch.t TEST 15: gmatch (empty matched string) - response_body - response is expected (repeated req 1, req 0) @@ -1,6 +0,0 @@
-matched: []
-matched: []
-matched: []
-matched: []
-matched: []
-matched: []
'
stream/re-gmatch.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required
stream/re-gmatch.t TEST 4: not matched, no submatch, no jit compile, no regex cache - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-gmatch.t TEST 4: not matched, no submatch, no jit compile, no regex cache - status code ok got: ''
expected: '200'
stream/re-gmatch.t TEST 4: not matched, no submatch, no jit compile, no regex cache - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'no match
'
stream/re-gmatch.t TEST 4: not matched, no submatch, no jit compile, no regex cache - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):4 loop\])" should match a line in error.log (req 0)
stream/re-gmatch.t TEST 4: not matched, no submatch, no jit compile, no regex cache - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:43:42 [error] 18742\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/re-gmatch.t TEST 4: not matched, no submatch, no jit compile, no regex cache - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-gmatch.t TEST 4: not matched, no submatch, no jit compile, no regex cache - status code ok got: ''
expected: '200'
stream/re-gmatch.t TEST 4: not matched, no submatch, no jit compile, no regex cache - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'no match
'
stream/re-gmatch.t TEST 4: not matched, no submatch, no jit compile, no regex cache - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):4 loop\])" should match a line in error.log (req 1)
stream/re-gmatch.t TEST 4: not matched, no submatch, no jit compile, no regex cache - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:43:42 [error] 18742\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/re-gmatch.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required
stream/re-gmatch.t TEST 13: an error-ed out gmatch iterator should return nil - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-gmatch.t TEST 13: an error-ed out gmatch iterator should return nil - status code ok got: ''
expected: '200'
stream/re-gmatch.t TEST 13: an error-ed out gmatch iterator should return nil - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-error: pcre_exec() failed: -10
-not matched
'
stream/re-gmatch.t TEST 13: an error-ed out gmatch iterator should return nil - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:43:46 [error] 18747\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/re-gmatch.t TEST 13: an error-ed out gmatch iterator should return nil - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-gmatch.t TEST 13: an error-ed out gmatch iterator should return nil - status code ok got: ''
expected: '200'
stream/re-gmatch.t TEST 13: an error-ed out gmatch iterator should return nil - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-error: pcre_exec() failed: -10
-not matched
'
stream/re-gmatch.t TEST 13: an error-ed out gmatch iterator should return nil - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:43:46 [error] 18747\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/re-gmatch.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required
stream/re-gmatch.t TEST 3: not matched, no submatch, jit compile, regex cache - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-gmatch.t TEST 3: not matched, no submatch, jit compile, regex cache - status code ok got: ''
expected: '200'
stream/re-gmatch.t TEST 3: not matched, no submatch, jit compile, regex cache - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'no match
'
stream/re-gmatch.t TEST 3: not matched, no submatch, jit compile, regex cache - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):4 loop\])" should match a line in error.log (req 0)
stream/re-gmatch.t TEST 3: not matched, no submatch, jit compile, regex cache - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:43:49 [error] 18752\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/re-gmatch.t TEST 3: not matched, no submatch, jit compile, regex cache - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-gmatch.t TEST 3: not matched, no submatch, jit compile, regex cache - status code ok got: ''
expected: '200'
stream/re-gmatch.t TEST 3: not matched, no submatch, jit compile, regex cache - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'no match
'
stream/re-gmatch.t TEST 3: not matched, no submatch, jit compile, regex cache - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):4 loop\])" should match a line in error.log (req 1)
stream/re-gmatch.t TEST 3: not matched, no submatch, jit compile, regex cache - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:43:49 [error] 18752\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/re-gmatch.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required
stream/re-gmatch.t TEST 10: unmatched named captures are false - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-gmatch.t TEST 10: unmatched named captures are false - status code ok got: ''
expected: '200'
stream/re-gmatch.t TEST 10: unmatched named captures are false - response_body - response is expected (repeated req 0, req 0) @@ -1,14 +0,0 @@
-hello!
-hello
-false
-!
-hello
-false
-!
-world!
-world
-false
-!
-world
-false
-!
'
stream/re-gmatch.t TEST 10: unmatched named captures are false - pattern "(?^:\[TRACE\s+\d+\s+)" should match a line in error.log (req 0)
stream/re-gmatch.t TEST 10: unmatched named captures are false - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:43:53 [error] 18757\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/re-gmatch.t TEST 10: unmatched named captures are false - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-gmatch.t TEST 10: unmatched named captures are false - status code ok got: ''
expected: '200'
stream/re-gmatch.t TEST 10: unmatched named captures are false - response_body - response is expected (repeated req 1, req 0) @@ -1,14 +0,0 @@
-hello!
-hello
-false
-!
-hello
-false
-!
-world!
-world
-false
-!
-world
-false
-!
'
stream/re-gmatch.t TEST 10: unmatched named captures are false - pattern "(?^:\[TRACE\s+\d+\s+)" should match a line in error.log (req 1)
stream/re-gmatch.t TEST 10: unmatched named captures are false - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:43:53 [error] 18757\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/re-match.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required
stream/re-match.t TEST 10: captures input table in ngx.re.match - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-match.t TEST 10: captures input table in ngx.re.match - status code ok got: ''
expected: '200'
stream/re-match.t TEST 10: captures input table in ngx.re.match - response_body - response is expected (repeated req 0, req 0) @@ -1,6 +0,0 @@
-1234
-1
-2
-3
-4
-hello
'
stream/re-match.t TEST 10: captures input table in ngx.re.match - pattern "(?^:\[TRACE\s+\d+\s+)" should match a line in error.log (req 0)
stream/re-match.t TEST 10: captures input table in ngx.re.match - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:43:57 [error] 18766\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/re-match.t TEST 10: captures input table in ngx.re.match - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-match.t TEST 10: captures input table in ngx.re.match - status code ok got: ''
expected: '200'
stream/re-match.t TEST 10: captures input table in ngx.re.match - response_body - response is expected (repeated req 1, req 0) @@ -1,6 +0,0 @@
-1234
-1
-2
-3
-4
-hello
'
stream/re-match.t TEST 10: captures input table in ngx.re.match - pattern "(?^:\[TRACE\s+\d+\s+)" should match a line in error.log (req 1)
stream/re-match.t TEST 10: captures input table in ngx.re.match - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:43:57 [error] 18766\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/re-match.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required
stream/re-match.t TEST 13: unmatched named captures are false - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-match.t TEST 13: unmatched named captures are false - status code ok got: ''
expected: '200'
stream/re-match.t TEST 13: unmatched named captures are false - response_body - response is expected (repeated req 0, req 0) @@ -1,7 +0,0 @@
-hello!
-hello
-false
-!
-hello
-false
-!
'
stream/re-match.t TEST 13: unmatched named captures are false - pattern "(?^:\[TRACE\s+\d+\s+)" should match a line in error.log (req 0)
stream/re-match.t TEST 13: unmatched named captures are false - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:44:00 [error] 18771\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/re-match.t TEST 13: unmatched named captures are false - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-match.t TEST 13: unmatched named captures are false - status code ok got: ''
expected: '200'
stream/re-match.t TEST 13: unmatched named captures are false - response_body - response is expected (repeated req 1, req 0) @@ -1,7 +0,0 @@
-hello!
-hello
-false
-!
-hello
-false
-!
'
stream/re-match.t TEST 13: unmatched named captures are false - pattern "(?^:\[TRACE\s+\d+\s+)" should match a line in error.log (req 1)
stream/re-match.t TEST 13: unmatched named captures are false - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:44:00 [error] 18771\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/re-match.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required
stream/re-match.t TEST 14: subject is not a string type - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-match.t TEST 14: subject is not a string type - status code ok got: ''
expected: '200'
stream/re-match.t TEST 14: subject is not a string type - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-12345
-12345
'
stream/re-match.t TEST 14: subject is not a string type - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:44:04 [error] 18776\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/re-match.t TEST 14: subject is not a string type - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-match.t TEST 14: subject is not a string type - status code ok got: ''
expected: '200'
stream/re-match.t TEST 14: subject is not a string type - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-12345
-12345
'
stream/re-match.t TEST 14: subject is not a string type - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:44:04 [error] 18776\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/re-match.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required
stream/re-match.t TEST 3: not matched, no submatch, jit compile, regex cache - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-match.t TEST 3: not matched, no submatch, jit compile, regex cache - status code ok got: ''
expected: '200'
stream/re-match.t TEST 3: not matched, no submatch, jit compile, regex cache - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'no match
'
stream/re-match.t TEST 3: not matched, no submatch, jit compile, regex cache - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):4 loop\])" should match a line in error.log (req 0)
stream/re-match.t TEST 3: not matched, no submatch, jit compile, regex cache - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:44:07 [error] 18781\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/re-match.t TEST 3: not matched, no submatch, jit compile, regex cache - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-match.t TEST 3: not matched, no submatch, jit compile, regex cache - status code ok got: ''
expected: '200'
stream/re-match.t TEST 3: not matched, no submatch, jit compile, regex cache - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'no match
'
stream/re-match.t TEST 3: not matched, no submatch, jit compile, regex cache - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):4 loop\])" should match a line in error.log (req 1)
stream/re-match.t TEST 3: not matched, no submatch, jit compile, regex cache - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:44:07 [error] 18781\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/re-match.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required
stream/re-match.t TEST 2: matched, no submatch, jit compile, regex cache - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-match.t TEST 2: matched, no submatch, jit compile, regex cache - status code ok got: ''
expected: '200'
stream/re-match.t TEST 2: matched, no submatch, jit compile, regex cache - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-matched: a
-$1: nil
'
stream/re-match.t TEST 2: matched, no submatch, jit compile, regex cache - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):4 loop\])" should match a line in error.log (req 0)
stream/re-match.t TEST 2: matched, no submatch, jit compile, regex cache - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:44:11 [error] 18786\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/re-match.t TEST 2: matched, no submatch, jit compile, regex cache - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-match.t TEST 2: matched, no submatch, jit compile, regex cache - status code ok got: ''
expected: '200'
stream/re-match.t TEST 2: matched, no submatch, jit compile, regex cache - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-matched: a
-$1: nil
'
stream/re-match.t TEST 2: matched, no submatch, jit compile, regex cache - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):4 loop\])" should match a line in error.log (req 1)
stream/re-match.t TEST 2: matched, no submatch, jit compile, regex cache - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:44:11 [error] 18786\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/re-match.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required
stream/re-match.t TEST 12: unmatched trailing captures are false - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-match.t TEST 12: unmatched trailing captures are false - status code ok got: ''
expected: '200'
stream/re-match.t TEST 12: unmatched trailing captures are false - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-hello
-hello
-false
-false
'
stream/re-match.t TEST 12: unmatched trailing captures are false - pattern "(?^:\[TRACE\s+\d+\s+)" should match a line in error.log (req 0)
stream/re-match.t TEST 12: unmatched trailing captures are false - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:44:14 [error] 18791\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/re-match.t TEST 12: unmatched trailing captures are false - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-match.t TEST 12: unmatched trailing captures are false - status code ok got: ''
expected: '200'
stream/re-match.t TEST 12: unmatched trailing captures are false - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +0,0 @@
-hello
-hello
-false
-false
'
stream/re-match.t TEST 12: unmatched trailing captures are false - pattern "(?^:\[TRACE\s+\d+\s+)" should match a line in error.log (req 1)
stream/re-match.t TEST 12: unmatched trailing captures are false - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:44:14 [error] 18791\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/re-match.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required
stream/re-match.t TEST 15: subject is not a string type - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-match.t TEST 15: subject is not a string type - status code ok got: ''
expected: '200'
stream/re-match.t TEST 15: subject is not a string type - response_body - response is expected (repeated req 0, req 0) got: ''
expected: '123
'
stream/re-match.t TEST 15: subject is not a string type - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:44:18 [error] 18796\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/re-match.t TEST 15: subject is not a string type - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-match.t TEST 15: subject is not a string type - status code ok got: ''
expected: '200'
stream/re-match.t TEST 15: subject is not a string type - response_body - response is expected (repeated req 1, req 0) got: ''
expected: '123
'
stream/re-match.t TEST 15: subject is not a string type - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:44:18 [error] 18796\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/re-match.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required
stream/re-match.t TEST 4: not matched, no submatch, no jit compile, no regex cache - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-match.t TEST 4: not matched, no submatch, no jit compile, no regex cache - status code ok got: ''
expected: '200'
stream/re-match.t TEST 4: not matched, no submatch, no jit compile, no regex cache - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'no match
'
stream/re-match.t TEST 4: not matched, no submatch, no jit compile, no regex cache - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):4 loop\])" should match a line in error.log (req 0)
stream/re-match.t TEST 4: not matched, no submatch, no jit compile, no regex cache - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:44:22 [error] 18801\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/re-match.t TEST 4: not matched, no submatch, no jit compile, no regex cache - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-match.t TEST 4: not matched, no submatch, no jit compile, no regex cache - status code ok got: ''
expected: '200'
stream/re-match.t TEST 4: not matched, no submatch, no jit compile, no regex cache - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'no match
'
stream/re-match.t TEST 4: not matched, no submatch, no jit compile, no regex cache - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):4 loop\])" should match a line in error.log (req 1)
stream/re-match.t TEST 4: not matched, no submatch, no jit compile, no regex cache - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:44:22 [error] 18801\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/re-match.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required
stream/re-match.t TEST 8: named subpatterns w/ extraction (use of duplicate names in non-duplicate mode) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-match.t TEST 8: named subpatterns w/ extraction (use of duplicate names in non-duplicate mode) - status code ok got: ''
expected: '200'
stream/re-match.t TEST 8: named subpatterns w/ extraction (use of duplicate names in non-duplicate mode) - response_body_like - response is expected () ''
doesn't match '(?^s:error: pcre_compile\(\) failed: two named subpatterns have the same name)'
stream/re-match.t TEST 8: named subpatterns w/ extraction (use of duplicate names in non-duplicate mode) - pattern "(?^:\[TRACE\s+\d+)" should match a line in error.log (req 0)
stream/re-match.t TEST 8: named subpatterns w/ extraction (use of duplicate names in non-duplicate mode) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:44:25 [error] 18806\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/re-match.t TEST 8: named subpatterns w/ extraction (use of duplicate names in non-duplicate mode) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-match.t TEST 8: named subpatterns w/ extraction (use of duplicate names in non-duplicate mode) - status code ok got: ''
expected: '200'
stream/re-match.t TEST 8: named subpatterns w/ extraction (use of duplicate names in non-duplicate mode) - response_body_like - response is expected () ''
doesn't match '(?^s:error: pcre_compile\(\) failed: two named subpatterns have the same name)'
stream/re-match.t TEST 8: named subpatterns w/ extraction (use of duplicate names in non-duplicate mode) - pattern "(?^:\[TRACE\s+\d+)" should match a line in error.log (req 1)
stream/re-match.t TEST 8: named subpatterns w/ extraction (use of duplicate names in non-duplicate mode) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:44:25 [error] 18806\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/re-match.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required
stream/re-match.t TEST 6: submatches, matched, with regex cache - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-match.t TEST 6: submatches, matched, with regex cache - status code ok got: ''
expected: '200'
stream/re-match.t TEST 6: submatches, matched, with regex cache - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-matched: 1234
-$1: 1
-$2: 234
-$3: nil
'
stream/re-match.t TEST 6: submatches, matched, with regex cache - pattern "(?^:\[TRACE\s+\d+)" should match a line in error.log (req 0)
stream/re-match.t TEST 6: submatches, matched, with regex cache - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:44:29 [error] 18811\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/re-match.t TEST 6: submatches, matched, with regex cache - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-match.t TEST 6: submatches, matched, with regex cache - status code ok got: ''
expected: '200'
stream/re-match.t TEST 6: submatches, matched, with regex cache - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +0,0 @@
-matched: 1234
-$1: 1
-$2: 234
-$3: nil
'
stream/re-match.t TEST 6: submatches, matched, with regex cache - pattern "(?^:\[TRACE\s+\d+)" should match a line in error.log (req 1)
stream/re-match.t TEST 6: submatches, matched, with regex cache - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:44:29 [error] 18811\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/re-match.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required
stream/re-match.t TEST 11: unmatched captures are false - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-match.t TEST 11: unmatched captures are false - status code ok got: ''
expected: '200'
stream/re-match.t TEST 11: unmatched captures are false - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-hello!
-hello
-false
-!
'
stream/re-match.t TEST 11: unmatched captures are false - pattern "(?^:\[TRACE\s+\d+\s+)" should match a line in error.log (req 0)
stream/re-match.t TEST 11: unmatched captures are false - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:44:32 [error] 18816\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/re-match.t TEST 11: unmatched captures are false - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-match.t TEST 11: unmatched captures are false - status code ok got: ''
expected: '200'
stream/re-match.t TEST 11: unmatched captures are false - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +0,0 @@
-hello!
-hello
-false
-!
'
stream/re-match.t TEST 11: unmatched captures are false - pattern "(?^:\[TRACE\s+\d+\s+)" should match a line in error.log (req 1)
stream/re-match.t TEST 11: unmatched captures are false - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:44:32 [error] 18816\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/re-match.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required
stream/re-match.t TEST 7: named subpatterns w/ extraction (matched) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-match.t TEST 7: named subpatterns w/ extraction (matched) - status code ok got: ''
expected: '200'
stream/re-match.t TEST 7: named subpatterns w/ extraction (matched) - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-hello, 1234
-hello
-hello
-nil
'
stream/re-match.t TEST 7: named subpatterns w/ extraction (matched) - pattern "(?^:\[TRACE\s+\d+)" should match a line in error.log (req 0)
stream/re-match.t TEST 7: named subpatterns w/ extraction (matched) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:44:36 [error] 18821\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/re-match.t TEST 7: named subpatterns w/ extraction (matched) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-match.t TEST 7: named subpatterns w/ extraction (matched) - status code ok got: ''
expected: '200'
stream/re-match.t TEST 7: named subpatterns w/ extraction (matched) - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +0,0 @@
-hello, 1234
-hello
-hello
-nil
'
stream/re-match.t TEST 7: named subpatterns w/ extraction (matched) - pattern "(?^:\[TRACE\s+\d+)" should match a line in error.log (req 1)
stream/re-match.t TEST 7: named subpatterns w/ extraction (matched) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:44:36 [error] 18821\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/re-match.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required
stream/re-match.t TEST 1: matched, no submatch, no jit compile, no regex cache - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-match.t TEST 1: matched, no submatch, no jit compile, no regex cache - status code ok got: ''
expected: '200'
stream/re-match.t TEST 1: matched, no submatch, no jit compile, no regex cache - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-matched: a
-$1: nil
'
stream/re-match.t TEST 1: matched, no submatch, no jit compile, no regex cache - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):4 loop\])" should match a line in error.log (req 0)
stream/re-match.t TEST 1: matched, no submatch, no jit compile, no regex cache - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:44:39 [error] 18826\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/re-match.t TEST 1: matched, no submatch, no jit compile, no regex cache - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-match.t TEST 1: matched, no submatch, no jit compile, no regex cache - status code ok got: ''
expected: '200'
stream/re-match.t TEST 1: matched, no submatch, no jit compile, no regex cache - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-matched: a
-$1: nil
'
stream/re-match.t TEST 1: matched, no submatch, no jit compile, no regex cache - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):4 loop\])" should match a line in error.log (req 1)
stream/re-match.t TEST 1: matched, no submatch, no jit compile, no regex cache - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:44:39 [error] 18826\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/re-match.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required
stream/re-match.t TEST 9: named subpatterns w/ extraction (use of duplicate names in duplicate mode) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-match.t TEST 9: named subpatterns w/ extraction (use of duplicate names in duplicate mode) - status code ok got: ''
expected: '200'
stream/re-match.t TEST 9: named subpatterns w/ extraction (use of duplicate names in duplicate mode) - response_body_like - response is expected () ''
doesn't match '(?^s:hello, 1234
h
ello
h|ello
nil
)'
stream/re-match.t TEST 9: named subpatterns w/ extraction (use of duplicate names in duplicate mode) - pattern "(?^:\[TRACE\s+\d+)" should match a line in error.log (req 0)
stream/re-match.t TEST 9: named subpatterns w/ extraction (use of duplicate names in duplicate mode) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:44:43 [error] 18831\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/re-match.t TEST 9: named subpatterns w/ extraction (use of duplicate names in duplicate mode) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-match.t TEST 9: named subpatterns w/ extraction (use of duplicate names in duplicate mode) - status code ok got: ''
expected: '200'
stream/re-match.t TEST 9: named subpatterns w/ extraction (use of duplicate names in duplicate mode) - response_body_like - response is expected () ''
doesn't match '(?^s:hello, 1234
h
ello
h|ello
nil
)'
stream/re-match.t TEST 9: named subpatterns w/ extraction (use of duplicate names in duplicate mode) - pattern "(?^:\[TRACE\s+\d+)" should match a line in error.log (req 1)
stream/re-match.t TEST 9: named subpatterns w/ extraction (use of duplicate names in duplicate mode) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:44:43 [error] 18831\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/re-match.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required
stream/re-match.t TEST 5: submatches, matched, no regex cache - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-match.t TEST 5: submatches, matched, no regex cache - status code ok got: ''
expected: '200'
stream/re-match.t TEST 5: submatches, matched, no regex cache - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-matched: 1234
-$1: 1
-$2: 234
-$3: nil
'
stream/re-match.t TEST 5: submatches, matched, no regex cache - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:44:46 [error] 18836\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/re-match.t TEST 5: submatches, matched, no regex cache - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-match.t TEST 5: submatches, matched, no regex cache - status code ok got: ''
expected: '200'
stream/re-match.t TEST 5: submatches, matched, no regex cache - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +0,0 @@
-matched: 1234
-$1: 1
-$2: 234
-$3: nil
'
stream/re-match.t TEST 5: submatches, matched, no regex cache - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:44:46 [error] 18836\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/re-opt.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required
stream/re-opt.t TEST 2: increase jit_stack_size - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-opt.t TEST 2: increase jit_stack_size - status code ok got: ''
expected: '200'
stream/re-opt.t TEST 2: increase jit_stack_size - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'from: 1
to: 1563
'
stream/re-opt.t TEST 2: increase jit_stack_size - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:44:50 [error] 18845\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/re-opt.t TEST 2: increase jit_stack_size - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-opt.t TEST 2: increase jit_stack_size - status code ok got: ''
expected: '200'
stream/re-opt.t TEST 2: increase jit_stack_size - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'from: 1
to: 1563
'
stream/re-opt.t TEST 2: increase jit_stack_size - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:44:50 [error] 18845\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/re-opt.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required
stream/re-opt.t TEST 3: jit_stack_size change disallowed once regex cache is populated - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-opt.t TEST 3: jit_stack_size change disallowed once regex cache is populated - status code ok got: ''
expected: '200'
stream/re-opt.t TEST 3: jit_stack_size change disallowed once regex cache is populated - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'from: 8
to: 8
'
stream/re-opt.t TEST 3: jit_stack_size change disallowed once regex cache is populated - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-opt.t TEST 3: jit_stack_size change disallowed once regex cache is populated - status code ok got: ''
expected: '200'
stream/re-opt.t TEST 3: jit_stack_size change disallowed once regex cache is populated - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'from: 8
to: 8
'
stream/re-opt.t TEST 3: jit_stack_size change disallowed once regex cache is populated - grep_error_log_out (req 1) got: ''
expected: 'changing jit stack size is not allowed when some regexs have already been compiled and cached
'
stream/re-opt.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required
stream/re-opt.t TEST 4: passing unknown options to ngx_re.opt throws an error - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-opt.t TEST 4: passing unknown options to ngx_re.opt throws an error - status code ok got: ''
expected: '200'
stream/re-opt.t TEST 4: passing unknown options to ngx_re.opt throws an error - response_body_like - response is expected () ''
doesn't match '(?^s:unrecognized option name$)'
stream/re-opt.t TEST 4: passing unknown options to ngx_re.opt throws an error - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:44:57 [error] 18855\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/re-opt.t TEST 4: passing unknown options to ngx_re.opt throws an error - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-opt.t TEST 4: passing unknown options to ngx_re.opt throws an error - status code ok got: ''
expected: '200'
stream/re-opt.t TEST 4: passing unknown options to ngx_re.opt throws an error - response_body_like - response is expected () ''
doesn't match '(?^s:unrecognized option name$)'
stream/re-opt.t TEST 4: passing unknown options to ngx_re.opt throws an error - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:44:57 [error] 18855\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/re-opt.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required
stream/re-opt.t TEST 1: default jit_stack_size too small - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-opt.t TEST 1: default jit_stack_size too small - status code ok got: ''
expected: '200'
stream/re-opt.t TEST 1: default jit_stack_size too small - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'error: pcre_exec() failed: -27
'
stream/re-opt.t TEST 1: default jit_stack_size too small - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:45:01 [error] 18860\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/re-opt.t TEST 1: default jit_stack_size too small - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-opt.t TEST 1: default jit_stack_size too small - status code ok got: ''
expected: '200'
stream/re-opt.t TEST 1: default jit_stack_size too small - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'error: pcre_exec() failed: -27
'
stream/re-opt.t TEST 1: default jit_stack_size too small - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:45:01 [error] 18860\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/re-split.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required
stream/re-split.t TEST 11: split matches, provided res table - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-split.t TEST 11: split matches, provided res table - status code ok got: ''
expected: '200'
stream/re-split.t TEST 11: split matches, provided res table - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'a
b
c
d
e
'
stream/re-split.t TEST 11: split matches, provided res table - pattern "(?^:\[TRACE\s+\d+)" should match a line in error.log (req 0)
stream/re-split.t TEST 11: split matches, provided res table - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:45:05 [error] 18869\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/re-split.t TEST 11: split matches, provided res table - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-split.t TEST 11: split matches, provided res table - status code ok got: ''
expected: '200'
stream/re-split.t TEST 11: split matches, provided res table - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'a
b
c
d
e
'
stream/re-split.t TEST 11: split matches, provided res table - pattern "(?^:\[TRACE\s+\d+)" should match a line in error.log (req 1)
stream/re-split.t TEST 11: split matches, provided res table - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:45:05 [error] 18869\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/re-split.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required
stream/re-split.t TEST 30: behavior with /^/ differs from Perl's split - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-split.t TEST 30: behavior with /^/ differs from Perl's split - status code ok got: ''
expected: '200'
stream/re-split.t TEST 30: behavior with /^/ differs from Perl's split - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'ab
cd
ef
len: 1
'
stream/re-split.t TEST 30: behavior with /^/ differs from Perl's split - pattern "(?^:\[TRACE\s+\d+)" should match a line in error.log (req 0)
stream/re-split.t TEST 30: behavior with /^/ differs from Perl's split - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:45:08 [error] 18874\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/re-split.t TEST 30: behavior with /^/ differs from Perl's split - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-split.t TEST 30: behavior with /^/ differs from Perl's split - status code ok got: ''
expected: '200'
stream/re-split.t TEST 30: behavior with /^/ differs from Perl's split - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'ab
cd
ef
len: 1
'
stream/re-split.t TEST 30: behavior with /^/ differs from Perl's split - pattern "(?^:\[TRACE\s+\d+)" should match a line in error.log (req 1)
stream/re-split.t TEST 30: behavior with /^/ differs from Perl's split - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:45:08 [error] 18874\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/re-split.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required
stream/re-split.t TEST 19: split no matches - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-split.t TEST 19: split no matches - status code ok got: ''
expected: '200'
stream/re-split.t TEST 19: split no matches - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'abcd
'
stream/re-split.t TEST 19: split no matches - pattern "(?^:\[TRACE\s+\d+)" should match a line in error.log (req 0)
stream/re-split.t TEST 19: split no matches - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:45:12 [error] 18879\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/re-split.t TEST 19: split no matches - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-split.t TEST 19: split no matches - status code ok got: ''
expected: '200'
stream/re-split.t TEST 19: split no matches - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'abcd
'
stream/re-split.t TEST 19: split no matches - pattern "(?^:\[TRACE\s+\d+)" should match a line in error.log (req 1)
stream/re-split.t TEST 19: split no matches - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:45:12 [error] 18879\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/re-split.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required
stream/re-split.t TEST 10: split matches + max limiter set to 1 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-split.t TEST 10: split matches + max limiter set to 1 - status code ok got: ''
expected: '200'
stream/re-split.t TEST 10: split matches + max limiter set to 1 - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'a,b,c,d,e
'
stream/re-split.t TEST 10: split matches + max limiter set to 1 - pattern "(?^:\[TRACE\s+\d+)" should match a line in error.log (req 0)
stream/re-split.t TEST 10: split matches + max limiter set to 1 - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:45:15 [error] 18884\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/re-split.t TEST 10: split matches + max limiter set to 1 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-split.t TEST 10: split matches + max limiter set to 1 - status code ok got: ''
expected: '200'
stream/re-split.t TEST 10: split matches + max limiter set to 1 - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'a,b,c,d,e
'
stream/re-split.t TEST 10: split matches + max limiter set to 1 - pattern "(?^:\[TRACE\s+\d+)" should match a line in error.log (req 1)
stream/re-split.t TEST 10: split matches + max limiter set to 1 - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:45:15 [error] 18884\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/re-split.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required
stream/re-split.t TEST 16: split matches, ctx arg - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-split.t TEST 16: split matches, ctx arg - status code ok got: ''
expected: '200'
stream/re-split.t TEST 16: split matches, ctx arg - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'c
d
e
'
stream/re-split.t TEST 16: split matches, ctx arg - pattern "(?^:\[TRACE\s+\d+)" should match a line in error.log (req 0)
stream/re-split.t TEST 16: split matches, ctx arg - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:45:19 [error] 18889\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/re-split.t TEST 16: split matches, ctx arg - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-split.t TEST 16: split matches, ctx arg - status code ok got: ''
expected: '200'
stream/re-split.t TEST 16: split matches, ctx arg - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'c
d
e
'
stream/re-split.t TEST 16: split matches, ctx arg - pattern "(?^:\[TRACE\s+\d+)" should match a line in error.log (req 1)
stream/re-split.t TEST 16: split matches, ctx arg - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:45:19 [error] 18889\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/re-split.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required
stream/re-split.t TEST 21: split matches, pos is larger than subject length - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-split.t TEST 21: split matches, pos is larger than subject length - status code ok got: ''
expected: '200'
stream/re-split.t TEST 21: split matches, pos is larger than subject length - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'len: 0
'
stream/re-split.t TEST 21: split matches, pos is larger than subject length - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:45:22 [error] 18894\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/re-split.t TEST 21: split matches, pos is larger than subject length - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-split.t TEST 21: split matches, pos is larger than subject length - status code ok got: ''
expected: '200'
stream/re-split.t TEST 21: split matches, pos is larger than subject length - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'len: 0
'
stream/re-split.t TEST 21: split matches, pos is larger than subject length - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:45:22 [error] 18894\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/re-split.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required
stream/re-split.t TEST 15: split matches, provided res table + max limiter + sub-match capturing group - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-split.t TEST 15: split matches, provided res table + max limiter + sub-match capturing group - status code ok got: ''
expected: '200'
stream/re-split.t TEST 15: split matches, provided res table + max limiter + sub-match capturing group - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'a
,
b
,
c,d,e
'
stream/re-split.t TEST 15: split matches, provided res table + max limiter + sub-match capturing group - pattern "(?^:\[TRACE\s+\d+)" should match a line in error.log (req 0)
stream/re-split.t TEST 15: split matches, provided res table + max limiter + sub-match capturing group - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:45:26 [error] 18899\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/re-split.t TEST 15: split matches, provided res table + max limiter + sub-match capturing group - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-split.t TEST 15: split matches, provided res table + max limiter + sub-match capturing group - status code ok got: ''
expected: '200'
stream/re-split.t TEST 15: split matches, provided res table + max limiter + sub-match capturing group - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'a
,
b
,
c,d,e
'
stream/re-split.t TEST 15: split matches, provided res table + max limiter + sub-match capturing group - pattern "(?^:\[TRACE\s+\d+)" should match a line in error.log (req 1)
stream/re-split.t TEST 15: split matches, provided res table + max limiter + sub-match capturing group - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:45:26 [error] 18899\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/re-split.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required
stream/re-split.t TEST 24: regex is "" with pos - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-split.t TEST 24: regex is "" with pos - status code ok got: ''
expected: '200'
stream/re-split.t TEST 24: regex is "" with pos - response_body - response is expected (repeated req 0, req 0) got: ''
expected: '2
3
4
5
len: 4
'
stream/re-split.t TEST 24: regex is "" with pos - pattern "(?^:\[TRACE\s+\d+)" should match a line in error.log (req 0)
stream/re-split.t TEST 24: regex is "" with pos - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:45:29 [error] 18904\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/re-split.t TEST 24: regex is "" with pos - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-split.t TEST 24: regex is "" with pos - status code ok got: ''
expected: '200'
stream/re-split.t TEST 24: regex is "" with pos - response_body - response is expected (repeated req 1, req 0) got: ''
expected: '2
3
4
5
len: 4
'
stream/re-split.t TEST 24: regex is "" with pos - pattern "(?^:\[TRACE\s+\d+)" should match a line in error.log (req 1)
stream/re-split.t TEST 24: regex is "" with pos - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:45:29 [error] 18904\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/re-split.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required
stream/re-split.t TEST 2: split matches, no submatch, no jit compile, no regex cache - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-split.t TEST 2: split matches, no submatch, no jit compile, no regex cache - status code ok got: ''
expected: '200'
stream/re-split.t TEST 2: split matches, no submatch, no jit compile, no regex cache - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'a
b
c
d;e
'
stream/re-split.t TEST 2: split matches, no submatch, no jit compile, no regex cache - pattern "(?^:\[TRACE\s+\d+)" should match a line in error.log (req 0)
stream/re-split.t TEST 2: split matches, no submatch, no jit compile, no regex cache - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:45:33 [error] 18909\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/re-split.t TEST 2: split matches, no submatch, no jit compile, no regex cache - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-split.t TEST 2: split matches, no submatch, no jit compile, no regex cache - status code ok got: ''
expected: '200'
stream/re-split.t TEST 2: split matches, no submatch, no jit compile, no regex cache - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'a
b
c
d;e
'
stream/re-split.t TEST 2: split matches, no submatch, no jit compile, no regex cache - pattern "(?^:\[TRACE\s+\d+)" should match a line in error.log (req 1)
stream/re-split.t TEST 2: split matches, no submatch, no jit compile, no regex cache - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:45:33 [error] 18909\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/re-split.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required
stream/re-split.t TEST 12: split matches, provided res table (non-cleared) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-split.t TEST 12: split matches, provided res table (non-cleared) - status code ok got: ''
expected: '200'
stream/re-split.t TEST 12: split matches, provided res table (non-cleared) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'a
b
c
d
e
'
stream/re-split.t TEST 12: split matches, provided res table (non-cleared) - pattern "(?^:\[TRACE\s+\d+)" should match a line in error.log (req 0)
stream/re-split.t TEST 12: split matches, provided res table (non-cleared) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:45:37 [error] 18914\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/re-split.t TEST 12: split matches, provided res table (non-cleared) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-split.t TEST 12: split matches, provided res table (non-cleared) - status code ok got: ''
expected: '200'
stream/re-split.t TEST 12: split matches, provided res table (non-cleared) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'a
b
c
d
e
'
stream/re-split.t TEST 12: split matches, provided res table (non-cleared) - pattern "(?^:\[TRACE\s+\d+)" should match a line in error.log (req 1)
stream/re-split.t TEST 12: split matches, provided res table (non-cleared) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:45:37 [error] 18914\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/re-split.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required
stream/re-split.t TEST 31: behavior with /^/m - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-split.t TEST 31: behavior with /^/m - status code ok got: ''
expected: '200'
stream/re-split.t TEST 31: behavior with /^/m - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'ab
:cd
:ef
len: 3
'
stream/re-split.t TEST 31: behavior with /^/m - pattern "(?^:\[TRACE\s+\d+)" should match a line in error.log (req 0)
stream/re-split.t TEST 31: behavior with /^/m - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:45:40 [error] 18919\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/re-split.t TEST 31: behavior with /^/m - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-split.t TEST 31: behavior with /^/m - status code ok got: ''
expected: '200'
stream/re-split.t TEST 31: behavior with /^/m - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'ab
:cd
:ef
len: 3
'
stream/re-split.t TEST 31: behavior with /^/m - pattern "(?^:\[TRACE\s+\d+)" should match a line in error.log (req 1)
stream/re-split.t TEST 31: behavior with /^/m - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:45:40 [error] 18919\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/re-split.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required
stream/re-split.t TEST 18: split matches, real use-case - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-split.t TEST 18: split matches, real use-case - status code ok got: ''
expected: '200'
stream/re-split.t TEST 18: split matches, real use-case - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'abcd
erfg
ghij
hello world
aaa
'
stream/re-split.t TEST 18: split matches, real use-case - pattern "(?^:\[TRACE\s+\d+)" should match a line in error.log (req 0)
stream/re-split.t TEST 18: split matches, real use-case - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:45:44 [error] 18924\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/re-split.t TEST 18: split matches, real use-case - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-split.t TEST 18: split matches, real use-case - status code ok got: ''
expected: '200'
stream/re-split.t TEST 18: split matches, real use-case - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'abcd
erfg
ghij
hello world
aaa
'
stream/re-split.t TEST 18: split matches, real use-case - pattern "(?^:\[TRACE\s+\d+)" should match a line in error.log (req 1)
stream/re-split.t TEST 18: split matches, real use-case - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:45:44 [error] 18924\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/re-split.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required
stream/re-split.t TEST 32: behavior with /^()/m (capture) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-split.t TEST 32: behavior with /^()/m (capture) - status code ok got: ''
expected: '200'
stream/re-split.t TEST 32: behavior with /^()/m (capture) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'ab
::cd
::ef
len: 5
'
stream/re-split.t TEST 32: behavior with /^()/m (capture) - pattern "(?^:\[TRACE\s+\d+)" should match a line in error.log (req 0)
stream/re-split.t TEST 32: behavior with /^()/m (capture) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:45:47 [error] 18929\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/re-split.t TEST 32: behavior with /^()/m (capture) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-split.t TEST 32: behavior with /^()/m (capture) - status code ok got: ''
expected: '200'
stream/re-split.t TEST 32: behavior with /^()/m (capture) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'ab
::cd
::ef
len: 5
'
stream/re-split.t TEST 32: behavior with /^()/m (capture) - pattern "(?^:\[TRACE\s+\d+)" should match a line in error.log (req 1)
stream/re-split.t TEST 32: behavior with /^()/m (capture) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:45:47 [error] 18929\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/re-split.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required
stream/re-split.t TEST 1: split matches, no submatch, no jit compile, no regex cache - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-split.t TEST 1: split matches, no submatch, no jit compile, no regex cache - status code ok got: ''
expected: '200'
stream/re-split.t TEST 1: split matches, no submatch, no jit compile, no regex cache - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'a
b
c
d
'
stream/re-split.t TEST 1: split matches, no submatch, no jit compile, no regex cache - pattern "(?^:\[TRACE\s+\d+)" should match a line in error.log (req 0)
stream/re-split.t TEST 1: split matches, no submatch, no jit compile, no regex cache - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:45:51 [error] 18934\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/re-split.t TEST 1: split matches, no submatch, no jit compile, no regex cache - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-split.t TEST 1: split matches, no submatch, no jit compile, no regex cache - status code ok got: ''
expected: '200'
stream/re-split.t TEST 1: split matches, no submatch, no jit compile, no regex cache - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'a
b
c
d
'
stream/re-split.t TEST 1: split matches, no submatch, no jit compile, no regex cache - pattern "(?^:\[TRACE\s+\d+)" should match a line in error.log (req 1)
stream/re-split.t TEST 1: split matches, no submatch, no jit compile, no regex cache - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:45:51 [error] 18934\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/re-split.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required
stream/re-split.t TEST 25: regex is "" with pos larger than subject length - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-split.t TEST 25: regex is "" with pos larger than subject length - status code ok got: ''
expected: '200'
stream/re-split.t TEST 25: regex is "" with pos larger than subject length - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'len: 0
'
stream/re-split.t TEST 25: regex is "" with pos larger than subject length - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:45:54 [error] 18939\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/re-split.t TEST 25: regex is "" with pos larger than subject length - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-split.t TEST 25: regex is "" with pos larger than subject length - status code ok got: ''
expected: '200'
stream/re-split.t TEST 25: regex is "" with pos larger than subject length - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'len: 0
'
stream/re-split.t TEST 25: regex is "" with pos larger than subject length - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:45:54 [error] 18939\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/re-split.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required
stream/re-split.t TEST 3: split matches, no submatch, jit compile, regex cache - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-split.t TEST 3: split matches, no submatch, jit compile, regex cache - status code ok got: ''
expected: '200'
stream/re-split.t TEST 3: split matches, no submatch, jit compile, regex cache - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'a
b
c
d
'
stream/re-split.t TEST 3: split matches, no submatch, jit compile, regex cache - pattern "(?^:\[TRACE\s+\d+)" should match a line in error.log (req 0)
stream/re-split.t TEST 3: split matches, no submatch, jit compile, regex cache - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:45:58 [error] 18944\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/re-split.t TEST 3: split matches, no submatch, jit compile, regex cache - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-split.t TEST 3: split matches, no submatch, jit compile, regex cache - status code ok got: ''
expected: '200'
stream/re-split.t TEST 3: split matches, no submatch, jit compile, regex cache - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'a
b
c
d
'
stream/re-split.t TEST 3: split matches, no submatch, jit compile, regex cache - pattern "(?^:\[TRACE\s+\d+)" should match a line in error.log (req 1)
stream/re-split.t TEST 3: split matches, no submatch, jit compile, regex cache - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:45:58 [error] 18944\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/re-split.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required
stream/re-split.t TEST 8: split matches + max limiter set to 0 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-split.t TEST 8: split matches + max limiter set to 0 - status code ok got: ''
expected: '200'
stream/re-split.t TEST 8: split matches + max limiter set to 0 - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'a
b
c
d
e
'
stream/re-split.t TEST 8: split matches + max limiter set to 0 - pattern "(?^:\[TRACE\s+\d+)" should match a line in error.log (req 0)
stream/re-split.t TEST 8: split matches + max limiter set to 0 - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:46:01 [error] 18949\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/re-split.t TEST 8: split matches + max limiter set to 0 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-split.t TEST 8: split matches + max limiter set to 0 - status code ok got: ''
expected: '200'
stream/re-split.t TEST 8: split matches + max limiter set to 0 - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'a
b
c
d
e
'
stream/re-split.t TEST 8: split matches + max limiter set to 0 - pattern "(?^:\[TRACE\s+\d+)" should match a line in error.log (req 1)
stream/re-split.t TEST 8: split matches + max limiter set to 0 - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:46:01 [error] 18949\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/re-split.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required
stream/re-split.t TEST 7: split matches + submatch + max limiter - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-split.t TEST 7: split matches + submatch + max limiter - status code ok got: ''
expected: '200'
stream/re-split.t TEST 7: split matches + submatch + max limiter - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'a
,
b
,
c,d,e
'
stream/re-split.t TEST 7: split matches + submatch + max limiter - pattern "(?^:\[TRACE\s+\d+)" should match a line in error.log (req 0)
stream/re-split.t TEST 7: split matches + submatch + max limiter - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:46:05 [error] 18954\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/re-split.t TEST 7: split matches + submatch + max limiter - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-split.t TEST 7: split matches + submatch + max limiter - status code ok got: ''
expected: '200'
stream/re-split.t TEST 7: split matches + submatch + max limiter - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'a
,
b
,
c,d,e
'
stream/re-split.t TEST 7: split matches + submatch + max limiter - pattern "(?^:\[TRACE\s+\d+)" should match a line in error.log (req 1)
stream/re-split.t TEST 7: split matches + submatch + max limiter - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:46:05 [error] 18954\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/re-split.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required
stream/re-split.t TEST 33: behavior with /^/m & max - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-split.t TEST 33: behavior with /^/m & max - status code ok got: ''
expected: '200'
stream/re-split.t TEST 33: behavior with /^/m & max - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'ab
:cd
ef
len: 2
'
stream/re-split.t TEST 33: behavior with /^/m & max - pattern "(?^:\[TRACE\s+\d+)" should match a line in error.log (req 0)
stream/re-split.t TEST 33: behavior with /^/m & max - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:46:08 [error] 18959\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/re-split.t TEST 33: behavior with /^/m & max - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-split.t TEST 33: behavior with /^/m & max - status code ok got: ''
expected: '200'
stream/re-split.t TEST 33: behavior with /^/m & max - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'ab
:cd
ef
len: 2
'
stream/re-split.t TEST 33: behavior with /^/m & max - pattern "(?^:\[TRACE\s+\d+)" should match a line in error.log (req 1)
stream/re-split.t TEST 33: behavior with /^/m & max - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:46:08 [error] 18959\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/re-split.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required
stream/re-split.t TEST 4: split matches + submatch (matching) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-split.t TEST 4: split matches + submatch (matching) - status code ok got: ''
expected: '200'
stream/re-split.t TEST 4: split matches + submatch (matching) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'a
;
b
;
c
;
d,e
'
stream/re-split.t TEST 4: split matches + submatch (matching) - pattern "(?^:\[TRACE\s+\d+)" should match a line in error.log (req 0)
stream/re-split.t TEST 4: split matches + submatch (matching) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:46:12 [error] 18964\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/re-split.t TEST 4: split matches + submatch (matching) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-split.t TEST 4: split matches + submatch (matching) - status code ok got: ''
expected: '200'
stream/re-split.t TEST 4: split matches + submatch (matching) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'a
;
b
;
c
;
d,e
'
stream/re-split.t TEST 4: split matches + submatch (matching) - pattern "(?^:\[TRACE\s+\d+)" should match a line in error.log (req 1)
stream/re-split.t TEST 4: split matches + submatch (matching) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:46:12 [error] 18964\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/re-split.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required
stream/re-split.t TEST 35: behavior with /^(\d)/m (capture) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-split.t TEST 35: behavior with /^(\d)/m (capture) - status code ok got: ''
expected: '200'
stream/re-split.t TEST 35: behavior with /^(\d)/m (capture) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'ab
:1:cdefg
:2:hij
len: 5
'
stream/re-split.t TEST 35: behavior with /^(\d)/m (capture) - pattern "(?^:\[TRACE\s+\d+)" should match a line in error.log (req 0)
stream/re-split.t TEST 35: behavior with /^(\d)/m (capture) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:46:15 [error] 18969\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/re-split.t TEST 35: behavior with /^(\d)/m (capture) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-split.t TEST 35: behavior with /^(\d)/m (capture) - status code ok got: ''
expected: '200'
stream/re-split.t TEST 35: behavior with /^(\d)/m (capture) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'ab
:1:cdefg
:2:hij
len: 5
'
stream/re-split.t TEST 35: behavior with /^(\d)/m (capture) - pattern "(?^:\[TRACE\s+\d+)" should match a line in error.log (req 1)
stream/re-split.t TEST 35: behavior with /^(\d)/m (capture) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:46:15 [error] 18969\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/re-split.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required
stream/re-split.t TEST 14: split matches, provided res table (non-cleared) + max limiter - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-split.t TEST 14: split matches, provided res table (non-cleared) + max limiter - status code ok got: ''
expected: '200'
stream/re-split.t TEST 14: split matches, provided res table (non-cleared) + max limiter - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'a
b
c,d,e
'
stream/re-split.t TEST 14: split matches, provided res table (non-cleared) + max limiter - pattern "(?^:\[TRACE\s+\d+)" should match a line in error.log (req 0)
stream/re-split.t TEST 14: split matches, provided res table (non-cleared) + max limiter - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:46:19 [error] 18974\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/re-split.t TEST 14: split matches, provided res table (non-cleared) + max limiter - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-split.t TEST 14: split matches, provided res table (non-cleared) + max limiter - status code ok got: ''
expected: '200'
stream/re-split.t TEST 14: split matches, provided res table (non-cleared) + max limiter - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'a
b
c,d,e
'
stream/re-split.t TEST 14: split matches, provided res table (non-cleared) + max limiter - pattern "(?^:\[TRACE\s+\d+)" should match a line in error.log (req 1)
stream/re-split.t TEST 14: split matches, provided res table (non-cleared) + max limiter - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:46:19 [error] 18974\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/re-split.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required
stream/re-split.t TEST 22: regex is "" - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-split.t TEST 22: regex is "" - status code ok got: ''
expected: '200'
stream/re-split.t TEST 22: regex is "" - response_body - response is expected (repeated req 0, req 0) got: ''
expected: '1
2
3
4
5
len: 5
'
stream/re-split.t TEST 22: regex is "" - pattern "(?^:\[TRACE\s+\d+)" should match a line in error.log (req 0)
stream/re-split.t TEST 22: regex is "" - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:46:23 [error] 18979\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/re-split.t TEST 22: regex is "" - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-split.t TEST 22: regex is "" - status code ok got: ''
expected: '200'
stream/re-split.t TEST 22: regex is "" - response_body - response is expected (repeated req 1, req 0) got: ''
expected: '1
2
3
4
5
len: 5
'
stream/re-split.t TEST 22: regex is "" - pattern "(?^:\[TRACE\s+\d+)" should match a line in error.log (req 1)
stream/re-split.t TEST 22: regex is "" - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:46:23 [error] 18979\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/re-split.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required
stream/re-split.t TEST 37: split by unit separator 2/2 (with ctx.pos) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-split.t TEST 37: split by unit separator 2/2 (with ctx.pos) - status code ok got: ''
expected: '200'
stream/re-split.t TEST 37: split by unit separator 2/2 (with ctx.pos) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: '12 |||||||||||15
13 ||||||||||||15
13 |T|||||||||||15
'
stream/re-split.t TEST 37: split by unit separator 2/2 (with ctx.pos) - pattern "(?^:\[TRACE\s+\d+)" should match a line in error.log (req 0)
stream/re-split.t TEST 37: split by unit separator 2/2 (with ctx.pos) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:46:26 [error] 18984\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/re-split.t TEST 37: split by unit separator 2/2 (with ctx.pos) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-split.t TEST 37: split by unit separator 2/2 (with ctx.pos) - status code ok got: ''
expected: '200'
stream/re-split.t TEST 37: split by unit separator 2/2 (with ctx.pos) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: '12 |||||||||||15
13 ||||||||||||15
13 |T|||||||||||15
'
stream/re-split.t TEST 37: split by unit separator 2/2 (with ctx.pos) - pattern "(?^:\[TRACE\s+\d+)" should match a line in error.log (req 1)
stream/re-split.t TEST 37: split by unit separator 2/2 (with ctx.pos) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:46:26 [error] 18984\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/re-split.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required
stream/re-split.t TEST 9: split matches + max limiter set to a negative value - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-split.t TEST 9: split matches + max limiter set to a negative value - status code ok got: ''
expected: '200'
stream/re-split.t TEST 9: split matches + max limiter set to a negative value - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'a
b
c
d
e
'
stream/re-split.t TEST 9: split matches + max limiter set to a negative value - pattern "(?^:\[TRACE\s+\d+)" should match a line in error.log (req 0)
stream/re-split.t TEST 9: split matches + max limiter set to a negative value - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:46:30 [error] 18989\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/re-split.t TEST 9: split matches + max limiter set to a negative value - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-split.t TEST 9: split matches + max limiter set to a negative value - status code ok got: ''
expected: '200'
stream/re-split.t TEST 9: split matches + max limiter set to a negative value - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'a
b
c
d
e
'
stream/re-split.t TEST 9: split matches + max limiter set to a negative value - pattern "(?^:\[TRACE\s+\d+)" should match a line in error.log (req 1)
stream/re-split.t TEST 9: split matches + max limiter set to a negative value - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:46:30 [error] 18989\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/re-split.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required
stream/re-split.t TEST 23: regex is "" with max - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-split.t TEST 23: regex is "" with max - status code ok got: ''
expected: '200'
stream/re-split.t TEST 23: regex is "" with max - response_body - response is expected (repeated req 0, req 0) got: ''
expected: '1
2
345
len: 3
'
stream/re-split.t TEST 23: regex is "" with max - pattern "(?^:\[TRACE\s+\d+)" should match a line in error.log (req 0)
stream/re-split.t TEST 23: regex is "" with max - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:46:33 [error] 18994\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/re-split.t TEST 23: regex is "" with max - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-split.t TEST 23: regex is "" with max - status code ok got: ''
expected: '200'
stream/re-split.t TEST 23: regex is "" with max - response_body - response is expected (repeated req 1, req 0) got: ''
expected: '1
2
345
len: 3
'
stream/re-split.t TEST 23: regex is "" with max - pattern "(?^:\[TRACE\s+\d+)" should match a line in error.log (req 1)
stream/re-split.t TEST 23: regex is "" with max - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:46:33 [error] 18994\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/re-split.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required
stream/re-split.t TEST 27: no match separator (github issue \#104) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-split.t TEST 27: no match separator (github issue \#104) - status code ok got: ''
expected: '200'
stream/re-split.t TEST 27: no match separator (github issue \#104) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'a:b:c:d
len: 4
'
stream/re-split.t TEST 27: no match separator (github issue \#104) - pattern "(?^:\[TRACE\s+\d+)" should match a line in error.log (req 0)
stream/re-split.t TEST 27: no match separator (github issue \#104) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:46:37 [error] 18999\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/re-split.t TEST 27: no match separator (github issue \#104) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-split.t TEST 27: no match separator (github issue \#104) - status code ok got: ''
expected: '200'
stream/re-split.t TEST 27: no match separator (github issue \#104) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'a:b:c:d
len: 4
'
stream/re-split.t TEST 27: no match separator (github issue \#104) - pattern "(?^:\[TRACE\s+\d+)" should match a line in error.log (req 1)
stream/re-split.t TEST 27: no match separator (github issue \#104) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:46:37 [error] 18999\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/re-split.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required
stream/re-split.t TEST 38: remaining characters are matched by regex (without max) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-split.t TEST 38: remaining characters are matched by regex (without max) - status code ok got: ''
expected: '200'
stream/re-split.t TEST 38: remaining characters are matched by regex (without max) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: '3 a|b|cd
'
stream/re-split.t TEST 38: remaining characters are matched by regex (without max) - pattern "(?^:\[TRACE\s+\d+)" should match a line in error.log (req 0)
stream/re-split.t TEST 38: remaining characters are matched by regex (without max) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:46:40 [error] 19004\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/re-split.t TEST 38: remaining characters are matched by regex (without max) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-split.t TEST 38: remaining characters are matched by regex (without max) - status code ok got: ''
expected: '200'
stream/re-split.t TEST 38: remaining characters are matched by regex (without max) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: '3 a|b|cd
'
stream/re-split.t TEST 38: remaining characters are matched by regex (without max) - pattern "(?^:\[TRACE\s+\d+)" should match a line in error.log (req 1)
stream/re-split.t TEST 38: remaining characters are matched by regex (without max) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:46:40 [error] 19004\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/re-split.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required
stream/re-split.t TEST 13: split matches, provided res table + max limiter - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-split.t TEST 13: split matches, provided res table + max limiter - status code ok got: ''
expected: '200'
stream/re-split.t TEST 13: split matches, provided res table + max limiter - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'a
b
c,d,e
'
stream/re-split.t TEST 13: split matches, provided res table + max limiter - pattern "(?^:\[TRACE\s+\d+)" should match a line in error.log (req 0)
stream/re-split.t TEST 13: split matches, provided res table + max limiter - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:46:44 [error] 19009\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/re-split.t TEST 13: split matches, provided res table + max limiter - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-split.t TEST 13: split matches, provided res table + max limiter - status code ok got: ''
expected: '200'
stream/re-split.t TEST 13: split matches, provided res table + max limiter - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'a
b
c,d,e
'
stream/re-split.t TEST 13: split matches, provided res table + max limiter - pattern "(?^:\[TRACE\s+\d+)" should match a line in error.log (req 1)
stream/re-split.t TEST 13: split matches, provided res table + max limiter - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:46:44 [error] 19009\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/re-split.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required
stream/re-split.t TEST 20: subject is not a string type - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-split.t TEST 20: subject is not a string type - status code ok got: ''
expected: '200'
stream/re-split.t TEST 20: subject is not a string type - response_body - response is expected (repeated req 0, req 0) got: ''
expected: '1
451
45
'
stream/re-split.t TEST 20: subject is not a string type - pattern "(?^:\[TRACE\s+\d+)" should match a line in error.log (req 0)
stream/re-split.t TEST 20: subject is not a string type - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:46:47 [error] 19014\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/re-split.t TEST 20: subject is not a string type - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-split.t TEST 20: subject is not a string type - status code ok got: ''
expected: '200'
stream/re-split.t TEST 20: subject is not a string type - response_body - response is expected (repeated req 1, req 0) got: ''
expected: '1
451
45
'
stream/re-split.t TEST 20: subject is not a string type - pattern "(?^:\[TRACE\s+\d+)" should match a line in error.log (req 1)
stream/re-split.t TEST 20: subject is not a string type - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:46:47 [error] 19014\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/re-split.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required
stream/re-split.t TEST 29: no match separator bis (github issue \#104) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-split.t TEST 29: no match separator bis (github issue \#104) - status code ok got: ''
expected: '200'
stream/re-split.t TEST 29: no match separator bis (github issue \#104) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'a::b::c::d
len: 7
'
stream/re-split.t TEST 29: no match separator bis (github issue \#104) - pattern "(?^:\[TRACE\s+\d+)" should match a line in error.log (req 0)
stream/re-split.t TEST 29: no match separator bis (github issue \#104) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:46:51 [error] 19019\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/re-split.t TEST 29: no match separator bis (github issue \#104) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-split.t TEST 29: no match separator bis (github issue \#104) - status code ok got: ''
expected: '200'
stream/re-split.t TEST 29: no match separator bis (github issue \#104) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'a::b::c::d
len: 7
'
stream/re-split.t TEST 29: no match separator bis (github issue \#104) - pattern "(?^:\[TRACE\s+\d+)" should match a line in error.log (req 1)
stream/re-split.t TEST 29: no match separator bis (github issue \#104) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:46:51 [error] 19019\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/re-split.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required
stream/re-split.t TEST 36: split by unit separator 1/2 (GH issue lua-nginx-module \#1217) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-split.t TEST 36: split by unit separator 1/2 (GH issue lua-nginx-module \#1217) - status code ok got: ''
expected: '200'
stream/re-split.t TEST 36: split by unit separator 1/2 (GH issue lua-nginx-module \#1217) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: '15 1|T|||||||||||||15
15 1|T|T||||||||||||15
15 1|T|T|T|||||||||||15
'
stream/re-split.t TEST 36: split by unit separator 1/2 (GH issue lua-nginx-module \#1217) - pattern "(?^:\[TRACE\s+\d+)" should match a line in error.log (req 0)
stream/re-split.t TEST 36: split by unit separator 1/2 (GH issue lua-nginx-module \#1217) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:46:54 [error] 19024\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/re-split.t TEST 36: split by unit separator 1/2 (GH issue lua-nginx-module \#1217) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-split.t TEST 36: split by unit separator 1/2 (GH issue lua-nginx-module \#1217) - status code ok got: ''
expected: '200'
stream/re-split.t TEST 36: split by unit separator 1/2 (GH issue lua-nginx-module \#1217) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: '15 1|T|||||||||||||15
15 1|T|T||||||||||||15
15 1|T|T|T|||||||||||15
'
stream/re-split.t TEST 36: split by unit separator 1/2 (GH issue lua-nginx-module \#1217) - pattern "(?^:\[TRACE\s+\d+)" should match a line in error.log (req 1)
stream/re-split.t TEST 36: split by unit separator 1/2 (GH issue lua-nginx-module \#1217) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:46:54 [error] 19024\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/re-split.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required
stream/re-split.t TEST 34: behavior with /^\d/m - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-split.t TEST 34: behavior with /^\d/m - status code ok got: ''
expected: '200'
stream/re-split.t TEST 34: behavior with /^\d/m - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'ab
:cdefg
:hij
len: 3
'
stream/re-split.t TEST 34: behavior with /^\d/m - pattern "(?^:\[TRACE\s+\d+)" should match a line in error.log (req 0)
stream/re-split.t TEST 34: behavior with /^\d/m - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:46:58 [error] 19029\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/re-split.t TEST 34: behavior with /^\d/m - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-split.t TEST 34: behavior with /^\d/m - status code ok got: ''
expected: '200'
stream/re-split.t TEST 34: behavior with /^\d/m - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'ab
:cdefg
:hij
len: 3
'
stream/re-split.t TEST 34: behavior with /^\d/m - pattern "(?^:\[TRACE\s+\d+)" should match a line in error.log (req 1)
stream/re-split.t TEST 34: behavior with /^\d/m - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:46:58 [error] 19029\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/re-split.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required
stream/re-split.t TEST 28: no match separator (github issue \#104) & max - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-split.t TEST 28: no match separator (github issue \#104) & max - status code ok got: ''
expected: '200'
stream/re-split.t TEST 28: no match separator (github issue \#104) & max - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'a:bcd
len: 2
'
stream/re-split.t TEST 28: no match separator (github issue \#104) & max - pattern "(?^:\[TRACE\s+\d+)" should match a line in error.log (req 0)
stream/re-split.t TEST 28: no match separator (github issue \#104) & max - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:47:02 [error] 19034\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/re-split.t TEST 28: no match separator (github issue \#104) & max - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-split.t TEST 28: no match separator (github issue \#104) & max - status code ok got: ''
expected: '200'
stream/re-split.t TEST 28: no match separator (github issue \#104) & max - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'a:bcd
len: 2
'
stream/re-split.t TEST 28: no match separator (github issue \#104) & max - pattern "(?^:\[TRACE\s+\d+)" should match a line in error.log (req 1)
stream/re-split.t TEST 28: no match separator (github issue \#104) & max - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:47:02 [error] 19034\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/re-split.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required
stream/re-split.t TEST 26: regex is "" with pos & max - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-split.t TEST 26: regex is "" with pos & max - status code ok got: ''
expected: '200'
stream/re-split.t TEST 26: regex is "" with pos & max - response_body - response is expected (repeated req 0, req 0) got: ''
expected: '2
345
len: 2
'
stream/re-split.t TEST 26: regex is "" with pos & max - pattern "(?^:\[TRACE\s+\d+)" should match a line in error.log (req 0)
stream/re-split.t TEST 26: regex is "" with pos & max - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:47:05 [error] 19039\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/re-split.t TEST 26: regex is "" with pos & max - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-split.t TEST 26: regex is "" with pos & max - status code ok got: ''
expected: '200'
stream/re-split.t TEST 26: regex is "" with pos & max - response_body - response is expected (repeated req 1, req 0) got: ''
expected: '2
345
len: 2
'
stream/re-split.t TEST 26: regex is "" with pos & max - pattern "(?^:\[TRACE\s+\d+)" should match a line in error.log (req 1)
stream/re-split.t TEST 26: regex is "" with pos & max - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:47:05 [error] 19039\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/re-split.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required
stream/re-split.t TEST 17: split matches, trailing subjects - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-split.t TEST 17: split matches, trailing subjects - status code ok got: ''
expected: '200'
stream/re-split.t TEST 17: split matches, trailing subjects - response_body - response is expected (repeated req 0, req 0) got: ''
expected: '_blank_
a
b
c
d
'
stream/re-split.t TEST 17: split matches, trailing subjects - pattern "(?^:\[TRACE\s+\d+)" should match a line in error.log (req 0)
stream/re-split.t TEST 17: split matches, trailing subjects - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:47:09 [error] 19044\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/re-split.t TEST 17: split matches, trailing subjects - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-split.t TEST 17: split matches, trailing subjects - status code ok got: ''
expected: '200'
stream/re-split.t TEST 17: split matches, trailing subjects - response_body - response is expected (repeated req 1, req 0) got: ''
expected: '_blank_
a
b
c
d
'
stream/re-split.t TEST 17: split matches, trailing subjects - pattern "(?^:\[TRACE\s+\d+)" should match a line in error.log (req 1)
stream/re-split.t TEST 17: split matches, trailing subjects - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:47:09 [error] 19044\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/re-split.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required
stream/re-split.t TEST 5: split matches + submatch (not matching) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-split.t TEST 5: split matches + submatch (not matching) - status code ok got: ''
expected: '200'
stream/re-split.t TEST 5: split matches + submatch (not matching) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'a
b
c
d
e
'
stream/re-split.t TEST 5: split matches + submatch (not matching) - pattern "(?^:\[TRACE\s+\d+)" should match a line in error.log (req 0)
stream/re-split.t TEST 5: split matches + submatch (not matching) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:47:12 [error] 19049\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/re-split.t TEST 5: split matches + submatch (not matching) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-split.t TEST 5: split matches + submatch (not matching) - status code ok got: ''
expected: '200'
stream/re-split.t TEST 5: split matches + submatch (not matching) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'a
b
c
d
e
'
stream/re-split.t TEST 5: split matches + submatch (not matching) - pattern "(?^:\[TRACE\s+\d+)" should match a line in error.log (req 1)
stream/re-split.t TEST 5: split matches + submatch (not matching) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:47:12 [error] 19049\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/re-split.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required
stream/re-split.t TEST 6: split matches + max limiter - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-split.t TEST 6: split matches + max limiter - status code ok got: ''
expected: '200'
stream/re-split.t TEST 6: split matches + max limiter - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'a
b
c,d,e
'
stream/re-split.t TEST 6: split matches + max limiter - pattern "(?^:\[TRACE\s+\d+)" should match a line in error.log (req 0)
stream/re-split.t TEST 6: split matches + max limiter - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:47:16 [error] 19054\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/re-split.t TEST 6: split matches + max limiter - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-split.t TEST 6: split matches + max limiter - status code ok got: ''
expected: '200'
stream/re-split.t TEST 6: split matches + max limiter - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'a
b
c,d,e
'
stream/re-split.t TEST 6: split matches + max limiter - pattern "(?^:\[TRACE\s+\d+)" should match a line in error.log (req 1)
stream/re-split.t TEST 6: split matches + max limiter - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:47:16 [error] 19054\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/re-split.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required
stream/re-split.t TEST 39: remaining characters are matched by regex (with max) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-split.t TEST 39: remaining characters are matched by regex (with max) - status code ok got: ''
expected: '200'
stream/re-split.t TEST 39: remaining characters are matched by regex (with max) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: '1 a,b,cd,,,
2 a|b,cd,,,
3 a|b|cd,,,
4 a|b|cd|,,
5 a|b|cd||,
6 a|b|cd|||
6 a|b|cd|||
'
stream/re-split.t TEST 39: remaining characters are matched by regex (with max) - pattern "(?^:\[TRACE\s+\d+)" should match a line in error.log (req 0)
stream/re-split.t TEST 39: remaining characters are matched by regex (with max) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:47:19 [error] 19059\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/re-split.t TEST 39: remaining characters are matched by regex (with max) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-split.t TEST 39: remaining characters are matched by regex (with max) - status code ok got: ''
expected: '200'
stream/re-split.t TEST 39: remaining characters are matched by regex (with max) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: '1 a,b,cd,,,
2 a|b,cd,,,
3 a|b|cd,,,
4 a|b|cd|,,
5 a|b|cd||,
6 a|b|cd|||
6 a|b|cd|||
'
stream/re-split.t TEST 39: remaining characters are matched by regex (with max) - pattern "(?^:\[TRACE\s+\d+)" should match a line in error.log (req 1)
stream/re-split.t TEST 39: remaining characters are matched by regex (with max) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:47:19 [error] 19059\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/re-sub.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required
stream/re-sub.t TEST 5: replace template + submatches (exceeding buffers) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-sub.t TEST 5: replace template + submatches (exceeding buffers) - status code ok got: ''
expected: '200'
stream/re-sub.t TEST 5: replace template + submatches (exceeding buffers) - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-s: [bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd
-n: 2048
'
stream/re-sub.t TEST 5: replace template + submatches (exceeding buffers) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:47:23 [error] 19068\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/re-sub.t TEST 5: replace template + submatches (exceeding buffers) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-sub.t TEST 5: replace template + submatches (exceeding buffers) - status code ok got: ''
expected: '200'
stream/re-sub.t TEST 5: replace template + submatches (exceeding buffers) - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-s: [bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd
-n: 2048
'
stream/re-sub.t TEST 5: replace template + submatches (exceeding buffers) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:47:23 [error] 19068\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/re-sub.t TEST 7: ngx.re.gsub: recursive calling (github openresty/lua-nginx-module\#445) - failed to reload configuration after 200 failed test requests
stream/re-sub.t TEST 7: ngx.re.gsub: recursive calling (github openresty/lua-nginx-module\#445) - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +1,2 @@
- OUTER {FIRST}
+ INNER_REPLACED
- OUTER REPLACED
+ INNER_REPLACED
'
stream/re-sub.t TEST 7: ngx.re.gsub: recursive calling (github openresty/lua-nginx-module\#445) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:47:28 [error] 19073\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
init_by_lua:11: in main chunk
'
stream/re-sub.t TEST 7: ngx.re.gsub: recursive calling (github openresty/lua-nginx-module\#445) - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +1,2 @@
- OUTER {FIRST}
+ INNER_REPLACED
- OUTER REPLACED
+ INNER_REPLACED
'
stream/re-sub.t TEST 7: ngx.re.gsub: recursive calling (github openresty/lua-nginx-module\#445) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:47:28 [error] 19073\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
init_by_lua:11: in main chunk
'
stream/re-sub.t TEST 2: sub, no submatch, no jit compile, no regex cache - failed to reload configuration after 200 failed test requests
stream/re-sub.t TEST 2: sub, no submatch, no jit compile, no regex cache - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +1,2 @@
-s: aBcbd
+ INNER_REPLACED
-n: 1
+ INNER_REPLACED
'
stream/re-sub.t TEST 2: sub, no submatch, no jit compile, no regex cache - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):4 loop\])" should match a line in error.log (req 0)
stream/re-sub.t TEST 2: sub, no submatch, no jit compile, no regex cache - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:50:56 [error] 19073\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
init_by_lua:11: in main chunk
'
stream/re-sub.t TEST 2: sub, no submatch, no jit compile, no regex cache - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +1,2 @@
-s: aBcbd
+ INNER_REPLACED
-n: 1
+ INNER_REPLACED
'
stream/re-sub.t TEST 2: sub, no submatch, no jit compile, no regex cache - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):4 loop\])" should match a line in error.log (req 1)
stream/re-sub.t TEST 2: sub, no submatch, no jit compile, no regex cache - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:50:56 [error] 19073\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
init_by_lua:11: in main chunk
'
stream/re-sub.t TEST 9: func replace return is not a string type (ngx.re.sub) - failed to reload configuration after 200 failed test requests
stream/re-sub.t TEST 9: func replace return is not a string type (ngx.re.sub) - response_body - response is expected (repeated req 0, req 0) got: ' INNER_REPLACED
INNER_REPLACED
'
expected: 'hello, 534
'
stream/re-sub.t TEST 9: func replace return is not a string type (ngx.re.sub) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:54:24 [error] 19073\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
init_by_lua:11: in main chunk
'
stream/re-sub.t TEST 9: func replace return is not a string type (ngx.re.sub) - response_body - response is expected (repeated req 1, req 0) got: ' INNER_REPLACED
INNER_REPLACED
'
expected: 'hello, 534
'
stream/re-sub.t TEST 9: func replace return is not a string type (ngx.re.sub) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:54:24 [error] 19073\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
init_by_lua:11: in main chunk
'
stream/re-sub.t TEST 10: func replace return is not a string type (ngx.re.gsub) - failed to reload configuration after 200 failed test requests
stream/re-sub.t TEST 10: func replace return is not a string type (ngx.re.gsub) - response_body - response is expected (repeated req 0, req 0) got: ' INNER_REPLACED
INNER_REPLACED
'
expected: 'hello, 55
'
stream/re-sub.t TEST 10: func replace return is not a string type (ngx.re.gsub) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:57:53 [error] 19073\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
init_by_lua:11: in main chunk
'
stream/re-sub.t TEST 10: func replace return is not a string type (ngx.re.gsub) - response_body - response is expected (repeated req 1, req 0) got: ' INNER_REPLACED
INNER_REPLACED
'
expected: 'hello, 55
'
stream/re-sub.t TEST 10: func replace return is not a string type (ngx.re.gsub) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:57:53 [error] 19073\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
init_by_lua:11: in main chunk
'
stream/re-sub.t TEST 8: string replace subj is not a string type - failed to reload configuration after 200 failed test requests
stream/re-sub.t TEST 8: string replace subj is not a string type - response_body - response is expected (repeated req 0, req 0) got: ' INNER_REPLACED
INNER_REPLACED
'
expected: '534
'
stream/re-sub.t TEST 8: string replace subj is not a string type - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:01:21 [error] 19073\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
init_by_lua:11: in main chunk
'
stream/re-sub.t TEST 8: string replace subj is not a string type - response_body - response is expected (repeated req 1, req 0) got: ' INNER_REPLACED
INNER_REPLACED
'
expected: '534
'
stream/re-sub.t TEST 8: string replace subj is not a string type - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:01:21 [error] 19073\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
init_by_lua:11: in main chunk
'
stream/re-sub.t TEST 1: sub, no submatch, no jit compile, regex cache - failed to reload configuration after 200 failed test requests
stream/re-sub.t TEST 1: sub, no submatch, no jit compile, regex cache - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +1,2 @@
-s: aBcbd
+ INNER_REPLACED
-n: 1
+ INNER_REPLACED
'
stream/re-sub.t TEST 1: sub, no submatch, no jit compile, regex cache - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):4 loop\])" should match a line in error.log (req 0)
stream/re-sub.t TEST 1: sub, no submatch, no jit compile, regex cache - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:04:49 [error] 19073\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
init_by_lua:11: in main chunk
'
stream/re-sub.t TEST 1: sub, no submatch, no jit compile, regex cache - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +1,2 @@
-s: aBcbd
+ INNER_REPLACED
-n: 1
+ INNER_REPLACED
'
stream/re-sub.t TEST 1: sub, no submatch, no jit compile, regex cache - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):4 loop\])" should match a line in error.log (req 1)
stream/re-sub.t TEST 1: sub, no submatch, no jit compile, regex cache - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:04:49 [error] 19073\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
init_by_lua:11: in main chunk
'
stream/re-sub.t TEST 4: replace template + submatches - failed to reload configuration after 200 failed test requests
stream/re-sub.t TEST 4: replace template + submatches - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +1,2 @@
-s: a[bc(c)]bd
+ INNER_REPLACED
-n: 1
+ INNER_REPLACED
'
stream/re-sub.t TEST 4: replace template + submatches - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):4 loop\])" should match a line in error.log (req 0)
stream/re-sub.t TEST 4: replace template + submatches - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:08:18 [error] 19073\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
init_by_lua:11: in main chunk
'
stream/re-sub.t TEST 4: replace template + submatches - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +1,2 @@
-s: a[bc(c)]bd
+ INNER_REPLACED
-n: 1
+ INNER_REPLACED
'
stream/re-sub.t TEST 4: replace template + submatches - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):4 loop\])" should match a line in error.log (req 1)
stream/re-sub.t TEST 4: replace template + submatches - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:08:18 [error] 19073\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
init_by_lua:11: in main chunk
'
stream/re-sub.t TEST 3: func + submatches - failed to reload configuration after 200 failed test requests
stream/re-sub.t TEST 3: func + submatches - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +1,2 @@
-s: a[bc(c)]bd
+ INNER_REPLACED
-n: 1
+ INNER_REPLACED
'
stream/re-sub.t TEST 3: func + submatches - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:11:46 [error] 19073\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
init_by_lua:11: in main chunk
'
stream/re-sub.t TEST 3: func + submatches - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +1,2 @@
-s: a[bc(c)]bd
+ INNER_REPLACED
-n: 1
+ INNER_REPLACED
'
stream/re-sub.t TEST 3: func + submatches - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:11:46 [error] 19073\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
init_by_lua:11: in main chunk
'
stream/request.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required
stream/request.t TEST 1: ngx.req.start_time() - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/request.t TEST 1: ngx.req.start_time() - status code ok got: ''
expected: '200'
stream/request.t TEST 1: ngx.req.start_time() - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-true
->= 0.099: true
-< 0.11: true
'
stream/request.t TEST 1: ngx.req.start_time() - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):3 loop\])" should match a line in error.log (req 0)
stream/request.t TEST 1: ngx.req.start_time() - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:15:17 [error] 20754\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/request.t TEST 1: ngx.req.start_time() - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/request.t TEST 1: ngx.req.start_time() - status code ok got: ''
expected: '200'
stream/request.t TEST 1: ngx.req.start_time() - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-true
->= 0.099: true
-< 0.11: true
'
stream/request.t TEST 1: ngx.req.start_time() - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):3 loop\])" should match a line in error.log (req 1)
stream/request.t TEST 1: ngx.req.start_time() - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:15:17 [error] 20754\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/semaphore.t TEST 16: kill a light thread that is waiting on a semaphore (no resource) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'ok
'
stream/semaphore.t TEST 16: kill a light thread that is waiting on a semaphore (no resource) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'ok
'
stream/semaphore.t TEST 24: basic semaphore_mm alloc - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'ok
'
stream/semaphore.t TEST 24: basic semaphore_mm alloc - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'ok
'
stream/semaphore.t TEST 26: basic semaphore_mm free insert head - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'ok
'
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 - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'ok
'
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 13: semaphore wait post in preread_by_lua - response_body - response is expected (repeated req 0, req 0) @@ -1,5 +0,0 @@
-enter wait
-enter post
-post success
-wait success
-done'
stream/semaphore.t TEST 13: semaphore wait post in preread_by_lua - response_body - response is expected (repeated req 1, req 0) @@ -1,5 +0,0 @@
-enter wait
-enter post
-post success
-wait success
-done'
stream/semaphore.t TEST 7: semaphore in init_worker_by_lua (new and post) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'sem wait successfully.
'
stream/semaphore.t TEST 7: semaphore in init_worker_by_lua (new and post) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'sem wait successfully.
'
stream/semaphore.t TEST 14: semaphore wait in timer.at - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'ok
'
stream/semaphore.t TEST 14: semaphore wait in timer.at - pattern "wait success" should match a line in error.log (req 0)
stream/semaphore.t TEST 14: semaphore wait in timer.at - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'ok
'
stream/semaphore.t TEST 14: semaphore wait in timer.at - pattern "wait success" should match a line in error.log (req 1)
stream/semaphore.t TEST 20: main thread wait a light thread that is waiting on a semaphore - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'err: timeout
'
stream/semaphore.t TEST 20: main thread wait a light thread that is waiting on a semaphore - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'err: timeout
'
stream/semaphore.t TEST 23: test semaphore gc - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'success
'
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 - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'success
'
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 2: semaphore wait order - response_body - response is expected (repeated req 0, req 0) @@ -1,9 +0,0 @@
-enter waiting, id: 1
-enter waiting, id: 2
-back in main thread
-wait failed in main thread: timeout
-still in main thread
-wait success, id: 1
-wait success, id: 2
-wait failed in main thread: timeout
-main thread end
'
stream/semaphore.t TEST 2: semaphore wait order - response_body - response is expected (repeated req 1, req 0) @@ -1,9 +0,0 @@
-enter waiting, id: 1
-enter waiting, id: 2
-back in main thread
-wait failed in main thread: timeout
-still in main thread
-wait success, id: 1
-wait success, id: 2
-wait failed in main thread: timeout
-main thread end
'
stream/semaphore.t TEST 1: basic semaphore in uthread - response_body - response is expected (repeated req 0, req 0) @@ -1,5 +0,0 @@
-enter waiting
-back in main thread
-still in main thread
-wait success
-main thread end
'
stream/semaphore.t TEST 1: basic semaphore in uthread - response_body - response is expected (repeated req 1, req 0) @@ -1,5 +0,0 @@
-enter waiting
-back in main thread
-still in main thread
-wait success
-main thread end
'
stream/semaphore.t TEST 15: two thread wait for each other - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-count in B: 0
-count in A: 0
'
stream/semaphore.t TEST 15: two thread wait for each other - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-count in B: 0
-count in A: 0
'
stream/semaphore.t TEST 29: basic semaphore count (negative number) - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-0
--1
'
stream/semaphore.t TEST 29: basic semaphore count (negative number) - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-0
--1
'
stream/semaphore.t TEST 18: kill a thread that is waiting on another thread that is waiting on semaphore - response_body - response is expected (repeated req 0, req 0) @@ -1,5 +0,0 @@
-sem waiting start
-thread waiting start
-thread kill success
-sem wait err: timeout
-sem waiting done
'
stream/semaphore.t TEST 18: kill a thread that is waiting on another thread that is waiting on semaphore - response_body - response is expected (repeated req 1, req 0) @@ -1,5 +0,0 @@
-sem waiting start
-thread waiting start
-thread kill success
-sem wait err: timeout
-sem waiting done
'
stream/semaphore.t TEST 8: semaphore in preread_by_lua (all allowed) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'ok'
stream/semaphore.t TEST 8: semaphore in preread_by_lua (all allowed) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'ok'
stream/semaphore.t TEST 12: semaphore post in all phase (in a request) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'ok
'
stream/semaphore.t TEST 12: semaphore post in all phase (in a request) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'ok
'
stream/semaphore.t TEST 28: basic semaphore count - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-10
-9
-12
'
stream/semaphore.t TEST 28: basic semaphore count - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-10
-9
-12
'
stream/semaphore.t TEST 17: kill a light thread that is waiting on a semaphore (after post) - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-ok
-count: 1
'
stream/semaphore.t TEST 17: kill a light thread that is waiting on a semaphore (after post) - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-ok
-count: 1
'
stream/semaphore.t TEST 4: semaphore.new in init_by_lua* (w/o shdict) - failed to reload configuration after 200 failed test requests
stream/semaphore.t TEST 4: semaphore.new in init_by_lua* (w/o shdict) - response_body_like - response is expected () ''
doesn't match '(?^s:sem count: [12]
waited successfully.
)'
stream/semaphore.t TEST 4: semaphore.new in init_by_lua* (w/o shdict) - response_body_like - response is expected () ''
doesn't match '(?^s:sem count: [12]
waited successfully.
)'
stream/semaphore.t TEST 27: semaphore_mm free block (load <= 50% & the on the older side) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'ok
'
stream/semaphore.t TEST 27: semaphore_mm free block (load <= 50% & the on the older side) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'ok
'
stream/semaphore.t TEST 25: basic semaphore_mm free insert tail - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'ok
'
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 - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'ok
'
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 3: semaphore wait time=0 - response_body - response is expected (repeated req 0, req 0) @@ -1,10 +0,0 @@
-wait success
-err: timeout
-enter 1s wait
-back in main thread
-err: timeout
-err: timeout
-still in main thread
-wait success in 1s wait
-wait success
-main thread end
'
stream/semaphore.t TEST 3: semaphore wait time=0 - response_body - response is expected (repeated req 1, req 0) @@ -1,10 +0,0 @@
-wait success
-err: timeout
-enter 1s wait
-back in main thread
-err: timeout
-err: timeout
-still in main thread
-wait success in 1s wait
-wait success
-main thread end
'
stream/semaphore.t TEST 22: semaphore wait time is zero - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'timeout
'
stream/semaphore.t TEST 22: semaphore wait time is zero - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'timeout
'
stream/semaphore.t TEST 30: bugfix: semaphore instance can't be garbage collected when someone is waiting on it - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'true, nil
'
stream/semaphore.t TEST 30: bugfix: semaphore instance can't be garbage collected when someone is waiting on it - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'true, nil
'
stream/semaphore.t TEST 5: semaphore.new in init_by_lua* (with shdict) - failed to reload configuration after 200 failed test requests
stream/semaphore.t TEST 5: semaphore.new in init_by_lua* (with shdict) - response_body_like - response is expected () ''
doesn't match '(?^s:sem count: [12]
waited successfully.
)'
stream/semaphore.t TEST 5: semaphore.new in init_by_lua* (with shdict) - response_body_like - response is expected () ''
doesn't match '(?^s:sem count: [12]
waited successfully.
)'
stream/semaphore.t TEST 21: multi wait and mult post with one semaphore - response_body - response is expected (repeated req 0, req 0) @@ -1,9 +0,0 @@
-wait: 1
-wait: 2
-wait: 3
-post: 1
-post: 2
-post: 3
-wait success: 1
-wait success: 2
-wait success: 3
'
stream/semaphore.t TEST 21: multi wait and mult post with one semaphore - response_body - response is expected (repeated req 1, req 0) @@ -1,9 +0,0 @@
-wait: 1
-wait: 2
-wait: 3
-post: 1
-post: 2
-post: 3
-wait success: 1
-wait success: 2
-wait success: 3
'
stream/semaphore.t TEST 19: a light thread that is going to exit is waiting on a semaphore - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-sem waiting
-ok
'
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 - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-sem waiting
-ok
'
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 9: semaphore in content_by_lua (all allowed) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'ok
'
stream/semaphore.t TEST 9: semaphore in content_by_lua (all allowed) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'ok
'
stream/shdict.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required
stream/shdict.t TEST 33: free_space, empty (100k zone) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/shdict.t TEST 33: free_space, empty (100k zone) - status code ok got: ''
expected: '200'
stream/shdict.t TEST 33: free_space, empty (100k zone) - response_body_like - response is expected () ''
doesn't match '(?^s:\Afree_page_bytes type: number
free_page_bytes: (?:90112|94208)
\z)'
stream/shdict.t TEST 33: free_space, empty (100k zone) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:23:39 [error] 21993\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/shdict.t TEST 33: free_space, empty (100k zone) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/shdict.t TEST 33: free_space, empty (100k zone) - status code ok got: ''
expected: '200'
stream/shdict.t TEST 33: free_space, empty (100k zone) - response_body_like - response is expected () ''
doesn't match '(?^s:\Afree_page_bytes type: number
free_page_bytes: (?:90112|94208)
\z)'
stream/shdict.t TEST 33: free_space, empty (100k zone) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:23:39 [error] 21993\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/shdict.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required
stream/shdict.t TEST 26: incr key - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/shdict.t TEST 26: incr key - status code ok got: ''
expected: '200'
stream/shdict.t TEST 26: incr key - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'failed to incr: nil key
'
stream/shdict.t TEST 26: incr key - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:23:44 [error] 21999\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/shdict.t TEST 26: incr key - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/shdict.t TEST 26: incr key - status code ok got: ''
expected: '200'
stream/shdict.t TEST 26: incr key - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'failed to incr: nil key
'
stream/shdict.t TEST 26: incr key - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:23:44 [error] 21999\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/shdict.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required
stream/shdict.t TEST 19: add a string value - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/shdict.t TEST 19: add a string value - status code ok got: ''
expected: '200'
stream/shdict.t TEST 19: add a string value - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-value type: string
-value: bar
-flags: 72
'
stream/shdict.t TEST 19: add a string value - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):8 loop\])" should match a line in error.log (req 0)
stream/shdict.t TEST 19: add a string value - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:23:48 [error] 22005\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/shdict.t TEST 19: add a string value - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/shdict.t TEST 19: add a string value - status code ok got: ''
expected: '200'
stream/shdict.t TEST 19: add a string value - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-value type: string
-value: bar
-flags: 72
'
stream/shdict.t TEST 19: add a string value - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):8 loop\])" should match a line in error.log (req 1)
stream/shdict.t TEST 19: add a string value - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:23:48 [error] 22005\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/shdict.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required
stream/shdict.t TEST 5: get a number value (int) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/shdict.t TEST 5: get a number value (int) - status code ok got: ''
expected: '200'
stream/shdict.t TEST 5: get a number value (int) - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-value type: number
-value: 51203
-flags: nil
'
stream/shdict.t TEST 5: get a number value (int) - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):7 loop\])" should match a line in error.log (req 0)
stream/shdict.t TEST 5: get a number value (int) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:23:53 [error] 22011\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/shdict.t TEST 5: get a number value (int) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/shdict.t TEST 5: get a number value (int) - status code ok got: ''
expected: '200'
stream/shdict.t TEST 5: get a number value (int) - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-value type: number
-value: 51203
-flags: nil
'
stream/shdict.t TEST 5: get a number value (int) - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):7 loop\])" should match a line in error.log (req 1)
stream/shdict.t TEST 5: get a number value (int) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:23:53 [error] 22011\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/shdict.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required
stream/shdict.t TEST 21: replace a string value - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/shdict.t TEST 21: replace a string value - status code ok got: ''
expected: '200'
stream/shdict.t TEST 21: replace a string value - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-value type: string
-value: bar100
-flags: 72
'
stream/shdict.t TEST 21: replace a string value - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):8 loop\])" should match a line in error.log (req 0)
stream/shdict.t TEST 21: replace a string value - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:23:57 [error] 22017\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/shdict.t TEST 21: replace a string value - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/shdict.t TEST 21: replace a string value - status code ok got: ''
expected: '200'
stream/shdict.t TEST 21: replace a string value - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-value type: string
-value: bar100
-flags: 72
'
stream/shdict.t TEST 21: replace a string value - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):8 loop\])" should match a line in error.log (req 1)
stream/shdict.t TEST 21: replace a string value - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:23:57 [error] 22017\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/shdict.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required
stream/shdict.t TEST 35: free_space, about half full, no page left - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/shdict.t TEST 35: free_space, about half full, no page left - status code ok got: ''
expected: '200'
stream/shdict.t TEST 35: free_space, about half full, no page left - response_body_like - response is expected () ''
doesn't match '(?^s:\Afree_page_bytes type: number
free_page_bytes: (?:0|4096)
\z)'
stream/shdict.t TEST 35: free_space, about half full, no page left - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:24:02 [error] 22023\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/shdict.t TEST 35: free_space, about half full, no page left - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/shdict.t TEST 35: free_space, about half full, no page left - status code ok got: ''
expected: '200'
stream/shdict.t TEST 35: free_space, about half full, no page left - response_body_like - response is expected () ''
doesn't match '(?^s:\Afree_page_bytes type: number
free_page_bytes: (?:0|4096)
\z)'
stream/shdict.t TEST 35: free_space, about half full, no page left - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:24:02 [error] 22023\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/shdict.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required
stream/shdict.t TEST 40: incr init_ttl argument is not a number - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/shdict.t TEST 40: incr init_ttl argument is not a number - status code ok got: ''
expected: '200'
stream/shdict.t TEST 40: incr init_ttl argument is not a number - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'not ok: bad init_ttl arg: number expected, got string
'
stream/shdict.t TEST 40: incr init_ttl argument is not a number - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:24:07 [error] 22029\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/shdict.t TEST 40: incr init_ttl argument is not a number - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/shdict.t TEST 40: incr init_ttl argument is not a number - status code ok got: ''
expected: '200'
stream/shdict.t TEST 40: incr init_ttl argument is not a number - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'not ok: bad init_ttl arg: number expected, got string
'
stream/shdict.t TEST 40: incr init_ttl argument is not a number - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:24:07 [error] 22029\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/shdict.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required
stream/shdict.t TEST 32: free_space, empty (16k zone) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/shdict.t TEST 32: free_space, empty (16k zone) - status code ok got: ''
expected: '200'
stream/shdict.t TEST 32: free_space, empty (16k zone) - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-free_page_bytes type: number
-free_page_bytes: 4096
'
stream/shdict.t TEST 32: free_space, empty (16k zone) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:24:11 [error] 22035\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/shdict.t TEST 32: free_space, empty (16k zone) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/shdict.t TEST 32: free_space, empty (16k zone) - status code ok got: ''
expected: '200'
stream/shdict.t TEST 32: free_space, empty (16k zone) - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-free_page_bytes type: number
-free_page_bytes: 4096
'
stream/shdict.t TEST 32: free_space, empty (16k zone) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:24:11 [error] 22035\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/shdict.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required
stream/shdict.t TEST 30: incr, init is not number - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/shdict.t TEST 30: incr, init is not number - status code ok got: ''
expected: '200'
stream/shdict.t TEST 30: incr, init is not number - pattern "number expected, got string" should match a line in error.log (req 0)
stream/shdict.t TEST 30: incr, init is not number - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/shdict.t TEST 30: incr, init is not number - status code ok got: ''
expected: '200'
stream/shdict.t TEST 30: incr, init is not number - pattern "number expected, got string" should match a line in error.log (req 1)
stream/shdict.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required
stream/shdict.t TEST 8: get_stale (false) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/shdict.t TEST 8: get_stale (false) - status code ok got: ''
expected: '200'
stream/shdict.t TEST 8: get_stale (false) - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-value type: string
-value: bar
-flags: 72
-stale: false
'
stream/shdict.t TEST 8: get_stale (false) - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):9 loop\])" should match a line in error.log (req 0)
stream/shdict.t TEST 8: get_stale (false) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:24:20 [error] 22047\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/shdict.t TEST 8: get_stale (false) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/shdict.t TEST 8: get_stale (false) - status code ok got: ''
expected: '200'
stream/shdict.t TEST 8: get_stale (false) - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +0,0 @@
-value type: string
-value: bar
-flags: 72
-stale: false
'
stream/shdict.t TEST 8: get_stale (false) - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):9 loop\])" should match a line in error.log (req 1)
stream/shdict.t TEST 8: get_stale (false) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:24:20 [error] 22047\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/shdict.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required
stream/shdict.t TEST 31: capacity - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/shdict.t TEST 31: capacity - status code ok got: ''
expected: '200'
stream/shdict.t TEST 31: capacity - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-capacity type: number
-capacity: 16384
'
stream/shdict.t TEST 31: capacity - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:24:25 [error] 22053\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/shdict.t TEST 31: capacity - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/shdict.t TEST 31: capacity - status code ok got: ''
expected: '200'
stream/shdict.t TEST 31: capacity - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-capacity type: number
-capacity: 16384
'
stream/shdict.t TEST 31: capacity - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:24:25 [error] 22053\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/shdict.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required
stream/shdict.t TEST 1: get a string value - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/shdict.t TEST 1: get a string value - status code ok got: ''
expected: '200'
stream/shdict.t TEST 1: get a string value - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-value type: string
-value: bar
-flags: 72
'
stream/shdict.t TEST 1: get a string value - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):11 loop\])" should match a line in error.log (req 0)
stream/shdict.t TEST 1: get a string value - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:24:29 [error] 22059\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/shdict.t TEST 1: get a string value - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/shdict.t TEST 1: get a string value - status code ok got: ''
expected: '200'
stream/shdict.t TEST 1: get a string value - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-value type: string
-value: bar
-flags: 72
'
stream/shdict.t TEST 1: get a string value - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):11 loop\])" should match a line in error.log (req 1)
stream/shdict.t TEST 1: get a string value - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:24:29 [error] 22059\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/shdict.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required
stream/shdict.t TEST 45: incr key with init and init_ttl (key expired and size matched) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/shdict.t TEST 45: incr key with init and init_ttl (key expired and size matched) - status code ok got: ''
expected: '200'
stream/shdict.t TEST 45: incr key with init and init_ttl (key expired and size matched) - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-incr: 10502 nil
-foo = 10502
-foo after init_ttl = nil
'
stream/shdict.t TEST 45: incr key with init and init_ttl (key expired and size matched) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:24:34 [error] 22065\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/shdict.t TEST 45: incr key with init and init_ttl (key expired and size matched) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/shdict.t TEST 45: incr key with init and init_ttl (key expired and size matched) - status code ok got: ''
expected: '200'
stream/shdict.t TEST 45: incr key with init and init_ttl (key expired and size matched) - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-incr: 10502 nil
-foo = 10502
-foo after init_ttl = nil
'
stream/shdict.t TEST 45: incr key with init and init_ttl (key expired and size matched) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:24:34 [error] 22065\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/shdict.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required
stream/shdict.t TEST 10: incr int - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/shdict.t TEST 10: incr int - status code ok got: ''
expected: '200'
stream/shdict.t TEST 10: incr int - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-value: 256
-err: nil
'
stream/shdict.t TEST 10: incr int - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):11 loop\])" should match a line in error.log (req 0)
stream/shdict.t TEST 10: incr int - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:24:38 [error] 22071\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/shdict.t TEST 10: incr int - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/shdict.t TEST 10: incr int - status code ok got: ''
expected: '200'
stream/shdict.t TEST 10: incr int - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-value: 256
-err: nil
'
stream/shdict.t TEST 10: incr int - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):11 loop\])" should match a line in error.log (req 1)
stream/shdict.t TEST 10: incr int - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:24:38 [error] 22071\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/shdict.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required
stream/shdict.t TEST 16: set a number value (double) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/shdict.t TEST 16: set a number value (double) - status code ok got: ''
expected: '200'
stream/shdict.t TEST 16: set a number value (double) - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-value type: number
-value: 3.1415926
-flags: 78
'
stream/shdict.t TEST 16: set a number value (double) - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):6 loop\])" should match a line in error.log (req 0)
stream/shdict.t TEST 16: set a number value (double) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:24:43 [error] 22077\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/shdict.t TEST 16: set a number value (double) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/shdict.t TEST 16: set a number value (double) - status code ok got: ''
expected: '200'
stream/shdict.t TEST 16: set a number value (double) - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-value type: number
-value: 3.1415926
-flags: 78
'
stream/shdict.t TEST 16: set a number value (double) - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):6 loop\])" should match a line in error.log (req 1)
stream/shdict.t TEST 16: set a number value (double) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:24:43 [error] 22077\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/shdict.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required
stream/shdict.t TEST 4: get a boolean value (false) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/shdict.t TEST 4: get a boolean value (false) - status code ok got: ''
expected: '200'
stream/shdict.t TEST 4: get a boolean value (false) - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-value type: boolean
-value: false
-flags: 777
'
stream/shdict.t TEST 4: get a boolean value (false) - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):7 loop\])" should match a line in error.log (req 0)
stream/shdict.t TEST 4: get a boolean value (false) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:24:48 [error] 22083\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/shdict.t TEST 4: get a boolean value (false) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/shdict.t TEST 4: get a boolean value (false) - status code ok got: ''
expected: '200'
stream/shdict.t TEST 4: get a boolean value (false) - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-value type: boolean
-value: false
-flags: 777
'
stream/shdict.t TEST 4: get a boolean value (false) - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):7 loop\])" should match a line in error.log (req 1)
stream/shdict.t TEST 4: get a boolean value (false) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:24:48 [error] 22083\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/shdict.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required
stream/shdict.t TEST 9: get_stale (true) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/shdict.t TEST 9: get_stale (true) - status code ok got: ''
expected: '200'
stream/shdict.t TEST 9: get_stale (true) - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-value type: string
-value: bar
-flags: 72
-stale: true
'
stream/shdict.t TEST 9: get_stale (true) - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):13 loop\])" should match a line in error.log (req 0)
stream/shdict.t TEST 9: get_stale (true) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:24:52 [error] 22089\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/shdict.t TEST 9: get_stale (true) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/shdict.t TEST 9: get_stale (true) - status code ok got: ''
expected: '200'
stream/shdict.t TEST 9: get_stale (true) - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +0,0 @@
-value type: string
-value: bar
-flags: 72
-stale: true
'
stream/shdict.t TEST 9: get_stale (true) - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):13 loop\])" should match a line in error.log (req 1)
stream/shdict.t TEST 9: get_stale (true) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:24:52 [error] 22089\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/shdict.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required
stream/shdict.t TEST 2: get an nonexistent key - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/shdict.t TEST 2: get an nonexistent key - status code ok got: ''
expected: '200'
stream/shdict.t TEST 2: get an nonexistent key - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):7 loop\])" should match a line in error.log (req 0)
stream/shdict.t TEST 2: get an nonexistent key - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:24:57 [error] 22095\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/shdict.t TEST 2: get an nonexistent key - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/shdict.t TEST 2: get an nonexistent key - status code ok got: ''
expected: '200'
stream/shdict.t TEST 2: get an nonexistent key - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):7 loop\])" should match a line in error.log (req 1)
stream/shdict.t TEST 2: get an nonexistent key - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:24:57 [error] 22095\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/shdict.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required
stream/shdict.t TEST 36: free_space, full - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/shdict.t TEST 36: free_space, full - status code ok got: ''
expected: '200'
stream/shdict.t TEST 36: free_space, full - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-free_page_bytes type: number
-free_page_bytes: 0
'
stream/shdict.t TEST 36: free_space, full - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:25:01 [error] 22101\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/shdict.t TEST 36: free_space, full - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/shdict.t TEST 36: free_space, full - status code ok got: ''
expected: '200'
stream/shdict.t TEST 36: free_space, full - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-free_page_bytes type: number
-free_page_bytes: 0
'
stream/shdict.t TEST 36: free_space, full - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:25:01 [error] 22101\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/shdict.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required
stream/shdict.t TEST 38: free_space, full (100k) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/shdict.t TEST 38: free_space, full (100k) - status code ok got: ''
expected: '200'
stream/shdict.t TEST 38: free_space, full (100k) - response_body_like - response is expected () ''
doesn't match '(?^s:\A(?:got forcible, i=736
)?free_page_bytes type: number
free_page_bytes: (?:0|32768)
\z)'
stream/shdict.t TEST 38: free_space, full (100k) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:25:06 [error] 22107\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/shdict.t TEST 38: free_space, full (100k) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/shdict.t TEST 38: free_space, full (100k) - status code ok got: ''
expected: '200'
stream/shdict.t TEST 38: free_space, full (100k) - response_body_like - response is expected () ''
doesn't match '(?^s:\A(?:got forcible, i=736
)?free_page_bytes type: number
free_page_bytes: (?:0|32768)
\z)'
stream/shdict.t TEST 38: free_space, full (100k) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:25:06 [error] 22107\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/shdict.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required
stream/shdict.t TEST 6: get a number value (double) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/shdict.t TEST 6: get a number value (double) - status code ok got: ''
expected: '200'
stream/shdict.t TEST 6: get a number value (double) - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-value type: number
-value: 3.1415926
-flags: 78
'
stream/shdict.t TEST 6: get a number value (double) - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):7 loop\])" should match a line in error.log (req 0)
stream/shdict.t TEST 6: get a number value (double) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:25:10 [error] 22113\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/shdict.t TEST 6: get a number value (double) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/shdict.t TEST 6: get a number value (double) - status code ok got: ''
expected: '200'
stream/shdict.t TEST 6: get a number value (double) - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-value type: number
-value: 3.1415926
-flags: 78
'
stream/shdict.t TEST 6: get a number value (double) - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):7 loop\])" should match a line in error.log (req 1)
stream/shdict.t TEST 6: get a number value (double) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:25:10 [error] 22113\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/shdict.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required
stream/shdict.t TEST 14: set a boolean value (false) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/shdict.t TEST 14: set a boolean value (false) - status code ok got: ''
expected: '200'
stream/shdict.t TEST 14: set a boolean value (false) - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-value type: boolean
-value: false
-flags: 777
'
stream/shdict.t TEST 14: set a boolean value (false) - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):6 loop\])" should match a line in error.log (req 0)
stream/shdict.t TEST 14: set a boolean value (false) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:25:15 [error] 22119\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/shdict.t TEST 14: set a boolean value (false) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/shdict.t TEST 14: set a boolean value (false) - status code ok got: ''
expected: '200'
stream/shdict.t TEST 14: set a boolean value (false) - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-value type: boolean
-value: false
-flags: 777
'
stream/shdict.t TEST 14: set a boolean value (false) - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):6 loop\])" should match a line in error.log (req 1)
stream/shdict.t TEST 14: set a boolean value (false) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:25:15 [error] 22119\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/shdict.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required
stream/shdict.t TEST 44: incr key with init and init_ttl as string (key not exists) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/shdict.t TEST 44: incr key with init and init_ttl as string (key not exists) - status code ok got: ''
expected: '200'
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 +0,0 @@
-incr: 10503 nil
-foo = 10503
-foo after init_ttl = nil
'
stream/shdict.t TEST 44: incr key with init and init_ttl as string (key not exists) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:25:19 [error] 22125\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/shdict.t TEST 44: incr key with init and init_ttl as string (key not exists) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/shdict.t TEST 44: incr key with init and init_ttl as string (key not exists) - status code ok got: ''
expected: '200'
stream/shdict.t TEST 44: incr key with init and init_ttl as string (key not exists) - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-incr: 10503 nil
-foo = 10503
-foo after init_ttl = nil
'
stream/shdict.t TEST 44: incr key with init and init_ttl as string (key not exists) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:25:19 [error] 22125\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/shdict.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required
stream/shdict.t TEST 34: free_space, about half full, one page left - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/shdict.t TEST 34: free_space, about half full, one page left - status code ok got: ''
expected: '200'
stream/shdict.t TEST 34: free_space, about half full, one page left - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-free_page_bytes type: number
-free_page_bytes: 4096
'
stream/shdict.t TEST 34: free_space, about half full, one page left - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:25:24 [error] 22131\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/shdict.t TEST 34: free_space, about half full, one page left - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/shdict.t TEST 34: free_space, about half full, one page left - status code ok got: ''
expected: '200'
stream/shdict.t TEST 34: free_space, about half full, one page left - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-free_page_bytes type: number
-free_page_bytes: 4096
'
stream/shdict.t TEST 34: free_space, about half full, one page left - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:25:24 [error] 22131\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/shdict.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required
stream/shdict.t TEST 47: exptime uses long type to avoid overflow in set() + ttl() - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/shdict.t TEST 47: exptime uses long type to avoid overflow in set() + ttl() - status code ok got: ''
expected: '200'
stream/shdict.t TEST 47: exptime uses long type to avoid overflow in set() + ttl() - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'ttl: 2147483648
'
stream/shdict.t TEST 47: exptime uses long type to avoid overflow in set() + ttl() - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:25:29 [error] 22137\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/shdict.t TEST 47: exptime uses long type to avoid overflow in set() + ttl() - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/shdict.t TEST 47: exptime uses long type to avoid overflow in set() + ttl() - status code ok got: ''
expected: '200'
stream/shdict.t TEST 47: exptime uses long type to avoid overflow in set() + ttl() - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'ttl: 2147483648
'
stream/shdict.t TEST 47: exptime uses long type to avoid overflow in set() + ttl() - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:25:29 [error] 22137\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/shdict.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required
stream/shdict.t TEST 29: incr with init - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/shdict.t TEST 29: incr with init - status code ok got: ''
expected: '200'
stream/shdict.t TEST 29: incr with init - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-failed to incr: not found
-incr ok, value: 20, forcible: false
'
stream/shdict.t TEST 29: incr with init - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:25:33 [error] 22143\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/shdict.t TEST 29: incr with init - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/shdict.t TEST 29: incr with init - status code ok got: ''
expected: '200'
stream/shdict.t TEST 29: incr with init - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-failed to incr: not found
-incr ok, value: 20, forcible: false
'
stream/shdict.t TEST 29: incr with init - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:25:33 [error] 22143\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/shdict.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required
stream/shdict.t TEST 7: get a large string value - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/shdict.t TEST 7: get a large string value - status code ok got: ''
expected: '200'
stream/shdict.t TEST 7: get a large string value - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-value type: string
-value: bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbba
-flags: 912
'
stream/shdict.t TEST 7: get a large string value - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):9 loop\])" should match a line in error.log (req 0)
stream/shdict.t TEST 7: get a large string value - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:25:38 [error] 22149\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/shdict.t TEST 7: get a large string value - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/shdict.t TEST 7: get a large string value - status code ok got: ''
expected: '200'
stream/shdict.t TEST 7: get a large string value - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-value type: string
-value: bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbba
-flags: 912
'
stream/shdict.t TEST 7: get a large string value - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):9 loop\])" should match a line in error.log (req 1)
stream/shdict.t TEST 7: get a large string value - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:25:38 [error] 22149\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/shdict.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required
stream/shdict.t TEST 18: safe set a number value - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/shdict.t TEST 18: safe set a number value - status code ok got: ''
expected: '200'
stream/shdict.t TEST 18: safe set a number value - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-value type: number
-value: 3.1415926
-flags: 78
'
stream/shdict.t TEST 18: safe set a number value - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):8 loop\])" should match a line in error.log (req 0)
stream/shdict.t TEST 18: safe set a number value - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:25:42 [error] 22155\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/shdict.t TEST 18: safe set a number value - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/shdict.t TEST 18: safe set a number value - status code ok got: ''
expected: '200'
stream/shdict.t TEST 18: safe set a number value - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-value type: number
-value: 3.1415926
-flags: 78
'
stream/shdict.t TEST 18: safe set a number value - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):8 loop\])" should match a line in error.log (req 1)
stream/shdict.t TEST 18: safe set a number value - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:25:42 [error] 22155\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/shdict.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required
stream/shdict.t TEST 46: incr key with init and init_ttl (forcibly override other valid entries) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/shdict.t TEST 46: incr key with init and init_ttl (forcibly override other valid entries) - status code ok got: ''
expected: '200'
stream/shdict.t TEST 46: incr key with init and init_ttl (forcibly override other valid entries) - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-incr: 10502 nil false
-incr: 10502 nil true
-foo = 10502
-foo after init_ttl = nil
'
stream/shdict.t TEST 46: incr key with init and init_ttl (forcibly override other valid entries) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:25:47 [error] 22161\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/shdict.t TEST 46: incr key with init and init_ttl (forcibly override other valid entries) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/shdict.t TEST 46: incr key with init and init_ttl (forcibly override other valid entries) - status code ok got: ''
expected: '200'
stream/shdict.t TEST 46: incr key with init and init_ttl (forcibly override other valid entries) - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +0,0 @@
-incr: 10502 nil false
-incr: 10502 nil true
-foo = 10502
-foo after init_ttl = nil
'
stream/shdict.t TEST 46: incr key with init and init_ttl (forcibly override other valid entries) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:25:47 [error] 22161\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/shdict.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required
stream/shdict.t TEST 20: safe add a string value - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/shdict.t TEST 20: safe add a string value - status code ok got: ''
expected: '200'
stream/shdict.t TEST 20: safe add a string value - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-value type: string
-value: bar
-flags: 72
'
stream/shdict.t TEST 20: safe add a string value - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):9 loop\])" should match a line in error.log (req 0)
stream/shdict.t TEST 20: safe add a string value - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:25:51 [error] 22167\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/shdict.t TEST 20: safe add a string value - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/shdict.t TEST 20: safe add a string value - status code ok got: ''
expected: '200'
stream/shdict.t TEST 20: safe add a string value - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-value type: string
-value: bar
-flags: 72
'
stream/shdict.t TEST 20: safe add a string value - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):9 loop\])" should match a line in error.log (req 1)
stream/shdict.t TEST 20: safe add a string value - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:25:51 [error] 22167\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/shdict.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required
stream/shdict.t TEST 23: set nil key - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/shdict.t TEST 23: set nil key - status code ok got: ''
expected: '200'
stream/shdict.t TEST 23: set nil key - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'failed to set: nil key
'
stream/shdict.t TEST 23: set nil key - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:25:56 [error] 22173\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/shdict.t TEST 23: set nil key - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/shdict.t TEST 23: set nil key - status code ok got: ''
expected: '200'
stream/shdict.t TEST 23: set nil key - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'failed to set: nil key
'
stream/shdict.t TEST 23: set nil key - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:25:56 [error] 22173\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/shdict.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required
stream/shdict.t TEST 27: flush_all - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/shdict.t TEST 27: flush_all - status code ok got: ''
expected: '200'
stream/shdict.t TEST 27: flush_all - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-value type: nil
-value: nil
-flags: nil
'
stream/shdict.t TEST 27: flush_all - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):7 loop\])" should match a line in error.log (req 0)
stream/shdict.t TEST 27: flush_all - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:26:00 [error] 22179\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/shdict.t TEST 27: flush_all - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/shdict.t TEST 27: flush_all - status code ok got: ''
expected: '200'
stream/shdict.t TEST 27: flush_all - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-value type: nil
-value: nil
-flags: nil
'
stream/shdict.t TEST 27: flush_all - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):7 loop\])" should match a line in error.log (req 1)
stream/shdict.t TEST 27: flush_all - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:26:00 [error] 22179\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/shdict.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required
stream/shdict.t TEST 49: init_ttl uses long type to avoid overflow in incr() + ttl() - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/shdict.t TEST 49: init_ttl uses long type to avoid overflow in incr() + ttl() - status code ok got: ''
expected: '200'
stream/shdict.t TEST 49: init_ttl uses long type to avoid overflow in incr() + ttl() - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'ttl: 2147483648
'
stream/shdict.t TEST 49: init_ttl uses long type to avoid overflow in incr() + ttl() - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:26:05 [error] 22185\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/shdict.t TEST 49: init_ttl uses long type to avoid overflow in incr() + ttl() - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/shdict.t TEST 49: init_ttl uses long type to avoid overflow in incr() + ttl() - status code ok got: ''
expected: '200'
stream/shdict.t TEST 49: init_ttl uses long type to avoid overflow in incr() + ttl() - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'ttl: 2147483648
'
stream/shdict.t TEST 49: init_ttl uses long type to avoid overflow in incr() + ttl() - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:26:05 [error] 22185\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/shdict.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required
stream/shdict.t TEST 48: exptime uses long type to avoid overflow in expire() + ttl() - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/shdict.t TEST 48: exptime uses long type to avoid overflow in expire() + ttl() - status code ok got: ''
expected: '200'
stream/shdict.t TEST 48: exptime uses long type to avoid overflow in expire() + ttl() - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'ttl: 2147483648
'
stream/shdict.t TEST 48: exptime uses long type to avoid overflow in expire() + ttl() - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:26:10 [error] 22191\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/shdict.t TEST 48: exptime uses long type to avoid overflow in expire() + ttl() - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/shdict.t TEST 48: exptime uses long type to avoid overflow in expire() + ttl() - status code ok got: ''
expected: '200'
stream/shdict.t TEST 48: exptime uses long type to avoid overflow in expire() + ttl() - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'ttl: 2147483648
'
stream/shdict.t TEST 48: exptime uses long type to avoid overflow in expire() + ttl() - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:26:10 [error] 22191\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/shdict.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required
stream/shdict.t TEST 17: set a number value and a nil - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/shdict.t TEST 17: set a number value and a nil - status code ok got: ''
expected: '200'
stream/shdict.t TEST 17: set a number value and a nil - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-value type: nil
-value: nil
-flags: nil
'
stream/shdict.t TEST 17: set a number value and a nil - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):6 loop\])" should match a line in error.log (req 0)
stream/shdict.t TEST 17: set a number value and a nil - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:26:14 [error] 22197\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/shdict.t TEST 17: set a number value and a nil - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/shdict.t TEST 17: set a number value and a nil - status code ok got: ''
expected: '200'
stream/shdict.t TEST 17: set a number value and a nil - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-value type: nil
-value: nil
-flags: nil
'
stream/shdict.t TEST 17: set a number value and a nil - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):6 loop\])" should match a line in error.log (req 1)
stream/shdict.t TEST 17: set a number value and a nil - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:26:14 [error] 22197\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/shdict.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required
stream/shdict.t TEST 43: incr key with init and init_ttl (key not exists) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/shdict.t TEST 43: incr key with init and init_ttl (key not exists) - status code ok got: ''
expected: '200'
stream/shdict.t TEST 43: incr key with init and init_ttl (key not exists) - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-incr: 10503 nil
-foo = 10503
-foo after init_ttl = nil
'
stream/shdict.t TEST 43: incr key with init and init_ttl (key not exists) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:26:19 [error] 22203\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/shdict.t TEST 43: incr key with init and init_ttl (key not exists) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/shdict.t TEST 43: incr key with init and init_ttl (key not exists) - status code ok got: ''
expected: '200'
stream/shdict.t TEST 43: incr key with init and init_ttl (key not exists) - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-incr: 10503 nil
-foo = 10503
-foo after init_ttl = nil
'
stream/shdict.t TEST 43: incr key with init and init_ttl (key not exists) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:26:19 [error] 22203\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/shdict.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required
stream/shdict.t TEST 39: incr bad init_ttl argument - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/shdict.t TEST 39: incr bad init_ttl argument - status code ok got: ''
expected: '200'
stream/shdict.t TEST 39: incr bad init_ttl argument - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'not ok: bad "init_ttl" argument
'
stream/shdict.t TEST 39: incr bad init_ttl argument - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:26:23 [error] 22209\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/shdict.t TEST 39: incr bad init_ttl argument - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/shdict.t TEST 39: incr bad init_ttl argument - status code ok got: ''
expected: '200'
stream/shdict.t TEST 39: incr bad init_ttl argument - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'not ok: bad "init_ttl" argument
'
stream/shdict.t TEST 39: incr bad init_ttl argument - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:26:23 [error] 22209\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/shdict.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required
stream/shdict.t TEST 3: get a boolean value (true) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/shdict.t TEST 3: get a boolean value (true) - status code ok got: ''
expected: '200'
stream/shdict.t TEST 3: get a boolean value (true) - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-value type: boolean
-value: true
-flags: 5678
'
stream/shdict.t TEST 3: get a boolean value (true) - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):7 loop\])" should match a line in error.log (req 0)
stream/shdict.t TEST 3: get a boolean value (true) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:26:28 [error] 22215\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/shdict.t TEST 3: get a boolean value (true) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/shdict.t TEST 3: get a boolean value (true) - status code ok got: ''
expected: '200'
stream/shdict.t TEST 3: get a boolean value (true) - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-value type: boolean
-value: true
-flags: 5678
'
stream/shdict.t TEST 3: get a boolean value (true) - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):7 loop\])" should match a line in error.log (req 1)
stream/shdict.t TEST 3: get a boolean value (true) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:26:28 [error] 22215\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/shdict.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required
stream/shdict.t TEST 11: incr double - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/shdict.t TEST 11: incr double - status code ok got: ''
expected: '200'
stream/shdict.t TEST 11: incr double - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-value: 371
-err: nil
'
stream/shdict.t TEST 11: incr double - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):7 loop\])" should match a line in error.log (req 0)
stream/shdict.t TEST 11: incr double - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:26:32 [error] 22221\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/shdict.t TEST 11: incr double - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/shdict.t TEST 11: incr double - status code ok got: ''
expected: '200'
stream/shdict.t TEST 11: incr double - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-value: 371
-err: nil
'
stream/shdict.t TEST 11: incr double - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):7 loop\])" should match a line in error.log (req 1)
stream/shdict.t TEST 11: incr double - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:26:32 [error] 22221\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/shdict.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required
stream/shdict.t TEST 24: get nil key - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/shdict.t TEST 24: get nil key - status code ok got: ''
expected: '200'
stream/shdict.t TEST 24: get nil key - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'failed to get: nil key
'
stream/shdict.t TEST 24: get nil key - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:26:37 [error] 22227\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/shdict.t TEST 24: get nil key - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/shdict.t TEST 24: get nil key - status code ok got: ''
expected: '200'
stream/shdict.t TEST 24: get nil key - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'failed to get: nil key
'
stream/shdict.t TEST 24: get nil key - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:26:37 [error] 22227\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/shdict.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required
stream/shdict.t TEST 22: set a number value and delete - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/shdict.t TEST 22: set a number value and delete - status code ok got: ''
expected: '200'
stream/shdict.t TEST 22: set a number value and delete - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-value type: nil
-value: nil
-flags: nil
'
stream/shdict.t TEST 22: set a number value and delete - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):6 loop\])" should match a line in error.log (req 0)
stream/shdict.t TEST 22: set a number value and delete - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:26:41 [error] 22233\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/shdict.t TEST 22: set a number value and delete - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/shdict.t TEST 22: set a number value and delete - status code ok got: ''
expected: '200'
stream/shdict.t TEST 22: set a number value and delete - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-value type: nil
-value: nil
-flags: nil
'
stream/shdict.t TEST 22: set a number value and delete - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):6 loop\])" should match a line in error.log (req 1)
stream/shdict.t TEST 22: set a number value and delete - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:26:41 [error] 22233\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/shdict.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required
stream/shdict.t TEST 42: incr key with init_ttl (key exists) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/shdict.t TEST 42: incr key with init_ttl (key exists) - status code ok got: ''
expected: '200'
stream/shdict.t TEST 42: incr key with init_ttl (key exists) - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-incr: 10534 nil
-foo = 10534
-foo after incr init_ttl = 10534
'
stream/shdict.t TEST 42: incr key with init_ttl (key exists) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:26:46 [error] 22239\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/shdict.t TEST 42: incr key with init_ttl (key exists) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/shdict.t TEST 42: incr key with init_ttl (key exists) - status code ok got: ''
expected: '200'
stream/shdict.t TEST 42: incr key with init_ttl (key exists) - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-incr: 10534 nil
-foo = 10534
-foo after incr init_ttl = 10534
'
stream/shdict.t TEST 42: incr key with init_ttl (key exists) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:26:46 [error] 22239\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/shdict.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required
stream/shdict.t TEST 41: incr init_ttl argument without init - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/shdict.t TEST 41: incr init_ttl argument without init - status code ok got: ''
expected: '200'
stream/shdict.t TEST 41: incr init_ttl argument without init - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'not ok: must provide "init" when providing "init_ttl"
'
stream/shdict.t TEST 41: incr init_ttl argument without init - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:26:51 [error] 22245\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/shdict.t TEST 41: incr init_ttl argument without init - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/shdict.t TEST 41: incr init_ttl argument without init - status code ok got: ''
expected: '200'
stream/shdict.t TEST 41: incr init_ttl argument without init - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'not ok: must provide "init" when providing "init_ttl"
'
stream/shdict.t TEST 41: incr init_ttl argument without init - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:26:51 [error] 22245\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/shdict.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required
stream/shdict.t TEST 12: set a string value - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/shdict.t TEST 12: set a string value - status code ok got: ''
expected: '200'
stream/shdict.t TEST 12: set a string value - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-value type: string
-value: bar
-flags: 72
'
stream/shdict.t TEST 12: set a string value - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):7 loop\])" should match a line in error.log (req 0)
stream/shdict.t TEST 12: set a string value - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:26:55 [error] 22251\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/shdict.t TEST 12: set a string value - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/shdict.t TEST 12: set a string value - status code ok got: ''
expected: '200'
stream/shdict.t TEST 12: set a string value - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-value type: string
-value: bar
-flags: 72
'
stream/shdict.t TEST 12: set a string value - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):7 loop\])" should match a line in error.log (req 1)
stream/shdict.t TEST 12: set a string value - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:26:55 [error] 22251\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/shdict.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required
stream/shdict.t TEST 37: free_space, got forcible - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/shdict.t TEST 37: free_space, got forcible - status code ok got: ''
expected: '200'
stream/shdict.t TEST 37: free_space, got forcible - response_body_like - response is expected () ''
doesn't match '(?^s:\A(?:got forcible, i=64
)?free_page_bytes type: number
free_page_bytes: 0
\z)'
stream/shdict.t TEST 37: free_space, got forcible - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:27:00 [error] 22257\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/shdict.t TEST 37: free_space, got forcible - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/shdict.t TEST 37: free_space, got forcible - status code ok got: ''
expected: '200'
stream/shdict.t TEST 37: free_space, got forcible - response_body_like - response is expected () ''
doesn't match '(?^s:\A(?:got forcible, i=64
)?free_page_bytes type: number
free_page_bytes: 0
\z)'
stream/shdict.t TEST 37: free_space, got forcible - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:27:00 [error] 22257\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/shdict.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required
stream/shdict.t TEST 13: set a boolean value (true) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/shdict.t TEST 13: set a boolean value (true) - status code ok got: ''
expected: '200'
stream/shdict.t TEST 13: set a boolean value (true) - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-value type: boolean
-value: true
-flags: 5678
'
stream/shdict.t TEST 13: set a boolean value (true) - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):7 loop\])" should match a line in error.log (req 0)
stream/shdict.t TEST 13: set a boolean value (true) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:27:04 [error] 22263\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/shdict.t TEST 13: set a boolean value (true) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/shdict.t TEST 13: set a boolean value (true) - status code ok got: ''
expected: '200'
stream/shdict.t TEST 13: set a boolean value (true) - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-value type: boolean
-value: true
-flags: 5678
'
stream/shdict.t TEST 13: set a boolean value (true) - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):7 loop\])" should match a line in error.log (req 1)
stream/shdict.t TEST 13: set a boolean value (true) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:27:04 [error] 22263\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/shdict.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required
stream/shdict.t TEST 15: set a number value (int) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/shdict.t TEST 15: set a number value (int) - status code ok got: ''
expected: '200'
stream/shdict.t TEST 15: set a number value (int) - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-value type: number
-value: 51203
-flags: nil
'
stream/shdict.t TEST 15: set a number value (int) - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):6 loop\])" should match a line in error.log (req 0)
stream/shdict.t TEST 15: set a number value (int) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:27:09 [error] 22269\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/shdict.t TEST 15: set a number value (int) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/shdict.t TEST 15: set a number value (int) - status code ok got: ''
expected: '200'
stream/shdict.t TEST 15: set a number value (int) - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-value type: number
-value: 51203
-flags: nil
'
stream/shdict.t TEST 15: set a number value (int) - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):6 loop\])" should match a line in error.log (req 1)
stream/shdict.t TEST 15: set a number value (int) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:27:09 [error] 22269\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/shdict.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required
stream/shdict.t TEST 28: incr, value is not number - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/shdict.t TEST 28: incr, value is not number - status code ok got: ''
expected: '200'
stream/shdict.t TEST 28: incr, value is not number - pattern "cannot convert 'nil' to 'double'" should match a line in error.log (req 0)
stream/shdict.t TEST 28: incr, value is not number - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/shdict.t TEST 28: incr, value is not number - status code ok got: ''
expected: '200'
stream/shdict.t TEST 28: incr, value is not number - pattern "cannot convert 'nil' to 'double'" should match a line in error.log (req 1)
stream/shdict.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required
stream/shdict.t TEST 25: get stale key - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/shdict.t TEST 25: get stale key - status code ok got: ''
expected: '200'
stream/shdict.t TEST 25: get stale key - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'failed to get stale: nil key
'
stream/shdict.t TEST 25: get stale key - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:27:18 [error] 22300\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/shdict.t TEST 25: get stale key - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/shdict.t TEST 25: get stale key - status code ok got: ''
expected: '200'
stream/shdict.t TEST 25: get stale key - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'failed to get stale: nil key
'
stream/shdict.t TEST 25: get stale key - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:27:18 [error] 22300\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/ssl.t TEST 17: parse PEM cert and key to cdata (bad cert 0 in the chain) - pattern "[crit]" should not match any line in error.log but matches line "2020/10/26 13:27:25 [crit] 22311\#0: *5 SSL_do_handshake() failed (SSL: error:1417A179:SSL routines:tls_post_process_client_hello:cert cb error) while SSL handshaking, client: unix:, server: unix:/home/ec2-user/git/lua-resty-core/t/servroot/html/nginx.sock" (req 0) 2020/10/26 13:27:25 [debug] 22311\#0: *5 finalize stream session: 500
2020/10/26 13:27:25 [debug] 22311\#0: *5 stream log handler
2020/10/26 13:27:25 [debug] 22311\#0: *5 close stream connection: 17
2020/10/26 13:27:25 [debug] 22311\#0: *5 reusable connection: 0
2020/10/26 13:27:25 [debug] 22311\#0: *5 free: 04C3D978, unused: 0
2020/10/26 13:27:25 [debug] 22311\#0: *5 free: 04C2B610, unused: 0
2020/10/26 13:27:25 [debug] 22311\#0: *5 free: 04C2B578, unused: 0
2020/10/26 13:27:25 [debug] 22311\#0: *5 free: 04C2B510, unused: 0
2020/10/26 13:27:25 [debug] 22311\#0: *5 free: 04C2B460, unused: 0
'
stream/ssl.t TEST 17: parse PEM cert and key to cdata (bad cert 0 in the chain) - pattern "[crit]" should not match any line in error.log but matches line "2020/10/26 13:27:25 [crit] 22311\#0: *11 SSL_do_handshake() failed (SSL: error:1417A179:SSL routines:tls_post_process_client_hello:cert cb error) while SSL handshaking, client: unix:, server: unix:/home/ec2-user/git/lua-resty-core/t/servroot/html/nginx.sock" (req 1) 2020/10/26 13:27:25 [debug] 22311\#0: *11 finalize stream session: 500
2020/10/26 13:27:25 [debug] 22311\#0: *11 stream log handler
2020/10/26 13:27:25 [debug] 22311\#0: *11 close stream connection: 17
2020/10/26 13:27:25 [debug] 22311\#0: *11 reusable connection: 0
2020/10/26 13:27:25 [debug] 22311\#0: *11 free: 04C8D3F0, unused: 0
2020/10/26 13:27:25 [debug] 22311\#0: *11 free: 04C7B088, unused: 0
2020/10/26 13:27:25 [debug] 22311\#0: *11 free: 04C7AFF0, unused: 0
2020/10/26 13:27:25 [debug] 22311\#0: *11 free: 04C7AF88, unused: 0
2020/10/26 13:27:25 [debug] 22311\#0: *11 free: 04C7AED8, unused: 0
'
stream/ssl.t TEST 5: read raw server addr via ssl.raw_server_addr() (unix domain socket) - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
-received: it works!
-close: 1 nil
'
stream/ssl.t TEST 5: read raw server addr via ssl.raw_server_addr() (unix domain socket) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:27:28 [error] 22322\#0: *43 lua entry thread aborted: runtime error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 0) stack traceback:
coroutine 0:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/ngx/ssl.lua:4: in main chunk
[C]: in function 'require'
ssl_certificate_by_lua:2: in main chunk, context: ssl_certificate_by_lua*, client: unix:, server: unix:/home/ec2-user/git/lua-resty-core/t/servroot/html/nginx.sock
2020/10/26 13:27:28 [debug] 22322\#0: *43 lua request cleanup: forcible=0
'
stream/ssl.t TEST 5: read raw server addr via ssl.raw_server_addr() (unix domain socket) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:27:29 [error] 22322\#0: *40 SSL_do_handshake() failed (SSL: error:14094438:SSL routines:ssl3_read_bytes:tlsv1 alert internal error:SSL alert number 80), client: 127.0.0.1, server: 0.0.0.0:1985" (req 0) 2020/10/26 13:27:29 [debug] 22322\#0: *40 event timer del: 16: 15964688
2020/10/26 13:27:29 [debug] 22322\#0: *40 stream lua tcp socket handle connect error
2020/10/26 13:27:29 [debug] 22322\#0: *40 stream lua finalize socket
2020/10/26 13:27:29 [debug] 22322\#0: *40 lua stream cleanup free: 04E67248
2020/10/26 13:27:29 [debug] 22322\#0: *40 lua close socket connection
2020/10/26 13:27:29 [debug] 22322\#0: *40 free: 04E67618, unused: 0
2020/10/26 13:27:29 [debug] 22322\#0: *40 reusable connection: 0
2020/10/26 13:27:29 [debug] 22322\#0: *40 stream lua tcp socket waking up the current request
2020/10/26 13:27:29 [debug] 22322\#0: *40 lua ngx_stream_lua_content_wev_handler
'
stream/ssl.t TEST 5: read raw server addr via ssl.raw_server_addr() (unix domain socket) - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
-received: it works!
-close: 1 nil
'
stream/ssl.t TEST 5: read raw server addr via ssl.raw_server_addr() (unix domain socket) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:27:29 [error] 22322\#0: *49 lua entry thread aborted: runtime error: ssl_certificate_by_lua:2: loop or previous error loading module 'ngx.ssl'" (req 1) stack traceback:
coroutine 0:
[C]: in function 'require'
ssl_certificate_by_lua:2: in main chunk, context: ssl_certificate_by_lua*, client: unix:, server: unix:/home/ec2-user/git/lua-resty-core/t/servroot/html/nginx.sock
2020/10/26 13:27:29 [debug] 22322\#0: *49 lua request cleanup: forcible=0
2020/10/26 13:27:29 [debug] 22322\#0: *49 stream lua finalize fake request: 500
2020/10/26 13:27:29 [debug] 22322\#0: *49 stream lua close fake request
2020/10/26 13:27:29 [debug] 22322\#0: *49 stream lua close fake stream connection 04D85BD8
2020/10/26 13:27:29 [debug] 22322\#0: run cleanup: 04EDF558
'
stream/ssl.t TEST 5: read raw server addr via ssl.raw_server_addr() (unix domain socket) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:27:29 [error] 22322\#0: *46 SSL_do_handshake() failed (SSL: error:14094438:SSL routines:ssl3_read_bytes:tlsv1 alert internal error:SSL alert number 80), client: 127.0.0.1, server: 0.0.0.0:1985" (req 1) 2020/10/26 13:27:29 [debug] 22322\#0: *46 event timer del: 16: 15965432
2020/10/26 13:27:29 [debug] 22322\#0: *46 stream lua tcp socket handle connect error
2020/10/26 13:27:29 [debug] 22322\#0: *46 stream lua finalize socket
2020/10/26 13:27:29 [debug] 22322\#0: *46 lua stream cleanup free: 04EB65D0
2020/10/26 13:27:29 [debug] 22322\#0: *46 lua close socket connection
2020/10/26 13:27:29 [debug] 22322\#0: *46 free: 04EB69A0, unused: 0
2020/10/26 13:27:29 [debug] 22322\#0: *46 reusable connection: 0
2020/10/26 13:27:29 [debug] 22322\#0: *46 stream lua tcp socket waking up the current request
2020/10/26 13:27:29 [debug] 22322\#0: *46 lua ngx_stream_lua_content_wev_handler
'
stream/ssl.t TEST 16: parse PEM cert and key to cdata - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
-received: it works!
-close: 1 nil
'
stream/ssl.t TEST 16: parse PEM cert and key to cdata - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:27:32 [error] 22352\#0: *79 lua entry thread aborted: runtime error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 0) stack traceback:
coroutine 0:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/ngx/ssl.lua:4: in main chunk
[C]: in function 'require'
ssl_certificate_by_lua:2: in main chunk, context: ssl_certificate_by_lua*, client: unix:, server: unix:/home/ec2-user/git/lua-resty-core/t/servroot/html/nginx.sock
2020/10/26 13:27:32 [debug] 22352\#0: *79 lua request cleanup: forcible=0
'
stream/ssl.t TEST 16: parse PEM cert and key to cdata - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:27:32 [error] 22352\#0: *76 SSL_do_handshake() failed (SSL: error:14094438:SSL routines:ssl3_read_bytes:tlsv1 alert internal error:SSL alert number 80), client: 127.0.0.1, server: 0.0.0.0:1985" (req 0) 2020/10/26 13:27:32 [debug] 22352\#0: *76 event timer del: 16: 15968036
2020/10/26 13:27:32 [debug] 22352\#0: *76 stream lua tcp socket handle connect error
2020/10/26 13:27:32 [debug] 22352\#0: *76 stream lua finalize socket
2020/10/26 13:27:32 [debug] 22352\#0: *76 lua stream cleanup free: 05091540
2020/10/26 13:27:32 [debug] 22352\#0: *76 lua close socket connection
2020/10/26 13:27:32 [debug] 22352\#0: *76 free: 05091910, unused: 0
2020/10/26 13:27:32 [debug] 22352\#0: *76 reusable connection: 0
2020/10/26 13:27:32 [debug] 22352\#0: *76 stream lua tcp socket waking up the current request
2020/10/26 13:27:32 [debug] 22352\#0: *76 lua ngx_stream_lua_content_wev_handler
'
stream/ssl.t TEST 16: parse PEM cert and key to cdata - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
-received: it works!
-close: 1 nil
'
stream/ssl.t TEST 16: parse PEM cert and key to cdata - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:27:32 [error] 22352\#0: *85 lua entry thread aborted: runtime error: ssl_certificate_by_lua:2: loop or previous error loading module 'ngx.ssl'" (req 1) stack traceback:
coroutine 0:
[C]: in function 'require'
ssl_certificate_by_lua:2: in main chunk, context: ssl_certificate_by_lua*, client: unix:, server: unix:/home/ec2-user/git/lua-resty-core/t/servroot/html/nginx.sock
2020/10/26 13:27:32 [debug] 22352\#0: *85 lua request cleanup: forcible=0
2020/10/26 13:27:32 [debug] 22352\#0: *85 stream lua finalize fake request: 500
2020/10/26 13:27:32 [debug] 22352\#0: *85 stream lua close fake request
2020/10/26 13:27:32 [debug] 22352\#0: *85 stream lua close fake stream connection 0505FDF8
2020/10/26 13:27:32 [debug] 22352\#0: run cleanup: 0510A148
'
stream/ssl.t TEST 16: parse PEM cert and key to cdata - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:27:32 [error] 22352\#0: *82 SSL_do_handshake() failed (SSL: error:14094438:SSL routines:ssl3_read_bytes:tlsv1 alert internal error:SSL alert number 80), client: 127.0.0.1, server: 0.0.0.0:1985" (req 1) 2020/10/26 13:27:32 [debug] 22352\#0: *82 event timer del: 16: 15968732
2020/10/26 13:27:32 [debug] 22352\#0: *82 stream lua tcp socket handle connect error
2020/10/26 13:27:32 [debug] 22352\#0: *82 stream lua finalize socket
2020/10/26 13:27:32 [debug] 22352\#0: *82 lua stream cleanup free: 050E11C0
2020/10/26 13:27:32 [debug] 22352\#0: *82 lua close socket connection
2020/10/26 13:27:32 [debug] 22352\#0: *82 free: 050E1590, unused: 0
2020/10/26 13:27:32 [debug] 22352\#0: *82 reusable connection: 0
2020/10/26 13:27:32 [debug] 22352\#0: *82 stream lua tcp socket waking up the current request
2020/10/26 13:27:32 [debug] 22352\#0: *82 lua ngx_stream_lua_content_wev_handler
'
stream/ssl.t TEST 11: tls version - TLSv1 - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +1,2 @@
connected: 1
-ssl handshake: boolean
+failed to do SSL handshake: handshake failed
'
stream/ssl.t TEST 11: tls version - TLSv1 - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:27:35 [error] 22382\#0: *115 lua entry thread aborted: runtime error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 0) stack traceback:
coroutine 0:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/ngx/ssl.lua:4: in main chunk
[C]: in function 'require'
ssl_certificate_by_lua:2: in main chunk, context: ssl_certificate_by_lua*, client: 127.0.0.1, server: 127.0.0.2:25687
2020/10/26 13:27:35 [debug] 22382\#0: *115 lua request cleanup: forcible=0
'
stream/ssl.t TEST 11: tls version - TLSv1 - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:27:35 [error] 22382\#0: *112 SSL_do_handshake() failed (SSL: error:14094438:SSL routines:ssl3_read_bytes:tlsv1 alert internal error:SSL alert number 80), client: 127.0.0.1, server: 0.0.0.0:1985" (req 0) 2020/10/26 13:27:35 [debug] 22382\#0: *112 event timer del: 16: 15971396
2020/10/26 13:27:35 [debug] 22382\#0: *112 stream lua tcp socket handle connect error
2020/10/26 13:27:35 [debug] 22382\#0: *112 stream lua finalize socket
2020/10/26 13:27:35 [debug] 22382\#0: *112 lua stream cleanup free: 052DC6F8
2020/10/26 13:27:35 [debug] 22382\#0: *112 lua close socket connection
2020/10/26 13:27:35 [debug] 22382\#0: *112 free: 0516A1B8, unused: 0
2020/10/26 13:27:35 [debug] 22382\#0: *112 reusable connection: 0
2020/10/26 13:27:35 [debug] 22382\#0: *112 stream lua tcp socket waking up the current request
2020/10/26 13:27:35 [debug] 22382\#0: *112 lua ngx_stream_lua_content_wev_handler
'
stream/ssl.t TEST 11: tls version - TLSv1 - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +1,2 @@
connected: 1
-ssl handshake: boolean
+failed to do SSL handshake: handshake failed
'
stream/ssl.t TEST 11: tls version - TLSv1 - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:27:36 [error] 22382\#0: *121 lua entry thread aborted: runtime error: ssl_certificate_by_lua:2: loop or previous error loading module 'ngx.ssl'" (req 1) stack traceback:
coroutine 0:
[C]: in function 'require'
ssl_certificate_by_lua:2: in main chunk, context: ssl_certificate_by_lua*, client: 127.0.0.1, server: 127.0.0.2:25687
2020/10/26 13:27:36 [debug] 22382\#0: *121 lua request cleanup: forcible=0
2020/10/26 13:27:36 [debug] 22382\#0: *121 stream lua finalize fake request: 500
2020/10/26 13:27:36 [debug] 22382\#0: *121 stream lua close fake request
2020/10/26 13:27:36 [debug] 22382\#0: *121 stream lua close fake stream connection 05157A88
2020/10/26 13:27:36 [debug] 22382\#0: run cleanup: 05328A68
'
stream/ssl.t TEST 11: tls version - TLSv1 - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:27:36 [error] 22382\#0: *118 SSL_do_handshake() failed (SSL: error:14094438:SSL routines:ssl3_read_bytes:tlsv1 alert internal error:SSL alert number 80), client: 127.0.0.1, server: 0.0.0.0:1985" (req 1) 2020/10/26 13:27:36 [debug] 22382\#0: *118 event timer del: 16: 15972020
2020/10/26 13:27:36 [debug] 22382\#0: *118 stream lua tcp socket handle connect error
2020/10/26 13:27:36 [debug] 22382\#0: *118 stream lua finalize socket
2020/10/26 13:27:36 [debug] 22382\#0: *118 lua stream cleanup free: 053045A0
2020/10/26 13:27:36 [debug] 22382\#0: *118 lua close socket connection
2020/10/26 13:27:36 [debug] 22382\#0: *118 free: 05304970, unused: 0
2020/10/26 13:27:36 [debug] 22382\#0: *118 reusable connection: 0
2020/10/26 13:27:36 [debug] 22382\#0: *118 stream lua tcp socket waking up the current request
2020/10/26 13:27:36 [debug] 22382\#0: *118 lua ngx_stream_lua_content_wev_handler
'
stream/ssl.t TEST 18: parse PEM cert and key to cdata (bad cert 2 in the chain) - pattern "[crit]" should not match any line in error.log but matches line "2020/10/26 13:27:38 [crit] 22412\#0: *150 SSL_do_handshake() failed (SSL: error:1417A179:SSL routines:tls_post_process_client_hello:cert cb error) while SSL handshaking, client: unix:, server: unix:/home/ec2-user/git/lua-resty-core/t/servroot/html/nginx.sock" (req 0) 2020/10/26 13:27:38 [debug] 22412\#0: *150 finalize stream session: 500
2020/10/26 13:27:38 [debug] 22412\#0: *150 stream log handler
2020/10/26 13:27:38 [debug] 22412\#0: *150 close stream connection: 17
2020/10/26 13:27:38 [debug] 22412\#0: *150 reusable connection: 0
2020/10/26 13:27:38 [debug] 22412\#0: *150 free: 0550E6F8, unused: 0
2020/10/26 13:27:38 [debug] 22412\#0: *150 free: 054FC390, unused: 0
2020/10/26 13:27:38 [debug] 22412\#0: *150 free: 054FC2F8, unused: 0
2020/10/26 13:27:38 [debug] 22412\#0: *150 free: 054FC290, unused: 0
2020/10/26 13:27:38 [debug] 22412\#0: *150 free: 054FC1E0, unused: 0
'
stream/ssl.t TEST 18: parse PEM cert and key to cdata (bad cert 2 in the chain) - pattern "[crit]" should not match any line in error.log but matches line "2020/10/26 13:27:39 [crit] 22412\#0: *156 SSL_do_handshake() failed (SSL: error:1417A179:SSL routines:tls_post_process_client_hello:cert cb error) while SSL handshaking, client: unix:, server: unix:/home/ec2-user/git/lua-resty-core/t/servroot/html/nginx.sock" (req 1) 2020/10/26 13:27:39 [debug] 22412\#0: *156 finalize stream session: 500
2020/10/26 13:27:39 [debug] 22412\#0: *156 stream log handler
2020/10/26 13:27:39 [debug] 22412\#0: *156 close stream connection: 17
2020/10/26 13:27:39 [debug] 22412\#0: *156 reusable connection: 0
2020/10/26 13:27:39 [debug] 22412\#0: *156 free: 0555E170, unused: 0
2020/10/26 13:27:39 [debug] 22412\#0: *156 free: 0554BE08, unused: 0
2020/10/26 13:27:39 [debug] 22412\#0: *156 free: 0554BD70, unused: 0
2020/10/26 13:27:39 [debug] 22412\#0: *156 free: 0554BD08, unused: 0
2020/10/26 13:27:39 [debug] 22412\#0: *156 free: 0554BC58, unused: 0
'
stream/ssl.t TEST 12: tls version - TLSv1.1 - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +1,2 @@
connected: 1
-ssl handshake: boolean
+failed to do SSL handshake: handshake failed
'
stream/ssl.t TEST 12: tls version - TLSv1.1 - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:27:42 [error] 22442\#0: *187 lua entry thread aborted: runtime error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 0) stack traceback:
coroutine 0:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/ngx/ssl.lua:4: in main chunk
[C]: in function 'require'
ssl_certificate_by_lua:2: in main chunk, context: ssl_certificate_by_lua*, client: 127.0.0.1, server: 127.0.0.2:50077
2020/10/26 13:27:42 [debug] 22442\#0: *187 lua request cleanup: forcible=0
'
stream/ssl.t TEST 12: tls version - TLSv1.1 - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:27:42 [error] 22442\#0: *184 SSL_do_handshake() failed (SSL: error:14094438:SSL routines:ssl3_read_bytes:tlsv1 alert internal error:SSL alert number 80), client: 127.0.0.1, server: 0.0.0.0:1985" (req 0) 2020/10/26 13:27:42 [debug] 22442\#0: *184 event timer del: 16: 15977984
2020/10/26 13:27:42 [debug] 22442\#0: *184 stream lua tcp socket handle connect error
2020/10/26 13:27:42 [debug] 22442\#0: *184 stream lua finalize socket
2020/10/26 13:27:42 [debug] 22442\#0: *184 lua stream cleanup free: 05587718
2020/10/26 13:27:42 [debug] 22442\#0: *184 lua close socket connection
2020/10/26 13:27:42 [debug] 22442\#0: *184 free: 05587AE8, unused: 0
2020/10/26 13:27:42 [debug] 22442\#0: *184 reusable connection: 0
2020/10/26 13:27:42 [debug] 22442\#0: *184 stream lua tcp socket waking up the current request
2020/10/26 13:27:42 [debug] 22442\#0: *184 lua ngx_stream_lua_content_wev_handler
'
stream/ssl.t TEST 12: tls version - TLSv1.1 - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +1,2 @@
connected: 1
-ssl handshake: boolean
+failed to do SSL handshake: handshake failed
'
stream/ssl.t TEST 12: tls version - TLSv1.1 - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:27:42 [error] 22442\#0: *193 lua entry thread aborted: runtime error: ssl_certificate_by_lua:2: loop or previous error loading module 'ngx.ssl'" (req 1) stack traceback:
coroutine 0:
[C]: in function 'require'
ssl_certificate_by_lua:2: in main chunk, context: ssl_certificate_by_lua*, client: 127.0.0.1, server: 127.0.0.2:50077
2020/10/26 13:27:42 [debug] 22442\#0: *193 lua request cleanup: forcible=0
2020/10/26 13:27:42 [debug] 22442\#0: *193 stream lua finalize fake request: 500
2020/10/26 13:27:42 [debug] 22442\#0: *193 stream lua close fake request
2020/10/26 13:27:42 [debug] 22442\#0: *193 stream lua close fake stream connection 0556BCE8
2020/10/26 13:27:42 [debug] 22442\#0: run cleanup: 0577CD00
'
stream/ssl.t TEST 12: tls version - TLSv1.1 - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:27:42 [error] 22442\#0: *190 SSL_do_handshake() failed (SSL: error:14094438:SSL routines:ssl3_read_bytes:tlsv1 alert internal error:SSL alert number 80), client: 127.0.0.1, server: 0.0.0.0:1985" (req 1) 2020/10/26 13:27:42 [debug] 22442\#0: *190 event timer del: 16: 15978608
2020/10/26 13:27:42 [debug] 22442\#0: *190 stream lua tcp socket handle connect error
2020/10/26 13:27:42 [debug] 22442\#0: *190 stream lua finalize socket
2020/10/26 13:27:42 [debug] 22442\#0: *190 lua stream cleanup free: 05758838
2020/10/26 13:27:42 [debug] 22442\#0: *190 lua close socket connection
2020/10/26 13:27:42 [debug] 22442\#0: *190 free: 05758C08, unused: 0
2020/10/26 13:27:42 [debug] 22442\#0: *190 reusable connection: 0
2020/10/26 13:27:42 [debug] 22442\#0: *190 stream lua tcp socket waking up the current request
2020/10/26 13:27:42 [debug] 22442\#0: *190 lua ngx_stream_lua_content_wev_handler
'
stream/ssl.t TEST 20: read client addr via ssl.raw_client_addr() - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
-received: it works!
-close: 1 nil
'
stream/ssl.t TEST 20: read client addr via ssl.raw_client_addr() - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:27:45 [error] 22472\#0: *223 lua entry thread aborted: runtime error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 0) stack traceback:
coroutine 0:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/ngx/ssl.lua:4: in main chunk
[C]: in function 'require'
ssl_certificate_by_lua:2: in main chunk, context: ssl_certificate_by_lua*, client: 127.0.0.1, server: 127.0.0.1:39215
2020/10/26 13:27:45 [debug] 22472\#0: *223 lua request cleanup: forcible=0
'
stream/ssl.t TEST 20: read client addr via ssl.raw_client_addr() - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:27:45 [error] 22472\#0: *220 SSL_do_handshake() failed (SSL: error:14094438:SSL routines:ssl3_read_bytes:tlsv1 alert internal error:SSL alert number 80), client: 127.0.0.1, server: 0.0.0.0:1985" (req 0) 2020/10/26 13:27:45 [debug] 22472\#0: *220 event timer del: 16: 15981281
2020/10/26 13:27:45 [debug] 22472\#0: *220 stream lua tcp socket handle connect error
2020/10/26 13:27:45 [debug] 22472\#0: *220 stream lua finalize socket
2020/10/26 13:27:45 [debug] 22472\#0: *220 lua stream cleanup free: 05939BA8
2020/10/26 13:27:45 [debug] 22472\#0: *220 lua close socket connection
2020/10/26 13:27:45 [debug] 22472\#0: *220 free: 05939F78, unused: 0
2020/10/26 13:27:45 [debug] 22472\#0: *220 reusable connection: 0
2020/10/26 13:27:45 [debug] 22472\#0: *220 stream lua tcp socket waking up the current request
2020/10/26 13:27:45 [debug] 22472\#0: *220 lua ngx_stream_lua_content_wev_handler
'
stream/ssl.t TEST 20: read client addr via ssl.raw_client_addr() - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
-received: it works!
-close: 1 nil
'
stream/ssl.t TEST 20: read client addr via ssl.raw_client_addr() - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:27:45 [error] 22472\#0: *229 lua entry thread aborted: runtime error: ssl_certificate_by_lua:2: loop or previous error loading module 'ngx.ssl'" (req 1) stack traceback:
coroutine 0:
[C]: in function 'require'
ssl_certificate_by_lua:2: in main chunk, context: ssl_certificate_by_lua*, client: 127.0.0.1, server: 127.0.0.1:39215
2020/10/26 13:27:45 [debug] 22472\#0: *229 lua request cleanup: forcible=0
2020/10/26 13:27:45 [debug] 22472\#0: *229 stream lua finalize fake request: 500
2020/10/26 13:27:45 [debug] 22472\#0: *229 stream lua close fake request
2020/10/26 13:27:45 [debug] 22472\#0: *229 stream lua close fake stream connection 059084A0
2020/10/26 13:27:45 [debug] 22472\#0: run cleanup: 059A8D78
'
stream/ssl.t TEST 20: read client addr via ssl.raw_client_addr() - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:27:45 [error] 22472\#0: *226 SSL_do_handshake() failed (SSL: error:14094438:SSL routines:ssl3_read_bytes:tlsv1 alert internal error:SSL alert number 80), client: 127.0.0.1, server: 0.0.0.0:1985" (req 1) 2020/10/26 13:27:45 [debug] 22472\#0: *226 event timer del: 16: 15981909
2020/10/26 13:27:45 [debug] 22472\#0: *226 stream lua tcp socket handle connect error
2020/10/26 13:27:45 [debug] 22472\#0: *226 stream lua finalize socket
2020/10/26 13:27:45 [debug] 22472\#0: *226 lua stream cleanup free: 05984178
2020/10/26 13:27:45 [debug] 22472\#0: *226 lua close socket connection
2020/10/26 13:27:45 [debug] 22472\#0: *226 free: 05984548, unused: 0
2020/10/26 13:27:45 [debug] 22472\#0: *226 reusable connection: 0
2020/10/26 13:27:45 [debug] 22472\#0: *226 stream lua tcp socket waking up the current request
2020/10/26 13:27:45 [debug] 22472\#0: *226 lua ngx_stream_lua_content_wev_handler
'
stream/ssl.t TEST 8: set DER cert chain - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
-received: it works!
-close: 1 nil
'
stream/ssl.t TEST 8: set DER cert chain - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:27:48 [error] 22502\#0: *259 lua entry thread aborted: runtime error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 0) stack traceback:
coroutine 0:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/ngx/ssl.lua:4: in main chunk
[C]: in function 'require'
ssl_certificate_by_lua:2: in main chunk, context: ssl_certificate_by_lua*, client: unix:, server: unix:/home/ec2-user/git/lua-resty-core/t/servroot/html/nginx.sock
2020/10/26 13:27:48 [debug] 22502\#0: *259 lua request cleanup: forcible=0
'
stream/ssl.t TEST 8: set DER cert chain - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:27:49 [error] 22502\#0: *256 SSL_do_handshake() failed (SSL: error:14094438:SSL routines:ssl3_read_bytes:tlsv1 alert internal error:SSL alert number 80), client: 127.0.0.1, server: 0.0.0.0:1985" (req 0) 2020/10/26 13:27:49 [debug] 22502\#0: *256 event timer del: 16: 15984505
2020/10/26 13:27:49 [debug] 22502\#0: *256 stream lua tcp socket handle connect error
2020/10/26 13:27:49 [debug] 22502\#0: *256 stream lua finalize socket
2020/10/26 13:27:49 [debug] 22502\#0: *256 lua stream cleanup free: 05B63858
2020/10/26 13:27:49 [debug] 22502\#0: *256 lua close socket connection
2020/10/26 13:27:49 [debug] 22502\#0: *256 free: 05B63C28, unused: 0
2020/10/26 13:27:49 [debug] 22502\#0: *256 reusable connection: 0
2020/10/26 13:27:49 [debug] 22502\#0: *256 stream lua tcp socket waking up the current request
2020/10/26 13:27:49 [debug] 22502\#0: *256 lua ngx_stream_lua_content_wev_handler
'
stream/ssl.t TEST 8: set DER cert chain - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
-received: it works!
-close: 1 nil
'
stream/ssl.t TEST 8: set DER cert chain - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:27:49 [error] 22502\#0: *265 lua entry thread aborted: runtime error: ssl_certificate_by_lua:2: loop or previous error loading module 'ngx.ssl'" (req 1) stack traceback:
coroutine 0:
[C]: in function 'require'
ssl_certificate_by_lua:2: in main chunk, context: ssl_certificate_by_lua*, client: unix:, server: unix:/home/ec2-user/git/lua-resty-core/t/servroot/html/nginx.sock
2020/10/26 13:27:49 [debug] 22502\#0: *265 lua request cleanup: forcible=0
2020/10/26 13:27:49 [debug] 22502\#0: *265 stream lua finalize fake request: 500
2020/10/26 13:27:49 [debug] 22502\#0: *265 stream lua close fake request
2020/10/26 13:27:49 [debug] 22502\#0: *265 stream lua close fake stream connection 05B32110
2020/10/26 13:27:49 [debug] 22502\#0: run cleanup: 05BDB7D8
'
stream/ssl.t TEST 8: set DER cert chain - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:27:49 [error] 22502\#0: *262 SSL_do_handshake() failed (SSL: error:14094438:SSL routines:ssl3_read_bytes:tlsv1 alert internal error:SSL alert number 80), client: 127.0.0.1, server: 0.0.0.0:1985" (req 1) 2020/10/26 13:27:49 [debug] 22502\#0: *262 event timer del: 16: 15985201
2020/10/26 13:27:49 [debug] 22502\#0: *262 stream lua tcp socket handle connect error
2020/10/26 13:27:49 [debug] 22502\#0: *262 stream lua finalize socket
2020/10/26 13:27:49 [debug] 22502\#0: *262 lua stream cleanup free: 05BB2850
2020/10/26 13:27:49 [debug] 22502\#0: *262 lua close socket connection
2020/10/26 13:27:49 [debug] 22502\#0: *262 free: 05BB2C20, unused: 0
2020/10/26 13:27:49 [debug] 22502\#0: *262 reusable connection: 0
2020/10/26 13:27:49 [debug] 22502\#0: *262 stream lua tcp socket waking up the current request
2020/10/26 13:27:49 [debug] 22502\#0: *262 lua ngx_stream_lua_content_wev_handler
'
stream/ssl.t TEST 13: tls version - TLSv1.2 - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +1,2 @@
connected: 1
-ssl handshake: boolean
+failed to do SSL handshake: handshake failed
'
stream/ssl.t TEST 13: tls version - TLSv1.2 - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:27:51 [error] 22532\#0: *295 lua entry thread aborted: runtime error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 0) stack traceback:
coroutine 0:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/ngx/ssl.lua:4: in main chunk
[C]: in function 'require'
ssl_certificate_by_lua:2: in main chunk, context: ssl_certificate_by_lua*, client: 127.0.0.1, server: 127.0.0.2:17508
2020/10/26 13:27:51 [debug] 22532\#0: *295 lua request cleanup: forcible=0
'
stream/ssl.t TEST 13: tls version - TLSv1.2 - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:27:52 [error] 22532\#0: *292 SSL_do_handshake() failed (SSL: error:14094438:SSL routines:ssl3_read_bytes:tlsv1 alert internal error:SSL alert number 80), client: 127.0.0.1, server: 0.0.0.0:1985" (req 0) 2020/10/26 13:27:52 [debug] 22532\#0: *292 event timer del: 16: 15987889
2020/10/26 13:27:52 [debug] 22532\#0: *292 stream lua tcp socket handle connect error
2020/10/26 13:27:52 [debug] 22532\#0: *292 stream lua finalize socket
2020/10/26 13:27:52 [debug] 22532\#0: *292 lua stream cleanup free: 05D8CA48
2020/10/26 13:27:52 [debug] 22532\#0: *292 lua close socket connection
2020/10/26 13:27:52 [debug] 22532\#0: *292 free: 05D8CE18, unused: 0
2020/10/26 13:27:52 [debug] 22532\#0: *292 reusable connection: 0
2020/10/26 13:27:52 [debug] 22532\#0: *292 stream lua tcp socket waking up the current request
2020/10/26 13:27:52 [debug] 22532\#0: *292 lua ngx_stream_lua_content_wev_handler
'
stream/ssl.t TEST 13: tls version - TLSv1.2 - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +1,2 @@
connected: 1
-ssl handshake: boolean
+failed to do SSL handshake: handshake failed
'
stream/ssl.t TEST 13: tls version - TLSv1.2 - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:27:52 [error] 22532\#0: *301 lua entry thread aborted: runtime error: ssl_certificate_by_lua:2: loop or previous error loading module 'ngx.ssl'" (req 1) stack traceback:
coroutine 0:
[C]: in function 'require'
ssl_certificate_by_lua:2: in main chunk, context: ssl_certificate_by_lua*, client: 127.0.0.1, server: 127.0.0.2:17508
2020/10/26 13:27:52 [debug] 22532\#0: *301 lua request cleanup: forcible=0
2020/10/26 13:27:52 [debug] 22532\#0: *301 stream lua finalize fake request: 500
2020/10/26 13:27:52 [debug] 22532\#0: *301 stream lua close fake request
2020/10/26 13:27:52 [debug] 22532\#0: *301 stream lua close fake stream connection 05D5C068
2020/10/26 13:27:52 [debug] 22532\#0: run cleanup: 05DFBBE8
'
stream/ssl.t TEST 13: tls version - TLSv1.2 - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:27:52 [error] 22532\#0: *298 SSL_do_handshake() failed (SSL: error:14094438:SSL routines:ssl3_read_bytes:tlsv1 alert internal error:SSL alert number 80), client: 127.0.0.1, server: 0.0.0.0:1985" (req 1) 2020/10/26 13:27:52 [debug] 22532\#0: *298 event timer del: 16: 15988517
2020/10/26 13:27:52 [debug] 22532\#0: *298 stream lua tcp socket handle connect error
2020/10/26 13:27:52 [debug] 22532\#0: *298 stream lua finalize socket
2020/10/26 13:27:52 [debug] 22532\#0: *298 lua stream cleanup free: 05DD6FF8
2020/10/26 13:27:52 [debug] 22532\#0: *298 lua close socket connection
2020/10/26 13:27:52 [debug] 22532\#0: *298 free: 05DD73C8, unused: 0
2020/10/26 13:27:52 [debug] 22532\#0: *298 reusable connection: 0
2020/10/26 13:27:52 [debug] 22532\#0: *298 stream lua tcp socket waking up the current request
2020/10/26 13:27:52 [debug] 22532\#0: *298 lua ngx_stream_lua_content_wev_handler
'
stream/ssl.t TEST 3: read SNI name via ssl.server_name() - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
-received: it works!
-close: 1 nil
'
stream/ssl.t TEST 3: read SNI name via ssl.server_name() - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:27:55 [error] 22562\#0: *331 lua entry thread aborted: runtime error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 0) stack traceback:
coroutine 0:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/ngx/ssl.lua:4: in main chunk
[C]: in function 'require'
ssl_certificate_by_lua:2: in main chunk, context: ssl_certificate_by_lua*, client: unix:, server: unix:/home/ec2-user/git/lua-resty-core/t/servroot/html/nginx.sock
2020/10/26 13:27:55 [debug] 22562\#0: *331 lua request cleanup: forcible=0
'
stream/ssl.t TEST 3: read SNI name via ssl.server_name() - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:27:55 [error] 22562\#0: *328 SSL_do_handshake() failed (SSL: error:14094438:SSL routines:ssl3_read_bytes:tlsv1 alert internal error:SSL alert number 80), client: 127.0.0.1, server: 0.0.0.0:1985" (req 0) 2020/10/26 13:27:55 [debug] 22562\#0: *328 event timer del: 16: 15991121
2020/10/26 13:27:55 [debug] 22562\#0: *328 stream lua tcp socket handle connect error
2020/10/26 13:27:55 [debug] 22562\#0: *328 stream lua finalize socket
2020/10/26 13:27:55 [debug] 22562\#0: *328 lua stream cleanup free: 05FB7BD0
2020/10/26 13:27:55 [debug] 22562\#0: *328 lua close socket connection
2020/10/26 13:27:55 [debug] 22562\#0: *328 free: 05FB7FA0, unused: 0
2020/10/26 13:27:55 [debug] 22562\#0: *328 reusable connection: 0
2020/10/26 13:27:55 [debug] 22562\#0: *328 stream lua tcp socket waking up the current request
2020/10/26 13:27:55 [debug] 22562\#0: *328 lua ngx_stream_lua_content_wev_handler
'
stream/ssl.t TEST 3: read SNI name via ssl.server_name() - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
-received: it works!
-close: 1 nil
'
stream/ssl.t TEST 3: read SNI name via ssl.server_name() - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:27:55 [error] 22562\#0: *337 lua entry thread aborted: runtime error: ssl_certificate_by_lua:2: loop or previous error loading module 'ngx.ssl'" (req 1) stack traceback:
coroutine 0:
[C]: in function 'require'
ssl_certificate_by_lua:2: in main chunk, context: ssl_certificate_by_lua*, client: unix:, server: unix:/home/ec2-user/git/lua-resty-core/t/servroot/html/nginx.sock
2020/10/26 13:27:55 [debug] 22562\#0: *337 lua request cleanup: forcible=0
2020/10/26 13:27:55 [debug] 22562\#0: *337 stream lua finalize fake request: 500
2020/10/26 13:27:55 [debug] 22562\#0: *337 stream lua close fake request
2020/10/26 13:27:55 [debug] 22562\#0: *337 stream lua close fake stream connection 05F86488
2020/10/26 13:27:55 [debug] 22562\#0: run cleanup: 0602EBC0
'
stream/ssl.t TEST 3: read SNI name via ssl.server_name() - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:27:55 [error] 22562\#0: *334 SSL_do_handshake() failed (SSL: error:14094438:SSL routines:ssl3_read_bytes:tlsv1 alert internal error:SSL alert number 80), client: 127.0.0.1, server: 0.0.0.0:1985" (req 1) 2020/10/26 13:27:55 [debug] 22562\#0: *334 event timer del: 16: 15991841
2020/10/26 13:27:55 [debug] 22562\#0: *334 stream lua tcp socket handle connect error
2020/10/26 13:27:55 [debug] 22562\#0: *334 stream lua finalize socket
2020/10/26 13:27:55 [debug] 22562\#0: *334 lua stream cleanup free: 06005E30
2020/10/26 13:27:55 [debug] 22562\#0: *334 lua close socket connection
2020/10/26 13:27:55 [debug] 22562\#0: *334 free: 06006200, unused: 0
2020/10/26 13:27:55 [debug] 22562\#0: *334 reusable connection: 0
2020/10/26 13:27:55 [debug] 22562\#0: *334 stream lua tcp socket waking up the current request
2020/10/26 13:27:55 [debug] 22562\#0: *334 lua ngx_stream_lua_content_wev_handler
'
stream/ssl.t TEST 25: verify client but client provides no certificate - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'NONE
'
stream/ssl.t TEST 25: verify client but client provides no certificate - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:27:58 [error] 22592\#0: *367 lua entry thread aborted: runtime error: ssl_certificate_by_lua:2: module 'ngx.ssl' not found:" (req 0) no field package.preload['ngx.ssl']
no file './ngx/ssl.lua'
no file '/opt/luajit-sysm/share/luajit-2.1.0-beta3/ngx/ssl.lua'
no file '/usr/local/share/lua/5.1/ngx/ssl.lua'
no file '/usr/local/share/lua/5.1/ngx/ssl/init.lua'
no file '/opt/luajit-sysm/share/lua/5.1/ngx/ssl.lua'
no file '/opt/luajit-sysm/share/lua/5.1/ngx/ssl/init.lua'
no file './ngx/ssl.so'
no file '/usr/local/lib/lua/5.1/ngx/ssl.so'
'
stream/ssl.t TEST 25: verify client but client provides no certificate - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:27:58 [error] 22592\#0: *364 SSL_do_handshake() failed (SSL: error:14094438:SSL routines:ssl3_read_bytes:tlsv1 alert internal error:SSL alert number 80) while SSL handshaking to upstream, client: 127.0.0.1, server: 0.0.0.0:1985, upstream: \"unix:/home/ec2-user/git/lua-resty-core/t/servroot/html/nginx.sock\", bytes from/to client:0/0, bytes from/to upstream:0/0" (req 0) 2020/10/26 13:27:58 [debug] 22592\#0: *364 stream proxy next upstream
2020/10/26 13:27:58 [debug] 22592\#0: *364 free rr peer 1 4
2020/10/26 13:27:58 [debug] 22592\#0: *364 finalize stream proxy: 502
2020/10/26 13:27:58 [debug] 22592\#0: *364 close stream proxy upstream connection: 16
2020/10/26 13:27:58 [debug] 22592\#0: *364 event timer del: 16: 16051465
2020/10/26 13:27:58 [debug] 22592\#0: *364 reusable connection: 0
2020/10/26 13:27:58 [debug] 22592\#0: *364 finalize stream session: 502
2020/10/26 13:27:58 [debug] 22592\#0: *364 stream log handler
2020/10/26 13:27:58 [debug] 22592\#0: *364 close stream connection: 7
'
stream/ssl.t TEST 25: verify client but client provides no certificate - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'NONE
'
stream/ssl.t TEST 25: verify client but client provides no certificate - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:27:59 [error] 22592\#0: *373 lua entry thread aborted: runtime error: ssl_certificate_by_lua:2: module 'ngx.ssl' not found:" (req 1) no field package.preload['ngx.ssl']
no file './ngx/ssl.lua'
no file '/opt/luajit-sysm/share/luajit-2.1.0-beta3/ngx/ssl.lua'
no file '/usr/local/share/lua/5.1/ngx/ssl.lua'
no file '/usr/local/share/lua/5.1/ngx/ssl/init.lua'
no file '/opt/luajit-sysm/share/lua/5.1/ngx/ssl.lua'
no file '/opt/luajit-sysm/share/lua/5.1/ngx/ssl/init.lua'
no file './ngx/ssl.so'
no file '/usr/local/lib/lua/5.1/ngx/ssl.so'
'
stream/ssl.t TEST 25: verify client but client provides no certificate - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:27:59 [error] 22592\#0: *370 SSL_do_handshake() failed (SSL: error:14094438:SSL routines:ssl3_read_bytes:tlsv1 alert internal error:SSL alert number 80) while SSL handshaking to upstream, client: 127.0.0.1, server: 0.0.0.0:1985, upstream: \"unix:/home/ec2-user/git/lua-resty-core/t/servroot/html/nginx.sock\", bytes from/to client:0/0, bytes from/to upstream:0/0" (req 1) 2020/10/26 13:27:59 [debug] 22592\#0: *370 stream proxy next upstream
2020/10/26 13:27:59 [debug] 22592\#0: *370 free rr peer 1 4
2020/10/26 13:27:59 [debug] 22592\#0: *370 finalize stream proxy: 502
2020/10/26 13:27:59 [debug] 22592\#0: *370 close stream proxy upstream connection: 16
2020/10/26 13:27:59 [debug] 22592\#0: *370 event timer del: 16: 16052029
2020/10/26 13:27:59 [debug] 22592\#0: *370 reusable connection: 0
2020/10/26 13:27:59 [debug] 22592\#0: *370 finalize stream session: 502
2020/10/26 13:27:59 [debug] 22592\#0: *370 stream log handler
2020/10/26 13:27:59 [debug] 22592\#0: *370 close stream connection: 7
'
stream/ssl.t TEST 6: read raw server addr via ssl.raw_server_addr() (IPv4) - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
-received: it works!
-close: 1 nil
'
stream/ssl.t TEST 6: read raw server addr via ssl.raw_server_addr() (IPv4) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:28:01 [error] 22622\#0: *403 lua entry thread aborted: runtime error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 0) stack traceback:
coroutine 0:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/ngx/ssl.lua:4: in main chunk
[C]: in function 'require'
ssl_certificate_by_lua:2: in main chunk, context: ssl_certificate_by_lua*, client: 127.0.0.1, server: 127.0.0.1:48267
2020/10/26 13:28:01 [debug] 22622\#0: *403 lua request cleanup: forcible=0
'
stream/ssl.t TEST 6: read raw server addr via ssl.raw_server_addr() (IPv4) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:28:02 [error] 22622\#0: *400 SSL_do_handshake() failed (SSL: error:14094438:SSL routines:ssl3_read_bytes:tlsv1 alert internal error:SSL alert number 80), client: 127.0.0.1, server: 0.0.0.0:1985" (req 0) 2020/10/26 13:28:02 [debug] 22622\#0: *400 event timer del: 16: 15997741
2020/10/26 13:28:02 [debug] 22622\#0: *400 stream lua tcp socket handle connect error
2020/10/26 13:28:02 [debug] 22622\#0: *400 stream lua finalize socket
2020/10/26 13:28:02 [debug] 22622\#0: *400 lua stream cleanup free: 04A14748
2020/10/26 13:28:02 [debug] 22622\#0: *400 lua close socket connection
2020/10/26 13:28:02 [debug] 22622\#0: *400 free: 04C2DCE0, unused: 0
2020/10/26 13:28:02 [debug] 22622\#0: *400 reusable connection: 0
2020/10/26 13:28:02 [debug] 22622\#0: *400 stream lua tcp socket waking up the current request
2020/10/26 13:28:02 [debug] 22622\#0: *400 lua ngx_stream_lua_content_wev_handler
'
stream/ssl.t TEST 6: read raw server addr via ssl.raw_server_addr() (IPv4) - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
-received: it works!
-close: 1 nil
'
stream/ssl.t TEST 6: read raw server addr via ssl.raw_server_addr() (IPv4) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:28:02 [error] 22622\#0: *409 lua entry thread aborted: runtime error: ssl_certificate_by_lua:2: loop or previous error loading module 'ngx.ssl'" (req 1) stack traceback:
coroutine 0:
[C]: in function 'require'
ssl_certificate_by_lua:2: in main chunk, context: ssl_certificate_by_lua*, client: 127.0.0.1, server: 127.0.0.1:48267
2020/10/26 13:28:02 [debug] 22622\#0: *409 lua request cleanup: forcible=0
2020/10/26 13:28:02 [debug] 22622\#0: *409 stream lua finalize fake request: 500
2020/10/26 13:28:02 [debug] 22622\#0: *409 stream lua close fake request
2020/10/26 13:28:02 [debug] 22622\#0: *409 stream lua close fake stream connection 04C57350
2020/10/26 13:28:02 [debug] 22622\#0: run cleanup: 04EE11B0
'
stream/ssl.t TEST 6: read raw server addr via ssl.raw_server_addr() (IPv4) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:28:02 [error] 22622\#0: *406 SSL_do_handshake() failed (SSL: error:14094438:SSL routines:ssl3_read_bytes:tlsv1 alert internal error:SSL alert number 80), client: 127.0.0.1, server: 0.0.0.0:1985" (req 1) 2020/10/26 13:28:02 [debug] 22622\#0: *406 event timer del: 16: 15998421
2020/10/26 13:28:02 [debug] 22622\#0: *406 stream lua tcp socket handle connect error
2020/10/26 13:28:02 [debug] 22622\#0: *406 stream lua finalize socket
2020/10/26 13:28:02 [debug] 22622\#0: *406 lua stream cleanup free: 04E6FC48
2020/10/26 13:28:02 [debug] 22622\#0: *406 lua close socket connection
2020/10/26 13:28:02 [debug] 22622\#0: *406 free: 04E570D8, unused: 0
2020/10/26 13:28:02 [debug] 22622\#0: *406 reusable connection: 0
2020/10/26 13:28:02 [debug] 22622\#0: *406 stream lua tcp socket waking up the current request
2020/10/26 13:28:02 [debug] 22622\#0: *406 lua ngx_stream_lua_content_wev_handler
'
stream/ssl.t TEST 21: yield during doing handshake with client which uses low version OpenSSL - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'ok
'
stream/ssl.t TEST 21: yield during doing handshake with client which uses low version OpenSSL - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:28:05 [error] 22652\#0: *439 lua entry thread aborted: runtime error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 0) stack traceback:
coroutine 0:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/ngx/ssl.lua:4: in main chunk
[C]: in function 'require'
ssl_certificate_by_lua:2: in main chunk, context: ssl_certificate_by_lua*, client: 127.0.0.1, server: 0.0.0.0:29571
2020/10/26 13:28:05 [debug] 22652\#0: *439 lua request cleanup: forcible=0
'
stream/ssl.t TEST 21: yield during doing handshake with client which uses low version OpenSSL - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:28:07 [error] 22652\#0: *437 stream [lua] content_by_lua(nginx.conf:89):25: openssl client handshake timeout, client: 127.0.0.1, server: 0.0.0.0:1985" (req 0) 2020/10/26 13:28:07 [debug] 22652\#0: *437 lua resume returned 0
2020/10/26 13:28:07 [debug] 22652\#0: *437 lua light thread ended normally
2020/10/26 13:28:07 [debug] 22652\#0: *437 lua deleting light thread
2020/10/26 13:28:07 [debug] 22652\#0: *437 lua run thread returned 0
2020/10/26 13:28:07 [debug] 22652\#0: *437 finalize stream request: 0
2020/10/26 13:28:07 [debug] 22652\#0: *437 finalize stream session: 200
2020/10/26 13:28:07 [debug] 22652\#0: *437 stream log handler
2020/10/26 13:28:07 [debug] 22652\#0: *437 close stream connection: 7
2020/10/26 13:28:07 [debug] 22652\#0: *437 reusable connection: 0
'
stream/ssl.t TEST 21: yield during doing handshake with client which uses low version OpenSSL - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'ok
'
stream/ssl.t TEST 21: yield during doing handshake with client which uses low version OpenSSL - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:28:08 [error] 22652\#0: *444 lua entry thread aborted: runtime error: ssl_certificate_by_lua:2: loop or previous error loading module 'ngx.ssl'" (req 1) stack traceback:
coroutine 0:
[C]: in function 'require'
ssl_certificate_by_lua:2: in main chunk, context: ssl_certificate_by_lua*, client: 127.0.0.1, server: 0.0.0.0:29571
2020/10/26 13:28:08 [debug] 22652\#0: *444 lua request cleanup: forcible=0
2020/10/26 13:28:08 [debug] 22652\#0: *444 stream lua finalize fake request: 500
2020/10/26 13:28:08 [debug] 22652\#0: *444 stream lua close fake request
2020/10/26 13:28:08 [debug] 22652\#0: *444 stream lua close fake stream connection 04E815EC
2020/10/26 13:28:08 [debug] 22652\#0: run cleanup: 05070A50
'
stream/ssl.t TEST 21: yield during doing handshake with client which uses low version OpenSSL - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:28:10 [error] 22652\#0: *442 stream [lua] content_by_lua(nginx.conf:89):25: openssl client handshake timeout, client: 127.0.0.1, server: 0.0.0.0:1985" (req 1) 2020/10/26 13:28:10 [debug] 22652\#0: *442 lua resume returned 0
2020/10/26 13:28:10 [debug] 22652\#0: *442 lua light thread ended normally
2020/10/26 13:28:10 [debug] 22652\#0: *442 lua deleting light thread
2020/10/26 13:28:10 [debug] 22652\#0: *442 lua run thread returned 0
2020/10/26 13:28:10 [debug] 22652\#0: *442 finalize stream request: 0
2020/10/26 13:28:10 [debug] 22652\#0: *442 finalize stream session: 200
2020/10/26 13:28:10 [debug] 22652\#0: *442 stream log handler
2020/10/26 13:28:10 [debug] 22652\#0: *442 close stream connection: 7
2020/10/26 13:28:10 [debug] 22652\#0: *442 reusable connection: 0
'
stream/ssl.t TEST 10: tls version - SSLv3 - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +1,2 @@
connected: 1
-ssl handshake: boolean
+failed to do SSL handshake: handshake failed
'
stream/ssl.t TEST 10: tls version - SSLv3 - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:28:12 [error] 22691\#0: *474 lua entry thread aborted: runtime error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 0) stack traceback:
coroutine 0:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/ngx/ssl.lua:4: in main chunk
[C]: in function 'require'
ssl_certificate_by_lua:2: in main chunk, context: ssl_certificate_by_lua*, client: 127.0.0.1, server: 127.0.0.2:25566
2020/10/26 13:28:12 [debug] 22691\#0: *474 lua request cleanup: forcible=0
'
stream/ssl.t TEST 10: tls version - SSLv3 - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:28:13 [error] 22691\#0: *471 SSL_do_handshake() failed (SSL: error:14094410:SSL routines:ssl3_read_bytes:sslv3 alert handshake failure:SSL alert number 40), client: 127.0.0.1, server: 0.0.0.0:1985" (req 0) 2020/10/26 13:28:13 [debug] 22691\#0: *471 event timer del: 16: 16008862
2020/10/26 13:28:13 [debug] 22691\#0: *471 stream lua tcp socket handle connect error
2020/10/26 13:28:13 [debug] 22691\#0: *471 stream lua finalize socket
2020/10/26 13:28:13 [debug] 22691\#0: *471 lua stream cleanup free: 04E70620
2020/10/26 13:28:13 [debug] 22691\#0: *471 lua close socket connection
2020/10/26 13:28:13 [debug] 22691\#0: *471 free: 0507DE98, unused: 0
2020/10/26 13:28:13 [debug] 22691\#0: *471 reusable connection: 0
2020/10/26 13:28:13 [debug] 22691\#0: *471 stream lua tcp socket waking up the current request
2020/10/26 13:28:13 [debug] 22691\#0: *471 lua ngx_stream_lua_content_wev_handler
'
stream/ssl.t TEST 10: tls version - SSLv3 - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +1,2 @@
connected: 1
-ssl handshake: boolean
+failed to do SSL handshake: handshake failed
'
stream/ssl.t TEST 10: tls version - SSLv3 - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:28:13 [error] 22691\#0: *480 lua entry thread aborted: runtime error: ssl_certificate_by_lua:2: loop or previous error loading module 'ngx.ssl'" (req 1) stack traceback:
coroutine 0:
[C]: in function 'require'
ssl_certificate_by_lua:2: in main chunk, context: ssl_certificate_by_lua*, client: 127.0.0.1, server: 127.0.0.2:25566
2020/10/26 13:28:13 [debug] 22691\#0: *480 lua request cleanup: forcible=0
2020/10/26 13:28:13 [debug] 22691\#0: *480 stream lua finalize fake request: 500
2020/10/26 13:28:13 [debug] 22691\#0: *480 stream lua close fake request
2020/10/26 13:28:13 [debug] 22691\#0: *480 stream lua close fake stream connection 050AB5B8
2020/10/26 13:28:13 [debug] 22691\#0: run cleanup: 05335BC0
'
stream/ssl.t TEST 10: tls version - SSLv3 - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:28:13 [error] 22691\#0: *477 SSL_do_handshake() failed (SSL: error:14094410:SSL routines:ssl3_read_bytes:sslv3 alert handshake failure:SSL alert number 40), client: 127.0.0.1, server: 0.0.0.0:1985" (req 1) 2020/10/26 13:28:13 [debug] 22691\#0: *477 event timer del: 16: 16009478
2020/10/26 13:28:13 [debug] 22691\#0: *477 stream lua tcp socket handle connect error
2020/10/26 13:28:13 [debug] 22691\#0: *477 stream lua finalize socket
2020/10/26 13:28:13 [debug] 22691\#0: *477 lua stream cleanup free: 0516C8E0
2020/10/26 13:28:13 [debug] 22691\#0: *477 lua close socket connection
2020/10/26 13:28:13 [debug] 22691\#0: *477 free: 0516A718, unused: 0
2020/10/26 13:28:13 [debug] 22691\#0: *477 reusable connection: 0
2020/10/26 13:28:13 [debug] 22691\#0: *477 stream lua tcp socket waking up the current request
2020/10/26 13:28:13 [debug] 22691\#0: *477 lua ngx_stream_lua_content_wev_handler
'
stream/ssl.t TEST 4: read SNI name via ssl.server_name() when no SNI name specified - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
-received: it works!
-close: 1 nil
'
stream/ssl.t TEST 4: read SNI name via ssl.server_name() when no SNI name specified - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:28:16 [error] 22721\#0: *510 lua entry thread aborted: runtime error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 0) stack traceback:
coroutine 0:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/ngx/ssl.lua:4: in main chunk
[C]: in function 'require'
ssl_certificate_by_lua:2: in main chunk, context: ssl_certificate_by_lua*, client: unix:, server: unix:/home/ec2-user/git/lua-resty-core/t/servroot/html/nginx.sock
2020/10/26 13:28:16 [debug] 22721\#0: *510 lua request cleanup: forcible=0
'
stream/ssl.t TEST 4: read SNI name via ssl.server_name() when no SNI name specified - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:28:16 [error] 22721\#0: *507 SSL_do_handshake() failed (SSL: error:14094438:SSL routines:ssl3_read_bytes:tlsv1 alert internal error:SSL alert number 80), client: 127.0.0.1, server: 0.0.0.0:1985" (req 0) 2020/10/26 13:28:16 [debug] 22721\#0: *507 event timer del: 16: 16012110
2020/10/26 13:28:16 [debug] 22721\#0: *507 stream lua tcp socket handle connect error
2020/10/26 13:28:16 [debug] 22721\#0: *507 stream lua finalize socket
2020/10/26 13:28:16 [debug] 22721\#0: *507 lua stream cleanup free: 05077DC0
2020/10/26 13:28:16 [debug] 22721\#0: *507 lua close socket connection
2020/10/26 13:28:16 [debug] 22721\#0: *507 free: 05306828, unused: 0
2020/10/26 13:28:16 [debug] 22721\#0: *507 reusable connection: 0
2020/10/26 13:28:16 [debug] 22721\#0: *507 stream lua tcp socket waking up the current request
2020/10/26 13:28:16 [debug] 22721\#0: *507 lua ngx_stream_lua_content_wev_handler
'
stream/ssl.t TEST 4: read SNI name via ssl.server_name() when no SNI name specified - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
-received: it works!
-close: 1 nil
'
stream/ssl.t TEST 4: read SNI name via ssl.server_name() when no SNI name specified - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:28:16 [error] 22721\#0: *516 lua entry thread aborted: runtime error: ssl_certificate_by_lua:2: loop or previous error loading module 'ngx.ssl'" (req 1) stack traceback:
coroutine 0:
[C]: in function 'require'
ssl_certificate_by_lua:2: in main chunk, context: ssl_certificate_by_lua*, client: unix:, server: unix:/home/ec2-user/git/lua-resty-core/t/servroot/html/nginx.sock
2020/10/26 13:28:16 [debug] 22721\#0: *516 lua request cleanup: forcible=0
2020/10/26 13:28:16 [debug] 22721\#0: *516 stream lua finalize fake request: 500
2020/10/26 13:28:16 [debug] 22721\#0: *516 stream lua close fake request
2020/10/26 13:28:16 [debug] 22721\#0: *516 stream lua close fake stream connection 04D81318
2020/10/26 13:28:16 [debug] 22721\#0: run cleanup: 054D6C60
'
stream/ssl.t TEST 4: read SNI name via ssl.server_name() when no SNI name specified - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:28:16 [error] 22721\#0: *513 SSL_do_handshake() failed (SSL: error:14094438:SSL routines:ssl3_read_bytes:tlsv1 alert internal error:SSL alert number 80), client: 127.0.0.1, server: 0.0.0.0:1985" (req 1) 2020/10/26 13:28:16 [debug] 22721\#0: *513 event timer del: 16: 16012810
2020/10/26 13:28:16 [debug] 22721\#0: *513 stream lua tcp socket handle connect error
2020/10/26 13:28:16 [debug] 22721\#0: *513 stream lua finalize socket
2020/10/26 13:28:16 [debug] 22721\#0: *513 lua stream cleanup free: 05561A68
2020/10/26 13:28:16 [debug] 22721\#0: *513 lua close socket connection
2020/10/26 13:28:16 [debug] 22721\#0: *513 free: 05561730, unused: 0
2020/10/26 13:28:16 [debug] 22721\#0: *513 reusable connection: 0
2020/10/26 13:28:16 [debug] 22721\#0: *513 stream lua tcp socket waking up the current request
2020/10/26 13:28:16 [debug] 22721\#0: *513 lua ngx_stream_lua_content_wev_handler
'
stream/ssl.t TEST 24: verify client without CA certificates - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'FAILED:self signed certificate
'
stream/ssl.t TEST 24: verify client without CA certificates - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:28:19 [error] 22751\#0: *546 lua entry thread aborted: runtime error: ssl_certificate_by_lua:2: module 'ngx.ssl' not found:" (req 0) no field package.preload['ngx.ssl']
no file './ngx/ssl.lua'
no file '/opt/luajit-sysm/share/luajit-2.1.0-beta3/ngx/ssl.lua'
no file '/usr/local/share/lua/5.1/ngx/ssl.lua'
no file '/usr/local/share/lua/5.1/ngx/ssl/init.lua'
no file '/opt/luajit-sysm/share/lua/5.1/ngx/ssl.lua'
no file '/opt/luajit-sysm/share/lua/5.1/ngx/ssl/init.lua'
no file './ngx/ssl.so'
no file '/usr/local/lib/lua/5.1/ngx/ssl.so'
'
stream/ssl.t TEST 24: verify client without CA certificates - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:28:19 [error] 22751\#0: *543 SSL_do_handshake() failed (SSL: error:14094438:SSL routines:ssl3_read_bytes:tlsv1 alert internal error:SSL alert number 80) while SSL handshaking to upstream, client: 127.0.0.1, server: 0.0.0.0:1985, upstream: \"unix:/home/ec2-user/git/lua-resty-core/t/servroot/html/nginx.sock\", bytes from/to client:0/0, bytes from/to upstream:0/0" (req 0) 2020/10/26 13:28:19 [debug] 22751\#0: *543 stream proxy next upstream
2020/10/26 13:28:19 [debug] 22751\#0: *543 free rr peer 1 4
2020/10/26 13:28:19 [debug] 22751\#0: *543 finalize stream proxy: 502
2020/10/26 13:28:19 [debug] 22751\#0: *543 close stream proxy upstream connection: 16
2020/10/26 13:28:19 [debug] 22751\#0: *543 event timer del: 16: 16072442
2020/10/26 13:28:19 [debug] 22751\#0: *543 reusable connection: 0
2020/10/26 13:28:19 [debug] 22751\#0: *543 finalize stream session: 502
2020/10/26 13:28:19 [debug] 22751\#0: *543 stream log handler
2020/10/26 13:28:19 [debug] 22751\#0: *543 close stream connection: 6
'
stream/ssl.t TEST 24: verify client without CA certificates - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'FAILED:self signed certificate
'
stream/ssl.t TEST 24: verify client without CA certificates - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:28:20 [error] 22751\#0: *552 lua entry thread aborted: runtime error: ssl_certificate_by_lua:2: module 'ngx.ssl' not found:" (req 1) no field package.preload['ngx.ssl']
no file './ngx/ssl.lua'
no file '/opt/luajit-sysm/share/luajit-2.1.0-beta3/ngx/ssl.lua'
no file '/usr/local/share/lua/5.1/ngx/ssl.lua'
no file '/usr/local/share/lua/5.1/ngx/ssl/init.lua'
no file '/opt/luajit-sysm/share/lua/5.1/ngx/ssl.lua'
no file '/opt/luajit-sysm/share/lua/5.1/ngx/ssl/init.lua'
no file './ngx/ssl.so'
no file '/usr/local/lib/lua/5.1/ngx/ssl.so'
'
stream/ssl.t TEST 24: verify client without CA certificates - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:28:20 [error] 22751\#0: *549 SSL_do_handshake() failed (SSL: error:14094438:SSL routines:ssl3_read_bytes:tlsv1 alert internal error:SSL alert number 80) while SSL handshaking to upstream, client: 127.0.0.1, server: 0.0.0.0:1985, upstream: \"unix:/home/ec2-user/git/lua-resty-core/t/servroot/html/nginx.sock\", bytes from/to client:0/0, bytes from/to upstream:0/0" (req 1) 2020/10/26 13:28:20 [debug] 22751\#0: *549 stream proxy next upstream
2020/10/26 13:28:20 [debug] 22751\#0: *549 free rr peer 1 4
2020/10/26 13:28:20 [debug] 22751\#0: *549 finalize stream proxy: 502
2020/10/26 13:28:20 [debug] 22751\#0: *549 close stream proxy upstream connection: 16
2020/10/26 13:28:20 [debug] 22751\#0: *549 event timer del: 16: 16073006
2020/10/26 13:28:20 [debug] 22751\#0: *549 reusable connection: 0
2020/10/26 13:28:20 [debug] 22751\#0: *549 finalize stream session: 502
2020/10/26 13:28:20 [debug] 22751\#0: *549 stream log handler
2020/10/26 13:28:20 [debug] 22751\#0: *549 close stream connection: 6
'
stream/ssl.t TEST 7: read raw server addr via ssl.raw_server_addr() (IPv6) - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
-received: it works!
-close: 1 nil
'
stream/ssl.t TEST 7: read raw server addr via ssl.raw_server_addr() (IPv6) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:28:22 [error] 22783\#0: *583 lua entry thread aborted: runtime error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 0) stack traceback:
coroutine 0:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/ngx/ssl.lua:4: in main chunk
[C]: in function 'require'
ssl_certificate_by_lua:2: in main chunk, context: ssl_certificate_by_lua*, client: ::1, server: [::1]:2600
2020/10/26 13:28:22 [debug] 22783\#0: *583 lua request cleanup: forcible=0
'
stream/ssl.t TEST 7: read raw server addr via ssl.raw_server_addr() (IPv6) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:28:23 [error] 22783\#0: *580 SSL_do_handshake() failed (SSL: error:14094438:SSL routines:ssl3_read_bytes:tlsv1 alert internal error:SSL alert number 80), client: 127.0.0.1, server: 0.0.0.0:1985" (req 0) 2020/10/26 13:28:23 [debug] 22783\#0: *580 event timer del: 16: 16018914
2020/10/26 13:28:23 [debug] 22783\#0: *580 stream lua tcp socket handle connect error
2020/10/26 13:28:23 [debug] 22783\#0: *580 stream lua finalize socket
2020/10/26 13:28:23 [debug] 22783\#0: *580 lua stream cleanup free: 054CC288
2020/10/26 13:28:23 [debug] 22783\#0: *580 lua close socket connection
2020/10/26 13:28:23 [debug] 22783\#0: *580 free: 05542FA8, unused: 0
2020/10/26 13:28:23 [debug] 22783\#0: *580 reusable connection: 0
2020/10/26 13:28:23 [debug] 22783\#0: *580 stream lua tcp socket waking up the current request
2020/10/26 13:28:23 [debug] 22783\#0: *580 lua ngx_stream_lua_content_wev_handler
'
stream/ssl.t TEST 7: read raw server addr via ssl.raw_server_addr() (IPv6) - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
-received: it works!
-close: 1 nil
'
stream/ssl.t TEST 7: read raw server addr via ssl.raw_server_addr() (IPv6) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:28:23 [error] 22783\#0: *589 lua entry thread aborted: runtime error: ssl_certificate_by_lua:2: loop or previous error loading module 'ngx.ssl'" (req 1) stack traceback:
coroutine 0:
[C]: in function 'require'
ssl_certificate_by_lua:2: in main chunk, context: ssl_certificate_by_lua*, client: ::1, server: [::1]:2600
2020/10/26 13:28:23 [debug] 22783\#0: *589 lua request cleanup: forcible=0
2020/10/26 13:28:23 [debug] 22783\#0: *589 stream lua finalize fake request: 500
2020/10/26 13:28:23 [debug] 22783\#0: *589 stream lua close fake request
2020/10/26 13:28:23 [debug] 22783\#0: *589 stream lua close fake stream connection 05729D10
2020/10/26 13:28:23 [debug] 22783\#0: run cleanup: 059864B8
'
stream/ssl.t TEST 7: read raw server addr via ssl.raw_server_addr() (IPv6) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:28:23 [error] 22783\#0: *586 SSL_do_handshake() failed (SSL: error:14094438:SSL routines:ssl3_read_bytes:tlsv1 alert internal error:SSL alert number 80), client: 127.0.0.1, server: 0.0.0.0:1985" (req 1) 2020/10/26 13:28:23 [debug] 22783\#0: *586 event timer del: 16: 16019594
2020/10/26 13:28:23 [debug] 22783\#0: *586 stream lua tcp socket handle connect error
2020/10/26 13:28:23 [debug] 22783\#0: *586 stream lua finalize socket
2020/10/26 13:28:23 [debug] 22783\#0: *586 lua stream cleanup free: 059B3DC8
2020/10/26 13:28:23 [debug] 22783\#0: *586 lua close socket connection
2020/10/26 13:28:23 [debug] 22783\#0: *586 free: 05945A00, unused: 0
2020/10/26 13:28:23 [debug] 22783\#0: *586 reusable connection: 0
2020/10/26 13:28:23 [debug] 22783\#0: *586 stream lua tcp socket waking up the current request
2020/10/26 13:28:23 [debug] 22783\#0: *586 lua ngx_stream_lua_content_wev_handler
'
stream/ssl.t TEST 15: read PEM key chain but set DER key chain - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
-received: it works!
-close: 1 nil
'
stream/ssl.t TEST 15: read PEM key chain but set DER key chain - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:28:29 [error] 22844\#0: *655 lua entry thread aborted: runtime error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 0) stack traceback:
coroutine 0:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/ngx/ssl.lua:4: in main chunk
[C]: in function 'require'
ssl_certificate_by_lua:2: in main chunk, context: ssl_certificate_by_lua*, client: unix:, server: unix:/home/ec2-user/git/lua-resty-core/t/servroot/html/nginx.sock
2020/10/26 13:28:29 [debug] 22844\#0: *655 lua request cleanup: forcible=0
'
stream/ssl.t TEST 15: read PEM key chain but set DER key chain - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:28:30 [error] 22844\#0: *652 SSL_do_handshake() failed (SSL: error:14094438:SSL routines:ssl3_read_bytes:tlsv1 alert internal error:SSL alert number 80), client: 127.0.0.1, server: 0.0.0.0:1985" (req 0) 2020/10/26 13:28:30 [debug] 22844\#0: *652 event timer del: 16: 16025594
2020/10/26 13:28:30 [debug] 22844\#0: *652 stream lua tcp socket handle connect error
2020/10/26 13:28:30 [debug] 22844\#0: *652 stream lua finalize socket
2020/10/26 13:28:30 [debug] 22844\#0: *652 lua stream cleanup free: 059A0010
2020/10/26 13:28:30 [debug] 22844\#0: *652 lua close socket connection
2020/10/26 13:28:30 [debug] 22844\#0: *652 free: 05944578, unused: 0
2020/10/26 13:28:30 [debug] 22844\#0: *652 reusable connection: 0
2020/10/26 13:28:30 [debug] 22844\#0: *652 stream lua tcp socket waking up the current request
2020/10/26 13:28:30 [debug] 22844\#0: *652 lua ngx_stream_lua_content_wev_handler
'
stream/ssl.t TEST 15: read PEM key chain but set DER key chain - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
-received: it works!
-close: 1 nil
'
stream/ssl.t TEST 15: read PEM key chain but set DER key chain - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:28:30 [error] 22844\#0: *661 lua entry thread aborted: runtime error: ssl_certificate_by_lua:2: loop or previous error loading module 'ngx.ssl'" (req 1) stack traceback:
coroutine 0:
[C]: in function 'require'
ssl_certificate_by_lua:2: in main chunk, context: ssl_certificate_by_lua*, client: unix:, server: unix:/home/ec2-user/git/lua-resty-core/t/servroot/html/nginx.sock
2020/10/26 13:28:30 [debug] 22844\#0: *661 lua request cleanup: forcible=0
2020/10/26 13:28:30 [debug] 22844\#0: *661 stream lua finalize fake request: 500
2020/10/26 13:28:30 [debug] 22844\#0: *661 stream lua close fake request
2020/10/26 13:28:30 [debug] 22844\#0: *661 stream lua close fake stream connection 05B7D8D8
2020/10/26 13:28:30 [debug] 22844\#0: run cleanup: 05DD5D60
'
stream/ssl.t TEST 15: read PEM key chain but set DER key chain - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:28:30 [error] 22844\#0: *658 SSL_do_handshake() failed (SSL: error:14094438:SSL routines:ssl3_read_bytes:tlsv1 alert internal error:SSL alert number 80), client: 127.0.0.1, server: 0.0.0.0:1985" (req 1) 2020/10/26 13:28:30 [debug] 22844\#0: *658 event timer del: 16: 16026306
2020/10/26 13:28:30 [debug] 22844\#0: *658 stream lua tcp socket handle connect error
2020/10/26 13:28:30 [debug] 22844\#0: *658 stream lua finalize socket
2020/10/26 13:28:30 [debug] 22844\#0: *658 lua stream cleanup free: 05E088D8
2020/10/26 13:28:30 [debug] 22844\#0: *658 lua close socket connection
2020/10/26 13:28:30 [debug] 22844\#0: *658 free: 05DDEB40, unused: 0
2020/10/26 13:28:30 [debug] 22844\#0: *658 reusable connection: 0
2020/10/26 13:28:30 [debug] 22844\#0: *658 stream lua tcp socket waking up the current request
2020/10/26 13:28:30 [debug] 22844\#0: *658 lua ngx_stream_lua_content_wev_handler
'
stream/ssl.t TEST 2: set DER cert and private key - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
-received: it works!
-close: 1 nil
'
stream/ssl.t TEST 2: set DER cert and private key - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:28:33 [error] 22874\#0: *691 lua entry thread aborted: runtime error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 0) stack traceback:
coroutine 0:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/ngx/ssl.lua:4: in main chunk
[C]: in function 'require'
ssl_certificate_by_lua:2: in main chunk, context: ssl_certificate_by_lua*, client: unix:, server: unix:/home/ec2-user/git/lua-resty-core/t/servroot/html/nginx.sock
2020/10/26 13:28:33 [debug] 22874\#0: *691 lua request cleanup: forcible=0
'
stream/ssl.t TEST 2: set DER cert and private key - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:28:33 [error] 22874\#0: *688 SSL_do_handshake() failed (SSL: error:14094438:SSL routines:ssl3_read_bytes:tlsv1 alert internal error:SSL alert number 80), client: 127.0.0.1, server: 0.0.0.0:1985" (req 0) 2020/10/26 13:28:33 [debug] 22874\#0: *688 event timer del: 16: 16028955
2020/10/26 13:28:33 [debug] 22874\#0: *688 stream lua tcp socket handle connect error
2020/10/26 13:28:33 [debug] 22874\#0: *688 stream lua finalize socket
2020/10/26 13:28:33 [debug] 22874\#0: *688 lua stream cleanup free: 05BC1040
2020/10/26 13:28:33 [debug] 22874\#0: *688 lua close socket connection
2020/10/26 13:28:33 [debug] 22874\#0: *688 free: 05BC1410, unused: 0
2020/10/26 13:28:33 [debug] 22874\#0: *688 reusable connection: 0
2020/10/26 13:28:33 [debug] 22874\#0: *688 stream lua tcp socket waking up the current request
2020/10/26 13:28:33 [debug] 22874\#0: *688 lua ngx_stream_lua_content_wev_handler
'
stream/ssl.t TEST 2: set DER cert and private key - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
-received: it works!
-close: 1 nil
'
stream/ssl.t TEST 2: set DER cert and private key - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:28:33 [error] 22874\#0: *697 lua entry thread aborted: runtime error: ssl_certificate_by_lua:2: loop or previous error loading module 'ngx.ssl'" (req 1) stack traceback:
coroutine 0:
[C]: in function 'require'
ssl_certificate_by_lua:2: in main chunk, context: ssl_certificate_by_lua*, client: unix:, server: unix:/home/ec2-user/git/lua-resty-core/t/servroot/html/nginx.sock
2020/10/26 13:28:33 [debug] 22874\#0: *697 lua request cleanup: forcible=0
2020/10/26 13:28:33 [debug] 22874\#0: *697 stream lua finalize fake request: 500
2020/10/26 13:28:33 [debug] 22874\#0: *697 stream lua close fake request
2020/10/26 13:28:33 [debug] 22874\#0: *697 stream lua close fake stream connection 05DA7CF8
2020/10/26 13:28:33 [debug] 22874\#0: run cleanup: 05FFD270
'
stream/ssl.t TEST 2: set DER cert and private key - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:28:33 [error] 22874\#0: *694 SSL_do_handshake() failed (SSL: error:14094438:SSL routines:ssl3_read_bytes:tlsv1 alert internal error:SSL alert number 80), client: 127.0.0.1, server: 0.0.0.0:1985" (req 1) 2020/10/26 13:28:33 [debug] 22874\#0: *694 event timer del: 16: 16029663
2020/10/26 13:28:33 [debug] 22874\#0: *694 stream lua tcp socket handle connect error
2020/10/26 13:28:33 [debug] 22874\#0: *694 stream lua finalize socket
2020/10/26 13:28:33 [debug] 22874\#0: *694 lua stream cleanup free: 0602FF88
2020/10/26 13:28:33 [debug] 22874\#0: *694 lua close socket connection
2020/10/26 13:28:33 [debug] 22874\#0: *694 free: 06002020, unused: 0
2020/10/26 13:28:33 [debug] 22874\#0: *694 reusable connection: 0
2020/10/26 13:28:33 [debug] 22874\#0: *694 stream lua tcp socket waking up the current request
2020/10/26 13:28:33 [debug] 22874\#0: *694 lua ngx_stream_lua_content_wev_handler
'
stream/ssl.t TEST 19: parse PEM cert and key to cdata (bad priv key) - pattern "[crit]" should not match any line in error.log but matches line "2020/10/26 13:28:36 [crit] 22904\#0: *726 SSL_do_handshake() failed (SSL: error:1417A179:SSL routines:tls_post_process_client_hello:cert cb error) while SSL handshaking, client: unix:, server: unix:/home/ec2-user/git/lua-resty-core/t/servroot/html/nginx.sock" (req 0) 2020/10/26 13:28:36 [debug] 22904\#0: *726 finalize stream session: 500
2020/10/26 13:28:36 [debug] 22904\#0: *726 stream log handler
2020/10/26 13:28:36 [debug] 22904\#0: *726 close stream connection: 17
2020/10/26 13:28:36 [debug] 22904\#0: *726 reusable connection: 0
2020/10/26 13:28:36 [debug] 22904\#0: *726 free: 04A593C8, unused: 0
2020/10/26 13:28:36 [debug] 22904\#0: *726 free: 05DADD98, unused: 0
2020/10/26 13:28:36 [debug] 22904\#0: *726 free: 05DADD00, unused: 0
2020/10/26 13:28:36 [debug] 22904\#0: *726 free: 05D7AA98, unused: 0
2020/10/26 13:28:36 [debug] 22904\#0: *726 free: 05D7AA60, unused: 0
'
stream/ssl.t TEST 19: parse PEM cert and key to cdata (bad priv key) - pattern "[crit]" should not match any line in error.log but matches line "2020/10/26 13:28:37 [crit] 22904\#0: *732 SSL_do_handshake() failed (SSL: error:1417A179:SSL routines:tls_post_process_client_hello:cert cb error) while SSL handshaking, client: unix:, server: unix:/home/ec2-user/git/lua-resty-core/t/servroot/html/nginx.sock" (req 1) 2020/10/26 13:28:37 [debug] 22904\#0: *732 finalize stream session: 500
2020/10/26 13:28:37 [debug] 22904\#0: *732 stream log handler
2020/10/26 13:28:37 [debug] 22904\#0: *732 close stream connection: 17
2020/10/26 13:28:37 [debug] 22904\#0: *732 reusable connection: 0
2020/10/26 13:28:37 [debug] 22904\#0: *732 free: 04AF6B90, unused: 0
2020/10/26 13:28:37 [debug] 22904\#0: *732 free: 04AA7C48, unused: 0
2020/10/26 13:28:37 [debug] 22904\#0: *732 free: 04AA7BB0, unused: 0
2020/10/26 13:28:37 [debug] 22904\#0: *732 free: 04AA7B78, unused: 0
2020/10/26 13:28:37 [debug] 22904\#0: *732 free: 04AA7AC8, unused: 0
'
stream/ssl.t TEST 9: read PEM cert chain but set DER cert chain - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
-received: it works!
-close: 1 nil
'
stream/ssl.t TEST 9: read PEM cert chain but set DER cert chain - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:28:39 [error] 22934\#0: *763 lua entry thread aborted: runtime error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 0) stack traceback:
coroutine 0:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/ngx/ssl.lua:4: in main chunk
[C]: in function 'require'
ssl_certificate_by_lua:2: in main chunk, context: ssl_certificate_by_lua*, client: unix:, server: unix:/home/ec2-user/git/lua-resty-core/t/servroot/html/nginx.sock
2020/10/26 13:28:39 [debug] 22934\#0: *763 lua request cleanup: forcible=0
'
stream/ssl.t TEST 9: read PEM cert chain but set DER cert chain - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:28:40 [error] 22934\#0: *760 SSL_do_handshake() failed (SSL: error:14094438:SSL routines:ssl3_read_bytes:tlsv1 alert internal error:SSL alert number 80), client: 127.0.0.1, server: 0.0.0.0:1985" (req 0) 2020/10/26 13:28:40 [debug] 22934\#0: *760 event timer del: 16: 16035679
2020/10/26 13:28:40 [debug] 22934\#0: *760 stream lua tcp socket handle connect error
2020/10/26 13:28:40 [debug] 22934\#0: *760 stream lua finalize socket
2020/10/26 13:28:40 [debug] 22934\#0: *760 lua stream cleanup free: 05FB28B0
2020/10/26 13:28:40 [debug] 22934\#0: *760 lua close socket connection
2020/10/26 13:28:40 [debug] 22934\#0: *760 free: 05FB5BF0, unused: 0
2020/10/26 13:28:40 [debug] 22934\#0: *760 reusable connection: 0
2020/10/26 13:28:40 [debug] 22934\#0: *760 stream lua tcp socket waking up the current request
2020/10/26 13:28:40 [debug] 22934\#0: *760 lua ngx_stream_lua_content_wev_handler
'
stream/ssl.t TEST 9: read PEM cert chain but set DER cert chain - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
-received: it works!
-close: 1 nil
'
stream/ssl.t TEST 9: read PEM cert chain but set DER cert chain - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:28:40 [error] 22934\#0: *769 lua entry thread aborted: runtime error: ssl_certificate_by_lua:2: loop or previous error loading module 'ngx.ssl'" (req 1) stack traceback:
coroutine 0:
[C]: in function 'require'
ssl_certificate_by_lua:2: in main chunk, context: ssl_certificate_by_lua*, client: unix:, server: unix:/home/ec2-user/git/lua-resty-core/t/servroot/html/nginx.sock
2020/10/26 13:28:40 [debug] 22934\#0: *769 lua request cleanup: forcible=0
2020/10/26 13:28:40 [debug] 22934\#0: *769 stream lua finalize fake request: 500
2020/10/26 13:28:40 [debug] 22934\#0: *769 stream lua close fake request
2020/10/26 13:28:40 [debug] 22934\#0: *769 stream lua close fake stream connection 04ADE628
2020/10/26 13:28:40 [debug] 22934\#0: run cleanup: 04A92E60
'
stream/ssl.t TEST 9: read PEM cert chain but set DER cert chain - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:28:40 [error] 22934\#0: *766 SSL_do_handshake() failed (SSL: error:14094438:SSL routines:ssl3_read_bytes:tlsv1 alert internal error:SSL alert number 80), client: 127.0.0.1, server: 0.0.0.0:1985" (req 1) 2020/10/26 13:28:40 [debug] 22934\#0: *766 event timer del: 16: 16036391
2020/10/26 13:28:40 [debug] 22934\#0: *766 stream lua tcp socket handle connect error
2020/10/26 13:28:40 [debug] 22934\#0: *766 stream lua finalize socket
2020/10/26 13:28:40 [debug] 22934\#0: *766 lua stream cleanup free: 049D7C98
2020/10/26 13:28:40 [debug] 22934\#0: *766 lua close socket connection
2020/10/26 13:28:40 [debug] 22934\#0: *766 free: 04A2B4A0, unused: 0
2020/10/26 13:28:40 [debug] 22934\#0: *766 reusable connection: 0
2020/10/26 13:28:40 [debug] 22934\#0: *766 stream lua tcp socket waking up the current request
2020/10/26 13:28:40 [debug] 22934\#0: *766 lua ngx_stream_lua_content_wev_handler
'
stream/ssl.t TEST 23: verify client with CA certificates - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'SUCCESS
'
stream/ssl.t TEST 23: verify client with CA certificates - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:28:43 [error] 22964\#0: *799 lua entry thread aborted: runtime error: ssl_certificate_by_lua:2: module 'ngx.ssl' not found:" (req 0) no field package.preload['ngx.ssl']
no file './ngx/ssl.lua'
no file '/opt/luajit-sysm/share/luajit-2.1.0-beta3/ngx/ssl.lua'
no file '/usr/local/share/lua/5.1/ngx/ssl.lua'
no file '/usr/local/share/lua/5.1/ngx/ssl/init.lua'
no file '/opt/luajit-sysm/share/lua/5.1/ngx/ssl.lua'
no file '/opt/luajit-sysm/share/lua/5.1/ngx/ssl/init.lua'
no file './ngx/ssl.so'
no file '/usr/local/lib/lua/5.1/ngx/ssl.so'
'
stream/ssl.t TEST 23: verify client with CA certificates - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:28:43 [error] 22964\#0: *796 SSL_do_handshake() failed (SSL: error:14094438:SSL routines:ssl3_read_bytes:tlsv1 alert internal error:SSL alert number 80) while SSL handshaking to upstream, client: 127.0.0.1, server: 0.0.0.0:1985, upstream: \"unix:/home/ec2-user/git/lua-resty-core/t/servroot/html/nginx.sock\", bytes from/to client:0/0, bytes from/to upstream:0/0" (req 0) 2020/10/26 13:28:43 [debug] 22964\#0: *796 stream proxy next upstream
2020/10/26 13:28:43 [debug] 22964\#0: *796 free rr peer 1 4
2020/10/26 13:28:43 [debug] 22964\#0: *796 finalize stream proxy: 502
2020/10/26 13:28:43 [debug] 22964\#0: *796 close stream proxy upstream connection: 16
2020/10/26 13:28:43 [debug] 22964\#0: *796 event timer del: 16: 16096055
2020/10/26 13:28:43 [debug] 22964\#0: *796 reusable connection: 0
2020/10/26 13:28:43 [debug] 22964\#0: *796 finalize stream session: 502
2020/10/26 13:28:43 [debug] 22964\#0: *796 stream log handler
2020/10/26 13:28:43 [debug] 22964\#0: *796 close stream connection: 7
'
stream/ssl.t TEST 23: verify client with CA certificates - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'SUCCESS
'
stream/ssl.t TEST 23: verify client with CA certificates - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:28:43 [error] 22964\#0: *805 lua entry thread aborted: runtime error: ssl_certificate_by_lua:2: module 'ngx.ssl' not found:" (req 1) no field package.preload['ngx.ssl']
no file './ngx/ssl.lua'
no file '/opt/luajit-sysm/share/luajit-2.1.0-beta3/ngx/ssl.lua'
no file '/usr/local/share/lua/5.1/ngx/ssl.lua'
no file '/usr/local/share/lua/5.1/ngx/ssl/init.lua'
no file '/opt/luajit-sysm/share/lua/5.1/ngx/ssl.lua'
no file '/opt/luajit-sysm/share/lua/5.1/ngx/ssl/init.lua'
no file './ngx/ssl.so'
no file '/usr/local/lib/lua/5.1/ngx/ssl.so'
'
stream/ssl.t TEST 23: verify client with CA certificates - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:28:43 [error] 22964\#0: *802 SSL_do_handshake() failed (SSL: error:14094438:SSL routines:ssl3_read_bytes:tlsv1 alert internal error:SSL alert number 80) while SSL handshaking to upstream, client: 127.0.0.1, server: 0.0.0.0:1985, upstream: \"unix:/home/ec2-user/git/lua-resty-core/t/servroot/html/nginx.sock\", bytes from/to client:0/0, bytes from/to upstream:0/0" (req 1) 2020/10/26 13:28:43 [debug] 22964\#0: *802 stream proxy next upstream
2020/10/26 13:28:43 [debug] 22964\#0: *802 free rr peer 1 4
2020/10/26 13:28:43 [debug] 22964\#0: *802 finalize stream proxy: 502
2020/10/26 13:28:43 [debug] 22964\#0: *802 close stream proxy upstream connection: 16
2020/10/26 13:28:43 [debug] 22964\#0: *802 event timer del: 16: 16096623
2020/10/26 13:28:43 [debug] 22964\#0: *802 reusable connection: 0
2020/10/26 13:28:43 [debug] 22964\#0: *802 finalize stream session: 502
2020/10/26 13:28:43 [debug] 22964\#0: *802 stream log handler
2020/10/26 13:28:43 [debug] 22964\#0: *802 close stream connection: 7
'
stream/ssl.t TEST 14: ngx.semaphore in ssl_certificate_by_lua* - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +1,2 @@
connected: 1
-ssl handshake: boolean
+failed to do SSL handshake: handshake failed
'
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* - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:28:46 [error] 22994\#0: *835 lua entry thread aborted: runtime error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 0) stack traceback:
coroutine 0:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/ngx/semaphore.lua:7: in main chunk
[C]: in function 'require'
ssl_certificate_by_lua:2: in main chunk, context: ssl_certificate_by_lua*, client: 127.0.0.1, server: 127.0.0.2:18896
2020/10/26 13:28:46 [debug] 22994\#0: *835 lua request cleanup: forcible=0
'
stream/ssl.t TEST 14: ngx.semaphore in ssl_certificate_by_lua* - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:28:46 [error] 22994\#0: *832 SSL_do_handshake() failed (SSL: error:14094438:SSL routines:ssl3_read_bytes:tlsv1 alert internal error:SSL alert number 80), client: 127.0.0.1, server: 0.0.0.0:1985" (req 0) 2020/10/26 13:28:46 [debug] 22994\#0: *832 event timer del: 16: 16042343
2020/10/26 13:28:46 [debug] 22994\#0: *832 stream lua tcp socket handle connect error
2020/10/26 13:28:46 [debug] 22994\#0: *832 stream lua finalize socket
2020/10/26 13:28:46 [debug] 22994\#0: *832 lua stream cleanup free: 04A3A3F0
2020/10/26 13:28:46 [debug] 22994\#0: *832 lua close socket connection
2020/10/26 13:28:46 [debug] 22994\#0: *832 free: 04C799B8, unused: 0
2020/10/26 13:28:46 [debug] 22994\#0: *832 reusable connection: 0
2020/10/26 13:28:46 [debug] 22994\#0: *832 stream lua tcp socket waking up the current request
2020/10/26 13:28:46 [debug] 22994\#0: *832 lua ngx_stream_lua_content_wev_handler
'
stream/ssl.t TEST 14: ngx.semaphore in ssl_certificate_by_lua* - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +1,2 @@
connected: 1
-ssl handshake: boolean
+failed to do SSL handshake: handshake failed
'
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
'
stream/ssl.t TEST 14: ngx.semaphore in ssl_certificate_by_lua* - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:28:47 [error] 22994\#0: *841 lua entry thread aborted: runtime error: ssl_certificate_by_lua:2: loop or previous error loading module 'ngx.semaphore'" (req 1) stack traceback:
coroutine 0:
[C]: in function 'require'
ssl_certificate_by_lua:2: in main chunk, context: ssl_certificate_by_lua*, client: 127.0.0.1, server: 127.0.0.2:18896
2020/10/26 13:28:47 [debug] 22994\#0: *841 lua request cleanup: forcible=0
2020/10/26 13:28:47 [debug] 22994\#0: *841 stream lua finalize fake request: 500
2020/10/26 13:28:47 [debug] 22994\#0: *841 stream lua close fake request
2020/10/26 13:28:47 [debug] 22994\#0: *841 stream lua close fake stream connection 04A8F910
2020/10/26 13:28:47 [debug] 22994\#0: run cleanup: 04E7CB20
'
stream/ssl.t TEST 14: ngx.semaphore in ssl_certificate_by_lua* - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:28:47 [error] 22994\#0: *838 SSL_do_handshake() failed (SSL: error:14094438:SSL routines:ssl3_read_bytes:tlsv1 alert internal error:SSL alert number 80), client: 127.0.0.1, server: 0.0.0.0:1985" (req 1) 2020/10/26 13:28:47 [debug] 22994\#0: *838 event timer del: 16: 16042987
2020/10/26 13:28:47 [debug] 22994\#0: *838 stream lua tcp socket handle connect error
2020/10/26 13:28:47 [debug] 22994\#0: *838 stream lua finalize socket
2020/10/26 13:28:47 [debug] 22994\#0: *838 lua stream cleanup free: 04E666C0
2020/10/26 13:28:47 [debug] 22994\#0: *838 lua close socket connection
2020/10/26 13:28:47 [debug] 22994\#0: *838 free: 04E67FE0, unused: 0
2020/10/26 13:28:47 [debug] 22994\#0: *838 reusable connection: 0
2020/10/26 13:28:47 [debug] 22994\#0: *838 stream lua tcp socket waking up the current request
2020/10/26 13:28:47 [debug] 22994\#0: *838 lua ngx_stream_lua_content_wev_handler
'
stream/time.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required
stream/time.t TEST 3: ngx.update_time() - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/time.t TEST 3: ngx.update_time() - status code ok got: ''
expected: '200'
stream/time.t TEST 3: ngx.update_time() - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'true
'
stream/time.t TEST 3: ngx.update_time() - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):3 loop\])" should match a line in error.log (req 0)
stream/time.t TEST 3: ngx.update_time() - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:28:49 [error] 23022\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/time.t TEST 3: ngx.update_time() - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/time.t TEST 3: ngx.update_time() - status code ok got: ''
expected: '200'
stream/time.t TEST 3: ngx.update_time() - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'true
'
stream/time.t TEST 3: ngx.update_time() - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):3 loop\])" should match a line in error.log (req 1)
stream/time.t TEST 3: ngx.update_time() - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:28:49 [error] 23022\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/time.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required
stream/time.t TEST 2: ngx.time() - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/time.t TEST 2: ngx.time() - status code ok got: ''
expected: '200'
stream/time.t TEST 2: ngx.time() - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-true
-true
'
stream/time.t TEST 2: ngx.time() - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):3 loop\])" should match a line in error.log (req 0)
stream/time.t TEST 2: ngx.time() - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:28:53 [error] 23027\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/time.t TEST 2: ngx.time() - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/time.t TEST 2: ngx.time() - status code ok got: ''
expected: '200'
stream/time.t TEST 2: ngx.time() - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-true
-true
'
stream/time.t TEST 2: ngx.time() - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):3 loop\])" should match a line in error.log (req 1)
stream/time.t TEST 2: ngx.time() - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:28:53 [error] 23027\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/time.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required
stream/time.t TEST 5: ngx.localtime() - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/time.t TEST 5: ngx.localtime() - status code ok got: ''
expected: '200'
stream/time.t TEST 5: ngx.localtime() - response_body_like - response is expected () ''
doesn't match '(?^s:^\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}$)'
stream/time.t TEST 5: ngx.localtime() - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):3 loop\])" should match a line in error.log (req 0)
stream/time.t TEST 5: ngx.localtime() - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:28:56 [error] 23032\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/time.t TEST 5: ngx.localtime() - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/time.t TEST 5: ngx.localtime() - status code ok got: ''
expected: '200'
stream/time.t TEST 5: ngx.localtime() - response_body_like - response is expected () ''
doesn't match '(?^s:^\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}$)'
stream/time.t TEST 5: ngx.localtime() - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):3 loop\])" should match a line in error.log (req 1)
stream/time.t TEST 5: ngx.localtime() - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:28:56 [error] 23032\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/time.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required
stream/time.t TEST 1: ngx.now() - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/time.t TEST 1: ngx.now() - status code ok got: ''
expected: '200'
stream/time.t TEST 1: ngx.now() - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-true
->= 0.099: true
-< 0.11: true
'
stream/time.t TEST 1: ngx.now() - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):3 loop\])" should match a line in error.log (req 0)
stream/time.t TEST 1: ngx.now() - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:29:00 [error] 23037\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/time.t TEST 1: ngx.now() - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/time.t TEST 1: ngx.now() - status code ok got: ''
expected: '200'
stream/time.t TEST 1: ngx.now() - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-true
->= 0.099: true
-< 0.11: true
'
stream/time.t TEST 1: ngx.now() - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):3 loop\])" should match a line in error.log (req 1)
stream/time.t TEST 1: ngx.now() - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:29:00 [error] 23037\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/time.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required
stream/time.t TEST 6: ngx.utctime() - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/time.t TEST 6: ngx.utctime() - status code ok got: ''
expected: '200'
stream/time.t TEST 6: ngx.utctime() - response_body_like - response is expected () ''
doesn't match '(?^s:^\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}$)'
stream/time.t TEST 6: ngx.utctime() - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):3 loop\])" should match a line in error.log (req 0)
stream/time.t TEST 6: ngx.utctime() - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:29:03 [error] 23042\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/time.t TEST 6: ngx.utctime() - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/time.t TEST 6: ngx.utctime() - status code ok got: ''
expected: '200'
stream/time.t TEST 6: ngx.utctime() - response_body_like - response is expected () ''
doesn't match '(?^s:^\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}$)'
stream/time.t TEST 6: ngx.utctime() - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):3 loop\])" should match a line in error.log (req 1)
stream/time.t TEST 6: ngx.utctime() - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:29:03 [error] 23042\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/time.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required
stream/time.t TEST 4: ngx.today() - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/time.t TEST 4: ngx.today() - status code ok got: ''
expected: '200'
stream/time.t TEST 4: ngx.today() - response_body_like - response is expected () ''
doesn't match '(?^s:^\d{4}-\d{2}-\d{2})'
stream/time.t TEST 4: ngx.today() - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):3 loop\])" should match a line in error.log (req 0)
stream/time.t TEST 4: ngx.today() - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:29:07 [error] 23047\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
stream/time.t TEST 4: ngx.today() - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/time.t TEST 4: ngx.today() - status code ok got: ''
expected: '200'
stream/time.t TEST 4: ngx.today() - response_body_like - response is expected () ''
doesn't match '(?^s:^\d{4}-\d{2}-\d{2})'
stream/time.t TEST 4: ngx.today() - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):3 loop\])" should match a line in error.log (req 1)
stream/time.t TEST 4: ngx.today() - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:29:07 [error] 23047\#0: init_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
time.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
time.t TEST 5: ngx.localtime() - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
time.t TEST 5: ngx.localtime() - status code ok got: ''
expected: '200'
time.t TEST 5: ngx.localtime() - response_body_like - response is expected () ''
doesn't match '(?^s:^\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}$)'
time.t TEST 5: ngx.localtime() - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):3 loop\])" should match a line in error.log (req 0)
time.t TEST 5: ngx.localtime() - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:29:11 [error] 23056\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
time.t TEST 5: ngx.localtime() - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
time.t TEST 5: ngx.localtime() - status code ok got: ''
expected: '200'
time.t TEST 5: ngx.localtime() - response_body_like - response is expected () ''
doesn't match '(?^s:^\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}$)'
time.t TEST 5: ngx.localtime() - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):3 loop\])" should match a line in error.log (req 1)
time.t TEST 5: ngx.localtime() - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:29:11 [error] 23056\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
time.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
time.t TEST 4: ngx.today() - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
time.t TEST 4: ngx.today() - status code ok got: ''
expected: '200'
time.t TEST 4: ngx.today() - response_body_like - response is expected () ''
doesn't match '(?^s:^\d{4}-\d{2}-\d{2})'
time.t TEST 4: ngx.today() - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):3 loop\])" should match a line in error.log (req 0)
time.t TEST 4: ngx.today() - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:29:15 [error] 23061\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
time.t TEST 4: ngx.today() - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
time.t TEST 4: ngx.today() - status code ok got: ''
expected: '200'
time.t TEST 4: ngx.today() - response_body_like - response is expected () ''
doesn't match '(?^s:^\d{4}-\d{2}-\d{2})'
time.t TEST 4: ngx.today() - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):3 loop\])" should match a line in error.log (req 1)
time.t TEST 4: ngx.today() - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:29:15 [error] 23061\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
time.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
time.t TEST 2: ngx.time() - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
time.t TEST 2: ngx.time() - status code ok got: ''
expected: '200'
time.t TEST 2: ngx.time() - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-true
-true
'
time.t TEST 2: ngx.time() - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):3 loop\])" should match a line in error.log (req 0)
time.t TEST 2: ngx.time() - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:29:20 [error] 23066\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
time.t TEST 2: ngx.time() - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
time.t TEST 2: ngx.time() - status code ok got: ''
expected: '200'
time.t TEST 2: ngx.time() - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-true
-true
'
time.t TEST 2: ngx.time() - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):3 loop\])" should match a line in error.log (req 1)
time.t TEST 2: ngx.time() - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:29:20 [error] 23066\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
time.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
time.t TEST 9: ngx.http_time() - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
time.t TEST 9: ngx.http_time() - status code ok got: ''
expected: '200'
time.t TEST 9: ngx.http_time() - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'Thu, 18 Nov 2010 11:27:35 GMT
'
time.t TEST 9: ngx.http_time() - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):3 loop\])" should match a line in error.log (req 0)
time.t TEST 9: ngx.http_time() - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:29:24 [error] 23071\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
time.t TEST 9: ngx.http_time() - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
time.t TEST 9: ngx.http_time() - status code ok got: ''
expected: '200'
time.t TEST 9: ngx.http_time() - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'Thu, 18 Nov 2010 11:27:35 GMT
'
time.t TEST 9: ngx.http_time() - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):3 loop\])" should match a line in error.log (req 1)
time.t TEST 9: ngx.http_time() - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:29:24 [error] 23071\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
time.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
time.t TEST 8: ngx.cookie_time() bad argument - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
time.t TEST 8: ngx.cookie_time() bad argument - status code ok got: ''
expected: '200'
time.t TEST 8: ngx.cookie_time() bad argument - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'not ok: number argument only
'
time.t TEST 8: ngx.cookie_time() bad argument - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:29:29 [error] 23076\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
time.t TEST 8: ngx.cookie_time() bad argument - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
time.t TEST 8: ngx.cookie_time() bad argument - status code ok got: ''
expected: '200'
time.t TEST 8: ngx.cookie_time() bad argument - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'not ok: number argument only
'
time.t TEST 8: ngx.cookie_time() bad argument - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:29:29 [error] 23076\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
time.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
time.t TEST 7: ngx.cookie_time() - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
time.t TEST 7: ngx.cookie_time() - status code ok got: ''
expected: '200'
time.t TEST 7: ngx.cookie_time() - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-Thu, 18-Nov-10 11:27:35 GMT
-Sun, 18-Sep-2039 23:06:40 GMT
'
time.t TEST 7: ngx.cookie_time() - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):3 loop\])" should match a line in error.log (req 0)
time.t TEST 7: ngx.cookie_time() - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:29:33 [error] 23081\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
time.t TEST 7: ngx.cookie_time() - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
time.t TEST 7: ngx.cookie_time() - status code ok got: ''
expected: '200'
time.t TEST 7: ngx.cookie_time() - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-Thu, 18-Nov-10 11:27:35 GMT
-Sun, 18-Sep-2039 23:06:40 GMT
'
time.t TEST 7: ngx.cookie_time() - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):3 loop\])" should match a line in error.log (req 1)
time.t TEST 7: ngx.cookie_time() - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:29:33 [error] 23081\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
time.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
time.t TEST 10: ngx.http_time() bad argument - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
time.t TEST 10: ngx.http_time() bad argument - status code ok got: ''
expected: '200'
time.t TEST 10: ngx.http_time() bad argument - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'not ok: number argument only
'
time.t TEST 10: ngx.http_time() bad argument - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:29:38 [error] 23086\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
time.t TEST 10: ngx.http_time() bad argument - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
time.t TEST 10: ngx.http_time() bad argument - status code ok got: ''
expected: '200'
time.t TEST 10: ngx.http_time() bad argument - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'not ok: number argument only
'
time.t TEST 10: ngx.http_time() bad argument - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:29:38 [error] 23086\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
time.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
time.t TEST 11: ngx.parse_http_time() - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
time.t TEST 11: ngx.parse_http_time() - status code ok got: ''
expected: '200'
time.t TEST 11: ngx.parse_http_time() - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-1290079655
-nil
'
time.t TEST 11: ngx.parse_http_time() - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):3 loop\])" should match a line in error.log (req 0)
time.t TEST 11: ngx.parse_http_time() - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:29:42 [error] 23091\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
time.t TEST 11: ngx.parse_http_time() - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
time.t TEST 11: ngx.parse_http_time() - status code ok got: ''
expected: '200'
time.t TEST 11: ngx.parse_http_time() - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-1290079655
-nil
'
time.t TEST 11: ngx.parse_http_time() - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):3 loop\])" should match a line in error.log (req 1)
time.t TEST 11: ngx.parse_http_time() - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:29:42 [error] 23091\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
time.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
time.t TEST 6: ngx.utctime() - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
time.t TEST 6: ngx.utctime() - status code ok got: ''
expected: '200'
time.t TEST 6: ngx.utctime() - response_body_like - response is expected () ''
doesn't match '(?^s:^\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}$)'
time.t TEST 6: ngx.utctime() - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):3 loop\])" should match a line in error.log (req 0)
time.t TEST 6: ngx.utctime() - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:29:47 [error] 23096\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
time.t TEST 6: ngx.utctime() - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
time.t TEST 6: ngx.utctime() - status code ok got: ''
expected: '200'
time.t TEST 6: ngx.utctime() - response_body_like - response is expected () ''
doesn't match '(?^s:^\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}$)'
time.t TEST 6: ngx.utctime() - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):3 loop\])" should match a line in error.log (req 1)
time.t TEST 6: ngx.utctime() - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:29:47 [error] 23096\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
time.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
time.t TEST 12: ngx.parse_http_time() bad argument - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
time.t TEST 12: ngx.parse_http_time() bad argument - status code ok got: ''
expected: '200'
time.t TEST 12: ngx.parse_http_time() bad argument - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'not ok: string argument only
'
time.t TEST 12: ngx.parse_http_time() bad argument - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:29:51 [error] 23101\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
time.t TEST 12: ngx.parse_http_time() bad argument - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
time.t TEST 12: ngx.parse_http_time() bad argument - status code ok got: ''
expected: '200'
time.t TEST 12: ngx.parse_http_time() bad argument - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'not ok: string argument only
'
time.t TEST 12: ngx.parse_http_time() bad argument - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:29:51 [error] 23101\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
time.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
time.t TEST 3: ngx.update_time() - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
time.t TEST 3: ngx.update_time() - status code ok got: ''
expected: '200'
time.t TEST 3: ngx.update_time() - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'true
'
time.t TEST 3: ngx.update_time() - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):3 loop\])" should match a line in error.log (req 0)
time.t TEST 3: ngx.update_time() - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:29:56 [error] 23106\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
time.t TEST 3: ngx.update_time() - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
time.t TEST 3: ngx.update_time() - status code ok got: ''
expected: '200'
time.t TEST 3: ngx.update_time() - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'true
'
time.t TEST 3: ngx.update_time() - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):3 loop\])" should match a line in error.log (req 1)
time.t TEST 3: ngx.update_time() - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:29:56 [error] 23106\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
time.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
time.t TEST 1: ngx.now() - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
time.t TEST 1: ngx.now() - status code ok got: ''
expected: '200'
time.t TEST 1: ngx.now() - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-true
->= 0.099: true
-< 0.11: true
'
time.t TEST 1: ngx.now() - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):3 loop\])" should match a line in error.log (req 0)
time.t TEST 1: ngx.now() - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:30:00 [error] 23111\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
time.t TEST 1: ngx.now() - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
time.t TEST 1: ngx.now() - status code ok got: ''
expected: '200'
time.t TEST 1: ngx.now() - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-true
->= 0.099: true
-< 0.11: true
'
time.t TEST 1: ngx.now() - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):3 loop\])" should match a line in error.log (req 1)
time.t TEST 1: ngx.now() - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:30:00 [error] 23111\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
uri.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
uri.t TEST 3: unescape_uri (number) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
uri.t TEST 3: unescape_uri (number) - status code ok got: ''
expected: '200'
uri.t TEST 3: unescape_uri (number) - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "3.14\x{0a}"
length: 5
strings begin to differ at char 1 (line 1 column 1)
uri.t TEST 3: unescape_uri (number) - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):3 loop\])" should match a line in error.log (req 0)
uri.t TEST 3: unescape_uri (number) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:30:05 [error] 23119\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
uri.t TEST 3: unescape_uri (number) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
uri.t TEST 3: unescape_uri (number) - status code ok got: ''
expected: '200'
uri.t TEST 3: unescape_uri (number) - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "3.14\x{0a}"
length: 5
strings begin to differ at char 1 (line 1 column 1)
uri.t TEST 3: unescape_uri (number) - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):3 loop\])" should match a line in error.log (req 1)
uri.t TEST 3: unescape_uri (number) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:30:05 [error] 23119\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
uri.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
uri.t TEST 1: unescape_uri (string) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
uri.t TEST 1: unescape_uri (string) - status code ok got: ''
expected: '200'
uri.t TEST 1: unescape_uri (string) - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "hello world\x{0a}"
length: 12
strings begin to differ at char 1 (line 1 column 1)
uri.t TEST 1: unescape_uri (string) - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):3 loop\])" should match a line in error.log (req 0)
uri.t TEST 1: unescape_uri (string) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:30:10 [error] 23124\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
uri.t TEST 1: unescape_uri (string) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
uri.t TEST 1: unescape_uri (string) - status code ok got: ''
expected: '200'
uri.t TEST 1: unescape_uri (string) - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "hello world\x{0a}"
length: 12
strings begin to differ at char 1 (line 1 column 1)
uri.t TEST 1: unescape_uri (string) - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):3 loop\])" should match a line in error.log (req 1)
uri.t TEST 1: unescape_uri (string) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:30:10 [error] 23124\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
uri.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
uri.t TEST 8: escape_uri (larger than 4k, nothing to be escaped) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
uri.t TEST 8: escape_uri (larger than 4k, nothing to be escaped) - status code ok got: ''
expected: '200'
uri.t TEST 8: escape_uri (larger than 4k, nothing to be escaped) - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"...
length: 4098
strings begin to differ at char 1 (line 1 column 1)
uri.t TEST 8: escape_uri (larger than 4k, nothing to be escaped) - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):3 loop\])" should match a line in error.log (req 0)
uri.t TEST 8: escape_uri (larger than 4k, nothing to be escaped) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:30:14 [error] 23129\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
uri.t TEST 8: escape_uri (larger than 4k, nothing to be escaped) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
uri.t TEST 8: escape_uri (larger than 4k, nothing to be escaped) - status code ok got: ''
expected: '200'
uri.t TEST 8: escape_uri (larger than 4k, nothing to be escaped) - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"...
length: 4098
strings begin to differ at char 1 (line 1 column 1)
uri.t TEST 8: escape_uri (larger than 4k, nothing to be escaped) - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):3 loop\])" should match a line in error.log (req 1)
uri.t TEST 8: escape_uri (larger than 4k, nothing to be escaped) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:30:14 [error] 23129\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
uri.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
uri.t TEST 2: unescape_uri (nil) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
uri.t TEST 2: unescape_uri (nil) - status code ok got: ''
expected: '200'
uri.t TEST 2: unescape_uri (nil) - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "\x{0a}"
length: 1
strings begin to differ at char 1 (line 1 column 1)
uri.t TEST 2: unescape_uri (nil) - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):3 loop\])" should match a line in error.log (req 0)
uri.t TEST 2: unescape_uri (nil) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:30:19 [error] 23134\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
uri.t TEST 2: unescape_uri (nil) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
uri.t TEST 2: unescape_uri (nil) - status code ok got: ''
expected: '200'
uri.t TEST 2: unescape_uri (nil) - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "\x{0a}"
length: 1
strings begin to differ at char 1 (line 1 column 1)
uri.t TEST 2: unescape_uri (nil) - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):3 loop\])" should match a line in error.log (req 1)
uri.t TEST 2: unescape_uri (nil) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:30:19 [error] 23134\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
uri.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
uri.t TEST 10: escape_uri (a little bigger than 4k, need to be escaped) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
uri.t TEST 10: escape_uri (a little bigger than 4k, need to be escaped) - status code ok got: ''
expected: '200'
uri.t TEST 10: escape_uri (a little bigger than 4k, need to be escaped) - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%2"...
length: 4099
strings begin to differ at char 1 (line 1 column 1)
uri.t TEST 10: escape_uri (a little bigger than 4k, need to be escaped) - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):3 loop\])" should match a line in error.log (req 0)
uri.t TEST 10: escape_uri (a little bigger than 4k, need to be escaped) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:30:23 [error] 23139\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
uri.t TEST 10: escape_uri (a little bigger than 4k, need to be escaped) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
uri.t TEST 10: escape_uri (a little bigger than 4k, need to be escaped) - status code ok got: ''
expected: '200'
uri.t TEST 10: escape_uri (a little bigger than 4k, need to be escaped) - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%2"...
length: 4099
strings begin to differ at char 1 (line 1 column 1)
uri.t TEST 10: escape_uri (a little bigger than 4k, need to be escaped) - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):3 loop\])" should match a line in error.log (req 1)
uri.t TEST 10: escape_uri (a little bigger than 4k, need to be escaped) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:30:23 [error] 23139\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
uri.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
uri.t TEST 4: escape_uri (string, escaped) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
uri.t TEST 4: escape_uri (string, escaped) - status code ok got: ''
expected: '200'
uri.t TEST 4: escape_uri (string, escaped) - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "hello%20world\x{0a}"
length: 14
strings begin to differ at char 1 (line 1 column 1)
uri.t TEST 4: escape_uri (string, escaped) - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):3 loop\])" should match a line in error.log (req 0)
uri.t TEST 4: escape_uri (string, escaped) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:30:28 [error] 23144\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
uri.t TEST 4: escape_uri (string, escaped) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
uri.t TEST 4: escape_uri (string, escaped) - status code ok got: ''
expected: '200'
uri.t TEST 4: escape_uri (string, escaped) - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "hello%20world\x{0a}"
length: 14
strings begin to differ at char 1 (line 1 column 1)
uri.t TEST 4: escape_uri (string, escaped) - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):3 loop\])" should match a line in error.log (req 1)
uri.t TEST 4: escape_uri (string, escaped) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:30:28 [error] 23144\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
uri.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
uri.t TEST 7: escape_uri (number) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
uri.t TEST 7: escape_uri (number) - status code ok got: ''
expected: '200'
uri.t TEST 7: escape_uri (number) - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "3.14\x{0a}"
length: 5
strings begin to differ at char 1 (line 1 column 1)
uri.t TEST 7: escape_uri (number) - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):3 loop\])" should match a line in error.log (req 0)
uri.t TEST 7: escape_uri (number) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:30:32 [error] 23149\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
uri.t TEST 7: escape_uri (number) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
uri.t TEST 7: escape_uri (number) - status code ok got: ''
expected: '200'
uri.t TEST 7: escape_uri (number) - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "3.14\x{0a}"
length: 5
strings begin to differ at char 1 (line 1 column 1)
uri.t TEST 7: escape_uri (number) - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):3 loop\])" should match a line in error.log (req 1)
uri.t TEST 7: escape_uri (number) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:30:32 [error] 23149\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
uri.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
uri.t TEST 5: escape_uri (string, no escaped) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
uri.t TEST 5: escape_uri (string, no escaped) - status code ok got: ''
expected: '200'
uri.t TEST 5: escape_uri (string, no escaped) - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "helloworld\x{0a}"
length: 11
strings begin to differ at char 1 (line 1 column 1)
uri.t TEST 5: escape_uri (string, no escaped) - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):3 loop\])" should match a line in error.log (req 0)
uri.t TEST 5: escape_uri (string, no escaped) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:30:37 [error] 23154\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
uri.t TEST 5: escape_uri (string, no escaped) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
uri.t TEST 5: escape_uri (string, no escaped) - status code ok got: ''
expected: '200'
uri.t TEST 5: escape_uri (string, no escaped) - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "helloworld\x{0a}"
length: 11
strings begin to differ at char 1 (line 1 column 1)
uri.t TEST 5: escape_uri (string, no escaped) - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):3 loop\])" should match a line in error.log (req 1)
uri.t TEST 5: escape_uri (string, no escaped) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:30:37 [error] 23154\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
uri.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
uri.t TEST 6: escape_uri (nil) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
uri.t TEST 6: escape_uri (nil) - status code ok got: ''
expected: '200'
uri.t TEST 6: escape_uri (nil) - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "\x{0a}"
length: 1
strings begin to differ at char 1 (line 1 column 1)
uri.t TEST 6: escape_uri (nil) - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):3 loop\])" should match a line in error.log (req 0)
uri.t TEST 6: escape_uri (nil) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:30:42 [error] 23159\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
uri.t TEST 6: escape_uri (nil) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
uri.t TEST 6: escape_uri (nil) - status code ok got: ''
expected: '200'
uri.t TEST 6: escape_uri (nil) - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "\x{0a}"
length: 1
strings begin to differ at char 1 (line 1 column 1)
uri.t TEST 6: escape_uri (nil) - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):3 loop\])" should match a line in error.log (req 1)
uri.t TEST 6: escape_uri (nil) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:30:42 [error] 23159\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
uri.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
uri.t TEST 9: escape_uri (a little smaller than 4k, need to be escaped) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
uri.t TEST 9: escape_uri (a little smaller than 4k, need to be escaped) - status code ok got: ''
expected: '200'
uri.t TEST 9: escape_uri (a little smaller than 4k, need to be escaped) - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%2"...
length: 4096
strings begin to differ at char 1 (line 1 column 1)
uri.t TEST 9: escape_uri (a little smaller than 4k, need to be escaped) - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):3 loop\])" should match a line in error.log (req 0)
uri.t TEST 9: escape_uri (a little smaller than 4k, need to be escaped) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:30:46 [error] 23164\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
uri.t TEST 9: escape_uri (a little smaller than 4k, need to be escaped) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
uri.t TEST 9: escape_uri (a little smaller than 4k, need to be escaped) - status code ok got: ''
expected: '200'
uri.t TEST 9: escape_uri (a little smaller than 4k, need to be escaped) - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%2"...
length: 4096
strings begin to differ at char 1 (line 1 column 1)
uri.t TEST 9: escape_uri (a little smaller than 4k, need to be escaped) - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):3 loop\])" should match a line in error.log (req 1)
uri.t TEST 9: escape_uri (a little smaller than 4k, need to be escaped) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:30:46 [error] 23164\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
utils.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
utils.t TEST 4: utils.str_replace_char() replacing more than one character is not supported - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
utils.t TEST 4: utils.str_replace_char() replacing more than one character is not supported - status code ok got: ''
expected: '200'
utils.t TEST 4: utils.str_replace_char() replacing more than one character is not supported - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'Header01Name
01Header01Name01
Header0Name
Header1Name
Hello world
'
utils.t TEST 4: utils.str_replace_char() replacing more than one character is not supported - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:30:51 [error] 23172\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
utils.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
utils.t TEST 2: utils.str_replace_char() JIT compiles when match - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
utils.t TEST 2: utils.str_replace_char() JIT compiles when match - status code ok got: ''
expected: '200'
utils.t TEST 2: utils.str_replace_char() JIT compiles when match - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):4 loop\])" should match a line in error.log (req 0)
utils.t TEST 2: utils.str_replace_char() JIT compiles when match - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:30:55 [error] 23176\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
utils.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
utils.t TEST 3: utils.str_replace_char() JIT compiles when no match - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
utils.t TEST 3: utils.str_replace_char() JIT compiles when no match - status code ok got: ''
expected: '200'
utils.t TEST 3: utils.str_replace_char() JIT compiles when no match - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):4 loop\])" should match a line in error.log (req 0)
utils.t TEST 3: utils.str_replace_char() JIT compiles when no match - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:31:00 [error] 23180\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
utils.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
utils.t TEST 1: utils.str_replace_char() sanity (replaces a single character) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
utils.t TEST 1: utils.str_replace_char() sanity (replaces a single character) - status code ok got: ''
expected: '200'
utils.t TEST 1: utils.str_replace_char() sanity (replaces a single character) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'Header-Name
-Header-Name-
Header--Name
Header-Name
Hello world
'
utils.t TEST 1: utils.str_replace_char() sanity (replaces a single character) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:31:04 [error] 23184\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
var.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
var.t TEST 4: get capturing var - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
var.t TEST 4: get capturing var - status code ok got: ''
expected: '200'
var.t TEST 4: get capturing var - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "value: /t\x{0a}"
length: 10
strings begin to differ at char 1 (line 1 column 1)
var.t TEST 4: get capturing var - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):4 loop\])" should match a line in error.log (req 0)
var.t TEST 4: get capturing var - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:31:09 [error] 23191\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
var.t TEST 4: get capturing var - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
var.t TEST 4: get capturing var - status code ok got: ''
expected: '200'
var.t TEST 4: get capturing var - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "value: /t\x{0a}"
length: 10
strings begin to differ at char 1 (line 1 column 1)
var.t TEST 4: get capturing var - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):4 loop\])" should match a line in error.log (req 1)
var.t TEST 4: get capturing var - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:31:09 [error] 23191\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
var.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
var.t TEST 2: get normal var (case) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
var.t TEST 2: get normal var (case) - status code ok got: ''
expected: '200'
var.t TEST 2: get normal var (case) - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "value: hello\x{0a}"
length: 13
strings begin to differ at char 1 (line 1 column 1)
var.t TEST 2: get normal var (case) - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):4 loop\])" should match a line in error.log (req 0)
var.t TEST 2: get normal var (case) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:31:14 [error] 23196\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
var.t TEST 2: get normal var (case) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
var.t TEST 2: get normal var (case) - status code ok got: ''
expected: '200'
var.t TEST 2: get normal var (case) - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "value: hello\x{0a}"
length: 13
strings begin to differ at char 1 (line 1 column 1)
var.t TEST 2: get normal var (case) - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):4 loop\])" should match a line in error.log (req 1)
var.t TEST 2: get normal var (case) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:31:14 [error] 23196\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
var.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
var.t TEST 1: get normal var - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
var.t TEST 1: get normal var - status code ok got: ''
expected: '200'
var.t TEST 1: get normal var - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "value: hello\x{0a}"
length: 13
strings begin to differ at char 1 (line 1 column 1)
var.t TEST 1: get normal var - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):4 loop\])" should match a line in error.log (req 0)
var.t TEST 1: get normal var - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:31:18 [error] 23201\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
var.t TEST 1: get normal var - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
var.t TEST 1: get normal var - status code ok got: ''
expected: '200'
var.t TEST 1: get normal var - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "value: hello\x{0a}"
length: 13
strings begin to differ at char 1 (line 1 column 1)
var.t TEST 1: get normal var - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):4 loop\])" should match a line in error.log (req 1)
var.t TEST 1: get normal var - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:31:18 [error] 23201\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
var.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
var.t TEST 6: set normal var (nil value) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
var.t TEST 6: set normal var (nil value) - status code ok got: ''
expected: '200'
var.t TEST 6: set normal var (nil value) - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "value: nil\x{0a}"
length: 11
strings begin to differ at char 1 (line 1 column 1)
var.t TEST 6: set normal var (nil value) - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):3 loop\])" should match a line in error.log (req 0)
var.t TEST 6: set normal var (nil value) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:31:23 [error] 23206\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
var.t TEST 6: set normal var (nil value) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
var.t TEST 6: set normal var (nil value) - status code ok got: ''
expected: '200'
var.t TEST 6: set normal var (nil value) - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "value: nil\x{0a}"
length: 11
strings begin to differ at char 1 (line 1 column 1)
var.t TEST 6: set normal var (nil value) - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):3 loop\])" should match a line in error.log (req 1)
var.t TEST 6: set normal var (nil value) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:31:23 [error] 23206\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
var.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
var.t TEST 7: set normal var (number value) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
var.t TEST 7: set normal var (number value) - status code ok got: ''
expected: '200'
var.t TEST 7: set normal var (number value) - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "value: 30\x{0a}"
length: 10
strings begin to differ at char 1 (line 1 column 1)
var.t TEST 7: set normal var (number value) - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):3 loop\])" should match a line in error.log (req 0)
var.t TEST 7: set normal var (number value) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:31:27 [error] 23211\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
var.t TEST 7: set normal var (number value) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
var.t TEST 7: set normal var (number value) - status code ok got: ''
expected: '200'
var.t TEST 7: set normal var (number value) - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "value: 30\x{0a}"
length: 10
strings begin to differ at char 1 (line 1 column 1)
var.t TEST 7: set normal var (number value) - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):3 loop\])" should match a line in error.log (req 1)
var.t TEST 7: set normal var (number value) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:31:27 [error] 23211\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
var.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
var.t TEST 8: error buffer overread - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
var.t TEST 8: error buffer overread - status code ok got: ''
expected: '200'
var.t TEST 8: error buffer overread - response_body_like - response is expected () ''
doesn't match '(?^s:content_by_lua\(nginx\.conf:\d+\):\d+: variable "foo" not found for writing; maybe it is a built-in variable that is not changeable or you forgot to use "set \$foo '';" in the config file to define it first
content_by_lua\(nginx\.conf:\d+\):\d+: variable "server_port" not changeable
)'
var.t TEST 8: error buffer overread - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:31:32 [error] 23216\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
var.t TEST 8: error buffer overread - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
var.t TEST 8: error buffer overread - status code ok got: ''
expected: '200'
var.t TEST 8: error buffer overread - response_body_like - response is expected () ''
doesn't match '(?^s:content_by_lua\(nginx\.conf:\d+\):\d+: variable "foo" not found for writing; maybe it is a built-in variable that is not changeable or you forgot to use "set \$foo '';" in the config file to define it first
content_by_lua\(nginx\.conf:\d+\):\d+: variable "server_port" not changeable
)'
var.t TEST 8: error buffer overread - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:31:32 [error] 23216\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
var.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
var.t TEST 3: get capturing var (bad) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
var.t TEST 3: get capturing var (bad) - status code ok got: ''
expected: '200'
var.t TEST 3: get capturing var (bad) - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "value: nil\x{0a}"
length: 11
strings begin to differ at char 1 (line 1 column 1)
var.t TEST 3: get capturing var (bad) - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):4 loop\])" should match a line in error.log (req 0)
var.t TEST 3: get capturing var (bad) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:31:36 [error] 23221\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
var.t TEST 3: get capturing var (bad) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
var.t TEST 3: get capturing var (bad) - status code ok got: ''
expected: '200'
var.t TEST 3: get capturing var (bad) - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "value: nil\x{0a}"
length: 11
strings begin to differ at char 1 (line 1 column 1)
var.t TEST 3: get capturing var (bad) - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):4 loop\])" should match a line in error.log (req 1)
var.t TEST 3: get capturing var (bad) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:31:36 [error] 23221\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
var.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
var.t TEST 5: set normal var (string value) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
var.t TEST 5: set normal var (string value) - status code ok got: ''
expected: '200'
var.t TEST 5: set normal var (string value) - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "value: hello\x{0a}"
length: 13
strings begin to differ at char 1 (line 1 column 1)
var.t TEST 5: set normal var (string value) - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):4 loop\])" should match a line in error.log (req 0)
var.t TEST 5: set normal var (string value) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:31:41 [error] 23226\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
var.t TEST 5: set normal var (string value) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
var.t TEST 5: set normal var (string value) - status code ok got: ''
expected: '200'
var.t TEST 5: set normal var (string value) - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "value: hello\x{0a}"
length: 13
strings begin to differ at char 1 (line 1 column 1)
var.t TEST 5: set normal var (string value) - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):4 loop\])" should match a line in error.log (req 1)
var.t TEST 5: set normal var (string value) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:31:41 [error] 23226\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
worker-count-5.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
worker-count-5.t TEST 1: ngx.worker.count - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
worker-count-5.t TEST 1: ngx.worker.count - status code ok got: ''
expected: '200'
worker-count-5.t TEST 1: ngx.worker.count - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "workers: 5\x{0a}"
length: 11
strings begin to differ at char 1 (line 1 column 1)
worker-count-5.t TEST 1: ngx.worker.count - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):4 loop\])" should match a line in error.log (req 0)
worker-count-5.t TEST 1: ngx.worker.count - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:31:46 [error] 23234\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
worker-count-5.t TEST 1: ngx.worker.count - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
worker-count-5.t TEST 1: ngx.worker.count - status code ok got: ''
expected: '200'
worker-count-5.t TEST 1: ngx.worker.count - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "workers: 5\x{0a}"
length: 11
strings begin to differ at char 1 (line 1 column 1)
worker-count-5.t TEST 1: ngx.worker.count - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):4 loop\])" should match a line in error.log (req 1)
worker-count-5.t TEST 1: ngx.worker.count - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:31:46 [error] 23234\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
worker-count-5.t TEST 1: ngx.worker.count - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
worker-count-5.t TEST 1: ngx.worker.count - status code ok got: ''
expected: '200'
worker-count-5.t TEST 1: ngx.worker.count - response_body - response is expected (repeated req 2, req 0) got: ""
length: 0
expected: "workers: 5\x{0a}"
length: 11
strings begin to differ at char 1 (line 1 column 1)
worker-count-5.t TEST 1: ngx.worker.count - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):4 loop\])" should match a line in error.log (req 2)
worker-count-5.t TEST 1: ngx.worker.count - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:31:46 [error] 23234\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 2) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
worker.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
worker.t TEST 2: ngx.worker.pid - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
worker.t TEST 2: ngx.worker.pid - status code ok got: ''
expected: '200'
worker.t TEST 2: ngx.worker.pid - response_body_like - response is expected () ''
doesn't match '(?^s:^true
\d+$)'
worker.t TEST 2: ngx.worker.pid - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):4 loop\])" should match a line in error.log (req 0)
worker.t TEST 2: ngx.worker.pid - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:31:51 [error] 23243\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
worker.t TEST 2: ngx.worker.pid - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
worker.t TEST 2: ngx.worker.pid - status code ok got: ''
expected: '200'
worker.t TEST 2: ngx.worker.pid - response_body_like - response is expected () ''
doesn't match '(?^s:^true
\d+$)'
worker.t TEST 2: ngx.worker.pid - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):4 loop\])" should match a line in error.log (req 1)
worker.t TEST 2: ngx.worker.pid - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:31:51 [error] 23243\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
worker.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
worker.t TEST 3: ngx.worker.id - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
worker.t TEST 3: ngx.worker.id - status code ok got: ''
expected: '200'
worker.t TEST 3: ngx.worker.id - response_body_like - response is expected () ''
doesn't match '(?^s:^worker id: [0-1]$)'
worker.t TEST 3: ngx.worker.id - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):4 loop\])" should match a line in error.log (req 0)
worker.t TEST 3: ngx.worker.id - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:31:55 [error] 23248\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
worker.t TEST 3: ngx.worker.id - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
worker.t TEST 3: ngx.worker.id - status code ok got: ''
expected: '200'
worker.t TEST 3: ngx.worker.id - response_body_like - response is expected () ''
doesn't match '(?^s:^worker id: [0-1]$)'
worker.t TEST 3: ngx.worker.id - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):4 loop\])" should match a line in error.log (req 1)
worker.t TEST 3: ngx.worker.id - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:31:55 [error] 23248\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
worker.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
worker.t TEST 1: ngx.worker.exiting - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
worker.t TEST 1: ngx.worker.exiting - status code ok got: ''
expected: '200'
worker.t TEST 1: ngx.worker.exiting - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "false\x{0a}"
length: 6
strings begin to differ at char 1 (line 1 column 1)
worker.t TEST 1: ngx.worker.exiting - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):4 loop\])" should match a line in error.log (req 0)
worker.t TEST 1: ngx.worker.exiting - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:32:00 [error] 23253\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
worker.t TEST 1: ngx.worker.exiting - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
worker.t TEST 1: ngx.worker.exiting - status code ok got: ''
expected: '200'
worker.t TEST 1: ngx.worker.exiting - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "false\x{0a}"
length: 6
strings begin to differ at char 1 (line 1 column 1)
worker.t TEST 1: ngx.worker.exiting - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):4 loop\])" should match a line in error.log (req 1)
worker.t TEST 1: ngx.worker.exiting - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:32:00 [error] 23253\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
worker.t nginx: [error] init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required
worker.t TEST 4: ngx.worker.count - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
worker.t TEST 4: ngx.worker.count - status code ok got: ''
expected: '200'
worker.t TEST 4: ngx.worker.count - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "workers: 1\x{0a}"
length: 11
strings begin to differ at char 1 (line 1 column 1)
worker.t TEST 4: ngx.worker.count - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):4 loop\])" should match a line in error.log (req 0)
worker.t TEST 4: ngx.worker.count - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:32:04 [error] 23258\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'
worker.t TEST 4: ngx.worker.count - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
worker.t TEST 4: ngx.worker.count - status code ok got: ''
expected: '200'
worker.t TEST 4: ngx.worker.count - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "workers: 1\x{0a}"
length: 11
strings begin to differ at char 1 (line 1 column 1)
worker.t TEST 4: ngx.worker.count - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):4 loop\])" should match a line in error.log (req 1)
worker.t TEST 4: ngx.worker.count - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:32:04 [error] 23258\#0: init_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 1) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/resty/core/var.lua:5: in main chunk
[C]: in function 'require'
./lib/resty/core.lua:6: in main chunk
[C]: in function 'require'
'

Expected Failures

File Name Details
balancer.t TEST 18: test ngx.var.upstream_addr after using more than one set_current_peer - pattern "[lua] log_by_lua(nginx.conf:59):2: ngx.var.upstream_addr is 127.0.0.3:12345, 127.0.0.3:12346" should match a line in error.log (req 0)
balancer.t TEST 18: test ngx.var.upstream_addr after using more than one set_current_peer - pattern "[lua] log_by_lua(nginx.conf:59):2: ngx.var.upstream_addr is 127.0.0.3:12345, 127.0.0.3:12346" should match a line in error.log (req 1)
balancer.t TEST 9: set current peer (port embedded in addr) - pattern "(?^:connect\(\) failed .*?, upstream: "http://127\.0\.0\.3:12345/t")" should match a line in error.log (req 0)
balancer.t TEST 9: set current peer (port embedded in addr) - pattern "(?^:connect\(\) failed .*?, upstream: "http://127\.0\.0\.3:12345/t")" should match a line in error.log (req 1)
balancer.t TEST 19: recreate upstream module requests with header change - pattern "connect() failed (111: Connection refused) while connecting to upstream, client: 127.0.0.1" should match a line in error.log (req 0)
balancer.t TEST 19: recreate upstream module requests with header change - pattern "connect() failed (111: Connection refused) while connecting to upstream, client: 127.0.0.1" should match a line in error.log (req 1)
balancer.t TEST 15: hot loop when proxy_upstream_next error is hit and keepalive is used. - pattern "(?^:\[error] .*? upstream prematurely closed connection while reading response header from upstream)" should match a line in error.log (req 0)
balancer.t TEST 15: hot loop when proxy_upstream_next error is hit and keepalive is used. - pattern "(?^:\[error] .*? upstream prematurely closed connection while reading response header from upstream)" should match a line in error.log (req 1)
balancer.t TEST 14: set_more_tries called in a wrong context - pattern "(?^:\[error\] .*? log_by_lua.*? failed to call: API disabled in the current context)" should match a line in error.log (req 0)
balancer.t TEST 14: set_more_tries called in a wrong context - pattern "(?^:\[error\] .*? log_by_lua.*? failed to call: API disabled in the current context)" should match a line in error.log (req 1)
balancer.t TEST 12: set_current_peer called in a wrong context - pattern "(?^:\[error\] .*? log_by_lua.*? failed to call: API disabled in the current context)" should match a line in error.log (req 0)
balancer.t TEST 12: set_current_peer called in a wrong context - pattern "(?^:\[error\] .*? log_by_lua.*? failed to call: API disabled in the current context)" should match a line in error.log (req 1)
balancer.t TEST 13: get_last_failure called in a wrong context - pattern "(?^:\[error\] .*? log_by_lua.*? failed to call: API disabled in the current context)" should match a line in error.log (req 0)
balancer.t TEST 13: get_last_failure called in a wrong context - pattern "(?^:\[error\] .*? log_by_lua.*? failed to call: API disabled in the current context)" should match a line in error.log (req 1)
balancer.t TEST 1: set current peer (separate addr and port) - pattern "(?^:connect\(\) failed .*?, upstream: "http://127\.0\.0\.3:12345/t")" should match a line in error.log (req 0)
balancer.t TEST 1: set current peer (separate addr and port) - pattern "(?^:connect\(\) failed .*?, upstream: "http://127\.0\.0\.3:12345/t")" should match a line in error.log (req 1)
balancer.t TEST 10: keepalive before balancer - pattern "(?^:connect\(\) failed .*?, upstream: "http://127\.0\.0\.3:12345/t")" should match a line in error.log (req 0)
balancer.t TEST 10: keepalive before balancer - pattern "(?^:connect\(\) failed .*?, upstream: "http://127\.0\.0\.3:12345/t")" should match a line in error.log (req 1)
balancer.t TEST 4: set current peer & next upstream (3 tries exceeding the limit) - pattern "set more tries: reduced tries due to limit" should match a line in error.log (req 0)
balancer.t TEST 4: set current peer & next upstream (3 tries exceeding the limit) - pattern "set more tries: reduced tries due to limit" should match a line in error.log (req 1)
errlog.t TEST 10: without directive + ngx.set_filter_level - pattern "directive "lua_capture_error_log" is not set" should match a line in error.log (req 0)
errlog.t TEST 10: without directive + ngx.set_filter_level - pattern "directive "lua_capture_error_log" is not set" should match a line in error.log (req 1)
errlog.t nginx: [emerg] invalid capture error log size "3k", minimum size is 4096 in /home/ec2-user/git/lua-resty-core/t/servroot/conf/nginx.conf:25
errlog.t TEST 19: fetch a few and generate a few, then fetch again (overflown again) - response_body_like - response is expected () ''
doesn't match '(?^s:\Amsg count: 3
log level:5
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*?access_by_lua\(nginx.conf:\d+\):\d+: --> 88, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?access_by_lua\(nginx.conf:\d+\):\d+: --> 88, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level:5
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*?access_by_lua\(nginx.conf:\d+\):\d+: --> 89, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
msg count: 3
log level:5
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*?access_by_lua\(nginx.conf:\d+\):\d+: --> 90, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?access_by_lua\(nginx.conf:\d+\):\d+: --> 90, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level:5
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*?access_by_lua\(nginx.conf:\d+\):\d+: --> 91, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 102, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 103, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
log level:4
log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 104, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
\z)'
errlog.t TEST 9: without directive + ngx.errlog - pattern "directive "lua_capture_error_log" is not set" should match a line in error.log (req 0)
errlog.t TEST 9: without directive + ngx.errlog - pattern "directive "lua_capture_error_log" is not set" should match a line in error.log (req 1)
errlog.t TEST 30: ringbuf sentinel bug1 - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-log lines: \#2
-AAA
-aaa
'
errlog.t TEST 30: ringbuf sentinel bug1 - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-log lines: \#2
-AAA
-aaa
'
errlog.t nginx: [emerg] invalid number of arguments in "lua_capture_error_log" directive in /home/ec2-user/git/lua-resty-core/t/servroot/conf/nginx.conf:25
errlog.t TEST 25: get system default filter level during Nginx starts (init) - pattern "log a warning event" should match a line in error.log (req 0)
errlog.t TEST 25: get system default filter level during Nginx starts (init) - pattern "log a warning event" should match a line in error.log (req 1)
errlog.t TEST 26: get system default filter level during Nginx worker starts (init worker) - pattern "log a warning event" should match a line in error.log (req 0)
errlog.t TEST 26: get system default filter level during Nginx worker starts (init worker) - pattern "log a warning event" should match a line in error.log (req 1)
ocsp.t TEST 8: create OCSP request (empty string cert chain) - pattern "failed to create OCSP request: d2i_X509_bio() failed" should match a line in error.log (req 0)
ocsp.t TEST 8: create OCSP request (empty string cert chain) - pattern "failed to create OCSP request: d2i_X509_bio() failed" 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 "failed to get OCSP responder: issuer certificate not next to leaf" 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 "failed to get OCSP responder: issuer certificate not next to leaf" should match a line in error.log (req 1)
ocsp.t TEST 9: create OCSP request (no issuer cert in the chain) - pattern "failed to create OCSP request: no issuer certificate in chain" should match a line in error.log (req 0)
ocsp.t TEST 9: create OCSP request (no issuer cert in the chain) - pattern "failed to create OCSP request: no issuer certificate in chain" should match a line in error.log (req 1)
ocsp.t TEST 12: validate good OCSP response - no certs in response - pattern "OCSP response validation ok" should match a line in error.log (req 0)
ocsp.t TEST 12: validate good OCSP response - no certs in response - pattern "OCSP response validation ok" should match a line in error.log (req 1)
ocsp.t TEST 5: get OCSP responder (truncated) - pattern "OCSP url found: http:/," should match a line in error.log (req 0)
ocsp.t TEST 5: get OCSP responder (truncated) - pattern "still get an error: truncated" should match a line in error.log (req 0)
ocsp.t TEST 5: get OCSP responder (truncated) - pattern "OCSP url found: http:/," should match a line in error.log (req 1)
ocsp.t TEST 5: get OCSP responder (truncated) - pattern "still get an error: truncated" should match a line in error.log (req 1)
ocsp.t TEST 10: validate good OCSP response - pattern "OCSP response validation ok" should match a line in error.log (req 0)
ocsp.t TEST 10: validate good OCSP response - pattern "OCSP response validation ok" should match a line in error.log (req 1)
ocsp.t TEST 11: fail to validate OCSP response - no issuer cert - pattern "failed to validate OCSP response: no issuer certificate in chain" should match a line in error.log (req 0)
ocsp.t TEST 11: fail to validate OCSP response - no issuer cert - pattern "failed to validate OCSP response: no issuer certificate in chain" should match a line in error.log (req 1)
ocsp.t TEST 16: good status req from client - pattern "ocsp status resp set ok: nil," should match a line in error.log (req 0)
ocsp.t TEST 16: good status req from client - pattern "ocsp status resp set ok: nil," should match a line in error.log (req 1)
ocsp.t TEST 2: get OCSP responder (not found) - pattern "OCSP responder not found" should match a line in error.log (req 0)
ocsp.t TEST 2: get OCSP responder (not found) - pattern "OCSP responder not found" should match a line in error.log (req 1)
ocsp.t TEST 7: create OCSP request (buffer too small) - pattern "failed to create OCSP request: output buffer too small: 68 > 67" should match a line in error.log (req 0)
ocsp.t TEST 7: create OCSP request (buffer too small) - pattern "failed to create OCSP request: output buffer too small: 68 > 67" should match a line in error.log (req 1)
ocsp.t TEST 17: no status req from client - pattern "ocsp status resp set ok: no status req," should match a line in error.log (req 0)
ocsp.t TEST 17: no status req from client - pattern "ocsp status resp set ok: no status req," should match a line in error.log (req 1)
ocsp.t TEST 15: fail to validate OCSP response - OCSP response returns revoked status - pattern "failed to validate OCSP response: certificate status "revoked" in the OCSP response" should match a line in error.log (req 0)
ocsp.t TEST 15: fail to validate OCSP response - OCSP response returns revoked status - pattern "failed to validate OCSP response: certificate status "revoked" in the OCSP response" 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 "failed to validate OCSP response: OCSP_basic_verify() failed" 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 "failed to validate OCSP response: OCSP_basic_verify() failed" should match a line in error.log (req 1)
ocsp.t TEST 1: get OCSP responder (good case) - pattern "OCSP url found: http://127.0.0.1:8888/ocsp?foo=1," should match a line in error.log (req 0)
ocsp.t TEST 1: get OCSP responder (good case) - pattern "OCSP url found: http://127.0.0.1:8888/ocsp?foo=1," 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 "OCSP response validation ok" 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 "OCSP response validation ok" should match a line in error.log (req 1)
ocsp.t TEST 3: get OCSP responder (no issuer cert at all) - pattern "failed to get OCSP responder: no issuer certificate in chain" should match a line in error.log (req 0)
ocsp.t TEST 3: get OCSP responder (no issuer cert at all) - pattern "failed to get OCSP responder: no issuer certificate in chain" should match a line in error.log (req 1)
ocsp.t TEST 6: create OCSP request (good) - pattern "OCSP request created with length 68" should match a line in error.log (req 0)
ocsp.t TEST 6: create OCSP request (good) - pattern "OCSP request created with length 68" should match a line in error.log (req 1)
pipe-stderr.t TEST 7: read stderr, pattern is read any - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-hello
-world
'
pipe-stderr.t TEST 7: read stderr, pattern is read any - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-hello
-world
'
pipe-stdout.t TEST 21: read process, mix read pattern - response_body - response is expected (repeated req 0, req 0) @@ -1,13 +0,0 @@
-reading any
-hello
-reading 3
-wor
-reading line
-ld
-reading 2
-mo
-reading any
-re
-
-reading all
-data
'
pipe-stdout.t TEST 21: read process, mix read pattern - response_body - response is expected (repeated req 1, req 0) @@ -1,13 +0,0 @@
-reading any
-hello
-reading 3
-wor
-reading line
-ld
-reading 2
-mo
-reading any
-re
-
-reading all
-data
'
pipe-stdout.t TEST 11: read process, pattern is read any, with limited, limit smaller than read data - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-hell
-o
-world
'
pipe-stdout.t TEST 11: read process, pattern is read any, with limited, limit smaller than read data - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-hell
-o
-world
'
re-gmatch.t TEST 1: matched, no submatch, no jit compile, no regex cache - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):4 loop\])" should match a line in error.log (req 0)
re-gmatch.t TEST 1: matched, no submatch, no jit compile, no regex cache - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):4 loop\])" should match a line in error.log (req 1)
re-sub.t TEST 5: replace template + submatches (exceeding buffers) - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-s: [bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd
-n: 2048
'
re-sub.t TEST 5: replace template + submatches (exceeding buffers) - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-s: [bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd
-n: 2048
'
request.t TEST 2: ngx.req.get_headers (raw) - pattern "(?^:\[TRACE\s+\d+ .*? -> \d+\])" should match a line in error.log (req 0)
request.t TEST 2: ngx.req.get_headers (raw) - pattern "(?^:\[TRACE\s+\d+ .*? -> \d+\])" should match a line in error.log (req 1)
request.t TEST 1: ngx.req.get_headers - pattern "(?^:\[TRACE\s+\d+ .*? -> \d+\])" should match a line in error.log (req 0)
request.t TEST 1: ngx.req.get_headers - pattern "(?^:\[TRACE\s+\d+ .*? -> \d+\])" should match a line in error.log (req 1)
request.t TEST 3: ngx.req.get_headers (count is 2) - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):4 loop\])" should match a line in error.log (req 0)
request.t TEST 3: ngx.req.get_headers (count is 2) - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):4 loop\])" should match a line in error.log (req 1)
request.t TEST 4: ngx.req.get_headers (metatable) - pattern "(?^:\[TRACE\s+\d+ .*? -> \d+\])" should match a line in error.log (req 0)
request.t TEST 4: ngx.req.get_headers (metatable) - pattern "(?^:\[TRACE\s+\d+ .*? -> \d+\])" should match a line in error.log (req 1)
semaphore.t TEST 32: semaphore wait time is zero - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:53:41 [error] 13258\#0: *1 lua entry thread aborted: runtime error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
coroutine 0:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/ngx/semaphore.lua:7: in main chunk
[C]: in function 'require'
content_by_lua(nginx.conf:48):2: in main chunk, client: 127.0.0.1, server: localhost, request: "GET /test HTTP/1.1", host: "localhost"
2020/10/26 11:53:41 [debug] 13258\#0: *1 lua request cleanup: forcible=0
'
semaphore.t TEST 32: semaphore wait time is zero - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:53:41 [error] 13258\#0: *2 lua entry thread aborted: runtime error: content_by_lua(nginx.conf:48):2: loop or previous error loading module 'ngx.semaphore'" (req 1) stack traceback:
coroutine 0:
[C]: in function 'require'
content_by_lua(nginx.conf:48):2: in main chunk, client: 127.0.0.1, server: localhost, request: "GET /test HTTP/1.1", host: "localhost"
2020/10/26 11:53:41 [debug] 13258\#0: *2 lua request cleanup: forcible=0
2020/10/26 11:53:41 [debug] 13258\#0: *2 http finalize request: 500, "/test?" a:1, c:1
2020/10/26 11:53:41 [debug] 13258\#0: *2 http special response: 500, "/test?"
2020/10/26 11:53:41 [debug] 13258\#0: *2 http set discard body
2020/10/26 11:53:41 [debug] 13258\#0: *2 lua capture header filter, uri "/test"
'
semaphore.t TEST 22: semaphore post in body_filter_by_lua (subrequest) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:53:44 [error] 13268\#0: *27 lua entry thread aborted: runtime error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
coroutine 0:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/ngx/semaphore.lua:7: in main chunk
[C]: in function 'require'
content_by_lua(nginx.conf:72):2: in main chunk, client: 127.0.0.1, server: localhost, request: "GET /test HTTP/1.1", subrequest: "/sem_wait", host: "localhost"
2020/10/26 11:53:44 [debug] 13268\#0: *27 lua request cleanup: forcible=0
'
semaphore.t TEST 22: semaphore post in body_filter_by_lua (subrequest) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:53:44 [error] 13268\#0: *27 failed to run body_filter_by_lua*: body_filter_by_lua:2: loop or previous error loading module 'ngx.semaphore'" (req 0) stack traceback:
[C]: in function 'require'
body_filter_by_lua:2: in main chunk, client: 127.0.0.1, server: localhost, request: "GET /test HTTP/1.1", subrequest: "/sem_post", host: "localhost"
2020/10/26 11:53:44 [debug] 13268\#0: *27 http copy filter: -1 "/sem_post?"
2020/10/26 11:53:44 [debug] 13268\#0: *27 lua exit with code 200
2020/10/26 11:53:44 [debug] 13268\#0: *27 lua resume returned 1
2020/10/26 11:53:44 [debug] 13268\#0: *27 lua thread yielded
2020/10/26 11:53:44 [debug] 13268\#0: *27 lua thread aborting request with status 200
2020/10/26 11:53:44 [debug] 13268\#0: *27 lua request cleanup: forcible=0
'
semaphore.t TEST 22: semaphore post in body_filter_by_lua (subrequest) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:53:44 [error] 13268\#0: *27 failed to run body_filter_by_lua*: body_filter_by_lua:2: loop or previous error loading module 'ngx.semaphore'" (req 0) stack traceback:
[C]: in function 'require'
body_filter_by_lua:2: in main chunk, client: 127.0.0.1, server: localhost, request: "GET /test HTTP/1.1", subrequest: "/sem_post", host: "localhost"
2020/10/26 11:53:44 [debug] 13268\#0: *27 http copy filter: -1 "/sem_post?"
2020/10/26 11:53:44 [debug] 13268\#0: *27 http finalize request: -1, "/sem_post?" a:0, c:2
2020/10/26 11:53:44 [debug] 13268\#0: *27 lua run post subrequest handler, rc:-1 c:2
2020/10/26 11:53:44 [debug] 13268\#0: *27 lua restoring write event handler
2020/10/26 11:53:44 [debug] 13268\#0: *27 malloc: 04DFA778:8
2020/10/26 11:53:44 [debug] 13268\#0: *27 malloc: 04DFA7B0:8
'
semaphore.t TEST 22: semaphore post in body_filter_by_lua (subrequest) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:53:44 [error] 13268\#0: *28 lua entry thread aborted: runtime error: content_by_lua(nginx.conf:72):2: loop or previous error loading module 'ngx.semaphore'" (req 1) stack traceback:
coroutine 0:
[C]: in function 'require'
content_by_lua(nginx.conf:72):2: in main chunk, client: 127.0.0.1, server: localhost, request: "GET /test HTTP/1.1", subrequest: "/sem_wait", host: "localhost"
2020/10/26 11:53:44 [debug] 13268\#0: *28 lua request cleanup: forcible=0
2020/10/26 11:53:44 [debug] 13268\#0: *28 http finalize request: 500, "/sem_wait?" a:0, c:3
2020/10/26 11:53:44 [debug] 13268\#0: *28 lua run post subrequest handler, rc:500 c:3
2020/10/26 11:53:44 [debug] 13268\#0: *28 lua restoring write event handler
2020/10/26 11:53:44 [debug] 13268\#0: *28 malloc: 04DFE108:8
'
semaphore.t TEST 22: semaphore post in body_filter_by_lua (subrequest) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:53:44 [error] 13268\#0: *28 failed to run body_filter_by_lua*: body_filter_by_lua:2: loop or previous error loading module 'ngx.semaphore'" (req 1) stack traceback:
[C]: in function 'require'
body_filter_by_lua:2: in main chunk, client: 127.0.0.1, server: localhost, request: "GET /test HTTP/1.1", subrequest: "/sem_post", host: "localhost"
2020/10/26 11:53:44 [debug] 13268\#0: *28 http copy filter: -1 "/sem_post?"
2020/10/26 11:53:44 [debug] 13268\#0: *28 lua exit with code 200
2020/10/26 11:53:44 [debug] 13268\#0: *28 lua resume returned 1
2020/10/26 11:53:44 [debug] 13268\#0: *28 lua thread yielded
2020/10/26 11:53:44 [debug] 13268\#0: *28 lua thread aborting request with status 200
2020/10/26 11:53:44 [debug] 13268\#0: *28 lua request cleanup: forcible=0
'
semaphore.t TEST 22: semaphore post in body_filter_by_lua (subrequest) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:53:44 [error] 13268\#0: *28 failed to run body_filter_by_lua*: body_filter_by_lua:2: loop or previous error loading module 'ngx.semaphore'" (req 1) stack traceback:
[C]: in function 'require'
body_filter_by_lua:2: in main chunk, client: 127.0.0.1, server: localhost, request: "GET /test HTTP/1.1", subrequest: "/sem_post", host: "localhost"
2020/10/26 11:53:44 [debug] 13268\#0: *28 http copy filter: -1 "/sem_post?"
2020/10/26 11:53:44 [debug] 13268\#0: *28 http finalize request: -1, "/sem_post?" a:0, c:2
2020/10/26 11:53:44 [debug] 13268\#0: *28 lua run post subrequest handler, rc:-1 c:2
2020/10/26 11:53:44 [debug] 13268\#0: *28 lua restoring write event handler
2020/10/26 11:53:44 [debug] 13268\#0: *28 malloc: 04DFE828:8
2020/10/26 11:53:44 [debug] 13268\#0: *28 malloc: 04DFE860:8
'
semaphore.t TEST 40: bugfix: semaphore instance can't be garbage collected when someone is waiting on it - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:53:49 [error] 13328\#0: *79 lua entry thread aborted: runtime error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
coroutine 0:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/ngx/semaphore.lua:7: in main chunk
[C]: in function 'require'
content_by_lua(nginx.conf:66):2: in main chunk, client: 127.0.0.1, server: localhost, request: "GET /test HTTP/1.1", host: "localhost"
2020/10/26 11:53:49 [debug] 13328\#0: *79 lua request cleanup: forcible=0
'
semaphore.t TEST 40: bugfix: semaphore instance can't be garbage collected when someone is waiting on it - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:53:49 [error] 13328\#0: *80 lua entry thread aborted: runtime error: content_by_lua(nginx.conf:66):2: loop or previous error loading module 'ngx.semaphore'" (req 1) stack traceback:
coroutine 0:
[C]: in function 'require'
content_by_lua(nginx.conf:66):2: in main chunk, client: 127.0.0.1, server: localhost, request: "GET /test HTTP/1.1", host: "localhost"
2020/10/26 11:53:49 [debug] 13328\#0: *80 lua request cleanup: forcible=0
2020/10/26 11:53:49 [debug] 13328\#0: *80 http finalize request: 500, "/test?" a:1, c:1
2020/10/26 11:53:49 [debug] 13328\#0: *80 http special response: 500, "/test?"
2020/10/26 11:53:49 [debug] 13328\#0: *80 http set discard body
2020/10/26 11:53:49 [debug] 13328\#0: *80 lua capture header filter, uri "/test"
'
semaphore.t TEST 13: semaphore in log_by_lua (wait not allowed) - grep_error_log_out (req 0) @@ -1,2 +0,0 @@
-sem: 1 while logging request,
-sem: API disabled in the context of log_by_lua* while logging request,
'
semaphore.t TEST 13: semaphore in log_by_lua (wait not allowed) - grep_error_log_out (req 1) @@ -1,2 +0,0 @@
-sem: 1 while logging request,
-sem: API disabled in the context of log_by_lua* while logging request,
'
semaphore.t TEST 10: semaphore in rewrite_by_lua (all allowed) - grep_error_log_out (req 0) @@ -1,2 +0,0 @@
-sem: timeout,
-sem: 1,
'
semaphore.t TEST 10: semaphore in rewrite_by_lua (all allowed) - grep_error_log_out (req 1) @@ -1,2 +0,0 @@
-sem: timeout,
-sem: 1,
'
semaphore.t TEST 5: semaphore.new in init_by_lua* (w/o shdict) - grep_error_log_out (req 0) ''
doesn't match '(?^:\[lua\] init_by_lua:\d+: sema created: table: 0x[a-f0-9]+)'
semaphore.t TEST 3: semaphore wait time=0 - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:57:25 [error] 13622\#0: *359 lua entry thread aborted: runtime error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
coroutine 0:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/ngx/semaphore.lua:7: in main chunk
[C]: in function 'require'
content_by_lua(nginx.conf:85):2: in main chunk, client: 127.0.0.1, server: localhost, request: "GET /test HTTP/1.1", host: "localhost"
2020/10/26 11:57:25 [debug] 13622\#0: *359 lua request cleanup: forcible=0
'
semaphore.t TEST 3: semaphore wait time=0 - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:57:25 [error] 13622\#0: *360 lua entry thread aborted: runtime error: content_by_lua(nginx.conf:85):2: loop or previous error loading module 'ngx.semaphore'" (req 1) stack traceback:
coroutine 0:
[C]: in function 'require'
content_by_lua(nginx.conf:85):2: in main chunk, client: 127.0.0.1, server: localhost, request: "GET /test HTTP/1.1", host: "localhost"
2020/10/26 11:57:25 [debug] 13622\#0: *360 lua request cleanup: forcible=0
2020/10/26 11:57:25 [debug] 13622\#0: *360 http finalize request: 500, "/test?" a:1, c:1
2020/10/26 11:57:25 [debug] 13622\#0: *360 http special response: 500, "/test?"
2020/10/26 11:57:25 [debug] 13622\#0: *360 http set discard body
2020/10/26 11:57:25 [debug] 13622\#0: *360 lua header filter for user lua code, uri "/test"
'
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 12: semaphore in content_by_lua (all allowed) - grep_error_log_out (req 0) @@ -1,2 +0,0 @@
-sem: timeout,
-sem: 1,
'
semaphore.t TEST 12: semaphore in content_by_lua (all allowed) - grep_error_log_out (req 1) @@ -1,2 +0,0 @@
-sem: timeout,
-sem: 1,
'
semaphore.t TEST 9: semaphore in set_by_lua (wait is not allowed) - grep_error_log_out (req 0) @@ -1,2 +0,0 @@
-sem: 1,
-sem: API disabled in the context of set_by_lua*,
'
semaphore.t TEST 9: semaphore in set_by_lua (wait is not allowed) - grep_error_log_out (req 1) @@ -1,2 +0,0 @@
-sem: 1,
-sem: API disabled in the context of set_by_lua*,
'
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 15: semaphore in body_filter_by_lua (wait not allowed) - grep_error_log_out (req 0) @@ -1,4 +0,0 @@
-sem: 1,
-sem: API disabled in the context of body_filter_by_lua*,
-sem: 1,
-sem: API disabled in the context of body_filter_by_lua*,
'
semaphore.t TEST 15: semaphore in body_filter_by_lua (wait not allowed) - grep_error_log_out (req 1) @@ -1,4 +0,0 @@
-sem: 1,
-sem: API disabled in the context of body_filter_by_lua*,
-sem: 1,
-sem: API disabled in the context of body_filter_by_lua*,
'
semaphore.t TEST 26: kill a light thread that is waiting on a semaphore (no resource) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:57:43 [error] 13833\#0: *541 lua entry thread aborted: runtime error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
coroutine 0:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/ngx/semaphore.lua:7: in main chunk
[C]: in function 'require'
content_by_lua(nginx.conf:58):2: in main chunk, client: 127.0.0.1, server: localhost, request: "GET /test HTTP/1.1", host: "localhost"
2020/10/26 11:57:43 [debug] 13833\#0: *541 lua request cleanup: forcible=0
'
semaphore.t TEST 26: kill a light thread that is waiting on a semaphore (no resource) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:57:44 [error] 13833\#0: *542 lua entry thread aborted: runtime error: content_by_lua(nginx.conf:58):2: loop or previous error loading module 'ngx.semaphore'" (req 1) stack traceback:
coroutine 0:
[C]: in function 'require'
content_by_lua(nginx.conf:58):2: in main chunk, client: 127.0.0.1, server: localhost, request: "GET /test HTTP/1.1", host: "localhost"
2020/10/26 11:57:44 [debug] 13833\#0: *542 lua request cleanup: forcible=0
2020/10/26 11:57:44 [debug] 13833\#0: *542 http finalize request: 500, "/test?" a:1, c:1
2020/10/26 11:57:44 [debug] 13833\#0: *542 http special response: 500, "/test?"
2020/10/26 11:57:44 [debug] 13833\#0: *542 http set discard body
2020/10/26 11:57:44 [debug] 13833\#0: *542 lua capture header filter, uri "/test"
'
semaphore.t TEST 18: semaphore wait post in access_by_lua - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:57:49 [error] 13893\#0: *593 lua entry thread aborted: runtime error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
coroutine 0:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/ngx/semaphore.lua:7: in main chunk
[C]: in function 'require'
access_by_lua(nginx.conf:65):2: in main chunk, client: 127.0.0.1, server: localhost, request: "GET /test HTTP/1.1", host: "localhost"
2020/10/26 11:57:49 [debug] 13893\#0: *593 lua request cleanup: forcible=0
'
semaphore.t TEST 18: semaphore wait post in access_by_lua - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:57:49 [error] 13893\#0: *594 lua entry thread aborted: runtime error: access_by_lua(nginx.conf:65):2: loop or previous error loading module 'ngx.semaphore'" (req 1) stack traceback:
coroutine 0:
[C]: in function 'require'
access_by_lua(nginx.conf:65):2: in main chunk, client: 127.0.0.1, server: localhost, request: "GET /test HTTP/1.1", host: "localhost"
2020/10/26 11:57:49 [debug] 13893\#0: *594 lua request cleanup: forcible=0
2020/10/26 11:57:49 [debug] 13893\#0: *594 http finalize request: 500, "/test?" a:1, c:1
2020/10/26 11:57:49 [debug] 13893\#0: *594 http special response: 500, "/test?"
2020/10/26 11:57:49 [debug] 13893\#0: *594 http set discard body
2020/10/26 11:57:49 [debug] 13893\#0: *594 lua capture header filter, uri "/test"
'
semaphore.t TEST 7: semaphore in init_worker_by_lua (wait is not allowed) - grep_error_log_out (req 0) @@ -1,2 +0,0 @@
-sem count: 1,
-sem wait: API disabled in the context of init_worker_by_lua*,
'
semaphore.t TEST 17: semaphore post in all phase (in a request) - grep_error_log_out (req 0) got: ''
expected: 'sem: 6 times,
'
semaphore.t TEST 17: semaphore post in all phase (in a request) - grep_error_log_out (req 1) got: ''
expected: 'sem: 6 times,
'
semaphore.t TEST 8: semaphore in init_worker_by_lua (new and post) - grep_error_log_out (req 0) got: ''
expected: 'sem count: 2,
'
semaphore.t TEST 8: semaphore in init_worker_by_lua (new and post) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:57:55 [error] 13983\#0: init_worker_by_lua error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/ngx/semaphore.lua:7: in main chunk
[C]: in function 'require'
init_worker_by_lua:2: in main chunk
2020/10/26 11:57:56 [debug] 13953\#0: free: 05574E80, unused: 0
2020/10/26 11:57:56 [debug] 13953\#0: free: 05574E10, unused: 0
'
semaphore.t TEST 8: semaphore in init_worker_by_lua (new and post) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:57:57 [error] 13983\#0: *674 lua entry thread aborted: runtime error: content_by_lua(nginx.conf:63):3: attempt to index local 'sem' (a nil value)" (req 0) stack traceback:
coroutine 0:
content_by_lua(nginx.conf:63): in main chunk, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
2020/10/26 11:57:57 [debug] 13983\#0: *674 lua request cleanup: forcible=0
2020/10/26 11:57:57 [debug] 13983\#0: *674 http finalize request: 500, "/t?" a:1, c:1
2020/10/26 11:57:57 [debug] 13983\#0: *674 http special response: 500, "/t?"
2020/10/26 11:57:57 [debug] 13983\#0: *674 http set discard body
2020/10/26 11:57:57 [debug] 13983\#0: *674 lua capture header filter, uri "/t"
2020/10/26 11:57:57 [debug] 13983\#0: *674 malloc: 05B7A308:52
'
semaphore.t TEST 8: semaphore in init_worker_by_lua (new and post) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:57:58 [error] 13983\#0: *675 lua entry thread aborted: runtime error: content_by_lua(nginx.conf:63):3: attempt to index local 'sem' (a nil value)" (req 1) stack traceback:
coroutine 0:
content_by_lua(nginx.conf:63): in main chunk, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost"
2020/10/26 11:57:58 [debug] 13983\#0: *675 lua request cleanup: forcible=0
2020/10/26 11:57:58 [debug] 13983\#0: *675 http finalize request: 500, "/t?" a:1, c:1
2020/10/26 11:57:58 [debug] 13983\#0: *675 http special response: 500, "/t?"
2020/10/26 11:57:58 [debug] 13983\#0: *675 http set discard body
2020/10/26 11:57:58 [debug] 13983\#0: *675 lua capture header filter, uri "/t"
2020/10/26 11:57:58 [debug] 13983\#0: *675 malloc: 0561F3F8:52
'
semaphore.t TEST 14: semaphore in header_filter_by_lua (wait not allowed) - grep_error_log_out (req 0) @@ -1,2 +0,0 @@
-sem: 1,
-sem: API disabled in the context of header_filter_by_lua*,
'
semaphore.t TEST 14: semaphore in header_filter_by_lua (wait not allowed) - grep_error_log_out (req 1) @@ -1,2 +0,0 @@
-sem: 1,
-sem: API disabled in the context of header_filter_by_lua*,
'
semaphore.t TEST 27: kill a light thread that is waiting on a semaphore (after post) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:58:03 [error] 14043\#0: *726 lua entry thread aborted: runtime error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
coroutine 0:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/ngx/semaphore.lua:7: in main chunk
[C]: in function 'require'
content_by_lua(nginx.conf:66):2: in main chunk, client: 127.0.0.1, server: localhost, request: "GET /test HTTP/1.1", host: "localhost"
2020/10/26 11:58:03 [debug] 14043\#0: *726 lua request cleanup: forcible=0
'
semaphore.t TEST 27: kill a light thread that is waiting on a semaphore (after post) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 11:58:03 [error] 14043\#0: *727 lua entry thread aborted: runtime error: content_by_lua(nginx.conf:66):2: loop or previous error loading module 'ngx.semaphore'" (req 1) stack traceback:
coroutine 0:
[C]: in function 'require'
content_by_lua(nginx.conf:66):2: in main chunk, client: 127.0.0.1, server: localhost, request: "GET /test HTTP/1.1", host: "localhost"
2020/10/26 11:58:03 [debug] 14043\#0: *727 lua request cleanup: forcible=0
2020/10/26 11:58:03 [debug] 14043\#0: *727 http finalize request: 500, "/test?" a:1, c:1
2020/10/26 11:58:03 [debug] 14043\#0: *727 http special response: 500, "/test?"
2020/10/26 11:58:03 [debug] 14043\#0: *727 http set discard body
2020/10/26 11:58:03 [debug] 14043\#0: *727 lua capture header filter, uri "/test"
'
semaphore.t TEST 11: semaphore in access_by_lua (all allowed) - grep_error_log_out (req 0) @@ -1,2 +0,0 @@
-sem: timeout,
-sem: 1,
'
semaphore.t TEST 11: semaphore in access_by_lua (all allowed) - grep_error_log_out (req 1) @@ -1,2 +0,0 @@
-sem: timeout,
-sem: 1,
'
semaphore.t TEST 6: semaphore.new in init_by_lua* (with shdict) - grep_error_log_out (req 0) ''
doesn't match '(?^:\[lua\] init_by_lua:\d+: sema created: table: 0x[a-f0-9]+)'
semaphore.t TEST 31: multi wait and mult post with one semaphore - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:01:36 [error] 14319\#0: *980 lua entry thread aborted: runtime error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
coroutine 0:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/ngx/semaphore.lua:7: in main chunk
[C]: in function 'require'
content_by_lua(nginx.conf:73):2: in main chunk, client: 127.0.0.1, server: localhost, request: "GET /test HTTP/1.1", host: "localhost"
2020/10/26 12:01:36 [debug] 14319\#0: *980 lua request cleanup: forcible=0
'
semaphore.t TEST 31: multi wait and mult post with one semaphore - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:01:36 [error] 14319\#0: *981 lua entry thread aborted: runtime error: content_by_lua(nginx.conf:73):2: loop or previous error loading module 'ngx.semaphore'" (req 1) stack traceback:
coroutine 0:
[C]: in function 'require'
content_by_lua(nginx.conf:73):2: in main chunk, client: 127.0.0.1, server: localhost, request: "GET /test HTTP/1.1", host: "localhost"
2020/10/26 12:01:36 [debug] 14319\#0: *981 lua request cleanup: forcible=0
2020/10/26 12:01:36 [debug] 14319\#0: *981 http finalize request: 500, "/test?" a:1, c:1
2020/10/26 12:01:36 [debug] 14319\#0: *981 http special response: 500, "/test?"
2020/10/26 12:01:36 [debug] 14319\#0: *981 http set discard body
2020/10/26 12:01:36 [debug] 14319\#0: *981 rds json header filter, "/test"
'
semaphore.t TEST 25: two thread wait for each other - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:01:39 [error] 14349\#0: *1006 lua entry thread aborted: runtime error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
coroutine 0:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/ngx/semaphore.lua:7: in main chunk
[C]: in function 'require'
content_by_lua(nginx.conf:74):2: in main chunk, client: 127.0.0.1, server: localhost, request: "GET /test HTTP/1.1", host: "localhost"
2020/10/26 12:01:39 [debug] 14349\#0: *1006 lua request cleanup: forcible=0
'
semaphore.t TEST 25: two thread wait for each other - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:01:39 [error] 14349\#0: *1007 lua entry thread aborted: runtime error: content_by_lua(nginx.conf:74):2: loop or previous error loading module 'ngx.semaphore'" (req 1) stack traceback:
coroutine 0:
[C]: in function 'require'
content_by_lua(nginx.conf:74):2: in main chunk, client: 127.0.0.1, server: localhost, request: "GET /test HTTP/1.1", host: "localhost"
2020/10/26 12:01:39 [debug] 14349\#0: *1007 lua request cleanup: forcible=0
2020/10/26 12:01:39 [debug] 14349\#0: *1007 http finalize request: 500, "/test?" a:1, c:1
2020/10/26 12:01:39 [debug] 14349\#0: *1007 http special response: 500, "/test?"
2020/10/26 12:01:39 [debug] 14349\#0: *1007 http set discard body
2020/10/26 12:01:39 [debug] 14349\#0: *1007 lua capture header filter, uri "/test"
'
semaphore.t TEST 4: basic semaphore in subrequest - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:01:42 [error] 14379\#0: *1032 lua entry thread aborted: runtime error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
coroutine 0:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/ngx/semaphore.lua:7: in main chunk
[C]: in function 'require'
content_by_lua(nginx.conf:72):2: in main chunk, client: 127.0.0.1, server: localhost, request: "GET /test HTTP/1.1", subrequest: "/sem_wait", host: "localhost"
2020/10/26 12:01:42 [debug] 14379\#0: *1032 lua request cleanup: forcible=0
'
semaphore.t TEST 4: basic semaphore in subrequest - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:01:42 [error] 14379\#0: *1032 lua entry thread aborted: runtime error: content_by_lua(nginx.conf:94):2: loop or previous error loading module 'ngx.semaphore'" (req 0) stack traceback:
coroutine 0:
[C]: in function 'require'
content_by_lua(nginx.conf:94):2: in main chunk, client: 127.0.0.1, server: localhost, request: "GET /test HTTP/1.1", subrequest: "/sem_post", host: "localhost"
2020/10/26 12:01:42 [debug] 14379\#0: *1032 lua request cleanup: forcible=0
2020/10/26 12:01:42 [debug] 14379\#0: *1032 http finalize request: 500, "/sem_post?" a:0, c:2
2020/10/26 12:01:42 [debug] 14379\#0: *1032 lua run post subrequest handler, rc:500 c:2
2020/10/26 12:01:42 [debug] 14379\#0: *1032 lua restoring write event handler
2020/10/26 12:01:42 [debug] 14379\#0: *1032 malloc: 04D89AB8:8
'
semaphore.t TEST 4: basic semaphore in subrequest - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:01:42 [error] 14379\#0: *1033 lua entry thread aborted: runtime error: content_by_lua(nginx.conf:72):2: loop or previous error loading module 'ngx.semaphore'" (req 1) stack traceback:
coroutine 0:
[C]: in function 'require'
content_by_lua(nginx.conf:72):2: in main chunk, client: 127.0.0.1, server: localhost, request: "GET /test HTTP/1.1", subrequest: "/sem_wait", host: "localhost"
2020/10/26 12:01:42 [debug] 14379\#0: *1033 lua request cleanup: forcible=0
2020/10/26 12:01:42 [debug] 14379\#0: *1033 http finalize request: 500, "/sem_wait?" a:0, c:3
2020/10/26 12:01:42 [debug] 14379\#0: *1033 lua run post subrequest handler, rc:500 c:3
2020/10/26 12:01:42 [debug] 14379\#0: *1033 lua restoring write event handler
2020/10/26 12:01:42 [debug] 14379\#0: *1033 malloc: 04BFFA98:8
'
semaphore.t TEST 4: basic semaphore in subrequest - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:01:42 [error] 14379\#0: *1033 lua entry thread aborted: runtime error: content_by_lua(nginx.conf:94):2: loop or previous error loading module 'ngx.semaphore'" (req 1) stack traceback:
coroutine 0:
[C]: in function 'require'
content_by_lua(nginx.conf:94):2: in main chunk, client: 127.0.0.1, server: localhost, request: "GET /test HTTP/1.1", subrequest: "/sem_post", host: "localhost"
2020/10/26 12:01:42 [debug] 14379\#0: *1033 lua request cleanup: forcible=0
2020/10/26 12:01:42 [debug] 14379\#0: *1033 http finalize request: 500, "/sem_post?" a:0, c:2
2020/10/26 12:01:42 [debug] 14379\#0: *1033 lua run post subrequest handler, rc:500 c:2
2020/10/26 12:01:42 [debug] 14379\#0: *1033 lua restoring write event handler
2020/10/26 12:01:42 [debug] 14379\#0: *1033 malloc: 04BFFDF0:8
'
semaphore.t TEST 30: main thread wait a light thread that is waiting on a semaphore - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:01:47 [error] 14439\#0: *1084 lua entry thread aborted: runtime error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
coroutine 0:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/ngx/semaphore.lua:7: in main chunk
[C]: in function 'require'
content_by_lua(nginx.conf:57):2: in main chunk, client: 127.0.0.1, server: localhost, request: "GET /test HTTP/1.1", host: "localhost"
2020/10/26 12:01:47 [debug] 14439\#0: *1084 lua request cleanup: forcible=0
'
semaphore.t TEST 30: main thread wait a light thread that is waiting on a semaphore - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:01:47 [error] 14439\#0: *1085 lua entry thread aborted: runtime error: content_by_lua(nginx.conf:57):2: loop or previous error loading module 'ngx.semaphore'" (req 1) stack traceback:
coroutine 0:
[C]: in function 'require'
content_by_lua(nginx.conf:57):2: in main chunk, client: 127.0.0.1, server: localhost, request: "GET /test HTTP/1.1", host: "localhost"
2020/10/26 12:01:47 [debug] 14439\#0: *1085 lua request cleanup: forcible=0
2020/10/26 12:01:47 [debug] 14439\#0: *1085 http finalize request: 500, "/test?" a:1, c:1
2020/10/26 12:01:47 [debug] 14439\#0: *1085 http special response: 500, "/test?"
2020/10/26 12:01:47 [debug] 14439\#0: *1085 http set discard body
2020/10/26 12:01:47 [debug] 14439\#0: *1085 lua capture header filter, uri "/test"
'
semaphore.t TEST 21: semaphore post in header_filter_by_lua (subrequest) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:01:50 [error] 14469\#0: *1110 lua entry thread aborted: runtime error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
coroutine 0:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/ngx/semaphore.lua:7: in main chunk
[C]: in function 'require'
content_by_lua(nginx.conf:72):2: in main chunk, client: 127.0.0.1, server: localhost, request: "GET /test HTTP/1.1", subrequest: "/sem_wait", host: "localhost"
2020/10/26 12:01:50 [debug] 14469\#0: *1110 lua request cleanup: forcible=0
'
semaphore.t TEST 21: semaphore post in header_filter_by_lua (subrequest) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:01:50 [error] 14469\#0: *1110 failed to run header_filter_by_lua*: header_filter_by_lua:2: loop or previous error loading module 'ngx.semaphore'" (req 0) stack traceback:
[C]: in function 'require'
header_filter_by_lua:2: in main chunk, client: 127.0.0.1, server: localhost, request: "GET /test HTTP/1.1", subrequest: "/sem_post", host: "localhost"
2020/10/26 12:01:50 [debug] 14469\#0: *1110 lua exit with code 200
2020/10/26 12:01:50 [debug] 14469\#0: *1110 lua resume returned 1
2020/10/26 12:01:50 [debug] 14469\#0: *1110 lua thread yielded
2020/10/26 12:01:50 [debug] 14469\#0: *1110 lua thread aborting request with status 200
2020/10/26 12:01:50 [debug] 14469\#0: *1110 lua request cleanup: forcible=0
2020/10/26 12:01:50 [debug] 14469\#0: *1110 lua sending last buf of the response body
'
semaphore.t TEST 21: semaphore post in header_filter_by_lua (subrequest) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:01:50 [error] 14469\#0: *1111 lua entry thread aborted: runtime error: content_by_lua(nginx.conf:72):2: loop or previous error loading module 'ngx.semaphore'" (req 1) stack traceback:
coroutine 0:
[C]: in function 'require'
content_by_lua(nginx.conf:72):2: in main chunk, client: 127.0.0.1, server: localhost, request: "GET /test HTTP/1.1", subrequest: "/sem_wait", host: "localhost"
2020/10/26 12:01:50 [debug] 14469\#0: *1111 lua request cleanup: forcible=0
2020/10/26 12:01:50 [debug] 14469\#0: *1111 http finalize request: 500, "/sem_wait?" a:0, c:3
2020/10/26 12:01:50 [debug] 14469\#0: *1111 lua run post subrequest handler, rc:500 c:3
2020/10/26 12:01:50 [debug] 14469\#0: *1111 lua restoring write event handler
2020/10/26 12:01:50 [debug] 14469\#0: *1111 malloc: 051B6718:8
'
semaphore.t TEST 21: semaphore post in header_filter_by_lua (subrequest) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:01:50 [error] 14469\#0: *1111 failed to run header_filter_by_lua*: header_filter_by_lua:2: loop or previous error loading module 'ngx.semaphore'" (req 1) stack traceback:
[C]: in function 'require'
header_filter_by_lua:2: in main chunk, client: 127.0.0.1, server: localhost, request: "GET /test HTTP/1.1", subrequest: "/sem_post", host: "localhost"
2020/10/26 12:01:50 [debug] 14469\#0: *1111 lua exit with code 200
2020/10/26 12:01:50 [debug] 14469\#0: *1111 lua resume returned 1
2020/10/26 12:01:50 [debug] 14469\#0: *1111 lua thread yielded
2020/10/26 12:01:50 [debug] 14469\#0: *1111 lua thread aborting request with status 200
2020/10/26 12:01:50 [debug] 14469\#0: *1111 lua request cleanup: forcible=0
2020/10/26 12:01:50 [debug] 14469\#0: *1111 lua sending last buf of the response body
'
semaphore.t TEST 19: semaphore wait post in rewrite_by_lua - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:01:53 [error] 14499\#0: *1136 lua entry thread aborted: runtime error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
coroutine 0:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/ngx/semaphore.lua:7: in main chunk
[C]: in function 'require'
rewrite_by_lua(nginx.conf:65):2: in main chunk, client: 127.0.0.1, server: localhost, request: "GET /test HTTP/1.1", host: "localhost"
2020/10/26 12:01:53 [debug] 14499\#0: *1136 lua request cleanup: forcible=0
'
semaphore.t TEST 19: semaphore wait post in rewrite_by_lua - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:01:53 [error] 14499\#0: *1137 lua entry thread aborted: runtime error: rewrite_by_lua(nginx.conf:65):2: loop or previous error loading module 'ngx.semaphore'" (req 1) stack traceback:
coroutine 0:
[C]: in function 'require'
rewrite_by_lua(nginx.conf:65):2: in main chunk, client: 127.0.0.1, server: localhost, request: "GET /test HTTP/1.1", host: "localhost"
2020/10/26 12:01:53 [debug] 14499\#0: *1137 lua request cleanup: forcible=0
2020/10/26 12:01:53 [debug] 14499\#0: *1137 http finalize request: 500, "/test?" a:1, c:1
2020/10/26 12:01:53 [debug] 14499\#0: *1137 http special response: 500, "/test?"
2020/10/26 12:01:53 [debug] 14499\#0: *1137 http set discard body
2020/10/26 12:01:53 [debug] 14499\#0: *1137 lua capture header filter, uri "/test"
'
semaphore.t TEST 16: semaphore in ngx.timer (all allowed) - grep_error_log_out (req 0) @@ -1,2 +0,0 @@
-sem: timeout,
-sem: 1,
'
semaphore.t TEST 16: semaphore in ngx.timer (all allowed) - grep_error_log_out (req 1) @@ -1,2 +0,0 @@
-sem: timeout,
-sem: 1,
'
semaphore.t TEST 24: semaphore post in timer.at - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:01:59 [error] 14559\#0: *1190 lua entry thread aborted: runtime error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
coroutine 0:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/ngx/semaphore.lua:7: in main chunk
[C]: in function 'require'
content_by_lua(nginx.conf:52):2: in main chunk, client: 127.0.0.1, server: localhost, request: "GET /test HTTP/1.1", host: "localhost"
2020/10/26 12:01:59 [debug] 14559\#0: *1190 lua request cleanup: forcible=0
'
semaphore.t TEST 24: semaphore post in timer.at - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:01:59 [error] 14559\#0: *1191 lua entry thread aborted: runtime error: content_by_lua(nginx.conf:52):2: loop or previous error loading module 'ngx.semaphore'" (req 1) stack traceback:
coroutine 0:
[C]: in function 'require'
content_by_lua(nginx.conf:52):2: in main chunk, client: 127.0.0.1, server: localhost, request: "GET /test HTTP/1.1", host: "localhost"
2020/10/26 12:01:59 [debug] 14559\#0: *1191 lua request cleanup: forcible=0
2020/10/26 12:01:59 [debug] 14559\#0: *1191 http finalize request: 500, "/test?" a:1, c:1
2020/10/26 12:01:59 [debug] 14559\#0: *1191 http special response: 500, "/test?"
2020/10/26 12:01:59 [debug] 14559\#0: *1191 http set discard body
2020/10/26 12:01:59 [debug] 14559\#0: *1191 lua capture header filter, uri "/test"
'
semaphore.t TEST 23: semaphore post in set_by_lua - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:02:02 [error] 14589\#0: *1216 lua entry thread aborted: runtime error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
coroutine 0:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/ngx/semaphore.lua:7: in main chunk
[C]: in function 'require'
content_by_lua(nginx.conf:72):2: in main chunk, client: 127.0.0.1, server: localhost, request: "GET /test HTTP/1.1", subrequest: "/sem_wait", host: "localhost"
2020/10/26 12:02:02 [debug] 14589\#0: *1216 lua request cleanup: forcible=0
'
semaphore.t TEST 23: semaphore post in set_by_lua - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:02:02 [error] 14589\#0: *1216 failed to run set_by_lua*: set_by_lua:2: loop or previous error loading module 'ngx.semaphore'" (req 0) stack traceback:
[C]: in function 'require'
set_by_lua:2: in main chunk, client: 127.0.0.1, server: localhost, request: "GET /test HTTP/1.1", subrequest: "/sem_post", host: "localhost"
2020/10/26 12:02:02 [debug] 14589\#0: *1216 http finalize request: 500, "/sem_post?" a:0, c:2
2020/10/26 12:02:02 [debug] 14589\#0: *1216 lua run post subrequest handler, rc:500 c:2
2020/10/26 12:02:02 [debug] 14589\#0: *1216 lua restoring write event handler
2020/10/26 12:02:02 [debug] 14589\#0: *1216 malloc: 057D7CB0:8
2020/10/26 12:02:02 [debug] 14589\#0: *1216 malloc: 057D7CE8:8
2020/10/26 12:02:02 [debug] 14589\#0: *1216 lua capture header filter, uri "/sem_post"
'
semaphore.t TEST 23: semaphore post in set_by_lua - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:02:02 [error] 14589\#0: *1217 lua entry thread aborted: runtime error: content_by_lua(nginx.conf:72):2: loop or previous error loading module 'ngx.semaphore'" (req 1) stack traceback:
coroutine 0:
[C]: in function 'require'
content_by_lua(nginx.conf:72):2: in main chunk, client: 127.0.0.1, server: localhost, request: "GET /test HTTP/1.1", subrequest: "/sem_wait", host: "localhost"
2020/10/26 12:02:02 [debug] 14589\#0: *1217 lua request cleanup: forcible=0
2020/10/26 12:02:02 [debug] 14589\#0: *1217 http finalize request: 500, "/sem_wait?" a:0, c:3
2020/10/26 12:02:02 [debug] 14589\#0: *1217 lua run post subrequest handler, rc:500 c:3
2020/10/26 12:02:02 [debug] 14589\#0: *1217 lua restoring write event handler
2020/10/26 12:02:02 [debug] 14589\#0: *1217 malloc: 05B7CF78:8
'
semaphore.t TEST 23: semaphore post in set_by_lua - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:02:02 [error] 14589\#0: *1217 failed to run set_by_lua*: set_by_lua:2: loop or previous error loading module 'ngx.semaphore'" (req 1) stack traceback:
[C]: in function 'require'
set_by_lua:2: in main chunk, client: 127.0.0.1, server: localhost, request: "GET /test HTTP/1.1", subrequest: "/sem_post", host: "localhost"
2020/10/26 12:02:02 [debug] 14589\#0: *1217 http finalize request: 500, "/sem_post?" a:0, c:2
2020/10/26 12:02:02 [debug] 14589\#0: *1217 lua run post subrequest handler, rc:500 c:2
2020/10/26 12:02:02 [debug] 14589\#0: *1217 lua restoring write event handler
2020/10/26 12:02:02 [debug] 14589\#0: *1217 malloc: 05B7D268:8
2020/10/26 12:02:02 [debug] 14589\#0: *1217 malloc: 05B7D2A0:8
2020/10/26 12:02:02 [debug] 14589\#0: *1217 lua capture header filter, uri "/sem_post"
'
semaphore.t TEST 28: kill a thread that is waiting on another thread that is waiting on semaphore - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:02:04 [error] 14619\#0: *1242 lua entry thread aborted: runtime error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
coroutine 0:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/ngx/semaphore.lua:7: in main chunk
[C]: in function 'require'
content_by_lua(nginx.conf:77):2: in main chunk, client: 127.0.0.1, server: localhost, request: "GET /test HTTP/1.1", host: "localhost"
2020/10/26 12:02:04 [debug] 14619\#0: *1242 lua request cleanup: forcible=0
'
semaphore.t TEST 28: kill a thread that is waiting on another thread that is waiting on semaphore - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:02:05 [error] 14619\#0: *1243 lua entry thread aborted: runtime error: content_by_lua(nginx.conf:77):2: loop or previous error loading module 'ngx.semaphore'" (req 1) stack traceback:
coroutine 0:
[C]: in function 'require'
content_by_lua(nginx.conf:77):2: in main chunk, client: 127.0.0.1, server: localhost, request: "GET /test HTTP/1.1", host: "localhost"
2020/10/26 12:02:05 [debug] 14619\#0: *1243 lua request cleanup: forcible=0
2020/10/26 12:02:05 [debug] 14619\#0: *1243 http finalize request: 500, "/test?" a:1, c:1
2020/10/26 12:02:05 [debug] 14619\#0: *1243 http special response: 500, "/test?"
2020/10/26 12:02:05 [debug] 14619\#0: *1243 http set discard body
2020/10/26 12:02:05 [debug] 14619\#0: *1243 lua capture header filter, uri "/test"
'
semaphore.t TEST 1: basic semaphore in uthread - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:02:07 [error] 14649\#0: *1268 lua entry thread aborted: runtime error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
coroutine 0:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/ngx/semaphore.lua:7: in main chunk
[C]: in function 'require'
content_by_lua(nginx.conf:67):2: in main chunk, client: 127.0.0.1, server: localhost, request: "GET /test HTTP/1.1", host: "localhost"
2020/10/26 12:02:07 [debug] 14649\#0: *1268 lua request cleanup: forcible=0
'
semaphore.t TEST 1: basic semaphore in uthread - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:02:07 [error] 14649\#0: *1269 lua entry thread aborted: runtime error: content_by_lua(nginx.conf:67):2: loop or previous error loading module 'ngx.semaphore'" (req 1) stack traceback:
coroutine 0:
[C]: in function 'require'
content_by_lua(nginx.conf:67):2: in main chunk, client: 127.0.0.1, server: localhost, request: "GET /test HTTP/1.1", host: "localhost"
2020/10/26 12:02:07 [debug] 14649\#0: *1269 lua request cleanup: forcible=0
2020/10/26 12:02:07 [debug] 14649\#0: *1269 http finalize request: 500, "/test?" a:1, c:1
2020/10/26 12:02:07 [debug] 14649\#0: *1269 http special response: 500, "/test?"
2020/10/26 12:02:07 [debug] 14649\#0: *1269 http set discard body
2020/10/26 12:02:07 [debug] 14649\#0: *1269 lua capture header filter, uri "/test"
'
semaphore.t TEST 38: basic semaphore count - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:02:13 [error] 14709\#0: *1320 lua entry thread aborted: runtime error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
coroutine 0:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/ngx/semaphore.lua:7: in main chunk
[C]: in function 'require'
content_by_lua(nginx.conf:54):2: in main chunk, client: 127.0.0.1, server: localhost, request: "GET /test HTTP/1.1", host: "localhost"
2020/10/26 12:02:13 [debug] 14709\#0: *1320 lua request cleanup: forcible=0
'
semaphore.t TEST 38: basic semaphore count - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:02:13 [error] 14709\#0: *1321 lua entry thread aborted: runtime error: content_by_lua(nginx.conf:54):2: loop or previous error loading module 'ngx.semaphore'" (req 1) stack traceback:
coroutine 0:
[C]: in function 'require'
content_by_lua(nginx.conf:54):2: in main chunk, client: 127.0.0.1, server: localhost, request: "GET /test HTTP/1.1", host: "localhost"
2020/10/26 12:02:13 [debug] 14709\#0: *1321 lua request cleanup: forcible=0
2020/10/26 12:02:13 [debug] 14709\#0: *1321 http finalize request: 500, "/test?" a:1, c:1
2020/10/26 12:02:13 [debug] 14709\#0: *1321 http special response: 500, "/test?"
2020/10/26 12:02:13 [debug] 14709\#0: *1321 http set discard body
2020/10/26 12:02:13 [debug] 14709\#0: *1321 lua capture header filter, uri "/test"
'
semaphore.t TEST 39: basic semaphore count (negative number) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:02:15 [error] 14739\#0: *1346 lua entry thread aborted: runtime error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
coroutine 0:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/ngx/semaphore.lua:7: in main chunk
[C]: in function 'require'
content_by_lua(nginx.conf:54):2: in main chunk, client: 127.0.0.1, server: localhost, request: "GET /test HTTP/1.1", host: "localhost"
2020/10/26 12:02:15 [debug] 14739\#0: *1346 lua request cleanup: forcible=0
'
semaphore.t TEST 39: basic semaphore count (negative number) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:02:16 [error] 14739\#0: *1347 lua entry thread aborted: runtime error: content_by_lua(nginx.conf:54):2: loop or previous error loading module 'ngx.semaphore'" (req 1) stack traceback:
coroutine 0:
[C]: in function 'require'
content_by_lua(nginx.conf:54):2: in main chunk, client: 127.0.0.1, server: localhost, request: "GET /test HTTP/1.1", host: "localhost"
2020/10/26 12:02:16 [debug] 14739\#0: *1347 lua request cleanup: forcible=0
2020/10/26 12:02:16 [debug] 14739\#0: *1347 http finalize request: 500, "/test?" a:1, c:1
2020/10/26 12:02:16 [debug] 14739\#0: *1347 http special response: 500, "/test?"
2020/10/26 12:02:16 [debug] 14739\#0: *1347 http set discard body
2020/10/26 12:02:16 [debug] 14739\#0: *1347 lua capture header filter, uri "/test"
'
semaphore.t TEST 2: semaphore wait order - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:02:18 [error] 14769\#0: *1372 lua entry thread aborted: runtime error: ./lib/resty/core/base.lua:24: ngx_http_lua_module 0.10.18 required" (req 0) stack traceback:
coroutine 0:
[C]: in function 'error'
./lib/resty/core/base.lua:24: in main chunk
[C]: in function 'require'
./lib/ngx/semaphore.lua:7: in main chunk
[C]: in function 'require'
content_by_lua(nginx.conf:82):2: in main chunk, client: 127.0.0.1, server: localhost, request: "GET /test HTTP/1.1", host: "localhost"
2020/10/26 12:02:18 [debug] 14769\#0: *1372 lua request cleanup: forcible=0
'
semaphore.t TEST 2: semaphore wait order - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 12:02:18 [error] 14769\#0: *1373 lua entry thread aborted: runtime error: content_by_lua(nginx.conf:82):2: loop or previous error loading module 'ngx.semaphore'" (req 1) stack traceback:
coroutine 0:
[C]: in function 'require'
content_by_lua(nginx.conf:82):2: in main chunk, client: 127.0.0.1, server: localhost, request: "GET /test HTTP/1.1", host: "localhost"
2020/10/26 12:02:18 [debug] 14769\#0: *1373 lua request cleanup: forcible=0
2020/10/26 12:02:18 [debug] 14769\#0: *1373 http finalize request: 500, "/test?" a:1, c:1
2020/10/26 12:02:18 [debug] 14769\#0: *1373 http special response: 500, "/test?"
2020/10/26 12:02:18 [debug] 14769\#0: *1373 http set discard body
2020/10/26 12:02:18 [debug] 14769\#0: *1373 lua capture header filter, uri "/test"
'
shared.t TEST 3: shared.ttl returns error on not found key - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'failed to get ttl: not found
'
shared.t TEST 3: shared.ttl returns error on not found key - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'failed to get ttl: not found
'
shared.t TEST 11: shared.expire returns error on not found key - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'failed to set ttl: not found
'
shared.t TEST 11: shared.expire returns error on not found key - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'failed to set ttl: not found
'
shared.t TEST 4: shared.ttl returns key ttl for non-default (positive) ttl - response_body_like - response is expected () ''
doesn't match '(?^s:\A0.2
sleep for 0.1s...
0.\d*
\z)'
shdict.t TEST 2: get an nonexistent key - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-value type: nil
-value: nil
-flags: nil
'
shdict.t TEST 2: get an nonexistent key - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-value type: nil
-value: nil
-flags: nil
'
ssl-session-fetch.t TEST 1: get resume session id serialized - grep_error_log_out (req 1) ''
doesn't match '(?^s:ssl_session_fetch_by_lua_block:4: session id: [a-fA-f\d]+)'
ssl-session-fetch.t TEST 3: store new session, and resume it - grep_error_log_out (req 0) ''
doesn't match '(?^s:ssl_session_store_by_lua_block:5: session id: [a-fA-F\d]+)'
ssl-session-fetch.t TEST 3: store new session, and resume it - grep_error_log_out (req 1) ''
doesn't match '(?^s:ssl_session_fetch_by_lua_block:4: session id: [a-fA-F\d]+)'
ssl-session-fetch.t TEST 5: yield during doing handshake with client which uses low version OpenSSL - grep_error_log_out (req 0) ''
doesn't match '(?^s:^ssl_session_store_by_lua_block:\d+: session id: [a-fA-F\d]+$)'
ssl-session-fetch.t TEST 5: yield during doing handshake with client which uses low version OpenSSL - grep_error_log_out (req 1) ''
doesn't match '(?^s:^ssl_session_fetch_by_lua_block:\d+: session id: [a-fA-F\d]+
failed to resume session: failed to de-serialize session
ssl_session_store_by_lua_block:\d+: session id: [a-fA-F\d]+
$)'
ssl-session-fetch.t TEST 2: attempt to fetch new session in lua_ctx during resumption. - grep_error_log_out (req 1) got: ''
expected: 'get session error: bad session in lua context
'
ssl-session-fetch.t TEST 4: attempt to resume a corrupted session - grep_error_log_out (req 0) ''
doesn't match '(?^s:^ssl_session_store_by_lua_block:5: session id: [a-fA-F\d]+$)'
ssl-session-fetch.t TEST 4: attempt to resume a corrupted session - grep_error_log_out (req 1) ''
doesn't match '(?^s:^ssl_session_fetch_by_lua_block:4: session id: [a-fA-F\d]+
failed to resume session: failed to de-serialize session
ssl_session_store_by_lua_block:5: session id: [a-fA-F\d]+
$)'
ssl-session-store.t TEST 2: get new session id serialized - pattern "(?^s:ssl_session_store_by_lua_block:4: session id: [a-fA-f\d]+)" should match a line in error.log (req 0)
ssl-session-store.t TEST 2: get new session id serialized - pattern "(?^s:ssl_session_store_by_lua_block:4: session id: [a-fA-f\d]+)" should match a line in error.log (req 1)
ssl-session-store.t TEST 1: get new session serialized - pattern "(?^s:ssl_session_store_by_lua_block:4: session size: \d+)" should match a line in error.log (req 0)
ssl-session-store.t TEST 1: get new session serialized - pattern "(?^s:ssl_session_store_by_lua_block:4: session size: \d+)" should match a line in error.log (req 1)
ssl-session-store.t TEST 3: store the session via timer to memcached - pattern "(?^s:ssl_session_store_by_lua_block:32: session id: [a-fA-f\d]+)" should match a line in error.log (req 0)
ssl-session-store.t TEST 3: store the session via timer to memcached - pattern "(?^s:ssl_session_store_by_lua_block:34: session size: \d+)" should match a line in error.log (req 0)
ssl-session-store.t TEST 3: store the session via timer to memcached - pattern "(?^s:received memc reply: STORED)" should match a line in error.log (req 0)
ssl-session-store.t TEST 3: store the session via timer to memcached - pattern "(?^s:ssl_session_store_by_lua_block:32: session id: [a-fA-f\d]+)" should match a line in error.log (req 1)
ssl-session-store.t TEST 3: store the session via timer to memcached - pattern "(?^s:ssl_session_store_by_lua_block:34: session size: \d+)" should match a line in error.log (req 1)
ssl-session-store.t TEST 3: store the session via timer to memcached - pattern "(?^s:received memc reply: STORED)" should match a line in error.log (req 1)
ssl.t TEST 13: tls version - TLSv1.2 - pattern "got TLS1 version: TLSv1.2," should match a line in error.log (req 0)
ssl.t TEST 13: tls version - TLSv1.2 - pattern "got TLS1 version: TLSv1.2," should match a line in error.log (req 1)
ssl.t TEST 3: read SNI name via ssl.server_name() - pattern "read SNI name from Lua: test.com" should match a line in error.log (req 0)
ssl.t TEST 3: read SNI name via ssl.server_name() - pattern "read SNI name from Lua: test.com" should match a line in error.log (req 1)
ssl.t TEST 21: yield during doing handshake with client which uses low version OpenSSL - pattern "(?^:content_by_lua\(nginx\.conf:\d+\):\d+: CONNECTED)" should match a line in error.log (req 0)
ssl.t TEST 21: yield during doing handshake with client which uses low version OpenSSL - pattern "(?^:subject=/?C(?<eq>\s?=\s?)US(?<sep>/|,\s)ST\k<eq>California\k<sep>L\k<eq>San Francisco\k<sep>O\k<eq>OpenResty\k<sep>OU\k<eq>OpenResty\k<sep>CN\k<eq>test\.com\k<sep>emailAddress\k<eq>agentzh\@gmail\.com)" should match a line in error.log (req 0)
ssl.t TEST 21: yield during doing handshake with client which uses low version OpenSSL - pattern "(?^:content_by_lua\(nginx\.conf:\d+\):\d+: CONNECTED)" should match a line in error.log (req 1)
ssl.t TEST 21: yield during doing handshake with client which uses low version OpenSSL - pattern "(?^:subject=/?C(?<eq>\s?=\s?)US(?<sep>/|,\s)ST\k<eq>California\k<sep>L\k<eq>San Francisco\k<sep>O\k<eq>OpenResty\k<sep>OU\k<eq>OpenResty\k<sep>CN\k<eq>test\.com\k<sep>emailAddress\k<eq>agentzh\@gmail\.com)" should match a line in error.log (req 1)
ssl.t TEST 24: verify client without CA certificates - pattern "client certificate subject: emailAddress=agentzh@gmail.com,CN=test.com" should match a line in error.log (req 0)
ssl.t TEST 24: verify client without CA certificates - pattern "client certificate subject: emailAddress=agentzh@gmail.com,CN=test.com" should match a line in error.log (req 1)
ssl.t TEST 17: parse PEM cert and key to cdata (bad cert 0 in the chain) - pattern "(?^:\[error\] .*? failed to parse pem cert: PEM_read_bio_X509_AUX\(\) failed)" should match a line in error.log (req 0)
ssl.t TEST 17: parse PEM cert and key to cdata (bad cert 0 in the chain) - pattern "(?^:\[error\] .*? failed to parse pem cert: PEM_read_bio_X509_AUX\(\) failed)" should match a line in error.log (req 1)
ssl.t TEST 25: verify client but client provides no certificate - pattern "client certificate subject: nil" should match a line in error.log (req 0)
ssl.t TEST 25: verify client but client provides no certificate - pattern "client certificate subject: nil" should match a line in error.log (req 1)
ssl.t TEST 27: read server port via ssl.server_port() with unix domain socket - pattern "read server port from Lua: nilunix domain has no port" should match a line in error.log (req 0)
ssl.t TEST 27: read server port via ssl.server_port() with unix domain socket - pattern "read server port from Lua: nilunix domain has no port" should match a line in error.log (req 1)
ssl.t TEST 11: tls version - TLSv1 - pattern "got TLS1 version: TLSv1," should match a line in error.log (req 0)
ssl.t TEST 11: tls version - TLSv1 - pattern "got TLS1 version: TLSv1," should match a line in error.log (req 1)
ssl.t TEST 6: read raw server addr via ssl.raw_server_addr() (IPv4) - pattern "Using IPv4 address: 127.0.0.1" should match a line in error.log (req 0)
ssl.t TEST 6: read raw server addr via ssl.raw_server_addr() (IPv4) - pattern "Using IPv4 address: 127.0.0.1" should match a line in error.log (req 1)
ssl.t TEST 10: tls version - SSLv3 - pattern "got TLS1 version: SSLv3," should match a line in error.log (req 0)
ssl.t TEST 10: tls version - SSLv3 - pattern "got TLS1 version: SSLv3," 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 "(?^:Using unix socket file .*?nginx\.sock)" 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 "(?^:Using unix socket file .*?nginx\.sock)" should match a line in error.log (req 1)
ssl.t TEST 7: read raw server addr via ssl.raw_server_addr() (IPv6) - pattern "Using IPv6 address: 0.0.0.1" should match a line in error.log (req 0)
ssl.t TEST 7: read raw server addr via ssl.raw_server_addr() (IPv6) - pattern "Using IPv6 address: 0.0.0.1" should match a line in error.log (req 1)
ssl.t TEST 23: verify client with CA certificates - pattern "client certificate subject: emailAddress=agentzh@gmail.com,CN=test.com" should match a line in error.log (req 0)
ssl.t TEST 23: verify client with CA certificates - pattern "client certificate subject: emailAddress=agentzh@gmail.com,CN=test.com" should match a line in error.log (req 1)
ssl.t TEST 19: parse PEM cert and key to cdata (bad priv key) - pattern "(?^:\[error\] .*? failed to parse pem key: PEM_read_bio_PrivateKey\(\) failed)" should match a line in error.log (req 0)
ssl.t TEST 19: parse PEM cert and key to cdata (bad priv key) - pattern "(?^:\[error\] .*? failed to parse pem key: PEM_read_bio_PrivateKey\(\) failed)" should match a line in error.log (req 1)
ssl.t TEST 26: read server port via ssl.server_port() with ipv4 - pattern "read server port from Lua: 12345" should match a line in error.log (req 0)
ssl.t TEST 26: read server port via ssl.server_port() with ipv4 - pattern "read server port from Lua: 12345" should match a line in error.log (req 1)
ssl.t TEST 4: read SNI name via ssl.server_name() when no SNI name specified - pattern "read SNI name from Lua: nil, type: nil" should match a line in error.log (req 0)
ssl.t TEST 4: read SNI name via ssl.server_name() when no SNI name specified - pattern "read SNI name from Lua: nil, type: nil" should match a line in error.log (req 1)
ssl.t TEST 20: read client addr via ssl.raw_client_addr() - pattern "client ip: 127.0.0.1" should match a line in error.log (req 0)
ssl.t TEST 20: read client addr via ssl.raw_client_addr() - pattern "client ip: 127.0.0.1" should match a line in error.log (req 1)
ssl.t TEST 12: tls version - TLSv1.1 - pattern "got TLS1 version: TLSv1.1," should match a line in error.log (req 0)
ssl.t TEST 12: tls version - TLSv1.1 - pattern "got TLS1 version: TLSv1.1," should match a line in error.log (req 1)
ssl.t TEST 14: ngx.semaphore in ssl_certificate_by_lua* - pattern "ssl cert by lua done" should match a line in error.log (req 0)
ssl.t TEST 14: ngx.semaphore in ssl_certificate_by_lua* - pattern "ssl cert by lua done" should match a line in error.log (req 1)
ssl.t TEST 18: parse PEM cert and key to cdata (bad cert 2 in the chain) - pattern "(?^:\[error\] .*? failed to parse pem cert: PEM_read_bio_X509\(\) failed)" should match a line in error.log (req 0)
ssl.t TEST 18: parse PEM cert and key to cdata (bad cert 2 in the chain) - pattern "(?^:\[error\] .*? failed to parse pem cert: PEM_read_bio_X509\(\) failed)" should match a line in error.log (req 1)
ssl.t TEST 1: clear certs - pattern "sslv3 alert handshake failure" should match a line in error.log (req 0)
ssl.t TEST 1: clear certs - pattern "sslv3 alert handshake failure" should match a line in error.log (req 1)
stream/errlog.t TEST 31: ringbuf sentinel bug2 - response_body_like - response is expected () ''
doesn't match '(?^s:\A(?:log lines: #18
log lines: #1
|log lines: #18
log lines: #2
)\z)'
stream/errlog.t TEST 19: fetch a few and generate a few, then fetch again (overflown again) - response_body_like - response is expected () ''
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 () ''
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 3: client connected info - grep_error_log_out (req 0) ''
doesn't match '(?^:^client .*? connected to .*?
capture log line:1
$)'
stream/errlog.t TEST 3: client connected info - grep_error_log_out (req 1) ''
doesn't match '(?^:^client .*? connected to .*?
capture log line:2
$)'
stream/errlog.t TEST 20: fetch a few and generate a few, then fetch again (not overflown again) - response_body_like - response is expected () ''
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 () ''
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 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 30: ringbuf sentinel bug1 - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-log lines: \#2
-AAA
-aaa
'
stream/errlog.t TEST 30: ringbuf sentinel bug1 - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-log lines: \#2
-AAA
-aaa
'
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 16: kill a light thread that is waiting on a semaphore (no resource) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:15:22 [error] 20764\#0: *3 lua entry thread aborted: runtime error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 0) stack traceback:
coroutine 0:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/ngx/semaphore.lua:7: in main chunk
[C]: in function 'require'
content_by_lua(nginx.conf:39):2: in main chunk, client: 127.0.0.1, server: 0.0.0.0:1985
2020/10/26 13:15:22 [debug] 20764\#0: *3 lua request cleanup: forcible=0
'
stream/semaphore.t TEST 16: kill a light thread that is waiting on a semaphore (no resource) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:15:23 [error] 20764\#0: *6 lua entry thread aborted: runtime error: content_by_lua(nginx.conf:39):2: loop or previous error loading module 'ngx.semaphore'" (req 1) stack traceback:
coroutine 0:
[C]: in function 'require'
content_by_lua(nginx.conf:39):2: in main chunk, client: 127.0.0.1, server: 0.0.0.0:1985
2020/10/26 13:15:23 [debug] 20764\#0: *6 lua request cleanup: forcible=0
2020/10/26 13:15:23 [debug] 20764\#0: *6 finalize stream request: 500
2020/10/26 13:15:23 [debug] 20764\#0: *6 finalize stream session: 500
2020/10/26 13:15:23 [debug] 20764\#0: *6 stream log handler
2020/10/26 13:15:23 [debug] 20764\#0: *6 close stream connection: 14
'
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 13: semaphore wait post in preread_by_lua - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:15:31 [error] 20835\#0: *94 lua entry thread aborted: runtime error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 0) stack traceback:
coroutine 0:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/ngx/semaphore.lua:7: in main chunk
[C]: in function 'require'
preread_by_lua(nginx.conf:46):2: in main chunk while prereading client data, client: 127.0.0.1, server: 0.0.0.0:1985
2020/10/26 13:15:31 [debug] 20835\#0: *94 lua request cleanup: forcible=0
'
stream/semaphore.t TEST 13: semaphore wait post in preread_by_lua - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:15:31 [error] 20835\#0: *97 lua entry thread aborted: runtime error: preread_by_lua(nginx.conf:46):2: loop or previous error loading module 'ngx.semaphore'" (req 1) stack traceback:
coroutine 0:
[C]: in function 'require'
preread_by_lua(nginx.conf:46):2: in main chunk while prereading client data, client: 127.0.0.1, server: 0.0.0.0:1985
2020/10/26 13:15:31 [debug] 20835\#0: *97 lua request cleanup: forcible=0
2020/10/26 13:15:31 [debug] 20835\#0: *97 preread run thread returned 500
2020/10/26 13:15:31 [debug] 20835\#0: *97 finalize stream request: 500
2020/10/26 13:15:31 [debug] 20835\#0: *97 finalize stream session: 500
2020/10/26 13:15:31 [debug] 20835\#0: *97 stream log handler
'
stream/semaphore.t TEST 6: semaphore in init_worker_by_lua (wait is not allowed) - grep_error_log_out (req 0) @@ -1,2 +0,0 @@
-sem count: 1,
-sem wait: API disabled in the context of init_worker_by_lua*,
'
stream/semaphore.t TEST 7: semaphore in init_worker_by_lua (new and post) - grep_error_log_out (req 0) got: ''
expected: 'sem count: 2,
'
stream/semaphore.t TEST 7: semaphore in init_worker_by_lua (new and post) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:15:34 [error] 20895\#0: init_worker_by_lua error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 0) stack traceback:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/ngx/semaphore.lua:7: in main chunk
[C]: in function 'require'
init_worker_by_lua:2: in main chunk
2020/10/26 13:15:34 [debug] 20895\#0: run cleanup: 05681830
2020/10/26 13:15:34 [debug] 20895\#0: free: 05559CD8, unused: 0
'
stream/semaphore.t TEST 7: semaphore in init_worker_by_lua (new and post) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:15:37 [error] 20895\#0: *156 lua entry thread aborted: runtime error: content_by_lua(nginx.conf:44):3: attempt to index local 'sem' (a nil value)" (req 0) stack traceback:
coroutine 0:
content_by_lua(nginx.conf:44): in main chunk, client: 127.0.0.1, server: 0.0.0.0:1985
2020/10/26 13:15:37 [debug] 20895\#0: *156 lua request cleanup: forcible=0
2020/10/26 13:15:37 [debug] 20895\#0: *156 finalize stream request: 500
2020/10/26 13:15:37 [debug] 20895\#0: *156 finalize stream session: 500
2020/10/26 13:15:37 [debug] 20895\#0: *156 stream log handler
2020/10/26 13:15:37 [debug] 20895\#0: *156 close stream connection: 6
2020/10/26 13:15:37 [debug] 20895\#0: *156 reusable connection: 0
'
stream/semaphore.t TEST 7: semaphore in init_worker_by_lua (new and post) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:15:37 [error] 20895\#0: *159 lua entry thread aborted: runtime error: content_by_lua(nginx.conf:44):3: attempt to index local 'sem' (a nil value)" (req 1) stack traceback:
coroutine 0:
content_by_lua(nginx.conf:44): in main chunk, client: 127.0.0.1, server: 0.0.0.0:1985
2020/10/26 13:15:37 [debug] 20895\#0: *159 lua request cleanup: forcible=0
2020/10/26 13:15:37 [debug] 20895\#0: *159 finalize stream request: 500
2020/10/26 13:15:37 [debug] 20895\#0: *159 finalize stream session: 500
2020/10/26 13:15:37 [debug] 20895\#0: *159 stream log handler
2020/10/26 13:15:37 [debug] 20895\#0: *159 close stream connection: 6
2020/10/26 13:15:37 [debug] 20895\#0: *159 reusable connection: 0
'
stream/semaphore.t TEST 20: main thread wait a light thread that is waiting on a semaphore - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:15:42 [error] 20955\#0: *216 lua entry thread aborted: runtime error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 0) stack traceback:
coroutine 0:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/ngx/semaphore.lua:7: in main chunk
[C]: in function 'require'
content_by_lua(nginx.conf:38):2: in main chunk, client: 127.0.0.1, server: 0.0.0.0:1985
2020/10/26 13:15:42 [debug] 20955\#0: *216 lua request cleanup: forcible=0
'
stream/semaphore.t TEST 20: main thread wait a light thread that is waiting on a semaphore - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:15:43 [error] 20955\#0: *219 lua entry thread aborted: runtime error: content_by_lua(nginx.conf:38):2: loop or previous error loading module 'ngx.semaphore'" (req 1) stack traceback:
coroutine 0:
[C]: in function 'require'
content_by_lua(nginx.conf:38):2: in main chunk, client: 127.0.0.1, server: 0.0.0.0:1985
2020/10/26 13:15:43 [debug] 20955\#0: *219 lua request cleanup: forcible=0
2020/10/26 13:15:43 [debug] 20955\#0: *219 finalize stream request: 500
2020/10/26 13:15:43 [debug] 20955\#0: *219 finalize stream session: 500
2020/10/26 13:15:43 [debug] 20955\#0: *219 stream log handler
2020/10/26 13:15:43 [debug] 20955\#0: *219 close stream connection: 6
'
stream/semaphore.t TEST 2: semaphore wait order - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:15:48 [error] 21015\#0: *276 lua entry thread aborted: runtime error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 0) stack traceback:
coroutine 0:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/ngx/semaphore.lua:7: in main chunk
[C]: in function 'require'
content_by_lua(nginx.conf:63):2: in main chunk, client: 127.0.0.1, server: 0.0.0.0:1985
2020/10/26 13:15:48 [debug] 21015\#0: *276 lua request cleanup: forcible=0
'
stream/semaphore.t TEST 2: semaphore wait order - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:15:48 [error] 21015\#0: *279 lua entry thread aborted: runtime error: content_by_lua(nginx.conf:63):2: loop or previous error loading module 'ngx.semaphore'" (req 1) stack traceback:
coroutine 0:
[C]: in function 'require'
content_by_lua(nginx.conf:63):2: in main chunk, client: 127.0.0.1, server: 0.0.0.0:1985
2020/10/26 13:15:48 [debug] 21015\#0: *279 lua request cleanup: forcible=0
2020/10/26 13:15:48 [debug] 21015\#0: *279 finalize stream request: 500
2020/10/26 13:15:48 [debug] 21015\#0: *279 finalize stream session: 500
2020/10/26 13:15:48 [debug] 21015\#0: *279 stream log handler
2020/10/26 13:15:48 [debug] 21015\#0: *279 close stream connection: 6
'
stream/semaphore.t TEST 1: basic semaphore in uthread - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:15:51 [error] 21045\#0: *306 lua entry thread aborted: runtime error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 0) stack traceback:
coroutine 0:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/ngx/semaphore.lua:7: in main chunk
[C]: in function 'require'
content_by_lua(nginx.conf:48):2: in main chunk, client: 127.0.0.1, server: 0.0.0.0:1985
2020/10/26 13:15:51 [debug] 21045\#0: *306 lua request cleanup: forcible=0
'
stream/semaphore.t TEST 1: basic semaphore in uthread - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:15:51 [error] 21045\#0: *309 lua entry thread aborted: runtime error: content_by_lua(nginx.conf:48):2: loop or previous error loading module 'ngx.semaphore'" (req 1) stack traceback:
coroutine 0:
[C]: in function 'require'
content_by_lua(nginx.conf:48):2: in main chunk, client: 127.0.0.1, server: 0.0.0.0:1985
2020/10/26 13:15:51 [debug] 21045\#0: *309 lua request cleanup: forcible=0
2020/10/26 13:15:51 [debug] 21045\#0: *309 finalize stream request: 500
2020/10/26 13:15:51 [debug] 21045\#0: *309 finalize stream session: 500
2020/10/26 13:15:51 [debug] 21045\#0: *309 stream log handler
2020/10/26 13:15:51 [debug] 21045\#0: *309 close stream connection: 9
'
stream/semaphore.t TEST 15: two thread wait for each other - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:15:54 [error] 21075\#0: *336 lua entry thread aborted: runtime error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 0) stack traceback:
coroutine 0:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/ngx/semaphore.lua:7: in main chunk
[C]: in function 'require'
content_by_lua(nginx.conf:55):2: in main chunk, client: 127.0.0.1, server: 0.0.0.0:1985
2020/10/26 13:15:54 [debug] 21075\#0: *336 lua request cleanup: forcible=0
'
stream/semaphore.t TEST 15: two thread wait for each other - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:15:54 [error] 21075\#0: *339 lua entry thread aborted: runtime error: content_by_lua(nginx.conf:55):2: loop or previous error loading module 'ngx.semaphore'" (req 1) stack traceback:
coroutine 0:
[C]: in function 'require'
content_by_lua(nginx.conf:55):2: in main chunk, client: 127.0.0.1, server: 0.0.0.0:1985
2020/10/26 13:15:54 [debug] 21075\#0: *339 lua request cleanup: forcible=0
2020/10/26 13:15:54 [debug] 21075\#0: *339 finalize stream request: 500
2020/10/26 13:15:54 [debug] 21075\#0: *339 finalize stream session: 500
2020/10/26 13:15:54 [debug] 21075\#0: *339 stream log handler
2020/10/26 13:15:54 [debug] 21075\#0: *339 close stream connection: 6
'
stream/semaphore.t TEST 29: basic semaphore count (negative number) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:15:57 [error] 21105\#0: *366 lua entry thread aborted: runtime error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 0) stack traceback:
coroutine 0:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/ngx/semaphore.lua:7: in main chunk
[C]: in function 'require'
content_by_lua(nginx.conf:35):2: in main chunk, client: 127.0.0.1, server: 0.0.0.0:1985
2020/10/26 13:15:57 [debug] 21105\#0: *366 lua request cleanup: forcible=0
'
stream/semaphore.t TEST 29: basic semaphore count (negative number) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:15:57 [error] 21105\#0: *369 lua entry thread aborted: runtime error: content_by_lua(nginx.conf:35):2: loop or previous error loading module 'ngx.semaphore'" (req 1) stack traceback:
coroutine 0:
[C]: in function 'require'
content_by_lua(nginx.conf:35):2: in main chunk, client: 127.0.0.1, server: 0.0.0.0:1985
2020/10/26 13:15:57 [debug] 21105\#0: *369 lua request cleanup: forcible=0
2020/10/26 13:15:57 [debug] 21105\#0: *369 finalize stream request: 500
2020/10/26 13:15:57 [debug] 21105\#0: *369 finalize stream session: 500
2020/10/26 13:15:57 [debug] 21105\#0: *369 stream log handler
2020/10/26 13:15:57 [debug] 21105\#0: *369 close stream connection: 9
'
stream/semaphore.t TEST 11: semaphore in ngx.timer (all allowed) - grep_error_log_out (req 0) @@ -1,2 +0,0 @@
-sem: timeout,
-sem: 1,
'
stream/semaphore.t TEST 11: semaphore in ngx.timer (all allowed) - grep_error_log_out (req 1) @@ -1,2 +0,0 @@
-sem: timeout,
-sem: 1,
'
stream/semaphore.t TEST 18: kill a thread that is waiting on another thread that is waiting on semaphore - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:16:03 [error] 21165\#0: *428 lua entry thread aborted: runtime error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 0) stack traceback:
coroutine 0:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/ngx/semaphore.lua:7: in main chunk
[C]: in function 'require'
content_by_lua(nginx.conf:58):2: in main chunk, client: 127.0.0.1, server: 0.0.0.0:1985
2020/10/26 13:16:03 [debug] 21165\#0: *428 lua request cleanup: forcible=0
'
stream/semaphore.t TEST 18: kill a thread that is waiting on another thread that is waiting on semaphore - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:16:03 [error] 21165\#0: *431 lua entry thread aborted: runtime error: content_by_lua(nginx.conf:58):2: loop or previous error loading module 'ngx.semaphore'" (req 1) stack traceback:
coroutine 0:
[C]: in function 'require'
content_by_lua(nginx.conf:58):2: in main chunk, client: 127.0.0.1, server: 0.0.0.0:1985
2020/10/26 13:16:03 [debug] 21165\#0: *431 lua request cleanup: forcible=0
2020/10/26 13:16:03 [debug] 21165\#0: *431 finalize stream request: 500
2020/10/26 13:16:03 [debug] 21165\#0: *431 finalize stream session: 500
2020/10/26 13:16:03 [debug] 21165\#0: *431 stream log handler
2020/10/26 13:16:03 [debug] 21165\#0: *431 close stream connection: 9
'
stream/semaphore.t TEST 8: semaphore in preread_by_lua (all allowed) - grep_error_log_out (req 0) @@ -1,2 +0,0 @@
-sem: timeout while prereading client data,
-sem: 1 while prereading client data,
'
stream/semaphore.t TEST 8: semaphore in preread_by_lua (all allowed) - grep_error_log_out (req 1) @@ -1,2 +0,0 @@
-sem: timeout while prereading client data,
-sem: 1 while prereading client data,
'
stream/semaphore.t TEST 10: semaphore in log_by_lua (wait not allowed) - grep_error_log_out (req 0) @@ -1,2 +0,0 @@
-sem: 1 while returning text,
-sem: API disabled in the context of log_by_lua* while returning text,
'
stream/semaphore.t TEST 10: semaphore in log_by_lua (wait not allowed) - grep_error_log_out (req 1) @@ -1,2 +0,0 @@
-sem: 1 while returning text,
-sem: API disabled in the context of log_by_lua* while returning text,
'
stream/semaphore.t TEST 12: semaphore post in all phase (in a request) - grep_error_log_out (req 0) got: ''
expected: 'sem: 3 times,
'
stream/semaphore.t TEST 12: semaphore post in all phase (in a request) - grep_error_log_out (req 1) got: ''
expected: 'sem: 3 times,
'
stream/semaphore.t TEST 28: basic semaphore count - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:16:15 [error] 21285\#0: *549 lua entry thread aborted: runtime error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 0) stack traceback:
coroutine 0:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/ngx/semaphore.lua:7: in main chunk
[C]: in function 'require'
content_by_lua(nginx.conf:35):2: in main chunk, client: 127.0.0.1, server: 0.0.0.0:1985
2020/10/26 13:16:15 [debug] 21285\#0: *549 lua request cleanup: forcible=0
'
stream/semaphore.t TEST 28: basic semaphore count - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:16:15 [error] 21285\#0: *552 lua entry thread aborted: runtime error: content_by_lua(nginx.conf:35):2: loop or previous error loading module 'ngx.semaphore'" (req 1) stack traceback:
coroutine 0:
[C]: in function 'require'
content_by_lua(nginx.conf:35):2: in main chunk, client: 127.0.0.1, server: 0.0.0.0:1985
2020/10/26 13:16:15 [debug] 21285\#0: *552 lua request cleanup: forcible=0
2020/10/26 13:16:15 [debug] 21285\#0: *552 finalize stream request: 500
2020/10/26 13:16:15 [debug] 21285\#0: *552 finalize stream session: 500
2020/10/26 13:16:15 [debug] 21285\#0: *552 stream log handler
2020/10/26 13:16:15 [debug] 21285\#0: *552 close stream connection: 9
'
stream/semaphore.t TEST 17: kill a light thread that is waiting on a semaphore (after post) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:16:18 [error] 21315\#0: *579 lua entry thread aborted: runtime error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 0) stack traceback:
coroutine 0:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/ngx/semaphore.lua:7: in main chunk
[C]: in function 'require'
content_by_lua(nginx.conf:47):2: in main chunk, client: 127.0.0.1, server: 0.0.0.0:1985
2020/10/26 13:16:18 [debug] 21315\#0: *579 lua request cleanup: forcible=0
'
stream/semaphore.t TEST 17: kill a light thread that is waiting on a semaphore (after post) - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:16:18 [error] 21315\#0: *582 lua entry thread aborted: runtime error: content_by_lua(nginx.conf:47):2: loop or previous error loading module 'ngx.semaphore'" (req 1) stack traceback:
coroutine 0:
[C]: in function 'require'
content_by_lua(nginx.conf:47):2: in main chunk, client: 127.0.0.1, server: 0.0.0.0:1985
2020/10/26 13:16:18 [debug] 21315\#0: *582 lua request cleanup: forcible=0
2020/10/26 13:16:18 [debug] 21315\#0: *582 finalize stream request: 500
2020/10/26 13:16:18 [debug] 21315\#0: *582 finalize stream session: 500
2020/10/26 13:16:18 [debug] 21315\#0: *582 stream log handler
2020/10/26 13:16:18 [debug] 21315\#0: *582 close stream connection: 6
'
stream/semaphore.t TEST 4: semaphore.new in init_by_lua* (w/o shdict) - grep_error_log_out (req 0) ''
doesn't match '(?^:\[lua\] init_by_lua:\d+: sema created: table: 0x[a-f0-9]+)'
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 3: semaphore wait time=0 - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:19:54 [error] 21610\#0: *875 lua entry thread aborted: runtime error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 0) stack traceback:
coroutine 0:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/ngx/semaphore.lua:7: in main chunk
[C]: in function 'require'
content_by_lua(nginx.conf:66):2: in main chunk, client: 127.0.0.1, server: 0.0.0.0:1985
2020/10/26 13:19:54 [debug] 21610\#0: *875 lua request cleanup: forcible=0
'
stream/semaphore.t TEST 3: semaphore wait time=0 - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:19:54 [error] 21610\#0: *878 lua entry thread aborted: runtime error: content_by_lua(nginx.conf:66):2: loop or previous error loading module 'ngx.semaphore'" (req 1) stack traceback:
coroutine 0:
[C]: in function 'require'
content_by_lua(nginx.conf:66):2: in main chunk, client: 127.0.0.1, server: 0.0.0.0:1985
2020/10/26 13:19:54 [debug] 21610\#0: *878 lua request cleanup: forcible=0
2020/10/26 13:19:54 [debug] 21610\#0: *878 finalize stream request: 500
2020/10/26 13:19:54 [debug] 21610\#0: *878 finalize stream session: 500
2020/10/26 13:19:54 [debug] 21610\#0: *878 stream log handler
2020/10/26 13:19:54 [debug] 21610\#0: *878 close stream connection: 6
'
stream/semaphore.t TEST 22: semaphore wait time is zero - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:19:57 [error] 21640\#0: *905 lua entry thread aborted: runtime error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 0) stack traceback:
coroutine 0:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/ngx/semaphore.lua:7: in main chunk
[C]: in function 'require'
content_by_lua(nginx.conf:29):2: in main chunk, client: 127.0.0.1, server: 0.0.0.0:1985
2020/10/26 13:19:57 [debug] 21640\#0: *905 lua request cleanup: forcible=0
'
stream/semaphore.t TEST 22: semaphore wait time is zero - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:19:57 [error] 21640\#0: *908 lua entry thread aborted: runtime error: content_by_lua(nginx.conf:29):2: loop or previous error loading module 'ngx.semaphore'" (req 1) stack traceback:
coroutine 0:
[C]: in function 'require'
content_by_lua(nginx.conf:29):2: in main chunk, client: 127.0.0.1, server: 0.0.0.0:1985
2020/10/26 13:19:57 [debug] 21640\#0: *908 lua request cleanup: forcible=0
2020/10/26 13:19:57 [debug] 21640\#0: *908 finalize stream request: 500
2020/10/26 13:19:57 [debug] 21640\#0: *908 finalize stream session: 500
2020/10/26 13:19:57 [debug] 21640\#0: *908 stream log handler
2020/10/26 13:19:57 [debug] 21640\#0: *908 close stream connection: 9
'
stream/semaphore.t TEST 30: bugfix: semaphore instance can't be garbage collected when someone is waiting on it - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:20:00 [error] 21670\#0: *935 lua entry thread aborted: runtime error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 0) stack traceback:
coroutine 0:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/ngx/semaphore.lua:7: in main chunk
[C]: in function 'require'
content_by_lua(nginx.conf:47):2: in main chunk, client: 127.0.0.1, server: 0.0.0.0:1985
2020/10/26 13:20:00 [debug] 21670\#0: *935 lua request cleanup: forcible=0
'
stream/semaphore.t TEST 30: bugfix: semaphore instance can't be garbage collected when someone is waiting on it - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:20:00 [error] 21670\#0: *938 lua entry thread aborted: runtime error: content_by_lua(nginx.conf:47):2: loop or previous error loading module 'ngx.semaphore'" (req 1) stack traceback:
coroutine 0:
[C]: in function 'require'
content_by_lua(nginx.conf:47):2: in main chunk, client: 127.0.0.1, server: 0.0.0.0:1985
2020/10/26 13:20:00 [debug] 21670\#0: *938 lua request cleanup: forcible=0
2020/10/26 13:20:00 [debug] 21670\#0: *938 finalize stream request: 500
2020/10/26 13:20:00 [debug] 21670\#0: *938 finalize stream session: 500
2020/10/26 13:20:00 [debug] 21670\#0: *938 stream log handler
2020/10/26 13:20:00 [debug] 21670\#0: *938 close stream connection: 6
'
stream/semaphore.t TEST 5: semaphore.new in init_by_lua* (with shdict) - grep_error_log_out (req 0) ''
doesn't match '(?^:\[lua\] init_by_lua:\d+: sema created: table: 0x[a-f0-9]+)'
stream/semaphore.t TEST 21: multi wait and mult post with one semaphore - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:23:31 [error] 21905\#0: *1171 lua entry thread aborted: runtime error: ./lib/resty/core/base.lua:32: ngx_stream_lua_module 0.0.9 required" (req 0) stack traceback:
coroutine 0:
[C]: in function 'error'
./lib/resty/core/base.lua:32: in main chunk
[C]: in function 'require'
./lib/ngx/semaphore.lua:7: in main chunk
[C]: in function 'require'
content_by_lua(nginx.conf:54):2: in main chunk, client: 127.0.0.1, server: 0.0.0.0:1985
2020/10/26 13:23:31 [debug] 21905\#0: *1171 lua request cleanup: forcible=0
'
stream/semaphore.t TEST 21: multi wait and mult post with one semaphore - pattern "[error]" should not match any line in error.log but matches line "2020/10/26 13:23:31 [error] 21905\#0: *1174 lua entry thread aborted: runtime error: content_by_lua(nginx.conf:54):2: loop or previous error loading module 'ngx.semaphore'" (req 1) stack traceback:
coroutine 0:
[C]: in function 'require'
content_by_lua(nginx.conf:54):2: in main chunk, client: 127.0.0.1, server: 0.0.0.0:1985
2020/10/26 13:23:31 [debug] 21905\#0: *1174 lua request cleanup: forcible=0
2020/10/26 13:23:31 [debug] 21905\#0: *1174 finalize stream request: 500
2020/10/26 13:23:31 [debug] 21905\#0: *1174 finalize stream session: 500
2020/10/26 13:23:31 [debug] 21905\#0: *1174 stream log handler
2020/10/26 13:23:31 [debug] 21905\#0: *1174 close stream connection: 9
'
stream/semaphore.t TEST 9: semaphore in content_by_lua (all allowed) - grep_error_log_out (req 0) @@ -1,2 +0,0 @@
-sem: timeout,
-sem: 1,
'
stream/semaphore.t TEST 9: semaphore in content_by_lua (all allowed) - grep_error_log_out (req 1) @@ -1,2 +0,0 @@
-sem: timeout,
-sem: 1,
'
stream/shdict.t TEST 2: get an nonexistent key - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-value type: nil
-value: nil
-flags: nil
'
stream/shdict.t TEST 2: get an nonexistent key - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-value type: nil
-value: nil
-flags: nil
'
stream/ssl.t TEST 17: parse PEM cert and key to cdata (bad cert 0 in the chain) - pattern "(?^:\[error\] .*? failed to parse pem cert: PEM_read_bio_X509_AUX\(\) failed)" should match a line in error.log (req 0)
stream/ssl.t TEST 17: parse PEM cert and key to cdata (bad cert 0 in the chain) - pattern "(?^:\[error\] .*? failed to parse pem cert: PEM_read_bio_X509_AUX\(\) failed)" 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 "(?^:Using unix socket file .*?nginx\.sock)" 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 "(?^:Using unix socket file .*?nginx\.sock)" should match a line in error.log (req 1)
stream/ssl.t TEST 11: tls version - TLSv1 - pattern "got TLS1 version: TLSv1," should match a line in error.log (req 0)
stream/ssl.t TEST 11: tls version - TLSv1 - pattern "got TLS1 version: TLSv1," should match a line in error.log (req 1)
stream/ssl.t TEST 18: parse PEM cert and key to cdata (bad cert 2 in the chain) - pattern "(?^:\[error\] .*? failed to parse pem cert: PEM_read_bio_X509\(\) failed)" should match a line in error.log (req 0)
stream/ssl.t TEST 18: parse PEM cert and key to cdata (bad cert 2 in the chain) - pattern "(?^:\[error\] .*? failed to parse pem cert: PEM_read_bio_X509\(\) failed)" should match a line in error.log (req 1)
stream/ssl.t TEST 12: tls version - TLSv1.1 - pattern "got TLS1 version: TLSv1.1," should match a line in error.log (req 0)
stream/ssl.t TEST 12: tls version - TLSv1.1 - pattern "got TLS1 version: TLSv1.1," should match a line in error.log (req 1)
stream/ssl.t TEST 20: read client addr via ssl.raw_client_addr() - pattern "client ip: 127.0.0.1" should match a line in error.log (req 0)
stream/ssl.t TEST 20: read client addr via ssl.raw_client_addr() - pattern "client ip: 127.0.0.1" should match a line in error.log (req 1)
stream/ssl.t TEST 13: tls version - TLSv1.2 - pattern "got TLS1 version: TLSv1.2," should match a line in error.log (req 0)
stream/ssl.t TEST 13: tls version - TLSv1.2 - pattern "got TLS1 version: TLSv1.2," should match a line in error.log (req 1)
stream/ssl.t TEST 3: read SNI name via ssl.server_name() - pattern "read SNI name from Lua: test.com" should match a line in error.log (req 0)
stream/ssl.t TEST 3: read SNI name via ssl.server_name() - pattern "read SNI name from Lua: test.com" should match a line in error.log (req 1)
stream/ssl.t TEST 25: verify client but client provides no certificate - pattern "client certificate subject: nil" should match a line in error.log (req 0)
stream/ssl.t TEST 25: verify client but client provides no certificate - pattern "client certificate subject: nil" 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 "Using IPv4 address: 127.0.0.1" 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 "Using IPv4 address: 127.0.0.1" should match a line in error.log (req 1)
stream/ssl.t TEST 21: yield during doing handshake with client which uses low version OpenSSL - pattern "(?^:content_by_lua\(nginx\.conf:\d+\):\d+: CONNECTED)" should match a line in error.log (req 0)
stream/ssl.t TEST 21: yield during doing handshake with client which uses low version OpenSSL - pattern "(?^:subject=/?C(?<eq>\s?=\s?)US(?<sep>/|,\s)ST\k<eq>California\k<sep>L\k<eq>San Francisco\k<sep>O\k<eq>OpenResty\k<sep>OU\k<eq>OpenResty\k<sep>CN\k<eq>test\.com\k<sep>emailAddress\k<eq>agentzh\@gmail\.com)" should match a line in error.log (req 0)
stream/ssl.t TEST 21: yield during doing handshake with client which uses low version OpenSSL - pattern "(?^:content_by_lua\(nginx\.conf:\d+\):\d+: CONNECTED)" should match a line in error.log (req 1)
stream/ssl.t TEST 21: yield during doing handshake with client which uses low version OpenSSL - pattern "(?^:subject=/?C(?<eq>\s?=\s?)US(?<sep>/|,\s)ST\k<eq>California\k<sep>L\k<eq>San Francisco\k<sep>O\k<eq>OpenResty\k<sep>OU\k<eq>OpenResty\k<sep>CN\k<eq>test\.com\k<sep>emailAddress\k<eq>agentzh\@gmail\.com)" should match a line in error.log (req 1)
stream/ssl.t TEST 10: tls version - SSLv3 - pattern "got TLS1 version: SSLv3," should match a line in error.log (req 0)
stream/ssl.t TEST 10: tls version - SSLv3 - pattern "got TLS1 version: SSLv3," should match a line in error.log (req 1)
stream/ssl.t TEST 4: read SNI name via ssl.server_name() when no SNI name specified - pattern "read SNI name from Lua: nil, type: nil" should match a line in error.log (req 0)
stream/ssl.t TEST 4: read SNI name via ssl.server_name() when no SNI name specified - pattern "read SNI name from Lua: nil, type: nil" should match a line in error.log (req 1)
stream/ssl.t TEST 24: verify client without CA certificates - pattern "client certificate subject: emailAddress=agentzh@gmail.com,CN=test.com" should match a line in error.log (req 0)
stream/ssl.t TEST 24: verify client without CA certificates - pattern "client certificate subject: emailAddress=agentzh@gmail.com,CN=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 "Using IPv6 address: 0.0.0.1" 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 "Using IPv6 address: 0.0.0.1" should match a line in error.log (req 1)
stream/ssl.t TEST 1: clear certs - pattern "sslv3 alert handshake failure" should match a line in error.log (req 0)
stream/ssl.t TEST 1: clear certs - pattern "sslv3 alert handshake failure" should match a line in error.log (req 1)
stream/ssl.t TEST 19: parse PEM cert and key to cdata (bad priv key) - pattern "(?^:\[error\] .*? failed to parse pem key: PEM_read_bio_PrivateKey\(\) failed)" should match a line in error.log (req 0)
stream/ssl.t TEST 19: parse PEM cert and key to cdata (bad priv key) - pattern "(?^:\[error\] .*? failed to parse pem key: PEM_read_bio_PrivateKey\(\) failed)" should match a line in error.log (req 1)
stream/ssl.t TEST 23: verify client with CA certificates - pattern "client certificate subject: emailAddress=agentzh@gmail.com,CN=test.com" should match a line in error.log (req 0)
stream/ssl.t TEST 23: verify client with CA certificates - pattern "client certificate subject: emailAddress=agentzh@gmail.com,CN=test.com" should match a line in error.log (req 1)
stream/ssl.t TEST 14: ngx.semaphore in ssl_certificate_by_lua* - pattern "ssl cert by lua done" should match a line in error.log (req 0)
stream/ssl.t TEST 14: ngx.semaphore in ssl_certificate_by_lua* - pattern "ssl cert by lua done" should match a line in error.log (req 1)

Warnings

Go back to the index page.