(This page was automatically generated by the tools in the opsboy project on 19:30:20 13-Feb-2019 GMT.)
Commit | Testing Time | Unexpected Failures |
Expected Failures |
Files | Tests | Elapsed Time |
---|---|---|---|---|---|---|
fc141ce1 | 2019-02-11 17:37:53 GMT | 71 | 164 | 71 | 8020 | 332 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:18 loop] [TRACE 1 init_worker_by_lua:4 loop] [TRACE 1 content_by_lua(nginx.conf:84):4 loop] process type in init_by_lua*: master init_worker_by_lua:10: process type: worker ' doesn't match '(?^:\[TRACE\s+\d+ init_by_lua:\d+ loop\] \[TRACE\s+\d+ init_worker_by_lua:\d+ loop\] \[TRACE\s+\d+ content_by_lua\(nginx.conf:\d+\):4 loop\] process type in init_by_lua\*: single init_worker_by_lua:10: process type: single )' |
process-type-single.t | TEST 1: sanity - response_body - response is expected (repeated req 1, req 0) |
got: "process type: worker\x{0a}" length: 21 expected: "process type: single\x{0a}" length: 21 strings begin to differ at char 15 (line 1 column 15) |
process-type-single.t | TEST 1: sanity - grep_error_log_out (req 1) |
'[TRACE 1 init_by_lua:18 loop] [TRACE 1 init_worker_by_lua:4 loop] [TRACE 1 content_by_lua(nginx.conf:84):4 loop] process type in init_by_lua*: master init_worker_by_lua:10: process type: worker ' doesn't match '(?^:\[TRACE\s+\d+ init_by_lua:\d+ loop\] \[TRACE\s+\d+ init_worker_by_lua:\d+ loop\] \[TRACE\s+\d+ content_by_lua\(nginx.conf:\d+\):4 loop\] process type in init_by_lua\*: single init_worker_by_lua:10: process type: single )' |
shared.t | TEST 11: shared.expire returns error on not found key - response_body - response is expected (repeated req 0, req 0) |
got: '' expected: 'failed to set ttl: not found ' |
shared.t | TEST 11: shared.expire returns error on not found key - response_body - response is expected (repeated req 1, req 0) |
got: '' expected: 'failed to set ttl: not found ' |
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 | 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 | TEST 18: flood the capturing buffer (5k) - response_body_like - response is expected (log lines: \#32 log level:5 log body:2019/02/11 21:36:22 [warn] 10241\#10241: *21 stream [lua] content_by_lua(nginx.conf:78):10: --> 85, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/11 21:36:22 [error] 10241\#10241: *21 stream [lua] content_by_lua(nginx.conf:78):11: --> 85, client: 127.0.0.1, server: 0.0.0.0:1985 log level:5 log body:2019/02/11 21:36:22 [warn] 10241\#10241: *21 stream [lua] content_by_lua(nginx.conf:78):10: --> 86, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/11 21:36:22 [error] 10241\#10241: *21 stream [lua] content_by_lua(nginx.conf:78):11: --> 99, client: 127.0.0.1, server: 0.0.0.0:1985 log level:5 log body:2019/02/11 21:36:22 [warn] 10241\#10241: *21 stream [lua] content_by_lua(nginx.conf:78):10: --> 100, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/11 21:36:22 [error] 10241\#10241: *21 stream [lua] content_by_lua(nginx.conf:78):11: --> 100, client: 127.0.0.1, server: 0.0.0.0:1985) |
'log lines: #32 log level:5 log body:2019/02/11 21:36:22 [warn] 10241#10241: *21 stream [lua] content_by_lua(nginx.conf:78):10: --> 85, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/11 21:36:22 [error] 10241#10241: *21 stream [lua] content_by_lua(nginx.conf:78):11: --> 85, client: 127.0.0.1, server: 0.0.0.0:1985 log level:5 log body:2019/02/11 21:36:22 [warn] 10241#10241: *21 stream [lua] content_by_lua(nginx.conf:78):10: --> 86, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/11 21:36:22 [error] 10241#10241: *21 stream [lua] content_by_lua(nginx.conf:78):11: --> 99, client: 127.0.0.1, server: 0.0.0.0:1985 log level:5 log body:2019/02/11 21:36:22 [warn] 10241#10241: *21 stream [lua] content_by_lua(nginx.conf:78):10: --> 100, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/11 21:36:22 [error] 10241#10241: *21 stream [lua] content_by_lua(nginx.conf:78):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/11 21:36:23 [warn] 10241\#10241: *24 stream [lua] content_by_lua(nginx.conf:78):10: --> 85, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/11 21:36:23 [error] 10241\#10241: *24 stream [lua] content_by_lua(nginx.conf:78):11: --> 85, client: 127.0.0.1, server: 0.0.0.0:1985 log level:5 log body:2019/02/11 21:36:23 [warn] 10241\#10241: *24 stream [lua] content_by_lua(nginx.conf:78):10: --> 86, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/11 21:36:23 [error] 10241\#10241: *24 stream [lua] content_by_lua(nginx.conf:78):11: --> 99, client: 127.0.0.1, server: 0.0.0.0:1985 log level:5 log body:2019/02/11 21:36:23 [warn] 10241\#10241: *24 stream [lua] content_by_lua(nginx.conf:78):10: --> 100, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/11 21:36:23 [error] 10241\#10241: *24 stream [lua] content_by_lua(nginx.conf:78):11: --> 100, client: 127.0.0.1, server: 0.0.0.0:1985) |
'log lines: #32 log level:5 log body:2019/02/11 21:36:23 [warn] 10241#10241: *24 stream [lua] content_by_lua(nginx.conf:78):10: --> 85, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/11 21:36:23 [error] 10241#10241: *24 stream [lua] content_by_lua(nginx.conf:78):11: --> 85, client: 127.0.0.1, server: 0.0.0.0:1985 log level:5 log body:2019/02/11 21:36:23 [warn] 10241#10241: *24 stream [lua] content_by_lua(nginx.conf:78):10: --> 86, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/11 21:36:23 [error] 10241#10241: *24 stream [lua] content_by_lua(nginx.conf:78):11: --> 99, client: 127.0.0.1, server: 0.0.0.0:1985 log level:5 log body:2019/02/11 21:36:23 [warn] 10241#10241: *24 stream [lua] content_by_lua(nginx.conf:78):10: --> 100, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/11 21:36:23 [error] 10241#10241: *24 stream [lua] content_by_lua(nginx.conf:78):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 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 21: multi-line error log - response_body_like - response is expected (log lines: \#2 log level:6 log body:2019/02/11 21:36:23 [notice] 10233\#10233: start worker processes log level:4 log body:2019/02/11 21:36:24 [error] 10298\#10298: *75 stream [lua] content_by_lua(nginx.conf:67):8: --> new line, client: 127.0.0.1, server: 0.0.0.0:1985) |
'log lines: #2 log level:6 log body:2019/02/11 21:36:23 [notice] 10233#10233: start worker processes log level:4 log body:2019/02/11 21:36:24 [error] 10298#10298: *75 stream [lua] content_by_lua(nginx.conf:67):8: --> new line, client: 127.0.0.1, server: 0.0.0.0:1985 ' doesn't match '(?^s:\Alog lines: #1 log level:4 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*content_by_lua\(nginx.conf:\d+\):\d+: --> new line, client: 127.0.0.1, server: 0.0.0.0:\d+ \z)' |
stream/errlog.t | TEST 20: fetch a few and generate a few, then fetch again (not overflown again) - response_body_like - response is expected (msg count: 3 log level:5 log body:2019/02/11 21:36:24 [warn] 10317\#10317: *93 stream [lua] content_by_lua(nginx.conf:91):10: --> 85, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/11 21:36:24 [error] 10317\#10317: *93 stream [lua] content_by_lua(nginx.conf:91):11: --> 85, client: 127.0.0.1, server: 0.0.0.0:1985 log level:5 log body:2019/02/11 21:36:24 [warn] 10317\#10317: *93 stream [lua] content_by_lua(nginx.conf:91):10: --> 86, client: 127.0.0.1, server: 0.0.0.0:1985 msg count: 3 log level:4 log body:2019/02/11 21:36:24 [error] 10317\#10317: *93 stream [lua] content_by_lua(nginx.conf:91):11: --> 86, client: 127.0.0.1, server: 0.0.0.0:1985 log level:5 log body:2019/02/11 21:36:24 [warn] 10317\#10317: *93 stream [lua] content_by_lua(nginx.conf:91):10: --> 87, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/11 21:36:24 [error] 10317\#10317: *93 stream [lua] content_by_lua(nginx.conf:91):11: --> 87, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/11 21:36:24 [error] 10317\#10317: *93 stream [lua] content_by_lua(nginx.conf:91):11: --> 100, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/11 21:36:24 [error] 10317\#10317: *93 stream [lua] content_by_lua(nginx.conf:91):23: howdy, something new!, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/11 21:36:24 [error] 10317\#10317: *93 stream [lua] content_by_lua(nginx.conf:91):24: howdy, something even newer!, client: 127.0.0.1, server: 0.0.0.0:1985) |
'msg count: 3 log level:5 log body:2019/02/11 21:36:24 [warn] 10317#10317: *93 stream [lua] content_by_lua(nginx.conf:91):10: --> 85, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/11 21:36:24 [error] 10317#10317: *93 stream [lua] content_by_lua(nginx.conf:91):11: --> 85, client: 127.0.0.1, server: 0.0.0.0:1985 log level:5 log body:2019/02/11 21:36:24 [warn] 10317#10317: *93 stream [lua] content_by_lua(nginx.conf:91):10: --> 86, client: 127.0.0.1, server: 0.0.0.0:1985 msg count: 3 log level:4 log body:2019/02/11 21:36:24 [error] 10317#10317: *93 stream [lua] content_by_lua(nginx.conf:91):11: --> 86, client: 127.0.0.1, server: 0.0.0.0:1985 log level:5 log body:2019/02/11 21:36:24 [warn] 10317#10317: *93 stream [lua] content_by_lua(nginx.conf:91):10: --> 87, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/11 21:36:24 [error] 10317#10317: *93 stream [lua] content_by_lua(nginx.conf:91):11: --> 87, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/11 21:36:24 [error] 10317#10317: *93 stream [lua] content_by_lua(nginx.conf:91):11: --> 100, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/11 21:36:24 [error] 10317#10317: *93 stream [lua] content_by_lua(nginx.conf:91):23: howdy, something new!, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/11 21:36:24 [error] 10317#10317: *93 stream [lua] content_by_lua(nginx.conf:91):24: howdy, something even newer!, client: 127.0.0.1, server: 0.0.0.0:1985 ' doesn't match '(?^s:\Amsg count: 3 log level:4 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 84, client: 127.0.0.1, server: 0.0.0.0:\d+ log level:5 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 85, client: 127.0.0.1, server: 0.0.0.0:\d+ log level:4 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 85, client: 127.0.0.1, server: 0.0.0.0:\d+ msg count: 3 log level:5 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 86, client: 127.0.0.1, server: 0.0.0.0:\d+ log level:4 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 86, client: 127.0.0.1, server: 0.0.0.0:\d+ log level:5 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 87, client: 127.0.0.1, server: 0.0.0.0:\d+ log level:4 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 100, client: 127.0.0.1, server: 0.0.0.0:\d+ log level:4 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: howdy, something new!, client: 127.0.0.1, server: 0.0.0.0:\d+ log level:4 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: howdy, something even newer!, client: 127.0.0.1, server: 0.0.0.0:\d+ \z)' |
stream/errlog.t | TEST 20: fetch a few and generate a few, then fetch again (not overflown again) - response_body_like - response is expected (msg count: 3 log level:5 log body:2019/02/11 21:36:24 [warn] 10317\#10317: *96 stream [lua] content_by_lua(nginx.conf:91):10: --> 85, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/11 21:36:24 [error] 10317\#10317: *96 stream [lua] content_by_lua(nginx.conf:91):11: --> 85, client: 127.0.0.1, server: 0.0.0.0:1985 log level:5 log body:2019/02/11 21:36:24 [warn] 10317\#10317: *96 stream [lua] content_by_lua(nginx.conf:91):10: --> 86, client: 127.0.0.1, server: 0.0.0.0:1985 msg count: 3 log level:4 log body:2019/02/11 21:36:24 [error] 10317\#10317: *96 stream [lua] content_by_lua(nginx.conf:91):11: --> 86, client: 127.0.0.1, server: 0.0.0.0:1985 log level:5 log body:2019/02/11 21:36:24 [warn] 10317\#10317: *96 stream [lua] content_by_lua(nginx.conf:91):10: --> 87, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/11 21:36:24 [error] 10317\#10317: *96 stream [lua] content_by_lua(nginx.conf:91):11: --> 87, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/11 21:36:24 [error] 10317\#10317: *96 stream [lua] content_by_lua(nginx.conf:91):11: --> 100, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/11 21:36:24 [error] 10317\#10317: *96 stream [lua] content_by_lua(nginx.conf:91):23: howdy, something new!, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/11 21:36:24 [error] 10317\#10317: *96 stream [lua] content_by_lua(nginx.conf:91):24: howdy, something even newer!, client: 127.0.0.1, server: 0.0.0.0:1985) |
'msg count: 3 log level:5 log body:2019/02/11 21:36:24 [warn] 10317#10317: *96 stream [lua] content_by_lua(nginx.conf:91):10: --> 85, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/11 21:36:24 [error] 10317#10317: *96 stream [lua] content_by_lua(nginx.conf:91):11: --> 85, client: 127.0.0.1, server: 0.0.0.0:1985 log level:5 log body:2019/02/11 21:36:24 [warn] 10317#10317: *96 stream [lua] content_by_lua(nginx.conf:91):10: --> 86, client: 127.0.0.1, server: 0.0.0.0:1985 msg count: 3 log level:4 log body:2019/02/11 21:36:24 [error] 10317#10317: *96 stream [lua] content_by_lua(nginx.conf:91):11: --> 86, client: 127.0.0.1, server: 0.0.0.0:1985 log level:5 log body:2019/02/11 21:36:24 [warn] 10317#10317: *96 stream [lua] content_by_lua(nginx.conf:91):10: --> 87, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/11 21:36:24 [error] 10317#10317: *96 stream [lua] content_by_lua(nginx.conf:91):11: --> 87, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/11 21:36:24 [error] 10317#10317: *96 stream [lua] content_by_lua(nginx.conf:91):11: --> 100, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/11 21:36:24 [error] 10317#10317: *96 stream [lua] content_by_lua(nginx.conf:91):23: howdy, something new!, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/11 21:36:24 [error] 10317#10317: *96 stream [lua] content_by_lua(nginx.conf:91):24: howdy, something even newer!, client: 127.0.0.1, server: 0.0.0.0:1985 ' doesn't match '(?^s:\Amsg count: 3 log level:4 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 84, client: 127.0.0.1, server: 0.0.0.0:\d+ log level:5 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 85, client: 127.0.0.1, server: 0.0.0.0:\d+ log level:4 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 85, client: 127.0.0.1, server: 0.0.0.0:\d+ msg count: 3 log level:5 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 86, client: 127.0.0.1, server: 0.0.0.0:\d+ log level:4 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 86, client: 127.0.0.1, server: 0.0.0.0:\d+ log level:5 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 87, client: 127.0.0.1, server: 0.0.0.0:\d+ log level:4 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 100, client: 127.0.0.1, server: 0.0.0.0:\d+ log level:4 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: howdy, something new!, client: 127.0.0.1, server: 0.0.0.0:\d+ log level:4 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: howdy, something even newer!, client: 127.0.0.1, server: 0.0.0.0:\d+ \z)' |
stream/errlog.t | TEST 17: flood the capturing buffer (4k) - response_body_like - response is expected (log lines: \#25 log level:4 log body:2019/02/11 21:36:25 [error] 10374\#10374: *147 stream [lua] content_by_lua(nginx.conf:78):11: --> 88, client: 127.0.0.1, server: 0.0.0.0:1985 log level:5 log body:2019/02/11 21:36:25 [warn] 10374\#10374: *147 stream [lua] content_by_lua(nginx.conf:78):10: --> 89, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/11 21:36:25 [error] 10374\#10374: *147 stream [lua] content_by_lua(nginx.conf:78):11: --> 89, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/11 21:36:25 [error] 10374\#10374: *147 stream [lua] content_by_lua(nginx.conf:78):11: --> 99, client: 127.0.0.1, server: 0.0.0.0:1985 log level:5 log body:2019/02/11 21:36:25 [warn] 10374\#10374: *147 stream [lua] content_by_lua(nginx.conf:78):10: --> 100, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/11 21:36:25 [error] 10374\#10374: *147 stream [lua] content_by_lua(nginx.conf:78):11: --> 100, client: 127.0.0.1, server: 0.0.0.0:1985) |
'log lines: #25 log level:4 log body:2019/02/11 21:36:25 [error] 10374#10374: *147 stream [lua] content_by_lua(nginx.conf:78):11: --> 88, client: 127.0.0.1, server: 0.0.0.0:1985 log level:5 log body:2019/02/11 21:36:25 [warn] 10374#10374: *147 stream [lua] content_by_lua(nginx.conf:78):10: --> 89, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/11 21:36:25 [error] 10374#10374: *147 stream [lua] content_by_lua(nginx.conf:78):11: --> 89, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/11 21:36:25 [error] 10374#10374: *147 stream [lua] content_by_lua(nginx.conf:78):11: --> 99, client: 127.0.0.1, server: 0.0.0.0:1985 log level:5 log body:2019/02/11 21:36:25 [warn] 10374#10374: *147 stream [lua] content_by_lua(nginx.conf:78):10: --> 100, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/11 21:36:25 [error] 10374#10374: *147 stream [lua] content_by_lua(nginx.conf:78):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/11 21:36:25 [error] 10374\#10374: *150 stream [lua] content_by_lua(nginx.conf:78):11: --> 88, client: 127.0.0.1, server: 0.0.0.0:1985 log level:5 log body:2019/02/11 21:36:25 [warn] 10374\#10374: *150 stream [lua] content_by_lua(nginx.conf:78):10: --> 89, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/11 21:36:25 [error] 10374\#10374: *150 stream [lua] content_by_lua(nginx.conf:78):11: --> 89, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/11 21:36:25 [error] 10374\#10374: *150 stream [lua] content_by_lua(nginx.conf:78):11: --> 99, client: 127.0.0.1, server: 0.0.0.0:1985 log level:5 log body:2019/02/11 21:36:25 [warn] 10374\#10374: *150 stream [lua] content_by_lua(nginx.conf:78):10: --> 100, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/11 21:36:25 [error] 10374\#10374: *150 stream [lua] content_by_lua(nginx.conf:78):11: --> 100, client: 127.0.0.1, server: 0.0.0.0:1985) |
'log lines: #25 log level:4 log body:2019/02/11 21:36:25 [error] 10374#10374: *150 stream [lua] content_by_lua(nginx.conf:78):11: --> 88, client: 127.0.0.1, server: 0.0.0.0:1985 log level:5 log body:2019/02/11 21:36:25 [warn] 10374#10374: *150 stream [lua] content_by_lua(nginx.conf:78):10: --> 89, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/11 21:36:25 [error] 10374#10374: *150 stream [lua] content_by_lua(nginx.conf:78):11: --> 89, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/11 21:36:25 [error] 10374#10374: *150 stream [lua] content_by_lua(nginx.conf:78):11: --> 99, client: 127.0.0.1, server: 0.0.0.0:1985 log level:5 log body:2019/02/11 21:36:25 [warn] 10374#10374: *150 stream [lua] content_by_lua(nginx.conf:78):10: --> 100, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/11 21:36:25 [error] 10374#10374: *150 stream [lua] content_by_lua(nginx.conf:78):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 19: fetch a few and generate a few, then fetch again (overflown again) - response_body_like - response is expected (msg count: 3 log level:4 log body:2019/02/11 21:36:26 [error] 10412\#10412: *183 stream [lua] content_by_lua(nginx.conf:93):11: --> 85, client: 127.0.0.1, server: 0.0.0.0:1985 log level:5 log body:2019/02/11 21:36:26 [warn] 10412\#10412: *183 stream [lua] content_by_lua(nginx.conf:93):10: --> 86, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/11 21:36:26 [error] 10412\#10412: *183 stream [lua] content_by_lua(nginx.conf:93):11: --> 86, client: 127.0.0.1, server: 0.0.0.0:1985 msg count: 3 log level:4 log body:2019/02/11 21:36:26 [error] 10412\#10412: *183 stream [lua] content_by_lua(nginx.conf:93):11: --> 87, client: 127.0.0.1, server: 0.0.0.0:1985 log level:5 log body:2019/02/11 21:36:26 [warn] 10412\#10412: *183 stream [lua] content_by_lua(nginx.conf:93):10: --> 88, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/11 21:36:26 [error] 10412\#10412: *183 stream [lua] content_by_lua(nginx.conf:93):11: --> 88, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/11 21:36:26 [error] 10412\#10412: *183 stream [lua] content_by_lua(nginx.conf:93):24: --> 102, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/11 21:36:26 [error] 10412\#10412: *183 stream [lua] content_by_lua(nginx.conf:93):25: --> 103, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/11 21:36:26 [error] 10412\#10412: *183 stream [lua] content_by_lua(nginx.conf:93):26: --> 104, client: 127.0.0.1, server: 0.0.0.0:1985) |
'msg count: 3 log level:4 log body:2019/02/11 21:36:26 [error] 10412#10412: *183 stream [lua] content_by_lua(nginx.conf:93):11: --> 85, client: 127.0.0.1, server: 0.0.0.0:1985 log level:5 log body:2019/02/11 21:36:26 [warn] 10412#10412: *183 stream [lua] content_by_lua(nginx.conf:93):10: --> 86, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/11 21:36:26 [error] 10412#10412: *183 stream [lua] content_by_lua(nginx.conf:93):11: --> 86, client: 127.0.0.1, server: 0.0.0.0:1985 msg count: 3 log level:4 log body:2019/02/11 21:36:26 [error] 10412#10412: *183 stream [lua] content_by_lua(nginx.conf:93):11: --> 87, client: 127.0.0.1, server: 0.0.0.0:1985 log level:5 log body:2019/02/11 21:36:26 [warn] 10412#10412: *183 stream [lua] content_by_lua(nginx.conf:93):10: --> 88, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/11 21:36:26 [error] 10412#10412: *183 stream [lua] content_by_lua(nginx.conf:93):11: --> 88, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/11 21:36:26 [error] 10412#10412: *183 stream [lua] content_by_lua(nginx.conf:93):24: --> 102, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/11 21:36:26 [error] 10412#10412: *183 stream [lua] content_by_lua(nginx.conf:93):25: --> 103, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/11 21:36:26 [error] 10412#10412: *183 stream [lua] content_by_lua(nginx.conf:93):26: --> 104, client: 127.0.0.1, server: 0.0.0.0:1985 ' doesn't match '(?^s:\Amsg count: 3 log level:4 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 84, client: 127.0.0.1, server: 0.0.0.0:\d+ log level:5 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 85, client: 127.0.0.1, server: 0.0.0.0:\d+ log level:4 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 85, client: 127.0.0.1, server: 0.0.0.0:\d+ msg count: 3 log level:5 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 86, client: 127.0.0.1, server: 0.0.0.0:\d+ log level:4 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 86, client: 127.0.0.1, server: 0.0.0.0:\d+ log level:5 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 87, client: 127.0.0.1, server: 0.0.0.0:\d+ log level:4 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 102, client: 127.0.0.1, server: 0.0.0.0:\d+ log level:4 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 103, client: 127.0.0.1, server: 0.0.0.0:\d+ log level:4 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 104, client: 127.0.0.1, server: 0.0.0.0:\d+ |msg count: 3 log level:4 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 84, client: 127.0.0.1, server: 0.0.0.0:\d+ log level:5 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 85, client: 127.0.0.1, server: 0.0.0.0:\d+ log level:4 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 85, client: 127.0.0.1, server: 0.0.0.0:\d+ msg count: 3 log level:5 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 87, client: 127.0.0.1, server: 0.0.0.0:\d+ log level:4 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 87, client: 127.0.0.1, server: 0.0.0.0:\d+ log level:5 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 88, client: 127.0.0.1, server: 0.0.0.0:\d+ log level:4 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 102, client: 127.0.0.1, server: 0.0.0.0:\d+ log level:4 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 103, client: 127.0.0.1, server: 0.0.0.0:\d+ log level:4 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 104, client: 127.0.0.1, server: 0.0.0.0:\d+ \z)' |
stream/errlog.t | TEST 19: fetch a few and generate a few, then fetch again (overflown again) - response_body_like - response is expected (msg count: 3 log level:4 log body:2019/02/11 21:36:26 [error] 10412\#10412: *186 stream [lua] content_by_lua(nginx.conf:93):11: --> 85, client: 127.0.0.1, server: 0.0.0.0:1985 log level:5 log body:2019/02/11 21:36:26 [warn] 10412\#10412: *186 stream [lua] content_by_lua(nginx.conf:93):10: --> 86, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/11 21:36:26 [error] 10412\#10412: *186 stream [lua] content_by_lua(nginx.conf:93):11: --> 86, client: 127.0.0.1, server: 0.0.0.0:1985 msg count: 3 log level:4 log body:2019/02/11 21:36:26 [error] 10412\#10412: *186 stream [lua] content_by_lua(nginx.conf:93):11: --> 87, client: 127.0.0.1, server: 0.0.0.0:1985 log level:5 log body:2019/02/11 21:36:26 [warn] 10412\#10412: *186 stream [lua] content_by_lua(nginx.conf:93):10: --> 88, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/11 21:36:26 [error] 10412\#10412: *186 stream [lua] content_by_lua(nginx.conf:93):11: --> 88, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/11 21:36:26 [error] 10412\#10412: *186 stream [lua] content_by_lua(nginx.conf:93):24: --> 102, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/11 21:36:26 [error] 10412\#10412: *186 stream [lua] content_by_lua(nginx.conf:93):25: --> 103, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/11 21:36:26 [error] 10412\#10412: *186 stream [lua] content_by_lua(nginx.conf:93):26: --> 104, client: 127.0.0.1, server: 0.0.0.0:1985) |
'msg count: 3 log level:4 log body:2019/02/11 21:36:26 [error] 10412#10412: *186 stream [lua] content_by_lua(nginx.conf:93):11: --> 85, client: 127.0.0.1, server: 0.0.0.0:1985 log level:5 log body:2019/02/11 21:36:26 [warn] 10412#10412: *186 stream [lua] content_by_lua(nginx.conf:93):10: --> 86, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/11 21:36:26 [error] 10412#10412: *186 stream [lua] content_by_lua(nginx.conf:93):11: --> 86, client: 127.0.0.1, server: 0.0.0.0:1985 msg count: 3 log level:4 log body:2019/02/11 21:36:26 [error] 10412#10412: *186 stream [lua] content_by_lua(nginx.conf:93):11: --> 87, client: 127.0.0.1, server: 0.0.0.0:1985 log level:5 log body:2019/02/11 21:36:26 [warn] 10412#10412: *186 stream [lua] content_by_lua(nginx.conf:93):10: --> 88, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/11 21:36:26 [error] 10412#10412: *186 stream [lua] content_by_lua(nginx.conf:93):11: --> 88, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/11 21:36:26 [error] 10412#10412: *186 stream [lua] content_by_lua(nginx.conf:93):24: --> 102, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/11 21:36:26 [error] 10412#10412: *186 stream [lua] content_by_lua(nginx.conf:93):25: --> 103, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/11 21:36:26 [error] 10412#10412: *186 stream [lua] content_by_lua(nginx.conf:93):26: --> 104, client: 127.0.0.1, server: 0.0.0.0:1985 ' doesn't match '(?^s:\Amsg count: 3 log level:4 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 84, client: 127.0.0.1, server: 0.0.0.0:\d+ log level:5 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 85, client: 127.0.0.1, server: 0.0.0.0:\d+ log level:4 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 85, client: 127.0.0.1, server: 0.0.0.0:\d+ msg count: 3 log level:5 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 86, client: 127.0.0.1, server: 0.0.0.0:\d+ log level:4 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 86, client: 127.0.0.1, server: 0.0.0.0:\d+ log level:5 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 87, client: 127.0.0.1, server: 0.0.0.0:\d+ log level:4 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 102, client: 127.0.0.1, server: 0.0.0.0:\d+ log level:4 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 103, client: 127.0.0.1, server: 0.0.0.0:\d+ log level:4 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 104, client: 127.0.0.1, server: 0.0.0.0:\d+ |msg count: 3 log level:4 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 84, client: 127.0.0.1, server: 0.0.0.0:\d+ log level:5 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 85, client: 127.0.0.1, server: 0.0.0.0:\d+ log level:4 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 85, client: 127.0.0.1, server: 0.0.0.0:\d+ msg count: 3 log level:5 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 87, client: 127.0.0.1, server: 0.0.0.0:\d+ log level:4 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 87, client: 127.0.0.1, server: 0.0.0.0:\d+ log level:5 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 88, client: 127.0.0.1, server: 0.0.0.0:\d+ log level:4 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 102, client: 127.0.0.1, server: 0.0.0.0:\d+ log level:4 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 103, client: 127.0.0.1, server: 0.0.0.0:\d+ log level:4 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 104, client: 127.0.0.1, server: 0.0.0.0:\d+ \z)' |
stream/errlog.t | TEST 12: filter log by level(ngx.WARN) - response_body - response is expected (repeated req 0, req 0) |
got: 'Is "debug" the system default filter level? true' expected: 'log lines:2 ' |
stream/errlog.t | TEST 12: filter log by level(ngx.WARN) - grep_error_log_out (req 0) |
@@ -1,3 +0,0 @@ --->1 --->2 --->3 ' |
stream/errlog.t | TEST 12: filter log by level(ngx.WARN) - response_body - response is expected (repeated req 1, 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/11 21:36:27 [notice] 10233\#10233: start worker processes log level:4 log body:2019/02/11 21:36:27 [error] 10487\#10487: *254 stream [lua] content_by_lua(nginx.conf:75):8: --> new line, client: 127.0.0.1, server: 0.0.0.0:1985 end maybe log lines: \#2 end) |
'maybe log lines: #2 log level:6 log body:2019/02/11 21:36:27 [notice] 10233#10233: start worker processes log level:4 log body:2019/02/11 21:36:27 [error] 10487#10487: *254 stream [lua] content_by_lua(nginx.conf:75):8: --> new line, client: 127.0.0.1, server: 0.0.0.0:1985 end maybe log lines: #2 end ' doesn't match '(?^s:\Amaybe log lines: #1 log level:4 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*content_by_lua\(nginx.conf:\d+\):\d+: --> new line, client: 127.0.0.1, server: 0.0.0.0:\d+ end maybe log lines: #1 end \z)' |
stream/errlog.t | TEST 13: filter log by level(ngx.CRIT) - response_body - response is expected (repeated req 0, req 0) |
got: 'log lines:1 ' expected: 'log lines:0 ' |
stream/errlog.t | TEST 3: client connected info - grep_error_log_out (req 0) |
'client 127.0.0.1:55550 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:55554 connected to capture log line:4 ' doesn't match '(?^:^client .*? connected to .*? capture log line:2 $)' |
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/semaphore.t | TEST 1: basic semaphore in uthread - pattern "[error]" should not match any line in error.log but matches line "2019/02/11 21:37:18 [error] 13102\#13102: *232 stream [lua] init_worker_by_lua:14: sem: timeout, context: ngx.timer" (req 1) |
2019/02/11 21:37:18 [debug] 13102\#13102: stream lua semaphore wait: 00000000018CC4A8, timeout: 1000, resources: 0, event posted: 0 2019/02/11 21:37:18 [debug] 13102\#13102: *232 event timer add: 0: 1000:14420472 2019/02/11 21:37:18 [debug] 13102\#13102: stream lua semaphore wait yielding 2019/02/11 21:37:18 [debug] 13102\#13102: *232 lua resume returned 1 2019/02/11 21:37:18 [debug] 13102\#13102: *232 lua thread yielded 2019/02/11 21:37:18 [debug] 13102\#13102: *232 lua run thread returned -2 2019/02/11 21:37:18 [debug] 13102\#13102: worker cycle 2019/02/11 21:37:18 [debug] 13102\#13102: epoll timer: 1000 2019/02/11 21:37:18 [debug] 13143\#13143: timer delta: 12 ' |
stream/semaphore.t | TEST 8: semaphore in preread_by_lua (all allowed) - grep_error_log_out (req 1) |
@@ -1,2 +1,3 @@ sem: timeout while prereading client data, sem: 1 while prereading client data, +sem: timeout, ' |
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/11 21:37:20 [error] 13102\#13102: *232 stream [lua] init_worker_by_lua:14: sem: timeout, context: ngx.timer" (req 0) |
2019/02/11 21:37:20 [error] 13102\#13102: *232 stream [lua] init_worker_by_lua:18: sem: 3 times, context: ngx.timer 2019/02/11 21:37:20 [debug] 13102\#13102: stream lua semaphore wait: 00000000018CC4A8, timeout: 1000, resources: 0, event posted: 0 2019/02/11 21:37:20 [debug] 13102\#13102: *232 event timer add: 0: 1000:14422476 2019/02/11 21:37:20 [debug] 13102\#13102: stream lua semaphore wait yielding 2019/02/11 21:37:20 [debug] 13102\#13102: *232 lua resume returned 1 2019/02/11 21:37:20 [debug] 13102\#13102: *232 lua thread yielded 2019/02/11 21:37:20 [debug] 13102\#13102: *232 lua run thread returned -2 2019/02/11 21:37:20 [debug] 13102\#13102: worker cycle 2019/02/11 21:37:20 [debug] 13102\#13102: epoll timer: 1000 ' |
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/11 21:37:20 [error] 13102\#13102: *232 stream [lua] init_worker_by_lua:18: sem: 3 times, context: ngx.timer" (req 0) |
2019/02/11 21:37:20 [debug] 13102\#13102: stream lua semaphore wait: 00000000018CC4A8, timeout: 1000, resources: 0, event posted: 0 2019/02/11 21:37:20 [debug] 13102\#13102: *232 event timer add: 0: 1000:14422476 2019/02/11 21:37:20 [debug] 13102\#13102: stream lua semaphore wait yielding 2019/02/11 21:37:20 [debug] 13102\#13102: *232 lua resume returned 1 2019/02/11 21:37:20 [debug] 13102\#13102: *232 lua thread yielded 2019/02/11 21:37:20 [debug] 13102\#13102: *232 lua run thread returned -2 2019/02/11 21:37:20 [debug] 13102\#13102: worker cycle 2019/02/11 21:37:20 [debug] 13102\#13102: epoll timer: 1000 2019/02/11 21:37:20 [notice] 12864\#12864: signal 1 (SIGHUP) received from 13276, reconfiguring ' |
stream/semaphore.t | TEST 10: semaphore in log_by_lua (wait not allowed) - grep_error_log_out (req 0) |
@@ -1,2 +1,3 @@ +sem: timeout, sem: 1 while returning text, sem: API disabled in the context of log_by_lua* while returning text, ' |
stream/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 ' |
stream/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 ' |
stream/ssl.t | TEST 5: read raw server addr via ssl.raw_server_addr() (unix domain socket) - response_body - response is expected (repeated req 0, req 0) |
@@ -1,4 +1 @@ -connected: 1 +failed to connect: no such file or directory -ssl handshake: userdata -received: it works! -close: 1 nil ' |
stream/ssl.t | TEST 5: read raw server addr via ssl.raw_server_addr() (unix domain socket) - pattern "lua ssl server name: "test.com"" should match a line in error.log (req 0) | |
stream/ssl.t | TEST 5: read raw server addr via ssl.raw_server_addr() (unix domain socket) - pattern "(?^:Using unix socket file .*?nginx\.sock)" should match a line in error.log (req 0) | |
stream/ssl.t | TEST 5: read raw server addr via ssl.raw_server_addr() (unix domain socket) - response_body - response is expected (repeated req 1, req 0) |
@@ -1,4 +1 @@ -connected: 1 +failed to connect: no such file or directory -ssl handshake: userdata -received: it works! -close: 1 nil ' |
stream/ssl.t | TEST 5: read raw server addr via ssl.raw_server_addr() (unix domain socket) - pattern "lua ssl server name: "test.com"" should match a line in error.log (req 1) | |
stream/ssl.t | TEST 5: read raw server addr via ssl.raw_server_addr() (unix domain socket) - pattern "(?^:Using unix socket file .*?nginx\.sock)" should match a line in error.log (req 1) | |
stream/ssl.t | TEST 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) | |
stream/ssl.t | TEST 17: parse PEM cert and key to cdata (bad cert 0 in the chain) - response_body - response is expected (repeated req 0, req 0) |
@@ -1,2 +1 @@ -connected: 1 +failed to connect: no such file or directory -failed to do SSL handshake: handshake failed ' |
stream/ssl.t | TEST 17: parse PEM cert and key to cdata (bad cert 0 in the chain) - pattern "(?^:\[error\] .*? failed to parse pem cert: PEM_read_bio_X509_AUX\(\) failed)" should match a line in error.log (req 0) | |
stream/ssl.t | TEST 17: parse PEM cert and key to cdata (bad cert 0 in the chain) - pattern "[crit]" should not match any line in error.log but matches line "2019/02/11 21:37:45 [crit] 14579\#14579: *237 connect() to unix:/home/ec2-user/git/lua-resty-core/t/servroot/html/nginx.sock failed (2: No such file or directory), client: 127.0.0.1, server: 0.0.0.0:1985" (req 0) |
2019/02/11 21:37:45 [debug] 14579\#14579: *237 reusable connection: 0 2019/02/11 21:37:45 [debug] 14579\#14579: *237 malloc: 0000000000DF4720:24 2019/02/11 21:37:45 [debug] 14579\#14579: *237 malloc: 0000000000DF4740:16 2019/02/11 21:37:45 [debug] 14579\#14579: *237 stream cleanup add: 0000000000DF4720 2019/02/11 21:37:45 [debug] 14579\#14579: *237 stream lua tcp socket connect: -5 2019/02/11 21:37:45 [debug] 14579\#14579: *237 stream lua tcp socket error retval handler 2019/02/11 21:37:45 [debug] 14579\#14579: *237 stream lua finalize socket 2019/02/11 21:37:45 [debug] 14579\#14579: *237 lua stream cleanup free: 0000000000DF4720 2019/02/11 21:37:45 [debug] 14579\#14579: *237 malloc: 0000000000DFFB40:16 ' |
stream/ssl.t | TEST 17: parse PEM cert and key to cdata (bad cert 0 in the chain) - response_body - response is expected (repeated req 1, req 0) |
@@ -1,2 +1 @@ -connected: 1 +failed to connect: no such file or directory -failed to do SSL handshake: handshake failed ' |
stream/ssl.t | TEST 17: parse PEM cert and key to cdata (bad cert 0 in the chain) - pattern "(?^:\[error\] .*? failed to parse pem cert: PEM_read_bio_X509_AUX\(\) failed)" should match a line in error.log (req 1) | |
stream/ssl.t | TEST 17: parse PEM cert and key to cdata (bad cert 0 in the chain) - pattern "[crit]" should not match any line in error.log but matches line "2019/02/11 21:37:45 [crit] 14579\#14579: *241 connect() to unix:/home/ec2-user/git/lua-resty-core/t/servroot/html/nginx.sock failed (2: No such file or directory), client: 127.0.0.1, server: 0.0.0.0:1985" (req 1) |
2019/02/11 21:37:45 [debug] 14579\#14579: *241 reusable connection: 0 2019/02/11 21:37:45 [debug] 14579\#14579: *241 malloc: 0000000000DF8200:24 2019/02/11 21:37:45 [debug] 14579\#14579: *241 malloc: 0000000000DF8220:16 2019/02/11 21:37:45 [debug] 14579\#14579: *241 stream cleanup add: 0000000000DF8200 2019/02/11 21:37:45 [debug] 14579\#14579: *241 stream lua tcp socket connect: -5 2019/02/11 21:37:45 [debug] 14579\#14579: *241 stream lua tcp socket error retval handler 2019/02/11 21:37:45 [debug] 14579\#14579: *241 stream lua finalize socket 2019/02/11 21:37:45 [debug] 14579\#14579: *241 lua stream cleanup free: 0000000000DF8200 2019/02/11 21:37:45 [debug] 14579\#14579: *241 malloc: 0000000000DF4700:16 ' |
stream/ssl.t | TEST 16: parse PEM cert and key to cdata - response_body - response is expected (repeated req 0, req 0) |
@@ -1,4 +1 @@ -connected: 1 +failed to connect: no such file or directory -ssl handshake: userdata -received: it works! -close: 1 nil ' |
stream/ssl.t | TEST 16: parse PEM cert and key to cdata - pattern "lua ssl server name: "test.com"" should match a line in error.log (req 0) | |
stream/ssl.t | TEST 16: parse PEM cert and key to cdata - response_body - response is expected (repeated req 1, req 0) |
@@ -1,4 +1 @@ -connected: 1 +failed to connect: no such file or directory -ssl handshake: userdata -received: it works! -close: 1 nil ' |
stream/ssl.t | TEST 16: parse PEM cert and key to cdata - pattern "lua ssl server name: "test.com"" should match a line in error.log (req 1) | |
stream/ssl.t | TEST 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 9: read PEM cert chain but set DER cert chain - response_body - response is expected (repeated req 0, req 0) |
@@ -1,4 +1 @@ -connected: 1 +failed to connect: no such file or directory -ssl handshake: userdata -received: it works! -close: 1 nil ' |
stream/ssl.t | TEST 9: read PEM cert chain but set DER cert chain - pattern "lua ssl server name: "test.com"" should match a line in error.log (req 0) | |
stream/ssl.t | TEST 9: read PEM cert chain but set DER cert chain - response_body - response is expected (repeated req 1, req 0) |
@@ -1,4 +1 @@ -connected: 1 +failed to connect: no such file or directory -ssl handshake: userdata -received: it works! -close: 1 nil ' |
stream/ssl.t | TEST 9: read PEM cert chain but set DER cert chain - pattern "lua ssl server name: "test.com"" should match a line in error.log (req 1) | |
stream/ssl.t | TEST 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 ' |
stream/ssl.t | TEST 19: parse PEM cert and key to cdata (bad priv key) - pattern "(?^:\[error\] .*? failed to parse pem key: PEM_read_bio_PrivateKey\(\) failed)" should match a line in error.log (req 0) | |
stream/ssl.t | TEST 19: parse PEM cert and key to cdata (bad priv key) - pattern "[crit]" should not match any line in error.log but matches line "2019/02/11 21:37:46 [crit] 14657\#14657: *320 connect() to unix:/home/ec2-user/git/lua-resty-core/t/servroot/html/nginx.sock failed (2: No such file or directory), client: 127.0.0.1, server: 0.0.0.0:1985" (req 0) |
2019/02/11 21:37:46 [debug] 14657\#14657: *320 reusable connection: 0 2019/02/11 21:37:46 [debug] 14657\#14657: *320 malloc: 0000000000DC3B60:24 2019/02/11 21:37:46 [debug] 14657\#14657: *320 malloc: 0000000000E5BBE0:16 2019/02/11 21:37:46 [debug] 14657\#14657: *320 stream cleanup add: 0000000000DC3B60 2019/02/11 21:37:46 [debug] 14657\#14657: *320 stream lua tcp socket connect: -5 2019/02/11 21:37:46 [debug] 14657\#14657: *320 stream lua tcp socket error retval handler 2019/02/11 21:37:46 [debug] 14657\#14657: *320 stream lua finalize socket 2019/02/11 21:37:46 [debug] 14657\#14657: *320 lua stream cleanup free: 0000000000DC3B60 2019/02/11 21:37:46 [debug] 14657\#14657: *320 malloc: 0000000000E5BC00:16 ' |
stream/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 ' |
stream/ssl.t | TEST 19: parse PEM cert and key to cdata (bad priv key) - pattern "(?^:\[error\] .*? failed to parse pem key: PEM_read_bio_PrivateKey\(\) failed)" should match a line in error.log (req 1) | |
stream/ssl.t | TEST 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/11 21:37:47 [crit] 14657\#14657: *324 connect() to unix:/home/ec2-user/git/lua-resty-core/t/servroot/html/nginx.sock failed (2: No such file or directory), client: 127.0.0.1, server: 0.0.0.0:1985" (req 1) |
2019/02/11 21:37:47 [debug] 14657\#14657: *324 reusable connection: 0 2019/02/11 21:37:47 [debug] 14657\#14657: *324 malloc: 0000000000E5BC00:24 2019/02/11 21:37:47 [debug] 14657\#14657: *324 malloc: 0000000000E19BA0:16 2019/02/11 21:37:47 [debug] 14657\#14657: *324 stream cleanup add: 0000000000E5BC00 2019/02/11 21:37:47 [debug] 14657\#14657: *324 stream lua tcp socket connect: -5 2019/02/11 21:37:47 [debug] 14657\#14657: *324 stream lua tcp socket error retval handler 2019/02/11 21:37:47 [debug] 14657\#14657: *324 stream lua finalize socket 2019/02/11 21:37:47 [debug] 14657\#14657: *324 lua stream cleanup free: 0000000000E5BC00 2019/02/11 21:37:47 [debug] 14657\#14657: *324 malloc: 0000000000E19BC0:16 ' |
stream/ssl.t | TEST 20: read client addr via ssl.raw_client_addr() - pattern "[emerg]" should not match any line in error.log but matches line "2019/02/11 21:37:47 [emerg] 14383\#14383: unlink() /home/ec2-user/git/lua-resty-core/t/servroot/html/nginx.sock failed (2: No such file or directory)" (req 0) |
2019/02/11 21:37:47 [notice] 14383\#14383: start worker processes 2019/02/11 21:37:47 [debug] 14383\#14383: channel 4:6 2019/02/11 21:37:47 [notice] 14383\#14383: start worker process 14677 2019/02/11 21:37:47 [debug] 14383\#14383: pass channel s:1 pid:14677 fd:4 to s:0 pid:14657 fd:3 2019/02/11 21:37:47 [debug] 14657\#14657: epoll: fd:5 ev:0001 d:0000000000E644A0 2019/02/11 21:37:47 [debug] 14657\#14657: channel handler 2019/02/11 21:37:47 [debug] 14657\#14657: channel: 32 2019/02/11 21:37:47 [debug] 14657\#14657: channel command: 1 2019/02/11 21:37:47 [debug] 14657\#14657: get channel s:1 pid:14677 fd:6 ' |
stream/ssl.t | TEST 11: tls version - TLSv1 - pattern "[emerg]" should not match any line in error.log but matches line "2019/02/11 21:37:48 [emerg] 14383\#14383: unlink() /home/ec2-user/git/lua-resty-core/t/servroot/html/nginx.sock failed (2: No such file or directory)" (req 0) |
2019/02/11 21:37:48 [notice] 14383\#14383: start worker processes 2019/02/11 21:37:48 [debug] 14383\#14383: channel 3:5 2019/02/11 21:37:48 [notice] 14383\#14383: start worker process 14743 2019/02/11 21:37:48 [debug] 14383\#14383: pass channel s:0 pid:14743 fd:3 to s:1 pid:14719 fd:4 2019/02/11 21:37:48 [debug] 14719\#14719: epoll: fd:6 ev:0001 d:0000000000E64D90 2019/02/11 21:37:48 [debug] 14719\#14719: channel handler 2019/02/11 21:37:48 [debug] 14719\#14719: channel: 32 2019/02/11 21:37:48 [debug] 14719\#14719: channel command: 1 2019/02/11 21:37:48 [debug] 14719\#14719: get channel s:0 pid:14743 fd:5 ' |
File | Name | Details |
---|---|---|
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/11 21:32:57 [warn] 577\#577: *43 [lua] content_by_lua(nginx.conf:67):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/11 21:32:57 [warn] 577\#577: *44 [lua] content_by_lua(nginx.conf:67):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 21: multi-line error log - response_body_like - response is expected (log lines: \#10 log level:6 log body:2019/02/11 21:32:57 [notice] 531\#531: start worker processes log level:7 log body:2019/02/11 21:32:57 [info] 615\#615: *61 client 127.0.0.1 closed keepalive connection log level:7 log body:2019/02/11 21:32:57 [info] 615\#615: *62 client 127.0.0.1 closed keepalive connection log level:7 log body:2019/02/11 21:32:57 [info] 615\#615: *63 client 127.0.0.1 closed keepalive connection log level:7 log body:2019/02/11 21:32:57 [info] 615\#615: *64 client 127.0.0.1 closed keepalive connection log level:7 log body:2019/02/11 21:32:57 [info] 615\#615: *65 client 127.0.0.1 closed keepalive connection log level:7 log body:2019/02/11 21:32:57 [info] 615\#615: *66 client 127.0.0.1 closed keepalive connection log level:7 log body:2019/02/11 21:32:57 [info] 615\#615: *67 client 127.0.0.1 closed keepalive connection log level:7 log body:2019/02/11 21:32:57 [info] 615\#615: *68 client 127.0.0.1 closed keepalive connection log level:7 log body:2019/02/11 21:32:57 [info] 615\#615: *69 client 127.0.0.1 closed keepalive connection) |
'log lines: #10 log level:6 log body:2019/02/11 21:32:57 [notice] 531#531: start worker processes log level:7 log body:2019/02/11 21:32:57 [info] 615#615: *61 client 127.0.0.1 closed keepalive connection log level:7 log body:2019/02/11 21:32:57 [info] 615#615: *62 client 127.0.0.1 closed keepalive connection log level:7 log body:2019/02/11 21:32:57 [info] 615#615: *63 client 127.0.0.1 closed keepalive connection log level:7 log body:2019/02/11 21:32:57 [info] 615#615: *64 client 127.0.0.1 closed keepalive connection log level:7 log body:2019/02/11 21:32:57 [info] 615#615: *65 client 127.0.0.1 closed keepalive connection log level:7 log body:2019/02/11 21:32:57 [info] 615#615: *66 client 127.0.0.1 closed keepalive connection log level:7 log body:2019/02/11 21:32:57 [info] 615#615: *67 client 127.0.0.1 closed keepalive connection log level:7 log body:2019/02/11 21:32:57 [info] 615#615: *68 client 127.0.0.1 closed keepalive connection log level:7 log body:2019/02/11 21:32:57 [info] 615#615: *69 client 127.0.0.1 closed keepalive connection ' doesn't match '(?^s:\Alog lines: #1 log level:4 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*access_by_lua\(nginx.conf:\d+\):\d+: --> new line, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" \z)' |
errlog.t | TEST 21: multi-line error log - response_body_like - response is expected (log lines: \#3 log level:7 log body:2019/02/11 21:32:57 [info] 615\#615: *70 client 127.0.0.1 closed keepalive connection log level:4 log body:2019/02/11 21:32:57 [error] 615\#615: *71 [lua] access_by_lua(nginx.conf:66):8: --> new line, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level:4 log body:2019/02/11 21:32:57 [error] 615\#615: *72 [lua] access_by_lua(nginx.conf:66):8: --> new line, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost") |
'log lines: #3 log level:7 log body:2019/02/11 21:32:57 [info] 615#615: *70 client 127.0.0.1 closed keepalive connection log level:4 log body:2019/02/11 21:32:57 [error] 615#615: *71 [lua] access_by_lua(nginx.conf:66):8: --> new line, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level:4 log body:2019/02/11 21:32:57 [error] 615#615: *72 [lua] access_by_lua(nginx.conf:66):8: --> new line, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" ' doesn't match '(?^s:\Alog lines: #1 log level:4 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*access_by_lua\(nginx.conf:\d+\):\d+: --> new line, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" \z)' |
errlog.t | nginx: [emerg] | invalid number of arguments in "lua_capture_error_log" directive in /home/ec2-user/git/lua-resty-core/t/servroot/conf/nginx.conf:25 |
errlog.t | TEST 11: filter log by level(ngx.INFO) - response_body - response is expected (repeated req 0, req 0) |
got: 'log lines:10 ' expected: 'log lines:3 ' |
errlog.t | TEST 11: filter log by level(ngx.INFO) - response_body - response is expected (repeated req 1, req 0) |
got: 'log lines:7 ' expected: 'log lines:3 ' |
errlog.t | TEST 22: user-supplied Lua table to hold the result (get one log + no log) - response_body_like - response is expected (maybe log lines: \#10 log level:6 log body:2019/02/11 21:32:59 [notice] 637\#637: start worker processes log level:7 log body:2019/02/11 21:32:59 [info] 702\#702: *45 client 127.0.0.1 closed keepalive connection log level:7 log body:2019/02/11 21:32:59 [info] 702\#702: *46 client 127.0.0.1 closed keepalive connection log level:7 log body:2019/02/11 21:32:59 [info] 702\#702: *47 client 127.0.0.1 closed keepalive connection log level:7 log body:2019/02/11 21:32:59 [info] 702\#702: *48 client 127.0.0.1 closed keepalive connection log level:7 log body:2019/02/11 21:32:59 [info] 702\#702: *49 client 127.0.0.1 closed keepalive connection log level:7 log body:2019/02/11 21:32:59 [info] 702\#702: *50 client 127.0.0.1 closed keepalive connection log level:7 log body:2019/02/11 21:32:59 [info] 702\#702: *51 client 127.0.0.1 closed keepalive connection log level:7 log body:2019/02/11 21:32:59 [info] 702\#702: *52 client 127.0.0.1 closed keepalive connection log level:7 log body:2019/02/11 21:32:59 [info] 702\#702: *53 client 127.0.0.1 closed keepalive connection end maybe log lines: \#10 log level:7 log body:2019/02/11 21:32:59 [info] 702\#702: *54 client 127.0.0.1 closed keepalive connection log level:4 log body:2019/02/11 21:32:59 [error] 702\#702: *55 [lua] access_by_lua(nginx.conf:66):8: --> new line, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" end) |
'maybe log lines: #10 log level:6 log body:2019/02/11 21:32:59 [notice] 637#637: start worker processes log level:7 log body:2019/02/11 21:32:59 [info] 702#702: *45 client 127.0.0.1 closed keepalive connection log level:7 log body:2019/02/11 21:32:59 [info] 702#702: *46 client 127.0.0.1 closed keepalive connection log level:7 log body:2019/02/11 21:32:59 [info] 702#702: *47 client 127.0.0.1 closed keepalive connection log level:7 log body:2019/02/11 21:32:59 [info] 702#702: *48 client 127.0.0.1 closed keepalive connection log level:7 log body:2019/02/11 21:32:59 [info] 702#702: *49 client 127.0.0.1 closed keepalive connection log level:7 log body:2019/02/11 21:32:59 [info] 702#702: *50 client 127.0.0.1 closed keepalive connection log level:7 log body:2019/02/11 21:32:59 [info] 702#702: *51 client 127.0.0.1 closed keepalive connection log level:7 log body:2019/02/11 21:32:59 [info] 702#702: *52 client 127.0.0.1 closed keepalive connection log level:7 log body:2019/02/11 21:32:59 [info] 702#702: *53 client 127.0.0.1 closed keepalive connection end maybe log lines: #10 log level:7 log body:2019/02/11 21:32:59 [info] 702#702: *54 client 127.0.0.1 closed keepalive connection log level:4 log body:2019/02/11 21:32:59 [error] 702#702: *55 [lua] access_by_lua(nginx.conf:66):8: --> new line, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" end ' doesn't match '(?^s:\Amaybe log lines: #1 log level:4 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*access_by_lua\(nginx.conf:\d+\):\d+: --> new line, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" end maybe log lines: #1 end \z)' |
errlog.t | nginx: [emerg] | invalid capture error log size "3k", minimum size is 4096 in /home/ec2-user/git/lua-resty-core/t/servroot/conf/nginx.conf:25 |
errlog.t | TEST 16: check the captured error log body - response_body_like - response is expected (log level:6 log body:2019/02/11 21:32:59 [notice] 741\#741: start worker processes log level:7 log body:2019/02/11 21:32:59 [info] 749\#749: *5 client 127.0.0.1 closed keepalive connection log level:7 log body:2019/02/11 21:32:59 [info] 749\#749: *6 client 127.0.0.1 closed keepalive connection log level:7 log body:2019/02/11 21:32:59 [info] 749\#749: *7 client 127.0.0.1 closed keepalive connection log level:7 log body:2019/02/11 21:32:59 [info] 749\#749: *8 client 127.0.0.1 closed keepalive connection log level:7 log body:2019/02/11 21:32:59 [info] 749\#749: *9 client 127.0.0.1 closed keepalive connection log level:7 log body:2019/02/11 21:32:59 [info] 749\#749: *10 client 127.0.0.1 closed keepalive connection log level:7 log body:2019/02/11 21:32:59 [info] 749\#749: *11 client 127.0.0.1 closed keepalive connection log level:7 log body:2019/02/11 21:32:59 [info] 749\#749: *12 client 127.0.0.1 closed keepalive connection log level:7 log body:2019/02/11 21:32:59 [info] 749\#749: *13 client 127.0.0.1 closed keepalive connection) |
'log level:6 log body:2019/02/11 21:32:59 [notice] 741#741: start worker processes log level:7 log body:2019/02/11 21:32:59 [info] 749#749: *5 client 127.0.0.1 closed keepalive connection log level:7 log body:2019/02/11 21:32:59 [info] 749#749: *6 client 127.0.0.1 closed keepalive connection log level:7 log body:2019/02/11 21:32:59 [info] 749#749: *7 client 127.0.0.1 closed keepalive connection log level:7 log body:2019/02/11 21:32:59 [info] 749#749: *8 client 127.0.0.1 closed keepalive connection log level:7 log body:2019/02/11 21:32:59 [info] 749#749: *9 client 127.0.0.1 closed keepalive connection log level:7 log body:2019/02/11 21:32:59 [info] 749#749: *10 client 127.0.0.1 closed keepalive connection log level:7 log body:2019/02/11 21:32:59 [info] 749#749: *11 client 127.0.0.1 closed keepalive connection log level:7 log body:2019/02/11 21:32:59 [info] 749#749: *12 client 127.0.0.1 closed keepalive connection log level:7 log body:2019/02/11 21:32:59 [info] 749#749: *13 client 127.0.0.1 closed keepalive connection ' doesn't match '(?^s:log level:5 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*access_by_lua\(nginx.conf:\d+\):\d+: -->2, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level:4 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*access_by_lua\(nginx.conf:\d+\):\d+: -->3, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" )' |
errlog.t | TEST 31: ringbuf sentinel bug2 - response_body - response is expected (repeated req 0, req 0) |
@@ -1,2 +1,2 @@ log lines: \#18 -log lines: \#8 +log lines: \#10 ' |
errlog.t | TEST 13: filter log by level(ngx.CRIT) - response_body - response is expected (repeated req 0, req 0) |
got: 'log lines:10 ' expected: 'log lines:0 ' |
errlog.t | TEST 13: filter log by level(ngx.CRIT) - response_body - response is expected (repeated req 1, req 0) |
got: 'log lines:1 ' expected: 'log lines:0 ' |
errlog.t | TEST 12: filter log by level(ngx.WARN) - response_body - response is expected (repeated req 0, req 0) |
got: 'log lines:10 ' expected: 'log lines:2 ' |
errlog.t | TEST 12: filter log by level(ngx.WARN) - response_body - response is expected (repeated req 1, req 0) |
got: 'log lines:5 ' expected: 'log lines:2 ' |
errlog.t | TEST 29: ringbuf overflow bug - response_body_like - response is expected (log level: 4 log time: 1549920784.025 log body: 2019/02/11 21:33:04 [error] 1002\#1002: *198 [lua] content_by_lua(nginx.conf:84):8: **********28, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level: 4 log time: 1549920784.025 log body: 2019/02/11 21:33:04 [error] 1002\#1002: *198 [lua] content_by_lua(nginx.conf:84):8: **********29, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level: 4 log time: 1549920784.025 log body: 2019/02/11 21:33:04 [error] 1002\#1002: *198 [lua] content_by_lua(nginx.conf:84):8: **********30, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level: 4 log time: 1549920784.025 log body: 2019/02/11 21:33:04 [error] 1002\#1002: *198 [lua] content_by_lua(nginx.conf:84):8: **********31, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level: 4 log time: 1549920784.025 log body: 2019/02/11 21:33:04 [error] 1002\#1002: *198 [lua] content_by_lua(nginx.conf:84):8: **********32, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level: 4 log time: 1549920784.025 log body: 2019/02/11 21:33:04 [error] 1002\#1002: *198 [lua] content_by_lua(nginx.conf:84):8: **********33, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level: 4 log time: 1549920784.025 log body: 2019/02/11 21:33:04 [error] 1002\#1002: *198 [lua] content_by_lua(nginx.conf:84):8: **********34, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level: 4 log time: 1549920784.025 log body: 2019/02/11 21:33:04 [error] 1002\#1002: *198 [lua] content_by_lua(nginx.conf:84):8: **********35, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level: 4 log time: 1549920784.025 log body: 2019/02/11 21:33:04 [error] 1002\#1002: *198 [lua] content_by_lua(nginx.conf:84):8: **********36, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level: 4 log time: 1549920784.025 log body: 2019/02/11 21:33:04 [error] 1002\#1002: *198 [lua] content_by_lua(nginx.conf:84):8: **********37, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost") |
'log level: 4 log time: 1549920784.025 log body: 2019/02/11 21:33:04 [error] 1002#1002: *198 [lua] content_by_lua(nginx.conf:84):8: **********28, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level: 4 log time: 1549920784.025 log body: 2019/02/11 21:33:04 [error] 1002#1002: *198 [lua] content_by_lua(nginx.conf:84):8: **********29, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level: 4 log time: 1549920784.025 log body: 2019/02/11 21:33:04 [error] 1002#1002: *198 [lua] content_by_lua(nginx.conf:84):8: **********30, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level: 4 log time: 1549920784.025 log body: 2019/02/11 21:33:04 [error] 1002#1002: *198 [lua] content_by_lua(nginx.conf:84):8: **********31, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level: 4 log time: 1549920784.025 log body: 2019/02/11 21:33:04 [error] 1002#1002: *198 [lua] content_by_lua(nginx.conf:84):8: **********32, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level: 4 log time: 1549920784.025 log body: 2019/02/11 21:33:04 [error] 1002#1002: *198 [lua] content_by_lua(nginx.conf:84):8: **********33, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level: 4 log time: 1549920784.025 log body: 2019/02/11 21:33:04 [error] 1002#1002: *198 [lua] content_by_lua(nginx.conf:84):8: **********34, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level: 4 log time: 1549920784.025 log body: 2019/02/11 21:33:04 [error] 1002#1002: *198 [lua] content_by_lua(nginx.conf:84):8: **********35, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level: 4 log time: 1549920784.025 log body: 2019/02/11 21:33:04 [error] 1002#1002: *198 [lua] content_by_lua(nginx.conf:84):8: **********36, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level: 4 log time: 1549920784.025 log body: 2019/02/11 21:33:04 [error] 1002#1002: *198 [lua] content_by_lua(nginx.conf:84):8: **********37, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" ' doesn't match '(?^s:log level: 4 log time: \d+(?:\.\d+)? log body: \d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: \*\*\*\*\*\*\*\*\*\*39, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level: 4 log time: \d{10}(?:\.\d+)? log body: \d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: \*\*\*\*\*\*\*\*\*\*40, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost")' |
ocsp.t | TEST 11: fail to validate OCSP response - no issuer cert - response_body - response is expected (repeated req 0, req 0) |
@@ -1,2 +1 @@ -connected: 1 +failed to connect: no such file or directory -ssl handshake: userdata ' |
ocsp.t | TEST 11: fail to validate OCSP response - no issuer cert - pattern "lua ssl server name: "test.com"" should match a line in error.log (req 0) | |
ocsp.t | TEST 11: fail to validate OCSP response - no issuer cert - pattern "failed to validate OCSP response: no issuer certificate in chain" should match a line in error.log (req 0) | |
ocsp.t | TEST 11: fail to validate OCSP response - no issuer cert - response_body - response is expected (repeated req 1, req 0) |
@@ -1,2 +1 @@ -connected: 1 +failed to connect: no such file or directory -ssl handshake: userdata ' |
ocsp.t | TEST 11: fail to validate OCSP response - no issuer cert - pattern "lua ssl server name: "test.com"" should match a line in error.log (req 1) | |
ocsp.t | TEST 11: fail to validate OCSP response - no issuer cert - pattern "failed to validate OCSP response: no issuer certificate in chain" should match a line in error.log (req 1) | |
ocsp.t | TEST 6: create OCSP request (good) - response_body - response is expected (repeated req 0, req 0) |
@@ -1,2 +1 @@ -connected: 1 +failed to connect: no such file or directory -ssl handshake: userdata ' |
ocsp.t | TEST 6: create OCSP request (good) - pattern "lua ssl server name: "test.com"" should match a line in error.log (req 0) | |
ocsp.t | TEST 6: create OCSP request (good) - pattern "OCSP request created with length 68" should match a line in error.log (req 0) | |
ocsp.t | TEST 6: create OCSP request (good) - response_body - response is expected (repeated req 1, req 0) |
@@ -1,2 +1 @@ -connected: 1 +failed to connect: no such file or directory -ssl handshake: userdata ' |
ocsp.t | TEST 6: create OCSP request (good) - pattern "lua ssl server name: "test.com"" should match a line in error.log (req 1) | |
ocsp.t | TEST 6: create OCSP request (good) - pattern "OCSP request created with length 68" should match a line in error.log (req 1) | |
ocsp.t | TEST 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 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 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 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 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 16: good status req from client - pattern "[emerg]" should not match any line in error.log but matches line "2019/02/11 21:33:29 [emerg] 1682\#1682: unlink() /home/ec2-user/git/lua-resty-core/t/servroot/html/nginx.sock failed (2: No such file or directory)" (req 0) |
2019/02/11 21:33:29 [notice] 1682\#1682: start worker processes 2019/02/11 21:33:29 [debug] 1682\#1682: channel 4:6 2019/02/11 21:33:29 [notice] 1682\#1682: start worker process 1854 2019/02/11 21:33:29 [debug] 1682\#1682: pass channel s:1 pid:1854 fd:4 to s:0 pid:1834 fd:3 2019/02/11 21:33:29 [debug] 1834\#1834: epoll: fd:5 ev:0001 d:00000000021F1998 2019/02/11 21:33:29 [debug] 1834\#1834: channel handler 2019/02/11 21:33:29 [debug] 1834\#1834: channel: 32 2019/02/11 21:33:29 [debug] 1834\#1834: channel command: 1 2019/02/11 21:33:29 [debug] 1834\#1834: get channel s:1 pid:1854 fd:8 ' |
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 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) | |
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 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 17: no status req from client - pattern "[emerg]" should not match any line in error.log but matches line "2019/02/11 21:33:31 [emerg] 1682\#1682: unlink() /home/ec2-user/git/lua-resty-core/t/servroot/html/nginx.sock failed (2: No such file or directory)" (req 0) |
2019/02/11 21:33:31 [notice] 1682\#1682: start worker processes 2019/02/11 21:33:31 [debug] 1682\#1682: channel 4:6 2019/02/11 21:33:31 [notice] 1682\#1682: start worker process 1980 2019/02/11 21:33:31 [debug] 1682\#1682: pass channel s:1 pid:1980 fd:4 to s:0 pid:1960 fd:3 2019/02/11 21:33:31 [debug] 1960\#1960: epoll: fd:5 ev:0001 d:00000000021B71B8 2019/02/11 21:33:31 [debug] 1960\#1960: channel handler 2019/02/11 21:33:31 [debug] 1960\#1960: channel: 32 2019/02/11 21:33:31 [debug] 1960\#1960: channel command: 1 2019/02/11 21:33:31 [debug] 1960\#1960: get channel s:1 pid:1980 fd:6 ' |
semaphore.t | TEST 2: semaphore wait order - pattern "[error]" should not match any line in error.log but matches line "2019/02/11 21:35:19 [error] 7120\#7120: *78 [lua] init_worker_by_lua:14: sem: timeout, context: ngx.timer" (req 0) |
2019/02/11 21:35:19 [debug] 7159\#7159: epoll: fd:10 ev:0001 d:0000000001C1A760 2019/02/11 21:35:19 [debug] 7159\#7159: channel handler 2019/02/11 21:35:19 [debug] 7120\#7120: http lua semaphore wait: 0000000001C20438, timeout: 1000, resources: 0, event posted: 0 2019/02/11 21:35:19 [debug] 7120\#7120: *78 event timer add: 0: 1000:14301781 2019/02/11 21:35:19 [debug] 7120\#7120: http lua semaphore wait yielding 2019/02/11 21:35:19 [debug] 7159\#7159: channel: 32 2019/02/11 21:35:19 [debug] 7159\#7159: channel command: 3 2019/02/11 21:35:19 [debug] 7120\#7120: *78 lua resume returned 1 2019/02/11 21:35:19 [debug] 7120\#7120: *78 lua thread yielded ' |
semaphore.t | TEST 39: basic semaphore count (negative number) - pattern "[error]" should not match any line in error.log but matches line "2019/02/11 21:35:20 [error] 7120\#7120: *78 [lua] init_worker_by_lua:14: sem: timeout, context: ngx.timer" (req 0) |
2019/02/11 21:35:20 [debug] 7120\#7120: http lua semaphore wait: 0000000001C20438, timeout: 1000, resources: 0, event posted: 0 2019/02/11 21:35:20 [debug] 7120\#7120: *78 event timer add: 0: 1000:14302781 2019/02/11 21:35:20 [debug] 7120\#7120: http lua semaphore wait yielding 2019/02/11 21:35:20 [debug] 7120\#7120: *78 lua resume returned 1 2019/02/11 21:35:20 [debug] 7120\#7120: *78 lua thread yielded 2019/02/11 21:35:20 [debug] 7120\#7120: *78 lua run thread returned -2 2019/02/11 21:35:20 [debug] 7120\#7120: worker cycle 2019/02/11 21:35:20 [debug] 7120\#7120: epoll timer: 1000 2019/02/11 21:35:20 [debug] 7235\#7235: epoll: fd:6 ev:0001 d:0000000001C1B2F0 ' |
semaphore.t | TEST 9: semaphore in set_by_lua (wait is not allowed) - grep_error_log_out (req 0) |
@@ -1,2 +1,3 @@ +sem: timeout, sem: 1, sem: API disabled in the context of set_by_lua*, ' |
semaphore.t | TEST 16: semaphore in ngx.timer (all allowed) - grep_error_log_out (req 0) |
@@ -1,2 +1,3 @@ sem: timeout, sem: 1, +sem: timeout, ' |
semaphore.t | TEST 3: semaphore wait time=0 - pattern "[error]" should not match any line in error.log but matches line "2019/02/11 21:35:25 [error] 7120\#7120: *78 [lua] init_worker_by_lua:14: sem: timeout, context: ngx.timer" (req 0) |
2019/02/11 21:35:25 [debug] 7120\#7120: http lua semaphore wait: 0000000001C20438, timeout: 1000, resources: 0, event posted: 0 2019/02/11 21:35:25 [debug] 7120\#7120: *78 event timer add: 0: 1000:14307785 2019/02/11 21:35:25 [debug] 7120\#7120: http lua semaphore wait yielding 2019/02/11 21:35:25 [debug] 7120\#7120: *78 lua resume returned 1 2019/02/11 21:35:25 [debug] 7120\#7120: *78 lua thread yielded 2019/02/11 21:35:25 [debug] 7120\#7120: *78 lua run thread returned -2 2019/02/11 21:35:25 [debug] 7120\#7120: worker cycle 2019/02/11 21:35:25 [debug] 7120\#7120: epoll timer: 1000 2019/02/11 21:35:25 [debug] 7482\#7482: epoll: fd:6 ev:0001 d:0000000001C1B470 ' |
semaphore.t | TEST 24: semaphore post in timer.at - pattern "[error]" should not match any line in error.log but matches line "2019/02/11 21:35:26 [error] 7120\#7120: *78 [lua] init_worker_by_lua:14: sem: timeout, context: ngx.timer" (req 0) |
2019/02/11 21:35:26 [debug] 7120\#7120: http lua semaphore wait: 0000000001C20438, timeout: 1000, resources: 0, event posted: 0 2019/02/11 21:35:26 [debug] 7120\#7120: *78 event timer add: 0: 1000:14308785 2019/02/11 21:35:26 [debug] 7120\#7120: http lua semaphore wait yielding 2019/02/11 21:35:26 [debug] 7120\#7120: *78 lua resume returned 1 2019/02/11 21:35:26 [debug] 7120\#7120: *78 lua thread yielded 2019/02/11 21:35:26 [debug] 7120\#7120: *78 lua run thread returned -2 2019/02/11 21:35:26 [debug] 7120\#7120: worker cycle 2019/02/11 21:35:26 [debug] 7120\#7120: epoll timer: 1000 2019/02/11 21:35:26 [debug] 7539\#7539: epoll: fd:6 ev:0001 d:0000000001C1B090 ' |
semaphore.t | TEST 15: semaphore in body_filter_by_lua (wait not allowed) - grep_error_log_out (req 0) |
@@ -1,3 +1,4 @@ +sem: timeout, sem: 1, sem: API disabled in the context of body_filter_by_lua*, sem: 1, ' |
semaphore.t | TEST 13: semaphore in log_by_lua (wait not allowed) - grep_error_log_out (req 1) |
@@ -1,2 +1,4 @@ sem: 1 while logging request, sem: API disabled in the context of log_by_lua* while logging request, +sem: timeout, +sem: 6 times, ' |
shared.t | TEST 3: shared.ttl returns error on not found key - response_body - response is expected (repeated req 0, req 0) |
got: '' expected: 'failed to get ttl: not found ' |
shared.t | TEST 3: shared.ttl returns error on not found key - response_body - response is expected (repeated req 1, req 0) |
got: '' expected: 'failed to get ttl: not found ' |
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 type: string -value: nil +value: bar -flags: nil +flags: 72 ' |
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 type: string -value: nil +value: bar -flags: nil +flags: 72 ' |
ssl-session-fetch.t | TEST 4: attempt to resume a corrupted session - response_body - response is expected (repeated req 0, req 0) |
@@ -1,3 +1 @@ -connected: 1 +failed to connect: no such file or directory -ssl handshake: userdata -close: 1 nil ' |
ssl-session-fetch.t | TEST 4: attempt to resume a corrupted session - grep_error_log_out (req 0) |
'' doesn't match '(?^s:^ssl_session_store_by_lua_block:5: session id: [a-fA-F\d]+$)' |
ssl-session-fetch.t | TEST 4: attempt to resume a corrupted session - response_body - response is expected (repeated req 1, req 0) |
@@ -1,3 +1 @@ -connected: 1 +failed to connect: no such file or directory -ssl handshake: userdata -close: 1 nil ' |
ssl-session-fetch.t | TEST 4: attempt to resume a corrupted session - grep_error_log_out (req 1) |
'' doesn't match '(?^s:^ssl_session_fetch_by_lua_block:4: session id: [a-fA-F\d]+ failed to resume session: failed to de-serialize session ssl_session_store_by_lua_block:5: session id: [a-fA-F\d]+ $)' |
ssl-session-fetch.t | TEST 6: store new session, and resume it, avoid memory leak when calling repeatly - response_body - response is expected (repeated req 0, req 0) |
@@ -1,3 +1 @@ -connected: 1 +failed to connect: no such file or directory -ssl handshake: userdata -close: 1 nil ' |
ssl-session-fetch.t | TEST 6: store new session, and resume it, avoid memory leak when calling repeatly - response_body - response is expected (repeated req 1, req 0) |
@@ -1,3 +1 @@ -connected: 1 +failed to connect: no such file or directory -ssl handshake: userdata -close: 1 nil ' |
ssl-session-fetch.t | TEST 5: yield during doing handshake with client which uses low version OpenSSL - pattern "[emerg]" should not match any line in error.log but matches line "2019/02/11 21:35:59 [emerg] 9107\#9107: unlink() /home/ec2-user/git/lua-resty-core/t/servroot/html/nginx.sock failed (2: No such file or directory)" (req 0) |
2019/02/11 21:35:59 [notice] 9107\#9107: start worker processes 2019/02/11 21:35:59 [debug] 9107\#9107: channel 4:6 2019/02/11 21:35:59 [notice] 9107\#9107: start worker process 9154 2019/02/11 21:35:59 [debug] 9107\#9107: pass channel s:1 pid:9154 fd:4 to s:0 pid:9135 fd:3 2019/02/11 21:35:59 [debug] 9135\#9135: epoll: fd:5 ev:0001 d:00000000021F47D8 2019/02/11 21:35:59 [debug] 9135\#9135: channel handler 2019/02/11 21:35:59 [debug] 9135\#9135: channel: 32 2019/02/11 21:35:59 [debug] 9135\#9135: channel command: 1 2019/02/11 21:35:59 [debug] 9135\#9135: get channel s:1 pid:9154 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 1: get new session serialized - response_body - response is expected (repeated req 0, req 0) |
@@ -1,3 +1 @@ -connected: 1 +failed to connect: no such file or directory -ssl handshake: userdata -close: 1 nil ' |
ssl-session-store.t | TEST 1: get new session serialized - pattern "(?^s:ssl_session_store_by_lua_block:4: session size: \d+)" should match a line in error.log (req 0) | |
ssl-session-store.t | TEST 1: get new session serialized - response_body - response is expected (repeated req 1, req 0) |
@@ -1,3 +1 @@ -connected: 1 +failed to connect: no such file or directory -ssl handshake: userdata -close: 1 nil ' |
ssl-session-store.t | TEST 1: get new session serialized - pattern "(?^s:ssl_session_store_by_lua_block:4: session size: \d+)" should match a line in error.log (req 1) | |
ssl-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.t | TEST 17: parse PEM cert and key to cdata (bad cert 0 in the chain) - response_body - response is expected (repeated req 0, req 0) |
@@ -1,2 +1 @@ -connected: 1 +failed to connect: no such file or directory -failed to do SSL handshake: handshake failed ' |
ssl.t | TEST 17: parse PEM cert and key to cdata (bad cert 0 in the chain) - pattern "(?^:\[error\] .*? failed to parse pem cert: PEM_read_bio_X509_AUX\(\) failed)" should match a line in error.log (req 0) | |
ssl.t | TEST 17: parse PEM cert and key to cdata (bad cert 0 in the chain) - pattern "[crit]" should not match any line in error.log but matches line "2019/02/11 21:36:03 [crit] 9310\#9310: *39 connect() to unix:/home/ec2-user/git/lua-resty-core/t/servroot/html/nginx.sock failed (2: No such file or directory), client: 127.0.0.1, server: localhost, request: \"GET /t HTTP/1.1\", host: \"localhost\"" (req 0) |
2019/02/11 21:36:03 [debug] 9310\#9310: *39 reusable connection: 0 2019/02/11 21:36:03 [debug] 9310\#9310: *39 malloc: 00000000011597F0:24 2019/02/11 21:36:03 [debug] 9310\#9310: *39 malloc: 00000000010C22C0:16 2019/02/11 21:36:03 [debug] 9310\#9310: *39 http cleanup add: 00000000011597F0 2019/02/11 21:36:03 [debug] 9310\#9310: *39 lua tcp socket connect: -5 2019/02/11 21:36:03 [debug] 9310\#9310: *39 lua tcp socket error retval handler 2019/02/11 21:36:03 [debug] 9310\#9310: *39 lua finalize socket 2019/02/11 21:36:03 [debug] 9310\#9310: *39 lua http cleanup free: 00000000011597F0 2019/02/11 21:36:03 [debug] 9310\#9310: *39 malloc: 00000000010C22E0:16 ' |
ssl.t | TEST 17: parse PEM cert and key to cdata (bad cert 0 in the chain) - response_body - response is expected (repeated req 1, req 0) |
@@ -1,2 +1 @@ -connected: 1 +failed to connect: no such file or directory -failed to do SSL handshake: handshake failed ' |
ssl.t | TEST 17: parse PEM cert and key to cdata (bad cert 0 in the chain) - pattern "(?^:\[error\] .*? failed to parse pem cert: PEM_read_bio_X509_AUX\(\) failed)" should match a line in error.log (req 1) | |
ssl.t | TEST 17: parse PEM cert and key to cdata (bad cert 0 in the chain) - pattern "[crit]" should not match any line in error.log but matches line "2019/02/11 21:36:03 [crit] 9310\#9310: *41 connect() to unix:/home/ec2-user/git/lua-resty-core/t/servroot/html/nginx.sock failed (2: No such file or directory), client: 127.0.0.1, server: localhost, request: \"GET /t HTTP/1.1\", host: \"localhost\"" (req 1) |
2019/02/11 21:36:03 [debug] 9310\#9310: *41 reusable connection: 0 2019/02/11 21:36:03 [debug] 9310\#9310: *41 malloc: 00000000011597F0:24 2019/02/11 21:36:03 [debug] 9310\#9310: *41 malloc: 00000000010C22C0:16 2019/02/11 21:36:03 [debug] 9310\#9310: *41 http cleanup add: 00000000011597F0 2019/02/11 21:36:03 [debug] 9310\#9310: *41 lua tcp socket connect: -5 2019/02/11 21:36:03 [debug] 9310\#9310: *41 lua tcp socket error retval handler 2019/02/11 21:36:03 [debug] 9310\#9310: *41 lua finalize socket 2019/02/11 21:36:03 [debug] 9310\#9310: *41 lua http cleanup free: 00000000011597F0 2019/02/11 21:36:03 [debug] 9310\#9310: *41 malloc: 00000000010C22E0:16 ' |
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 14: ngx.semaphore in ssl_certificate_by_lua* - pattern "[emerg]" should not match any line in error.log but matches line "2019/02/11 21:36:03 [emerg] 9274\#9274: unlink() /home/ec2-user/git/lua-resty-core/t/servroot/html/nginx.sock failed (2: No such file or directory)" (req 0) |
2019/02/11 21:36:03 [notice] 9274\#9274: start worker processes 2019/02/11 21:36:03 [debug] 9274\#9274: channel 3:5 2019/02/11 21:36:03 [notice] 9274\#9274: start worker process 9352 2019/02/11 21:36:03 [debug] 9274\#9274: pass channel s:0 pid:9352 fd:3 to s:1 pid:9329 fd:4 2019/02/11 21:36:03 [debug] 9329\#9329: epoll: fd:6 ev:0001 d:00000000010E3908 2019/02/11 21:36:03 [debug] 9329\#9329: channel handler 2019/02/11 21:36:03 [debug] 9329\#9329: channel: 32 2019/02/11 21:36:03 [debug] 9329\#9329: channel command: 1 2019/02/11 21:36:03 [debug] 9329\#9329: get channel s:0 pid:9352 fd:5 ' |
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/11 21:36:05 [emerg] 9274\#9274: unlink() /home/ec2-user/git/lua-resty-core/t/servroot/html/nginx.sock failed (2: No such file or directory)" (req 0) |
2019/02/11 21:36:05 [notice] 9274\#9274: start worker processes 2019/02/11 21:36:05 [debug] 9274\#9274: channel 4:6 2019/02/11 21:36:05 [notice] 9274\#9274: start worker process 9414 2019/02/11 21:36:05 [debug] 9274\#9274: pass channel s:1 pid:9414 fd:4 to s:0 pid:9394 fd:3 2019/02/11 21:36:05 [debug] 9394\#9394: epoll: fd:5 ev:0001 d:0000000001149AA8 2019/02/11 21:36:05 [debug] 9394\#9394: channel handler 2019/02/11 21:36:05 [debug] 9394\#9394: channel: 32 2019/02/11 21:36:05 [debug] 9394\#9394: channel command: 1 2019/02/11 21:36:05 [debug] 9394\#9394: get channel s:1 pid:9414 fd:6 ' |
ssl.t | TEST 20: read client addr via ssl.raw_client_addr() - pattern "[emerg]" should not match any line in error.log but matches line "2019/02/11 21:36:06 [emerg] 9274\#9274: unlink() /home/ec2-user/git/lua-resty-core/t/servroot/html/nginx.sock failed (2: No such file or directory)" (req 0) |
2019/02/11 21:36:06 [notice] 9274\#9274: start worker processes 2019/02/11 21:36:06 [debug] 9274\#9274: channel 4:6 2019/02/11 21:36:06 [notice] 9274\#9274: start worker process 9456 2019/02/11 21:36:06 [debug] 9274\#9274: pass channel s:1 pid:9456 fd:4 to s:0 pid:9435 fd:3 2019/02/11 21:36:06 [debug] 9435\#9435: epoll: fd:5 ev:0001 d:000000000116EBE8 2019/02/11 21:36:06 [debug] 9435\#9435: channel handler 2019/02/11 21:36:06 [debug] 9435\#9435: channel: 32 2019/02/11 21:36:06 [debug] 9435\#9435: channel command: 1 2019/02/11 21:36:06 [debug] 9435\#9435: get channel s:1 pid:9456 fd:6 ' |
ssl.t | TEST 13: tls version - TLSv1.2 - pattern "[emerg]" should not match any line in error.log but matches line "2019/02/11 21:36:08 [emerg] 9274\#9274: unlink() /home/ec2-user/git/lua-resty-core/t/servroot/html/nginx.sock failed (2: No such file or directory)" (req 0) |
2019/02/11 21:36:08 [notice] 9274\#9274: start worker processes 2019/02/11 21:36:08 [debug] 9274\#9274: channel 4:6 2019/02/11 21:36:08 [notice] 9274\#9274: start worker process 9577 2019/02/11 21:36:08 [debug] 9274\#9274: pass channel s:1 pid:9577 fd:4 to s:0 pid:9557 fd:3 2019/02/11 21:36:08 [debug] 9557\#9557: epoll: fd:5 ev:0001 d:000000000116EBE8 2019/02/11 21:36:08 [debug] 9557\#9557: channel handler 2019/02/11 21:36:08 [debug] 9557\#9557: channel: 32 2019/02/11 21:36:08 [debug] 9557\#9557: channel command: 1 2019/02/11 21:36:08 [debug] 9557\#9557: get channel s:1 pid:9577 fd:6 ' |
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 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 3: read SNI name via ssl.server_name() - 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 3: read SNI name via ssl.server_name() - pattern "lua ssl server name: "test.com"" should match a line in error.log (req 0) | |
ssl.t | TEST 3: read SNI name via ssl.server_name() - pattern "read SNI name from Lua: test.com" should match a line in error.log (req 0) | |
ssl.t | TEST 3: read SNI name via ssl.server_name() - 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 3: read SNI name via ssl.server_name() - pattern "lua ssl server name: "test.com"" should match a line in error.log (req 1) | |
ssl.t | TEST 3: read SNI name via ssl.server_name() - pattern "read SNI name from Lua: test.com" should match a line in error.log (req 1) | |
ssl.t | TEST 11: tls version - TLSv1 - pattern "[emerg]" should not match any line in error.log but matches line "2019/02/11 21:36:10 [emerg] 9274\#9274: unlink() /home/ec2-user/git/lua-resty-core/t/servroot/html/nginx.sock failed (2: No such file or directory)" (req 0) |
2019/02/11 21:36:10 [notice] 9274\#9274: start worker processes 2019/02/11 21:36:10 [debug] 9274\#9274: channel 3:5 2019/02/11 21:36:10 [notice] 9274\#9274: start worker process 9674 2019/02/11 21:36:10 [debug] 9274\#9274: pass channel s:0 pid:9674 fd:3 to s:1 pid:9655 fd:4 2019/02/11 21:36:10 [debug] 9655\#9655: epoll: fd:6 ev:0001 d:000000000116D7A8 2019/02/11 21:36:10 [debug] 9655\#9655: channel handler 2019/02/11 21:36:10 [debug] 9655\#9655: channel: 32 2019/02/11 21:36:10 [debug] 9655\#9655: channel command: 1 2019/02/11 21:36:10 [debug] 9655\#9655: get channel s:0 pid:9674 fd:5 ' |
Go back to the index page.