(This page was automatically generated by the tools in the opsboy project on 03:17:23 31-May-2022 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 8077 331 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

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
'