(This page was automatically generated by the tools in the opsboy project on 19:30:20 13-Feb-2019 GMT.)
Commit | Testing Time | Unexpected Failures |
Expected Failures |
Files | Tests | Elapsed Time |
---|---|---|---|---|---|---|
fc141ce1 | 2019-02-11 17:37:53 GMT | 59 | 144 | 71 | 8019 | 789 sec |
File | Name | Details |
---|---|---|
process-type-hup.t | TEST 1: sanity - pattern "init_worker_by_lua:6: process type: privileged" should match a line in error.log (req 0) | |
process-type-hup.t | TEST 1: sanity - pattern "init_worker_by_lua:6: process type: privileged" should match a line in error.log (req 1) | |
process-type-single.t | TEST 1: sanity - response_body - response is expected (repeated req 0, req 0) |
got: "process type: worker\x{0a}" length: 21 expected: "process type: single\x{0a}" length: 21 strings begin to differ at char 15 (line 1 column 15) |
process-type-single.t | TEST 1: sanity - grep_error_log_out (req 0) |
'[TRACE 1 init_by_lua:18 loop] [TRACE 2 init_worker_by_lua:4 loop] [TRACE 2 content_by_lua(nginx.conf:84):4 loop] process type in init_by_lua*: master init_worker_by_lua:10: process type: worker ' doesn't match '(?^:\[TRACE\s+\d+ init_by_lua:\d+ loop\] \[TRACE\s+\d+ init_worker_by_lua:\d+ loop\] \[TRACE\s+\d+ content_by_lua\(nginx.conf:\d+\):4 loop\] process type in init_by_lua\*: single init_worker_by_lua:10: process type: single )' |
process-type-single.t | TEST 1: sanity - response_body - response is expected (repeated req 1, req 0) |
got: "process type: worker\x{0a}" length: 21 expected: "process type: single\x{0a}" length: 21 strings begin to differ at char 15 (line 1 column 15) |
process-type-single.t | TEST 1: sanity - grep_error_log_out (req 1) |
'[TRACE 1 init_by_lua:18 loop] [TRACE 2 init_worker_by_lua:4 loop] [TRACE 2 content_by_lua(nginx.conf:84):4 loop] process type in init_by_lua*: master init_worker_by_lua:10: process type: worker ' doesn't match '(?^:\[TRACE\s+\d+ init_by_lua:\d+ loop\] \[TRACE\s+\d+ init_worker_by_lua:\d+ loop\] \[TRACE\s+\d+ content_by_lua\(nginx.conf:\d+\):4 loop\] process type in init_by_lua\*: single init_worker_by_lua:10: process type: single )' |
stream/errlog.t | TEST 19: fetch a few and generate a few, then fetch again (overflown again) - response_body_like - response is expected (msg count: 3 log level:4 log body:2019/02/11 21:24:02 [error] 21111\#0: *3 stream [lua] content_by_lua(nginx.conf:93):11: --> 84, client: 127.0.0.1, server: 0.0.0.0:1985 log level:5 log body:2019/02/11 21:24:02 [warn] 21111\#0: *3 stream [lua] content_by_lua(nginx.conf:93):10: --> 85, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/11 21:24:02 [error] 21111\#0: *3 stream [lua] content_by_lua(nginx.conf:93):11: --> 85, client: 127.0.0.1, server: 0.0.0.0:1985 msg count: 3 log level:4 log body:2019/02/11 21:24:02 [error] 21111\#0: *3 stream [lua] content_by_lua(nginx.conf:93):11: --> 86, client: 127.0.0.1, server: 0.0.0.0:1985 log level:5 log body:2019/02/11 21:24:02 [warn] 21111\#0: *3 stream [lua] content_by_lua(nginx.conf:93):10: --> 87, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/11 21:24:02 [error] 21111\#0: *3 stream [lua] content_by_lua(nginx.conf:93):11: --> 87, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/11 21:24:02 [error] 21111\#0: *3 stream [lua] content_by_lua(nginx.conf:93):24: --> 102, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/11 21:24:02 [error] 21111\#0: *3 stream [lua] content_by_lua(nginx.conf:93):25: --> 103, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/11 21:24:02 [error] 21111\#0: *3 stream [lua] content_by_lua(nginx.conf:93):26: --> 104, client: 127.0.0.1, server: 0.0.0.0:1985) |
'msg count: 3 log level:4 log body:2019/02/11 21:24:02 [error] 21111#0: *3 stream [lua] content_by_lua(nginx.conf:93):11: --> 84, client: 127.0.0.1, server: 0.0.0.0:1985 log level:5 log body:2019/02/11 21:24:02 [warn] 21111#0: *3 stream [lua] content_by_lua(nginx.conf:93):10: --> 85, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/11 21:24:02 [error] 21111#0: *3 stream [lua] content_by_lua(nginx.conf:93):11: --> 85, client: 127.0.0.1, server: 0.0.0.0:1985 msg count: 3 log level:4 log body:2019/02/11 21:24:02 [error] 21111#0: *3 stream [lua] content_by_lua(nginx.conf:93):11: --> 86, client: 127.0.0.1, server: 0.0.0.0:1985 log level:5 log body:2019/02/11 21:24:02 [warn] 21111#0: *3 stream [lua] content_by_lua(nginx.conf:93):10: --> 87, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/11 21:24:02 [error] 21111#0: *3 stream [lua] content_by_lua(nginx.conf:93):11: --> 87, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/11 21:24:02 [error] 21111#0: *3 stream [lua] content_by_lua(nginx.conf:93):24: --> 102, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/11 21:24:02 [error] 21111#0: *3 stream [lua] content_by_lua(nginx.conf:93):25: --> 103, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/11 21:24:02 [error] 21111#0: *3 stream [lua] content_by_lua(nginx.conf:93):26: --> 104, client: 127.0.0.1, server: 0.0.0.0:1985 ' doesn't match '(?^s:\Amsg count: 3 log level:4 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 84, client: 127.0.0.1, server: 0.0.0.0:\d+ log level:5 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 85, client: 127.0.0.1, server: 0.0.0.0:\d+ log level:4 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 85, client: 127.0.0.1, server: 0.0.0.0:\d+ msg count: 3 log level:5 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 86, client: 127.0.0.1, server: 0.0.0.0:\d+ log level:4 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 86, client: 127.0.0.1, server: 0.0.0.0:\d+ log level:5 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 87, client: 127.0.0.1, server: 0.0.0.0:\d+ log level:4 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 102, client: 127.0.0.1, server: 0.0.0.0:\d+ log level:4 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 103, client: 127.0.0.1, server: 0.0.0.0:\d+ log level:4 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 104, client: 127.0.0.1, server: 0.0.0.0:\d+ |msg count: 3 log level:4 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 84, client: 127.0.0.1, server: 0.0.0.0:\d+ log level:5 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 85, client: 127.0.0.1, server: 0.0.0.0:\d+ log level:4 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 85, client: 127.0.0.1, server: 0.0.0.0:\d+ msg count: 3 log level:5 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 87, client: 127.0.0.1, server: 0.0.0.0:\d+ log level:4 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 87, client: 127.0.0.1, server: 0.0.0.0:\d+ log level:5 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 88, client: 127.0.0.1, server: 0.0.0.0:\d+ log level:4 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 102, client: 127.0.0.1, server: 0.0.0.0:\d+ log level:4 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 103, client: 127.0.0.1, server: 0.0.0.0:\d+ log level:4 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 104, client: 127.0.0.1, server: 0.0.0.0:\d+ \z)' |
stream/errlog.t | TEST 13: filter log by level(ngx.CRIT) - response_body - response is expected (repeated req 0, req 0) |
got: 'log lines:1 ' expected: 'log lines:0 ' |
stream/errlog.t | TEST 3: client connected info - grep_error_log_out (req 0) |
'client 127.0.0.1:40990 connected to capture log line:10 ' doesn't match '(?^:^client .*? connected to .*? capture log line:1 $)' |
stream/errlog.t | TEST 3: client connected info - grep_error_log_out (req 1) |
'client 127.0.0.1:40994 connected to capture log line:4 ' doesn't match '(?^:^client .*? connected to .*? capture log line:2 $)' |
stream/errlog.t | TEST 20: fetch a few and generate a few, then fetch again (not overflown again) - response_body_like - response is expected (msg count: 3 log level:5 log body:2019/02/11 21:24:11 [warn] 21382\#0: *269 stream [lua] content_by_lua(nginx.conf:91):10: --> 85, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/11 21:24:11 [error] 21382\#0: *269 stream [lua] content_by_lua(nginx.conf:91):11: --> 85, client: 127.0.0.1, server: 0.0.0.0:1985 log level:5 log body:2019/02/11 21:24:11 [warn] 21382\#0: *269 stream [lua] content_by_lua(nginx.conf:91):10: --> 86, client: 127.0.0.1, server: 0.0.0.0:1985 msg count: 3 log level:4 log body:2019/02/11 21:24:11 [error] 21382\#0: *269 stream [lua] content_by_lua(nginx.conf:91):11: --> 86, client: 127.0.0.1, server: 0.0.0.0:1985 log level:5 log body:2019/02/11 21:24:11 [warn] 21382\#0: *269 stream [lua] content_by_lua(nginx.conf:91):10: --> 87, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/11 21:24:11 [error] 21382\#0: *269 stream [lua] content_by_lua(nginx.conf:91):11: --> 87, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/11 21:24:11 [error] 21382\#0: *269 stream [lua] content_by_lua(nginx.conf:91):11: --> 100, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/11 21:24:11 [error] 21382\#0: *269 stream [lua] content_by_lua(nginx.conf:91):23: howdy, something new!, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/11 21:24:11 [error] 21382\#0: *269 stream [lua] content_by_lua(nginx.conf:91):24: howdy, something even newer!, client: 127.0.0.1, server: 0.0.0.0:1985) |
'msg count: 3 log level:5 log body:2019/02/11 21:24:11 [warn] 21382#0: *269 stream [lua] content_by_lua(nginx.conf:91):10: --> 85, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/11 21:24:11 [error] 21382#0: *269 stream [lua] content_by_lua(nginx.conf:91):11: --> 85, client: 127.0.0.1, server: 0.0.0.0:1985 log level:5 log body:2019/02/11 21:24:11 [warn] 21382#0: *269 stream [lua] content_by_lua(nginx.conf:91):10: --> 86, client: 127.0.0.1, server: 0.0.0.0:1985 msg count: 3 log level:4 log body:2019/02/11 21:24:11 [error] 21382#0: *269 stream [lua] content_by_lua(nginx.conf:91):11: --> 86, client: 127.0.0.1, server: 0.0.0.0:1985 log level:5 log body:2019/02/11 21:24:11 [warn] 21382#0: *269 stream [lua] content_by_lua(nginx.conf:91):10: --> 87, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/11 21:24:11 [error] 21382#0: *269 stream [lua] content_by_lua(nginx.conf:91):11: --> 87, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/11 21:24:11 [error] 21382#0: *269 stream [lua] content_by_lua(nginx.conf:91):11: --> 100, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/11 21:24:11 [error] 21382#0: *269 stream [lua] content_by_lua(nginx.conf:91):23: howdy, something new!, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/11 21:24:11 [error] 21382#0: *269 stream [lua] content_by_lua(nginx.conf:91):24: howdy, something even newer!, client: 127.0.0.1, server: 0.0.0.0:1985 ' doesn't match '(?^s:\Amsg count: 3 log level:4 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 84, client: 127.0.0.1, server: 0.0.0.0:\d+ log level:5 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 85, client: 127.0.0.1, server: 0.0.0.0:\d+ log level:4 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 85, client: 127.0.0.1, server: 0.0.0.0:\d+ msg count: 3 log level:5 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 86, client: 127.0.0.1, server: 0.0.0.0:\d+ log level:4 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 86, client: 127.0.0.1, server: 0.0.0.0:\d+ log level:5 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 87, client: 127.0.0.1, server: 0.0.0.0:\d+ log level:4 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 100, client: 127.0.0.1, server: 0.0.0.0:\d+ log level:4 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: howdy, something new!, client: 127.0.0.1, server: 0.0.0.0:\d+ log level:4 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: howdy, something even newer!, client: 127.0.0.1, server: 0.0.0.0:\d+ \z)' |
stream/errlog.t | TEST 20: fetch a few and generate a few, then fetch again (not overflown again) - response_body_like - response is expected (msg count: 3 log level:5 log body:2019/02/11 21:24:11 [warn] 21382\#0: *272 stream [lua] content_by_lua(nginx.conf:91):10: --> 85, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/11 21:24:11 [error] 21382\#0: *272 stream [lua] content_by_lua(nginx.conf:91):11: --> 85, client: 127.0.0.1, server: 0.0.0.0:1985 log level:5 log body:2019/02/11 21:24:11 [warn] 21382\#0: *272 stream [lua] content_by_lua(nginx.conf:91):10: --> 86, client: 127.0.0.1, server: 0.0.0.0:1985 msg count: 3 log level:4 log body:2019/02/11 21:24:11 [error] 21382\#0: *272 stream [lua] content_by_lua(nginx.conf:91):11: --> 86, client: 127.0.0.1, server: 0.0.0.0:1985 log level:5 log body:2019/02/11 21:24:11 [warn] 21382\#0: *272 stream [lua] content_by_lua(nginx.conf:91):10: --> 87, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/11 21:24:11 [error] 21382\#0: *272 stream [lua] content_by_lua(nginx.conf:91):11: --> 87, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/11 21:24:11 [error] 21382\#0: *272 stream [lua] content_by_lua(nginx.conf:91):11: --> 100, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/11 21:24:11 [error] 21382\#0: *272 stream [lua] content_by_lua(nginx.conf:91):23: howdy, something new!, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/11 21:24:11 [error] 21382\#0: *272 stream [lua] content_by_lua(nginx.conf:91):24: howdy, something even newer!, client: 127.0.0.1, server: 0.0.0.0:1985) |
'msg count: 3 log level:5 log body:2019/02/11 21:24:11 [warn] 21382#0: *272 stream [lua] content_by_lua(nginx.conf:91):10: --> 85, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/11 21:24:11 [error] 21382#0: *272 stream [lua] content_by_lua(nginx.conf:91):11: --> 85, client: 127.0.0.1, server: 0.0.0.0:1985 log level:5 log body:2019/02/11 21:24:11 [warn] 21382#0: *272 stream [lua] content_by_lua(nginx.conf:91):10: --> 86, client: 127.0.0.1, server: 0.0.0.0:1985 msg count: 3 log level:4 log body:2019/02/11 21:24:11 [error] 21382#0: *272 stream [lua] content_by_lua(nginx.conf:91):11: --> 86, client: 127.0.0.1, server: 0.0.0.0:1985 log level:5 log body:2019/02/11 21:24:11 [warn] 21382#0: *272 stream [lua] content_by_lua(nginx.conf:91):10: --> 87, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/11 21:24:11 [error] 21382#0: *272 stream [lua] content_by_lua(nginx.conf:91):11: --> 87, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/11 21:24:11 [error] 21382#0: *272 stream [lua] content_by_lua(nginx.conf:91):11: --> 100, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/11 21:24:11 [error] 21382#0: *272 stream [lua] content_by_lua(nginx.conf:91):23: howdy, something new!, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/11 21:24:11 [error] 21382#0: *272 stream [lua] content_by_lua(nginx.conf:91):24: howdy, something even newer!, client: 127.0.0.1, server: 0.0.0.0:1985 ' doesn't match '(?^s:\Amsg count: 3 log level:4 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 84, client: 127.0.0.1, server: 0.0.0.0:\d+ log level:5 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 85, client: 127.0.0.1, server: 0.0.0.0:\d+ log level:4 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 85, client: 127.0.0.1, server: 0.0.0.0:\d+ msg count: 3 log level:5 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 86, client: 127.0.0.1, server: 0.0.0.0:\d+ log level:4 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 86, client: 127.0.0.1, server: 0.0.0.0:\d+ log level:5 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 87, client: 127.0.0.1, server: 0.0.0.0:\d+ log level:4 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 100, client: 127.0.0.1, server: 0.0.0.0:\d+ log level:4 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: howdy, something new!, client: 127.0.0.1, server: 0.0.0.0:\d+ log level:4 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: howdy, something even newer!, client: 127.0.0.1, server: 0.0.0.0:\d+ \z)' |
stream/errlog.t | nginx: [emerg] | invalid number of arguments in "lua_capture_error_log" directive in /home/ec2-user/git/lua-resty-core/t/servroot/conf/nginx.conf:17 |
stream/errlog.t | nginx: [emerg] | invalid number of arguments in "lua_capture_error_log" directive in /home/ec2-user/git/lua-resty-core/t/servroot/conf/nginx.conf:17 |
stream/errlog.t | TEST 21: multi-line error log - response_body_like - response is expected (log lines: \#2 log level:6 log body:2019/02/11 21:24:13 [notice] 21421\#0: start worker processes log level:4 log body:2019/02/11 21:24:14 [error] 21422\#0: *3 stream [lua] content_by_lua(nginx.conf:67):8: --> new line, client: 127.0.0.1, server: 0.0.0.0:1985) |
'log lines: #2 log level:6 log body:2019/02/11 21:24:13 [notice] 21421#0: start worker processes log level:4 log body:2019/02/11 21:24:14 [error] 21422#0: *3 stream [lua] content_by_lua(nginx.conf:67):8: --> new line, client: 127.0.0.1, server: 0.0.0.0:1985 ' doesn't match '(?^s:\Alog lines: #1 log level:4 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*content_by_lua\(nginx.conf:\d+\):\d+: --> new line, client: 127.0.0.1, server: 0.0.0.0:\d+ \z)' |
stream/errlog.t | TEST 22: user-supplied Lua table to hold the result (get one log + no log) - response_body_like - response is expected (maybe log lines: \#2 log level:6 log body:2019/02/11 21:24:15 [notice] 21421\#0: start worker processes log level:4 log body:2019/02/11 21:24:16 [error] 21451\#0: *41 stream [lua] content_by_lua(nginx.conf:75):8: --> new line, client: 127.0.0.1, server: 0.0.0.0:1985 end maybe log lines: \#2 end) |
'maybe log lines: #2 log level:6 log body:2019/02/11 21:24:15 [notice] 21421#0: start worker processes log level:4 log body:2019/02/11 21:24:16 [error] 21451#0: *41 stream [lua] content_by_lua(nginx.conf:75):8: --> new line, client: 127.0.0.1, server: 0.0.0.0:1985 end maybe log lines: #2 end ' doesn't match '(?^s:\Amaybe log lines: #1 log level:4 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*content_by_lua\(nginx.conf:\d+\):\d+: --> new line, client: 127.0.0.1, server: 0.0.0.0:\d+ end maybe log lines: #1 end \z)' |
stream/errlog.t | TEST 12: filter log by level(ngx.WARN) - response_body - response is expected (repeated req 0, req 0) |
got: 'log lines:3 ' expected: 'log lines:2 ' |
stream/errlog.t | TEST 11: filter log by level(ngx.INFO) - response_body - response is expected (repeated req 0, req 0) |
got: 'log lines:4 ' expected: 'log lines:3 ' |
stream/errlog.t | nginx: [emerg] | invalid capture error log size "3k", minimum size is 4096 in /home/ec2-user/git/lua-resty-core/t/servroot/conf/nginx.conf:17 |
stream/errlog.t | nginx: [emerg] | invalid capture error log size "3k", minimum size is 4096 in /home/ec2-user/git/lua-resty-core/t/servroot/conf/nginx.conf:17 |
stream/ssl.t | TEST 5: read raw server addr via ssl.raw_server_addr() (unix domain socket) - response_body - response is expected (repeated req 0, req 0) |
@@ -1,4 +1 @@ -connected: 1 +failed to connect: no such file or directory -ssl handshake: userdata -received: it works! -close: 1 nil ' |
stream/ssl.t | TEST 5: read raw server addr via ssl.raw_server_addr() (unix domain socket) - pattern "lua ssl server name: "test.com"" should match a line in error.log (req 0) | |
stream/ssl.t | TEST 5: read raw server addr via ssl.raw_server_addr() (unix domain socket) - pattern "(?^:Using unix socket file .*?nginx\.sock)" should match a line in error.log (req 0) | |
stream/ssl.t | TEST 5: read raw server addr via ssl.raw_server_addr() (unix domain socket) - response_body - response is expected (repeated req 1, req 0) |
@@ -1,4 +1 @@ -connected: 1 +failed to connect: no such file or directory -ssl handshake: userdata -received: it works! -close: 1 nil ' |
stream/ssl.t | TEST 5: read raw server addr via ssl.raw_server_addr() (unix domain socket) - pattern "lua ssl server name: "test.com"" should match a line in error.log (req 1) | |
stream/ssl.t | TEST 5: read raw server addr via ssl.raw_server_addr() (unix domain socket) - pattern "(?^:Using unix socket file .*?nginx\.sock)" should match a line in error.log (req 1) | |
stream/ssl.t | TEST 16: parse PEM cert and key to cdata - response_body - response is expected (repeated req 0, req 0) |
@@ -1,4 +1 @@ -connected: 1 +failed to connect: no such file or directory -ssl handshake: userdata -received: it works! -close: 1 nil ' |
stream/ssl.t | TEST 16: parse PEM cert and key to cdata - pattern "lua ssl server name: "test.com"" should match a line in error.log (req 0) | |
stream/ssl.t | TEST 16: parse PEM cert and key to cdata - response_body - response is expected (repeated req 1, req 0) |
@@ -1,4 +1 @@ -connected: 1 +failed to connect: no such file or directory -ssl handshake: userdata -received: it works! -close: 1 nil ' |
stream/ssl.t | TEST 16: parse PEM cert and key to cdata - pattern "lua ssl server name: "test.com"" should match a line in error.log (req 1) | |
stream/ssl.t | TEST 2: set DER cert and private key - response_body - response is expected (repeated req 0, req 0) |
@@ -1,4 +1 @@ -connected: 1 +failed to connect: no such file or directory -ssl handshake: userdata -received: it works! -close: 1 nil ' |
stream/ssl.t | TEST 2: set DER cert and private key - pattern "lua ssl server name: "test.com"" should match a line in error.log (req 0) | |
stream/ssl.t | TEST 2: set DER cert and private key - response_body - response is expected (repeated req 1, req 0) |
@@ -1,4 +1 @@ -connected: 1 +failed to connect: no such file or directory -ssl handshake: userdata -received: it works! -close: 1 nil ' |
stream/ssl.t | TEST 2: set DER cert and private key - pattern "lua ssl server name: "test.com"" should match a line in error.log (req 1) | |
stream/ssl.t | TEST 9: read PEM cert chain but set DER cert chain - response_body - response is expected (repeated req 0, req 0) |
@@ -1,4 +1 @@ -connected: 1 +failed to connect: no such file or directory -ssl handshake: userdata -received: it works! -close: 1 nil ' |
stream/ssl.t | TEST 9: read PEM cert chain but set DER cert chain - pattern "lua ssl server name: "test.com"" should match a line in error.log (req 0) | |
stream/ssl.t | TEST 9: read PEM cert chain but set DER cert chain - response_body - response is expected (repeated req 1, req 0) |
@@ -1,4 +1 @@ -connected: 1 +failed to connect: no such file or directory -ssl handshake: userdata -received: it works! -close: 1 nil ' |
stream/ssl.t | TEST 9: read PEM cert chain but set DER cert chain - pattern "lua ssl server name: "test.com"" should match a line in error.log (req 1) | |
stream/ssl.t | TEST 17: parse PEM cert and key to cdata (bad cert 0 in the chain) - response_body - response is expected (repeated req 0, req 0) |
@@ -1,2 +1 @@ -connected: 1 +failed to connect: no such file or directory -failed to do SSL handshake: handshake failed ' |
stream/ssl.t | TEST 17: parse PEM cert and key to cdata (bad cert 0 in the chain) - pattern "(?^:\[error\] .*? failed to parse pem cert: PEM_read_bio_X509_AUX\(\) failed)" should match a line in error.log (req 0) | |
stream/ssl.t | TEST 17: parse PEM cert and key to cdata (bad cert 0 in the chain) - pattern "[crit]" should not match any line in error.log but matches line "2019/02/11 21:27:23 [crit] 25441\#0: *112 connect() to unix:/home/ec2-user/git/lua-resty-core/t/servroot/html/nginx.sock failed (2: No such file or directory), client: 127.0.0.1, server: 0.0.0.0:1985" (req 0) |
2019/02/11 21:27:23 [debug] 25441\#0: *112 reusable connection: 0 2019/02/11 21:27:23 [debug] 25441\#0: *112 malloc: 00000000084EFBE0:24 2019/02/11 21:27:23 [debug] 25441\#0: *112 malloc: 00000000084EFC40:16 2019/02/11 21:27:23 [debug] 25441\#0: *112 stream cleanup add: 00000000084EFBE0 2019/02/11 21:27:23 [debug] 25441\#0: *112 stream lua tcp socket connect: -5 2019/02/11 21:27:23 [debug] 25441\#0: *112 stream lua tcp socket error retval handler 2019/02/11 21:27:23 [debug] 25441\#0: *112 stream lua finalize socket 2019/02/11 21:27:23 [debug] 25441\#0: *112 lua stream cleanup free: 00000000084EFBE0 2019/02/11 21:27:23 [debug] 25441\#0: *112 malloc: 00000000084EFD00:16 ' |
stream/ssl.t | TEST 17: parse PEM cert and key to cdata (bad cert 0 in the chain) - response_body - response is expected (repeated req 1, req 0) |
@@ -1,2 +1 @@ -connected: 1 +failed to connect: no such file or directory -failed to do SSL handshake: handshake failed ' |
stream/ssl.t | TEST 17: parse PEM cert and key to cdata (bad cert 0 in the chain) - pattern "(?^:\[error\] .*? failed to parse pem cert: PEM_read_bio_X509_AUX\(\) failed)" should match a line in error.log (req 1) | |
stream/ssl.t | TEST 17: parse PEM cert and key to cdata (bad cert 0 in the chain) - pattern "[crit]" should not match any line in error.log but matches line "2019/02/11 21:27:23 [crit] 25441\#0: *116 connect() to unix:/home/ec2-user/git/lua-resty-core/t/servroot/html/nginx.sock failed (2: No such file or directory), client: 127.0.0.1, server: 0.0.0.0:1985" (req 1) |
2019/02/11 21:27:23 [debug] 25441\#0: *116 reusable connection: 0 2019/02/11 21:27:23 [debug] 25441\#0: *116 malloc: 00000000085029B0:24 2019/02/11 21:27:23 [debug] 25441\#0: *116 malloc: 0000000008502A10:16 2019/02/11 21:27:23 [debug] 25441\#0: *116 stream cleanup add: 00000000085029B0 2019/02/11 21:27:23 [debug] 25441\#0: *116 stream lua tcp socket connect: -5 2019/02/11 21:27:23 [debug] 25441\#0: *116 stream lua tcp socket error retval handler 2019/02/11 21:27:23 [debug] 25441\#0: *116 stream lua finalize socket 2019/02/11 21:27:23 [debug] 25441\#0: *116 lua stream cleanup free: 00000000085029B0 2019/02/11 21:27:23 [debug] 25441\#0: *116 malloc: 0000000008502A60:16 ' |
stream/ssl.t | TEST 12: tls version - TLSv1.1 - pattern "[emerg]" should not match any line in error.log but matches line "2019/02/11 21:27:23 [emerg] 25350\#0: unlink() /home/ec2-user/git/lua-resty-core/t/servroot/html/nginx.sock failed (2: No such file or directory)" (req 0) |
2019/02/11 21:27:23 [notice] 25350\#0: start worker processes 2019/02/11 21:27:23 [debug] 25350\#0: channel 3:5 2019/02/11 21:27:23 [debug] 25441\#0: epoll: fd:8 ev:0001 d:0000000008458360 2019/02/11 21:27:23 [debug] 25441\#0: accept on 0.0.0.0:1984, ready: 0 2019/02/11 21:27:23 [debug] 25441\#0: malloc: 0000000008402FF0:48 2019/02/11 21:27:23 [debug] 25441\#0: malloc: 0000000008403060:16 2019/02/11 21:27:23 [debug] 25441\#0: malloc: 00000000084030B0:16 2019/02/11 21:27:23 [debug] 25441\#0: malloc: 0000000008403100:80 2019/02/11 21:27:23 [debug] 25441\#0: malloc: 0000000008403190:16 ' |
stream/ssl.t | TEST 20: read client addr via ssl.raw_client_addr() - pattern "[emerg]" should not match any line in error.log but matches line "2019/02/11 21:27:25 [emerg] 25350\#0: unlink() /home/ec2-user/git/lua-resty-core/t/servroot/html/nginx.sock failed (2: No such file or directory)" (req 0) |
2019/02/11 21:27:25 [notice] 25350\#0: start worker processes 2019/02/11 21:27:25 [debug] 25350\#0: channel 3:5 2019/02/11 21:27:25 [notice] 25350\#0: start worker process 25502 2019/02/11 21:27:25 [debug] 25350\#0: pass channel s:0 pid:25502 fd:3 to s:1 pid:25481 fd:4 2019/02/11 21:27:26 [debug] 25481\#0: epoll: fd:6 ev:0001 d:000000000848AFD0 2019/02/11 21:27:26 [debug] 25481\#0: channel handler 2019/02/11 21:27:26 [debug] 25481\#0: channel: 32 2019/02/11 21:27:26 [debug] 25481\#0: channel command: 1 2019/02/11 21:27:26 [debug] 25481\#0: get channel s:0 pid:25502 fd:5 ' |
stream/ssl.t | TEST 1: clear certs - response_body - response is expected (repeated req 0, req 0) |
@@ -1,2 +1 @@ -connected: 1 +failed to connect: no such file or directory -failed to do SSL handshake: handshake failed ' |
stream/ssl.t | TEST 1: clear certs - pattern "lua ssl server name: "test.com"" should match a line in error.log (req 0) | |
stream/ssl.t | TEST 1: clear certs - pattern "sslv3 alert handshake failure" should match a line in error.log (req 0) | |
stream/ssl.t | TEST 1: clear certs - response_body - response is expected (repeated req 1, req 0) |
@@ -1,2 +1 @@ -connected: 1 +failed to connect: no such file or directory -failed to do SSL handshake: handshake failed ' |
stream/ssl.t | TEST 1: clear certs - pattern "lua ssl server name: "test.com"" should match a line in error.log (req 1) | |
stream/ssl.t | TEST 1: clear certs - pattern "sslv3 alert handshake failure" should match a line in error.log (req 1) | |
stream/ssl.t | TEST 15: read PEM key chain but set DER key chain - response_body - response is expected (repeated req 0, req 0) |
@@ -1,4 +1 @@ -connected: 1 +failed to connect: no such file or directory -ssl handshake: userdata -received: it works! -close: 1 nil ' |
stream/ssl.t | TEST 15: read PEM key chain but set DER key chain - pattern "lua ssl server name: "test.com"" should match a line in error.log (req 0) | |
stream/ssl.t | TEST 15: read PEM key chain but set DER key chain - response_body - response is expected (repeated req 1, req 0) |
@@ -1,4 +1 @@ -connected: 1 +failed to connect: no such file or directory -ssl handshake: userdata -received: it works! -close: 1 nil ' |
stream/ssl.t | TEST 15: read PEM key chain but set DER key chain - pattern "lua ssl server name: "test.com"" should match a line in error.log (req 1) | |
stream/ssl.t | TEST 14: ngx.semaphore in ssl_certificate_by_lua* - pattern "[emerg]" should not match any line in error.log but matches line "2019/02/11 21:27:33 [emerg] 25350\#0: unlink() /home/ec2-user/git/lua-resty-core/t/servroot/html/nginx.sock failed (2: No such file or directory)" (req 0) |
2019/02/11 21:27:33 [notice] 25350\#0: start worker processes 2019/02/11 21:27:33 [debug] 25350\#0: channel 4:6 2019/02/11 21:27:33 [notice] 25350\#0: start worker process 25654 2019/02/11 21:27:33 [debug] 25350\#0: pass channel s:1 pid:25654 fd:4 to s:0 pid:25634 fd:3 2019/02/11 21:27:34 [debug] 25634\#0: epoll: fd:5 ev:0001 d:0000000008795DA0 2019/02/11 21:27:34 [debug] 25634\#0: channel handler 2019/02/11 21:27:34 [debug] 25634\#0: channel: 32 2019/02/11 21:27:34 [debug] 25634\#0: channel command: 1 2019/02/11 21:27:34 [debug] 25634\#0: get channel s:1 pid:25654 fd:6 ' |
stream/ssl.t | TEST 11: tls version - TLSv1 - pattern "[emerg]" should not match any line in error.log but matches line "2019/02/11 21:27:40 [emerg] 25350\#0: unlink() /home/ec2-user/git/lua-resty-core/t/servroot/html/nginx.sock failed (2: No such file or directory)" (req 0) |
2019/02/11 21:27:40 [debug] 25734\#0: epoll: fd:8 ev:0001 d:00000000093C40D0 2019/02/11 21:27:40 [debug] 25734\#0: accept on 0.0.0.0:1984, ready: 0 2019/02/11 21:27:40 [debug] 25734\#0: malloc: 0000000009A07970:48 2019/02/11 21:27:40 [debug] 25734\#0: malloc: 0000000009A079E0:16 2019/02/11 21:27:40 [debug] 25734\#0: malloc: 0000000009A07A30:16 2019/02/11 21:27:40 [debug] 25734\#0: malloc: 0000000009A07A80:80 2019/02/11 21:27:40 [debug] 25734\#0: malloc: 0000000009A07B10:16 2019/02/11 21:27:40 [debug] 25734\#0: malloc: 0000000009A07B60:15 2019/02/11 21:27:40 [debug] 25734\#0: malloc: 0000000009A07BB0:16 ' |
stream/time.t | TEST 1: ngx.now() - response_body - response is expected (repeated req 0, req 0) |
@@ -1,3 +1,3 @@ true >= 0.099: true -< 0.11: true +< 0.11: false ' |
File | Name | Details |
---|---|---|
errlog.t | TEST 11: filter log by level(ngx.INFO) - response_body - response is expected (repeated req 0, req 0) |
got: 'log lines:10 ' expected: 'log lines:3 ' |
errlog.t | TEST 11: filter log by level(ngx.INFO) - response_body - response is expected (repeated req 1, req 0) |
got: 'log lines:7 ' expected: 'log lines:3 ' |
errlog.t | TEST 22: user-supplied Lua table to hold the result (get one log + no log) - response_body_like - response is expected (maybe log lines: \#10 log level:6 log body:2019/02/11 21:16:10 [notice] 11221\#0: start worker processes log level:7 log body:2019/02/11 21:16:10 [info] 11252\#0: *22 client 127.0.0.1 closed keepalive connection log level:7 log body:2019/02/11 21:16:10 [info] 11252\#0: *23 client 127.0.0.1 closed keepalive connection log level:7 log body:2019/02/11 21:16:10 [info] 11252\#0: *24 client 127.0.0.1 closed keepalive connection log level:7 log body:2019/02/11 21:16:10 [info] 11252\#0: *25 client 127.0.0.1 closed keepalive connection log level:7 log body:2019/02/11 21:16:10 [info] 11252\#0: *26 client 127.0.0.1 closed keepalive connection log level:7 log body:2019/02/11 21:16:10 [info] 11252\#0: *27 client 127.0.0.1 closed keepalive connection log level:7 log body:2019/02/11 21:16:10 [info] 11252\#0: *28 client 127.0.0.1 closed keepalive connection log level:7 log body:2019/02/11 21:16:10 [info] 11252\#0: *29 client 127.0.0.1 closed keepalive connection log level:7 log body:2019/02/11 21:16:10 [info] 11252\#0: *30 client 127.0.0.1 closed keepalive connection end maybe log lines: \#10 log level:7 log body:2019/02/11 21:16:10 [info] 11252\#0: *31 client 127.0.0.1 closed keepalive connection log level:4 log body:2019/02/11 21:16:10 [error] 11252\#0: *32 [lua] access_by_lua(nginx.conf:66):8: --> new line, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" end) |
'maybe log lines: #10 log level:6 log body:2019/02/11 21:16:10 [notice] 11221#0: start worker processes log level:7 log body:2019/02/11 21:16:10 [info] 11252#0: *22 client 127.0.0.1 closed keepalive connection log level:7 log body:2019/02/11 21:16:10 [info] 11252#0: *23 client 127.0.0.1 closed keepalive connection log level:7 log body:2019/02/11 21:16:10 [info] 11252#0: *24 client 127.0.0.1 closed keepalive connection log level:7 log body:2019/02/11 21:16:10 [info] 11252#0: *25 client 127.0.0.1 closed keepalive connection log level:7 log body:2019/02/11 21:16:10 [info] 11252#0: *26 client 127.0.0.1 closed keepalive connection log level:7 log body:2019/02/11 21:16:10 [info] 11252#0: *27 client 127.0.0.1 closed keepalive connection log level:7 log body:2019/02/11 21:16:10 [info] 11252#0: *28 client 127.0.0.1 closed keepalive connection log level:7 log body:2019/02/11 21:16:10 [info] 11252#0: *29 client 127.0.0.1 closed keepalive connection log level:7 log body:2019/02/11 21:16:10 [info] 11252#0: *30 client 127.0.0.1 closed keepalive connection end maybe log lines: #10 log level:7 log body:2019/02/11 21:16:10 [info] 11252#0: *31 client 127.0.0.1 closed keepalive connection log level:4 log body:2019/02/11 21:16:10 [error] 11252#0: *32 [lua] access_by_lua(nginx.conf:66):8: --> new line, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" end ' 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 13: filter log by level(ngx.CRIT) - response_body - response is expected (repeated req 0, req 0) |
got: 'log lines:10 ' expected: 'log lines:0 ' |
errlog.t | TEST 13: filter log by level(ngx.CRIT) - response_body - response is expected (repeated req 1, req 0) |
got: 'log lines:1 ' expected: 'log lines:0 ' |
errlog.t | TEST 12: filter log by level(ngx.WARN) - response_body - response is expected (repeated req 0, req 0) |
got: 'log lines:10 ' expected: 'log lines:2 ' |
errlog.t | TEST 12: filter log by level(ngx.WARN) - response_body - response is expected (repeated req 1, req 0) |
got: 'log lines:5 ' expected: 'log lines:2 ' |
errlog.t | TEST 16: check the captured error log body - response_body_like - response is expected (log level:6 log body:2019/02/11 21:16:12 [notice] 11221\#0: start worker processes log level:7 log body:2019/02/11 21:16:12 [info] 11312\#0: *67 client 127.0.0.1 closed keepalive connection log level:7 log body:2019/02/11 21:16:12 [info] 11312\#0: *68 client 127.0.0.1 closed keepalive connection log level:7 log body:2019/02/11 21:16:12 [info] 11312\#0: *69 client 127.0.0.1 closed keepalive connection log level:7 log body:2019/02/11 21:16:12 [info] 11312\#0: *70 client 127.0.0.1 closed keepalive connection log level:7 log body:2019/02/11 21:16:12 [info] 11312\#0: *71 client 127.0.0.1 closed keepalive connection log level:7 log body:2019/02/11 21:16:12 [info] 11312\#0: *72 client 127.0.0.1 closed keepalive connection log level:7 log body:2019/02/11 21:16:12 [info] 11312\#0: *73 client 127.0.0.1 closed keepalive connection log level:7 log body:2019/02/11 21:16:12 [info] 11312\#0: *74 client 127.0.0.1 closed keepalive connection log level:7 log body:2019/02/11 21:16:12 [info] 11312\#0: *75 client 127.0.0.1 closed keepalive connection) |
'log level:6 log body:2019/02/11 21:16:12 [notice] 11221#0: start worker processes log level:7 log body:2019/02/11 21:16:12 [info] 11312#0: *67 client 127.0.0.1 closed keepalive connection log level:7 log body:2019/02/11 21:16:12 [info] 11312#0: *68 client 127.0.0.1 closed keepalive connection log level:7 log body:2019/02/11 21:16:12 [info] 11312#0: *69 client 127.0.0.1 closed keepalive connection log level:7 log body:2019/02/11 21:16:12 [info] 11312#0: *70 client 127.0.0.1 closed keepalive connection log level:7 log body:2019/02/11 21:16:12 [info] 11312#0: *71 client 127.0.0.1 closed keepalive connection log level:7 log body:2019/02/11 21:16:12 [info] 11312#0: *72 client 127.0.0.1 closed keepalive connection log level:7 log body:2019/02/11 21:16:12 [info] 11312#0: *73 client 127.0.0.1 closed keepalive connection log level:7 log body:2019/02/11 21:16:12 [info] 11312#0: *74 client 127.0.0.1 closed keepalive connection log level:7 log body:2019/02/11 21:16:12 [info] 11312#0: *75 client 127.0.0.1 closed keepalive connection ' doesn't match '(?^s:log level:5 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*access_by_lua\(nginx.conf:\d+\):\d+: -->2, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level:4 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*access_by_lua\(nginx.conf:\d+\):\d+: -->3, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" )' |
errlog.t | TEST 31: ringbuf sentinel bug2 - response_body - response is expected (repeated req 0, req 0) |
@@ -1,2 +1,2 @@ log lines: \#18 -log lines: \#8 +log lines: \#10 ' |
errlog.t | nginx: [emerg] | invalid capture error log size "3k", minimum size is 4096 in /home/ec2-user/git/lua-resty-core/t/servroot/conf/nginx.conf:25 |
errlog.t | TEST 29: ringbuf overflow bug - response_body_like - response is expected (log level: 4 log time: 1549919781.899 log body: 2019/02/11 21:16:21 [error] 11584\#0: *62 [lua] content_by_lua(nginx.conf:84):8: **********28, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level: 4 log time: 1549919781.899 log body: 2019/02/11 21:16:21 [error] 11584\#0: *62 [lua] content_by_lua(nginx.conf:84):8: **********29, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level: 4 log time: 1549919781.899 log body: 2019/02/11 21:16:21 [error] 11584\#0: *62 [lua] content_by_lua(nginx.conf:84):8: **********30, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level: 4 log time: 1549919781.899 log body: 2019/02/11 21:16:21 [error] 11584\#0: *62 [lua] content_by_lua(nginx.conf:84):8: **********31, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level: 4 log time: 1549919781.899 log body: 2019/02/11 21:16:21 [error] 11584\#0: *62 [lua] content_by_lua(nginx.conf:84):8: **********32, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level: 4 log time: 1549919781.899 log body: 2019/02/11 21:16:21 [error] 11584\#0: *62 [lua] content_by_lua(nginx.conf:84):8: **********33, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level: 4 log time: 1549919781.899 log body: 2019/02/11 21:16:21 [error] 11584\#0: *62 [lua] content_by_lua(nginx.conf:84):8: **********34, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level: 4 log time: 1549919781.899 log body: 2019/02/11 21:16:21 [error] 11584\#0: *62 [lua] content_by_lua(nginx.conf:84):8: **********35, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level: 4 log time: 1549919781.899 log body: 2019/02/11 21:16:21 [error] 11584\#0: *62 [lua] content_by_lua(nginx.conf:84):8: **********36, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level: 4 log time: 1549919781.899 log body: 2019/02/11 21:16:21 [error] 11584\#0: *62 [lua] content_by_lua(nginx.conf:84):8: **********37, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost") |
'log level: 4 log time: 1549919781.899 log body: 2019/02/11 21:16:21 [error] 11584#0: *62 [lua] content_by_lua(nginx.conf:84):8: **********28, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level: 4 log time: 1549919781.899 log body: 2019/02/11 21:16:21 [error] 11584#0: *62 [lua] content_by_lua(nginx.conf:84):8: **********29, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level: 4 log time: 1549919781.899 log body: 2019/02/11 21:16:21 [error] 11584#0: *62 [lua] content_by_lua(nginx.conf:84):8: **********30, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level: 4 log time: 1549919781.899 log body: 2019/02/11 21:16:21 [error] 11584#0: *62 [lua] content_by_lua(nginx.conf:84):8: **********31, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level: 4 log time: 1549919781.899 log body: 2019/02/11 21:16:21 [error] 11584#0: *62 [lua] content_by_lua(nginx.conf:84):8: **********32, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level: 4 log time: 1549919781.899 log body: 2019/02/11 21:16:21 [error] 11584#0: *62 [lua] content_by_lua(nginx.conf:84):8: **********33, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level: 4 log time: 1549919781.899 log body: 2019/02/11 21:16:21 [error] 11584#0: *62 [lua] content_by_lua(nginx.conf:84):8: **********34, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level: 4 log time: 1549919781.899 log body: 2019/02/11 21:16:21 [error] 11584#0: *62 [lua] content_by_lua(nginx.conf:84):8: **********35, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level: 4 log time: 1549919781.899 log body: 2019/02/11 21:16:21 [error] 11584#0: *62 [lua] content_by_lua(nginx.conf:84):8: **********36, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level: 4 log time: 1549919781.899 log body: 2019/02/11 21:16:21 [error] 11584#0: *62 [lua] content_by_lua(nginx.conf:84):8: **********37, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" ' 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 21: multi-line error log - response_body_like - response is expected (log lines: \#10 log level:6 log body:2019/02/11 21:16:25 [notice] 11511\#0: start worker processes log level:7 log body:2019/02/11 21:16:25 [info] 11725\#0: *157 client 127.0.0.1 closed keepalive connection log level:7 log body:2019/02/11 21:16:25 [info] 11725\#0: *158 client 127.0.0.1 closed keepalive connection log level:7 log body:2019/02/11 21:16:25 [info] 11725\#0: *159 client 127.0.0.1 closed keepalive connection log level:7 log body:2019/02/11 21:16:25 [info] 11725\#0: *160 client 127.0.0.1 closed keepalive connection log level:7 log body:2019/02/11 21:16:25 [info] 11725\#0: *161 client 127.0.0.1 closed keepalive connection log level:7 log body:2019/02/11 21:16:25 [info] 11725\#0: *162 client 127.0.0.1 closed keepalive connection log level:7 log body:2019/02/11 21:16:25 [info] 11725\#0: *163 client 127.0.0.1 closed keepalive connection log level:7 log body:2019/02/11 21:16:25 [info] 11725\#0: *164 client 127.0.0.1 closed keepalive connection log level:7 log body:2019/02/11 21:16:25 [info] 11725\#0: *165 client 127.0.0.1 closed keepalive connection) |
'log lines: #10 log level:6 log body:2019/02/11 21:16:25 [notice] 11511#0: start worker processes log level:7 log body:2019/02/11 21:16:25 [info] 11725#0: *157 client 127.0.0.1 closed keepalive connection log level:7 log body:2019/02/11 21:16:25 [info] 11725#0: *158 client 127.0.0.1 closed keepalive connection log level:7 log body:2019/02/11 21:16:25 [info] 11725#0: *159 client 127.0.0.1 closed keepalive connection log level:7 log body:2019/02/11 21:16:25 [info] 11725#0: *160 client 127.0.0.1 closed keepalive connection log level:7 log body:2019/02/11 21:16:25 [info] 11725#0: *161 client 127.0.0.1 closed keepalive connection log level:7 log body:2019/02/11 21:16:25 [info] 11725#0: *162 client 127.0.0.1 closed keepalive connection log level:7 log body:2019/02/11 21:16:25 [info] 11725#0: *163 client 127.0.0.1 closed keepalive connection log level:7 log body:2019/02/11 21:16:25 [info] 11725#0: *164 client 127.0.0.1 closed keepalive connection log level:7 log body:2019/02/11 21:16:25 [info] 11725#0: *165 client 127.0.0.1 closed keepalive connection ' doesn't match '(?^s:\Alog lines: #1 log level:4 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*access_by_lua\(nginx.conf:\d+\):\d+: --> new line, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" \z)' |
errlog.t | TEST 21: multi-line error log - response_body_like - response is expected (log lines: \#3 log level:7 log body:2019/02/11 21:16:25 [info] 11725\#0: *166 client 127.0.0.1 closed keepalive connection log level:4 log body:2019/02/11 21:16:25 [error] 11725\#0: *167 [lua] access_by_lua(nginx.conf:66):8: --> new line, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level:4 log body:2019/02/11 21:16:26 [error] 11725\#0: *168 [lua] access_by_lua(nginx.conf:66):8: --> new line, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost") |
'log lines: #3 log level:7 log body:2019/02/11 21:16:25 [info] 11725#0: *166 client 127.0.0.1 closed keepalive connection log level:4 log body:2019/02/11 21:16:25 [error] 11725#0: *167 [lua] access_by_lua(nginx.conf:66):8: --> new line, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level:4 log body:2019/02/11 21:16:26 [error] 11725#0: *168 [lua] access_by_lua(nginx.conf:66):8: --> new line, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" ' 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: [emerg] | invalid number of arguments in "lua_capture_error_log" directive in /home/ec2-user/git/lua-resty-core/t/servroot/conf/nginx.conf:25 |
ocsp.t | TEST 1: get OCSP responder (good case) - response_body - response is expected (repeated req 0, req 0) |
@@ -1,2 +1 @@ -connected: 1 +failed to connect: no such file or directory -ssl handshake: userdata ' |
ocsp.t | TEST 1: get OCSP responder (good case) - pattern "lua ssl server name: "test.com"" should match a line in error.log (req 0) | |
ocsp.t | TEST 1: get OCSP responder (good case) - pattern "OCSP url found: http://127.0.0.1:8888/ocsp?foo=1," should match a line in error.log (req 0) | |
ocsp.t | TEST 1: get OCSP responder (good case) - response_body - response is expected (repeated req 1, req 0) |
@@ -1,2 +1 @@ -connected: 1 +failed to connect: no such file or directory -ssl handshake: userdata ' |
ocsp.t | TEST 1: get OCSP responder (good case) - pattern "lua ssl server name: "test.com"" should match a line in error.log (req 1) | |
ocsp.t | TEST 1: get OCSP responder (good case) - pattern "OCSP url found: http://127.0.0.1:8888/ocsp?foo=1," should match a line in error.log (req 1) | |
ocsp.t | TEST 10: validate good OCSP response - response_body - response is expected (repeated req 0, req 0) |
@@ -1,2 +1 @@ -connected: 1 +failed to connect: no such file or directory -ssl handshake: userdata ' |
ocsp.t | TEST 10: validate good OCSP response - pattern "lua ssl server name: "test.com"" should match a line in error.log (req 0) | |
ocsp.t | TEST 10: validate good OCSP response - pattern "OCSP response validation ok" should match a line in error.log (req 0) | |
ocsp.t | TEST 10: validate good OCSP response - response_body - response is expected (repeated req 1, req 0) |
@@ -1,2 +1 @@ -connected: 1 +failed to connect: no such file or directory -ssl handshake: userdata ' |
ocsp.t | TEST 10: validate good OCSP response - pattern "lua ssl server name: "test.com"" should match a line in error.log (req 1) | |
ocsp.t | TEST 10: validate good OCSP response - pattern "OCSP response validation ok" should match a line in error.log (req 1) | |
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 @@ -connected: 1 +failed to connect: no such file or directory -ssl handshake: userdata ' |
ocsp.t | TEST 4: get OCSP responder (issuer cert not next to the leaf cert) - pattern "lua ssl server name: "test.com"" should match a line in error.log (req 0) | |
ocsp.t | TEST 4: get OCSP responder (issuer cert not next to the leaf cert) - pattern "failed to get OCSP responder: issuer certificate not next to leaf" should match a line in error.log (req 0) | |
ocsp.t | TEST 4: get OCSP responder (issuer cert not next to the leaf cert) - response_body - response is expected (repeated req 1, req 0) |
@@ -1,2 +1 @@ -connected: 1 +failed to connect: no such file or directory -ssl handshake: userdata ' |
ocsp.t | TEST 4: get OCSP responder (issuer cert not next to the leaf cert) - pattern "lua ssl server name: "test.com"" should match a line in error.log (req 1) | |
ocsp.t | TEST 4: get OCSP responder (issuer cert not next to the leaf cert) - pattern "failed to get OCSP responder: issuer certificate not next to leaf" should match a line in error.log (req 1) | |
ocsp.t | TEST 11: fail to validate OCSP response - no issuer cert - response_body - response is expected (repeated req 0, req 0) |
@@ -1,2 +1 @@ -connected: 1 +failed to connect: no such file or directory -ssl handshake: userdata ' |
ocsp.t | TEST 11: fail to validate OCSP response - no issuer cert - pattern "lua ssl server name: "test.com"" should match a line in error.log (req 0) | |
ocsp.t | TEST 11: fail to validate OCSP response - no issuer cert - pattern "failed to validate OCSP response: no issuer certificate in chain" should match a line in error.log (req 0) | |
ocsp.t | TEST 11: fail to validate OCSP response - no issuer cert - response_body - response is expected (repeated req 1, req 0) |
@@ -1,2 +1 @@ -connected: 1 +failed to connect: no such file or directory -ssl handshake: userdata ' |
ocsp.t | TEST 11: fail to validate OCSP response - no issuer cert - pattern "lua ssl server name: "test.com"" should match a line in error.log (req 1) | |
ocsp.t | TEST 11: fail to validate OCSP response - no issuer cert - pattern "failed to validate OCSP response: no issuer certificate in chain" should match a line in error.log (req 1) | |
ocsp.t | TEST 16: good status req from client - pattern "[emerg]" should not match any line in error.log but matches line "2019/02/11 21:17:15 [emerg] 12374\#0: unlink() /home/ec2-user/git/lua-resty-core/t/servroot/html/nginx.sock failed (2: No such file or directory)" (req 0) |
2019/02/11 21:17:15 [notice] 12374\#0: start worker processes 2019/02/11 21:17:15 [debug] 12374\#0: channel 4:6 2019/02/11 21:17:15 [notice] 12374\#0: start worker process 12465 2019/02/11 21:17:15 [debug] 12374\#0: pass channel s:1 pid:12465 fd:4 to s:0 pid:12444 fd:3 2019/02/11 21:17:15 [debug] 12444\#0: epoll: fd:5 ev:0001 d:000000000970F1A0 2019/02/11 21:17:15 [debug] 12444\#0: channel handler 2019/02/11 21:17:15 [debug] 12444\#0: channel: 32 2019/02/11 21:17:15 [debug] 12444\#0: channel command: 1 2019/02/11 21:17:15 [debug] 12444\#0: get channel s:1 pid:12465 fd:8 ' |
ocsp.t | TEST 8: create OCSP request (empty string cert chain) - response_body - response is expected (repeated req 0, req 0) |
@@ -1,2 +1 @@ -connected: 1 +failed to connect: no such file or directory -failed to do SSL handshake: handshake failed ' |
ocsp.t | TEST 8: create OCSP request (empty string cert chain) - pattern "lua ssl server name: "test.com"" should match a line in error.log (req 0) | |
ocsp.t | TEST 8: create OCSP request (empty string cert chain) - pattern "failed to create OCSP request: d2i_X509_bio() failed" should match a line in error.log (req 0) | |
ocsp.t | TEST 8: create OCSP request (empty string cert chain) - response_body - response is expected (repeated req 1, req 0) |
@@ -1,2 +1 @@ -connected: 1 +failed to connect: no such file or directory -failed to do SSL handshake: handshake failed ' |
ocsp.t | TEST 8: create OCSP request (empty string cert chain) - pattern "lua ssl server name: "test.com"" should match a line in error.log (req 1) | |
ocsp.t | TEST 8: create OCSP request (empty string cert chain) - pattern "failed to create OCSP request: d2i_X509_bio() failed" should match a line in error.log (req 1) | |
ocsp.t | TEST 5: get OCSP responder (truncated) - response_body - response is expected (repeated req 0, req 0) |
@@ -1,2 +1 @@ -connected: 1 +failed to connect: no such file or directory -ssl handshake: userdata ' |
ocsp.t | TEST 5: get OCSP responder (truncated) - pattern "lua ssl server name: "test.com"" should match a line in error.log (req 0) | |
ocsp.t | TEST 5: get OCSP responder (truncated) - pattern "OCSP url found: http:/," should match a line in error.log (req 0) | |
ocsp.t | TEST 5: get OCSP responder (truncated) - pattern "still get an error: truncated" should match a line in error.log (req 0) | |
ocsp.t | TEST 5: get OCSP responder (truncated) - response_body - response is expected (repeated req 1, req 0) |
@@ -1,2 +1 @@ -connected: 1 +failed to connect: no such file or directory -ssl handshake: userdata ' |
ocsp.t | TEST 5: get OCSP responder (truncated) - pattern "lua ssl server name: "test.com"" should match a line in error.log (req 1) | |
ocsp.t | TEST 5: get OCSP responder (truncated) - pattern "OCSP url found: http:/," should match a line in error.log (req 1) | |
ocsp.t | TEST 5: get OCSP responder (truncated) - pattern "still get an error: truncated" should match a line in error.log (req 1) | |
ocsp.t | TEST 3: get OCSP responder (no issuer cert at all) - response_body - response is expected (repeated req 0, req 0) |
@@ -1,2 +1 @@ -connected: 1 +failed to connect: no such file or directory -ssl handshake: userdata ' |
ocsp.t | TEST 3: get OCSP responder (no issuer cert at all) - pattern "lua ssl server name: "test.com"" should match a line in error.log (req 0) | |
ocsp.t | TEST 3: get OCSP responder (no issuer cert at all) - pattern "failed to get OCSP responder: no issuer certificate in chain" should match a line in error.log (req 0) | |
ocsp.t | TEST 3: get OCSP responder (no issuer cert at all) - response_body - response is expected (repeated req 1, req 0) |
@@ -1,2 +1 @@ -connected: 1 +failed to connect: no such file or directory -ssl handshake: userdata ' |
ocsp.t | TEST 3: get OCSP responder (no issuer cert at all) - pattern "lua ssl server name: "test.com"" should match a line in error.log (req 1) | |
ocsp.t | TEST 3: get OCSP responder (no issuer cert at all) - pattern "failed to get OCSP responder: no issuer certificate in chain" should match a line in error.log (req 1) | |
ocsp.t | TEST 15: fail to validate OCSP response - OCSP response returns revoked status - response_body - response is expected (repeated req 0, req 0) |
@@ -1,2 +1 @@ -connected: 1 +failed to connect: no such file or directory -failed to do SSL handshake: handshake failed ' |
ocsp.t | TEST 15: fail to validate OCSP response - OCSP response returns revoked status - pattern "lua ssl server name: "test.com"" should match a line in error.log (req 0) | |
ocsp.t | TEST 15: fail to validate OCSP response - OCSP response returns revoked status - pattern "failed to validate OCSP response: certificate status "revoked" in the OCSP response" should match a line in error.log (req 0) | |
ocsp.t | TEST 15: fail to validate OCSP response - OCSP response returns revoked status - response_body - response is expected (repeated req 1, req 0) |
@@ -1,2 +1 @@ -connected: 1 +failed to connect: no such file or directory -failed to do SSL handshake: handshake failed ' |
ocsp.t | TEST 15: fail to validate OCSP response - OCSP response returns revoked status - pattern "lua ssl server name: "test.com"" should match a line in error.log (req 1) | |
ocsp.t | TEST 15: fail to validate OCSP response - OCSP response returns revoked status - pattern "failed to validate OCSP response: certificate status "revoked" in the OCSP response" should match a line in error.log (req 1) | |
ocsp.t | TEST 2: get OCSP responder (not found) - response_body - response is expected (repeated req 0, req 0) |
@@ -1,2 +1 @@ -connected: 1 +failed to connect: no such file or directory -ssl handshake: userdata ' |
ocsp.t | TEST 2: get OCSP responder (not found) - pattern "lua ssl server name: "test.com"" should match a line in error.log (req 0) | |
ocsp.t | TEST 2: get OCSP responder (not found) - pattern "OCSP responder not found" should match a line in error.log (req 0) | |
ocsp.t | TEST 2: get OCSP responder (not found) - response_body - response is expected (repeated req 1, req 0) |
@@ -1,2 +1 @@ -connected: 1 +failed to connect: no such file or directory -ssl handshake: userdata ' |
ocsp.t | TEST 2: get OCSP responder (not found) - pattern "lua ssl server name: "test.com"" should match a line in error.log (req 1) | |
ocsp.t | TEST 2: get OCSP responder (not found) - pattern "OCSP responder not found" should match a line in error.log (req 1) | |
ocsp.t | TEST 17: no status req from client - pattern "[emerg]" should not match any line in error.log but matches line "2019/02/11 21:17:20 [emerg] 12374\#0: unlink() /home/ec2-user/git/lua-resty-core/t/servroot/html/nginx.sock failed (2: No such file or directory)" (req 0) |
2019/02/11 21:17:20 [notice] 12374\#0: start worker processes 2019/02/11 21:17:20 [debug] 12374\#0: channel 3:5 2019/02/11 21:17:20 [notice] 12374\#0: start worker process 12605 2019/02/11 21:17:20 [debug] 12374\#0: pass channel s:0 pid:12605 fd:3 to s:1 pid:12585 fd:4 2019/02/11 21:17:21 [debug] 12585\#0: epoll: fd:6 ev:0001 d:0000000009383FD0 2019/02/11 21:17:21 [debug] 12585\#0: channel handler 2019/02/11 21:17:21 [debug] 12585\#0: channel: 32 2019/02/11 21:17:21 [debug] 12585\#0: channel command: 1 2019/02/11 21:17:21 [debug] 12585\#0: get channel s:0 pid:12605 fd:5 ' |
ocsp.t | TEST 6: create OCSP request (good) - response_body - response is expected (repeated req 0, req 0) |
@@ -1,2 +1 @@ -connected: 1 +failed to connect: no such file or directory -ssl handshake: userdata ' |
ocsp.t | TEST 6: create OCSP request (good) - pattern "lua ssl server name: "test.com"" should match a line in error.log (req 0) | |
ocsp.t | TEST 6: create OCSP request (good) - pattern "OCSP request created with length 68" should match a line in error.log (req 0) | |
ocsp.t | TEST 6: create OCSP request (good) - response_body - response is expected (repeated req 1, req 0) |
@@ -1,2 +1 @@ -connected: 1 +failed to connect: no such file or directory -ssl handshake: userdata ' |
ocsp.t | TEST 6: create OCSP request (good) - pattern "lua ssl server name: "test.com"" should match a line in error.log (req 1) | |
ocsp.t | TEST 6: create OCSP request (good) - pattern "OCSP request created with length 68" should match a line in error.log (req 1) | |
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 @@ -connected: 1 +failed to connect: no such file or directory -ssl handshake: userdata ' |
ocsp.t | TEST 9: create OCSP request (no issuer cert in the chain) - pattern "lua ssl server name: "test.com"" should match a line in error.log (req 0) | |
ocsp.t | TEST 9: create OCSP request (no issuer cert in the chain) - pattern "failed to create OCSP request: no issuer certificate in chain" should match a line in error.log (req 0) | |
ocsp.t | TEST 9: create OCSP request (no issuer cert in the chain) - response_body - response is expected (repeated req 1, req 0) |
@@ -1,2 +1 @@ -connected: 1 +failed to connect: no such file or directory -ssl handshake: userdata ' |
ocsp.t | TEST 9: create OCSP request (no issuer cert in the chain) - pattern "lua ssl server name: "test.com"" should match a line in error.log (req 1) | |
ocsp.t | TEST 9: create OCSP request (no issuer cert in the chain) - pattern "failed to create OCSP request: no issuer certificate in chain" should match a line in error.log (req 1) | |
ocsp.t | TEST 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 @@ -connected: 1 +failed to connect: no such file or directory -ssl handshake: userdata ' |
ocsp.t | TEST 13: validate OCSP response - OCSP response signed by an unknown cert and the OCSP response contains the unknown cert - pattern "lua ssl server name: "test.com"" should match a line in error.log (req 0) | |
ocsp.t | TEST 13: validate OCSP response - OCSP response signed by an unknown cert and the OCSP response contains the unknown cert - pattern "OCSP response validation ok" should match a line in error.log (req 0) | |
ocsp.t | TEST 13: validate OCSP response - OCSP response signed by an unknown cert and the OCSP response contains the unknown cert - response_body - response is expected (repeated req 1, req 0) |
@@ -1,2 +1 @@ -connected: 1 +failed to connect: no such file or directory -ssl handshake: userdata ' |
ocsp.t | TEST 13: validate OCSP response - OCSP response signed by an unknown cert and the OCSP response contains the unknown cert - pattern "lua ssl server name: "test.com"" should match a line in error.log (req 1) | |
ocsp.t | TEST 13: validate OCSP response - OCSP response signed by an unknown cert and the OCSP response contains the unknown cert - pattern "OCSP response validation ok" should match a line in error.log (req 1) | |
request.t | TEST 7: ngx.req.start_time() - response_body - response is expected (repeated req 0, req 0) |
got: "true\x{0a}>= 0.099: true\x{0a}< 0.11: false\x{0a}" length: 34 expected: "true\x{0a}>= 0.099: true\x{0a}< 0.11: true\x{0a}" length: 33 strings begin to differ at char 29 (line 3 column 9) |
semaphore.t | TEST 39: basic semaphore count (negative number) - pattern "[error]" should not match any line in error.log but matches line "2019/02/11 21:21:50 [error] 18552\#0: *533 [lua] init_worker_by_lua:14: sem: timeout, context: ngx.timer" (req 0) |
2019/02/11 21:21:50 [debug] 18591\#0: *570 malloc: 0000000008FA30C0:6 2019/02/11 21:21:50 [debug] 18591\#0: *570 malloc: 0000000008FA3110:16 2019/02/11 21:21:50 [debug] 18591\#0: *570 http header: "Accept: */*" 2019/02/11 21:21:50 [debug] 18591\#0: *570 http header done 2019/02/11 21:21:50 [debug] 18591\#0: *570 event timer del: 4: 13552709 2019/02/11 21:21:50 [debug] 18591\#0: *570 generic phase: 0 2019/02/11 21:21:50 [debug] 18591\#0: *570 rewrite phase: 1 2019/02/11 21:21:50 [debug] 18591\#0: *570 rewrite phase: 2 2019/02/11 21:21:50 [debug] 18552\#0: http lua semaphore wait: 00000000088E2C38, timeout: 1000, resources: 0, event posted: 0 ' |
ssl-session-fetch.t | TEST 1: get resume session id serialized - response_body - response is expected (repeated req 0, req 0) |
@@ -1,3 +1 @@ -connected: 1 +failed to connect: no such file or directory -ssl handshake: userdata -close: 1 nil ' |
ssl-session-fetch.t | TEST 1: get resume session id serialized - response_body - response is expected (repeated req 1, req 0) |
@@ -1,3 +1 @@ -connected: 1 +failed to connect: no such file or directory -ssl handshake: userdata -close: 1 nil ' |
ssl-session-fetch.t | TEST 1: get resume session id serialized - grep_error_log_out (req 1) |
'' doesn't match '(?^s:ssl_session_fetch_by_lua_block:4: session id: [a-fA-f\d]+)' |
ssl-session-fetch.t | TEST 2: attempt to fetch new session in lua_ctx during resumption. - response_body - response is expected (repeated req 0, req 0) |
@@ -1,3 +1 @@ -connected: 1 +failed to connect: no such file or directory -ssl handshake: userdata -close: 1 nil ' |
ssl-session-fetch.t | TEST 2: attempt to fetch new session in lua_ctx during resumption. - response_body - response is expected (repeated req 1, req 0) |
@@ -1,3 +1 @@ -connected: 1 +failed to connect: no such file or directory -ssl handshake: userdata -close: 1 nil ' |
ssl-session-fetch.t | TEST 2: attempt to fetch new session in lua_ctx during resumption. - grep_error_log_out (req 1) |
got: '' expected: 'get session error: bad session in lua context ' |
ssl-session-fetch.t | TEST 4: attempt to resume a corrupted session - response_body - response is expected (repeated req 0, req 0) |
@@ -1,3 +1 @@ -connected: 1 +failed to connect: no such file or directory -ssl handshake: userdata -close: 1 nil ' |
ssl-session-fetch.t | TEST 4: attempt to resume a corrupted session - grep_error_log_out (req 0) |
'' doesn't match '(?^s:^ssl_session_store_by_lua_block:5: session id: [a-fA-F\d]+$)' |
ssl-session-fetch.t | TEST 4: attempt to resume a corrupted session - response_body - response is expected (repeated req 1, req 0) |
@@ -1,3 +1 @@ -connected: 1 +failed to connect: no such file or directory -ssl handshake: userdata -close: 1 nil ' |
ssl-session-fetch.t | TEST 4: attempt to resume a corrupted session - grep_error_log_out (req 1) |
'' doesn't match '(?^s:^ssl_session_fetch_by_lua_block:4: session id: [a-fA-F\d]+ failed to resume session: failed to de-serialize session ssl_session_store_by_lua_block:5: session id: [a-fA-F\d]+ $)' |
ssl-session-fetch.t | TEST 6: store new session, and resume it, avoid memory leak when calling repeatly - response_body - response is expected (repeated req 0, req 0) |
@@ -1,3 +1 @@ -connected: 1 +failed to connect: no such file or directory -ssl handshake: userdata -close: 1 nil ' |
ssl-session-fetch.t | TEST 6: store new session, and resume it, avoid memory leak when calling repeatly - response_body - response is expected (repeated req 1, req 0) |
@@ -1,3 +1 @@ -connected: 1 +failed to connect: no such file or directory -ssl handshake: userdata -close: 1 nil ' |
ssl-session-fetch.t | TEST 5: yield during doing handshake with client which uses low version OpenSSL - pattern "[emerg]" should not match any line in error.log but matches line "2019/02/11 21:22:59 [emerg] 19984\#0: unlink() /home/ec2-user/git/lua-resty-core/t/servroot/html/nginx.sock failed (2: No such file or directory)" (req 0) |
2019/02/11 21:22:59 [debug] 20055\#0: epoll: fd:7 ev:0001 d:00000000096DEAA0 2019/02/11 21:22:59 [debug] 20055\#0: accept on 0.0.0.0:1984, ready: 0 2019/02/11 21:22:59 [debug] 20055\#0: malloc: 000000000970D860:48 2019/02/11 21:22:59 [debug] 20055\#0: malloc: 000000000970D8D0:16 2019/02/11 21:22:59 [debug] 20055\#0: malloc: 000000000970D920:16 2019/02/11 21:22:59 [debug] 20055\#0: malloc: 000000000970D970:80 2019/02/11 21:22:59 [debug] 20055\#0: malloc: 000000000970DA00:16 2019/02/11 21:22:59 [debug] 20055\#0: malloc: 000000000970DA50:15 2019/02/11 21:22:59 [debug] 20055\#0: malloc: 000000000970DAA0:16 ' |
ssl-session-store.t | TEST 2: get new session id serialized - response_body - response is expected (repeated req 0, req 0) |
@@ -1,3 +1 @@ -connected: 1 +failed to connect: no such file or directory -ssl handshake: userdata -close: 1 nil ' |
ssl-session-store.t | TEST 2: get new session id serialized - pattern "(?^s:ssl_session_store_by_lua_block:4: session id: [a-fA-f\d]+)" should match a line in error.log (req 0) | |
ssl-session-store.t | TEST 2: get new session id serialized - response_body - response is expected (repeated req 1, req 0) |
@@ -1,3 +1 @@ -connected: 1 +failed to connect: no such file or directory -ssl handshake: userdata -close: 1 nil ' |
ssl-session-store.t | TEST 2: get new session id serialized - pattern "(?^s:ssl_session_store_by_lua_block:4: session id: [a-fA-f\d]+)" should match a line in error.log (req 1) | |
ssl-session-store.t | TEST 1: get new session serialized - response_body - response is expected (repeated req 0, req 0) |
@@ -1,3 +1 @@ -connected: 1 +failed to connect: no such file or directory -ssl handshake: userdata -close: 1 nil ' |
ssl-session-store.t | TEST 1: get new session serialized - pattern "(?^s:ssl_session_store_by_lua_block:4: session size: \d+)" should match a line in error.log (req 0) | |
ssl-session-store.t | TEST 1: get new session serialized - response_body - response is expected (repeated req 1, req 0) |
@@ -1,3 +1 @@ -connected: 1 +failed to connect: no such file or directory -ssl handshake: userdata -close: 1 nil ' |
ssl-session-store.t | TEST 1: get new session serialized - pattern "(?^s:ssl_session_store_by_lua_block:4: session size: \d+)" should match a line in error.log (req 1) | |
ssl.t | TEST 18: parse PEM cert and key to cdata (bad cert 2 in the chain) - response_body - response is expected (repeated req 0, req 0) |
@@ -1,2 +1 @@ -connected: 1 +failed to connect: no such file or directory -failed to do SSL handshake: handshake failed ' |
ssl.t | TEST 18: parse PEM cert and key to cdata (bad cert 2 in the chain) - pattern "(?^:\[error\] .*? failed to parse pem cert: PEM_read_bio_X509\(\) failed)" should match a line in error.log (req 0) | |
ssl.t | TEST 18: parse PEM cert and key to cdata (bad cert 2 in the chain) - pattern "[crit]" should not match any line in error.log but matches line "2019/02/11 21:23:07 [crit] 20165\#0: *22 connect() to unix:/home/ec2-user/git/lua-resty-core/t/servroot/html/nginx.sock failed (2: No such file or directory), client: 127.0.0.1, server: localhost, request: \"GET /t HTTP/1.1\", host: \"localhost\"" (req 0) |
2019/02/11 21:23:07 [debug] 20165\#0: *22 reusable connection: 0 2019/02/11 21:23:07 [debug] 20165\#0: *22 malloc: 0000000008BEEBD0:24 2019/02/11 21:23:07 [debug] 20165\#0: *22 malloc: 0000000008BEEC30:16 2019/02/11 21:23:07 [debug] 20165\#0: *22 http cleanup add: 0000000008BEEBD0 2019/02/11 21:23:07 [debug] 20165\#0: *22 lua tcp socket connect: -5 2019/02/11 21:23:07 [debug] 20165\#0: *22 lua tcp socket error retval handler 2019/02/11 21:23:07 [debug] 20165\#0: *22 lua finalize socket 2019/02/11 21:23:07 [debug] 20165\#0: *22 lua http cleanup free: 0000000008BEEBD0 2019/02/11 21:23:07 [debug] 20165\#0: *22 malloc: 0000000008BEECF0:16 ' |
ssl.t | TEST 18: parse PEM cert and key to cdata (bad cert 2 in the chain) - response_body - response is expected (repeated req 1, req 0) |
@@ -1,2 +1 @@ -connected: 1 +failed to connect: no such file or directory -failed to do SSL handshake: handshake failed ' |
ssl.t | TEST 18: parse PEM cert and key to cdata (bad cert 2 in the chain) - pattern "(?^:\[error\] .*? failed to parse pem cert: PEM_read_bio_X509\(\) failed)" should match a line in error.log (req 1) | |
ssl.t | TEST 18: parse PEM cert and key to cdata (bad cert 2 in the chain) - pattern "[crit]" should not match any line in error.log but matches line "2019/02/11 21:23:07 [crit] 20165\#0: *24 connect() to unix:/home/ec2-user/git/lua-resty-core/t/servroot/html/nginx.sock failed (2: No such file or directory), client: 127.0.0.1, server: localhost, request: \"GET /t HTTP/1.1\", host: \"localhost\"" (req 1) |
2019/02/11 21:23:07 [debug] 20165\#0: *24 reusable connection: 0 2019/02/11 21:23:07 [debug] 20165\#0: *24 malloc: 0000000008BF2610:24 2019/02/11 21:23:07 [debug] 20165\#0: *24 malloc: 0000000008BF2670:16 2019/02/11 21:23:07 [debug] 20165\#0: *24 http cleanup add: 0000000008BF2610 2019/02/11 21:23:07 [debug] 20165\#0: *24 lua tcp socket connect: -5 2019/02/11 21:23:07 [debug] 20165\#0: *24 lua tcp socket error retval handler 2019/02/11 21:23:07 [debug] 20165\#0: *24 lua finalize socket 2019/02/11 21:23:07 [debug] 20165\#0: *24 lua http cleanup free: 0000000008BF2610 2019/02/11 21:23:07 [debug] 20165\#0: *24 malloc: 0000000008BF26C0:16 ' |
ssl.t | TEST 4: read SNI name via ssl.server_name() when no SNI name specified - response_body - response is expected (repeated req 0, req 0) |
@@ -1,11 +1 @@ -connected: 1 +failed to connect: no such file or directory -ssl handshake: userdata -sent http request: 56 bytes. -received: HTTP/1.1 201 Created -received: Server: nginx -received: Content-Type: text/plain -received: Content-Length: 4 -received: Connection: close -received: -received: foo -close: 1 nil ' |
ssl.t | TEST 4: read SNI name via ssl.server_name() when no SNI name specified - pattern "read SNI name from Lua: nil, type: nil" should match a line in error.log (req 0) | |
ssl.t | TEST 4: read SNI name via ssl.server_name() when no SNI name specified - response_body - response is expected (repeated req 1, req 0) |
@@ -1,11 +1 @@ -connected: 1 +failed to connect: no such file or directory -ssl handshake: userdata -sent http request: 56 bytes. -received: HTTP/1.1 201 Created -received: Server: nginx -received: Content-Type: text/plain -received: Content-Length: 4 -received: Connection: close -received: -received: foo -close: 1 nil ' |
ssl.t | TEST 4: read SNI name via ssl.server_name() when no SNI name specified - pattern "read SNI name from Lua: nil, type: nil" should match a line in error.log (req 1) | |
ssl.t | TEST 12: tls version - TLSv1.1 - pattern "[emerg]" should not match any line in error.log but matches line "2019/02/11 21:23:07 [emerg] 20154\#0: unlink() /home/ec2-user/git/lua-resty-core/t/servroot/html/nginx.sock failed (2: No such file or directory)" (req 0) |
2019/02/11 21:23:07 [notice] 20154\#0: start worker processes 2019/02/11 21:23:07 [debug] 20154\#0: channel 4:6 2019/02/11 21:23:07 [notice] 20154\#0: start worker process 20204 2019/02/11 21:23:07 [debug] 20154\#0: pass channel s:1 pid:20204 fd:4 to s:0 pid:20184 fd:3 2019/02/11 21:23:08 [debug] 20184\#0: epoll: fd:5 ev:0001 d:0000000008F8A270 2019/02/11 21:23:08 [debug] 20184\#0: channel handler 2019/02/11 21:23:08 [debug] 20184\#0: channel: 32 2019/02/11 21:23:08 [debug] 20184\#0: channel command: 1 2019/02/11 21:23:08 [debug] 20184\#0: get channel s:1 pid:20204 fd:8 ' |
ssl.t | TEST 14: ngx.semaphore in ssl_certificate_by_lua* - pattern "[emerg]" should not match any line in error.log but matches line "2019/02/11 21:23:10 [emerg] 20154\#0: unlink() /home/ec2-user/git/lua-resty-core/t/servroot/html/nginx.sock failed (2: No such file or directory)" (req 0) |
2019/02/11 21:23:10 [notice] 20154\#0: start worker processes 2019/02/11 21:23:10 [debug] 20154\#0: channel 4:6 2019/02/11 21:23:10 [notice] 20154\#0: start worker process 20245 2019/02/11 21:23:10 [debug] 20154\#0: pass channel s:1 pid:20245 fd:4 to s:0 pid:20224 fd:3 2019/02/11 21:23:10 [debug] 20224\#0: epoll: fd:5 ev:0001 d:0000000009711760 2019/02/11 21:23:10 [debug] 20224\#0: channel handler 2019/02/11 21:23:10 [debug] 20224\#0: channel: 32 2019/02/11 21:23:10 [debug] 20224\#0: channel command: 1 2019/02/11 21:23:10 [debug] 20224\#0: get channel s:1 pid:20245 fd:6 ' |
ssl.t | TEST 1: clear certs - response_body - response is expected (repeated req 0, req 0) |
@@ -1,2 +1 @@ -connected: 1 +failed to connect: no such file or directory -failed to do SSL handshake: handshake failed ' |
ssl.t | TEST 1: clear certs - pattern "lua ssl server name: "test.com"" should match a line in error.log (req 0) | |
ssl.t | TEST 1: clear certs - pattern "sslv3 alert handshake failure" should match a line in error.log (req 0) | |
ssl.t | TEST 1: clear certs - response_body - response is expected (repeated req 1, req 0) |
@@ -1,2 +1 @@ -connected: 1 +failed to connect: no such file or directory -failed to do SSL handshake: handshake failed ' |
ssl.t | TEST 1: clear certs - pattern "lua ssl server name: "test.com"" should match a line in error.log (req 1) | |
ssl.t | TEST 1: clear certs - pattern "sslv3 alert handshake failure" should match a line in error.log (req 1) | |
ssl.t | TEST 2: set DER cert and private key - response_body - response is expected (repeated req 0, req 0) |
@@ -1,11 +1 @@ -connected: 1 +failed to connect: no such file or directory -ssl handshake: userdata -sent http request: 56 bytes. -received: HTTP/1.1 201 Created -received: Server: nginx -received: Content-Type: text/plain -received: Content-Length: 4 -received: Connection: close -received: -received: foo -close: 1 nil ' |
ssl.t | TEST 2: set DER cert and private key - pattern "lua ssl server name: "test.com"" should match a line in error.log (req 0) | |
ssl.t | TEST 2: set DER cert and private key - response_body - response is expected (repeated req 1, req 0) |
@@ -1,11 +1 @@ -connected: 1 +failed to connect: no such file or directory -ssl handshake: userdata -sent http request: 56 bytes. -received: HTTP/1.1 201 Created -received: Server: nginx -received: Content-Type: text/plain -received: Content-Length: 4 -received: Connection: close -received: -received: foo -close: 1 nil ' |
ssl.t | TEST 2: set DER cert and private key - pattern "lua ssl server name: "test.com"" should match a line in error.log (req 1) | |
ssl.t | TEST 10: tls version - SSLv3 - pattern "[emerg]" should not match any line in error.log but matches line "2019/02/11 21:23:17 [emerg] 20154\#0: unlink() /home/ec2-user/git/lua-resty-core/t/servroot/html/nginx.sock failed (2: No such file or directory)" (req 0) |
2019/02/11 21:23:17 [debug] 20355\#0: epoll: fd:6 ev:0001 d:0000000008FC1B90 2019/02/11 21:23:17 [debug] 20355\#0: *201 http wait request handler 2019/02/11 21:23:17 [debug] 20355\#0: *201 malloc: 00000000097920D0:80 2019/02/11 21:23:17 [debug] 20355\#0: *201 malloc: 000000000979EF30:16 2019/02/11 21:23:17 [debug] 20355\#0: *201 malloc: 0000000008FE25F0:1024 2019/02/11 21:23:17 [debug] 20355\#0: *201 malloc: 000000000979EF80:16 2019/02/11 21:23:17 [debug] 20355\#0: *201 recv: eof:0, avail:1 2019/02/11 21:23:17 [debug] 20355\#0: *201 recv: fd:6 77 of 1024 2019/02/11 21:23:17 [debug] 20355\#0: *201 reusable connection: 0 ' |
ssl.t | TEST 11: tls version - TLSv1 - pattern "[emerg]" should not match any line in error.log but matches line "2019/02/11 21:23:19 [emerg] 20154\#0: unlink() /home/ec2-user/git/lua-resty-core/t/servroot/html/nginx.sock failed (2: No such file or directory)" (req 0) |
2019/02/11 21:23:19 [debug] 20396\#0: *243 malloc: 0000000008527A50:16 2019/02/11 21:23:19 [debug] 20396\#0: *243 malloc: 00000000086D8180:10 2019/02/11 21:23:19 [debug] 20396\#0: *243 malloc: 00000000086D81D0:16 2019/02/11 21:23:19 [debug] 20396\#0: *243 http header: "Host: Test-Nginx" 2019/02/11 21:23:19 [debug] 20396\#0: *243 malloc: 00000000086D9B30:10 2019/02/11 21:23:19 [debug] 20396\#0: *243 malloc: 00000000086D9B80:16 2019/02/11 21:23:19 [debug] 20396\#0: *243 http header: "User-Agent: curl/7.53.1" 2019/02/11 21:23:19 [debug] 20396\#0: *243 malloc: 00000000086E8BA0:6 2019/02/11 21:23:19 [debug] 20396\#0: *243 malloc: 00000000086E8BF0:16 ' |
ssl.t | TEST 17: parse PEM cert and key to cdata (bad cert 0 in the chain) - response_body - response is expected (repeated req 0, req 0) |
@@ -1,2 +1 @@ -connected: 1 +failed to connect: no such file or directory -failed to do SSL handshake: handshake failed ' |
ssl.t | TEST 17: parse PEM cert and key to cdata (bad cert 0 in the chain) - pattern "(?^:\[error\] .*? failed to parse pem cert: PEM_read_bio_X509_AUX\(\) failed)" should match a line in error.log (req 0) | |
ssl.t | TEST 17: parse PEM cert and key to cdata (bad cert 0 in the chain) - pattern "[crit]" should not match any line in error.log but matches line "2019/02/11 21:23:29 [crit] 20561\#0: *403 connect() to unix:/home/ec2-user/git/lua-resty-core/t/servroot/html/nginx.sock failed (2: No such file or directory), client: 127.0.0.1, server: localhost, request: \"GET /t HTTP/1.1\", host: \"localhost\"" (req 0) |
2019/02/11 21:23:29 [debug] 20561\#0: *403 reusable connection: 0 2019/02/11 21:23:29 [debug] 20561\#0: *403 malloc: 000000000973C950:24 2019/02/11 21:23:29 [debug] 20561\#0: *403 malloc: 00000000097A3DA0:16 2019/02/11 21:23:29 [debug] 20561\#0: *403 http cleanup add: 000000000973C950 2019/02/11 21:23:29 [debug] 20561\#0: *403 lua tcp socket connect: -5 2019/02/11 21:23:29 [debug] 20561\#0: *403 lua tcp socket error retval handler 2019/02/11 21:23:29 [debug] 20561\#0: *403 lua finalize socket 2019/02/11 21:23:29 [debug] 20561\#0: *403 lua http cleanup free: 000000000973C950 2019/02/11 21:23:29 [debug] 20561\#0: *403 malloc: 00000000097A3F80:16 ' |
ssl.t | TEST 17: parse PEM cert and key to cdata (bad cert 0 in the chain) - response_body - response is expected (repeated req 1, req 0) |
@@ -1,2 +1 @@ -connected: 1 +failed to connect: no such file or directory -failed to do SSL handshake: handshake failed ' |
ssl.t | TEST 17: parse PEM cert and key to cdata (bad cert 0 in the chain) - pattern "(?^:\[error\] .*? failed to parse pem cert: PEM_read_bio_X509_AUX\(\) failed)" should match a line in error.log (req 1) | |
ssl.t | TEST 17: parse PEM cert and key to cdata (bad cert 0 in the chain) - pattern "[crit]" should not match any line in error.log but matches line "2019/02/11 21:23:29 [crit] 20561\#0: *405 connect() to unix:/home/ec2-user/git/lua-resty-core/t/servroot/html/nginx.sock failed (2: No such file or directory), client: 127.0.0.1, server: localhost, request: \"GET /t HTTP/1.1\", host: \"localhost\"" (req 1) |
2019/02/11 21:23:29 [debug] 20561\#0: *405 reusable connection: 0 2019/02/11 21:23:29 [debug] 20561\#0: *405 malloc: 0000000009BCDC30:24 2019/02/11 21:23:29 [debug] 20561\#0: *405 malloc: 0000000009BCDC90:16 2019/02/11 21:23:29 [debug] 20561\#0: *405 http cleanup add: 0000000009BCDC30 2019/02/11 21:23:29 [debug] 20561\#0: *405 lua tcp socket connect: -5 2019/02/11 21:23:29 [debug] 20561\#0: *405 lua tcp socket error retval handler 2019/02/11 21:23:29 [debug] 20561\#0: *405 lua finalize socket 2019/02/11 21:23:29 [debug] 20561\#0: *405 lua http cleanup free: 0000000009BCDC30 2019/02/11 21:23:29 [debug] 20561\#0: *405 malloc: 0000000009BCDCE0:16 ' |
time.t | TEST 1: ngx.now() - response_body - response is expected (repeated req 0, req 0) |
@@ -1,3 +1,3 @@ true >= 0.099: true -< 0.11: true +< 0.11: false ' |
Go back to the index page.