(This page was automatically generated by the tools in the opsboy project on 19:24:54 07-Feb-2019 GMT.)
Commit | Testing Time | Unexpected Failures |
Expected Failures |
Files | Tests | Elapsed Time |
---|---|---|---|---|---|---|
c5d624c5 | 2019-02-06 21:01:24 GMT | 69 | 159 | 71 | 8022 | 772 sec |
File | Name | Details |
---|---|---|
process-type-single.t | TEST 1: sanity - response_body - response is expected (repeated req 0, req 0) |
got: "process type: worker\x{0a}" length: 21 expected: "process type: single\x{0a}" length: 21 strings begin to differ at char 15 (line 1 column 15) |
process-type-single.t | TEST 1: sanity - grep_error_log_out (req 0) |
'[TRACE 1 init_by_lua:16 loop] [TRACE 2 init_worker_by_lua:4 loop] [TRACE 2 content_by_lua(nginx.conf:83):4 loop] process type in init_by_lua*: master init_worker_by_lua:10: process type: worker ' doesn't match '(?^:\[TRACE\s+\d+ init_by_lua:16 loop\] \[TRACE\s+\d+ init_worker_by_lua:4 loop\] \[TRACE\s+\d+ content_by_lua\(nginx.conf:83\):4 loop\] process type in init_by_lua\*: single init_worker_by_lua:10: process type: single )' |
process-type-single.t | TEST 1: sanity - response_body - response is expected (repeated req 1, req 0) |
got: "process type: worker\x{0a}" length: 21 expected: "process type: single\x{0a}" length: 21 strings begin to differ at char 15 (line 1 column 15) |
process-type-single.t | TEST 1: sanity - grep_error_log_out (req 1) |
'[TRACE 1 init_by_lua:16 loop] [TRACE 2 init_worker_by_lua:4 loop] [TRACE 2 content_by_lua(nginx.conf:83):4 loop] process type in init_by_lua*: master init_worker_by_lua:10: process type: worker ' doesn't match '(?^:\[TRACE\s+\d+ init_by_lua:16 loop\] \[TRACE\s+\d+ init_worker_by_lua:4 loop\] \[TRACE\s+\d+ content_by_lua\(nginx.conf:83\):4 loop\] process type in init_by_lua\*: single init_worker_by_lua:10: process type: single )' |
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 | TEST 21: multi-line error log - response_body_like - response is expected (log lines: \#2 log level:6 log body:2019/02/06 23:16:15 [notice] 27873\#0: start worker processes log level:4 log body:2019/02/06 23:16:15 [error] 27882\#0: *21 stream [lua] content_by_lua(nginx.conf:40):8: --> new line, client: 127.0.0.1, server: 0.0.0.0:1985) |
'log lines: #2 log level:6 log body:2019/02/06 23:16:15 [notice] 27873#0: start worker processes log level:4 log body:2019/02/06 23:16:15 [error] 27882#0: *21 stream [lua] content_by_lua(nginx.conf:40):8: --> new line, client: 127.0.0.1, server: 0.0.0.0:1985 ' doesn't match '(?^s:\Alog lines: #1 log level:4 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*content_by_lua\(nginx.conf:\d+\):\d+: --> new line, client: 127.0.0.1, server: 0.0.0.0:\d+ \z)' |
stream/errlog.t | TEST 22: user-supplied Lua table to hold the result (get one log + no log) - response_body_like - response is expected (maybe log lines: \#2 log level:6 log body:2019/02/06 23:16:16 [notice] 27873\#0: start worker processes log level:4 log body:2019/02/06 23:16:16 [error] 27920\#0: *59 stream [lua] content_by_lua(nginx.conf:48):8: --> new line, client: 127.0.0.1, server: 0.0.0.0:1985 end maybe log lines: \#2 end) |
'maybe log lines: #2 log level:6 log body:2019/02/06 23:16:16 [notice] 27873#0: start worker processes log level:4 log body:2019/02/06 23:16:16 [error] 27920#0: *59 stream [lua] content_by_lua(nginx.conf:48):8: --> new line, client: 127.0.0.1, server: 0.0.0.0:1985 end maybe log lines: #2 end ' doesn't match '(?^s:\Amaybe log lines: #1 log level:4 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*content_by_lua\(nginx.conf:\d+\):\d+: --> new line, client: 127.0.0.1, server: 0.0.0.0:\d+ end maybe log lines: #1 end \z)' |
stream/errlog.t | TEST 12: filter log by level(ngx.WARN) - response_body - response is expected (repeated req 0, req 0) |
got: 'log lines:3 ' expected: 'log lines:2 ' |
stream/errlog.t | TEST 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 | 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 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 3: client connected info - grep_error_log_out (req 0) |
'client 127.0.0.1:40012 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:40016 connected to capture log line:5 ' doesn't match '(?^:^client .*? connected to .*? capture log line:2 $)' |
stream/errlog.t | TEST 20: fetch a few and generate a few, then fetch again (not overflown again) - response_body_like - response is expected (msg count: 3 log level:5 log body:2019/02/06 23:16:30 [warn] 28300\#0: *262 stream [lua] content_by_lua(nginx.conf:64):10: --> 85, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/06 23:16:30 [error] 28300\#0: *262 stream [lua] content_by_lua(nginx.conf:64):11: --> 85, client: 127.0.0.1, server: 0.0.0.0:1985 log level:5 log body:2019/02/06 23:16:30 [warn] 28300\#0: *262 stream [lua] content_by_lua(nginx.conf:64):10: --> 86, client: 127.0.0.1, server: 0.0.0.0:1985 msg count: 3 log level:4 log body:2019/02/06 23:16:30 [error] 28300\#0: *262 stream [lua] content_by_lua(nginx.conf:64):11: --> 86, client: 127.0.0.1, server: 0.0.0.0:1985 log level:5 log body:2019/02/06 23:16:30 [warn] 28300\#0: *262 stream [lua] content_by_lua(nginx.conf:64):10: --> 87, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/06 23:16:30 [error] 28300\#0: *262 stream [lua] content_by_lua(nginx.conf:64):11: --> 87, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/06 23:16:30 [error] 28300\#0: *262 stream [lua] content_by_lua(nginx.conf:64):11: --> 100, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/06 23:16:30 [error] 28300\#0: *262 stream [lua] content_by_lua(nginx.conf:64):23: howdy, something new!, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/06 23:16:30 [error] 28300\#0: *262 stream [lua] content_by_lua(nginx.conf:64):24: howdy, something even newer!, client: 127.0.0.1, server: 0.0.0.0:1985) |
'msg count: 3 log level:5 log body:2019/02/06 23:16:30 [warn] 28300#0: *262 stream [lua] content_by_lua(nginx.conf:64):10: --> 85, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/06 23:16:30 [error] 28300#0: *262 stream [lua] content_by_lua(nginx.conf:64):11: --> 85, client: 127.0.0.1, server: 0.0.0.0:1985 log level:5 log body:2019/02/06 23:16:30 [warn] 28300#0: *262 stream [lua] content_by_lua(nginx.conf:64):10: --> 86, client: 127.0.0.1, server: 0.0.0.0:1985 msg count: 3 log level:4 log body:2019/02/06 23:16:30 [error] 28300#0: *262 stream [lua] content_by_lua(nginx.conf:64):11: --> 86, client: 127.0.0.1, server: 0.0.0.0:1985 log level:5 log body:2019/02/06 23:16:30 [warn] 28300#0: *262 stream [lua] content_by_lua(nginx.conf:64):10: --> 87, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/06 23:16:30 [error] 28300#0: *262 stream [lua] content_by_lua(nginx.conf:64):11: --> 87, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/06 23:16:30 [error] 28300#0: *262 stream [lua] content_by_lua(nginx.conf:64):11: --> 100, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/06 23:16:30 [error] 28300#0: *262 stream [lua] content_by_lua(nginx.conf:64):23: howdy, something new!, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/06 23:16:30 [error] 28300#0: *262 stream [lua] content_by_lua(nginx.conf:64):24: howdy, something even newer!, client: 127.0.0.1, server: 0.0.0.0:1985 ' doesn't match '(?^s:\Amsg count: 3 log level:4 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 84, client: 127.0.0.1, server: 0.0.0.0:\d+ log level:5 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 85, client: 127.0.0.1, server: 0.0.0.0:\d+ log level:4 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 85, client: 127.0.0.1, server: 0.0.0.0:\d+ msg count: 3 log level:5 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 86, client: 127.0.0.1, server: 0.0.0.0:\d+ log level:4 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 86, client: 127.0.0.1, server: 0.0.0.0:\d+ log level:5 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 87, client: 127.0.0.1, server: 0.0.0.0:\d+ log level:4 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 100, client: 127.0.0.1, server: 0.0.0.0:\d+ log level:4 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: howdy, something new!, client: 127.0.0.1, server: 0.0.0.0:\d+ log level:4 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: howdy, something even newer!, client: 127.0.0.1, server: 0.0.0.0:\d+ \z)' |
stream/errlog.t | TEST 20: fetch a few and generate a few, then fetch again (not overflown again) - response_body_like - response is expected (msg count: 3 log level:5 log body:2019/02/06 23:16:30 [warn] 28300\#0: *265 stream [lua] content_by_lua(nginx.conf:64):10: --> 85, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/06 23:16:30 [error] 28300\#0: *265 stream [lua] content_by_lua(nginx.conf:64):11: --> 85, client: 127.0.0.1, server: 0.0.0.0:1985 log level:5 log body:2019/02/06 23:16:30 [warn] 28300\#0: *265 stream [lua] content_by_lua(nginx.conf:64):10: --> 86, client: 127.0.0.1, server: 0.0.0.0:1985 msg count: 3 log level:4 log body:2019/02/06 23:16:30 [error] 28300\#0: *265 stream [lua] content_by_lua(nginx.conf:64):11: --> 86, client: 127.0.0.1, server: 0.0.0.0:1985 log level:5 log body:2019/02/06 23:16:30 [warn] 28300\#0: *265 stream [lua] content_by_lua(nginx.conf:64):10: --> 87, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/06 23:16:30 [error] 28300\#0: *265 stream [lua] content_by_lua(nginx.conf:64):11: --> 87, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/06 23:16:30 [error] 28300\#0: *265 stream [lua] content_by_lua(nginx.conf:64):11: --> 100, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/06 23:16:30 [error] 28300\#0: *265 stream [lua] content_by_lua(nginx.conf:64):23: howdy, something new!, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/06 23:16:30 [error] 28300\#0: *265 stream [lua] content_by_lua(nginx.conf:64):24: howdy, something even newer!, client: 127.0.0.1, server: 0.0.0.0:1985) |
'msg count: 3 log level:5 log body:2019/02/06 23:16:30 [warn] 28300#0: *265 stream [lua] content_by_lua(nginx.conf:64):10: --> 85, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/06 23:16:30 [error] 28300#0: *265 stream [lua] content_by_lua(nginx.conf:64):11: --> 85, client: 127.0.0.1, server: 0.0.0.0:1985 log level:5 log body:2019/02/06 23:16:30 [warn] 28300#0: *265 stream [lua] content_by_lua(nginx.conf:64):10: --> 86, client: 127.0.0.1, server: 0.0.0.0:1985 msg count: 3 log level:4 log body:2019/02/06 23:16:30 [error] 28300#0: *265 stream [lua] content_by_lua(nginx.conf:64):11: --> 86, client: 127.0.0.1, server: 0.0.0.0:1985 log level:5 log body:2019/02/06 23:16:30 [warn] 28300#0: *265 stream [lua] content_by_lua(nginx.conf:64):10: --> 87, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/06 23:16:30 [error] 28300#0: *265 stream [lua] content_by_lua(nginx.conf:64):11: --> 87, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/06 23:16:30 [error] 28300#0: *265 stream [lua] content_by_lua(nginx.conf:64):11: --> 100, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/06 23:16:30 [error] 28300#0: *265 stream [lua] content_by_lua(nginx.conf:64):23: howdy, something new!, client: 127.0.0.1, server: 0.0.0.0:1985 log level:4 log body:2019/02/06 23:16:30 [error] 28300#0: *265 stream [lua] content_by_lua(nginx.conf:64):24: howdy, something even newer!, client: 127.0.0.1, server: 0.0.0.0:1985 ' doesn't match '(?^s:\Amsg count: 3 log level:4 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 84, client: 127.0.0.1, server: 0.0.0.0:\d+ log level:5 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 85, client: 127.0.0.1, server: 0.0.0.0:\d+ log level:4 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 85, client: 127.0.0.1, server: 0.0.0.0:\d+ msg count: 3 log level:5 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 86, client: 127.0.0.1, server: 0.0.0.0:\d+ log level:4 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 86, client: 127.0.0.1, server: 0.0.0.0:\d+ log level:5 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[warn\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 87, client: 127.0.0.1, server: 0.0.0.0:\d+ log level:4 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: --> 100, client: 127.0.0.1, server: 0.0.0.0:\d+ log level:4 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: howdy, something new!, client: 127.0.0.1, server: 0.0.0.0:\d+ log level:4 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*?content_by_lua\(nginx.conf:\d+\):\d+: howdy, something even newer!, client: 127.0.0.1, server: 0.0.0.0:\d+ \z)' |
stream/errlog.t | 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/semaphore.t | TEST 7: semaphore in init_worker_by_lua (new and post) - pattern "[error]" should not match any line in error.log but matches line "2019/02/06 23:18:25 [error] 30511\#0: *12 stream [lua] init_worker_by_lua:14: sem: timeout, context: ngx.timer" (req 1) |
2019/02/06 23:18:25 [error] 30511\#0: *12 stream [lua] init_worker_by_lua:18: sem: 3 times, context: ngx.timer 2019/02/06 23:18:25 [debug] 30511\#0: stream lua semaphore wait: 0000000008BE1E28, timeout: 1000, resources: 0, event posted: 0 2019/02/06 23:18:25 [debug] 30511\#0: *12 event timer add: 0: 1000:8274232 2019/02/06 23:18:25 [debug] 30511\#0: stream lua semaphore wait yielding 2019/02/06 23:18:25 [debug] 30511\#0: *12 lua resume returned 1 2019/02/06 23:18:25 [debug] 30511\#0: *12 lua thread yielded 2019/02/06 23:18:25 [debug] 30511\#0: *12 lua run thread returned -2 2019/02/06 23:18:25 [debug] 30511\#0: worker cycle ' |
stream/semaphore.t | TEST 7: semaphore in init_worker_by_lua (new and post) - pattern "[error]" should not match any line in error.log but matches line "2019/02/06 23:18:25 [error] 30511\#0: *12 stream [lua] init_worker_by_lua:18: sem: 3 times, context: ngx.timer" (req 1) |
2019/02/06 23:18:25 [debug] 30511\#0: stream lua semaphore wait: 0000000008BE1E28, timeout: 1000, resources: 0, event posted: 0 2019/02/06 23:18:25 [debug] 30511\#0: *12 event timer add: 0: 1000:8274232 2019/02/06 23:18:25 [debug] 30511\#0: stream lua semaphore wait yielding 2019/02/06 23:18:25 [debug] 30511\#0: *12 lua resume returned 1 2019/02/06 23:18:25 [debug] 30511\#0: *12 lua thread yielded 2019/02/06 23:18:25 [debug] 30511\#0: *12 lua run thread returned -2 2019/02/06 23:18:25 [debug] 30511\#0: worker cycle ' |
stream/semaphore.t | TEST 17: kill a light thread that is waiting on a semaphore (after post) - pattern "[error]" should not match any line in error.log but matches line "2019/02/06 23:18:26 [error] 30511\#0: *12 stream [lua] init_worker_by_lua:14: sem: timeout, context: ngx.timer" (req 0) |
2019/02/06 23:18:26 [debug] 30610\#0: *108 epoll add event: fd:3 op:1 ev:80002001 2019/02/06 23:18:26 [debug] 30511\#0: stream lua semaphore wait: 0000000008BE1E28, timeout: 1000, resources: 0, event posted: 0 2019/02/06 23:18:26 [debug] 30511\#0: *12 event timer add: 0: 1000:8275232 2019/02/06 23:18:26 [debug] 30511\#0: stream lua semaphore wait yielding 2019/02/06 23:18:26 [debug] 30511\#0: *12 lua resume returned 1 2019/02/06 23:18:26 [debug] 30511\#0: *12 lua thread yielded 2019/02/06 23:18:26 [debug] 30511\#0: *12 lua run thread returned -2 2019/02/06 23:18:26 [debug] 30511\#0: worker cycle 2019/02/06 23:18:26 [debug] 30511\#0: epoll timer: 1000 ' |
stream/semaphore.t | TEST 28: basic semaphore count - pattern "[error]" should not match any line in error.log but matches line "2019/02/06 23:18:27 [error] 30511\#0: *12 stream [lua] init_worker_by_lua:14: sem: timeout, context: ngx.timer" (req 0) |
2019/02/06 23:18:27 [debug] 30630\#0: *139 stream write filter: l:0 f:0 s:3 2019/02/06 23:18:27 [debug] 30511\#0: stream lua semaphore wait: 0000000008BE1E28, timeout: 1000, resources: 0, event posted: 0 2019/02/06 23:18:27 [debug] 30511\#0: *12 event timer add: 0: 1000:8276232 2019/02/06 23:18:27 [debug] 30511\#0: stream lua semaphore wait yielding 2019/02/06 23:18:27 [debug] 30511\#0: *12 lua resume returned 1 2019/02/06 23:18:27 [debug] 30511\#0: *12 lua thread yielded 2019/02/06 23:18:27 [debug] 30511\#0: *12 lua run thread returned -2 2019/02/06 23:18:27 [debug] 30511\#0: worker cycle 2019/02/06 23:18:27 [debug] 30511\#0: epoll timer: 1000 ' |
stream/semaphore.t | TEST 10: semaphore in log_by_lua (wait not allowed) - grep_error_log_out (req 0) |
@@ -1,2 +1,4 @@ +sem: timeout, +sem: 3 times, sem: 1 while returning text, sem: API disabled in the context of log_by_lua* while returning text, ' |
stream/semaphore.t | TEST 9: semaphore in content_by_lua (all allowed) - grep_error_log_out (req 0) |
@@ -1,2 +1,3 @@ sem: timeout, +sem: timeout, sem: 1, ' |
stream/semaphore.t | TEST 1: basic semaphore in uthread - pattern "[error]" should not match any line in error.log but matches line "2019/02/06 23:18:30 [error] 30511\#0: *12 stream [lua] init_worker_by_lua:14: sem: timeout, context: ngx.timer" (req 0) |
2019/02/06 23:18:30 [debug] 30511\#0: stream lua semaphore wait: 0000000008BE1E28, timeout: 1000, resources: 0, event posted: 0 2019/02/06 23:18:30 [debug] 30511\#0: *12 event timer add: 0: 1000:8279232 2019/02/06 23:18:30 [debug] 30511\#0: stream lua semaphore wait yielding 2019/02/06 23:18:30 [debug] 30511\#0: *12 lua resume returned 1 2019/02/06 23:18:30 [debug] 30511\#0: *12 lua thread yielded 2019/02/06 23:18:30 [debug] 30511\#0: *12 lua run thread returned -2 2019/02/06 23:18:30 [debug] 30511\#0: worker cycle 2019/02/06 23:18:30 [debug] 30511\#0: epoll timer: 1000 2019/02/06 23:18:30 [debug] 30710\#0: epoll: fd:7 ev:0001 d:000000000935BE40 ' |
stream/semaphore.t | TEST 11: semaphore in ngx.timer (all allowed) - grep_error_log_out (req 0) |
@@ -1,2 +1,4 @@ sem: timeout, sem: 1, +sem: timeout, +sem: 3 times, ' |
stream/semaphore.t | TEST 30: bugfix: semaphore instance can't be garbage collected when someone is waiting on it - pattern "[error]" should not match any line in error.log but matches line "2019/02/06 23:18:34 [error] 30511\#0: *12 stream [lua] init_worker_by_lua:14: sem: timeout, context: ngx.timer" (req 0) |
2019/02/06 23:18:34 [error] 30511\#0: *12 stream [lua] init_worker_by_lua:18: sem: 3 times, context: ngx.timer 2019/02/06 23:18:34 [debug] 30511\#0: stream lua semaphore wait: 0000000008BE1E28, timeout: 1000, resources: 0, event posted: 0 2019/02/06 23:18:34 [debug] 30511\#0: *12 event timer add: 0: 1000:8283240 2019/02/06 23:18:34 [debug] 30511\#0: stream lua semaphore wait yielding 2019/02/06 23:18:34 [debug] 30511\#0: *12 lua resume returned 1 2019/02/06 23:18:34 [debug] 30511\#0: *12 lua thread yielded 2019/02/06 23:18:34 [debug] 30511\#0: *12 lua run thread returned -2 2019/02/06 23:18:34 [debug] 30511\#0: worker cycle 2019/02/06 23:18:34 [debug] 30511\#0: epoll timer: 1000 ' |
stream/semaphore.t | TEST 30: bugfix: semaphore instance can't be garbage collected when someone is waiting on it - pattern "[error]" should not match any line in error.log but matches line "2019/02/06 23:18:34 [error] 30511\#0: *12 stream [lua] init_worker_by_lua:18: sem: 3 times, context: ngx.timer" (req 0) |
2019/02/06 23:18:34 [debug] 30511\#0: stream lua semaphore wait: 0000000008BE1E28, timeout: 1000, resources: 0, event posted: 0 2019/02/06 23:18:34 [debug] 30511\#0: *12 event timer add: 0: 1000:8283240 2019/02/06 23:18:34 [debug] 30511\#0: stream lua semaphore wait yielding 2019/02/06 23:18:34 [debug] 30511\#0: *12 lua resume returned 1 2019/02/06 23:18:34 [debug] 30511\#0: *12 lua thread yielded 2019/02/06 23:18:34 [debug] 30511\#0: *12 lua run thread returned -2 2019/02/06 23:18:34 [debug] 30511\#0: worker cycle 2019/02/06 23:18:34 [debug] 30511\#0: epoll timer: 1000 2019/02/06 23:18:34 [debug] 30790\#0: lua creating fake watcher connection ' |
stream/semaphore.t | TEST 29: basic semaphore count (negative number) - pattern "[error]" should not match any line in error.log but matches line "2019/02/06 23:18:36 [error] 30511\#0: *12 stream [lua] init_worker_by_lua:14: sem: timeout, context: ngx.timer" (req 0) |
2019/02/06 23:18:36 [debug] 30850\#0: *344 free: 0000000009335C90, unused: 0 2019/02/06 23:18:36 [debug] 30850\#0: *344 free: 00000000091CA7F0, unused: 0 2019/02/06 23:18:36 [debug] 30850\#0: *344 free: 00000000091CA7A0, unused: 0 2019/02/06 23:18:36 [debug] 30850\#0: *344 free: 0000000009040FB0, unused: 0 2019/02/06 23:18:36 [debug] 30850\#0: *344 free: 0000000009040F10, unused: 0 2019/02/06 23:18:36 [debug] 30850\#0: *344 free: 0000000008F81CD0, unused: 0 2019/02/06 23:18:36 [debug] 30850\#0: *344 free: 00000000097BBAB0, unused: 0 2019/02/06 23:18:36 [debug] 30850\#0: *344 free: 00000000097BBA60, unused: 0 2019/02/06 23:18:36 [debug] 30850\#0: *344 free: 00000000097BBA10, unused: 0 ' |
stream/semaphore.t | TEST 2: semaphore wait order - pattern "[error]" should not match any line in error.log but matches line "2019/02/06 23:18:37 [error] 30511\#0: *12 stream [lua] init_worker_by_lua:14: sem: timeout, context: ngx.timer" (req 0) |
2019/02/06 23:18:37 [error] 30511\#0: *12 stream [lua] init_worker_by_lua:18: sem: 3 times, context: ngx.timer 2019/02/06 23:18:37 [debug] 30511\#0: stream lua semaphore wait: 0000000008BE1E28, timeout: 1000, resources: 0, event posted: 0 2019/02/06 23:18:37 [debug] 30511\#0: *12 event timer add: 0: 1000:8286240 2019/02/06 23:18:37 [debug] 30511\#0: stream lua semaphore wait yielding 2019/02/06 23:18:37 [debug] 30511\#0: *12 lua resume returned 1 2019/02/06 23:18:37 [debug] 30511\#0: *12 lua thread yielded 2019/02/06 23:18:37 [debug] 30511\#0: *12 lua run thread returned -2 2019/02/06 23:18:37 [debug] 30511\#0: worker cycle ' |
stream/semaphore.t | TEST 2: semaphore wait order - pattern "[error]" should not match any line in error.log but matches line "2019/02/06 23:18:37 [error] 30511\#0: *12 stream [lua] init_worker_by_lua:18: sem: 3 times, context: ngx.timer" (req 0) |
2019/02/06 23:18:37 [debug] 30511\#0: stream lua semaphore wait: 0000000008BE1E28, timeout: 1000, resources: 0, event posted: 0 2019/02/06 23:18:37 [debug] 30511\#0: *12 event timer add: 0: 1000:8286240 2019/02/06 23:18:37 [debug] 30511\#0: stream lua semaphore wait yielding 2019/02/06 23:18:37 [debug] 30511\#0: *12 lua resume returned 1 2019/02/06 23:18:37 [debug] 30511\#0: *12 lua thread yielded 2019/02/06 23:18:37 [debug] 30511\#0: *12 lua run thread returned -2 2019/02/06 23:18:37 [debug] 30511\#0: worker cycle ' |
stream/semaphore.t | TEST 18: kill a thread that is waiting on another thread that is waiting on semaphore - pattern "[error]" should not match any line in error.log but matches line "2019/02/06 23:18:38 [error] 30511\#0: *12 stream [lua] init_worker_by_lua:14: sem: timeout, context: ngx.timer" (req 0) |
2019/02/06 23:18:38 [debug] 30511\#0: stream lua semaphore wait: 0000000008BE1E28, timeout: 1000, resources: 0, event posted: 0 2019/02/06 23:18:38 [debug] 30511\#0: *12 event timer add: 0: 1000:8287240 2019/02/06 23:18:38 [debug] 30511\#0: stream lua semaphore wait yielding 2019/02/06 23:18:38 [debug] 30511\#0: *12 lua resume returned 1 2019/02/06 23:18:38 [debug] 30511\#0: *12 lua thread yielded 2019/02/06 23:18:38 [debug] 30511\#0: *12 lua run thread returned -2 2019/02/06 23:18:38 [debug] 30511\#0: worker cycle 2019/02/06 23:18:38 [debug] 30511\#0: epoll timer: 1000 2019/02/06 23:18:38 [debug] 30501\#0: child: 0 30890 e:0 t:0 d:0 r:1 j:0 ' |
stream/semaphore.t | TEST 8: semaphore in preread_by_lua (all allowed) - grep_error_log_out (req 0) |
@@ -1,2 +1,3 @@ +sem: timeout, sem: timeout while prereading client data, sem: 1 while prereading client data, ' |
stream/semaphore.t | TEST 15: two thread wait for each other - pattern "[error]" should not match any line in error.log but matches line "2019/02/06 23:18:44 [error] 30511\#0: *12 stream [lua] init_worker_by_lua:14: sem: timeout, context: ngx.timer" (req 0) |
2019/02/06 23:18:44 [debug] 31071\#0: *558 lua capture body filter, uri "/ver" 2019/02/06 23:18:44 [debug] 31071\#0: *558 image filter 2019/02/06 23:18:44 [debug] 31071\#0: *558 http postpone filter "/ver?" 0000001FFEFFF4D0 2019/02/06 23:18:44 [debug] 31071\#0: *558 write old buf t:1 f:0 00000000088CAF40, pos 00000000088CAF40, size: 158 file: 0, size: 0 2019/02/06 23:18:44 [debug] 31071\#0: *558 malloc: 0000000008C7A9C0:16 2019/02/06 23:18:44 [debug] 31071\#0: *558 malloc: 0000000009BCD260:16 2019/02/06 23:18:44 [debug] 30511\#0: stream lua semaphore wait: 0000000008BE1E28, timeout: 1000, resources: 0, event posted: 0 2019/02/06 23:18:44 [debug] 31071\#0: *558 write new buf t:0 f:0 0000000000000000, pos 00000000087BA530, size: 10 file: 0, size: 0 2019/02/06 23:18:44 [debug] 31071\#0: *558 http write filter: l:1 f:0 s:168 ' |
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/shdict.t | TEST 45: incr key with init and init_ttl (key expired and size matched) - response_body - response is expected (repeated req 1, req 0) |
@@ -1,3 +1,3 @@ incr: 10502 nil foo = 10502 -foo after init_ttl = nil +foo after init_ttl = 10502 ' |
stream/ssl.t | TEST 11: tls version - TLSv1 - pattern "[emerg]" should not match any line in error.log but matches line "2019/02/06 23:19:31 [emerg] 32063\#0: unlink() /home/ec2-user/git/lua-resty-core/t/servroot/html/nginx.sock failed (2: No such file or directory)" (req 0) |
2019/02/06 23:19:31 [debug] 32064\#0: epoll: fd:8 ev:0001 d:00000000087A6030 2019/02/06 23:19:31 [debug] 32064\#0: accept on 0.0.0.0:1984, ready: 0 2019/02/06 23:19:31 [debug] 32064\#0: malloc: 00000000088E3270:48 2019/02/06 23:19:31 [debug] 32064\#0: malloc: 00000000088E32E0:16 2019/02/06 23:19:31 [debug] 32064\#0: malloc: 00000000088E3330:16 2019/02/06 23:19:31 [debug] 32064\#0: malloc: 00000000088E3380:80 2019/02/06 23:19:31 [debug] 32064\#0: malloc: 00000000088E3410:16 2019/02/06 23:19:31 [debug] 32064\#0: malloc: 00000000088E3460:15 2019/02/06 23:19:31 [debug] 32064\#0: malloc: 00000000088E34B0:16 ' |
stream/ssl.t | TEST 14: ngx.semaphore in ssl_certificate_by_lua* - pattern "[emerg]" should not match any line in error.log but matches line "2019/02/06 23:19:36 [emerg] 32063\#0: unlink() /home/ec2-user/git/lua-resty-core/t/servroot/html/nginx.sock failed (2: No such file or directory)" (req 0) |
2019/02/06 23:19:36 [notice] 32063\#0: start worker processes 2019/02/06 23:19:36 [debug] 32063\#0: channel 4:6 2019/02/06 23:19:36 [notice] 32063\#0: start worker process 32156 2019/02/06 23:19:36 [debug] 32063\#0: pass channel s:1 pid:32156 fd:4 to s:0 pid:32134 fd:3 2019/02/06 23:19:36 [debug] 32134\#0: epoll: fd:5 ev:0001 d:0000000009792530 2019/02/06 23:19:36 [debug] 32134\#0: channel handler 2019/02/06 23:19:36 [debug] 32134\#0: channel: 32 2019/02/06 23:19:36 [debug] 32134\#0: channel command: 1 2019/02/06 23:19:36 [debug] 32134\#0: get channel s:1 pid:32156 fd:6 ' |
stream/ssl.t | TEST 13: tls version - TLSv1.2 - pattern "[emerg]" should not match any line in error.log but matches line "2019/02/06 23:19:39 [emerg] 32063\#0: unlink() /home/ec2-user/git/lua-resty-core/t/servroot/html/nginx.sock failed (2: No such file or directory)" (req 0) |
2019/02/06 23:19:39 [notice] 32063\#0: start worker processes 2019/02/06 23:19:39 [debug] 32063\#0: channel 4:6 2019/02/06 23:19:39 [notice] 32063\#0: start worker process 32197 2019/02/06 23:19:39 [debug] 32063\#0: pass channel s:1 pid:32197 fd:4 to s:0 pid:32175 fd:3 2019/02/06 23:19:39 [debug] 32175\#0: epoll: fd:5 ev:0001 d:00000000084A4F00 2019/02/06 23:19:39 [debug] 32175\#0: channel handler 2019/02/06 23:19:39 [debug] 32175\#0: channel: 32 2019/02/06 23:19:39 [debug] 32175\#0: channel command: 1 2019/02/06 23:19:39 [debug] 32175\#0: get channel s:1 pid:32197 fd:6 ' |
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 3: read SNI name via ssl.server_name() - response_body - response is expected (repeated req 0, req 0) |
@@ -1,4 +1 @@ -connected: 1 +failed to connect: no such file or directory -ssl handshake: userdata -received: it works! -close: 1 nil ' |
stream/ssl.t | TEST 3: read SNI name via ssl.server_name() - pattern "lua ssl server name: "test.com"" should match a line in error.log (req 0) | |
stream/ssl.t | TEST 3: read SNI name via ssl.server_name() - pattern "read SNI name from Lua: test.com" should match a line in error.log (req 0) | |
stream/ssl.t | TEST 3: read SNI name via ssl.server_name() - response_body - response is expected (repeated req 1, req 0) |
@@ -1,4 +1 @@ -connected: 1 +failed to connect: no such file or directory -ssl handshake: userdata -received: it works! -close: 1 nil ' |
stream/ssl.t | TEST 3: read SNI name via ssl.server_name() - pattern "lua ssl server name: "test.com"" should match a line in error.log (req 1) | |
stream/ssl.t | TEST 3: read SNI name via ssl.server_name() - pattern "read SNI name from Lua: test.com" should match a line in error.log (req 1) | |
stream/ssl.t | TEST 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 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/06 23:19:50 [crit] 32409\#0: *414 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/06 23:19:50 [debug] 32409\#0: *414 reusable connection: 0 2019/02/06 23:19:50 [debug] 32409\#0: *414 malloc: 00000000093D23F0:24 2019/02/06 23:19:50 [debug] 32409\#0: *414 malloc: 00000000093D44B0:16 2019/02/06 23:19:50 [debug] 32409\#0: *414 stream cleanup add: 00000000093D23F0 2019/02/06 23:19:50 [debug] 32409\#0: *414 stream lua tcp socket connect: -5 2019/02/06 23:19:50 [debug] 32409\#0: *414 stream lua tcp socket error retval handler 2019/02/06 23:19:50 [debug] 32409\#0: *414 stream lua finalize socket 2019/02/06 23:19:50 [debug] 32409\#0: *414 lua stream cleanup free: 00000000093D23F0 2019/02/06 23:19:50 [debug] 32409\#0: *414 malloc: 00000000093D4570: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/06 23:19:50 [crit] 32409\#0: *418 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/06 23:19:50 [debug] 32409\#0: *418 reusable connection: 0 2019/02/06 23:19:50 [debug] 32409\#0: *418 malloc: 0000000008BBBD70:24 2019/02/06 23:19:50 [debug] 32409\#0: *418 malloc: 0000000008BBBDD0:16 2019/02/06 23:19:50 [debug] 32409\#0: *418 stream cleanup add: 0000000008BBBD70 2019/02/06 23:19:50 [debug] 32409\#0: *418 stream lua tcp socket connect: -5 2019/02/06 23:19:50 [debug] 32409\#0: *418 stream lua tcp socket error retval handler 2019/02/06 23:19:50 [debug] 32409\#0: *418 stream lua finalize socket 2019/02/06 23:19:50 [debug] 32409\#0: *418 lua stream cleanup free: 0000000008BBBD70 2019/02/06 23:19:50 [debug] 32409\#0: *418 malloc: 0000000008BBBE20:16 ' |
stream/ssl.t | TEST 12: tls version - TLSv1.1 - pattern "[emerg]" should not match any line in error.log but matches line "2019/02/06 23:19:50 [emerg] 32063\#0: unlink() /home/ec2-user/git/lua-resty-core/t/servroot/html/nginx.sock failed (2: No such file or directory)" (req 0) |
2019/02/06 23:19:50 [notice] 32063\#0: start worker processes 2019/02/06 23:19:50 [debug] 32063\#0: channel 3:5 2019/02/06 23:19:50 [notice] 32063\#0: start worker process 32429 2019/02/06 23:19:50 [debug] 32063\#0: pass channel s:0 pid:32429 fd:3 to s:1 pid:32409 fd:4 2019/02/06 23:19:50 [debug] 32409\#0: epoll: fd:6 ev:0001 d:0000000008CE9A10 2019/02/06 23:19:50 [debug] 32409\#0: channel handler 2019/02/06 23:19:50 [debug] 32409\#0: channel: 32 2019/02/06 23:19:50 [debug] 32409\#0: channel command: 1 2019/02/06 23:19:50 [debug] 32409\#0: get channel s:0 pid:32429 fd:5 ' |
stream/ssl.t | TEST 1: clear certs - response_body - response is expected (repeated req 0, req 0) |
@@ -1,2 +1 @@ -connected: 1 +failed to connect: no such file or directory -failed to do SSL handshake: handshake failed ' |
stream/ssl.t | TEST 1: clear certs - pattern "lua ssl server name: "test.com"" should match a line in error.log (req 0) | |
stream/ssl.t | TEST 1: clear certs - pattern "sslv3 alert handshake failure" should match a line in error.log (req 0) | |
stream/ssl.t | TEST 1: clear certs - response_body - response is expected (repeated req 1, req 0) |
@@ -1,2 +1 @@ -connected: 1 +failed to connect: no such file or directory -failed to do SSL handshake: handshake failed ' |
stream/ssl.t | TEST 1: clear certs - pattern "lua ssl server name: "test.com"" should match a line in error.log (req 1) | |
stream/ssl.t | TEST 1: clear certs - pattern "sslv3 alert handshake failure" should match a line in error.log (req 1) | |
stream/time.t | TEST 1: ngx.now() - response_body - response is expected (repeated req 0, req 0) |
@@ -1,3 +1,3 @@ true >= 0.099: true -< 0.11: true +< 0.11: false ' Looks like you failed 1 test of 72. |
File | Name | Details |
---|---|---|
errlog.t | TEST 22: user-supplied Lua table to hold the result (get one log + no log) - response_body_like - response is expected (maybe log lines: \#10 log level:6 log body:2019/02/06 23:08:38 [notice] 18066\#0: start worker processes log level:7 log body:2019/02/06 23:08:39 [info] 18076\#0: *6 client 127.0.0.1 closed keepalive connection log level:7 log body:2019/02/06 23:08:39 [info] 18076\#0: *7 client 127.0.0.1 closed keepalive connection log level:7 log body:2019/02/06 23:08:39 [info] 18076\#0: *8 client 127.0.0.1 closed keepalive connection log level:7 log body:2019/02/06 23:08:39 [info] 18076\#0: *9 client 127.0.0.1 closed keepalive connection log level:7 log body:2019/02/06 23:08:39 [info] 18076\#0: *10 client 127.0.0.1 closed keepalive connection log level:7 log body:2019/02/06 23:08:39 [info] 18076\#0: *11 client 127.0.0.1 closed keepalive connection log level:7 log body:2019/02/06 23:08:39 [info] 18076\#0: *12 client 127.0.0.1 closed keepalive connection log level:7 log body:2019/02/06 23:08:39 [info] 18076\#0: *13 client 127.0.0.1 closed keepalive connection log level:7 log body:2019/02/06 23:08:39 [info] 18076\#0: *14 client 127.0.0.1 closed keepalive connection end maybe log lines: \#10 log level:7 log body:2019/02/06 23:08:39 [info] 18076\#0: *15 client 127.0.0.1 closed keepalive connection log level:4 log body:2019/02/06 23:08:39 [error] 18076\#0: *16 [lua] access_by_lua(nginx.conf:54):8: --> new line, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" end) |
'maybe log lines: #10 log level:6 log body:2019/02/06 23:08:38 [notice] 18066#0: start worker processes log level:7 log body:2019/02/06 23:08:39 [info] 18076#0: *6 client 127.0.0.1 closed keepalive connection log level:7 log body:2019/02/06 23:08:39 [info] 18076#0: *7 client 127.0.0.1 closed keepalive connection log level:7 log body:2019/02/06 23:08:39 [info] 18076#0: *8 client 127.0.0.1 closed keepalive connection log level:7 log body:2019/02/06 23:08:39 [info] 18076#0: *9 client 127.0.0.1 closed keepalive connection log level:7 log body:2019/02/06 23:08:39 [info] 18076#0: *10 client 127.0.0.1 closed keepalive connection log level:7 log body:2019/02/06 23:08:39 [info] 18076#0: *11 client 127.0.0.1 closed keepalive connection log level:7 log body:2019/02/06 23:08:39 [info] 18076#0: *12 client 127.0.0.1 closed keepalive connection log level:7 log body:2019/02/06 23:08:39 [info] 18076#0: *13 client 127.0.0.1 closed keepalive connection log level:7 log body:2019/02/06 23:08:39 [info] 18076#0: *14 client 127.0.0.1 closed keepalive connection end maybe log lines: #10 log level:7 log body:2019/02/06 23:08:39 [info] 18076#0: *15 client 127.0.0.1 closed keepalive connection log level:4 log body:2019/02/06 23:08:39 [error] 18076#0: *16 [lua] access_by_lua(nginx.conf:54):8: --> new line, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" end ' doesn't match '(?^s:\Amaybe log lines: #1 log level:4 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*access_by_lua\(nginx.conf:\d+\):\d+: --> new line, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" end maybe log lines: #1 end \z)' |
errlog.t | TEST 21: multi-line error log - response_body_like - response is expected (log lines: \#10 log level:6 log body:2019/02/06 23:08:39 [notice] 18066\#0: start worker processes log level:7 log body:2019/02/06 23:08:39 [info] 18096\#0: *21 client 127.0.0.1 closed keepalive connection log level:7 log body:2019/02/06 23:08:39 [info] 18096\#0: *22 client 127.0.0.1 closed keepalive connection log level:7 log body:2019/02/06 23:08:39 [info] 18096\#0: *23 client 127.0.0.1 closed keepalive connection log level:7 log body:2019/02/06 23:08:39 [info] 18096\#0: *24 client 127.0.0.1 closed keepalive connection log level:7 log body:2019/02/06 23:08:39 [info] 18096\#0: *25 client 127.0.0.1 closed keepalive connection log level:7 log body:2019/02/06 23:08:39 [info] 18096\#0: *26 client 127.0.0.1 closed keepalive connection log level:7 log body:2019/02/06 23:08:39 [info] 18096\#0: *27 client 127.0.0.1 closed keepalive connection log level:7 log body:2019/02/06 23:08:39 [info] 18096\#0: *28 client 127.0.0.1 closed keepalive connection log level:7 log body:2019/02/06 23:08:39 [info] 18096\#0: *29 client 127.0.0.1 closed keepalive connection) |
'log lines: #10 log level:6 log body:2019/02/06 23:08:39 [notice] 18066#0: start worker processes log level:7 log body:2019/02/06 23:08:39 [info] 18096#0: *21 client 127.0.0.1 closed keepalive connection log level:7 log body:2019/02/06 23:08:39 [info] 18096#0: *22 client 127.0.0.1 closed keepalive connection log level:7 log body:2019/02/06 23:08:39 [info] 18096#0: *23 client 127.0.0.1 closed keepalive connection log level:7 log body:2019/02/06 23:08:39 [info] 18096#0: *24 client 127.0.0.1 closed keepalive connection log level:7 log body:2019/02/06 23:08:39 [info] 18096#0: *25 client 127.0.0.1 closed keepalive connection log level:7 log body:2019/02/06 23:08:39 [info] 18096#0: *26 client 127.0.0.1 closed keepalive connection log level:7 log body:2019/02/06 23:08:39 [info] 18096#0: *27 client 127.0.0.1 closed keepalive connection log level:7 log body:2019/02/06 23:08:39 [info] 18096#0: *28 client 127.0.0.1 closed keepalive connection log level:7 log body:2019/02/06 23:08:39 [info] 18096#0: *29 client 127.0.0.1 closed keepalive connection ' doesn't match '(?^s:\Alog lines: #1 log level:4 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*access_by_lua\(nginx.conf:\d+\):\d+: --> new line, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" \z)' |
errlog.t | TEST 21: multi-line error log - response_body_like - response is expected (log lines: \#3 log level:7 log body:2019/02/06 23:08:39 [info] 18096\#0: *30 client 127.0.0.1 closed keepalive connection log level:4 log body:2019/02/06 23:08:39 [error] 18096\#0: *31 [lua] access_by_lua(nginx.conf:54):8: --> new line, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level:4 log body:2019/02/06 23:08:39 [error] 18096\#0: *32 [lua] access_by_lua(nginx.conf:54):8: --> new line, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost") |
'log lines: #3 log level:7 log body:2019/02/06 23:08:39 [info] 18096#0: *30 client 127.0.0.1 closed keepalive connection log level:4 log body:2019/02/06 23:08:39 [error] 18096#0: *31 [lua] access_by_lua(nginx.conf:54):8: --> new line, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" log level:4 log body:2019/02/06 23:08:39 [error] 18096#0: *32 [lua] access_by_lua(nginx.conf:54):8: --> new line, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" ' doesn't match '(?^s:\Alog lines: #1 log level:4 log body:\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[error\] (\d+).*access_by_lua\(nginx.conf:\d+\):\d+: --> new line, client: 127.0.0.1, server: localhost, request: "GET /t HTTP/1.1", host: "localhost" \z)' |
errlog.t | TEST 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 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 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 25: get system default filter level during Nginx starts (init) - pattern "log a warning event" should match a line in error.log (req 0) | |
errlog.t | TEST 25: get system default filter level during Nginx starts (init) - pattern "do not log another warning event" should not match any line in error.log but matches line "2019/02/06 23:08:48 [warn] 18438\#0: *286 [lua] content_by_lua(nginx.conf:56):7: do not log another warning event, client: 127.0.0.1, server: localhost, request: \"GET /t HTTP/1.1\", host: \"localhost\"" (req 0) |
' |
errlog.t | TEST 25: get system default filter level during Nginx starts (init) - pattern "log a warning event" should match a line in error.log (req 1) | |
errlog.t | TEST 25: get system default filter level during Nginx starts (init) - pattern "do not log another warning event" should not match any line in error.log but matches line "2019/02/06 23:08:48 [warn] 18438\#0: *287 [lua] content_by_lua(nginx.conf:56):7: do not log another warning event, client: 127.0.0.1, server: localhost, request: \"GET /t HTTP/1.1\", host: \"localhost\"" (req 1) |
' |
errlog.t | TEST 16: check the captured error log body - response_body_like - response is expected (log level:6 log body:2019/02/06 23:08:49 [notice] 18066\#0: start worker processes log level:7 log body:2019/02/06 23:08:49 [info] 18458\#0: *291 client 127.0.0.1 closed keepalive connection log level:7 log body:2019/02/06 23:08:49 [info] 18458\#0: *292 client 127.0.0.1 closed keepalive connection log level:7 log body:2019/02/06 23:08:49 [info] 18458\#0: *293 client 127.0.0.1 closed keepalive connection log level:7 log body:2019/02/06 23:08:49 [info] 18458\#0: *294 client 127.0.0.1 closed keepalive connection log level:7 log body:2019/02/06 23:08:49 [info] 18458\#0: *295 client 127.0.0.1 closed keepalive connection log level:7 log body:2019/02/06 23:08:49 [info] 18458\#0: *296 client 127.0.0.1 closed keepalive connection log level:7 log body:2019/02/06 23:08:49 [info] 18458\#0: *297 client 127.0.0.1 closed keepalive connection log level:7 log body:2019/02/06 23:08:49 [info] 18458\#0: *298 client 127.0.0.1 closed keepalive connection log level:7 log body:2019/02/06 23:08:49 [info] 18458\#0: *299 client 127.0.0.1 closed keepalive connection) |
'log level:6 log body:2019/02/06 23:08:49 [notice] 18066#0: start worker processes log level:7 log body:2019/02/06 23:08:49 [info] 18458#0: *291 client 127.0.0.1 closed keepalive connection log level:7 log body:2019/02/06 23:08:49 [info] 18458#0: *292 client 127.0.0.1 closed keepalive connection log level:7 log body:2019/02/06 23:08:49 [info] 18458#0: *293 client 127.0.0.1 closed keepalive connection log level:7 log body:2019/02/06 23:08:49 [info] 18458#0: *294 client 127.0.0.1 closed keepalive connection log level:7 log body:2019/02/06 23:08:49 [info] 18458#0: *295 client 127.0.0.1 closed keepalive connection log level:7 log body:2019/02/06 23:08:49 [info] 18458#0: *296 client 127.0.0.1 closed keepalive connection log level:7 log body:2019/02/06 23:08:49 [info] 18458#0: *297 client 127.0.0.1 closed keepalive connection log level:7 log body:2019/02/06 23:08:49 [info] 18458#0: *298 client 127.0.0.1 closed keepalive connection log level:7 log body:2019/02/06 23:08:49 [info] 18458#0: *299 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 | 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 | nginx: [emerg] | invalid number of arguments in "lua_capture_error_log" directive in /home/ec2-user/git/lua-resty-core/t/servroot/conf/nginx.conf:25 |
ocsp.t | TEST 4: get OCSP responder (issuer cert not next to the leaf cert) - response_body - response is expected (repeated req 0, req 0) |
@@ -1,2 +1 @@ -connected: 1 +failed to connect: no such file or directory -ssl handshake: userdata ' |
ocsp.t | TEST 4: get OCSP responder (issuer cert not next to the leaf cert) - pattern "lua ssl server name: "test.com"" should match a line in error.log (req 0) | |
ocsp.t | TEST 4: get OCSP responder (issuer cert not next to the leaf cert) - pattern "failed to get OCSP responder: issuer certificate not next to leaf" should match a line in error.log (req 0) | |
ocsp.t | TEST 4: get OCSP responder (issuer cert not next to the leaf cert) - response_body - response is expected (repeated req 1, req 0) |
@@ -1,2 +1 @@ -connected: 1 +failed to connect: no such file or directory -ssl handshake: userdata ' |
ocsp.t | TEST 4: get OCSP responder (issuer cert not next to the leaf cert) - pattern "lua ssl server name: "test.com"" should match a line in error.log (req 1) | |
ocsp.t | TEST 4: get OCSP responder (issuer cert not next to the leaf cert) - pattern "failed to get OCSP responder: issuer certificate not next to leaf" should match a line in error.log (req 1) | |
ocsp.t | TEST 11: fail to validate OCSP response - no issuer cert - response_body - response is expected (repeated req 0, req 0) |
@@ -1,2 +1 @@ -connected: 1 +failed to connect: no such file or directory -ssl handshake: userdata ' |
ocsp.t | TEST 11: fail to validate OCSP response - no issuer cert - pattern "lua ssl server name: "test.com"" should match a line in error.log (req 0) | |
ocsp.t | TEST 11: fail to validate OCSP response - no issuer cert - pattern "failed to validate OCSP response: no issuer certificate in chain" should match a line in error.log (req 0) | |
ocsp.t | TEST 11: fail to validate OCSP response - no issuer cert - response_body - response is expected (repeated req 1, req 0) |
@@ -1,2 +1 @@ -connected: 1 +failed to connect: no such file or directory -ssl handshake: userdata ' |
ocsp.t | TEST 11: fail to validate OCSP response - no issuer cert - pattern "lua ssl server name: "test.com"" should match a line in error.log (req 1) | |
ocsp.t | TEST 11: fail to validate OCSP response - no issuer cert - pattern "failed to validate OCSP response: no issuer certificate in chain" should match a line in error.log (req 1) | |
ocsp.t | TEST 3: get OCSP responder (no issuer cert at all) - response_body - response is expected (repeated req 0, req 0) |
@@ -1,2 +1 @@ -connected: 1 +failed to connect: no such file or directory -ssl handshake: userdata ' |
ocsp.t | TEST 3: get OCSP responder (no issuer cert at all) - pattern "lua ssl server name: "test.com"" should match a line in error.log (req 0) | |
ocsp.t | TEST 3: get OCSP responder (no issuer cert at all) - pattern "failed to get OCSP responder: no issuer certificate in chain" should match a line in error.log (req 0) | |
ocsp.t | TEST 3: get OCSP responder (no issuer cert at all) - response_body - response is expected (repeated req 1, req 0) |
@@ -1,2 +1 @@ -connected: 1 +failed to connect: no such file or directory -ssl handshake: userdata ' |
ocsp.t | TEST 3: get OCSP responder (no issuer cert at all) - pattern "lua ssl server name: "test.com"" should match a line in error.log (req 1) | |
ocsp.t | TEST 3: get OCSP responder (no issuer cert at all) - pattern "failed to get OCSP responder: no issuer certificate in chain" should match a line in error.log (req 1) | |
ocsp.t | TEST 13: validate OCSP response - OCSP response signed by an unknown cert and the OCSP response contains the unknown cert - response_body - response is expected (repeated req 0, req 0) |
@@ -1,2 +1 @@ -connected: 1 +failed to connect: no such file or directory -ssl handshake: userdata ' |
ocsp.t | TEST 13: validate OCSP response - OCSP response signed by an unknown cert and the OCSP response contains the unknown cert - pattern "lua ssl server name: "test.com"" should match a line in error.log (req 0) | |
ocsp.t | TEST 13: validate OCSP response - OCSP response signed by an unknown cert and the OCSP response contains the unknown cert - pattern "OCSP response validation ok" should match a line in error.log (req 0) | |
ocsp.t | TEST 13: validate OCSP response - OCSP response signed by an unknown cert and the OCSP response contains the unknown cert - response_body - response is expected (repeated req 1, req 0) |
@@ -1,2 +1 @@ -connected: 1 +failed to connect: no such file or directory -ssl handshake: userdata ' |
ocsp.t | TEST 13: validate OCSP response - OCSP response signed by an unknown cert and the OCSP response contains the unknown cert - pattern "lua ssl server name: "test.com"" should match a line in error.log (req 1) | |
ocsp.t | TEST 13: validate OCSP response - OCSP response signed by an unknown cert and the OCSP response contains the unknown cert - pattern "OCSP response validation ok" should match a line in error.log (req 1) | |
ocsp.t | TEST 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 8: create OCSP request (empty string cert chain) - response_body - response is expected (repeated req 0, req 0) |
@@ -1,2 +1 @@ -connected: 1 +failed to connect: no such file or directory -failed to do SSL handshake: handshake failed ' |
ocsp.t | TEST 8: create OCSP request (empty string cert chain) - pattern "lua ssl server name: "test.com"" should match a line in error.log (req 0) | |
ocsp.t | TEST 8: create OCSP request (empty string cert chain) - pattern "failed to create OCSP request: d2i_X509_bio() failed" should match a line in error.log (req 0) | |
ocsp.t | TEST 8: create OCSP request (empty string cert chain) - response_body - response is expected (repeated req 1, req 0) |
@@ -1,2 +1 @@ -connected: 1 +failed to connect: no such file or directory -failed to do SSL handshake: handshake failed ' |
ocsp.t | TEST 8: create OCSP request (empty string cert chain) - pattern "lua ssl server name: "test.com"" should match a line in error.log (req 1) | |
ocsp.t | TEST 8: create OCSP request (empty string cert chain) - pattern "failed to create OCSP request: d2i_X509_bio() failed" should match a line in error.log (req 1) | |
ocsp.t | TEST 5: get OCSP responder (truncated) - response_body - response is expected (repeated req 0, req 0) |
@@ -1,2 +1 @@ -connected: 1 +failed to connect: no such file or directory -ssl handshake: userdata ' |
ocsp.t | TEST 5: get OCSP responder (truncated) - pattern "lua ssl server name: "test.com"" should match a line in error.log (req 0) | |
ocsp.t | TEST 5: get OCSP responder (truncated) - pattern "OCSP url found: http:/," should match a line in error.log (req 0) | |
ocsp.t | TEST 5: get OCSP responder (truncated) - pattern "still get an error: truncated" should match a line in error.log (req 0) | |
ocsp.t | TEST 5: get OCSP responder (truncated) - response_body - response is expected (repeated req 1, req 0) |
@@ -1,2 +1 @@ -connected: 1 +failed to connect: no such file or directory -ssl handshake: userdata ' |
ocsp.t | TEST 5: get OCSP responder (truncated) - pattern "lua ssl server name: "test.com"" should match a line in error.log (req 1) | |
ocsp.t | TEST 5: get OCSP responder (truncated) - pattern "OCSP url found: http:/," should match a line in error.log (req 1) | |
ocsp.t | TEST 5: get OCSP responder (truncated) - pattern "still get an error: truncated" should match a line in error.log (req 1) | |
ocsp.t | TEST 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 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 14: fail to validate OCSP response - OCSP response signed by an unknown cert and the OCSP response does not contain the unknown cert - response_body - response is expected (repeated req 0, req 0) |
@@ -1,2 +1 @@ -connected: 1 +failed to connect: no such file or directory -ssl handshake: userdata ' |
ocsp.t | TEST 14: fail to validate OCSP response - OCSP response signed by an unknown cert and the OCSP response does not contain the unknown cert - pattern "lua ssl server name: "test.com"" should match a line in error.log (req 0) | |
ocsp.t | TEST 14: fail to validate OCSP response - OCSP response signed by an unknown cert and the OCSP response does not contain the unknown cert - pattern "failed to validate OCSP response: OCSP_basic_verify() failed" should match a line in error.log (req 0) | |
ocsp.t | TEST 14: fail to validate OCSP response - OCSP response signed by an unknown cert and the OCSP response does not contain the unknown cert - response_body - response is expected (repeated req 1, req 0) |
@@ -1,2 +1 @@ -connected: 1 +failed to connect: no such file or directory -ssl handshake: userdata ' |
ocsp.t | TEST 14: fail to validate OCSP response - OCSP response signed by an unknown cert and the OCSP response does not contain the unknown cert - pattern "lua ssl server name: "test.com"" should match a line in error.log (req 1) | |
ocsp.t | TEST 14: fail to validate OCSP response - OCSP response signed by an unknown cert and the OCSP response does not contain the unknown cert - pattern "failed to validate OCSP response: OCSP_basic_verify() failed" should match a line in error.log (req 1) | |
ocsp.t | TEST 17: no status req from client - pattern "[emerg]" should not match any line in error.log but matches line "2019/02/06 23:09:47 [emerg] 19219\#0: unlink() /home/ec2-user/git/lua-resty-core/t/servroot/html/nginx.sock failed (2: No such file or directory)" (req 0) |
2019/02/06 23:09:47 [notice] 19219\#0: start worker processes 2019/02/06 23:09:47 [debug] 19219\#0: channel 3:5 2019/02/06 23:09:47 [debug] 19429\#0: epoll: fd:7 ev:0001 d:00000000093836D0 2019/02/06 23:09:47 [debug] 19429\#0: accept on 0.0.0.0:1984, ready: 0 2019/02/06 23:09:47 [debug] 19429\#0: malloc: 00000000086BB3E0:48 2019/02/06 23:09:47 [debug] 19429\#0: malloc: 00000000086BB450:16 2019/02/06 23:09:47 [debug] 19429\#0: malloc: 00000000086BB4A0:16 2019/02/06 23:09:47 [debug] 19429\#0: malloc: 0000000008737560:80 2019/02/06 23:09:47 [debug] 19429\#0: malloc: 00000000086BB4F0:16 ' |
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 16: good status req from client - pattern "[emerg]" should not match any line in error.log but matches line "2019/02/06 23:09:50 [emerg] 19219\#0: unlink() /home/ec2-user/git/lua-resty-core/t/servroot/html/nginx.sock failed (2: No such file or directory)" (req 0) |
2019/02/06 23:09:50 [notice] 19219\#0: start worker processes 2019/02/06 23:09:50 [debug] 19219\#0: channel 4:6 2019/02/06 23:09:50 [notice] 19219\#0: start worker process 19510 2019/02/06 23:09:50 [debug] 19219\#0: pass channel s:1 pid:19510 fd:4 to s:0 pid:19490 fd:3 2019/02/06 23:09:50 [debug] 19490\#0: epoll: fd:5 ev:0001 d:0000000008779830 2019/02/06 23:09:50 [debug] 19490\#0: channel handler 2019/02/06 23:09:50 [debug] 19490\#0: channel: 32 2019/02/06 23:09:50 [debug] 19490\#0: channel command: 1 2019/02/06 23:09:50 [debug] 19490\#0: get channel s:1 pid:19510 fd:6 ' |
request.t | TEST 7: ngx.req.start_time() - response_body - response is expected (repeated req 0, req 0) |
got: "true\x{0a}>= 0.099: true\x{0a}< 0.11: false\x{0a}" length: 34 expected: "true\x{0a}>= 0.099: true\x{0a}< 0.11: true\x{0a}" length: 33 strings begin to differ at char 29 (line 3 column 9) Looks like you failed 1 test of 180. |
semaphore.t | TEST 13: semaphore in log_by_lua (wait not allowed) - grep_error_log_out (req 0) |
@@ -1,2 +1,3 @@ +sem: timeout, sem: 1 while logging request, sem: API disabled in the context of log_by_lua* while logging request, ' |
semaphore.t | TEST 38: basic semaphore count - pattern "[error]" should not match any line in error.log but matches line "2019/02/06 23:14:00 [error] 25183\#0: *426 [lua] init_worker_by_lua:14: sem: timeout, context: ngx.timer" (req 1) |
2019/02/06 23:14:00 [debug] 25183\#0: http lua semaphore wait: 00000000092BC948, timeout: 1000, resources: 0, event posted: 0 2019/02/06 23:14:00 [debug] 25183\#0: *426 event timer add: 0: 1000:8009859 2019/02/06 23:14:00 [debug] 25183\#0: http lua semaphore wait yielding 2019/02/06 23:14:00 [debug] 25183\#0: *426 lua resume returned 1 2019/02/06 23:14:00 [debug] 25183\#0: *426 lua thread yielded 2019/02/06 23:14:00 [debug] 25183\#0: *426 lua run thread returned -2 2019/02/06 23:14:00 [debug] 25183\#0: worker cycle ' |
semaphore.t | TEST 24: semaphore post in timer.at - pattern "[error]" should not match any line in error.log but matches line "2019/02/06 23:14:01 [error] 25183\#0: *426 [lua] init_worker_by_lua:14: sem: timeout, context: ngx.timer" (req 1) |
2019/02/06 23:14:01 [debug] 25183\#0: http lua semaphore wait: 00000000092BC948, timeout: 1000, resources: 0, event posted: 0 2019/02/06 23:14:01 [debug] 25183\#0: *426 event timer add: 0: 1000:8010859 2019/02/06 23:14:01 [debug] 25183\#0: http lua semaphore wait yielding 2019/02/06 23:14:01 [debug] 25183\#0: *426 lua resume returned 1 2019/02/06 23:14:01 [debug] 25183\#0: *426 lua thread yielded 2019/02/06 23:14:01 [debug] 25183\#0: *426 lua run thread returned -2 2019/02/06 23:14:01 [debug] 25183\#0: worker cycle ' |
semaphore.t | TEST 1: basic semaphore in uthread - pattern "[error]" should not match any line in error.log but matches line "2019/02/06 23:14:03 [error] 25183\#0: *426 [lua] init_worker_by_lua:14: sem: timeout, context: ngx.timer" (req 1) |
2019/02/06 23:14:03 [debug] 25183\#0: http lua semaphore wait: 00000000092BC948, timeout: 1000, resources: 0, event posted: 0 2019/02/06 23:14:03 [debug] 25183\#0: *426 event timer add: 0: 1000:8012859 2019/02/06 23:14:03 [debug] 25183\#0: http lua semaphore wait yielding 2019/02/06 23:14:03 [debug] 25183\#0: *426 lua resume returned 1 2019/02/06 23:14:03 [debug] 25183\#0: *426 lua thread yielded 2019/02/06 23:14:03 [debug] 25183\#0: *426 lua run thread returned -2 2019/02/06 23:14:03 [debug] 25183\#0: worker cycle 2019/02/06 23:14:03 [debug] 25183\#0: epoll timer: 1000 2019/02/06 23:14:03 [debug] 25358\#0: epoll: fd:6 ev:0001 d:0000000009342820 ' |
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 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 1: get resume session id serialized - response_body - response is expected (repeated req 0, req 0) |
@@ -1,3 +1 @@ -connected: 1 +failed to connect: no such file or directory -ssl handshake: userdata -close: 1 nil ' |
ssl-session-fetch.t | TEST 1: get resume session id serialized - response_body - response is expected (repeated req 1, req 0) |
@@ -1,3 +1 @@ -connected: 1 +failed to connect: no such file or directory -ssl handshake: userdata -close: 1 nil ' |
ssl-session-fetch.t | TEST 1: get resume session id serialized - grep_error_log_out (req 1) |
'' doesn't match '(?^s:ssl_session_fetch_by_lua_block:4: session id: [a-fA-f\d]+)' |
ssl-session-fetch.t | TEST 5: yield during doing handshake with client which uses low version OpenSSL - pattern "[emerg]" should not match any line in error.log but matches line "2019/02/06 23:15:11 [emerg] 26752\#0: unlink() /home/ec2-user/git/lua-resty-core/t/servroot/html/nginx.sock failed (2: No such file or directory)" (req 0) |
2019/02/06 23:15:11 [debug] 26783\#0: epoll: fd:7 ev:0001 d:0000000008F6C4D0 2019/02/06 23:15:11 [debug] 26783\#0: accept on 0.0.0.0:1984, ready: 0 2019/02/06 23:15:11 [debug] 26783\#0: malloc: 0000000008F9BEB0:48 2019/02/06 23:15:11 [debug] 26783\#0: malloc: 0000000008F9BF20:16 2019/02/06 23:15:11 [debug] 26783\#0: malloc: 0000000008F9BF70:16 2019/02/06 23:15:11 [debug] 26783\#0: malloc: 0000000008F9BFC0:80 2019/02/06 23:15:11 [debug] 26783\#0: malloc: 0000000008F9C050:16 2019/02/06 23:15:11 [debug] 26783\#0: malloc: 0000000008F9C0A0:15 2019/02/06 23:15:11 [debug] 26783\#0: malloc: 0000000008F9C0F0:16 ' |
ssl-session-fetch.t | TEST 2: attempt to fetch new session in lua_ctx during resumption. - response_body - response is expected (repeated req 0, req 0) |
@@ -1,3 +1 @@ -connected: 1 +failed to connect: no such file or directory -ssl handshake: userdata -close: 1 nil ' |
ssl-session-fetch.t | TEST 2: attempt to fetch new session in lua_ctx during resumption. - response_body - response is expected (repeated req 1, req 0) |
@@ -1,3 +1 @@ -connected: 1 +failed to connect: no such file or directory -ssl handshake: userdata -close: 1 nil ' |
ssl-session-fetch.t | TEST 2: attempt to fetch new session in lua_ctx during resumption. - grep_error_log_out (req 1) |
got: '' expected: 'get session error: bad session in lua context ' |
ssl-session-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 2: get new session id serialized - response_body - response is expected (repeated req 0, req 0) |
@@ -1,3 +1 @@ -connected: 1 +failed to connect: no such file or directory -ssl handshake: userdata -close: 1 nil ' |
ssl-session-store.t | TEST 2: get new session id serialized - pattern "(?^s:ssl_session_store_by_lua_block:4: session id: [a-fA-f\d]+)" should match a line in error.log (req 0) | |
ssl-session-store.t | TEST 2: get new session id serialized - response_body - response is expected (repeated req 1, req 0) |
@@ -1,3 +1 @@ -connected: 1 +failed to connect: no such file or directory -ssl handshake: userdata -close: 1 nil ' |
ssl-session-store.t | TEST 2: get new session id serialized - pattern "(?^s:ssl_session_store_by_lua_block:4: session id: [a-fA-f\d]+)" should match a line in error.log (req 1) | |
ssl.t | TEST 19: parse PEM cert and key to cdata (bad priv key) - response_body - response is expected (repeated req 0, req 0) |
@@ -1,2 +1 @@ -connected: 1 +failed to connect: no such file or directory -failed to do SSL handshake: handshake failed ' |
ssl.t | TEST 19: parse PEM cert and key to cdata (bad priv key) - pattern "(?^:\[error\] .*? failed to parse pem key: PEM_read_bio_PrivateKey\(\) failed)" should match a line in error.log (req 0) | |
ssl.t | TEST 19: parse PEM cert and key to cdata (bad priv key) - pattern "[crit]" should not match any line in error.log but matches line "2019/02/06 23:15:20 [crit] 26934\#0: *22 connect() to unix:/home/ec2-user/git/lua-resty-core/t/servroot/html/nginx.sock failed (2: No such file or directory), client: 127.0.0.1, server: localhost, request: \"GET /t HTTP/1.1\", host: \"localhost\"" (req 0) |
2019/02/06 23:15:20 [debug] 26934\#0: *22 reusable connection: 0 2019/02/06 23:15:20 [debug] 26934\#0: *22 malloc: 0000000008BED8F0:24 2019/02/06 23:15:20 [debug] 26934\#0: *22 malloc: 0000000008BED950:16 2019/02/06 23:15:20 [debug] 26934\#0: *22 http cleanup add: 0000000008BED8F0 2019/02/06 23:15:20 [debug] 26934\#0: *22 lua tcp socket connect: -5 2019/02/06 23:15:20 [debug] 26934\#0: *22 lua tcp socket error retval handler 2019/02/06 23:15:20 [debug] 26934\#0: *22 lua finalize socket 2019/02/06 23:15:20 [debug] 26934\#0: *22 lua http cleanup free: 0000000008BED8F0 2019/02/06 23:15:20 [debug] 26934\#0: *22 malloc: 0000000008BEDA10:16 ' |
ssl.t | TEST 19: parse PEM cert and key to cdata (bad priv key) - response_body - response is expected (repeated req 1, req 0) |
@@ -1,2 +1 @@ -connected: 1 +failed to connect: no such file or directory -failed to do SSL handshake: handshake failed ' |
ssl.t | TEST 19: parse PEM cert and key to cdata (bad priv key) - pattern "(?^:\[error\] .*? failed to parse pem key: PEM_read_bio_PrivateKey\(\) failed)" should match a line in error.log (req 1) | |
ssl.t | TEST 19: parse PEM cert and key to cdata (bad priv key) - pattern "[crit]" should not match any line in error.log but matches line "2019/02/06 23:15:20 [crit] 26934\#0: *24 connect() to unix:/home/ec2-user/git/lua-resty-core/t/servroot/html/nginx.sock failed (2: No such file or directory), client: 127.0.0.1, server: localhost, request: \"GET /t HTTP/1.1\", host: \"localhost\"" (req 1) |
2019/02/06 23:15:20 [debug] 26934\#0: *24 reusable connection: 0 2019/02/06 23:15:20 [debug] 26934\#0: *24 malloc: 0000000008BF15F0:24 2019/02/06 23:15:20 [debug] 26934\#0: *24 malloc: 0000000008BF1650:16 2019/02/06 23:15:20 [debug] 26934\#0: *24 http cleanup add: 0000000008BF15F0 2019/02/06 23:15:20 [debug] 26934\#0: *24 lua tcp socket connect: -5 2019/02/06 23:15:20 [debug] 26934\#0: *24 lua tcp socket error retval handler 2019/02/06 23:15:20 [debug] 26934\#0: *24 lua finalize socket 2019/02/06 23:15:20 [debug] 26934\#0: *24 lua http cleanup free: 0000000008BF15F0 2019/02/06 23:15:20 [debug] 26934\#0: *24 malloc: 0000000008BF16A0:16 ' |
ssl.t | TEST 14: ngx.semaphore in ssl_certificate_by_lua* - pattern "[emerg]" should not match any line in error.log but matches line "2019/02/06 23:15:20 [emerg] 26923\#0: unlink() /home/ec2-user/git/lua-resty-core/t/servroot/html/nginx.sock failed (2: No such file or directory)" (req 0) |
2019/02/06 23:15:20 [notice] 26923\#0: start worker processes 2019/02/06 23:15:20 [debug] 26923\#0: channel 3:5 2019/02/06 23:15:20 [notice] 26923\#0: start worker process 26954 2019/02/06 23:15:20 [debug] 26923\#0: pass channel s:0 pid:26954 fd:3 to s:1 pid:26934 fd:4 2019/02/06 23:15:20 [debug] 26934\#0: epoll: fd:9 ev:0001 d:0000000008BC52F0 2019/02/06 23:15:20 [debug] 26934\#0: channel handler 2019/02/06 23:15:20 [debug] 26934\#0: channel: 32 2019/02/06 23:15:20 [debug] 26934\#0: channel command: 1 2019/02/06 23:15:20 [debug] 26934\#0: get channel s:0 pid:26954 fd:5 ' |
ssl.t | TEST 12: tls version - TLSv1.1 - pattern "[emerg]" should not match any line in error.log but matches line "2019/02/06 23:15:29 [emerg] 26923\#0: unlink() /home/ec2-user/git/lua-resty-core/t/servroot/html/nginx.sock failed (2: No such file or directory)" (req 0) |
2019/02/06 23:15:29 [debug] 27056\#0: malloc: 00000000088CFEA0:16 2019/02/06 23:15:29 [debug] 27056\#0: malloc: 00000000088BC0B0:24 2019/02/06 23:15:29 [debug] 27056\#0: malloc: 00000000088CA4A0:16 2019/02/06 23:15:29 [debug] 27056\#0: *152 event timer add: 5: 60000:8157238 2019/02/06 23:15:29 [debug] 27056\#0: *152 reusable connection: 1 2019/02/06 23:15:29 [debug] 27056\#0: *152 epoll add event: fd:5 op:1 ev:80002001 2019/02/06 23:15:29 [debug] 27056\#0: timer delta: 68 2019/02/06 23:15:29 [debug] 27056\#0: worker cycle 2019/02/06 23:15:29 [debug] 27056\#0: epoll timer: 60000 ' |
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 1: clear certs - response_body - response is expected (repeated req 0, req 0) |
@@ -1,2 +1 @@ -connected: 1 +failed to connect: no such file or directory -failed to do SSL handshake: handshake failed ' |
ssl.t | TEST 1: clear certs - pattern "lua ssl server name: "test.com"" should match a line in error.log (req 0) | |
ssl.t | TEST 1: clear certs - pattern "sslv3 alert handshake failure" should match a line in error.log (req 0) | |
ssl.t | TEST 1: clear certs - response_body - response is expected (repeated req 1, req 0) |
@@ -1,2 +1 @@ -connected: 1 +failed to connect: no such file or directory -failed to do SSL handshake: handshake failed ' |
ssl.t | TEST 1: clear certs - pattern "lua ssl server name: "test.com"" should match a line in error.log (req 1) | |
ssl.t | TEST 1: clear certs - pattern "sslv3 alert handshake failure" should match a line in error.log (req 1) | |
ssl.t | TEST 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 10: tls version - SSLv3 - pattern "[emerg]" should not match any line in error.log but matches line "2019/02/06 23:15:33 [emerg] 26923\#0: unlink() /home/ec2-user/git/lua-resty-core/t/servroot/html/nginx.sock failed (2: No such file or directory)" (req 0) |
2019/02/06 23:15:33 [debug] 27158\#0: *245 set http keepalive handler 2019/02/06 23:15:33 [debug] 27158\#0: *245 http close request 2019/02/06 23:15:33 [debug] 27158\#0: *245 http log handler 2019/02/06 23:15:33 [debug] 27158\#0: *245 malloc: 0000000009741360:123 2019/02/06 23:15:33 [debug] 27158\#0: *245 malloc: 0000000009741420:16 2019/02/06 23:15:33 [debug] 27158\#0: *245 free: 0000000009741420, unused: 0 2019/02/06 23:15:33 [debug] 27158\#0: *245 free: 0000000009741310, unused: 0 2019/02/06 23:15:33 [debug] 27158\#0: *245 free: 0000000009741270, unused: 0 2019/02/06 23:15:33 [debug] 27158\#0: *245 free: 00000000097E2CC0, unused: 0 ' |
ssl.t | TEST 11: tls version - TLSv1 - pattern "[emerg]" should not match any line in error.log but matches line "2019/02/06 23:15:35 [emerg] 26923\#0: unlink() /home/ec2-user/git/lua-resty-core/t/servroot/html/nginx.sock failed (2: No such file or directory)" (req 0) |
2019/02/06 23:15:35 [notice] 26923\#0: start worker processes 2019/02/06 23:15:35 [debug] 26923\#0: channel 4:6 2019/02/06 23:15:35 [notice] 26923\#0: start worker process 27219 2019/02/06 23:15:35 [debug] 26923\#0: pass channel s:1 pid:27219 fd:4 to s:0 pid:27198 fd:3 2019/02/06 23:15:36 [debug] 27198\#0: epoll: fd:5 ev:0001 d:00000000087839B0 2019/02/06 23:15:36 [debug] 27198\#0: channel handler 2019/02/06 23:15:36 [debug] 27198\#0: channel: 32 2019/02/06 23:15:36 [debug] 27198\#0: channel command: 1 2019/02/06 23:15:36 [debug] 27198\#0: get channel s:1 pid:27219 fd:6 ' |
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/06 23:15:38 [crit] 27260\#0: *342 connect() to unix:/home/ec2-user/git/lua-resty-core/t/servroot/html/nginx.sock failed (2: No such file or directory), client: 127.0.0.1, server: localhost, request: \"GET /t HTTP/1.1\", host: \"localhost\"" (req 0) |
2019/02/06 23:15:38 [debug] 27260\#0: *342 reusable connection: 0 2019/02/06 23:15:38 [debug] 27260\#0: *342 malloc: 000000000941E590:24 2019/02/06 23:15:38 [debug] 27260\#0: *342 malloc: 00000000093ED700:16 2019/02/06 23:15:38 [debug] 27260\#0: *342 http cleanup add: 000000000941E590 2019/02/06 23:15:38 [debug] 27260\#0: *342 lua tcp socket connect: -5 2019/02/06 23:15:38 [debug] 27260\#0: *342 lua tcp socket error retval handler 2019/02/06 23:15:38 [debug] 27260\#0: *342 lua finalize socket 2019/02/06 23:15:38 [debug] 27260\#0: *342 lua http cleanup free: 000000000941E590 2019/02/06 23:15:38 [debug] 27260\#0: *342 malloc: 00000000094211E0: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/06 23:15:38 [crit] 27260\#0: *344 connect() to unix:/home/ec2-user/git/lua-resty-core/t/servroot/html/nginx.sock failed (2: No such file or directory), client: 127.0.0.1, server: localhost, request: \"GET /t HTTP/1.1\", host: \"localhost\"" (req 1) |
2019/02/06 23:15:38 [debug] 27260\#0: *344 reusable connection: 0 2019/02/06 23:15:38 [debug] 27260\#0: *344 malloc: 0000000008FAEB90:24 2019/02/06 23:15:38 [debug] 27260\#0: *344 malloc: 0000000008FAEBF0:16 2019/02/06 23:15:38 [debug] 27260\#0: *344 http cleanup add: 0000000008FAEB90 2019/02/06 23:15:38 [debug] 27260\#0: *344 lua tcp socket connect: -5 2019/02/06 23:15:38 [debug] 27260\#0: *344 lua tcp socket error retval handler 2019/02/06 23:15:38 [debug] 27260\#0: *344 lua finalize socket 2019/02/06 23:15:38 [debug] 27260\#0: *344 lua http cleanup free: 0000000008FAEB90 2019/02/06 23:15:38 [debug] 27260\#0: *344 malloc: 0000000008FAEC40:16 ' |
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 13: tls version - TLSv1.2 - pattern "[emerg]" should not match any line in error.log but matches line "2019/02/06 23:15:39 [emerg] 26923\#0: unlink() /home/ec2-user/git/lua-resty-core/t/servroot/html/nginx.sock failed (2: No such file or directory)" (req 0) |
2019/02/06 23:15:39 [debug] 27281\#0: *363 free: 000000000873B2E0, unused: 0 2019/02/06 23:15:39 [debug] 27281\#0: *363 free: 000000000873B290, unused: 0 2019/02/06 23:15:39 [debug] 27281\#0: timer delta: 0 2019/02/06 23:15:39 [debug] 27281\#0: worker cycle 2019/02/06 23:15:39 [debug] 27281\#0: epoll timer: -1 2019/02/06 23:15:39 [notice] 26923\#0: start worker processes 2019/02/06 23:15:39 [debug] 26923\#0: channel 4:6 2019/02/06 23:15:39 [notice] 26923\#0: start worker process 27300 2019/02/06 23:15:39 [debug] 26923\#0: pass channel s:1 pid:27300 fd:4 to s:0 pid:27281 fd:3 ' |
time.t | TEST 1: ngx.now() - response_body - response is expected (repeated req 0, req 0) |
@@ -1,3 +1,3 @@ true >= 0.099: true -< 0.11: true +< 0.11: false ' |
Go back to the index page.