(This page was automatically generated by the tools in the opsboy project on 20:25:04 06-Feb-2019 GMT.)
Commit | Testing Time | Unexpected Failures |
Expected Failures |
Files | Tests | Elapsed Time |
---|---|---|---|---|---|---|
c5d624c5 | 2019-02-06 07:45:34 GMT | 53 | 156 | 71 | 8019 | 342 sec |
File | Name | Details |
---|---|---|
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:16 loop] [TRACE 2 init_worker_by_lua:4 loop] [TRACE 2 content_by_lua(nginx.conf:83):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:16 loop\] \[TRACE\s+\d+ init_worker_by_lua:4 loop\] \[TRACE\s+\d+ content_by_lua\(nginx.conf:83\):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:16 loop] [TRACE 2 init_worker_by_lua:4 loop] [TRACE 2 content_by_lua(nginx.conf:83):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:16 loop\] \[TRACE\s+\d+ init_worker_by_lua:4 loop\] \[TRACE\s+\d+ content_by_lua\(nginx.conf:83\):4 loop\] process type in init_by_lua\*: single init_worker_by_lua:10: process type: single )' |
stream/errlog.t | TEST 18: flood the capturing buffer (5k) - response_body_like - response is expected (log lines: \#32 log level:5 log body:2019/02/06 08:55:58 [warn] 15277\#15277: *3 stream [lua] content_by_lua(nginx.conf:51):10: --> 85, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/06 08:55:58 [error] 15277\#15277: *3 stream [lua] content_by_lua(nginx.conf:51):11: --> 85, client: 127.0.0.1, server: 0.0.0.0:1985 log level:5 log body:2019/02/06 08:55:58 [warn] 15277\#15277: *3 stream [lua] content_by_lua(nginx.conf:51):10: --> 86, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/06 08:55:58 [error] 15277\#15277: *3 stream [lua] content_by_lua(nginx.conf:51):11: --> 99, client: 127.0.0.1, server: 0.0.0.0:1985 log level:5 log body:2019/02/06 08:55:58 [warn] 15277\#15277: *3 stream [lua] content_by_lua(nginx.conf:51):10: --> 100, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/06 08:55:58 [error] 15277\#15277: *3 stream [lua] content_by_lua(nginx.conf:51):11: --> 100, client: 127.0.0.1, server: 0.0.0.0:1985) |
'log lines: #32 log level:5 log body:2019/02/06 08:55:58 [warn] 15277#15277: *3 stream [lua] content_by_lua(nginx.conf:51):10: --> 85, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/06 08:55:58 [error] 15277#15277: *3 stream [lua] content_by_lua(nginx.conf:51):11: --> 85, client: 127.0.0.1, server: 0.0.0.0:1985 log level:5 log body:2019/02/06 08:55:58 [warn] 15277#15277: *3 stream [lua] content_by_lua(nginx.conf:51):10: --> 86, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/06 08:55:58 [error] 15277#15277: *3 stream [lua] content_by_lua(nginx.conf:51):11: --> 99, client: 127.0.0.1, server: 0.0.0.0:1985 log level:5 log body:2019/02/06 08:55:58 [warn] 15277#15277: *3 stream [lua] content_by_lua(nginx.conf:51):10: --> 100, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/06 08:55:58 [error] 15277#15277: *3 stream [lua] content_by_lua(nginx.conf:51):11: --> 100, client: 127.0.0.1, server: 0.0.0.0:1985 ' doesn't match '(?^s:\A(?:log lines: #33 log level:4 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*content_by_lua\(nginx.conf:\d+\):\d+: --> 84, client: 127.0.0.1, server: 0.0.0.0:\d+ log level:5 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*content_by_lua\(nginx.conf:\d+\):\d+: --> 85, client: 127.0.0.1, server: 0.0.0.0:\d+ log level:4 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*content_by_lua\(nginx.conf:\d+\):\d+: --> 85, client: 127.0.0.1, server: 0.0.0.0:\d+ log level:4 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*content_by_lua\(nginx.conf:\d+\):\d+: --> 99, client: 127.0.0.1, server: 0.0.0.0:\d+ log level:5 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*content_by_lua\(nginx.conf:\d+\):\d+: --> 100, client: 127.0.0.1, server: 0.0.0.0:\d+ log level:4 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*content_by_lua\(nginx.conf:\d+\):\d+: --> 100, client: 127.0.0.1, server: 0.0.0.0:\d+ )\z)' |
stream/errlog.t | TEST 18: flood the capturing buffer (5k) - response_body_like - response is expected (log lines: \#32 log level:5 log body:2019/02/06 08:55:59 [warn] 15277\#15277: *6 stream [lua] content_by_lua(nginx.conf:51):10: --> 85, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/06 08:55:59 [error] 15277\#15277: *6 stream [lua] content_by_lua(nginx.conf:51):11: --> 85, client: 127.0.0.1, server: 0.0.0.0:1985 log level:5 log body:2019/02/06 08:55:59 [warn] 15277\#15277: *6 stream [lua] content_by_lua(nginx.conf:51):10: --> 86, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/06 08:55:59 [error] 15277\#15277: *6 stream [lua] content_by_lua(nginx.conf:51):11: --> 99, client: 127.0.0.1, server: 0.0.0.0:1985 log level:5 log body:2019/02/06 08:55:59 [warn] 15277\#15277: *6 stream [lua] content_by_lua(nginx.conf:51):10: --> 100, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/06 08:55:59 [error] 15277\#15277: *6 stream [lua] content_by_lua(nginx.conf:51):11: --> 100, client: 127.0.0.1, server: 0.0.0.0:1985) |
'log lines: #32 log level:5 log body:2019/02/06 08:55:59 [warn] 15277#15277: *6 stream [lua] content_by_lua(nginx.conf:51):10: --> 85, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/06 08:55:59 [error] 15277#15277: *6 stream [lua] content_by_lua(nginx.conf:51):11: --> 85, client: 127.0.0.1, server: 0.0.0.0:1985 log level:5 log body:2019/02/06 08:55:59 [warn] 15277#15277: *6 stream [lua] content_by_lua(nginx.conf:51):10: --> 86, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/06 08:55:59 [error] 15277#15277: *6 stream [lua] content_by_lua(nginx.conf:51):11: --> 99, client: 127.0.0.1, server: 0.0.0.0:1985 log level:5 log body:2019/02/06 08:55:59 [warn] 15277#15277: *6 stream [lua] content_by_lua(nginx.conf:51):10: --> 100, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/06 08:55:59 [error] 15277#15277: *6 stream [lua] content_by_lua(nginx.conf:51):11: --> 100, client: 127.0.0.1, server: 0.0.0.0:1985 ' doesn't match '(?^s:\A(?:log lines: #33 log level:4 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*content_by_lua\(nginx.conf:\d+\):\d+: --> 84, client: 127.0.0.1, server: 0.0.0.0:\d+ log level:5 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*content_by_lua\(nginx.conf:\d+\):\d+: --> 85, client: 127.0.0.1, server: 0.0.0.0:\d+ log level:4 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*content_by_lua\(nginx.conf:\d+\):\d+: --> 85, client: 127.0.0.1, server: 0.0.0.0:\d+ log level:4 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*content_by_lua\(nginx.conf:\d+\):\d+: --> 99, client: 127.0.0.1, server: 0.0.0.0:\d+ log level:5 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*content_by_lua\(nginx.conf:\d+\):\d+: --> 100, client: 127.0.0.1, server: 0.0.0.0:\d+ log level:4 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*content_by_lua\(nginx.conf:\d+\):\d+: --> 100, client: 127.0.0.1, server: 0.0.0.0:\d+ )\z)' |
stream/errlog.t | TEST 19: fetch a few and generate a few, then fetch again (overflown again) - response_body_like - response is expected (msg count: 3 log level:5 log body:2019/02/06 08:55:59 [warn] 15303\#15303: *39 stream [lua] content_by_lua(nginx.conf:66):10: --> 85, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/06 08:55:59 [error] 15303\#15303: *39 stream [lua] content_by_lua(nginx.conf:66):11: --> 85, client: 127.0.0.1, server: 0.0.0.0:1985 log level:5 log body:2019/02/06 08:55:59 [warn] 15303\#15303: *39 stream [lua] content_by_lua(nginx.conf:66):10: --> 86, client: 127.0.0.1, server: 0.0.0.0:1985 msg count: 3 log level:5 log body:2019/02/06 08:55:59 [warn] 15303\#15303: *39 stream [lua] content_by_lua(nginx.conf:66):10: --> 87, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/06 08:55:59 [error] 15303\#15303: *39 stream [lua] content_by_lua(nginx.conf:66):11: --> 87, client: 127.0.0.1, server: 0.0.0.0:1985 log level:5 log body:2019/02/06 08:55:59 [warn] 15303\#15303: *39 stream [lua] content_by_lua(nginx.conf:66):10: --> 88, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/06 08:55:59 [error] 15303\#15303: *39 stream [lua] content_by_lua(nginx.conf:66):24: --> 102, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/06 08:55:59 [error] 15303\#15303: *39 stream [lua] content_by_lua(nginx.conf:66):25: --> 103, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/06 08:55:59 [error] 15303\#15303: *39 stream [lua] content_by_lua(nginx.conf:66):26: --> 104, client: 127.0.0.1, server: 0.0.0.0:1985) |
'msg count: 3 log level:5 log body:2019/02/06 08:55:59 [warn] 15303#15303: *39 stream [lua] content_by_lua(nginx.conf:66):10: --> 85, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/06 08:55:59 [error] 15303#15303: *39 stream [lua] content_by_lua(nginx.conf:66):11: --> 85, client: 127.0.0.1, server: 0.0.0.0:1985 log level:5 log body:2019/02/06 08:55:59 [warn] 15303#15303: *39 stream [lua] content_by_lua(nginx.conf:66):10: --> 86, client: 127.0.0.1, server: 0.0.0.0:1985 msg count: 3 log level:5 log body:2019/02/06 08:55:59 [warn] 15303#15303: *39 stream [lua] content_by_lua(nginx.conf:66):10: --> 87, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/06 08:55:59 [error] 15303#15303: *39 stream [lua] content_by_lua(nginx.conf:66):11: --> 87, client: 127.0.0.1, server: 0.0.0.0:1985 log level:5 log body:2019/02/06 08:55:59 [warn] 15303#15303: *39 stream [lua] content_by_lua(nginx.conf:66):10: --> 88, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/06 08:55:59 [error] 15303#15303: *39 stream [lua] content_by_lua(nginx.conf:66):24: --> 102, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/06 08:55:59 [error] 15303#15303: *39 stream [lua] content_by_lua(nginx.conf:66):25: --> 103, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/06 08:55:59 [error] 15303#15303: *39 stream [lua] content_by_lua(nginx.conf:66):26: --> 104, client: 127.0.0.1, server: 0.0.0.0:1985 ' doesn't match '(?^s:\Amsg count: 3 log level:4 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 84, client: 127.0.0.1, server: 0.0.0.0:\d+ log level:5 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 85, client: 127.0.0.1, server: 0.0.0.0:\d+ log level:4 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 85, client: 127.0.0.1, server: 0.0.0.0:\d+ msg count: 3 log level:5 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 86, client: 127.0.0.1, server: 0.0.0.0:\d+ log level:4 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 86, client: 127.0.0.1, server: 0.0.0.0:\d+ log level:5 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 87, client: 127.0.0.1, server: 0.0.0.0:\d+ log level:4 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 102, client: 127.0.0.1, server: 0.0.0.0:\d+ log level:4 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 103, client: 127.0.0.1, server: 0.0.0.0:\d+ log level:4 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 104, client: 127.0.0.1, server: 0.0.0.0:\d+ |msg count: 3 log level:4 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 84, client: 127.0.0.1, server: 0.0.0.0:\d+ log level:5 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 85, client: 127.0.0.1, server: 0.0.0.0:\d+ log level:4 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 85, client: 127.0.0.1, server: 0.0.0.0:\d+ msg count: 3 log level:5 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 87, client: 127.0.0.1, server: 0.0.0.0:\d+ log level:4 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 87, client: 127.0.0.1, server: 0.0.0.0:\d+ log level:5 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 88, client: 127.0.0.1, server: 0.0.0.0:\d+ log level:4 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 102, client: 127.0.0.1, server: 0.0.0.0:\d+ log level:4 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 103, client: 127.0.0.1, server: 0.0.0.0:\d+ log level:4 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 104, client: 127.0.0.1, server: 0.0.0.0:\d+ \z)' |
stream/errlog.t | TEST 19: fetch a few and generate a few, then fetch again (overflown again) - response_body_like - response is expected (msg count: 3 log level:5 log body:2019/02/06 08:55:59 [warn] 15303\#15303: *42 stream [lua] content_by_lua(nginx.conf:66):10: --> 85, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/06 08:55:59 [error] 15303\#15303: *42 stream [lua] content_by_lua(nginx.conf:66):11: --> 85, client: 127.0.0.1, server: 0.0.0.0:1985 log level:5 log body:2019/02/06 08:55:59 [warn] 15303\#15303: *42 stream [lua] content_by_lua(nginx.conf:66):10: --> 86, client: 127.0.0.1, server: 0.0.0.0:1985 msg count: 3 log level:5 log body:2019/02/06 08:55:59 [warn] 15303\#15303: *42 stream [lua] content_by_lua(nginx.conf:66):10: --> 87, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/06 08:55:59 [error] 15303\#15303: *42 stream [lua] content_by_lua(nginx.conf:66):11: --> 87, client: 127.0.0.1, server: 0.0.0.0:1985 log level:5 log body:2019/02/06 08:55:59 [warn] 15303\#15303: *42 stream [lua] content_by_lua(nginx.conf:66):10: --> 88, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/06 08:55:59 [error] 15303\#15303: *42 stream [lua] content_by_lua(nginx.conf:66):24: --> 102, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/06 08:55:59 [error] 15303\#15303: *42 stream [lua] content_by_lua(nginx.conf:66):25: --> 103, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/06 08:55:59 [error] 15303\#15303: *42 stream [lua] content_by_lua(nginx.conf:66):26: --> 104, client: 127.0.0.1, server: 0.0.0.0:1985) |
'msg count: 3 log level:5 log body:2019/02/06 08:55:59 [warn] 15303#15303: *42 stream [lua] content_by_lua(nginx.conf:66):10: --> 85, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/06 08:55:59 [error] 15303#15303: *42 stream [lua] content_by_lua(nginx.conf:66):11: --> 85, client: 127.0.0.1, server: 0.0.0.0:1985 log level:5 log body:2019/02/06 08:55:59 [warn] 15303#15303: *42 stream [lua] content_by_lua(nginx.conf:66):10: --> 86, client: 127.0.0.1, server: 0.0.0.0:1985 msg count: 3 log level:5 log body:2019/02/06 08:55:59 [warn] 15303#15303: *42 stream [lua] content_by_lua(nginx.conf:66):10: --> 87, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/06 08:55:59 [error] 15303#15303: *42 stream [lua] content_by_lua(nginx.conf:66):11: --> 87, client: 127.0.0.1, server: 0.0.0.0:1985 log level:5 log body:2019/02/06 08:55:59 [warn] 15303#15303: *42 stream [lua] content_by_lua(nginx.conf:66):10: --> 88, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/06 08:55:59 [error] 15303#15303: *42 stream [lua] content_by_lua(nginx.conf:66):24: --> 102, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/06 08:55:59 [error] 15303#15303: *42 stream [lua] content_by_lua(nginx.conf:66):25: --> 103, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/06 08:55:59 [error] 15303#15303: *42 stream [lua] content_by_lua(nginx.conf:66):26: --> 104, client: 127.0.0.1, server: 0.0.0.0:1985 ' doesn't match '(?^s:\Amsg count: 3 log level:4 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 84, client: 127.0.0.1, server: 0.0.0.0:\d+ log level:5 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 85, client: 127.0.0.1, server: 0.0.0.0:\d+ log level:4 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 85, client: 127.0.0.1, server: 0.0.0.0:\d+ msg count: 3 log level:5 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 86, client: 127.0.0.1, server: 0.0.0.0:\d+ log level:4 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 86, client: 127.0.0.1, server: 0.0.0.0:\d+ log level:5 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 87, client: 127.0.0.1, server: 0.0.0.0:\d+ log level:4 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 102, client: 127.0.0.1, server: 0.0.0.0:\d+ log level:4 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 103, client: 127.0.0.1, server: 0.0.0.0:\d+ log level:4 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 104, client: 127.0.0.1, server: 0.0.0.0:\d+ |msg count: 3 log level:4 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 84, client: 127.0.0.1, server: 0.0.0.0:\d+ log level:5 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 85, client: 127.0.0.1, server: 0.0.0.0:\d+ log level:4 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 85, client: 127.0.0.1, server: 0.0.0.0:\d+ msg count: 3 log level:5 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 87, client: 127.0.0.1, server: 0.0.0.0:\d+ log level:4 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 87, client: 127.0.0.1, server: 0.0.0.0:\d+ log level:5 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 88, client: 127.0.0.1, server: 0.0.0.0:\d+ log level:4 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 102, client: 127.0.0.1, server: 0.0.0.0:\d+ log level:4 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 103, client: 127.0.0.1, server: 0.0.0.0:\d+ log level:4 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 104, client: 127.0.0.1, server: 0.0.0.0:\d+ \z)' |
stream/errlog.t | TEST 31: ringbuf sentinel bug2 - response_body_like - response is expected (log lines: \#18 log lines: \#3) |
'log lines: #18 log lines: #3 ' doesn't match '(?^s:\A(?:log lines: #18 log lines: #1 |log lines: #18 log lines: #2 )\z)' |
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/06 08:56:00 [notice] 15276\#15276: start worker processes log level:4 log body:2019/02/06 08:56:00 [error] 15341\#15341: *76 stream [lua] content_by_lua(nginx.conf:40):8: --> new line, client: 127.0.0.1, server: 0.0.0.0:1985) |
'log lines: #2 log level:6 log body:2019/02/06 08:56:00 [notice] 15276#15276: start worker processes log level:4 log body:2019/02/06 08:56:00 [error] 15341#15341: *76 stream [lua] content_by_lua(nginx.conf:40):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 20: fetch a few and generate a few, then fetch again (not overflown again) - response_body_like - response is expected (msg count: 3 log level:5 log body:2019/02/06 08:56:00 [warn] 15361\#15361: *95 stream [lua] content_by_lua(nginx.conf:64):10: --> 85, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/06 08:56:00 [error] 15361\#15361: *95 stream [lua] content_by_lua(nginx.conf:64):11: --> 85, client: 127.0.0.1, server: 0.0.0.0:1985 log level:5 log body:2019/02/06 08:56:00 [warn] 15361\#15361: *95 stream [lua] content_by_lua(nginx.conf:64):10: --> 86, client: 127.0.0.1, server: 0.0.0.0:1985 msg count: 3 log level:4 log body:2019/02/06 08:56:00 [error] 15361\#15361: *95 stream [lua] content_by_lua(nginx.conf:64):11: --> 86, client: 127.0.0.1, server: 0.0.0.0:1985 log level:5 log body:2019/02/06 08:56:00 [warn] 15361\#15361: *95 stream [lua] content_by_lua(nginx.conf:64):10: --> 87, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/06 08:56:00 [error] 15361\#15361: *95 stream [lua] content_by_lua(nginx.conf:64):11: --> 87, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/06 08:56:00 [error] 15361\#15361: *95 stream [lua] content_by_lua(nginx.conf:64):11: --> 100, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/06 08:56:00 [error] 15361\#15361: *95 stream [lua] content_by_lua(nginx.conf:64):23: howdy, something new!, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/06 08:56:00 [error] 15361\#15361: *95 stream [lua] content_by_lua(nginx.conf:64):24: howdy, something even newer!, client: 127.0.0.1, server: 0.0.0.0:1985) |
'msg count: 3 log level:5 log body:2019/02/06 08:56:00 [warn] 15361#15361: *95 stream [lua] content_by_lua(nginx.conf:64):10: --> 85, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/06 08:56:00 [error] 15361#15361: *95 stream [lua] content_by_lua(nginx.conf:64):11: --> 85, client: 127.0.0.1, server: 0.0.0.0:1985 log level:5 log body:2019/02/06 08:56:00 [warn] 15361#15361: *95 stream [lua] content_by_lua(nginx.conf:64):10: --> 86, client: 127.0.0.1, server: 0.0.0.0:1985 msg count: 3 log level:4 log body:2019/02/06 08:56:00 [error] 15361#15361: *95 stream [lua] content_by_lua(nginx.conf:64):11: --> 86, client: 127.0.0.1, server: 0.0.0.0:1985 log level:5 log body:2019/02/06 08:56:00 [warn] 15361#15361: *95 stream [lua] content_by_lua(nginx.conf:64):10: --> 87, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/06 08:56:00 [error] 15361#15361: *95 stream [lua] content_by_lua(nginx.conf:64):11: --> 87, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/06 08:56:00 [error] 15361#15361: *95 stream [lua] content_by_lua(nginx.conf:64):11: --> 100, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/06 08:56:00 [error] 15361#15361: *95 stream [lua] content_by_lua(nginx.conf:64):23: howdy, something new!, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/06 08:56:00 [error] 15361#15361: *95 stream [lua] content_by_lua(nginx.conf:64):24: howdy, something even newer!, client: 127.0.0.1, server: 0.0.0.0:1985 ' doesn't match '(?^s:\Amsg count: 3 log level:4 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 84, client: 127.0.0.1, server: 0.0.0.0:\d+ log level:5 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 85, client: 127.0.0.1, server: 0.0.0.0:\d+ log level:4 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 85, client: 127.0.0.1, server: 0.0.0.0:\d+ msg count: 3 log level:5 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 86, client: 127.0.0.1, server: 0.0.0.0:\d+ log level:4 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 86, client: 127.0.0.1, server: 0.0.0.0:\d+ log level:5 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 87, client: 127.0.0.1, server: 0.0.0.0:\d+ log level:4 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 100, client: 127.0.0.1, server: 0.0.0.0:\d+ log level:4 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: howdy, something new!, client: 127.0.0.1, server: 0.0.0.0:\d+ log level:4 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: howdy, something even newer!, client: 127.0.0.1, server: 0.0.0.0:\d+ \z)' |
stream/errlog.t | TEST 20: fetch a few and generate a few, then fetch again (not overflown again) - response_body_like - response is expected (msg count: 3 log level:5 log body:2019/02/06 08:56:00 [warn] 15361\#15361: *98 stream [lua] content_by_lua(nginx.conf:64):10: --> 85, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/06 08:56:00 [error] 15361\#15361: *98 stream [lua] content_by_lua(nginx.conf:64):11: --> 85, client: 127.0.0.1, server: 0.0.0.0:1985 log level:5 log body:2019/02/06 08:56:00 [warn] 15361\#15361: *98 stream [lua] content_by_lua(nginx.conf:64):10: --> 86, client: 127.0.0.1, server: 0.0.0.0:1985 msg count: 3 log level:4 log body:2019/02/06 08:56:00 [error] 15361\#15361: *98 stream [lua] content_by_lua(nginx.conf:64):11: --> 86, client: 127.0.0.1, server: 0.0.0.0:1985 log level:5 log body:2019/02/06 08:56:00 [warn] 15361\#15361: *98 stream [lua] content_by_lua(nginx.conf:64):10: --> 87, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/06 08:56:00 [error] 15361\#15361: *98 stream [lua] content_by_lua(nginx.conf:64):11: --> 87, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/06 08:56:00 [error] 15361\#15361: *98 stream [lua] content_by_lua(nginx.conf:64):11: --> 100, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/06 08:56:00 [error] 15361\#15361: *98 stream [lua] content_by_lua(nginx.conf:64):23: howdy, something new!, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/06 08:56:00 [error] 15361\#15361: *98 stream [lua] content_by_lua(nginx.conf:64):24: howdy, something even newer!, client: 127.0.0.1, server: 0.0.0.0:1985) |
'msg count: 3 log level:5 log body:2019/02/06 08:56:00 [warn] 15361#15361: *98 stream [lua] content_by_lua(nginx.conf:64):10: --> 85, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/06 08:56:00 [error] 15361#15361: *98 stream [lua] content_by_lua(nginx.conf:64):11: --> 85, client: 127.0.0.1, server: 0.0.0.0:1985 log level:5 log body:2019/02/06 08:56:00 [warn] 15361#15361: *98 stream [lua] content_by_lua(nginx.conf:64):10: --> 86, client: 127.0.0.1, server: 0.0.0.0:1985 msg count: 3 log level:4 log body:2019/02/06 08:56:00 [error] 15361#15361: *98 stream [lua] content_by_lua(nginx.conf:64):11: --> 86, client: 127.0.0.1, server: 0.0.0.0:1985 log level:5 log body:2019/02/06 08:56:00 [warn] 15361#15361: *98 stream [lua] content_by_lua(nginx.conf:64):10: --> 87, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/06 08:56:00 [error] 15361#15361: *98 stream [lua] content_by_lua(nginx.conf:64):11: --> 87, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/06 08:56:00 [error] 15361#15361: *98 stream [lua] content_by_lua(nginx.conf:64):11: --> 100, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/06 08:56:00 [error] 15361#15361: *98 stream [lua] content_by_lua(nginx.conf:64):23: howdy, something new!, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/06 08:56:00 [error] 15361#15361: *98 stream [lua] content_by_lua(nginx.conf:64):24: howdy, something even newer!, client: 127.0.0.1, server: 0.0.0.0:1985 ' doesn't match '(?^s:\Amsg count: 3 log level:4 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 84, client: 127.0.0.1, server: 0.0.0.0:\d+ log level:5 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 85, client: 127.0.0.1, server: 0.0.0.0:\d+ log level:4 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 85, client: 127.0.0.1, server: 0.0.0.0:\d+ msg count: 3 log level:5 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 86, client: 127.0.0.1, server: 0.0.0.0:\d+ log level:4 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 86, client: 127.0.0.1, server: 0.0.0.0:\d+ log level:5 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 87, client: 127.0.0.1, server: 0.0.0.0:\d+ log level:4 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 100, client: 127.0.0.1, server: 0.0.0.0:\d+ log level:4 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: howdy, something new!, client: 127.0.0.1, server: 0.0.0.0:\d+ log level:4 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: howdy, something even newer!, client: 127.0.0.1, server: 0.0.0.0:\d+ \z)' |
stream/errlog.t | TEST 3: client connected info - grep_error_log_out (req 0) |
'client 127.0.0.1:49140 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:49144 connected to capture log line:4 ' doesn't match '(?^:^client .*? connected to .*? capture log line:2 $)' |
stream/errlog.t | TEST 28: log time eq ngx.now - response_body_like - response is expected (log lines:1) |
'log lines:1 ' doesn't match '(?^s:\Alog lines: 2 log level: 3 log time: \d+(?:\.\d+)? log body: \d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[crit\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: enter 1, client: 127.0.0.1, server: 0.0.0.0:\d+ same with now: true log level: 4 log time: \d{10}(?:\.\d+)? log body: \d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: enter 11, client: 127.0.0.1, server: 0.0.0.0:\d+ same with now: true)' |
stream/errlog.t | TEST 28: log time eq ngx.now - grep_error_log_out (req 0) |
@@ -1,2 +1,2 @@ enter 1 -enter 11 +enter 22 ' |
stream/errlog.t | nginx: [emerg] | invalid capture error log size "3k", minimum size is 4096 in /home/ec2-user/git/lua-resty-core/t/servroot/conf/nginx.conf:17 |
stream/errlog.t | nginx: [emerg] | invalid capture error log size "3k", minimum size is 4096 in /home/ec2-user/git/lua-resty-core/t/servroot/conf/nginx.conf:17 |
stream/errlog.t | 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 17: flood the capturing buffer (4k) - response_body_like - response is expected (log lines: \#25 log level:4 log body:2019/02/06 08:56:03 [error] 15520\#15520: *21 stream [lua] content_by_lua(nginx.conf:51):11: --> 88, client: 127.0.0.1, server: 0.0.0.0:1985 log level:5 log body:2019/02/06 08:56:03 [warn] 15520\#15520: *21 stream [lua] content_by_lua(nginx.conf:51):10: --> 89, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/06 08:56:03 [error] 15520\#15520: *21 stream [lua] content_by_lua(nginx.conf:51):11: --> 89, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/06 08:56:03 [error] 15520\#15520: *21 stream [lua] content_by_lua(nginx.conf:51):11: --> 99, client: 127.0.0.1, server: 0.0.0.0:1985 log level:5 log body:2019/02/06 08:56:03 [warn] 15520\#15520: *21 stream [lua] content_by_lua(nginx.conf:51):10: --> 100, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/06 08:56:03 [error] 15520\#15520: *21 stream [lua] content_by_lua(nginx.conf:51):11: --> 100, client: 127.0.0.1, server: 0.0.0.0:1985) |
'log lines: #25 log level:4 log body:2019/02/06 08:56:03 [error] 15520#15520: *21 stream [lua] content_by_lua(nginx.conf:51):11: --> 88, client: 127.0.0.1, server: 0.0.0.0:1985 log level:5 log body:2019/02/06 08:56:03 [warn] 15520#15520: *21 stream [lua] content_by_lua(nginx.conf:51):10: --> 89, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/06 08:56:03 [error] 15520#15520: *21 stream [lua] content_by_lua(nginx.conf:51):11: --> 89, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/06 08:56:03 [error] 15520#15520: *21 stream [lua] content_by_lua(nginx.conf:51):11: --> 99, client: 127.0.0.1, server: 0.0.0.0:1985 log level:5 log body:2019/02/06 08:56:03 [warn] 15520#15520: *21 stream [lua] content_by_lua(nginx.conf:51):10: --> 100, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/06 08:56:03 [error] 15520#15520: *21 stream [lua] content_by_lua(nginx.conf:51):11: --> 100, client: 127.0.0.1, server: 0.0.0.0:1985 ' doesn't match '(?^s:\A(?:log lines: #26 log level:5 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*content_by_lua\(nginx.conf:\d+\):\d+: --> 88, client: 127.0.0.1, server: 0.0.0.0:\d+ log level:4 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*content_by_lua\(nginx.conf:\d+\):\d+: --> 88, client: 127.0.0.1, server: 0.0.0.0:\d+ log level:5 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*content_by_lua\(nginx.conf:\d+\):\d+: --> 89, client: 127.0.0.1, server: 0.0.0.0:\d+ log level:4 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*content_by_lua\(nginx.conf:\d+\):\d+: --> 99, client: 127.0.0.1, server: 0.0.0.0:\d+ log level:5 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*content_by_lua\(nginx.conf:\d+\):\d+: --> 100, client: 127.0.0.1, server: 0.0.0.0:\d+ log level:4 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*content_by_lua\(nginx.conf:\d+\):\d+: --> 100, client: 127.0.0.1, server: 0.0.0.0:\d+ )\z)' |
stream/errlog.t | TEST 17: flood the capturing buffer (4k) - response_body_like - response is expected (log lines: \#25 log level:4 log body:2019/02/06 08:56:03 [error] 15520\#15520: *24 stream [lua] content_by_lua(nginx.conf:51):11: --> 88, client: 127.0.0.1, server: 0.0.0.0:1985 log level:5 log body:2019/02/06 08:56:03 [warn] 15520\#15520: *24 stream [lua] content_by_lua(nginx.conf:51):10: --> 89, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/06 08:56:03 [error] 15520\#15520: *24 stream [lua] content_by_lua(nginx.conf:51):11: --> 89, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/06 08:56:03 [error] 15520\#15520: *24 stream [lua] content_by_lua(nginx.conf:51):11: --> 99, client: 127.0.0.1, server: 0.0.0.0:1985 log level:5 log body:2019/02/06 08:56:03 [warn] 15520\#15520: *24 stream [lua] content_by_lua(nginx.conf:51):10: --> 100, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/06 08:56:03 [error] 15520\#15520: *24 stream [lua] content_by_lua(nginx.conf:51):11: --> 100, client: 127.0.0.1, server: 0.0.0.0:1985) |
'log lines: #25 log level:4 log body:2019/02/06 08:56:03 [error] 15520#15520: *24 stream [lua] content_by_lua(nginx.conf:51):11: --> 88, client: 127.0.0.1, server: 0.0.0.0:1985 log level:5 log body:2019/02/06 08:56:03 [warn] 15520#15520: *24 stream [lua] content_by_lua(nginx.conf:51):10: --> 89, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/06 08:56:03 [error] 15520#15520: *24 stream [lua] content_by_lua(nginx.conf:51):11: --> 89, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/06 08:56:03 [error] 15520#15520: *24 stream [lua] content_by_lua(nginx.conf:51):11: --> 99, client: 127.0.0.1, server: 0.0.0.0:1985 log level:5 log body:2019/02/06 08:56:03 [warn] 15520#15520: *24 stream [lua] content_by_lua(nginx.conf:51):10: --> 100, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/06 08:56:03 [error] 15520#15520: *24 stream [lua] content_by_lua(nginx.conf:51):11: --> 100, client: 127.0.0.1, server: 0.0.0.0:1985 ' doesn't match '(?^s:\A(?:log lines: #26 log level:5 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*content_by_lua\(nginx.conf:\d+\):\d+: --> 88, client: 127.0.0.1, server: 0.0.0.0:\d+ log level:4 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*content_by_lua\(nginx.conf:\d+\):\d+: --> 88, client: 127.0.0.1, server: 0.0.0.0:\d+ log level:5 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*content_by_lua\(nginx.conf:\d+\):\d+: --> 89, client: 127.0.0.1, server: 0.0.0.0:\d+ log level:4 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*content_by_lua\(nginx.conf:\d+\):\d+: --> 99, client: 127.0.0.1, server: 0.0.0.0:\d+ log level:5 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*content_by_lua\(nginx.conf:\d+\):\d+: --> 100, client: 127.0.0.1, server: 0.0.0.0:\d+ log level:4 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*content_by_lua\(nginx.conf:\d+\):\d+: --> 100, client: 127.0.0.1, server: 0.0.0.0:\d+ )\z)' |
stream/errlog.t | TEST 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 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/06 08:56:05 [notice] 15512\#15512: start worker processes log level:4 log body:2019/02/06 08:56:05 [error] 15656\#15656: *148 stream [lua] content_by_lua(nginx.conf:48):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/06 08:56:05 [notice] 15512#15512: start worker processes log level:4 log body:2019/02/06 08:56:05 [error] 15656#15656: *148 stream [lua] content_by_lua(nginx.conf:48):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 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 | 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/semaphore.t | TEST 16: kill a light thread that is waiting on a semaphore (no resource) - pattern "[error]" should not match any line in error.log but matches line "2019/02/06 08:56:57 [error] 18300\#18300: *374 stream [lua] init_worker_by_lua:14: sem: timeout, context: ngx.timer" (req 0) |
2019/02/06 08:56:57 [debug] 18300\#18300: stream lua semaphore wait: 00007F9B151E5028, timeout: 1000, resources: 0, event posted: 0 2019/02/06 08:56:57 [debug] 18300\#18300: *374 event timer add: 0: 1000:4350036 2019/02/06 08:56:57 [debug] 18300\#18300: stream lua semaphore wait yielding 2019/02/06 08:56:57 [debug] 18300\#18300: *374 lua resume returned 1 2019/02/06 08:56:57 [debug] 18300\#18300: *374 lua thread yielded 2019/02/06 08:56:57 [debug] 18300\#18300: *374 lua run thread returned -2 2019/02/06 08:56:57 [debug] 18300\#18300: worker cycle 2019/02/06 08:56:57 [debug] 18300\#18300: epoll timer: 1000 2019/02/06 08:56:57 [debug] 17915\#17915: child: 0 18300 e:1 t:0 d:0 r:1 j:0 ' Looks like you failed 1 test of 184. |
stream/shdict.t | TEST 48: exptime uses long type to avoid overflow in expire() + ttl() - response_body - response is expected (repeated req 0, req 0) |
got: 'err setting: no memory ' expected: 'ttl: 2147483648 ' |
stream/shdict.t | TEST 48: exptime uses long type to avoid overflow in expire() + ttl() - response_body - response is expected (repeated req 1, req 0) |
got: 'err setting: no memory ' expected: 'ttl: 2147483648 ' |
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 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 13: tls version - TLSv1.2 - pattern "[emerg]" should not match any line in error.log but matches line "2019/02/06 08:57:19 [emerg] 19467\#19467: unlink() /home/ec2-user/git/lua-resty-core/t/servroot/html/nginx.sock failed (2: No such file or directory)" (req 0) |
2019/02/06 08:57:19 [notice] 19467\#19467: start worker processes 2019/02/06 08:57:19 [debug] 19467\#19467: channel 4:6 2019/02/06 08:57:19 [notice] 19467\#19467: start worker process 19515 2019/02/06 08:57:19 [debug] 19467\#19467: pass channel s:1 pid:19515 fd:4 to s:0 pid:19496 fd:3 2019/02/06 08:57:19 [debug] 19496\#19496: epoll: fd:5 ev:0001 d:0000000001DD5950 2019/02/06 08:57:19 [debug] 19496\#19496: channel handler 2019/02/06 08:57:19 [debug] 19496\#19496: channel: 32 2019/02/06 08:57:19 [debug] 19496\#19496: channel command: 1 2019/02/06 08:57:19 [debug] 19496\#19496: get channel s:1 pid:19515 fd:9 ' |
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/06 08:57:20 [emerg] 19467\#19467: unlink() /home/ec2-user/git/lua-resty-core/t/servroot/html/nginx.sock failed (2: No such file or directory)" (req 0) |
2019/02/06 08:57:20 [notice] 19467\#19467: start worker processes 2019/02/06 08:57:20 [debug] 19467\#19467: channel 4:6 2019/02/06 08:57:20 [notice] 19467\#19467: start worker process 19555 2019/02/06 08:57:20 [debug] 19467\#19467: pass channel s:1 pid:19555 fd:4 to s:0 pid:19534 fd:3 2019/02/06 08:57:20 [debug] 19534\#19534: epoll: fd:5 ev:0001 d:0000000001DD5950 2019/02/06 08:57:20 [debug] 19534\#19534: channel handler 2019/02/06 08:57:20 [debug] 19534\#19534: channel: 32 2019/02/06 08:57:20 [debug] 19534\#19534: channel command: 1 2019/02/06 08:57:20 [debug] 19534\#19534: get channel s:1 pid:19555 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/06 08:57:21 [emerg] 19467\#19467: unlink() /home/ec2-user/git/lua-resty-core/t/servroot/html/nginx.sock failed (2: No such file or directory)" (req 0) |
2019/02/06 08:57:21 [notice] 19467\#19467: start worker processes 2019/02/06 08:57:21 [debug] 19467\#19467: channel 4:6 2019/02/06 08:57:21 [notice] 19467\#19467: start worker process 19594 2019/02/06 08:57:21 [debug] 19467\#19467: pass channel s:1 pid:19594 fd:4 to s:0 pid:19574 fd:3 2019/02/06 08:57:21 [debug] 19574\#19574: epoll: fd:5 ev:0001 d:0000000001E17D40 2019/02/06 08:57:21 [debug] 19574\#19574: channel handler 2019/02/06 08:57:21 [debug] 19574\#19574: channel: 32 2019/02/06 08:57:21 [debug] 19574\#19574: channel command: 1 2019/02/06 08:57:21 [debug] 19574\#19574: get channel s:1 pid:19594 fd:6 ' |
stream/ssl.t | TEST 3: read SNI name via ssl.server_name() - response_body - response is expected (repeated req 0, req 0) |
@@ -1,4 +1 @@ -connected: 1 +failed to connect: no such file or directory -ssl handshake: userdata -received: it works! -close: 1 nil ' |
stream/ssl.t | TEST 3: read SNI name via ssl.server_name() - pattern "lua ssl server name: "test.com"" should match a line in error.log (req 0) | |
stream/ssl.t | TEST 3: read SNI name via ssl.server_name() - pattern "read SNI name from Lua: test.com" should match a line in error.log (req 0) | |
stream/ssl.t | TEST 3: read SNI name via ssl.server_name() - 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 3: read SNI name via ssl.server_name() - pattern "lua ssl server name: "test.com"" should match a line in error.log (req 1) | |
stream/ssl.t | TEST 3: read SNI name via ssl.server_name() - pattern "read SNI name from Lua: test.com" should match a line in error.log (req 1) | |
stream/ssl.t | TEST 10: tls version - SSLv3 - pattern "[emerg]" should not match any line in error.log but matches line "2019/02/06 08:57:22 [emerg] 19467\#19467: unlink() /home/ec2-user/git/lua-resty-core/t/servroot/html/nginx.sock failed (2: No such file or directory)" (req 0) |
2019/02/06 08:57:22 [notice] 19467\#19467: start worker processes 2019/02/06 08:57:22 [debug] 19467\#19467: channel 3:5 2019/02/06 08:57:22 [notice] 19467\#19467: start worker process 19659 2019/02/06 08:57:22 [debug] 19467\#19467: pass channel s:0 pid:19659 fd:3 to s:1 pid:19639 fd:4 2019/02/06 08:57:22 [debug] 19639\#19639: epoll: fd:6 ev:0001 d:0000000001E1AD00 2019/02/06 08:57:22 [debug] 19639\#19639: channel handler 2019/02/06 08:57:22 [debug] 19639\#19639: channel: 32 2019/02/06 08:57:22 [debug] 19639\#19639: channel command: 1 2019/02/06 08:57:22 [debug] 19639\#19639: get channel s:0 pid:19659 fd:5 ' |
stream/ssl.t | TEST 12: tls version - TLSv1.1 - pattern "[emerg]" should not match any line in error.log but matches line "2019/02/06 08:57:23 [emerg] 19467\#19467: unlink() /home/ec2-user/git/lua-resty-core/t/servroot/html/nginx.sock failed (2: No such file or directory)" (req 0) |
2019/02/06 08:57:23 [notice] 19467\#19467: start worker processes 2019/02/06 08:57:23 [debug] 19467\#19467: channel 3:5 2019/02/06 08:57:23 [notice] 19467\#19467: start worker process 19700 2019/02/06 08:57:23 [debug] 19467\#19467: pass channel s:0 pid:19700 fd:3 to s:1 pid:19679 fd:4 2019/02/06 08:57:23 [debug] 19679\#19679: epoll: fd:6 ev:0001 d:0000000001E1FDC0 2019/02/06 08:57:23 [debug] 19679\#19679: channel handler 2019/02/06 08:57:23 [debug] 19679\#19679: channel: 32 2019/02/06 08:57:23 [debug] 19679\#19679: channel command: 1 2019/02/06 08:57:23 [debug] 19679\#19679: get channel s:0 pid:19700 fd:5 ' |
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/06 08:57:24 [emerg] 19467\#19467: unlink() /home/ec2-user/git/lua-resty-core/t/servroot/html/nginx.sock failed (2: No such file or directory)" (req 0) |
2019/02/06 08:57:24 [notice] 19467\#19467: start worker processes 2019/02/06 08:57:24 [debug] 19467\#19467: channel 3:5 2019/02/06 08:57:24 [notice] 19467\#19467: start worker process 19742 2019/02/06 08:57:24 [debug] 19467\#19467: pass channel s:0 pid:19742 fd:3 to s:1 pid:19720 fd:4 2019/02/06 08:57:24 [debug] 19720\#19720: epoll: fd:6 ev:0001 d:0000000001E1FDC0 2019/02/06 08:57:24 [debug] 19720\#19720: channel handler 2019/02/06 08:57:24 [debug] 19720\#19720: channel: 32 2019/02/06 08:57:24 [debug] 19720\#19720: channel command: 1 2019/02/06 08:57:24 [debug] 19720\#19720: get channel s:0 pid:19742 fd:5 ' |
stream/ssl.t | TEST 8: 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 8: set DER cert chain - pattern "lua ssl server name: "test.com"" should match a line in error.log (req 0) | |
stream/ssl.t | TEST 8: set DER cert chain - 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 8: set DER cert chain - pattern "lua ssl server name: "test.com"" should match a line in error.log (req 1) |
File | Name | Details |
---|---|---|
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:2 ' expected: 'log lines:0 ' |
errlog.t | nginx: [emerg] | invalid number of arguments in "lua_capture_error_log" directive in /home/ec2-user/git/lua-resty-core/t/servroot/conf/nginx.conf:25 |
errlog.t | TEST 25: get system default filter level during Nginx starts (init) - pattern "log a warning event" should match a line in error.log (req 0) | |
errlog.t | TEST 25: get system default filter level during Nginx starts (init) - pattern "do not log another warning event" should not match any line in error.log but matches line "2019/02/06 08:52:27 [warn] 5654\#5654: *15 [lua] content_by_lua(nginx.conf:56):7: do not log another warning event, client: 127.0.0.1, server: localhost, request: \"GET /t HTTP/1.1\", host: \"localhost\"" (req 0) |
' |
errlog.t | TEST 25: get system default filter level during Nginx starts (init) - pattern "log a warning event" should match a line in error.log (req 1) | |
errlog.t | TEST 25: get system default filter level during Nginx starts (init) - pattern "do not log another warning event" should not match any line in error.log but matches line "2019/02/06 08:52:27 [warn] 5654\#5654: *16 [lua] content_by_lua(nginx.conf:56):7: do not log another warning event, client: 127.0.0.1, server: localhost, request: \"GET /t HTTP/1.1\", host: \"localhost\"" (req 1) |
' |
errlog.t | TEST 29: ringbuf overflow bug - response_body_like - response is expected (log level: 4 log time: 1549443147.846 log body: 2019/02/06 08:52:27 [error] 5692\#5692: *43 [lua] content_by_lua(nginx.conf:72):8: **********28, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level: 4 log time: 1549443147.846 log body: 2019/02/06 08:52:27 [error] 5692\#5692: *43 [lua] content_by_lua(nginx.conf:72):8: **********29, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level: 4 log time: 1549443147.846 log body: 2019/02/06 08:52:27 [error] 5692\#5692: *43 [lua] content_by_lua(nginx.conf:72):8: **********30, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level: 4 log time: 1549443147.846 log body: 2019/02/06 08:52:27 [error] 5692\#5692: *43 [lua] content_by_lua(nginx.conf:72):8: **********31, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level: 4 log time: 1549443147.846 log body: 2019/02/06 08:52:27 [error] 5692\#5692: *43 [lua] content_by_lua(nginx.conf:72):8: **********32, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level: 4 log time: 1549443147.846 log body: 2019/02/06 08:52:27 [error] 5692\#5692: *43 [lua] content_by_lua(nginx.conf:72):8: **********33, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level: 4 log time: 1549443147.846 log body: 2019/02/06 08:52:27 [error] 5692\#5692: *43 [lua] content_by_lua(nginx.conf:72):8: **********34, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level: 4 log time: 1549443147.846 log body: 2019/02/06 08:52:27 [error] 5692\#5692: *43 [lua] content_by_lua(nginx.conf:72):8: **********35, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level: 4 log time: 1549443147.846 log body: 2019/02/06 08:52:27 [error] 5692\#5692: *43 [lua] content_by_lua(nginx.conf:72):8: **********36, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level: 4 log time: 1549443147.846 log body: 2019/02/06 08:52:27 [error] 5692\#5692: *43 [lua] content_by_lua(nginx.conf:72):8: **********37, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost") |
'log level: 4 log time: 1549443147.846 log body: 2019/02/06 08:52:27 [error] 5692#5692: *43 [lua] content_by_lua(nginx.conf:72):8: **********28, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level: 4 log time: 1549443147.846 log body: 2019/02/06 08:52:27 [error] 5692#5692: *43 [lua] content_by_lua(nginx.conf:72):8: **********29, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level: 4 log time: 1549443147.846 log body: 2019/02/06 08:52:27 [error] 5692#5692: *43 [lua] content_by_lua(nginx.conf:72):8: **********30, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level: 4 log time: 1549443147.846 log body: 2019/02/06 08:52:27 [error] 5692#5692: *43 [lua] content_by_lua(nginx.conf:72):8: **********31, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level: 4 log time: 1549443147.846 log body: 2019/02/06 08:52:27 [error] 5692#5692: *43 [lua] content_by_lua(nginx.conf:72):8: **********32, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level: 4 log time: 1549443147.846 log body: 2019/02/06 08:52:27 [error] 5692#5692: *43 [lua] content_by_lua(nginx.conf:72):8: **********33, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level: 4 log time: 1549443147.846 log body: 2019/02/06 08:52:27 [error] 5692#5692: *43 [lua] content_by_lua(nginx.conf:72):8: **********34, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level: 4 log time: 1549443147.846 log body: 2019/02/06 08:52:27 [error] 5692#5692: *43 [lua] content_by_lua(nginx.conf:72):8: **********35, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level: 4 log time: 1549443147.846 log body: 2019/02/06 08:52:27 [error] 5692#5692: *43 [lua] content_by_lua(nginx.conf:72):8: **********36, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level: 4 log time: 1549443147.846 log body: 2019/02/06 08:52:27 [error] 5692#5692: *43 [lua] content_by_lua(nginx.conf:72):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/06 08:52:27 [notice] 5646\#5646: start worker processes log level:7 log body:2019/02/06 08:52:28 [info] 5711\#5711: *47 client 127.0.0.1 closed keepalive connection log level:7 log body:2019/02/06 08:52:28 [info] 5711\#5711: *48 client 127.0.0.1 closed keepalive connection log level:7 log body:2019/02/06 08:52:28 [info] 5711\#5711: *49 client 127.0.0.1 closed keepalive connection log level:7 log body:2019/02/06 08:52:28 [info] 5711\#5711: *50 client 127.0.0.1 closed keepalive connection log level:7 log body:2019/02/06 08:52:28 [info] 5711\#5711: *51 client 127.0.0.1 closed keepalive connection log level:7 log body:2019/02/06 08:52:28 [info] 5711\#5711: *52 client 127.0.0.1 closed keepalive connection log level:7 log body:2019/02/06 08:52:28 [info] 5711\#5711: *53 client 127.0.0.1 closed keepalive connection log level:7 log body:2019/02/06 08:52:28 [info] 5711\#5711: *54 client 127.0.0.1 closed keepalive connection log level:7 log body:2019/02/06 08:52:28 [info] 5711\#5711: *55 client 127.0.0.1 closed keepalive connection) |
'log lines: #10 log level:6 log body:2019/02/06 08:52:27 [notice] 5646#5646: start worker processes log level:7 log body:2019/02/06 08:52:28 [info] 5711#5711: *47 client 127.0.0.1 closed keepalive connection log level:7 log body:2019/02/06 08:52:28 [info] 5711#5711: *48 client 127.0.0.1 closed keepalive connection log level:7 log body:2019/02/06 08:52:28 [info] 5711#5711: *49 client 127.0.0.1 closed keepalive connection log level:7 log body:2019/02/06 08:52:28 [info] 5711#5711: *50 client 127.0.0.1 closed keepalive connection log level:7 log body:2019/02/06 08:52:28 [info] 5711#5711: *51 client 127.0.0.1 closed keepalive connection log level:7 log body:2019/02/06 08:52:28 [info] 5711#5711: *52 client 127.0.0.1 closed keepalive connection log level:7 log body:2019/02/06 08:52:28 [info] 5711#5711: *53 client 127.0.0.1 closed keepalive connection log level:7 log body:2019/02/06 08:52:28 [info] 5711#5711: *54 client 127.0.0.1 closed keepalive connection log level:7 log body:2019/02/06 08:52:28 [info] 5711#5711: *55 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/06 08:52:28 [info] 5711\#5711: *56 client 127.0.0.1 closed keepalive connection log level:4 log body:2019/02/06 08:52:28 [error] 5711\#5711: *57 [lua] access_by_lua(nginx.conf:54):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/06 08:52:28 [error] 5711\#5711: *58 [lua] access_by_lua(nginx.conf:54):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/06 08:52:28 [info] 5711#5711: *56 client 127.0.0.1 closed keepalive connection log level:4 log body:2019/02/06 08:52:28 [error] 5711#5711: *57 [lua] access_by_lua(nginx.conf:54):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/06 08:52:28 [error] 5711#5711: *58 [lua] access_by_lua(nginx.conf:54):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 | TEST 16: check the captured error log body - response_body_like - response is expected (log level:6 log body:2019/02/06 08:52:28 [notice] 5646\#5646: start worker processes log level:7 log body:2019/02/06 08:52:28 [info] 5749\#5749: *75 client 127.0.0.1 closed keepalive connection log level:7 log body:2019/02/06 08:52:28 [info] 5749\#5749: *76 client 127.0.0.1 closed keepalive connection log level:7 log body:2019/02/06 08:52:28 [info] 5749\#5749: *77 client 127.0.0.1 closed keepalive connection log level:7 log body:2019/02/06 08:52:28 [info] 5749\#5749: *78 client 127.0.0.1 closed keepalive connection log level:7 log body:2019/02/06 08:52:28 [info] 5749\#5749: *79 client 127.0.0.1 closed keepalive connection log level:7 log body:2019/02/06 08:52:28 [info] 5749\#5749: *80 client 127.0.0.1 closed keepalive connection log level:7 log body:2019/02/06 08:52:28 [info] 5749\#5749: *81 client 127.0.0.1 closed keepalive connection log level:7 log body:2019/02/06 08:52:28 [info] 5749\#5749: *82 client 127.0.0.1 closed keepalive connection log level:7 log body:2019/02/06 08:52:28 [info] 5749\#5749: *83 client 127.0.0.1 closed keepalive connection) |
'log level:6 log body:2019/02/06 08:52:28 [notice] 5646#5646: start worker processes log level:7 log body:2019/02/06 08:52:28 [info] 5749#5749: *75 client 127.0.0.1 closed keepalive connection log level:7 log body:2019/02/06 08:52:28 [info] 5749#5749: *76 client 127.0.0.1 closed keepalive connection log level:7 log body:2019/02/06 08:52:28 [info] 5749#5749: *77 client 127.0.0.1 closed keepalive connection log level:7 log body:2019/02/06 08:52:28 [info] 5749#5749: *78 client 127.0.0.1 closed keepalive connection log level:7 log body:2019/02/06 08:52:28 [info] 5749#5749: *79 client 127.0.0.1 closed keepalive connection log level:7 log body:2019/02/06 08:52:28 [info] 5749#5749: *80 client 127.0.0.1 closed keepalive connection log level:7 log body:2019/02/06 08:52:28 [info] 5749#5749: *81 client 127.0.0.1 closed keepalive connection log level:7 log body:2019/02/06 08:52:28 [info] 5749#5749: *82 client 127.0.0.1 closed keepalive connection log level:7 log body:2019/02/06 08:52:28 [info] 5749#5749: *83 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 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/06 08:52:29 [notice] 5646\#5646: start worker processes log level:7 log body:2019/02/06 08:52:29 [info] 5825\#5825: *131 client 127.0.0.1 closed keepalive connection log level:7 log body:2019/02/06 08:52:29 [info] 5825\#5825: *132 client 127.0.0.1 closed keepalive connection log level:7 log body:2019/02/06 08:52:29 [info] 5825\#5825: *133 client 127.0.0.1 closed keepalive connection log level:7 log body:2019/02/06 08:52:29 [info] 5825\#5825: *134 client 127.0.0.1 closed keepalive connection log level:7 log body:2019/02/06 08:52:29 [info] 5825\#5825: *135 client 127.0.0.1 closed keepalive connection log level:7 log body:2019/02/06 08:52:29 [info] 5825\#5825: *136 client 127.0.0.1 closed keepalive connection log level:7 log body:2019/02/06 08:52:29 [info] 5825\#5825: *137 client 127.0.0.1 closed keepalive connection log level:7 log body:2019/02/06 08:52:29 [info] 5825\#5825: *138 client 127.0.0.1 closed keepalive connection log level:7 log body:2019/02/06 08:52:29 [info] 5825\#5825: *139 client 127.0.0.1 closed keepalive connection end maybe log lines: \#10 log level:7 log body:2019/02/06 08:52:29 [info] 5825\#5825: *140 client 127.0.0.1 closed keepalive connection log level:4 log body:2019/02/06 08:52:29 [error] 5825\#5825: *141 [lua] access_by_lua(nginx.conf:54):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/06 08:52:29 [notice] 5646#5646: start worker processes log level:7 log body:2019/02/06 08:52:29 [info] 5825#5825: *131 client 127.0.0.1 closed keepalive connection log level:7 log body:2019/02/06 08:52:29 [info] 5825#5825: *132 client 127.0.0.1 closed keepalive connection log level:7 log body:2019/02/06 08:52:29 [info] 5825#5825: *133 client 127.0.0.1 closed keepalive connection log level:7 log body:2019/02/06 08:52:29 [info] 5825#5825: *134 client 127.0.0.1 closed keepalive connection log level:7 log body:2019/02/06 08:52:29 [info] 5825#5825: *135 client 127.0.0.1 closed keepalive connection log level:7 log body:2019/02/06 08:52:29 [info] 5825#5825: *136 client 127.0.0.1 closed keepalive connection log level:7 log body:2019/02/06 08:52:29 [info] 5825#5825: *137 client 127.0.0.1 closed keepalive connection log level:7 log body:2019/02/06 08:52:29 [info] 5825#5825: *138 client 127.0.0.1 closed keepalive connection log level:7 log body:2019/02/06 08:52:29 [info] 5825#5825: *139 client 127.0.0.1 closed keepalive connection end maybe log lines: #10 log level:7 log body:2019/02/06 08:52:29 [info] 5825#5825: *140 client 127.0.0.1 closed keepalive connection log level:4 log body:2019/02/06 08:52:29 [error] 5825#5825: *141 [lua] access_by_lua(nginx.conf:54):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 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 | 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:6 ' expected: 'log lines:2 ' |
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 |
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 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 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 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 7: create OCSP request (buffer too small) - 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 7: create OCSP request (buffer too small) - pattern "lua ssl server name: "test.com"" should match a line in error.log (req 0) | |
ocsp.t | TEST 7: create OCSP request (buffer too small) - pattern "failed to create OCSP request: output buffer too small: 68 > 67" should match a line in error.log (req 0) | |
ocsp.t | TEST 7: create OCSP request (buffer too small) - 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 7: create OCSP request (buffer too small) - pattern "lua ssl server name: "test.com"" should match a line in error.log (req 1) | |
ocsp.t | TEST 7: create OCSP request (buffer too small) - pattern "failed to create OCSP request: output buffer too small: 68 > 67" should match a line in error.log (req 1) | |
ocsp.t | TEST 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 @@ -connected: 1 +failed to connect: no such file or directory -ssl handshake: userdata ' |
ocsp.t | TEST 14: fail to validate OCSP response - OCSP response signed by an unknown cert and the OCSP response does not contain the unknown cert - pattern "lua ssl server name: "test.com"" should match a line in error.log (req 0) | |
ocsp.t | TEST 14: fail to validate OCSP response - OCSP response signed by an unknown cert and the OCSP response does not contain the unknown cert - pattern "failed to validate OCSP response: OCSP_basic_verify() failed" should match a line in error.log (req 0) | |
ocsp.t | TEST 14: fail to validate OCSP response - OCSP response signed by an unknown cert and the OCSP response does not contain the unknown cert - 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 14: fail to validate OCSP response - OCSP response signed by an unknown cert and the OCSP response does not contain the unknown cert - pattern "lua ssl server name: "test.com"" should match a line in error.log (req 1) | |
ocsp.t | TEST 14: fail to validate OCSP response - OCSP response signed by an unknown cert and the OCSP response does not contain the unknown cert - pattern "failed to validate OCSP response: OCSP_basic_verify() failed" should match a line in error.log (req 1) | |
ocsp.t | TEST 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 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 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 16: good status req from client - pattern "[emerg]" should not match any line in error.log but matches line "2019/02/06 08:52:57 [emerg] 6593\#6593: unlink() /home/ec2-user/git/lua-resty-core/t/servroot/html/nginx.sock failed (2: No such file or directory)" (req 0) |
2019/02/06 08:52:57 [notice] 6593\#6593: start worker processes 2019/02/06 08:52:57 [debug] 6593\#6593: channel 4:6 2019/02/06 08:52:57 [notice] 6593\#6593: start worker process 6799 2019/02/06 08:52:57 [debug] 6593\#6593: pass channel s:1 pid:6799 fd:4 to s:0 pid:6778 fd:3 2019/02/06 08:52:57 [debug] 6778\#6778: epoll: fd:5 ev:0001 d:00000000025BE308 2019/02/06 08:52:57 [debug] 6778\#6778: channel handler 2019/02/06 08:52:57 [debug] 6778\#6778: channel: 32 2019/02/06 08:52:57 [debug] 6778\#6778: channel command: 1 2019/02/06 08:52:57 [debug] 6778\#6778: get channel s:1 pid:6799 fd:6 ' |
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) | |
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 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 12: validate good OCSP response - no certs in 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 12: validate good OCSP response - no certs in response - pattern "lua ssl server name: "test.com"" should match a line in error.log (req 0) | |
ocsp.t | TEST 12: validate good OCSP response - no certs in response - pattern "OCSP response validation ok" should match a line in error.log (req 0) | |
ocsp.t | TEST 12: validate good OCSP response - no certs in response - 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 12: validate good OCSP response - no certs in response - pattern "lua ssl server name: "test.com"" should match a line in error.log (req 1) | |
ocsp.t | TEST 12: validate good OCSP response - no certs in response - pattern "OCSP response validation ok" should match a line in error.log (req 1) | |
shdict.t | TEST 2: get an nonexistent key - response_body - response is expected (repeated req 0, req 0) |
@@ -1,3 +1,3 @@ -value type: nil -value: nil +value type: number +value: 20 flags: nil ' |
shdict.t | TEST 2: get an nonexistent key - response_body - response is expected (repeated req 1, req 0) |
@@ -1,3 +1,3 @@ -value type: nil -value: nil +value type: number +value: 20 flags: nil ' |
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 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/06 08:55:35 [emerg] 14141\#14141: unlink() /home/ec2-user/git/lua-resty-core/t/servroot/html/nginx.sock failed (2: No such file or directory)" (req 0) |
2019/02/06 08:55:35 [notice] 14141\#14141: start worker processes 2019/02/06 08:55:35 [debug] 14141\#14141: channel 4:6 2019/02/06 08:55:35 [notice] 14141\#14141: start worker process 14188 2019/02/06 08:55:35 [debug] 14141\#14141: pass channel s:1 pid:14188 fd:4 to s:0 pid:14169 fd:3 2019/02/06 08:55:35 [debug] 14169\#14169: epoll: fd:5 ev:0001 d:0000000001D55C58 2019/02/06 08:55:35 [debug] 14169\#14169: channel handler 2019/02/06 08:55:35 [debug] 14169\#14169: channel: 32 2019/02/06 08:55:35 [debug] 14169\#14169: channel command: 1 2019/02/06 08:55:35 [debug] 14169\#14169: get channel s:1 pid:14188 fd:8 ' |
ssl-session-fetch.t | TEST 3: store new session, and resume it - 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 3: store new session, and resume it - grep_error_log_out (req 0) |
'' doesn't match '(?^s:ssl_session_store_by_lua_block:5: session id: [a-fA-F\d]+)' |
ssl-session-fetch.t | TEST 3: store new session, and resume it - 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 3: store new session, and resume it - grep_error_log_out (req 1) |
'' doesn't match '(?^s:ssl_session_fetch_by_lua_block:4: session id: [a-fA-F\d]+)' |
ssl-session-store.t | TEST 3: store the session via timer to memcached - 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 3: store the session via timer to memcached - pattern "(?^s:ssl_session_store_by_lua_block:32: session id: [a-fA-f\d]+)" should match a line in error.log (req 0) | |
ssl-session-store.t | TEST 3: store the session via timer to memcached - pattern "(?^s:ssl_session_store_by_lua_block:34: session size: \d+)" should match a line in error.log (req 0) | |
ssl-session-store.t | TEST 3: store the session via timer to memcached - pattern "(?^s:received memc reply: STORED)" should match a line in error.log (req 0) | |
ssl-session-store.t | TEST 3: store the session via timer to memcached - 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 3: store the session via timer to memcached - pattern "(?^s:ssl_session_store_by_lua_block:32: session id: [a-fA-f\d]+)" should match a line in error.log (req 1) | |
ssl-session-store.t | TEST 3: store the session via timer to memcached - pattern "(?^s:ssl_session_store_by_lua_block:34: session size: \d+)" should match a line in error.log (req 1) | |
ssl-session-store.t | TEST 3: store the session via timer to memcached - pattern "(?^s:received memc reply: STORED)" should match a line in error.log (req 1) | |
ssl-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.t | TEST 8: set DER cert chain - 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 8: set DER cert chain - pattern "lua ssl server name: "test.com"" should match a line in error.log (req 0) | |
ssl.t | TEST 8: set DER cert chain - 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 8: set DER cert chain - pattern "lua ssl server name: "test.com"" should match a line in error.log (req 1) | |
ssl.t | TEST 5: read raw server addr via ssl.raw_server_addr() (unix domain socket) - 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 5: read raw server addr via ssl.raw_server_addr() (unix domain socket) - pattern "lua ssl server name: "test.com"" should match a line in error.log (req 0) | |
ssl.t | TEST 5: read raw server addr via ssl.raw_server_addr() (unix domain socket) - pattern "(?^:Using unix socket file .*?nginx\.sock)" should match a line in error.log (req 0) | |
ssl.t | TEST 5: read raw server addr via ssl.raw_server_addr() (unix domain socket) - 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 5: read raw server addr via ssl.raw_server_addr() (unix domain socket) - pattern "lua ssl server name: "test.com"" should match a line in error.log (req 1) | |
ssl.t | TEST 5: read raw server addr via ssl.raw_server_addr() (unix domain socket) - pattern "(?^:Using unix socket file .*?nginx\.sock)" should match a line in error.log (req 1) | |
ssl.t | TEST 12: tls version - TLSv1.1 - pattern "[emerg]" should not match any line in error.log but matches line "2019/02/06 08:55:39 [emerg] 14310\#14310: unlink() /home/ec2-user/git/lua-resty-core/t/servroot/html/nginx.sock failed (2: No such file or directory)" (req 0) |
2019/02/06 08:55:39 [notice] 14310\#14310: start worker processes 2019/02/06 08:55:39 [debug] 14310\#14310: channel 4:6 2019/02/06 08:55:39 [notice] 14310\#14310: start worker process 14361 2019/02/06 08:55:39 [debug] 14310\#14310: pass channel s:1 pid:14361 fd:4 to s:0 pid:14338 fd:3 2019/02/06 08:55:39 [debug] 14338\#14338: epoll: fd:5 ev:0001 d:0000000001B4B668 2019/02/06 08:55:39 [debug] 14338\#14338: channel handler 2019/02/06 08:55:39 [debug] 14338\#14338: channel: 32 2019/02/06 08:55:39 [debug] 14338\#14338: channel command: 1 2019/02/06 08:55:39 [debug] 14338\#14338: get channel s:1 pid:14361 fd:8 ' |
ssl.t | TEST 19: parse PEM cert and key to cdata (bad priv key) - 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 19: parse PEM cert and key to cdata (bad priv key) - pattern "(?^:\[error\] .*? failed to parse pem key: PEM_read_bio_PrivateKey\(\) failed)" should match a line in error.log (req 0) | |
ssl.t | TEST 19: parse PEM cert and key to cdata (bad priv key) - pattern "[crit]" should not match any line in error.log but matches line "2019/02/06 08:55:41 [crit] 14445\#14445: *147 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/06 08:55:41 [debug] 14445\#14445: *147 reusable connection: 0 2019/02/06 08:55:41 [debug] 14445\#14445: *147 malloc: 0000000001AD13E0:24 2019/02/06 08:55:41 [debug] 14445\#14445: *147 malloc: 0000000001B5F580:16 2019/02/06 08:55:41 [debug] 14445\#14445: *147 http cleanup add: 0000000001AD13E0 2019/02/06 08:55:41 [debug] 14445\#14445: *147 lua tcp socket connect: -5 2019/02/06 08:55:41 [debug] 14445\#14445: *147 lua tcp socket error retval handler 2019/02/06 08:55:41 [debug] 14445\#14445: *147 lua finalize socket 2019/02/06 08:55:41 [debug] 14445\#14445: *147 lua http cleanup free: 0000000001AD13E0 2019/02/06 08:55:41 [debug] 14445\#14445: *147 malloc: 0000000001B5F5A0:16 ' |
ssl.t | TEST 19: parse PEM cert and key to cdata (bad priv key) - 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 19: parse PEM cert and key to cdata (bad priv key) - pattern "(?^:\[error\] .*? failed to parse pem key: PEM_read_bio_PrivateKey\(\) failed)" should match a line in error.log (req 1) | |
ssl.t | TEST 19: parse PEM cert and key to cdata (bad priv key) - pattern "[crit]" should not match any line in error.log but matches line "2019/02/06 08:55:41 [crit] 14445\#14445: *149 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/06 08:55:41 [debug] 14445\#14445: *149 reusable connection: 0 2019/02/06 08:55:41 [debug] 14445\#14445: *149 malloc: 0000000001B5F5A0:24 2019/02/06 08:55:41 [debug] 14445\#14445: *149 malloc: 0000000001AFF730:16 2019/02/06 08:55:41 [debug] 14445\#14445: *149 http cleanup add: 0000000001B5F5A0 2019/02/06 08:55:41 [debug] 14445\#14445: *149 lua tcp socket connect: -5 2019/02/06 08:55:41 [debug] 14445\#14445: *149 lua tcp socket error retval handler 2019/02/06 08:55:41 [debug] 14445\#14445: *149 lua finalize socket 2019/02/06 08:55:41 [debug] 14445\#14445: *149 lua http cleanup free: 0000000001B5F5A0 2019/02/06 08:55:41 [debug] 14445\#14445: *149 malloc: 0000000001AFF750:16 ' |
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 15: read PEM key chain but set DER key chain - 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 15: read PEM key chain but set DER key chain - pattern "lua ssl server name: "test.com"" should match a line in error.log (req 0) | |
ssl.t | TEST 15: read PEM key chain but set DER key chain - 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 15: read PEM key chain but set DER key chain - pattern "lua ssl server name: "test.com"" should match a line in error.log (req 1) | |
ssl.t | TEST 14: ngx.semaphore in ssl_certificate_by_lua* - pattern "[emerg]" should not match any line in error.log but matches line "2019/02/06 08:55:44 [emerg] 14310\#14310: unlink() /home/ec2-user/git/lua-resty-core/t/servroot/html/nginx.sock failed (2: No such file or directory)" (req 0) |
2019/02/06 08:55:44 [notice] 14310\#14310: start worker processes 2019/02/06 08:55:44 [debug] 14310\#14310: channel 4:6 2019/02/06 08:55:44 [notice] 14310\#14310: start worker process 14616 2019/02/06 08:55:44 [debug] 14310\#14310: pass channel s:1 pid:14616 fd:4 to s:0 pid:14597 fd:3 2019/02/06 08:55:44 [debug] 14597\#14597: epoll: fd:5 ev:0001 d:0000000001B6F328 2019/02/06 08:55:44 [debug] 14597\#14597: channel handler 2019/02/06 08:55:44 [debug] 14597\#14597: channel: 32 2019/02/06 08:55:44 [debug] 14597\#14597: channel command: 1 2019/02/06 08:55:44 [debug] 14597\#14597: get channel s:1 pid:14616 fd:6 ' |
ssl.t | TEST 16: parse PEM cert and key to cdata - 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 16: parse PEM cert and key to cdata - pattern "lua ssl server name: "test.com"" should match a line in error.log (req 0) | |
ssl.t | TEST 16: parse PEM cert and key to cdata - 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 16: parse PEM cert and key to cdata - pattern "lua ssl server name: "test.com"" should match a line in error.log (req 1) | |
ssl.t | TEST 11: tls version - TLSv1 - pattern "[emerg]" should not match any line in error.log but matches line "2019/02/06 08:55:46 [emerg] 14310\#14310: unlink() /home/ec2-user/git/lua-resty-core/t/servroot/html/nginx.sock failed (2: No such file or directory)" (req 0) |
2019/02/06 08:55:46 [notice] 14310\#14310: start worker processes 2019/02/06 08:55:46 [debug] 14310\#14310: channel 3:5 2019/02/06 08:55:46 [notice] 14310\#14310: start worker process 14678 2019/02/06 08:55:46 [debug] 14310\#14310: pass channel s:0 pid:14678 fd:3 to s:1 pid:14656 fd:4 2019/02/06 08:55:46 [debug] 14656\#14656: epoll: fd:6 ev:0001 d:0000000001B70998 2019/02/06 08:55:46 [debug] 14656\#14656: channel handler 2019/02/06 08:55:46 [debug] 14656\#14656: channel: 32 2019/02/06 08:55:46 [debug] 14656\#14656: channel command: 1 2019/02/06 08:55:46 [debug] 14656\#14656: get channel s:0 pid:14678 fd:5 ' |
Go back to the index page.