(This page was automatically generated by the tools in the opsboy project on 09:46:44 03-Nov-2020 GMT.)

Detailed Test Report for ngx_stream_lua in linux i386 (h)

Summary

Commit Testing Time Unexpected
Failures
Expected
Failures
Files Tests Elapsed Time
f837686b 2020-10-27 03:33:36 GMT 5129 165 115 9565 2462 sec

LuaJIT

LuaJIT 2.1.0-beta3, commit 70f88773

OpenSSL

OpenSSL 1.1.1h 22 Sep 2020

Compilation Errors

Unexpected Failures

File Name Details
002-content.t TEST 5: nil is "nil" - status code ok got: ''
expected: '200'
002-content.t TEST 5: nil is "nil" - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "nil\x{0a}"
length: 4
strings begin to differ at char 1 (line 1 column 1)
002-content.t TEST 5: nil is "nil" - status code ok got: ''
expected: '200'
002-content.t TEST 5: nil is "nil" - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "nil\x{0a}"
length: 4
strings begin to differ at char 1 (line 1 column 1)
002-content.t TEST 3: no ngx.echo - status code ok got: ''
expected: '200'
002-content.t TEST 3: no ngx.echo - status code ok got: ''
expected: '200'
002-content.t TEST 4: calc expression - status code ok got: ''
expected: '200'
002-content.t TEST 4: calc expression - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "result: -0.4090441561579\x{0a}"
length: 25
strings begin to differ at char 1 (line 1 column 1)
002-content.t TEST 4: calc expression - status code ok got: ''
expected: '200'
002-content.t TEST 4: calc expression - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "result: -0.4090441561579\x{0a}"
length: 25
strings begin to differ at char 1 (line 1 column 1)
002-content.t TEST 1: basic print - status code ok got: ''
expected: '200'
002-content.t TEST 1: basic print - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "Hello, Lua!\x{0a}"
length: 12
strings begin to differ at char 1 (line 1 column 1)
002-content.t TEST 1: basic print - status code ok got: ''
expected: '200'
002-content.t TEST 1: basic print - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "Hello, Lua!\x{0a}"
length: 12
strings begin to differ at char 1 (line 1 column 1)
002-content.t TEST 15: syntax error in inlined Lua code - status code ok got: ''
expected: '200'
002-content.t TEST 15: syntax error in inlined Lua code - status code ok got: ''
expected: '200'
002-content.t TEST 10: ngx.eof before ngx.say - status code ok got: ''
expected: '200'
002-content.t TEST 10: ngx.eof before ngx.say - status code ok got: ''
expected: '200'
002-content.t TEST 8: nginx quote sql string 2 - status code ok got: ''
expected: '200'
002-content.t TEST 8: nginx quote sql string 2 - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "'hello\n\r\'\"\\'\x{0a}"
length: 18
strings begin to differ at char 1 (line 1 column 1)
002-content.t TEST 8: nginx quote sql string 2 - status code ok got: ''
expected: '200'
002-content.t TEST 8: nginx quote sql string 2 - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "'hello\n\r\'\"\\'\x{0a}"
length: 18
strings begin to differ at char 1 (line 1 column 1)
002-content.t TEST 2: basic say - status code ok got: ''
expected: '200'
002-content.t TEST 2: basic say - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "Hello, Lua!\x{0a}Yay! 123\x{0a}"
length: 21
strings begin to differ at char 1 (line 1 column 1)
002-content.t TEST 2: basic say - status code ok got: ''
expected: '200'
002-content.t TEST 2: basic say - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "Hello, Lua!\x{0a}Yay! 123\x{0a}"
length: 21
strings begin to differ at char 1 (line 1 column 1)
002-content.t TEST 14: .lua file with shebang - status code ok got: ''
expected: '200'
002-content.t TEST 14: .lua file with shebang - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "line 3\x{0a}"
length: 7
strings begin to differ at char 1 (line 1 column 1)
002-content.t TEST 14: .lua file with shebang - status code ok got: ''
expected: '200'
002-content.t TEST 14: .lua file with shebang - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "line 3\x{0a}"
length: 7
strings begin to differ at char 1 (line 1 column 1)
002-content.t TEST 6: write boolean - status code ok got: ''
expected: '200'
002-content.t TEST 6: write boolean - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "true false\x{0a}"
length: 11
strings begin to differ at char 1 (line 1 column 1)
002-content.t TEST 6: write boolean - status code ok got: ''
expected: '200'
002-content.t TEST 6: write boolean - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "true false\x{0a}"
length: 11
strings begin to differ at char 1 (line 1 column 1)
002-content.t TEST 7: nginx quote sql string 1 - status code ok got: ''
expected: '200'
002-content.t TEST 7: nginx quote sql string 1 - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "'hello\n\r\'\"\\'\x{0a}"
length: 18
strings begin to differ at char 1 (line 1 column 1)
002-content.t TEST 7: nginx quote sql string 1 - status code ok got: ''
expected: '200'
002-content.t TEST 7: nginx quote sql string 1 - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "'hello\n\r\'\"\\'\x{0a}"
length: 18
strings begin to differ at char 1 (line 1 column 1)
002-content.t TEST 11: ngx.print table arguments (github issue \#54) - status code ok got: ''
expected: '200'
002-content.t TEST 11: ngx.print table arguments (github issue \#54) - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "10051532"
length: 8
strings begin to differ at char 1 (line 1 column 1)
002-content.t TEST 11: ngx.print table arguments (github issue \#54) - status code ok got: ''
expected: '200'
002-content.t TEST 11: ngx.print table arguments (github issue \#54) - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "10051532"
length: 8
strings begin to differ at char 1 (line 1 column 1)
002-content.t TEST 13: Lua file does not exist - status code ok got: ''
expected: '200'
002-content.t TEST 13: Lua file does not exist - status code ok got: ''
expected: '200'
002-content.t TEST 9: multiple eof - status code ok got: ''
expected: '200'
002-content.t TEST 9: multiple eof - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "Hi\x{0a}"
length: 3
strings begin to differ at char 1 (line 1 column 1)
002-content.t TEST 9: multiple eof - status code ok got: ''
expected: '200'
002-content.t TEST 9: multiple eof - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "Hi\x{0a}"
length: 3
strings begin to differ at char 1 (line 1 column 1)
002-content.t TEST 12: ngx.say table arguments (github issue \#54) - status code ok got: ''
expected: '200'
002-content.t TEST 12: ngx.say table arguments (github issue \#54) - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "10051532\x{0a}"
length: 9
strings begin to differ at char 1 (line 1 column 1)
002-content.t TEST 12: ngx.say table arguments (github issue \#54) - status code ok got: ''
expected: '200'
002-content.t TEST 12: ngx.say table arguments (github issue \#54) - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "10051532\x{0a}"
length: 9
strings begin to differ at char 1 (line 1 column 1)
003-errors.t TEST 1: syntax error in lua code chunk - status code ok got: ''
expected: '200'
003-errors.t TEST 1: syntax error in lua code chunk - status code ok got: ''
expected: '200'
003-errors.t TEST 2: syntax error in lua file - status code ok got: ''
expected: '200'
003-errors.t TEST 2: syntax error in lua file - status code ok got: ''
expected: '200'
004-require.t TEST 6: expand default cpath (before) - status code ok got: ''
expected: '200'
004-require.t TEST 6: expand default cpath (before) - response_body_like - response is expected () ''
doesn't match '(?^s:^(.+\.so)?;*?[^;]+/servroot(_\d+)?/html/\?\.so$)'
004-require.t TEST 6: expand default cpath (before) - status code ok got: ''
expected: '200'
004-require.t TEST 6: expand default cpath (before) - response_body_like - response is expected () ''
doesn't match '(?^s:^(.+\.so)?;*?[^;]+/servroot(_\d+)?/html/\?\.so$)'
004-require.t TEST 2: sanity - status code ok got: ''
expected: '200'
004-require.t TEST 2: sanity - response_body_like - response is expected () ''
doesn't match '(?^s:^[^;]+/servroot(_\d+)?/html/\?\.so$)'
004-require.t TEST 2: sanity - status code ok got: ''
expected: '200'
004-require.t TEST 2: sanity - response_body_like - response is expected () ''
doesn't match '(?^s:^[^;]+/servroot(_\d+)?/html/\?\.so$)'
004-require.t TEST 3: expand default path (after) - status code ok got: ''
expected: '200'
004-require.t TEST 3: expand default path (after) - response_body_like - response is expected () ''
doesn't match '(?^s:^[^;]+/servroot(_\d+)?/html/\?\.lua;(.+\.lua)?;*$)'
004-require.t TEST 3: expand default path (after) - status code ok got: ''
expected: '200'
004-require.t TEST 3: expand default path (after) - response_body_like - response is expected () ''
doesn't match '(?^s:^[^;]+/servroot(_\d+)?/html/\?\.lua;(.+\.lua)?;*$)'
004-require.t TEST 4: expand default cpath (after) - status code ok got: ''
expected: '200'
004-require.t TEST 4: expand default cpath (after) - response_body_like - response is expected () ''
doesn't match '(?^s:^[^;]+/servroot(_\d+)?/html/\?\.so;(.+\.so)?;*$)'
004-require.t TEST 4: expand default cpath (after) - status code ok got: ''
expected: '200'
004-require.t TEST 4: expand default cpath (after) - response_body_like - response is expected () ''
doesn't match '(?^s:^[^;]+/servroot(_\d+)?/html/\?\.so;(.+\.so)?;*$)'
004-require.t TEST 7: require "ngx" (content_by_lua_block) - status code ok got: ''
expected: '200'
004-require.t TEST 7: require "ngx" (content_by_lua_block) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'hello, world
'
004-require.t TEST 7: require "ngx" (content_by_lua_block) - status code ok got: ''
expected: '200'
004-require.t TEST 7: require "ngx" (content_by_lua_block) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'hello, world
'
004-require.t TEST 5: expand default path (before) - status code ok got: ''
expected: '200'
004-require.t TEST 5: expand default path (before) - response_body_like - response is expected () ''
doesn't match '(?^s:^(.+\.lua)?;*?[^;]+/servroot(_\d+)?/html/\?\.lua$)'
004-require.t TEST 5: expand default path (before) - status code ok got: ''
expected: '200'
004-require.t TEST 5: expand default path (before) - response_body_like - response is expected () ''
doesn't match '(?^s:^(.+\.lua)?;*?[^;]+/servroot(_\d+)?/html/\?\.lua$)'
004-require.t TEST 1: sanity - status code ok got: ''
expected: '200'
004-require.t TEST 1: sanity - response_body - response is expected (repeated req 0, req 0) @@ -1,6 +0,0 @@
-loading
-hello, foo
-found
-hello, foo
-found
-hello, foo
'
004-require.t TEST 1: sanity - status code ok got: ''
expected: '200'
004-require.t TEST 1: sanity - response_body - response is expected (repeated req 1, req 0) @@ -1,6 +0,0 @@
-loading
-hello, foo
-found
-hello, foo
-found
-hello, foo
'
005-exit.t TEST 7: throw 408 after sending out responses - status code ok got: ''
expected: '200'
005-exit.t TEST 7: throw 408 after sending out responses - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'ok
'
005-exit.t TEST 7: throw 408 after sending out responses - status code ok got: ''
expected: '200'
005-exit.t TEST 7: throw 408 after sending out responses - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'ok
'
005-exit.t TEST 1: throw error - status code ok got: ''
expected: '200'
005-exit.t TEST 1: throw error - status code ok got: ''
expected: '200'
005-exit.t TEST 6: throw 499 after sending out responses - status code ok got: ''
expected: '200'
005-exit.t TEST 6: throw 499 after sending out responses - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'ok
'
005-exit.t TEST 6: throw 499 after sending out responses - status code ok got: ''
expected: '200'
005-exit.t TEST 6: throw 499 after sending out responses - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'ok
'
005-exit.t TEST 3: throw 0 - status code ok got: ''
expected: '200'
005-exit.t TEST 3: throw 0 - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'Hi
'
005-exit.t TEST 3: throw 0 - status code ok got: ''
expected: '200'
005-exit.t TEST 3: throw 0 - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'Hi
'
005-exit.t TEST 4: pcall safe - status code ok got: ''
expected: '200'
005-exit.t TEST 4: pcall safe - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'hello
'
005-exit.t TEST 4: pcall safe - status code ok got: ''
expected: '200'
005-exit.t TEST 4: pcall safe - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'hello
'
005-exit.t TEST 5: throw 444 after sending out responses - status code ok got: ''
expected: '200'
005-exit.t TEST 5: throw 444 after sending out responses - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'ok
'
005-exit.t TEST 5: throw 444 after sending out responses - status code ok got: ''
expected: '200'
005-exit.t TEST 5: throw 444 after sending out responses - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'ok
'
005-exit.t TEST 2: throw error after sending the header and partial body - status code ok got: ''
expected: '200'
005-exit.t TEST 2: throw error after sending the header and partial body - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'hi
'
005-exit.t TEST 2: throw error after sending the header and partial body - status code ok got: ''
expected: '200'
005-exit.t TEST 2: throw error after sending the header and partial body - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'hi
'
006-escape.t TEST 11: escape type - status code ok got: ''
expected: '200'
006-escape.t TEST 11: escape type - response_body - response is expected (repeated req 0, req 0) @@ -1,7 +0,0 @@
-https://www.google.com/%3Ft=abc@%20:
-https://www.google.com/%3Ft=abc@%20:
-https%3A%2F%2Fwww.google.com%2F%3Ft%3Dabc%40%20%3A
-https://www.google.com/?t=abc@%20:
-https://www.google.com/?t=abc@%20:
-https://www.google.com/?t=abc@%20:
-https://www.google.com/?t=abc@%20:
'
006-escape.t TEST 11: escape type - status code ok got: ''
expected: '200'
006-escape.t TEST 11: escape type - response_body - response is expected (repeated req 1, req 0) @@ -1,7 +0,0 @@
-https://www.google.com/%3Ft=abc@%20:
-https://www.google.com/%3Ft=abc@%20:
-https%3A%2F%2Fwww.google.com%2F%3Ft%3Dabc%40%20%3A
-https://www.google.com/?t=abc@%20:
-https://www.google.com/?t=abc@%20:
-https://www.google.com/?t=abc@%20:
-https://www.google.com/?t=abc@%20:
'
006-escape.t TEST 8: escape numbers - status code ok got: ''
expected: '200'
006-escape.t TEST 8: escape numbers - response_body - response is expected (repeated req 0, req 0) got: ''
expected: '32
'
006-escape.t TEST 8: escape numbers - status code ok got: ''
expected: '200'
006-escape.t TEST 8: escape numbers - response_body - response is expected (repeated req 1, req 0) got: ''
expected: '32
'
006-escape.t TEST 4: escape uri in content_by_lua - status code ok got: ''
expected: '200'
006-escape.t TEST 4: escape uri in content_by_lua - response_body - response is expected (repeated req 0, req 0) got: ''
expected: '%22a%2Fb%3D%7B%7D%3A%3C%3E%3B%26%5B%5D%5C%5E
'
006-escape.t TEST 4: escape uri in content_by_lua - status code ok got: ''
expected: '200'
006-escape.t TEST 4: escape uri in content_by_lua - response_body - response is expected (repeated req 1, req 0) got: ''
expected: '%22a%2Fb%3D%7B%7D%3A%3C%3E%3B%26%5B%5D%5C%5E
'
006-escape.t TEST 9: unescape nil - status code ok got: ''
expected: '200'
006-escape.t TEST 9: unescape nil - response_body - response is expected (repeated req 0, req 0) got: ''
expected: '[]
'
006-escape.t TEST 9: unescape nil - status code ok got: ''
expected: '200'
006-escape.t TEST 9: unescape nil - response_body - response is expected (repeated req 1, req 0) got: ''
expected: '[]
'
006-escape.t TEST 7: escape nil - status code ok got: ''
expected: '200'
006-escape.t TEST 7: escape nil - response_body - response is expected (repeated req 0, req 0) got: ''
expected: '[]
'
006-escape.t TEST 7: escape nil - status code ok got: ''
expected: '200'
006-escape.t TEST 7: escape nil - response_body - response is expected (repeated req 1, req 0) got: ''
expected: '[]
'
006-escape.t TEST 3: escape uri in content_by_lua - status code ok got: ''
expected: '200'
006-escape.t TEST 3: escape uri in content_by_lua - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'a%2Bb
'
006-escape.t TEST 3: escape uri in content_by_lua - status code ok got: ''
expected: '200'
006-escape.t TEST 3: escape uri in content_by_lua - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'a%2Bb
'
006-escape.t TEST 1: escape uri in content_by_lua - status code ok got: ''
expected: '200'
006-escape.t TEST 1: escape uri in content_by_lua - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'a%20%E4%BD%A0
'
006-escape.t TEST 1: escape uri in content_by_lua - status code ok got: ''
expected: '200'
006-escape.t TEST 1: escape uri in content_by_lua - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'a%20%E4%BD%A0
'
006-escape.t TEST 5: escape a string that cannot be escaped - status code ok got: ''
expected: '200'
006-escape.t TEST 5: escape a string that cannot be escaped - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'abc
'
006-escape.t TEST 5: escape a string that cannot be escaped - status code ok got: ''
expected: '200'
006-escape.t TEST 5: escape a string that cannot be escaped - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'abc
'
006-escape.t TEST 12: escape type error - status code ok got: ''
expected: '200'
006-escape.t TEST 12: escape type error - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 04:53:41 [alert] 481\#0: worker process 705 exited on signal 11" (req 0) 2020/10/27 04:53:41 [debug] 481\#0: shmtx forced unlock
2020/10/27 04:53:41 [debug] 481\#0: wake up, sigio 0
2020/10/27 04:53:41 [debug] 481\#0: reap children
2020/10/27 04:53:41 [debug] 481\#0: child: 0 705 e:0 t:1 d:0 r:1 j:0
2020/10/27 04:53:41 [debug] 481\#0: channel 3:4
2020/10/27 04:53:41 [notice] 481\#0: start worker process 727
2020/10/27 04:53:41 [debug] 481\#0: sigsuspend
2020/10/27 04:53:41 [debug] 727\#0: malloc: 08987808:12
2020/10/27 04:53:41 [debug] 727\#0: malloc: 0898BFD8:8
'
006-escape.t TEST 12: escape type error - status code ok got: ''
expected: '200'
006-escape.t TEST 12: escape type error - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 04:53:41 [alert] 481\#0: worker process 727 exited on signal 11" (req 1) 2020/10/27 04:53:41 [debug] 481\#0: shmtx forced unlock
2020/10/27 04:53:41 [debug] 481\#0: wake up, sigio 0
2020/10/27 04:53:41 [debug] 481\#0: reap children
2020/10/27 04:53:41 [debug] 481\#0: child: 0 727 e:0 t:1 d:0 r:1 j:0
2020/10/27 04:53:41 [debug] 481\#0: channel 3:4
2020/10/27 04:53:41 [notice] 481\#0: start worker process 728
2020/10/27 04:53:41 [debug] 481\#0: sigsuspend
2020/10/27 04:53:41 [debug] 728\#0: malloc: 08987808:12
2020/10/27 04:53:41 [debug] 728\#0: malloc: 0898BFD8:8
'
006-escape.t TEST 13: escape type out of range - status code ok got: ''
expected: '200'
006-escape.t TEST 13: escape type out of range - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 04:53:43 [alert] 481\#0: worker process 735 exited on signal 11" (req 0) 2020/10/27 04:53:43 [debug] 481\#0: shmtx forced unlock
2020/10/27 04:53:43 [debug] 481\#0: wake up, sigio 0
2020/10/27 04:53:43 [debug] 481\#0: reap children
2020/10/27 04:53:43 [debug] 481\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 04:53:43 [debug] 481\#0: child: 1 735 e:0 t:1 d:0 r:1 j:0
2020/10/27 04:53:43 [debug] 481\#0: channel 3:4
2020/10/27 04:53:43 [notice] 481\#0: start worker process 757
2020/10/27 04:53:43 [debug] 481\#0: sigsuspend
2020/10/27 04:53:43 [debug] 757\#0: malloc: 08982FB0:12
'
006-escape.t TEST 13: escape type out of range - status code ok got: ''
expected: '200'
006-escape.t TEST 13: escape type out of range - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 04:53:43 [alert] 481\#0: worker process 757 exited on signal 11" (req 1) 2020/10/27 04:53:43 [debug] 481\#0: shmtx forced unlock
2020/10/27 04:53:43 [debug] 481\#0: wake up, sigio 0
2020/10/27 04:53:43 [debug] 481\#0: reap children
2020/10/27 04:53:43 [debug] 481\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 04:53:43 [debug] 481\#0: child: 1 757 e:0 t:1 d:0 r:1 j:0
2020/10/27 04:53:43 [debug] 481\#0: channel 3:4
2020/10/27 04:53:43 [notice] 481\#0: start worker process 758
2020/10/27 04:53:43 [debug] 481\#0: sigsuspend
2020/10/27 04:53:43 [debug] 758\#0: malloc: 08982FB0:12
'
006-escape.t TEST 6: escape an empty string that cannot be escaped - status code ok got: ''
expected: '200'
006-escape.t TEST 6: escape an empty string that cannot be escaped - response_body - response is expected (repeated req 0, req 0) got: ''
expected: '
'
006-escape.t TEST 6: escape an empty string that cannot be escaped - status code ok got: ''
expected: '200'
006-escape.t TEST 6: escape an empty string that cannot be escaped - response_body - response is expected (repeated req 1, req 0) got: ''
expected: '
'
006-escape.t TEST 2: unescape uri in content_by_lua - status code ok got: ''
expected: '200'
006-escape.t TEST 2: unescape uri in content_by_lua - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'a ä½ 
'
006-escape.t TEST 2: unescape uri in content_by_lua - status code ok got: ''
expected: '200'
006-escape.t TEST 2: unescape uri in content_by_lua - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'a ä½ 
'
006-escape.t TEST 10: unescape numbers - status code ok got: ''
expected: '200'
006-escape.t TEST 10: unescape numbers - response_body - response is expected (repeated req 0, req 0) got: ''
expected: '32
'
006-escape.t TEST 10: unescape numbers - status code ok got: ''
expected: '200'
006-escape.t TEST 10: unescape numbers - response_body - response is expected (repeated req 1, req 0) got: ''
expected: '32
'
006-escape.t TEST 14: escape type error - status code ok got: ''
expected: '200'
006-escape.t TEST 14: escape type error - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 04:53:50 [alert] 481\#0: worker process 859 exited on signal 11" (req 0) 2020/10/27 04:53:50 [debug] 481\#0: shmtx forced unlock
2020/10/27 04:53:50 [debug] 481\#0: wake up, sigio 0
2020/10/27 04:53:50 [debug] 481\#0: reap children
2020/10/27 04:53:50 [debug] 481\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 04:53:50 [debug] 481\#0: child: 1 859 e:0 t:1 d:0 r:1 j:0
2020/10/27 04:53:50 [debug] 481\#0: channel 3:4
2020/10/27 04:53:50 [notice] 481\#0: start worker process 882
2020/10/27 04:53:50 [debug] 481\#0: sigsuspend
2020/10/27 04:53:50 [debug] 882\#0: malloc: 08982FB0:12
'
006-escape.t TEST 14: escape type error - status code ok got: ''
expected: '200'
006-escape.t TEST 14: escape type error - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 04:53:50 [alert] 481\#0: worker process 882 exited on signal 11" (req 1) 2020/10/27 04:53:50 [debug] 481\#0: shmtx forced unlock
2020/10/27 04:53:50 [debug] 481\#0: wake up, sigio 0
2020/10/27 04:53:50 [debug] 481\#0: reap children
2020/10/27 04:53:50 [debug] 481\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 04:53:50 [debug] 481\#0: child: 1 882 e:0 t:1 d:0 r:1 j:0
2020/10/27 04:53:50 [debug] 481\#0: channel 3:4
2020/10/27 04:53:50 [notice] 481\#0: start worker process 883
2020/10/27 04:53:50 [debug] 481\#0: sigsuspend
2020/10/27 04:53:50 [debug] 883\#0: malloc: 08982FB0:12
'
009-log.t TEST 2: test log-level EMERG - status code ok got: ''
expected: '200'
009-log.t TEST 2: test log-level EMERG - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "before log\x{0a}after log\x{0a}"
length: 21
strings begin to differ at char 1 (line 1 column 1)
009-log.t TEST 2: test log-level EMERG - status code ok got: ''
expected: '200'
009-log.t TEST 2: test log-level EMERG - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "before log\x{0a}after log\x{0a}"
length: 21
strings begin to differ at char 1 (line 1 column 1)
009-log.t TEST 10: regression test print() - status code ok got: ''
expected: '200'
009-log.t TEST 10: regression test print() - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "before log\x{0a}after log\x{0a}"
length: 21
strings begin to differ at char 1 (line 1 column 1)
009-log.t TEST 10: regression test print() - status code ok got: ''
expected: '200'
009-log.t TEST 10: regression test print() - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "before log\x{0a}after log\x{0a}"
length: 21
strings begin to differ at char 1 (line 1 column 1)
009-log.t TEST 16: ngx.log in Lua files - status code ok got: ''
expected: '200'
009-log.t TEST 16: ngx.log in Lua files - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "done\x{0a}"
length: 5
strings begin to differ at char 1 (line 1 column 1)
009-log.t TEST 16: ngx.log in Lua files - status code ok got: ''
expected: '200'
009-log.t TEST 16: ngx.log in Lua files - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "done\x{0a}"
length: 5
strings begin to differ at char 1 (line 1 column 1)
009-log.t TEST 3: test log-level ALERT - status code ok got: ''
expected: '200'
009-log.t TEST 3: test log-level ALERT - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "before log\x{0a}after log\x{0a}"
length: 21
strings begin to differ at char 1 (line 1 column 1)
009-log.t TEST 3: test log-level ALERT - status code ok got: ''
expected: '200'
009-log.t TEST 3: test log-level ALERT - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "before log\x{0a}after log\x{0a}"
length: 21
strings begin to differ at char 1 (line 1 column 1)
009-log.t TEST 7: test log-level NOTICE - status code ok got: ''
expected: '200'
009-log.t TEST 7: test log-level NOTICE - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "before log\x{0a}after log\x{0a}"
length: 21
strings begin to differ at char 1 (line 1 column 1)
009-log.t TEST 7: test log-level NOTICE - status code ok got: ''
expected: '200'
009-log.t TEST 7: test log-level NOTICE - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "before log\x{0a}after log\x{0a}"
length: 21
strings begin to differ at char 1 (line 1 column 1)
009-log.t TEST 5: test log-level ERR - status code ok got: ''
expected: '200'
009-log.t TEST 5: test log-level ERR - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "before log\x{0a}after log\x{0a}"
length: 21
strings begin to differ at char 1 (line 1 column 1)
009-log.t TEST 5: test log-level ERR - status code ok got: ''
expected: '200'
009-log.t TEST 5: test log-level ERR - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "before log\x{0a}after log\x{0a}"
length: 21
strings begin to differ at char 1 (line 1 column 1)
009-log.t TEST 18: ngx.log with bad levels (9) - status code ok got: ''
expected: '200'
009-log.t TEST 18: ngx.log with bad levels (9) - status code ok got: ''
expected: '200'
009-log.t TEST 11: print(nil) - status code ok got: ''
expected: '200'
009-log.t TEST 11: print(nil) - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "hi\x{0a}"
length: 3
strings begin to differ at char 1 (line 1 column 1)
009-log.t TEST 11: print(nil) - status code ok got: ''
expected: '200'
009-log.t TEST 11: print(nil) - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "hi\x{0a}"
length: 3
strings begin to differ at char 1 (line 1 column 1)
009-log.t TEST 8: test log-level INFO - status code ok got: ''
expected: '200'
009-log.t TEST 8: test log-level INFO - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "before log\x{0a}after log\x{0a}"
length: 21
strings begin to differ at char 1 (line 1 column 1)
009-log.t TEST 8: test log-level INFO - status code ok got: ''
expected: '200'
009-log.t TEST 8: test log-level INFO - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "before log\x{0a}after log\x{0a}"
length: 21
strings begin to differ at char 1 (line 1 column 1)
009-log.t TEST 19: \0 in the log message - status code ok got: ''
expected: '200'
009-log.t TEST 19: \0 in the log message - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "ok\x{0a}"
length: 3
strings begin to differ at char 1 (line 1 column 1)
009-log.t TEST 19: \0 in the log message - status code ok got: ''
expected: '200'
009-log.t TEST 19: \0 in the log message - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "ok\x{0a}"
length: 3
strings begin to differ at char 1 (line 1 column 1)
009-log.t TEST 1: test log-level STDERR - status code ok got: ''
expected: '200'
009-log.t TEST 1: test log-level STDERR - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "before log\x{0a}after log\x{0a}"
length: 21
strings begin to differ at char 1 (line 1 column 1)
009-log.t TEST 1: test log-level STDERR - status code ok got: ''
expected: '200'
009-log.t TEST 1: test log-level STDERR - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "before log\x{0a}after log\x{0a}"
length: 21
strings begin to differ at char 1 (line 1 column 1)
009-log.t TEST 12: test booleans and nil - status code ok got: ''
expected: '200'
009-log.t TEST 12: test booleans and nil - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "32\x{0a}"
length: 3
strings begin to differ at char 1 (line 1 column 1)
009-log.t TEST 12: test booleans and nil - status code ok got: ''
expected: '200'
009-log.t TEST 12: test booleans and nil - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "32\x{0a}"
length: 3
strings begin to differ at char 1 (line 1 column 1)
009-log.t TEST 9: test log-level DEBUG - status code ok got: ''
expected: '200'
009-log.t TEST 9: test log-level DEBUG - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "before log\x{0a}after log\x{0a}"
length: 21
strings begin to differ at char 1 (line 1 column 1)
009-log.t TEST 9: test log-level DEBUG - status code ok got: ''
expected: '200'
009-log.t TEST 9: test log-level DEBUG - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "before log\x{0a}after log\x{0a}"
length: 21
strings begin to differ at char 1 (line 1 column 1)
009-log.t TEST 15: ngx.log in Lua function tail-calls & inlined lua - status code ok got: ''
expected: '200'
009-log.t TEST 15: ngx.log in Lua function tail-calls & inlined lua - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "done\x{0a}"
length: 5
strings begin to differ at char 1 (line 1 column 1)
009-log.t TEST 15: ngx.log in Lua function tail-calls & inlined lua - status code ok got: ''
expected: '200'
009-log.t TEST 15: ngx.log in Lua function tail-calls & inlined lua - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "done\x{0a}"
length: 5
strings begin to differ at char 1 (line 1 column 1)
009-log.t TEST 14: ngx.log in Lua function calls & inlined lua - status code ok got: ''
expected: '200'
009-log.t TEST 14: ngx.log in Lua function calls & inlined lua - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "done\x{0a}"
length: 5
strings begin to differ at char 1 (line 1 column 1)
009-log.t TEST 14: ngx.log in Lua function calls & inlined lua - status code ok got: ''
expected: '200'
009-log.t TEST 14: ngx.log in Lua function calls & inlined lua - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "done\x{0a}"
length: 5
strings begin to differ at char 1 (line 1 column 1)
009-log.t TEST 6: test log-level WARN - status code ok got: ''
expected: '200'
009-log.t TEST 6: test log-level WARN - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "before log\x{0a}after log\x{0a}"
length: 21
strings begin to differ at char 1 (line 1 column 1)
009-log.t TEST 6: test log-level WARN - status code ok got: ''
expected: '200'
009-log.t TEST 6: test log-level WARN - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "before log\x{0a}after log\x{0a}"
length: 21
strings begin to differ at char 1 (line 1 column 1)
009-log.t TEST 17: ngx.log with bad levels (ngx.ERROR, -1) - status code ok got: ''
expected: '200'
009-log.t TEST 17: ngx.log with bad levels (ngx.ERROR, -1) - status code ok got: ''
expected: '200'
009-log.t TEST 4: test log-level CRIT - status code ok got: ''
expected: '200'
009-log.t TEST 4: test log-level CRIT - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "before log\x{0a}after log\x{0a}"
length: 21
strings begin to differ at char 1 (line 1 column 1)
009-log.t TEST 4: test log-level CRIT - status code ok got: ''
expected: '200'
009-log.t TEST 4: test log-level CRIT - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "before log\x{0a}after log\x{0a}"
length: 21
strings begin to differ at char 1 (line 1 column 1)
009-log.t TEST 13: ngx.log() big data - status code ok got: ''
expected: '200'
009-log.t TEST 13: ngx.log() big data - status code ok got: ''
expected: '200'
014-bugs.t TEST 2: print lua empty strings - status code ok got: ''
expected: '200'
014-bugs.t TEST 2: print lua empty strings - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'Hi'
014-bugs.t TEST 2: print lua empty strings - status code ok got: ''
expected: '200'
014-bugs.t TEST 2: print lua empty strings - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'Hi'
014-bugs.t TEST 2: print lua empty strings - status code ok got: ''
expected: '200'
014-bugs.t TEST 2: print lua empty strings - response_body - response is expected (repeated req 2, req 0) got: ''
expected: 'Hi'
014-bugs.t TEST 1: sanity - status code ok got: ''
expected: '200'
014-bugs.t TEST 1: sanity - status code ok got: ''
expected: '200'
014-bugs.t TEST 1: sanity - status code ok got: ''
expected: '200'
014-bugs.t TEST 5: .lua file of exactly N*1024 bytes (github issue \#385) - status code ok got: ''
expected: '200'
014-bugs.t TEST 5: .lua file of exactly N*1024 bytes (github issue \#385) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'ok
'
014-bugs.t TEST 5: .lua file of exactly N*1024 bytes (github issue \#385) - status code ok got: ''
expected: '200'
014-bugs.t TEST 5: .lua file of exactly N*1024 bytes (github issue \#385) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'ok
'
014-bugs.t TEST 5: .lua file of exactly N*1024 bytes (github issue \#385) - status code ok got: ''
expected: '200'
014-bugs.t TEST 5: .lua file of exactly N*1024 bytes (github issue \#385) - response_body - response is expected (repeated req 2, req 0) got: ''
expected: 'ok
'
014-bugs.t TEST 4: lua_code_cache off + setkeepalive - status code ok got: ''
expected: '200'
014-bugs.t TEST 4: lua_code_cache off + setkeepalive - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'done
'
014-bugs.t TEST 4: lua_code_cache off + setkeepalive - pattern "[error]" should not match any line in error.log but matches line "2020/10/27 04:55:04 [error] 2255\#0: *96 connect() failed (111: Connection refused), client: 127.0.0.1, server: 0.0.0.0:1985" (req 0) 2020/10/27 04:55:04 [debug] 2255\#0: *96 stream lua tcp socket handle connect error
2020/10/27 04:55:04 [debug] 2255\#0: *96 stream lua finalize socket
2020/10/27 04:55:04 [debug] 2255\#0: *96 lua stream cleanup free: 082665E0
2020/10/27 04:55:04 [debug] 2255\#0: *96 lua close socket connection
2020/10/27 04:55:04 [debug] 2255\#0: *96 reusable connection: 0
2020/10/27 04:55:04 [debug] 2255\#0: *96 stream lua tcp socket waking up the current request
2020/10/27 04:55:04 [debug] 2255\#0: *96 lua ngx_stream_lua_content_wev_handler
2020/10/27 04:55:04 [debug] 2255\#0: *96 stream lua tcp operation done, resuming lua thread
2020/10/27 04:55:04 [debug] 2255\#0: *96 stream lua tcp socket calling prepare retvals handler 081677D0, u:B6D9B8B8
'
014-bugs.t TEST 4: lua_code_cache off + setkeepalive - status code ok got: ''
expected: '200'
014-bugs.t TEST 4: lua_code_cache off + setkeepalive - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'done
'
014-bugs.t TEST 4: lua_code_cache off + setkeepalive - pattern "[error]" should not match any line in error.log but matches line "2020/10/27 04:55:05 [error] 2277\#0: *100 connect() failed (111: Connection refused), client: 127.0.0.1, server: 0.0.0.0:1985" (req 1) 2020/10/27 04:55:05 [debug] 2277\#0: *100 stream lua tcp socket handle connect error
2020/10/27 04:55:05 [debug] 2277\#0: *100 stream lua finalize socket
2020/10/27 04:55:05 [debug] 2277\#0: *100 lua stream cleanup free: 0827F3E8
2020/10/27 04:55:05 [debug] 2277\#0: *100 lua close socket connection
2020/10/27 04:55:05 [debug] 2277\#0: *100 reusable connection: 0
2020/10/27 04:55:05 [debug] 2277\#0: *100 stream lua tcp socket waking up the current request
2020/10/27 04:55:05 [debug] 2277\#0: *100 lua ngx_stream_lua_content_wev_handler
2020/10/27 04:55:05 [debug] 2277\#0: *100 stream lua tcp operation done, resuming lua thread
2020/10/27 04:55:05 [debug] 2277\#0: *100 stream lua tcp socket calling prepare retvals handler 081677D0, u:B6D9B670
'
014-bugs.t TEST 4: lua_code_cache off + setkeepalive - status code ok got: ''
expected: '200'
014-bugs.t TEST 4: lua_code_cache off + setkeepalive - response_body - response is expected (repeated req 2, req 0) got: ''
expected: 'done
'
014-bugs.t TEST 4: lua_code_cache off + setkeepalive - pattern "[error]" should not match any line in error.log but matches line "2020/10/27 04:55:05 [error] 2278\#0: *104 connect() failed (111: Connection refused), client: 127.0.0.1, server: 0.0.0.0:1985" (req 2) 2020/10/27 04:55:05 [debug] 2278\#0: *104 stream lua tcp socket handle connect error
2020/10/27 04:55:05 [debug] 2278\#0: *104 stream lua finalize socket
2020/10/27 04:55:05 [debug] 2278\#0: *104 lua stream cleanup free: 0827F3E8
2020/10/27 04:55:05 [debug] 2278\#0: *104 lua close socket connection
2020/10/27 04:55:05 [debug] 2278\#0: *104 reusable connection: 0
2020/10/27 04:55:05 [debug] 2278\#0: *104 stream lua tcp socket waking up the current request
2020/10/27 04:55:05 [debug] 2278\#0: *104 lua ngx_stream_lua_content_wev_handler
2020/10/27 04:55:05 [debug] 2278\#0: *104 stream lua tcp operation done, resuming lua thread
2020/10/27 04:55:05 [debug] 2278\#0: *104 stream lua tcp socket calling prepare retvals handler 081677D0, u:B6D9C0E8
'
014-bugs.t TEST 3: say lua empty strings - status code ok got: ''
expected: '200'
014-bugs.t TEST 3: say lua empty strings - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-
-Hi'
014-bugs.t TEST 3: say lua empty strings - status code ok got: ''
expected: '200'
014-bugs.t TEST 3: say lua empty strings - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-
-Hi'
014-bugs.t TEST 3: say lua empty strings - status code ok got: ''
expected: '200'
014-bugs.t TEST 3: say lua empty strings - response_body - response is expected (repeated req 2, req 0) @@ -1,2 +0,0 @@
-
-Hi'
019-const.t TEST 1: sanity - status code ok got: ''
expected: '200'
019-const.t TEST 1: sanity - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "0\x{0a}-2\x{0a}-4\x{0a}-1\x{0a}-5\x{0a}"
length: 14
strings begin to differ at char 1 (line 1 column 1)
019-const.t TEST 1: sanity - status code ok got: ''
expected: '200'
019-const.t TEST 1: sanity - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "0\x{0a}-2\x{0a}-4\x{0a}-1\x{0a}-5\x{0a}"
length: 14
strings begin to differ at char 1 (line 1 column 1)
023-preread/client-abort.t TEST 10: cosocket + stop - status code ok got: ''
expected: '200'
023-preread/client-abort.t TEST 10: cosocket + stop - pattern "client prematurely closed connection" should match a line in error.log (req 0)
023-preread/client-abort.t TEST 10: cosocket + stop - pattern "[error]" should not match any line in error.log but matches line "2020/10/27 04:55:13 [error] 2368\#0: *59 connect() failed (111: Connection refused) while prereading client data, client: 127.0.0.1, server: 0.0.0.0:1985" (req 0) 2020/10/27 04:55:13 [debug] 2368\#0: *59 stream lua tcp socket handle connect error
2020/10/27 04:55:13 [debug] 2368\#0: *59 stream lua finalize socket
2020/10/27 04:55:13 [debug] 2368\#0: *59 lua stream cleanup free: 090150C0
2020/10/27 04:55:13 [debug] 2368\#0: *59 lua close socket connection
2020/10/27 04:55:13 [debug] 2368\#0: *59 reusable connection: 0
2020/10/27 04:55:13 [debug] 2368\#0: *59 stream lua tcp socket waking up the current request
2020/10/27 04:55:13 [debug] 2368\#0: *59 lua session run phases: "09003700"
2020/10/27 04:55:13 [debug] 2368\#0: *59 lua preread handler
2020/10/27 04:55:13 [debug] 2368\#0: *59 stream lua tcp operation done, resuming lua thread
'
023-preread/client-abort.t TEST 10: cosocket + stop - pattern "[error]" should not match any line in error.log but matches line "2020/10/27 04:55:13 [error] 2368\#0: *59 stream [lua] preread_by_lua(nginx.conf:51):10: failed to connect: connection refused while prereading client data, client: 127.0.0.1, server: 0.0.0.0:1985" (req 0) 2020/10/27 04:55:13 [debug] 2368\#0: *59 lua resume returned 0
2020/10/27 04:55:13 [debug] 2368\#0: *59 lua light thread ended normally
2020/10/27 04:55:13 [debug] 2368\#0: *59 lua deleting light thread
2020/10/27 04:55:13 [debug] 2368\#0: *59 stream lua run thread returned 0
2020/10/27 04:55:13 [debug] 2368\#0: *59 tcp_nodelay
2020/10/27 04:55:13 [debug] 2368\#0: *59 stream lua content handler
2020/10/27 04:55:13 [debug] 2368\#0: *59 looking up Lua code cache with key '=content_by_lua(nginx.conf:53)nhli_e70c4df10ef0983b9c8c31bd06b2a2c3'
2020/10/27 04:55:13 [debug] 2368\#0: *59 lua reset ctx
2020/10/27 04:55:13 [debug] 2368\#0: *59 lua creating new thread
'
023-preread/client-abort.t TEST 10: cosocket + stop - status code ok got: ''
expected: '200'
023-preread/client-abort.t TEST 10: cosocket + stop - pattern "client prematurely closed connection" should match a line in error.log (req 1)
023-preread/client-abort.t TEST 10: cosocket + stop - pattern "[error]" should not match any line in error.log but matches line "2020/10/27 04:55:14 [error] 2390\#0: *63 connect() failed (111: Connection refused) while prereading client data, client: 127.0.0.1, server: 0.0.0.0:1985" (req 1) 2020/10/27 04:55:14 [debug] 2390\#0: *63 stream lua tcp socket handle connect error
2020/10/27 04:55:14 [debug] 2390\#0: *63 stream lua finalize socket
2020/10/27 04:55:14 [debug] 2390\#0: *63 lua stream cleanup free: 090150C0
2020/10/27 04:55:14 [debug] 2390\#0: *63 lua close socket connection
2020/10/27 04:55:14 [debug] 2390\#0: *63 reusable connection: 0
2020/10/27 04:55:14 [debug] 2390\#0: *63 stream lua tcp socket waking up the current request
2020/10/27 04:55:14 [debug] 2390\#0: *63 lua session run phases: "09003700"
2020/10/27 04:55:14 [debug] 2390\#0: *63 lua preread handler
2020/10/27 04:55:14 [debug] 2390\#0: *63 stream lua tcp operation done, resuming lua thread
'
023-preread/client-abort.t TEST 10: cosocket + stop - pattern "[error]" should not match any line in error.log but matches line "2020/10/27 04:55:14 [error] 2390\#0: *63 stream [lua] preread_by_lua(nginx.conf:51):10: failed to connect: connection refused while prereading client data, client: 127.0.0.1, server: 0.0.0.0:1985" (req 1) 2020/10/27 04:55:14 [debug] 2390\#0: *63 lua resume returned 0
2020/10/27 04:55:14 [debug] 2390\#0: *63 lua light thread ended normally
2020/10/27 04:55:14 [debug] 2390\#0: *63 lua deleting light thread
2020/10/27 04:55:14 [debug] 2390\#0: *63 stream lua run thread returned 0
2020/10/27 04:55:14 [debug] 2390\#0: *63 tcp_nodelay
2020/10/27 04:55:14 [debug] 2390\#0: *63 stream lua content handler
2020/10/27 04:55:14 [debug] 2390\#0: *63 looking up Lua code cache with key '=content_by_lua(nginx.conf:53)nhli_e70c4df10ef0983b9c8c31bd06b2a2c3'
2020/10/27 04:55:14 [debug] 2390\#0: *63 lua reset ctx
2020/10/27 04:55:14 [debug] 2390\#0: *63 lua creating new thread
'
023-preread/exit.t TEST 1: throw 500 - status code ok got: ''
expected: '200'
023-preread/exit.t TEST 1: throw 500 - status code ok got: ''
expected: '200'
023-preread/exit.t TEST 2: throw 0 - status code ok got: ''
expected: '200'
023-preread/exit.t TEST 2: throw 0 - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'Hi
'
023-preread/exit.t TEST 2: throw 0 - status code ok got: ''
expected: '200'
023-preread/exit.t TEST 2: throw 0 - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'Hi
'
023-preread/req-socket.t TEST 3: receive until on request_body - receiveuntil(1) on the last byte of the body - status code ok got: ''
expected: '200'
023-preread/req-socket.t TEST 3: receive until on request_body - receiveuntil(1) on the last byte of the body - response_body - response is expected (repeated req 0, req 0) @@ -1,5 +0,0 @@
-got the request socket
-received: -----------------------------820127721219505131303151179
-received len: 8192
-received: $
-done
'
023-preread/req-socket.t TEST 3: receive until on request_body - receiveuntil(1) on the last byte of the body - status code ok got: ''
expected: '200'
023-preread/req-socket.t TEST 3: receive until on request_body - receiveuntil(1) on the last byte of the body - response_body - response is expected (repeated req 1, req 0) @@ -1,5 +0,0 @@
-got the request socket
-received: -----------------------------820127721219505131303151179
-received len: 8192
-received: $
-done
'
023-preread/req-socket.t TEST 2: attempt to use the req socket across request boundary - status code ok got: ''
expected: '200'
023-preread/req-socket.t TEST 2: attempt to use the req socket across request boundary - response_body_like - response is expected () ''
doesn't match '(?^s:(?:got the request socket
|failed to receive: closed [d]
)?done
)'
023-preread/req-socket.t TEST 2: attempt to use the req socket across request boundary - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 04:55:49 [alert] 2722\#0: worker process 2733 exited on signal 11" (req 0) 2020/10/27 04:55:49 [debug] 2722\#0: shmtx forced unlock
2020/10/27 04:55:49 [debug] 2722\#0: wake up, sigio 0
2020/10/27 04:55:49 [debug] 2722\#0: reap children
2020/10/27 04:55:49 [debug] 2722\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 04:55:49 [debug] 2722\#0: child: 1 2733 e:0 t:1 d:0 r:1 j:0
2020/10/27 04:55:49 [debug] 2722\#0: channel 3:4
2020/10/27 04:55:49 [notice] 2722\#0: start worker process 2755
2020/10/27 04:55:49 [debug] 2722\#0: sigsuspend
2020/10/27 04:55:49 [debug] 2755\#0: malloc: 09E1FFB0:12
'
023-preread/req-socket.t TEST 2: attempt to use the req socket across request boundary - status code ok got: ''
expected: '200'
023-preread/req-socket.t TEST 2: attempt to use the req socket across request boundary - response_body_like - response is expected () ''
doesn't match '(?^s:(?:got the request socket
|failed to receive: closed [d]
)?done
)'
023-preread/req-socket.t TEST 2: attempt to use the req socket across request boundary - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 04:55:50 [alert] 2722\#0: worker process 2755 exited on signal 11" (req 1) 2020/10/27 04:55:50 [debug] 2722\#0: shmtx forced unlock
2020/10/27 04:55:50 [debug] 2722\#0: wake up, sigio 0
2020/10/27 04:55:50 [debug] 2722\#0: reap children
2020/10/27 04:55:50 [debug] 2722\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 04:55:50 [debug] 2722\#0: child: 1 2755 e:0 t:1 d:0 r:1 j:0
2020/10/27 04:55:50 [debug] 2722\#0: channel 3:4
2020/10/27 04:55:50 [notice] 2722\#0: start worker process 2756
2020/10/27 04:55:50 [debug] 2722\#0: sigsuspend
2020/10/27 04:55:50 [debug] 2756\#0: malloc: 09E1FFB0:12
'
023-preread/req-socket.t TEST 6: peeking preread buffer - status code ok got: ''
expected: '200'
023-preread/req-socket.t TEST 6: peeking preread buffer - response_body - response is expected (repeated req 0, req 0) @@ -1,5 +0,0 @@
-got the request socket
-received: hello
-received: hello worl
-got the request socket
-done
'
023-preread/req-socket.t TEST 6: peeking preread buffer - pattern "upstream received: hello world" should match a line in error.log (req 0)
023-preread/req-socket.t TEST 6: peeking preread buffer - status code ok got: ''
expected: '200'
023-preread/req-socket.t TEST 6: peeking preread buffer - response_body - response is expected (repeated req 1, req 0) @@ -1,5 +0,0 @@
-got the request socket
-received: hello
-received: hello worl
-got the request socket
-done
'
023-preread/req-socket.t TEST 6: peeking preread buffer - pattern "upstream received: hello world" should match a line in error.log (req 1)
023-preread/req-socket.t TEST 4: read from preread buffer - status code ok got: ''
expected: '200'
023-preread/req-socket.t TEST 4: read from preread buffer - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-got the request socket
-received: hello
-received: worl
-received: d
'
023-preread/req-socket.t TEST 4: read from preread buffer - status code ok got: ''
expected: '200'
023-preread/req-socket.t TEST 4: read from preread buffer - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +0,0 @@
-got the request socket
-received: hello
-received: worl
-received: d
'
023-preread/req-socket.t TEST 9: peek in wrong phase - status code ok got: ''
expected: '200'
023-preread/req-socket.t TEST 9: peek in wrong phase - status code ok got: ''
expected: '200'
023-preread/req-socket.t TEST 11: peek before and after receive - status code ok got: ''
expected: '200'
023-preread/req-socket.t TEST 11: peek before and after receive - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-got the request socket
-received: hello
-received: hello world
'
023-preread/req-socket.t TEST 11: peek before and after receive - pattern "attempt to peek on a consumed socket" should match a line in error.log (req 0)
023-preread/req-socket.t TEST 11: peek before and after receive - status code ok got: ''
expected: '200'
023-preread/req-socket.t TEST 11: peek before and after receive - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-got the request socket
-received: hello
-received: hello world
'
023-preread/req-socket.t TEST 11: peek before and after receive - pattern "attempt to peek on a consumed socket" should match a line in error.log (req 1)
023-preread/req-socket.t TEST 1: sanity - status code ok got: ''
expected: '200'
023-preread/req-socket.t TEST 1: sanity - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-got the request socket
-received: hello
-received: worl
-received: d
'
023-preread/req-socket.t TEST 1: sanity - status code ok got: ''
expected: '200'
023-preread/req-socket.t TEST 1: sanity - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +0,0 @@
-got the request socket
-received: hello
-received: worl
-received: d
'
023-preread/req-socket.t TEST 12: peek works with other preread handlers - status code ok got: ''
expected: '200'
023-preread/req-socket.t TEST 12: peek works with other preread handlers - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'done'
023-preread/req-socket.t TEST 12: peek works with other preread handlers - status code ok got: ''
expected: '200'
023-preread/req-socket.t TEST 12: peek works with other preread handlers - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'done'
023-preread/req-socket.t TEST 7: peeking preread buffer, buffer size is small - status code ok got: ''
expected: '200'
023-preread/req-socket.t TEST 7: peeking preread buffer, buffer size is small - status code ok got: ''
expected: '200'
023-preread/req-socket.t TEST 10: peek busy reading - status code ok got: ''
expected: '200'
023-preread/req-socket.t TEST 10: peek busy reading - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-got the request socket
-failed to receive: socket busy reading
-done'
023-preread/req-socket.t TEST 10: peek busy reading - status code ok got: ''
expected: '200'
023-preread/req-socket.t TEST 10: peek busy reading - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-got the request socket
-failed to receive: socket busy reading
-done'
023-preread/req-socket.t TEST 8: peeking preread buffer, timedout - status code ok got: ''
expected: '200'
023-preread/req-socket.t TEST 8: peeking preread buffer, timedout - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'received: hello
'
023-preread/req-socket.t TEST 8: peeking preread buffer, timedout - pattern "finalize stream session: 200" should match a line in error.log (req 0)
023-preread/req-socket.t TEST 8: peeking preread buffer, timedout - status code ok got: ''
expected: '200'
023-preread/req-socket.t TEST 8: peeking preread buffer, timedout - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'received: hello
'
023-preread/req-socket.t TEST 8: peeking preread buffer, timedout - pattern "finalize stream session: 200" should match a line in error.log (req 1)
023-preread/req-socket.t TEST 5: small preread buffer - status code ok got: ''
expected: '200'
023-preread/req-socket.t TEST 5: small preread buffer - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-got the request socket
-received: hello
-received: worl
-received: d
'
023-preread/req-socket.t TEST 5: small preread buffer - status code ok got: ''
expected: '200'
023-preread/req-socket.t TEST 5: small preread buffer - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +0,0 @@
-got the request socket
-received: hello
-received: worl
-received: d
'
023-preread/sanity.t TEST 13: phase postponing works - status code ok got: ''
expected: '200'
023-preread/sanity.t TEST 13: phase postponing works - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "done"
length: 4
strings begin to differ at char 1 (line 1 column 1)
023-preread/sanity.t TEST 13: phase postponing works - status code ok got: ''
expected: '200'
023-preread/sanity.t TEST 13: phase postponing works - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "done"
length: 4
strings begin to differ at char 1 (line 1 column 1)
023-preread/sanity.t TEST 4: variable - status code ok got: ''
expected: '200'
023-preread/sanity.t TEST 4: variable - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "remote_addr: 127.0.0.1\x{0a}"
length: 23
strings begin to differ at char 1 (line 1 column 1)
023-preread/sanity.t TEST 4: variable - status code ok got: ''
expected: '200'
023-preread/sanity.t TEST 4: variable - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "remote_addr: 127.0.0.1\x{0a}"
length: 23
strings begin to differ at char 1 (line 1 column 1)
023-preread/sanity.t TEST 2: basic say - status code ok got: ''
expected: '200'
023-preread/sanity.t TEST 2: basic say - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "Hello, Lua!\x{0a}Yay! 123\x{0a}"
length: 21
strings begin to differ at char 1 (line 1 column 1)
023-preread/sanity.t TEST 2: basic say - status code ok got: ''
expected: '200'
023-preread/sanity.t TEST 2: basic say - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "Hello, Lua!\x{0a}Yay! 123\x{0a}"
length: 21
strings begin to differ at char 1 (line 1 column 1)
023-preread/sanity.t TEST 11: short circuit - status code ok got: ''
expected: '200'
023-preread/sanity.t TEST 11: short circuit - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "Hi\x{0a}"
length: 3
strings begin to differ at char 1 (line 1 column 1)
023-preread/sanity.t TEST 11: short circuit - status code ok got: ''
expected: '200'
023-preread/sanity.t TEST 11: short circuit - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "Hi\x{0a}"
length: 3
strings begin to differ at char 1 (line 1 column 1)
023-preread/sanity.t TEST 12: nginx vars in script path - status code ok got: ''
expected: '200'
023-preread/sanity.t TEST 12: nginx vars in script path - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "Hi\x{0a}"
length: 3
strings begin to differ at char 1 (line 1 column 1)
023-preread/sanity.t TEST 12: nginx vars in script path - status code ok got: ''
expected: '200'
023-preread/sanity.t TEST 12: nginx vars in script path - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "Hi\x{0a}"
length: 3
strings begin to differ at char 1 (line 1 column 1)
023-preread/sanity.t TEST 9: nginx quote sql string 2 - status code ok got: ''
expected: '200'
023-preread/sanity.t TEST 9: nginx quote sql string 2 - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "'hello\n\r\'\"\\'\x{0a}"
length: 18
strings begin to differ at char 1 (line 1 column 1)
023-preread/sanity.t TEST 9: nginx quote sql string 2 - status code ok got: ''
expected: '200'
023-preread/sanity.t TEST 9: nginx quote sql string 2 - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "'hello\n\r\'\"\\'\x{0a}"
length: 18
strings begin to differ at char 1 (line 1 column 1)
023-preread/sanity.t TEST 3: no ngx.echo - status code ok got: ''
expected: '200'
023-preread/sanity.t TEST 3: no ngx.echo - status code ok got: ''
expected: '200'
023-preread/sanity.t TEST 1: basic print - status code ok got: ''
expected: '200'
023-preread/sanity.t TEST 1: basic print - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "Hello, Lua!\x{0a}"
length: 12
strings begin to differ at char 1 (line 1 column 1)
023-preread/sanity.t TEST 1: basic print - status code ok got: ''
expected: '200'
023-preread/sanity.t TEST 1: basic print - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "Hello, Lua!\x{0a}"
length: 12
strings begin to differ at char 1 (line 1 column 1)
023-preread/sanity.t TEST 8: nginx quote sql string 1 - status code ok got: ''
expected: '200'
023-preread/sanity.t TEST 8: nginx quote sql string 1 - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "'hello\n\r\'\"\\'\x{0a}"
length: 18
strings begin to differ at char 1 (line 1 column 1)
023-preread/sanity.t TEST 8: nginx quote sql string 1 - status code ok got: ''
expected: '200'
023-preread/sanity.t TEST 8: nginx quote sql string 1 - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "'hello\n\r\'\"\\'\x{0a}"
length: 18
strings begin to differ at char 1 (line 1 column 1)
023-preread/sanity.t TEST 5: variable (file) - status code ok got: ''
expected: '200'
023-preread/sanity.t TEST 5: variable (file) - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "remote_addr: 127.0.0.1\x{0a}"
length: 23
strings begin to differ at char 1 (line 1 column 1)
023-preread/sanity.t TEST 5: variable (file) - status code ok got: ''
expected: '200'
023-preread/sanity.t TEST 5: variable (file) - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "remote_addr: 127.0.0.1\x{0a}"
length: 23
strings begin to differ at char 1 (line 1 column 1)
023-preread/sanity.t TEST 14: Lua file does not exist - status code ok got: ''
expected: '200'
023-preread/sanity.t TEST 14: Lua file does not exist - status code ok got: ''
expected: '200'
023-preread/sanity.t TEST 6: nil is "nil" - status code ok got: ''
expected: '200'
023-preread/sanity.t TEST 6: nil is "nil" - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "nil\x{0a}"
length: 4
strings begin to differ at char 1 (line 1 column 1)
023-preread/sanity.t TEST 6: nil is "nil" - status code ok got: ''
expected: '200'
023-preread/sanity.t TEST 6: nil is "nil" - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "nil\x{0a}"
length: 4
strings begin to differ at char 1 (line 1 column 1)
023-preread/sanity.t TEST 7: write boolean - status code ok got: ''
expected: '200'
023-preread/sanity.t TEST 7: write boolean - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "true false\x{0a}"
length: 11
strings begin to differ at char 1 (line 1 column 1)
023-preread/sanity.t TEST 7: write boolean - status code ok got: ''
expected: '200'
023-preread/sanity.t TEST 7: write boolean - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "true false\x{0a}"
length: 11
strings begin to differ at char 1 (line 1 column 1)
023-preread/sanity.t TEST 10: use dollar - status code ok got: ''
expected: '200'
023-preread/sanity.t TEST 10: use dollar - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "79\x{0a}"
length: 3
strings begin to differ at char 1 (line 1 column 1)
023-preread/sanity.t TEST 10: use dollar - status code ok got: ''
expected: '200'
023-preread/sanity.t TEST 10: use dollar - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "79\x{0a}"
length: 3
strings begin to differ at char 1 (line 1 column 1)
023-preread/sleep.t TEST 3: sleep 0.5 - multi-times - status code ok got: ''
expected: '200'
023-preread/sleep.t TEST 3: sleep 0.5 - multi-times - response_body_like - response is expected () ''
doesn't match '(?^s:^0\.(?:8[5-9]\d*|9[0-9]\d*|9)$)'
023-preread/sleep.t TEST 3: sleep 0.5 - multi-times - status code ok got: ''
expected: '200'
023-preread/sleep.t TEST 3: sleep 0.5 - multi-times - response_body_like - response is expected () ''
doesn't match '(?^s:^0\.(?:8[5-9]\d*|9[0-9]\d*|9)$)'
023-preread/sleep.t TEST 1: sleep 0.5 - status code ok got: ''
expected: '200'
023-preread/sleep.t TEST 1: sleep 0.5 - response_body_like - response is expected () ''
doesn't match '(?^s:^0\.(?:4[5-9]\d*|5[0-9]\d*|5)$)'
023-preread/sleep.t TEST 1: sleep 0.5 - status code ok got: ''
expected: '200'
023-preread/sleep.t TEST 1: sleep 0.5 - response_body_like - response is expected () ''
doesn't match '(?^s:^0\.(?:4[5-9]\d*|5[0-9]\d*|5)$)'
023-preread/sleep.t TEST 5: sleep 0.5 - interleaved by ngx.say() - not ended by ngx.sleep - status code ok got: ''
expected: '200'
023-preread/sleep.t TEST 5: sleep 0.5 - interleaved by ngx.say() - not ended by ngx.sleep - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "blah\x{0a}hiya\x{0a}"
length: 10
strings begin to differ at char 1 (line 1 column 1)
023-preread/sleep.t TEST 5: sleep 0.5 - interleaved by ngx.say() - not ended by ngx.sleep - status code ok got: ''
expected: '200'
023-preread/sleep.t TEST 5: sleep 0.5 - interleaved by ngx.say() - not ended by ngx.sleep - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "blah\x{0a}hiya\x{0a}"
length: 10
strings begin to differ at char 1 (line 1 column 1)
023-preread/sleep.t TEST 4: sleep 0.5 - interleaved by ngx.say() - ended by ngx.sleep - status code ok got: ''
expected: '200'
023-preread/sleep.t TEST 4: sleep 0.5 - interleaved by ngx.say() - ended by ngx.sleep - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "blah\x{0a}"
length: 5
strings begin to differ at char 1 (line 1 column 1)
023-preread/sleep.t TEST 4: sleep 0.5 - interleaved by ngx.say() - ended by ngx.sleep - status code ok got: ''
expected: '200'
023-preread/sleep.t TEST 4: sleep 0.5 - interleaved by ngx.say() - ended by ngx.sleep - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "blah\x{0a}"
length: 5
strings begin to differ at char 1 (line 1 column 1)
023-preread/sleep.t TEST 2: sleep ag - status code ok got: ''
expected: '200'
023-preread/sleep.t TEST 2: sleep ag - status code ok got: ''
expected: '200'
023-preread/socket-keepalive.t TEST 1: sanity - status code ok got: ''
expected: '200'
023-preread/socket-keepalive.t TEST 1: sanity - response_body_like - response is expected () ''
doesn't match '(?^s:^connected: 1, reused: \d+
request sent: 11
received: OK
connected: 1, reused: [1-9]\d*
request sent: 11
received: OK
)'
023-preread/socket-keepalive.t TEST 1: sanity - grep_error_log_out (req 0) @@ -1,2 +0,0 @@
-lua tcp socket keepalive create connection pool for key "127.0.0.1:11211"
-lua tcp socket get keepalive peer: using connection
'
023-preread/socket-keepalive.t TEST 1: sanity - status code ok got: ''
expected: '200'
023-preread/socket-keepalive.t TEST 1: sanity - response_body_like - response is expected () ''
doesn't match '(?^s:^connected: 1, reused: \d+
request sent: 11
received: OK
connected: 1, reused: [1-9]\d*
request sent: 11
received: OK
)'
023-preread/socket-keepalive.t TEST 1: sanity - grep_error_log_out (req 1) @@ -1,2 +0,0 @@
-lua tcp socket get keepalive peer: using connection
-lua tcp socket get keepalive peer: using connection
'
023-preread/socket-keepalive.t TEST 2: free up the whole connection pool if no active connections - status code ok got: ''
expected: '200'
023-preread/socket-keepalive.t TEST 2: free up the whole connection pool if no active connections - response_body_like - response is expected () ''
doesn't match '(?^s:^connected: 1, reused: \d+
request sent: 11
received: OK
connected: 1, reused: [1-9]\d*
request sent: 11
received: OK
)'
023-preread/socket-keepalive.t TEST 2: free up the whole connection pool if no active connections - pattern "lua tcp socket get keepalive peer: using connection" should match a line in error.log (req 0)
023-preread/socket-keepalive.t TEST 2: free up the whole connection pool if no active connections - pattern "lua tcp socket keepalive: free connection pool for " should match a line in error.log (req 0)
023-preread/socket-keepalive.t TEST 2: free up the whole connection pool if no active connections - status code ok got: ''
expected: '200'
023-preread/socket-keepalive.t TEST 2: free up the whole connection pool if no active connections - response_body_like - response is expected () ''
doesn't match '(?^s:^connected: 1, reused: \d+
request sent: 11
received: OK
connected: 1, reused: [1-9]\d*
request sent: 11
received: OK
)'
023-preread/socket-keepalive.t TEST 2: free up the whole connection pool if no active connections - pattern "lua tcp socket get keepalive peer: using connection" should match a line in error.log (req 1)
023-preread/socket-keepalive.t TEST 2: free up the whole connection pool if no active connections - pattern "lua tcp socket keepalive: free connection pool for " should match a line in error.log (req 1)
023-preread/tcp-socket-timeout.t TEST 15: -1 is bad timeout value - status code ok got: ''
expected: '200'
023-preread/tcp-socket-timeout.t TEST 15: -1 is bad timeout value - status code ok got: ''
expected: '200'
023-preread/tcp-socket-timeout.t TEST 6: lua_socket_read_timeout only - status code ok got: ''
expected: '200'
023-preread/tcp-socket-timeout.t TEST 6: lua_socket_read_timeout only - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'connected: 1
failed to receive: timeout
'
023-preread/tcp-socket-timeout.t TEST 6: lua_socket_read_timeout only - pattern "lua tcp socket read timed out" should match a line in error.log (req 0)
023-preread/tcp-socket-timeout.t TEST 6: lua_socket_read_timeout only - status code ok got: ''
expected: '200'
023-preread/tcp-socket-timeout.t TEST 6: lua_socket_read_timeout only - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'connected: 1
failed to receive: timeout
'
023-preread/tcp-socket-timeout.t TEST 6: lua_socket_read_timeout only - pattern "lua tcp socket read timed out" should match a line in error.log (req 1)
023-preread/tcp-socket-timeout.t TEST 5: -1 is bad timeout value - status code ok got: ''
expected: '200'
023-preread/tcp-socket-timeout.t TEST 5: -1 is bad timeout value - status code ok got: ''
expected: '200'
023-preread/tcp-socket-timeout.t TEST 8: sock:settimeout(nil) does not override lua_socket_read_timeout - status code ok got: ''
expected: '200'
023-preread/tcp-socket-timeout.t TEST 8: sock:settimeout(nil) does not override lua_socket_read_timeout - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'connected: 1
failed to receive: timeout
'
023-preread/tcp-socket-timeout.t TEST 8: sock:settimeout(nil) does not override lua_socket_read_timeout - pattern "lua tcp socket read timed out" should match a line in error.log (req 0)
023-preread/tcp-socket-timeout.t TEST 8: sock:settimeout(nil) does not override lua_socket_read_timeout - status code ok got: ''
expected: '200'
023-preread/tcp-socket-timeout.t TEST 8: sock:settimeout(nil) does not override lua_socket_read_timeout - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'connected: 1
failed to receive: timeout
'
023-preread/tcp-socket-timeout.t TEST 8: sock:settimeout(nil) does not override lua_socket_read_timeout - pattern "lua tcp socket read timed out" should match a line in error.log (req 1)
023-preread/tcp-socket-timeout.t TEST 1: lua_socket_connect_timeout only - status code ok got: ''
expected: '200'
023-preread/tcp-socket-timeout.t TEST 1: lua_socket_connect_timeout only - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'failed to connect: timeout
'
023-preread/tcp-socket-timeout.t TEST 1: lua_socket_connect_timeout only - status code ok got: ''
expected: '200'
023-preread/tcp-socket-timeout.t TEST 1: lua_socket_connect_timeout only - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'failed to connect: timeout
'
023-preread/tcp-socket-timeout.t TEST 14: sock:settimeout(0) does not override lua_socket_send_timeout - status code ok got: ''
expected: '200'
023-preread/tcp-socket-timeout.t TEST 14: sock:settimeout(0) does not override lua_socket_send_timeout - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'connected: 1
failed to send: timeout
'
023-preread/tcp-socket-timeout.t TEST 14: sock:settimeout(0) does not override lua_socket_send_timeout - pattern "lua tcp socket write timed out" should match a line in error.log (req 0)
023-preread/tcp-socket-timeout.t TEST 14: sock:settimeout(0) does not override lua_socket_send_timeout - status code ok got: ''
expected: '200'
023-preread/tcp-socket-timeout.t TEST 14: sock:settimeout(0) does not override lua_socket_send_timeout - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'connected: 1
failed to send: timeout
'
023-preread/tcp-socket-timeout.t TEST 14: sock:settimeout(0) does not override lua_socket_send_timeout - pattern "lua tcp socket write timed out" should match a line in error.log (req 1)
023-preread/tcp-socket-timeout.t TEST 9: sock:settimeout(0) does not override lua_socket_read_timeout - status code ok got: ''
expected: '200'
023-preread/tcp-socket-timeout.t TEST 9: sock:settimeout(0) does not override lua_socket_read_timeout - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'connected: 1
failed to receive: timeout
'
023-preread/tcp-socket-timeout.t TEST 9: sock:settimeout(0) does not override lua_socket_read_timeout - pattern "lua tcp socket read timed out" should match a line in error.log (req 0)
023-preread/tcp-socket-timeout.t TEST 9: sock:settimeout(0) does not override lua_socket_read_timeout - status code ok got: ''
expected: '200'
023-preread/tcp-socket-timeout.t TEST 9: sock:settimeout(0) does not override lua_socket_read_timeout - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'connected: 1
failed to receive: timeout
'
023-preread/tcp-socket-timeout.t TEST 9: sock:settimeout(0) does not override lua_socket_read_timeout - pattern "lua tcp socket read timed out" should match a line in error.log (req 1)
023-preread/tcp-socket-timeout.t TEST 13: sock:settimeout(nil) does not override lua_socket_send_timeout - status code ok got: ''
expected: '200'
023-preread/tcp-socket-timeout.t TEST 13: sock:settimeout(nil) does not override lua_socket_send_timeout - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'connected: 1
failed to send: timeout
'
023-preread/tcp-socket-timeout.t TEST 13: sock:settimeout(nil) does not override lua_socket_send_timeout - pattern "lua tcp socket write timed out" should match a line in error.log (req 0)
023-preread/tcp-socket-timeout.t TEST 13: sock:settimeout(nil) does not override lua_socket_send_timeout - status code ok got: ''
expected: '200'
023-preread/tcp-socket-timeout.t TEST 13: sock:settimeout(nil) does not override lua_socket_send_timeout - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'connected: 1
failed to send: timeout
'
023-preread/tcp-socket-timeout.t TEST 13: sock:settimeout(nil) does not override lua_socket_send_timeout - pattern "lua tcp socket write timed out" should match a line in error.log (req 1)
023-preread/tcp-socket-timeout.t TEST 4: sock:settimeout(0) does not override lua_socket_connect_timeout - status code ok got: ''
expected: '200'
023-preread/tcp-socket-timeout.t TEST 4: sock:settimeout(0) does not override lua_socket_connect_timeout - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'failed to connect: timeout
'
023-preread/tcp-socket-timeout.t TEST 4: sock:settimeout(0) does not override lua_socket_connect_timeout - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 04:57:38 [alert] 3649\#0: worker process 3881 exited on signal 11" (req 0) 2020/10/27 04:57:38 [debug] 3649\#0: shmtx forced unlock
2020/10/27 04:57:38 [debug] 3649\#0: wake up, sigio 0
2020/10/27 04:57:38 [debug] 3649\#0: reap children
2020/10/27 04:57:38 [debug] 3649\#0: child: 0 3881 e:0 t:1 d:0 r:1 j:0
2020/10/27 04:57:38 [debug] 3649\#0: channel 3:4
2020/10/27 04:57:38 [notice] 3649\#0: start worker process 3902
2020/10/27 04:57:38 [debug] 3649\#0: sigsuspend
2020/10/27 04:57:38 [debug] 3902\#0: malloc: 09D2F8A8:12
2020/10/27 04:57:38 [debug] 3902\#0: malloc: 09D340C8:8
'
023-preread/tcp-socket-timeout.t TEST 4: sock:settimeout(0) does not override lua_socket_connect_timeout - status code ok got: ''
expected: '200'
023-preread/tcp-socket-timeout.t TEST 4: sock:settimeout(0) does not override lua_socket_connect_timeout - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'failed to connect: timeout
'
023-preread/tcp-socket-timeout.t TEST 4: sock:settimeout(0) does not override lua_socket_connect_timeout - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 04:57:39 [alert] 3649\#0: worker process 3902 exited on signal 11" (req 1) 2020/10/27 04:57:39 [debug] 3649\#0: shmtx forced unlock
2020/10/27 04:57:39 [debug] 3649\#0: wake up, sigio 0
2020/10/27 04:57:39 [debug] 3649\#0: reap children
2020/10/27 04:57:39 [debug] 3649\#0: child: 0 3902 e:0 t:1 d:0 r:1 j:0
2020/10/27 04:57:39 [debug] 3649\#0: channel 3:4
2020/10/27 04:57:39 [notice] 3649\#0: start worker process 3903
2020/10/27 04:57:39 [debug] 3649\#0: sigsuspend
2020/10/27 04:57:39 [debug] 3903\#0: malloc: 09D2F8A8:12
2020/10/27 04:57:39 [debug] 3903\#0: malloc: 09D340C8:8
'
023-preread/tcp-socket-timeout.t TEST 2: sock:settimeout() overrides lua_socket_connect_timeout - status code ok got: ''
expected: '200'
023-preread/tcp-socket-timeout.t TEST 2: sock:settimeout() overrides lua_socket_connect_timeout - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'failed to connect: timeout
'
023-preread/tcp-socket-timeout.t TEST 2: sock:settimeout() overrides lua_socket_connect_timeout - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 04:57:45 [alert] 3649\#0: worker process 3910 exited on signal 11" (req 0) 2020/10/27 04:57:45 [debug] 3649\#0: shmtx forced unlock
2020/10/27 04:57:45 [debug] 3649\#0: wake up, sigio 0
2020/10/27 04:57:45 [debug] 3649\#0: reap children
2020/10/27 04:57:45 [debug] 3649\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 04:57:45 [debug] 3649\#0: child: 1 3910 e:0 t:1 d:0 r:1 j:0
2020/10/27 04:57:45 [debug] 3649\#0: channel 3:4
2020/10/27 04:57:45 [notice] 3649\#0: start worker process 3931
2020/10/27 04:57:45 [debug] 3649\#0: sigsuspend
2020/10/27 04:57:45 [debug] 3931\#0: malloc: 09D2AFB0:12
'
023-preread/tcp-socket-timeout.t TEST 2: sock:settimeout() overrides lua_socket_connect_timeout - status code ok got: ''
expected: '200'
023-preread/tcp-socket-timeout.t TEST 2: sock:settimeout() overrides lua_socket_connect_timeout - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'failed to connect: timeout
'
023-preread/tcp-socket-timeout.t TEST 2: sock:settimeout() overrides lua_socket_connect_timeout - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 04:57:46 [alert] 3649\#0: worker process 3931 exited on signal 11" (req 1) 2020/10/27 04:57:46 [debug] 3649\#0: shmtx forced unlock
2020/10/27 04:57:46 [debug] 3649\#0: wake up, sigio 0
2020/10/27 04:57:46 [debug] 3649\#0: reap children
2020/10/27 04:57:46 [debug] 3649\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 04:57:46 [debug] 3649\#0: child: 1 3931 e:0 t:1 d:0 r:1 j:0
2020/10/27 04:57:46 [debug] 3649\#0: channel 3:4
2020/10/27 04:57:46 [notice] 3649\#0: start worker process 3932
2020/10/27 04:57:46 [debug] 3649\#0: sigsuspend
2020/10/27 04:57:46 [debug] 3932\#0: malloc: 09D2AFB0:12
'
023-preread/tcp-socket-timeout.t TEST 7: sock:settimeout() overrides lua_socket_read_timeout - status code ok got: ''
expected: '200'
023-preread/tcp-socket-timeout.t TEST 7: sock:settimeout() overrides lua_socket_read_timeout - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'connected: 1
failed to receive: timeout
'
023-preread/tcp-socket-timeout.t TEST 7: sock:settimeout() overrides lua_socket_read_timeout - pattern "lua tcp socket read timed out" should match a line in error.log (req 0)
023-preread/tcp-socket-timeout.t TEST 7: sock:settimeout() overrides lua_socket_read_timeout - status code ok got: ''
expected: '200'
023-preread/tcp-socket-timeout.t TEST 7: sock:settimeout() overrides lua_socket_read_timeout - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'connected: 1
failed to receive: timeout
'
023-preread/tcp-socket-timeout.t TEST 7: sock:settimeout() overrides lua_socket_read_timeout - pattern "lua tcp socket read timed out" should match a line in error.log (req 1)
023-preread/tcp-socket-timeout.t TEST 10: -1 is bad timeout value - status code ok got: ''
expected: '200'
023-preread/tcp-socket-timeout.t TEST 10: -1 is bad timeout value - status code ok got: ''
expected: '200'
023-preread/tcp-socket-timeout.t TEST 11: lua_socket_send_timeout only - status code ok got: ''
expected: '200'
023-preread/tcp-socket-timeout.t TEST 11: lua_socket_send_timeout only - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'connected: 1
failed to send: timeout
'
023-preread/tcp-socket-timeout.t TEST 11: lua_socket_send_timeout only - pattern "lua tcp socket write timed out" should match a line in error.log (req 0)
023-preread/tcp-socket-timeout.t TEST 11: lua_socket_send_timeout only - status code ok got: ''
expected: '200'
023-preread/tcp-socket-timeout.t TEST 11: lua_socket_send_timeout only - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'connected: 1
failed to send: timeout
'
023-preread/tcp-socket-timeout.t TEST 11: lua_socket_send_timeout only - pattern "lua tcp socket write timed out" should match a line in error.log (req 1)
023-preread/tcp-socket-timeout.t TEST 3: sock:settimeout(nil) does not override lua_socket_connect_timeout - status code ok got: ''
expected: '200'
023-preread/tcp-socket-timeout.t TEST 3: sock:settimeout(nil) does not override lua_socket_connect_timeout - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'failed to connect: timeout
'
023-preread/tcp-socket-timeout.t TEST 3: sock:settimeout(nil) does not override lua_socket_connect_timeout - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 04:58:11 [alert] 3649\#0: worker process 4026 exited on signal 11" (req 0) 2020/10/27 04:58:11 [debug] 3649\#0: shmtx forced unlock
2020/10/27 04:58:11 [debug] 3649\#0: wake up, sigio 0
2020/10/27 04:58:11 [debug] 3649\#0: reap children
2020/10/27 04:58:11 [debug] 3649\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 04:58:11 [debug] 3649\#0: child: 1 4026 e:0 t:1 d:0 r:1 j:0
2020/10/27 04:58:11 [debug] 3649\#0: channel 3:4
2020/10/27 04:58:11 [notice] 3649\#0: start worker process 4047
2020/10/27 04:58:11 [debug] 3649\#0: sigsuspend
2020/10/27 04:58:11 [debug] 4047\#0: malloc: 09D2AFB0:12
'
023-preread/tcp-socket-timeout.t TEST 3: sock:settimeout(nil) does not override lua_socket_connect_timeout - status code ok got: ''
expected: '200'
023-preread/tcp-socket-timeout.t TEST 3: sock:settimeout(nil) does not override lua_socket_connect_timeout - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'failed to connect: timeout
'
023-preread/tcp-socket-timeout.t TEST 3: sock:settimeout(nil) does not override lua_socket_connect_timeout - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 04:58:12 [alert] 3649\#0: worker process 4047 exited on signal 11" (req 1) 2020/10/27 04:58:12 [debug] 3649\#0: shmtx forced unlock
2020/10/27 04:58:12 [debug] 3649\#0: wake up, sigio 0
2020/10/27 04:58:12 [debug] 3649\#0: reap children
2020/10/27 04:58:12 [debug] 3649\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 04:58:12 [debug] 3649\#0: child: 1 4047 e:0 t:1 d:0 r:1 j:0
2020/10/27 04:58:12 [debug] 3649\#0: channel 3:4
2020/10/27 04:58:12 [notice] 3649\#0: start worker process 4048
2020/10/27 04:58:12 [debug] 3649\#0: sigsuspend
2020/10/27 04:58:12 [debug] 4048\#0: malloc: 09D2AFB0:12
'
023-preread/tcp-socket-timeout.t TEST 12: sock:settimeout() overrides lua_socket_send_timeout - status code ok got: ''
expected: '200'
023-preread/tcp-socket-timeout.t TEST 12: sock:settimeout() overrides lua_socket_send_timeout - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'connected: 1
failed to send: timeout
'
023-preread/tcp-socket-timeout.t TEST 12: sock:settimeout() overrides lua_socket_send_timeout - pattern "lua tcp socket write timed out" should match a line in error.log (req 0)
023-preread/tcp-socket-timeout.t TEST 12: sock:settimeout() overrides lua_socket_send_timeout - status code ok got: ''
expected: '200'
023-preread/tcp-socket-timeout.t TEST 12: sock:settimeout() overrides lua_socket_send_timeout - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'connected: 1
failed to send: timeout
'
023-preread/tcp-socket-timeout.t TEST 12: sock:settimeout() overrides lua_socket_send_timeout - pattern "lua tcp socket write timed out" should match a line in error.log (req 1)
023-preread/tcp-socket.t TEST 5: connection timeout (tcp) - status code ok got: ''
expected: '200'
023-preread/tcp-socket.t TEST 5: connection timeout (tcp) - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-connect: nil timeout
-send: nil closed
-receive: nil closed
-close: nil closed
'
023-preread/tcp-socket.t TEST 5: connection timeout (tcp) - status code ok got: ''
expected: '200'
023-preread/tcp-socket.t TEST 5: connection timeout (tcp) - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +0,0 @@
-connect: nil timeout
-send: nil closed
-receive: nil closed
-close: nil closed
'
023-preread/tcp-socket.t TEST 1: sanity - status code ok got: ''
expected: '200'
023-preread/tcp-socket.t TEST 1: sanity - response_body - response is expected (repeated req 0, req 0) @@ -1,6 +0,0 @@
-connected: 1
-request sent: 57
-received: testing
-received: preread
-failed to receive a line: connection reset by peer []
-close: 1 nil
'
023-preread/tcp-socket.t TEST 1: sanity - pattern "recv() failed (104: Connection reset by peer" should match a line in error.log (req 0)
023-preread/tcp-socket.t TEST 1: sanity - status code ok got: ''
expected: '200'
023-preread/tcp-socket.t TEST 1: sanity - response_body - response is expected (repeated req 1, req 0) @@ -1,6 +0,0 @@
-connected: 1
-request sent: 57
-received: testing
-received: preread
-failed to receive a line: connection reset by peer []
-close: 1 nil
'
023-preread/tcp-socket.t TEST 1: sanity - pattern "recv() failed (104: Connection reset by peer" should match a line in error.log (req 1)
023-preread/tcp-socket.t TEST 3: with resolver - status code ok got: ''
expected: '200'
023-preread/tcp-socket.t TEST 3: with resolver - response_body_like - response is expected () ''
doesn't match '(?^s:connected: 1
request sent: 56
first line received: HTTP\/1\.1 200 OK
second line received: (?:Date|Server): .*?
)'
023-preread/tcp-socket.t TEST 3: with resolver - status code ok got: ''
expected: '200'
023-preread/tcp-socket.t TEST 3: with resolver - response_body_like - response is expected () ''
doesn't match '(?^s:connected: 1
request sent: 56
first line received: HTTP\/1\.1 200 OK
second line received: (?:Date|Server): .*?
)'
023-preread/tcp-socket.t TEST 7: resolver error (host not found) - status code ok got: ''
expected: '200'
023-preread/tcp-socket.t TEST 7: resolver error (host not found) - response_body_like - response is expected () ''
doesn't match '(?^s:^failed to connect: blah-blah-not-found\.agentzh\.org could not be resolved(?: \(3: Host not found\))?
connected: nil
failed to send request: closed$
)'
023-preread/tcp-socket.t TEST 7: resolver error (host not found) - status code ok got: ''
expected: '200'
023-preread/tcp-socket.t TEST 7: resolver error (host not found) - response_body_like - response is expected () ''
doesn't match '(?^s:^failed to connect: blah-blah-not-found\.agentzh\.org could not be resolved(?: \(3: Host not found\))?
connected: nil
failed to send request: closed$
)'
023-preread/tcp-socket.t TEST 4: connection refused (tcp) - status code ok got: ''
expected: '200'
023-preread/tcp-socket.t TEST 4: connection refused (tcp) - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-connect: nil connection refused
-send: nil closed
-receive: nil closed
-close: nil closed
'
023-preread/tcp-socket.t TEST 4: connection refused (tcp) - status code ok got: ''
expected: '200'
023-preread/tcp-socket.t TEST 4: connection refused (tcp) - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +0,0 @@
-connect: nil connection refused
-send: nil closed
-receive: nil closed
-close: nil closed
'
023-preread/tcp-socket.t TEST 8: resolver error (timeout) - status code ok got: ''
expected: '200'
023-preread/tcp-socket.t TEST 8: resolver error (timeout) - response_body_like - response is expected () ''
doesn't match '(?^s:^failed to connect: blah-blah-not-found\.agentzh\.org could not be resolved(?: \(\d+: (?:Operation timed out|Host not found)\))?
connected: nil
failed to send request: closed$
)'
023-preread/tcp-socket.t TEST 8: resolver error (timeout) - status code ok got: ''
expected: '200'
023-preread/tcp-socket.t TEST 8: resolver error (timeout) - response_body_like - response is expected () ''
doesn't match '(?^s:^failed to connect: blah-blah-not-found\.agentzh\.org could not be resolved(?: \(\d+: (?:Operation timed out|Host not found)\))?
connected: nil
failed to send request: closed$
)'
023-preread/tcp-socket.t TEST 6: not closed manually - status code ok got: ''
expected: '200'
023-preread/tcp-socket.t TEST 6: not closed manually - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'connected: 1
'
023-preread/tcp-socket.t TEST 6: not closed manually - status code ok got: ''
expected: '200'
023-preread/tcp-socket.t TEST 6: not closed manually - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'connected: 1
'
023-preread/tcp-socket.t TEST 2: no resolver defined - status code ok got: ''
expected: '200'
023-preread/tcp-socket.t TEST 2: no resolver defined - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-failed to connect: no resolver defined to resolve "agentzh.org"
-connected: nil
-failed to send request: closed
'
023-preread/tcp-socket.t TEST 2: no resolver defined - status code ok got: ''
expected: '200'
023-preread/tcp-socket.t TEST 2: no resolver defined - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-failed to connect: no resolver defined to resolve "agentzh.org"
-connected: nil
-failed to send request: closed
'
025-codecache.t TEST 25: make sure inline code keys are correct - status code ok got: ''
expected: '200'
025-codecache.t TEST 25: make sure inline code keys are correct - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-1 is called
-2 is called
-1 is called
-2 is called
'
025-codecache.t TEST 25: make sure inline code keys are correct - grep_error_log_out (req 0) @@ -1,4 +1,2 @@
looking up Lua code cache with key '=content_by_lua(proxy.conf:3)nhli_ad58d60a0f20ae31b1a282e74053d356'
looking up Lua code cache with key '=content_by_lua(proxy.conf:3)nhli_9c867c93f28b91041fe132817b43ad07'
-looking up Lua code cache with key '=content_by_lua(proxy.conf:3)nhli_ad58d60a0f20ae31b1a282e74053d356'
-looking up Lua code cache with key '=content_by_lua(proxy.conf:3)nhli_9c867c93f28b91041fe132817b43ad07'
'
025-codecache.t TEST 25: make sure inline code keys are correct - status code ok got: ''
expected: '200'
025-codecache.t TEST 25: make sure inline code keys are correct - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +0,0 @@
-1 is called
-2 is called
-1 is called
-2 is called
'
025-codecache.t TEST 25: make sure inline code keys are correct - grep_error_log_out (req 1) @@ -2,7 +2,3 @@
looking up Lua code cache with key '=content_by_lua(proxy.conf:3)nhli_9c867c93f28b91041fe132817b43ad07'
looking up Lua code cache with key '=content_by_lua(proxy.conf:3)nhli_ad58d60a0f20ae31b1a282e74053d356'
looking up Lua code cache with key '=content_by_lua(proxy.conf:3)nhli_9c867c93f28b91041fe132817b43ad07'
-looking up Lua code cache with key '=content_by_lua(proxy.conf:3)nhli_ad58d60a0f20ae31b1a282e74053d356'
-looking up Lua code cache with key '=content_by_lua(proxy.conf:3)nhli_9c867c93f28b91041fe132817b43ad07'
-looking up Lua code cache with key '=content_by_lua(proxy.conf:3)nhli_ad58d60a0f20ae31b1a282e74053d356'
-looking up Lua code cache with key '=content_by_lua(proxy.conf:3)nhli_9c867c93f28b91041fe132817b43ad07'
'
025-codecache.t TEST 26: make sure inline code keys are correct - status code ok got: ''
expected: '200'
025-codecache.t TEST 26: make sure inline code keys are correct - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-1 is called
-2 is called
-1 is called
-2 is called
'
025-codecache.t TEST 26: make sure inline code keys are correct - grep_error_log_out (req 0) @@ -1,4 +1,2 @@
looking up Lua code cache with key 'nhlf_48a9a7def61143c003a7de1644e026e4'
looking up Lua code cache with key 'nhlf_68f5f4e946c3efd1cc206452b807e8b6'
-looking up Lua code cache with key 'nhlf_48a9a7def61143c003a7de1644e026e4'
-looking up Lua code cache with key 'nhlf_042c9b3a136fbacbbd0e4b9ad10896b7'
'
025-codecache.t TEST 26: make sure inline code keys are correct - status code ok got: ''
expected: '200'
025-codecache.t TEST 26: make sure inline code keys are correct - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +0,0 @@
-1 is called
-2 is called
-1 is called
-2 is called
'
025-codecache.t TEST 26: make sure inline code keys are correct - grep_error_log_out (req 1) @@ -1,8 +1,4 @@
looking up Lua code cache with key 'nhlf_48a9a7def61143c003a7de1644e026e4'
looking up Lua code cache with key 'nhlf_68f5f4e946c3efd1cc206452b807e8b6'
looking up Lua code cache with key 'nhlf_48a9a7def61143c003a7de1644e026e4'
-looking up Lua code cache with key 'nhlf_042c9b3a136fbacbbd0e4b9ad10896b7'
-looking up Lua code cache with key 'nhlf_48a9a7def61143c003a7de1644e026e4'
looking up Lua code cache with key 'nhlf_68f5f4e946c3efd1cc206452b807e8b6'
-looking up Lua code cache with key 'nhlf_48a9a7def61143c003a7de1644e026e4'
-looking up Lua code cache with key 'nhlf_042c9b3a136fbacbbd0e4b9ad10896b7'
'
025-codecache.t TEST 16: ngx.timer.* - status code ok got: ''
expected: '200'
025-codecache.t TEST 16: ngx.timer.* - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'ok
'
025-codecache.t TEST 16: ngx.timer.* - status code ok got: ''
expected: '200'
025-codecache.t TEST 16: ngx.timer.* - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'ok
'
025-codecache.t TEST 15: lua_code_cache off + FFI-based Lua modules - status code ok got: ''
expected: '200'
025-codecache.t TEST 15: lua_code_cache off + FFI-based Lua modules - response_body_like - response is expected () ''
doesn't match '(?^s:^(?:skipped for non-LuaJIT|test module loaded: true)$)'
025-codecache.t TEST 15: lua_code_cache off + FFI-based Lua modules - status code ok got: ''
expected: '200'
025-codecache.t TEST 15: lua_code_cache off + FFI-based Lua modules - response_body_like - response is expected () ''
doesn't match '(?^s:^(?:skipped for non-LuaJIT|test module loaded: true)$)'
025-codecache.t TEST 7: code cache explicitly off (affects require) + content_by_lua_file - status code ok got: ''
expected: '200'
025-codecache.t TEST 7: code cache explicitly off (affects require) + content_by_lua_file - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-32
-updated
-102
'
025-codecache.t TEST 7: code cache explicitly off (affects require) + content_by_lua_file - status code ok got: ''
expected: '200'
025-codecache.t TEST 7: code cache explicitly off (affects require) + content_by_lua_file - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-32
-updated
-102
'
025-codecache.t TEST 11: do not skip luarocks - status code ok got: ''
expected: '200'
025-codecache.t TEST 11: do not skip luarocks - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-loading
-hello, foo
-not found
-not found
'
025-codecache.t TEST 11: do not skip luarocks - status code ok got: ''
expected: '200'
025-codecache.t TEST 11: do not skip luarocks - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +0,0 @@
-loading
-hello, foo
-not found
-not found
'
025-codecache.t TEST 12: do not skip luarocks* - status code ok got: ''
expected: '200'
025-codecache.t TEST 12: do not skip luarocks* - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-loading
-hello, foo
-not found
-not found
'
025-codecache.t TEST 12: do not skip luarocks* - status code ok got: ''
expected: '200'
025-codecache.t TEST 12: do not skip luarocks* - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +0,0 @@
-loading
-hello, foo
-not found
-not found
'
025-codecache.t TEST 22: cosocket connection pool timeout (after Lua VM destroys) - status code ok got: ''
expected: '200'
025-codecache.t TEST 22: cosocket connection pool timeout (after Lua VM destroys) - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-connected: 1, reused: 0
-request sent: 11
-received: OK
'
025-codecache.t TEST 22: cosocket connection pool timeout (after Lua VM destroys) - pattern "stream lua tcp socket keepalive create connection pool for key "127.0.0.1:11211"" should match a line in error.log (req 0)
025-codecache.t TEST 22: cosocket connection pool timeout (after Lua VM destroys) - pattern "(?^:\blua tcp socket keepalive: free connection pool [0-9A-F]+ for "127.0.0.1:)" should match a line in error.log (req 0)
025-codecache.t TEST 22: cosocket connection pool timeout (after Lua VM destroys) - status code ok got: ''
expected: '200'
025-codecache.t TEST 22: cosocket connection pool timeout (after Lua VM destroys) - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-connected: 1, reused: 0
-request sent: 11
-received: OK
'
025-codecache.t TEST 22: cosocket connection pool timeout (after Lua VM destroys) - pattern "stream lua tcp socket keepalive create connection pool for key "127.0.0.1:11211"" should match a line in error.log (req 1)
025-codecache.t TEST 22: cosocket connection pool timeout (after Lua VM destroys) - pattern "(?^:\blua tcp socket keepalive: free connection pool [0-9A-F]+ for "127.0.0.1:)" should match a line in error.log (req 1)
025-codecache.t TEST 6: code cache explicitly off (affects require) + content_by_lua - status code ok got: ''
expected: '200'
025-codecache.t TEST 6: code cache explicitly off (affects require) + content_by_lua - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-32
-updated
-102
'
025-codecache.t TEST 6: code cache explicitly off (affects require) + content_by_lua - status code ok got: ''
expected: '200'
025-codecache.t TEST 6: code cache explicitly off (affects require) + content_by_lua - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-32
-updated
-102
'
025-codecache.t TEST 10: no clear builtin libs (misc) - status code ok got: ''
expected: '200'
025-codecache.t TEST 10: no clear builtin libs (misc) - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-OK
-OK
'
025-codecache.t TEST 10: no clear builtin libs (misc) - status code ok got: ''
expected: '200'
025-codecache.t TEST 10: no clear builtin libs (misc) - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-OK
-OK
'
025-codecache.t TEST 3: code cache explicitly off - status code ok got: ''
expected: '200'
025-codecache.t TEST 3: code cache explicitly off - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-32
-updated
-101
'
025-codecache.t TEST 3: code cache explicitly off - status code ok got: ''
expected: '200'
025-codecache.t TEST 3: code cache explicitly off - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-32
-updated
-101
'
025-codecache.t TEST 18: lua variable sharing via upvalue - status code ok got: ''
expected: '200'
025-codecache.t TEST 18: lua variable sharing via upvalue - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-registered timer
-foo = 3
'
025-codecache.t TEST 18: lua variable sharing via upvalue - pattern "stream lua ngx.timer expired" should match a line in error.log (req 0)
025-codecache.t TEST 18: lua variable sharing via upvalue - pattern "stream lua finalize fake request" should match a line in error.log (req 0)
025-codecache.t TEST 18: lua variable sharing via upvalue - pattern "stream lua decrementing the reference count for Lua VM: 2" should match a line in error.log (req 0)
025-codecache.t TEST 18: lua variable sharing via upvalue - status code ok got: ''
expected: '200'
025-codecache.t TEST 18: lua variable sharing via upvalue - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-registered timer
-foo = 3
'
025-codecache.t TEST 18: lua variable sharing via upvalue - pattern "stream lua ngx.timer expired" should match a line in error.log (req 1)
025-codecache.t TEST 18: lua variable sharing via upvalue - pattern "stream lua finalize fake request" should match a line in error.log (req 1)
025-codecache.t TEST 18: lua variable sharing via upvalue - pattern "stream lua decrementing the reference count for Lua VM: 2" should match a line in error.log (req 1)
025-codecache.t TEST 1: code cache on by default - status code ok got: ''
expected: '200'
025-codecache.t TEST 1: code cache on by default - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-32
-updated
-32
'
025-codecache.t TEST 1: code cache on by default - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 04:58:56 [alert] 4308\#0: worker process 4666 exited on signal 11" (req 0) 2020/10/27 04:58:56 [debug] 4308\#0: shmtx forced unlock
2020/10/27 04:58:56 [debug] 4308\#0: wake up, sigio 0
2020/10/27 04:58:56 [debug] 4308\#0: reap children
2020/10/27 04:58:56 [debug] 4308\#0: child: 0 4666 e:0 t:1 d:0 r:1 j:0
2020/10/27 04:58:56 [debug] 4308\#0: channel 3:4
2020/10/27 04:58:56 [notice] 4308\#0: start worker process 4688
2020/10/27 04:58:56 [debug] 4308\#0: sigsuspend
2020/10/27 04:58:56 [debug] 4688\#0: malloc: 096C0960:12
2020/10/27 04:58:56 [debug] 4688\#0: malloc: 096C5E50:8
'
025-codecache.t TEST 1: code cache on by default - status code ok got: ''
expected: '200'
025-codecache.t TEST 1: code cache on by default - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-32
-updated
-32
'
025-codecache.t TEST 1: code cache on by default - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 04:58:56 [alert] 4308\#0: worker process 4666 exited on signal 11" (req 1) 2020/10/27 04:58:56 [debug] 4308\#0: shmtx forced unlock
2020/10/27 04:58:56 [debug] 4308\#0: wake up, sigio 0
2020/10/27 04:58:56 [debug] 4308\#0: reap children
2020/10/27 04:58:56 [debug] 4308\#0: child: 0 4666 e:0 t:1 d:0 r:1 j:0
2020/10/27 04:58:56 [debug] 4308\#0: channel 3:4
2020/10/27 04:58:56 [notice] 4308\#0: start worker process 4688
2020/10/27 04:58:56 [debug] 4308\#0: sigsuspend
2020/10/27 04:58:56 [debug] 4688\#0: malloc: 096C0960:12
2020/10/27 04:58:56 [debug] 4688\#0: malloc: 096C5E50:8
'
025-codecache.t TEST 1: code cache on by default - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 04:58:56 [alert] 4308\#0: worker process 4688 exited on signal 11" (req 1) 2020/10/27 04:58:56 [debug] 4308\#0: shmtx forced unlock
2020/10/27 04:58:56 [debug] 4308\#0: wake up, sigio 0
2020/10/27 04:58:56 [debug] 4308\#0: reap children
2020/10/27 04:58:56 [debug] 4308\#0: child: 0 4688 e:0 t:1 d:0 r:1 j:0
2020/10/27 04:58:56 [debug] 4308\#0: channel 3:4
2020/10/27 04:58:56 [notice] 4308\#0: start worker process 4689
2020/10/27 04:58:56 [debug] 4308\#0: sigsuspend
2020/10/27 04:58:56 [debug] 4689\#0: malloc: 096C0960:12
2020/10/27 04:58:56 [debug] 4689\#0: malloc: 096C5E50:8
'
025-codecache.t TEST 19: lua_max_running_timers (just not enough) - status code ok got: ''
expected: '200'
025-codecache.t TEST 19: lua_max_running_timers (just not enough) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'registered timer
'
025-codecache.t TEST 19: lua_max_running_timers (just not enough) - status code ok got: ''
expected: '200'
025-codecache.t TEST 19: lua_max_running_timers (just not enough) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'registered timer
'
025-codecache.t TEST 21: multiple parallel timers - status code ok got: ''
expected: '200'
025-codecache.t TEST 21: multiple parallel timers - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'registered timer
'
025-codecache.t TEST 21: multiple parallel timers - pattern "stream lua ngx.timer expired" should match a line in error.log (req 0)
025-codecache.t TEST 21: multiple parallel timers - pattern "stream lua finalize fake request" should match a line in error.log (req 0)
025-codecache.t TEST 21: multiple parallel timers - pattern "trace: [m][f][g]" should match a line in error.log (req 0)
025-codecache.t TEST 21: multiple parallel timers - pattern "stream lua decrementing the reference count for Lua VM: 2" should match a line in error.log (req 0)
025-codecache.t TEST 21: multiple parallel timers - status code ok got: ''
expected: '200'
025-codecache.t TEST 21: multiple parallel timers - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'registered timer
'
025-codecache.t TEST 21: multiple parallel timers - pattern "stream lua ngx.timer expired" should match a line in error.log (req 1)
025-codecache.t TEST 21: multiple parallel timers - pattern "stream lua finalize fake request" should match a line in error.log (req 1)
025-codecache.t TEST 21: multiple parallel timers - pattern "trace: [m][f][g]" should match a line in error.log (req 1)
025-codecache.t TEST 21: multiple parallel timers - pattern "stream lua decrementing the reference count for Lua VM: 2" should match a line in error.log (req 1)
025-codecache.t TEST 9: no clear builtin lib "string" (inline) - status code ok got: ''
expected: '200'
025-codecache.t TEST 9: no clear builtin lib "string" (inline) - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-5
-1, 2, 3
-5
-1, 2, 3
'
025-codecache.t TEST 9: no clear builtin lib "string" (inline) - status code ok got: ''
expected: '200'
025-codecache.t TEST 9: no clear builtin lib "string" (inline) - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +0,0 @@
-5
-1, 2, 3
-5
-1, 2, 3
'
025-codecache.t TEST 23: cosocket connection pool timeout (before Lua VM destroys) - status code ok got: ''
expected: '200'
025-codecache.t TEST 23: cosocket connection pool timeout (before Lua VM destroys) - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-connected: 1, reused: 0
-request sent: 11
-received: OK
'
025-codecache.t TEST 23: cosocket connection pool timeout (before Lua VM destroys) - pattern "stream lua tcp socket keepalive create connection pool for key "127.0.0.1:11211"" should match a line in error.log (req 0)
025-codecache.t TEST 23: cosocket connection pool timeout (before Lua VM destroys) - pattern "stream lua tcp socket keepalive: free connection pool for " should match a line in error.log (req 0)
025-codecache.t TEST 23: cosocket connection pool timeout (before Lua VM destroys) - pattern "stream lua tcp socket keepalive max idle timeout" should match a line in error.log (req 0)
025-codecache.t TEST 23: cosocket connection pool timeout (before Lua VM destroys) - status code ok got: ''
expected: '200'
025-codecache.t TEST 23: cosocket connection pool timeout (before Lua VM destroys) - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-connected: 1, reused: 0
-request sent: 11
-received: OK
'
025-codecache.t TEST 23: cosocket connection pool timeout (before Lua VM destroys) - pattern "stream lua tcp socket keepalive create connection pool for key "127.0.0.1:11211"" should match a line in error.log (req 1)
025-codecache.t TEST 23: cosocket connection pool timeout (before Lua VM destroys) - pattern "stream lua tcp socket keepalive: free connection pool for " should match a line in error.log (req 1)
025-codecache.t TEST 23: cosocket connection pool timeout (before Lua VM destroys) - pattern "stream lua tcp socket keepalive max idle timeout" should match a line in error.log (req 1)
025-codecache.t TEST 24: lua_max_running_timers (just not enough, also low lua_max_pending_timers) - status code ok got: ''
expected: '200'
025-codecache.t TEST 24: lua_max_running_timers (just not enough, also low lua_max_pending_timers) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'registered timer
'
025-codecache.t TEST 24: lua_max_running_timers (just not enough, also low lua_max_pending_timers) - status code ok got: ''
expected: '200'
025-codecache.t TEST 24: lua_max_running_timers (just not enough, also low lua_max_pending_timers) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'registered timer
'
025-codecache.t TEST 8: no clear builtin lib "string" (file) - status code ok got: ''
expected: '200'
025-codecache.t TEST 8: no clear builtin lib "string" (file) - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-5
-1, 2, 3
-5
-1, 2, 3
'
025-codecache.t TEST 8: no clear builtin lib "string" (file) - status code ok got: ''
expected: '200'
025-codecache.t TEST 8: no clear builtin lib "string" (file) - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +0,0 @@
-5
-1, 2, 3
-5
-1, 2, 3
'
025-codecache.t TEST 14: github \#257: globals cleared when code cache off - status code ok got: ''
expected: '200'
025-codecache.t TEST 14: github \#257: globals cleared when code cache off - response_body_like - response is expected () ''
doesn't match '(?^s:^table: 0x\d*?[1-9a-fA-F])'
025-codecache.t TEST 14: github \#257: globals cleared when code cache off - status code ok got: ''
expected: '200'
025-codecache.t TEST 14: github \#257: globals cleared when code cache off - response_body_like - response is expected () ''
doesn't match '(?^s:^table: 0x\d*?[1-9a-fA-F])'
025-codecache.t TEST 17: lua_max_pending_timers - chained timers (non-zero delay) - not exceeding - status code ok got: ''
expected: '200'
025-codecache.t TEST 17: lua_max_pending_timers - chained timers (non-zero delay) - not exceeding - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'registered timer
'
025-codecache.t TEST 17: lua_max_pending_timers - chained timers (non-zero delay) - not exceeding - pattern "lua ngx.timer expired" should match a line in error.log (req 0)
025-codecache.t TEST 17: lua_max_pending_timers - chained timers (non-zero delay) - not exceeding - pattern "stream lua finalize fake request" should match a line in error.log (req 0)
025-codecache.t TEST 17: lua_max_pending_timers - chained timers (non-zero delay) - not exceeding - pattern "trace: [m][f][g]" should match a line in error.log (req 0)
025-codecache.t TEST 17: lua_max_pending_timers - chained timers (non-zero delay) - not exceeding - status code ok got: ''
expected: '200'
025-codecache.t TEST 17: lua_max_pending_timers - chained timers (non-zero delay) - not exceeding - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'registered timer
'
025-codecache.t TEST 17: lua_max_pending_timers - chained timers (non-zero delay) - not exceeding - pattern "lua ngx.timer expired" should match a line in error.log (req 1)
025-codecache.t TEST 17: lua_max_pending_timers - chained timers (non-zero delay) - not exceeding - pattern "stream lua finalize fake request" should match a line in error.log (req 1)
025-codecache.t TEST 17: lua_max_pending_timers - chained timers (non-zero delay) - not exceeding - pattern "trace: [m][f][g]" should match a line in error.log (req 1)
025-codecache.t TEST 2: code cache explicitly on - status code ok got: ''
expected: '200'
025-codecache.t TEST 2: code cache explicitly on - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-32
-updated
-32
'
025-codecache.t TEST 2: code cache explicitly on - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 04:59:21 [alert] 4308\#0: worker process 4967 exited on signal 11" (req 0) 2020/10/27 04:59:21 [debug] 4308\#0: shmtx forced unlock
2020/10/27 04:59:21 [debug] 4308\#0: wake up, sigio 0
2020/10/27 04:59:21 [debug] 4308\#0: reap children
2020/10/27 04:59:21 [debug] 4308\#0: child: 0 4967 e:0 t:1 d:0 r:1 j:0
2020/10/27 04:59:21 [debug] 4308\#0: channel 3:4
2020/10/27 04:59:21 [notice] 4308\#0: start worker process 4989
2020/10/27 04:59:21 [debug] 4308\#0: sigsuspend
2020/10/27 04:59:21 [debug] 4989\#0: malloc: 096C0960:12
2020/10/27 04:59:21 [debug] 4989\#0: malloc: 096C5E50:8
'
025-codecache.t TEST 2: code cache explicitly on - status code ok got: ''
expected: '200'
025-codecache.t TEST 2: code cache explicitly on - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-32
-updated
-32
'
025-codecache.t TEST 2: code cache explicitly on - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 04:59:21 [alert] 4308\#0: worker process 4967 exited on signal 11" (req 1) 2020/10/27 04:59:21 [debug] 4308\#0: shmtx forced unlock
2020/10/27 04:59:21 [debug] 4308\#0: wake up, sigio 0
2020/10/27 04:59:21 [debug] 4308\#0: reap children
2020/10/27 04:59:21 [debug] 4308\#0: child: 0 4967 e:0 t:1 d:0 r:1 j:0
2020/10/27 04:59:21 [debug] 4308\#0: channel 3:4
2020/10/27 04:59:21 [notice] 4308\#0: start worker process 4989
2020/10/27 04:59:21 [debug] 4308\#0: sigsuspend
2020/10/27 04:59:21 [debug] 4989\#0: malloc: 096C0960:12
2020/10/27 04:59:21 [debug] 4989\#0: malloc: 096C5E50:8
'
025-codecache.t TEST 2: code cache explicitly on - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 04:59:21 [alert] 4308\#0: worker process 4989 exited on signal 11" (req 1) 2020/10/27 04:59:21 [debug] 4308\#0: shmtx forced unlock
2020/10/27 04:59:21 [debug] 4308\#0: wake up, sigio 0
2020/10/27 04:59:21 [debug] 4308\#0: reap children
2020/10/27 04:59:21 [debug] 4308\#0: child: 0 4989 e:0 t:1 d:0 r:1 j:0
2020/10/27 04:59:21 [debug] 4308\#0: channel 3:4
2020/10/27 04:59:21 [notice] 4308\#0: start worker process 4990
2020/10/27 04:59:21 [debug] 4308\#0: sigsuspend
2020/10/27 04:59:21 [debug] 4990\#0: malloc: 096C0960:12
2020/10/27 04:59:21 [debug] 4990\#0: malloc: 096C5E50:8
'
025-codecache.t TEST 4: code cache explicitly off (stream {} level) - status code ok got: ''
expected: '200'
025-codecache.t TEST 4: code cache explicitly off (stream {} level) - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-32
-updated
-101
'
025-codecache.t TEST 4: code cache explicitly off (stream {} level) - status code ok got: ''
expected: '200'
025-codecache.t TEST 4: code cache explicitly off (stream {} level) - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-32
-updated
-101
'
025-codecache.t TEST 5: code cache explicitly off (server level) but be overridden in the location - status code ok got: ''
expected: '200'
025-codecache.t TEST 5: code cache explicitly off (server level) but be overridden in the location - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-32
-updated
-32
'
025-codecache.t TEST 5: code cache explicitly off (server level) but be overridden in the location - status code ok got: ''
expected: '200'
025-codecache.t TEST 5: code cache explicitly off (server level) but be overridden in the location - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-32
-updated
-32
'
025-codecache.t TEST 13: clear _G table - status code ok got: ''
expected: '200'
025-codecache.t TEST 13: clear _G table - response_body - response is expected (repeated req 0, req 0) got: ''
expected: '_G.foo: 1
'
025-codecache.t TEST 13: clear _G table - status code ok got: ''
expected: '200'
025-codecache.t TEST 13: clear _G table - response_body - response is expected (repeated req 1, req 0) got: ''
expected: '_G.foo: 1
'
032-iolist.t TEST 2: nested table - status code ok got: ''
expected: '200'
032-iolist.t TEST 2: nested table - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "helloniltruefalse32.556--helloniltruefalse32.556\x{0a}"
length: 49
strings begin to differ at char 1 (line 1 column 1)
032-iolist.t TEST 2: nested table - status code ok got: ''
expected: '200'
032-iolist.t TEST 2: nested table - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "helloniltruefalse32.556--helloniltruefalse32.556\x{0a}"
length: 49
strings begin to differ at char 1 (line 1 column 1)
032-iolist.t TEST 3: non-array table - status code ok got: ''
expected: '200'
032-iolist.t TEST 3: non-array table - status code ok got: ''
expected: '200'
032-iolist.t TEST 4: bad data type in table - status code ok got: ''
expected: '200'
032-iolist.t TEST 4: bad data type in table - status code ok got: ''
expected: '200'
032-iolist.t TEST 1: sanity - status code ok got: ''
expected: '200'
032-iolist.t TEST 1: sanity - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "helloniltruefalse32.556\x{0a}"
length: 24
strings begin to differ at char 1 (line 1 column 1)
032-iolist.t TEST 1: sanity - status code ok got: ''
expected: '200'
032-iolist.t TEST 1: sanity - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "helloniltruefalse32.556\x{0a}"
length: 24
strings begin to differ at char 1 (line 1 column 1)
033-ctx.t TEST 1: sanity - status code ok got: ''
expected: '200'
033-ctx.t TEST 1: sanity - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "32\x{0a}"
length: 3
strings begin to differ at char 1 (line 1 column 1)
033-ctx.t TEST 1: sanity - status code ok got: ''
expected: '200'
033-ctx.t TEST 1: sanity - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "32\x{0a}"
length: 3
strings begin to differ at char 1 (line 1 column 1)
033-ctx.t TEST 3: different requests have different ngx.ctx - status code ok got: ''
expected: '200'
033-ctx.t TEST 3: different requests have different ngx.ctx - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "nil\x{0a}32\x{0a}nil\x{0a}"
length: 11
strings begin to differ at char 1 (line 1 column 1)
033-ctx.t TEST 3: different requests have different ngx.ctx - status code ok got: ''
expected: '200'
033-ctx.t TEST 3: different requests have different ngx.ctx - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "nil\x{0a}32\x{0a}nil\x{0a}"
length: 11
strings begin to differ at char 1 (line 1 column 1)
033-ctx.t TEST 4: overriding ctx - status code ok got: ''
expected: '200'
033-ctx.t TEST 4: overriding ctx - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "32\x{0a}54\x{0a}nil\x{0a}56\x{0a}"
length: 13
strings begin to differ at char 1 (line 1 column 1)
033-ctx.t TEST 4: overriding ctx - status code ok got: ''
expected: '200'
033-ctx.t TEST 4: overriding ctx - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "32\x{0a}54\x{0a}nil\x{0a}56\x{0a}"
length: 13
strings begin to differ at char 1 (line 1 column 1)
034-match.t TEST 7: case sensitive by default - status code ok got: ''
expected: '200'
034-match.t TEST 7: case sensitive by default - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'not matched: nil
'
034-match.t TEST 7: case sensitive by default - status code ok got: ''
expected: '200'
034-match.t TEST 7: case sensitive by default - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'not matched: nil
'
034-match.t TEST 35: Javascript compatible mode - status code ok got: ''
expected: '200'
034-match.t TEST 35: Javascript compatible mode - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'matched: ç« 
'
034-match.t TEST 35: Javascript compatible mode - status code ok got: ''
expected: '200'
034-match.t TEST 35: Javascript compatible mode - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'matched: ç« 
'
034-match.t TEST 23: match (look-behind assertion) - status code ok got: ''
expected: '200'
034-match.t TEST 23: match (look-behind assertion) - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-bar
-baz
'
034-match.t TEST 23: match (look-behind assertion) - status code ok got: ''
expected: '200'
034-match.t TEST 23: match (look-behind assertion) - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-bar
-baz
'
034-match.t TEST 2: escaping sequences - status code ok got: ''
expected: '200'
034-match.t TEST 2: escaping sequences - response_body - response is expected (repeated req 0, req 0) got: ''
expected: '1234
'
034-match.t TEST 2: escaping sequences - status code ok got: ''
expected: '200'
034-match.t TEST 2: escaping sequences - response_body - response is expected (repeated req 1, req 0) got: ''
expected: '1234
'
034-match.t TEST 36: empty duplicate captures - status code ok got: ''
expected: '200'
034-match.t TEST 36: empty duplicate captures - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-nil
-nil
'
034-match.t TEST 36: empty duplicate captures - status code ok got: ''
expected: '200'
034-match.t TEST 36: empty duplicate captures - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-nil
-nil
'
034-match.t TEST 40: just hit match limit - status code ok got: ''
expected: '200'
034-match.t TEST 40: just hit match limit - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'error: pcre_exec() failed: -8
'
034-match.t TEST 40: just hit match limit - status code ok got: ''
expected: '200'
034-match.t TEST 40: just hit match limit - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'error: pcre_exec() failed: -8
'
034-match.t TEST 5: multiple captures (with o) - status code ok got: ''
expected: '200'
034-match.t TEST 5: multiple captures (with o) - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-hello, 1234
-hello
-12
'
034-match.t TEST 5: multiple captures (with o) - status code ok got: ''
expected: '200'
034-match.t TEST 5: multiple captures (with o) - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-hello, 1234
-hello
-12
'
034-match.t TEST 14: extended mode (ignore whitespaces) - status code ok got: ''
expected: '200'
034-match.t TEST 14: extended mode (ignore whitespaces) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'he
'
034-match.t TEST 14: extended mode (ignore whitespaces) - status code ok got: ''
expected: '200'
034-match.t TEST 14: extended mode (ignore whitespaces) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'he
'
034-match.t TEST 33: named captures are nil - status code ok got: ''
expected: '200'
034-match.t TEST 33: named captures are nil - response_body - response is expected (repeated req 0, req 0) @@ -1,5 +0,0 @@
-hello
-false
-hello
-false
-false
'
034-match.t TEST 33: named captures are nil - status code ok got: ''
expected: '200'
034-match.t TEST 33: named captures are nil - response_body - response is expected (repeated req 1, req 0) @@ -1,5 +0,0 @@
-hello
-false
-hello
-false
-false
'
034-match.t TEST 29: non-empty subject, empty pattern - status code ok got: ''
expected: '200'
034-match.t TEST 29: non-empty subject, empty pattern - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-pos: 1
-m:
'
034-match.t TEST 29: non-empty subject, empty pattern - status code ok got: ''
expected: '200'
034-match.t TEST 29: non-empty subject, empty pattern - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-pos: 1
-m:
'
034-match.t TEST 6: not matched - status code ok got: ''
expected: '200'
034-match.t TEST 6: not matched - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'not matched: nil
'
034-match.t TEST 6: not matched - status code ok got: ''
expected: '200'
034-match.t TEST 6: not matched - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'not matched: nil
'
034-match.t TEST 28: bug report (github issue \#72) - status code ok got: ''
expected: '200'
034-match.t TEST 28: bug report (github issue \#72) - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-done: yes
-done: no
'
034-match.t TEST 28: bug report (github issue \#72) - status code ok got: ''
expected: '200'
034-match.t TEST 28: bug report (github issue \#72) - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-done: yes
-done: no
'
034-match.t TEST 27: long brackets containing [...] - status code ok got: ''
expected: '200'
034-match.t TEST 27: long brackets containing [...] - response_body - response is expected (repeated req 0, req 0) got: ''
expected: '1234
'
034-match.t TEST 27: long brackets containing [...] - status code ok got: ''
expected: '200'
034-match.t TEST 27: long brackets containing [...] - response_body - response is expected (repeated req 1, req 0) got: ''
expected: '1234
'
034-match.t TEST 25: long brackets - status code ok got: ''
expected: '200'
034-match.t TEST 25: long brackets - response_body - response is expected (repeated req 0, req 0) got: ''
expected: '1234
'
034-match.t TEST 25: long brackets - status code ok got: ''
expected: '200'
034-match.t TEST 25: long brackets - response_body - response is expected (repeated req 1, req 0) got: ''
expected: '1234
'
034-match.t TEST 24: escaping sequences - status code ok got: ''
expected: '200'
034-match.t TEST 24: escaping sequences - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-regex: (?:>[\w\s]*</?\w{2,}>)
-[>2</impact>]
'
034-match.t TEST 24: escaping sequences - status code ok got: ''
expected: '200'
034-match.t TEST 24: escaping sequences - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-regex: (?:>[\w\s]*</?\w{2,}>)
-[>2</impact>]
'
034-match.t TEST 37: bad UTF-8 - status code ok got: ''
expected: '200'
034-match.t TEST 37: bad UTF-8 - response_body_like - response is expected () ''
doesn't match '(?^s:^error: pcre_exec\(\) failed: -10$)'
034-match.t TEST 37: bad UTF-8 - status code ok got: ''
expected: '200'
034-match.t TEST 37: bad UTF-8 - response_body_like - response is expected () ''
doesn't match '(?^s:^error: pcre_exec\(\) failed: -10$)'
034-match.t TEST 19: anchored match (failed) - status code ok got: ''
expected: '200'
034-match.t TEST 19: anchored match (failed) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'not matched!
'
034-match.t TEST 19: anchored match (failed) - status code ok got: ''
expected: '200'
034-match.t TEST 19: anchored match (failed) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'not matched!
'
034-match.t TEST 22: match with ctx and a pos - status code ok got: ''
expected: '200'
034-match.t TEST 22: match with ctx and a pos - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-34
-5
'
034-match.t TEST 22: match with ctx and a pos - status code ok got: ''
expected: '200'
034-match.t TEST 22: match with ctx and a pos - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-34
-5
'
034-match.t TEST 38: UTF-8 mode without UTF-8 sequence checks - status code ok got: ''
expected: '200'
034-match.t TEST 38: UTF-8 mode without UTF-8 sequence checks - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'ä½ 
'
034-match.t TEST 38: UTF-8 mode without UTF-8 sequence checks - status code ok got: ''
expected: '200'
034-match.t TEST 38: UTF-8 mode without UTF-8 sequence checks - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'ä½ 
'
034-match.t TEST 15: bad pattern - status code ok got: ''
expected: '200'
034-match.t TEST 15: bad pattern - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'error: pcre_compile() failed: missing ) in "(abc"
'
034-match.t TEST 15: bad pattern - status code ok got: ''
expected: '200'
034-match.t TEST 15: bad pattern - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'error: pcre_compile() failed: missing ) in "(abc"
'
034-match.t TEST 31: duplicate named subpatterns w/ extraction - status code ok got: ''
expected: '200'
034-match.t TEST 31: duplicate named subpatterns w/ extraction - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-hello, 1234
-hello
-1234
-hello-1234
'
034-match.t TEST 31: duplicate named subpatterns w/ extraction - status code ok got: ''
expected: '200'
034-match.t TEST 31: duplicate named subpatterns w/ extraction - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +0,0 @@
-hello, 1234
-hello
-1234
-hello-1234
'
034-match.t TEST 4: multiple captures - status code ok got: ''
expected: '200'
034-match.t TEST 4: multiple captures - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-hello, 1234
-hello
-12
'
034-match.t TEST 4: multiple captures - status code ok got: ''
expected: '200'
034-match.t TEST 4: multiple captures - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-hello, 1234
-hello
-12
'
034-match.t TEST 17: extended mode (ignore whitespaces) - status code ok got: ''
expected: '200'
034-match.t TEST 17: extended mode (ignore whitespaces) - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-hello
-false
-hello
'
034-match.t TEST 17: extended mode (ignore whitespaces) - status code ok got: ''
expected: '200'
034-match.t TEST 17: extended mode (ignore whitespaces) - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-hello
-false
-hello
'
034-match.t TEST 8: case insensitive - status code ok got: ''
expected: '200'
034-match.t TEST 8: case insensitive - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'hello
'
034-match.t TEST 8: case insensitive - status code ok got: ''
expected: '200'
034-match.t TEST 8: case insensitive - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'hello
'
034-match.t TEST 20: anchored match (succeeded) - status code ok got: ''
expected: '200'
034-match.t TEST 20: anchored match (succeeded) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: '1234
'
034-match.t TEST 20: anchored match (succeeded) - status code ok got: ''
expected: '200'
034-match.t TEST 20: anchored match (succeeded) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: '1234
'
034-match.t TEST 11: multi-line mode (. does not match \n) - status code ok got: ''
expected: '200'
034-match.t TEST 11: multi-line mode (. does not match \n) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'hello
'
034-match.t TEST 11: multi-line mode (. does not match \n) - status code ok got: ''
expected: '200'
034-match.t TEST 11: multi-line mode (. does not match \n) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'hello
'
034-match.t TEST 21: match with ctx but no pos - status code ok got: ''
expected: '200'
034-match.t TEST 21: match with ctx but no pos - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-1234
-5
'
034-match.t TEST 21: match with ctx but no pos - status code ok got: ''
expected: '200'
034-match.t TEST 21: match with ctx but no pos - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-1234
-5
'
034-match.t TEST 30: named subpatterns w/ extraction - status code ok got: ''
expected: '200'
034-match.t TEST 30: named subpatterns w/ extraction - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-hello, 1234
-hello
-hello
-nil
'
034-match.t TEST 30: named subpatterns w/ extraction - status code ok got: ''
expected: '200'
034-match.t TEST 30: named subpatterns w/ extraction - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +0,0 @@
-hello, 1234
-hello
-hello
-nil
'
034-match.t TEST 16: bad option - status code ok got: ''
expected: '200'
034-match.t TEST 16: bad option - response_body_like - response is expected () ''
doesn't match '(?^s:error: .*?unknown flag "H" \(flags "Hm"\))'
034-match.t TEST 16: bad option - status code ok got: ''
expected: '200'
034-match.t TEST 16: bad option - response_body_like - response is expected () ''
doesn't match '(?^s:error: .*?unknown flag "H" \(flags "Hm"\))'
034-match.t TEST 10: multi-line mode (^ at line head) - status code ok got: ''
expected: '200'
034-match.t TEST 10: multi-line mode (^ at line head) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'world
'
034-match.t TEST 10: multi-line mode (^ at line head) - status code ok got: ''
expected: '200'
034-match.t TEST 10: multi-line mode (^ at line head) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'world
'
034-match.t TEST 13: single-line mode (dot all) - status code ok got: ''
expected: '200'
034-match.t TEST 13: single-line mode (dot all) - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-hello
-world
'
034-match.t TEST 13: single-line mode (dot all) - status code ok got: ''
expected: '200'
034-match.t TEST 13: single-line mode (dot all) - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-hello
-world
'
034-match.t TEST 41: just not hit match limit - status code ok got: ''
expected: '200'
034-match.t TEST 41: just not hit match limit - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'failed to match
'
034-match.t TEST 41: just not hit match limit - status code ok got: ''
expected: '200'
034-match.t TEST 41: just not hit match limit - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'failed to match
'
034-match.t TEST 3: single capture - status code ok got: ''
expected: '200'
034-match.t TEST 3: single capture - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-1234
-12
'
034-match.t TEST 3: single capture - status code ok got: ''
expected: '200'
034-match.t TEST 3: single capture - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-1234
-12
'
034-match.t TEST 12: single-line mode (^ as normal) - status code ok got: ''
expected: '200'
034-match.t TEST 12: single-line mode (^ as normal) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'not matched: nil
'
034-match.t TEST 12: single-line mode (^ as normal) - status code ok got: ''
expected: '200'
034-match.t TEST 12: single-line mode (^ as normal) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'not matched: nil
'
034-match.t TEST 18: optional trailing captures - status code ok got: ''
expected: '200'
034-match.t TEST 18: optional trailing captures - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-1234
-1234
-
'
034-match.t TEST 18: optional trailing captures - status code ok got: ''
expected: '200'
034-match.t TEST 18: optional trailing captures - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-1234
-1234
-
'
034-match.t TEST 34: duplicate named subpatterns - status code ok got: ''
expected: '200'
034-match.t TEST 34: duplicate named subpatterns - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-hello, world
-hello
-world
-hello-world
'
034-match.t TEST 34: duplicate named subpatterns - status code ok got: ''
expected: '200'
034-match.t TEST 34: duplicate named subpatterns - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +0,0 @@
-hello, world
-hello
-world
-hello-world
'
034-match.t TEST 1: sanity - status code ok got: ''
expected: '200'
034-match.t TEST 1: sanity - response_body - response is expected (repeated req 0, req 0) got: ''
expected: '1234
'
034-match.t TEST 1: sanity - status code ok got: ''
expected: '200'
034-match.t TEST 1: sanity - response_body - response is expected (repeated req 1, req 0) got: ''
expected: '1234
'
034-match.t TEST 9: UTF-8 mode - status code ok got: ''
expected: '200'
034-match.t TEST 9: UTF-8 mode - response_body_like - response is expected () ''
doesn't match '(?^s:^(?:FAIL: bad argument \#2 to '\?' \(pcre_compile\(\) failed: this version of PCRE is not compiled with PCRE_UTF8 support in "HELLO\.\{2\}" at "HELLO\.\{2\}"\)|hello章亦)$)'
034-match.t TEST 9: UTF-8 mode - status code ok got: ''
expected: '200'
034-match.t TEST 9: UTF-8 mode - response_body_like - response is expected () ''
doesn't match '(?^s:^(?:FAIL: bad argument \#2 to '\?' \(pcre_compile\(\) failed: this version of PCRE is not compiled with PCRE_UTF8 support in "HELLO\.\{2\}" at "HELLO\.\{2\}"\)|hello章亦)$)'
034-match.t TEST 32: named captures are empty strings - status code ok got: ''
expected: '200'
034-match.t TEST 32: named captures are empty strings - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-1234
-
-
-1234
'
034-match.t TEST 32: named captures are empty strings - status code ok got: ''
expected: '200'
034-match.t TEST 32: named captures are empty strings - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +0,0 @@
-1234
-
-
-1234
'
034-match.t TEST 39: UTF-8 mode with UTF-8 sequence checks - status code ok got: ''
expected: '200'
034-match.t TEST 39: UTF-8 mode with UTF-8 sequence checks - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'ä½ 
'
034-match.t TEST 39: UTF-8 mode with UTF-8 sequence checks - status code ok got: ''
expected: '200'
034-match.t TEST 39: UTF-8 mode with UTF-8 sequence checks - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'ä½ 
'
034-match.t TEST 42: extra table argument - status code ok got: ''
expected: '200'
034-match.t TEST 42: extra table argument - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-1: m size: 2
-1: res size: 2
-2: m size: 2
-2: res size: 2
'
034-match.t TEST 42: extra table argument - status code ok got: ''
expected: '200'
034-match.t TEST 42: extra table argument - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +0,0 @@
-1: m size: 2
-1: res size: 2
-2: m size: 2
-2: res size: 2
'
034-match.t TEST 26: bad pattern - status code ok got: ''
expected: '200'
034-match.t TEST 26: bad pattern - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'error: pcre_compile() failed: missing ) in "([0-9]+"
'
034-match.t TEST 26: bad pattern - status code ok got: ''
expected: '200'
034-match.t TEST 26: bad pattern - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'error: pcre_compile() failed: missing ) in "([0-9]+"
'
035-gmatch.t TEST 1: gmatch - status code ok got: ''
expected: '200'
035-gmatch.t TEST 1: gmatch - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "hello\x{0a}world\x{0a}"
length: 12
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 1: gmatch - status code ok got: ''
expected: '200'
035-gmatch.t TEST 1: gmatch - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "hello\x{0a}world\x{0a}"
length: 12
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 1: gmatch - status code ok got: ''
expected: '200'
035-gmatch.t TEST 1: gmatch - response_body - response is expected (repeated req 2, req 0) got: ""
length: 0
expected: "hello\x{0a}world\x{0a}"
length: 12
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 1: gmatch - status code ok got: ''
expected: '200'
035-gmatch.t TEST 1: gmatch - response_body - response is expected (repeated req 3, req 0) got: ""
length: 0
expected: "hello\x{0a}world\x{0a}"
length: 12
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 1: gmatch - status code ok got: ''
expected: '200'
035-gmatch.t TEST 1: gmatch - response_body - response is expected (repeated req 4, req 0) got: ""
length: 0
expected: "hello\x{0a}world\x{0a}"
length: 12
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 12: with regex cache - status code ok got: ''
expected: '200'
035-gmatch.t TEST 12: with regex cache - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "hello\x{0a}okay\x{0a}nil\x{0a}"
length: 15
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 12: with regex cache - status code ok got: ''
expected: '200'
035-gmatch.t TEST 12: with regex cache - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "hello\x{0a}okay\x{0a}nil\x{0a}"
length: 15
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 12: with regex cache - status code ok got: ''
expected: '200'
035-gmatch.t TEST 12: with regex cache - response_body - response is expected (repeated req 2, req 0) got: ""
length: 0
expected: "hello\x{0a}okay\x{0a}nil\x{0a}"
length: 15
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 12: with regex cache - status code ok got: ''
expected: '200'
035-gmatch.t TEST 12: with regex cache - response_body - response is expected (repeated req 3, req 0) got: ""
length: 0
expected: "hello\x{0a}okay\x{0a}nil\x{0a}"
length: 15
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 12: with regex cache - status code ok got: ''
expected: '200'
035-gmatch.t TEST 12: with regex cache - response_body - response is expected (repeated req 4, req 0) got: ""
length: 0
expected: "hello\x{0a}okay\x{0a}nil\x{0a}"
length: 15
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 28: UTF-8 mode with UTF-8 sequence checks - status code ok got: ''
expected: '200'
035-gmatch.t TEST 28: UTF-8 mode with UTF-8 sequence checks - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "\x{e4}\x{bd}\x{a0}\x{0a}"
length: 4
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 28: UTF-8 mode with UTF-8 sequence checks - status code ok got: ''
expected: '200'
035-gmatch.t TEST 28: UTF-8 mode with UTF-8 sequence checks - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "\x{e4}\x{bd}\x{a0}\x{0a}"
length: 4
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 28: UTF-8 mode with UTF-8 sequence checks - status code ok got: ''
expected: '200'
035-gmatch.t TEST 28: UTF-8 mode with UTF-8 sequence checks - response_body - response is expected (repeated req 2, req 0) got: ""
length: 0
expected: "\x{e4}\x{bd}\x{a0}\x{0a}"
length: 4
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 28: UTF-8 mode with UTF-8 sequence checks - status code ok got: ''
expected: '200'
035-gmatch.t TEST 28: UTF-8 mode with UTF-8 sequence checks - response_body - response is expected (repeated req 3, req 0) got: ""
length: 0
expected: "\x{e4}\x{bd}\x{a0}\x{0a}"
length: 4
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 28: UTF-8 mode with UTF-8 sequence checks - status code ok got: ''
expected: '200'
035-gmatch.t TEST 28: UTF-8 mode with UTF-8 sequence checks - response_body - response is expected (repeated req 4, req 0) got: ""
length: 0
expected: "\x{e4}\x{bd}\x{a0}\x{0a}"
length: 4
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 18: gmatch iterator used by another request - status code ok got: ''
expected: '200'
035-gmatch.t TEST 18: gmatch iterator used by another request - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "matched\x{0a}matched\x{0a}"
length: 16
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 18: gmatch iterator used by another request - status code ok got: ''
expected: '200'
035-gmatch.t TEST 18: gmatch iterator used by another request - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "matched\x{0a}matched\x{0a}"
length: 16
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 18: gmatch iterator used by another request - status code ok got: ''
expected: '200'
035-gmatch.t TEST 18: gmatch iterator used by another request - response_body - response is expected (repeated req 2, req 0) got: ""
length: 0
expected: "matched\x{0a}matched\x{0a}"
length: 16
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 18: gmatch iterator used by another request - status code ok got: ''
expected: '200'
035-gmatch.t TEST 18: gmatch iterator used by another request - response_body - response is expected (repeated req 3, req 0) got: ""
length: 0
expected: "matched\x{0a}matched\x{0a}"
length: 16
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 18: gmatch iterator used by another request - status code ok got: ''
expected: '200'
035-gmatch.t TEST 18: gmatch iterator used by another request - response_body - response is expected (repeated req 4, req 0) got: ""
length: 0
expected: "matched\x{0a}matched\x{0a}"
length: 16
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 22: gmatch with duplicate named pattern w/ extraction - status code ok got: ''
expected: '200'
035-gmatch.t TEST 22: gmatch with duplicate named pattern w/ extraction - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "hello, 1234\x{0a}hello\x{0a}1234\x{0a}hello-1234\x{0a}not matched!\x{0a}"
length: 47
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 22: gmatch with duplicate named pattern w/ extraction - status code ok got: ''
expected: '200'
035-gmatch.t TEST 22: gmatch with duplicate named pattern w/ extraction - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "hello, 1234\x{0a}hello\x{0a}1234\x{0a}hello-1234\x{0a}not matched!\x{0a}"
length: 47
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 22: gmatch with duplicate named pattern w/ extraction - status code ok got: ''
expected: '200'
035-gmatch.t TEST 22: gmatch with duplicate named pattern w/ extraction - response_body - response is expected (repeated req 2, req 0) got: ""
length: 0
expected: "hello, 1234\x{0a}hello\x{0a}1234\x{0a}hello-1234\x{0a}not matched!\x{0a}"
length: 47
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 22: gmatch with duplicate named pattern w/ extraction - status code ok got: ''
expected: '200'
035-gmatch.t TEST 22: gmatch with duplicate named pattern w/ extraction - response_body - response is expected (repeated req 3, req 0) got: ""
length: 0
expected: "hello, 1234\x{0a}hello\x{0a}1234\x{0a}hello-1234\x{0a}not matched!\x{0a}"
length: 47
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 22: gmatch with duplicate named pattern w/ extraction - status code ok got: ''
expected: '200'
035-gmatch.t TEST 22: gmatch with duplicate named pattern w/ extraction - response_body - response is expected (repeated req 4, req 0) got: ""
length: 0
expected: "hello, 1234\x{0a}hello\x{0a}1234\x{0a}hello-1234\x{0a}not matched!\x{0a}"
length: 47
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 3: match but iterate more times (not just match at the end) - status code ok got: ''
expected: '200'
035-gmatch.t TEST 3: match but iterate more times (not just match at the end) - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "hello\x{0a}world\x{0a}nil\x{0a}nil\x{0a}"
length: 20
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 3: match but iterate more times (not just match at the end) - status code ok got: ''
expected: '200'
035-gmatch.t TEST 3: match but iterate more times (not just match at the end) - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "hello\x{0a}world\x{0a}nil\x{0a}nil\x{0a}"
length: 20
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 3: match but iterate more times (not just match at the end) - status code ok got: ''
expected: '200'
035-gmatch.t TEST 3: match but iterate more times (not just match at the end) - response_body - response is expected (repeated req 2, req 0) got: ""
length: 0
expected: "hello\x{0a}world\x{0a}nil\x{0a}nil\x{0a}"
length: 20
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 3: match but iterate more times (not just match at the end) - status code ok got: ''
expected: '200'
035-gmatch.t TEST 3: match but iterate more times (not just match at the end) - response_body - response is expected (repeated req 3, req 0) got: ""
length: 0
expected: "hello\x{0a}world\x{0a}nil\x{0a}nil\x{0a}"
length: 20
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 3: match but iterate more times (not just match at the end) - status code ok got: ''
expected: '200'
035-gmatch.t TEST 3: match but iterate more times (not just match at the end) - response_body - response is expected (repeated req 4, req 0) got: ""
length: 0
expected: "hello\x{0a}world\x{0a}nil\x{0a}nil\x{0a}"
length: 20
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 29: just hit match limit - status code ok got: ''
expected: '200'
035-gmatch.t TEST 29: just hit match limit - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "error: pcre_exec() failed: -8\x{0a}"
length: 30
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 29: just hit match limit - status code ok got: ''
expected: '200'
035-gmatch.t TEST 29: just hit match limit - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "error: pcre_exec() failed: -8\x{0a}"
length: 30
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 29: just hit match limit - status code ok got: ''
expected: '200'
035-gmatch.t TEST 29: just hit match limit - response_body - response is expected (repeated req 2, req 0) got: ""
length: 0
expected: "error: pcre_exec() failed: -8\x{0a}"
length: 30
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 29: just hit match limit - status code ok got: ''
expected: '200'
035-gmatch.t TEST 29: just hit match limit - response_body - response is expected (repeated req 3, req 0) got: ""
length: 0
expected: "error: pcre_exec() failed: -8\x{0a}"
length: 30
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 29: just hit match limit - status code ok got: ''
expected: '200'
035-gmatch.t TEST 29: just hit match limit - response_body - response is expected (repeated req 4, req 0) got: ""
length: 0
expected: "error: pcre_exec() failed: -8\x{0a}"
length: 30
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 2: fail to match - status code ok got: ''
expected: '200'
035-gmatch.t TEST 2: fail to match - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "nil\x{0a}nil\x{0a}nil\x{0a}"
length: 12
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 2: fail to match - status code ok got: ''
expected: '200'
035-gmatch.t TEST 2: fail to match - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "nil\x{0a}nil\x{0a}nil\x{0a}"
length: 12
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 2: fail to match - status code ok got: ''
expected: '200'
035-gmatch.t TEST 2: fail to match - response_body - response is expected (repeated req 2, req 0) got: ""
length: 0
expected: "nil\x{0a}nil\x{0a}nil\x{0a}"
length: 12
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 2: fail to match - status code ok got: ''
expected: '200'
035-gmatch.t TEST 2: fail to match - response_body - response is expected (repeated req 3, req 0) got: ""
length: 0
expected: "nil\x{0a}nil\x{0a}nil\x{0a}"
length: 12
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 2: fail to match - status code ok got: ''
expected: '200'
035-gmatch.t TEST 2: fail to match - response_body - response is expected (repeated req 4, req 0) got: ""
length: 0
expected: "nil\x{0a}nil\x{0a}nil\x{0a}"
length: 12
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 24: named captures are empty (with regex cache) - status code ok got: ''
expected: '200'
035-gmatch.t TEST 24: named captures are empty (with regex cache) - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "1234\x{0a}\x{0a}\x{0a}1234\x{0a}"
length: 12
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 24: named captures are empty (with regex cache) - status code ok got: ''
expected: '200'
035-gmatch.t TEST 24: named captures are empty (with regex cache) - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "1234\x{0a}\x{0a}\x{0a}1234\x{0a}"
length: 12
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 24: named captures are empty (with regex cache) - status code ok got: ''
expected: '200'
035-gmatch.t TEST 24: named captures are empty (with regex cache) - response_body - response is expected (repeated req 2, req 0) got: ""
length: 0
expected: "1234\x{0a}\x{0a}\x{0a}1234\x{0a}"
length: 12
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 24: named captures are empty (with regex cache) - status code ok got: ''
expected: '200'
035-gmatch.t TEST 24: named captures are empty (with regex cache) - response_body - response is expected (repeated req 3, req 0) got: ""
length: 0
expected: "1234\x{0a}\x{0a}\x{0a}1234\x{0a}"
length: 12
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 24: named captures are empty (with regex cache) - status code ok got: ''
expected: '200'
035-gmatch.t TEST 24: named captures are empty (with regex cache) - response_body - response is expected (repeated req 4, req 0) got: ""
length: 0
expected: "1234\x{0a}\x{0a}\x{0a}1234\x{0a}"
length: 12
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 26: bad UTF-8 - status code ok got: ''
expected: '200'
035-gmatch.t TEST 26: bad UTF-8 - response_body_like - response is expected () ''
doesn't match '(?^s:error: pcre_exec\(\) failed: -10)'
035-gmatch.t TEST 26: bad UTF-8 - status code ok got: ''
expected: '200'
035-gmatch.t TEST 26: bad UTF-8 - response_body_like - response is expected () ''
doesn't match '(?^s:error: pcre_exec\(\) failed: -10)'
035-gmatch.t TEST 26: bad UTF-8 - status code ok got: ''
expected: '200'
035-gmatch.t TEST 26: bad UTF-8 - response_body_like - response is expected () ''
doesn't match '(?^s:error: pcre_exec\(\) failed: -10)'
035-gmatch.t TEST 26: bad UTF-8 - status code ok got: ''
expected: '200'
035-gmatch.t TEST 26: bad UTF-8 - response_body_like - response is expected () ''
doesn't match '(?^s:error: pcre_exec\(\) failed: -10)'
035-gmatch.t TEST 26: bad UTF-8 - status code ok got: ''
expected: '200'
035-gmatch.t TEST 26: bad UTF-8 - response_body_like - response is expected () ''
doesn't match '(?^s:error: pcre_exec\(\) failed: -10)'
035-gmatch.t TEST 10: gmatch (look-behind assertion) - status code ok got: ''
expected: '200'
035-gmatch.t TEST 10: gmatch (look-behind assertion) - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "bar\x{0a}baz\x{0a}"
length: 8
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 10: gmatch (look-behind assertion) - status code ok got: ''
expected: '200'
035-gmatch.t TEST 10: gmatch (look-behind assertion) - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "bar\x{0a}baz\x{0a}"
length: 8
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 10: gmatch (look-behind assertion) - status code ok got: ''
expected: '200'
035-gmatch.t TEST 10: gmatch (look-behind assertion) - response_body - response is expected (repeated req 2, req 0) got: ""
length: 0
expected: "bar\x{0a}baz\x{0a}"
length: 8
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 10: gmatch (look-behind assertion) - status code ok got: ''
expected: '200'
035-gmatch.t TEST 10: gmatch (look-behind assertion) - response_body - response is expected (repeated req 3, req 0) got: ""
length: 0
expected: "bar\x{0a}baz\x{0a}"
length: 8
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 10: gmatch (look-behind assertion) - status code ok got: ''
expected: '200'
035-gmatch.t TEST 10: gmatch (look-behind assertion) - response_body - response is expected (repeated req 4, req 0) got: ""
length: 0
expected: "bar\x{0a}baz\x{0a}"
length: 8
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 16: gmatch matched but only iterate once and still matches remain - status code ok got: ''
expected: '200'
035-gmatch.t TEST 16: gmatch matched but only iterate once and still matches remain - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "hello\x{0a}"
length: 6
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 16: gmatch matched but only iterate once and still matches remain - status code ok got: ''
expected: '200'
035-gmatch.t TEST 16: gmatch matched but only iterate once and still matches remain - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "hello\x{0a}"
length: 6
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 16: gmatch matched but only iterate once and still matches remain - status code ok got: ''
expected: '200'
035-gmatch.t TEST 16: gmatch matched but only iterate once and still matches remain - response_body - response is expected (repeated req 2, req 0) got: ""
length: 0
expected: "hello\x{0a}"
length: 6
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 16: gmatch matched but only iterate once and still matches remain - status code ok got: ''
expected: '200'
035-gmatch.t TEST 16: gmatch matched but only iterate once and still matches remain - response_body - response is expected (repeated req 3, req 0) got: ""
length: 0
expected: "hello\x{0a}"
length: 6
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 16: gmatch matched but only iterate once and still matches remain - status code ok got: ''
expected: '200'
035-gmatch.t TEST 16: gmatch matched but only iterate once and still matches remain - response_body - response is expected (repeated req 4, req 0) got: ""
length: 0
expected: "hello\x{0a}"
length: 6
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 9: anchored match (succeeded) - status code ok got: ''
expected: '200'
035-gmatch.t TEST 9: anchored match (succeeded) - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "1\x{0a}2\x{0a}nil\x{0a}"
length: 8
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 9: anchored match (succeeded) - status code ok got: ''
expected: '200'
035-gmatch.t TEST 9: anchored match (succeeded) - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "1\x{0a}2\x{0a}nil\x{0a}"
length: 8
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 9: anchored match (succeeded) - status code ok got: ''
expected: '200'
035-gmatch.t TEST 9: anchored match (succeeded) - response_body - response is expected (repeated req 2, req 0) got: ""
length: 0
expected: "1\x{0a}2\x{0a}nil\x{0a}"
length: 8
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 9: anchored match (succeeded) - status code ok got: ''
expected: '200'
035-gmatch.t TEST 9: anchored match (succeeded) - response_body - response is expected (repeated req 3, req 0) got: ""
length: 0
expected: "1\x{0a}2\x{0a}nil\x{0a}"
length: 8
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 9: anchored match (succeeded) - status code ok got: ''
expected: '200'
035-gmatch.t TEST 9: anchored match (succeeded) - response_body - response is expected (repeated req 4, req 0) got: ""
length: 0
expected: "1\x{0a}2\x{0a}nil\x{0a}"
length: 8
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 19: gmatch (empty matched string) - status code ok got: ''
expected: '200'
035-gmatch.t TEST 19: gmatch (empty matched string) - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "matched: []\x{0a}matched: []\x{0a}matched: []\x{0a}matched: []\x{0a}ma"...
length: 72
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 19: gmatch (empty matched string) - status code ok got: ''
expected: '200'
035-gmatch.t TEST 19: gmatch (empty matched string) - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "matched: []\x{0a}matched: []\x{0a}matched: []\x{0a}matched: []\x{0a}ma"...
length: 72
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 19: gmatch (empty matched string) - status code ok got: ''
expected: '200'
035-gmatch.t TEST 19: gmatch (empty matched string) - response_body - response is expected (repeated req 2, req 0) got: ""
length: 0
expected: "matched: []\x{0a}matched: []\x{0a}matched: []\x{0a}matched: []\x{0a}ma"...
length: 72
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 19: gmatch (empty matched string) - status code ok got: ''
expected: '200'
035-gmatch.t TEST 19: gmatch (empty matched string) - response_body - response is expected (repeated req 3, req 0) got: ""
length: 0
expected: "matched: []\x{0a}matched: []\x{0a}matched: []\x{0a}matched: []\x{0a}ma"...
length: 72
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 19: gmatch (empty matched string) - status code ok got: ''
expected: '200'
035-gmatch.t TEST 19: gmatch (empty matched string) - response_body - response is expected (repeated req 4, req 0) got: ""
length: 0
expected: "matched: []\x{0a}matched: []\x{0a}matched: []\x{0a}matched: []\x{0a}ma"...
length: 72
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 15: gmatch matched but no iterate - status code ok got: ''
expected: '200'
035-gmatch.t TEST 15: gmatch matched but no iterate - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "done\x{0a}"
length: 5
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 15: gmatch matched but no iterate - status code ok got: ''
expected: '200'
035-gmatch.t TEST 15: gmatch matched but no iterate - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "done\x{0a}"
length: 5
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 15: gmatch matched but no iterate - status code ok got: ''
expected: '200'
035-gmatch.t TEST 15: gmatch matched but no iterate - response_body - response is expected (repeated req 2, req 0) got: ""
length: 0
expected: "done\x{0a}"
length: 5
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 15: gmatch matched but no iterate - status code ok got: ''
expected: '200'
035-gmatch.t TEST 15: gmatch matched but no iterate - response_body - response is expected (repeated req 3, req 0) got: ""
length: 0
expected: "done\x{0a}"
length: 5
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 15: gmatch matched but no iterate - status code ok got: ''
expected: '200'
035-gmatch.t TEST 15: gmatch matched but no iterate - response_body - response is expected (repeated req 4, req 0) got: ""
length: 0
expected: "done\x{0a}"
length: 5
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 25: bad pattern - status code ok got: ''
expected: '200'
035-gmatch.t TEST 25: bad pattern - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "error: pcre_compile() failed: missing ) in "(abc"\x{0a}"
length: 50
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 25: bad pattern - status code ok got: ''
expected: '200'
035-gmatch.t TEST 25: bad pattern - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "error: pcre_compile() failed: missing ) in "(abc"\x{0a}"
length: 50
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 25: bad pattern - status code ok got: ''
expected: '200'
035-gmatch.t TEST 25: bad pattern - response_body - response is expected (repeated req 2, req 0) got: ""
length: 0
expected: "error: pcre_compile() failed: missing ) in "(abc"\x{0a}"
length: 50
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 25: bad pattern - status code ok got: ''
expected: '200'
035-gmatch.t TEST 25: bad pattern - response_body - response is expected (repeated req 3, req 0) got: ""
length: 0
expected: "error: pcre_compile() failed: missing ) in "(abc"\x{0a}"
length: 50
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 25: bad pattern - status code ok got: ''
expected: '200'
035-gmatch.t TEST 25: bad pattern - response_body - response is expected (repeated req 4, req 0) got: ""
length: 0
expected: "error: pcre_compile() failed: missing ) in "(abc"\x{0a}"
length: 50
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 21: gmatch with multiple named pattern - status code ok got: ''
expected: '200'
035-gmatch.t TEST 21: gmatch with multiple named pattern - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "1234\x{0a}1234\x{0a}false\x{0a}1234\x{0a}false\x{0a}abcd\x{0a}false\x{0a}abcd\x{0a}false\x{0a}a"...
length: 54
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 21: gmatch with multiple named pattern - status code ok got: ''
expected: '200'
035-gmatch.t TEST 21: gmatch with multiple named pattern - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "1234\x{0a}1234\x{0a}false\x{0a}1234\x{0a}false\x{0a}abcd\x{0a}false\x{0a}abcd\x{0a}false\x{0a}a"...
length: 54
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 21: gmatch with multiple named pattern - status code ok got: ''
expected: '200'
035-gmatch.t TEST 21: gmatch with multiple named pattern - response_body - response is expected (repeated req 2, req 0) got: ""
length: 0
expected: "1234\x{0a}1234\x{0a}false\x{0a}1234\x{0a}false\x{0a}abcd\x{0a}false\x{0a}abcd\x{0a}false\x{0a}a"...
length: 54
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 21: gmatch with multiple named pattern - status code ok got: ''
expected: '200'
035-gmatch.t TEST 21: gmatch with multiple named pattern - response_body - response is expected (repeated req 3, req 0) got: ""
length: 0
expected: "1234\x{0a}1234\x{0a}false\x{0a}1234\x{0a}false\x{0a}abcd\x{0a}false\x{0a}abcd\x{0a}false\x{0a}a"...
length: 54
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 21: gmatch with multiple named pattern - status code ok got: ''
expected: '200'
035-gmatch.t TEST 21: gmatch with multiple named pattern - response_body - response is expected (repeated req 4, req 0) got: ""
length: 0
expected: "1234\x{0a}1234\x{0a}false\x{0a}1234\x{0a}false\x{0a}abcd\x{0a}false\x{0a}abcd\x{0a}false\x{0a}a"...
length: 54
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 20: gmatch with named pattern - status code ok got: ''
expected: '200'
035-gmatch.t TEST 20: gmatch with named pattern - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "1234\x{0a}1234\x{0a}1234\x{0a}1234\x{0a}1234\x{0a}1234\x{0a}"
length: 30
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 20: gmatch with named pattern - status code ok got: ''
expected: '200'
035-gmatch.t TEST 20: gmatch with named pattern - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "1234\x{0a}1234\x{0a}1234\x{0a}1234\x{0a}1234\x{0a}1234\x{0a}"
length: 30
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 20: gmatch with named pattern - status code ok got: ''
expected: '200'
035-gmatch.t TEST 20: gmatch with named pattern - response_body - response is expected (repeated req 2, req 0) got: ""
length: 0
expected: "1234\x{0a}1234\x{0a}1234\x{0a}1234\x{0a}1234\x{0a}1234\x{0a}"
length: 30
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 20: gmatch with named pattern - status code ok got: ''
expected: '200'
035-gmatch.t TEST 20: gmatch with named pattern - response_body - response is expected (repeated req 3, req 0) got: ""
length: 0
expected: "1234\x{0a}1234\x{0a}1234\x{0a}1234\x{0a}1234\x{0a}1234\x{0a}"
length: 30
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 20: gmatch with named pattern - status code ok got: ''
expected: '200'
035-gmatch.t TEST 20: gmatch with named pattern - response_body - response is expected (repeated req 4, req 0) got: ""
length: 0
expected: "1234\x{0a}1234\x{0a}1234\x{0a}1234\x{0a}1234\x{0a}1234\x{0a}"
length: 30
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 5: anchored match (failed) - status code ok got: ''
expected: '200'
035-gmatch.t TEST 5: anchored match (failed) - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "nil\x{0a}"
length: 4
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 5: anchored match (failed) - status code ok got: ''
expected: '200'
035-gmatch.t TEST 5: anchored match (failed) - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "nil\x{0a}"
length: 4
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 5: anchored match (failed) - status code ok got: ''
expected: '200'
035-gmatch.t TEST 5: anchored match (failed) - response_body - response is expected (repeated req 2, req 0) got: ""
length: 0
expected: "nil\x{0a}"
length: 4
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 5: anchored match (failed) - status code ok got: ''
expected: '200'
035-gmatch.t TEST 5: anchored match (failed) - response_body - response is expected (repeated req 3, req 0) got: ""
length: 0
expected: "nil\x{0a}"
length: 4
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 5: anchored match (failed) - status code ok got: ''
expected: '200'
035-gmatch.t TEST 5: anchored match (failed) - response_body - response is expected (repeated req 4, req 0) got: ""
length: 0
expected: "nil\x{0a}"
length: 4
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 27: UTF-8 mode without UTF-8 sequence checks - status code ok got: ''
expected: '200'
035-gmatch.t TEST 27: UTF-8 mode without UTF-8 sequence checks - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "\x{e4}\x{bd}\x{a0}\x{0a}"
length: 4
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 27: UTF-8 mode without UTF-8 sequence checks - status code ok got: ''
expected: '200'
035-gmatch.t TEST 27: UTF-8 mode without UTF-8 sequence checks - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "\x{e4}\x{bd}\x{a0}\x{0a}"
length: 4
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 27: UTF-8 mode without UTF-8 sequence checks - status code ok got: ''
expected: '200'
035-gmatch.t TEST 27: UTF-8 mode without UTF-8 sequence checks - response_body - response is expected (repeated req 2, req 0) got: ""
length: 0
expected: "\x{e4}\x{bd}\x{a0}\x{0a}"
length: 4
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 27: UTF-8 mode without UTF-8 sequence checks - status code ok got: ''
expected: '200'
035-gmatch.t TEST 27: UTF-8 mode without UTF-8 sequence checks - response_body - response is expected (repeated req 3, req 0) got: ""
length: 0
expected: "\x{e4}\x{bd}\x{a0}\x{0a}"
length: 4
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 27: UTF-8 mode without UTF-8 sequence checks - status code ok got: ''
expected: '200'
035-gmatch.t TEST 27: UTF-8 mode without UTF-8 sequence checks - response_body - response is expected (repeated req 4, req 0) got: ""
length: 0
expected: "\x{e4}\x{bd}\x{a0}\x{0a}"
length: 4
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 6: anchored match (succeeded) - status code ok got: ''
expected: '200'
035-gmatch.t TEST 6: anchored match (succeeded) - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "1\x{0a}2\x{0a}nil\x{0a}"
length: 8
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 6: anchored match (succeeded) - status code ok got: ''
expected: '200'
035-gmatch.t TEST 6: anchored match (succeeded) - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "1\x{0a}2\x{0a}nil\x{0a}"
length: 8
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 6: anchored match (succeeded) - status code ok got: ''
expected: '200'
035-gmatch.t TEST 6: anchored match (succeeded) - response_body - response is expected (repeated req 2, req 0) got: ""
length: 0
expected: "1\x{0a}2\x{0a}nil\x{0a}"
length: 8
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 6: anchored match (succeeded) - status code ok got: ''
expected: '200'
035-gmatch.t TEST 6: anchored match (succeeded) - response_body - response is expected (repeated req 3, req 0) got: ""
length: 0
expected: "1\x{0a}2\x{0a}nil\x{0a}"
length: 8
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 6: anchored match (succeeded) - status code ok got: ''
expected: '200'
035-gmatch.t TEST 6: anchored match (succeeded) - response_body - response is expected (repeated req 4, req 0) got: ""
length: 0
expected: "1\x{0a}2\x{0a}nil\x{0a}"
length: 8
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 23: named captures are empty - status code ok got: ''
expected: '200'
035-gmatch.t TEST 23: named captures are empty - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "1234\x{0a}\x{0a}\x{0a}1234\x{0a}"
length: 12
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 23: named captures are empty - status code ok got: ''
expected: '200'
035-gmatch.t TEST 23: named captures are empty - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "1234\x{0a}\x{0a}\x{0a}1234\x{0a}"
length: 12
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 23: named captures are empty - status code ok got: ''
expected: '200'
035-gmatch.t TEST 23: named captures are empty - response_body - response is expected (repeated req 2, req 0) got: ""
length: 0
expected: "1234\x{0a}\x{0a}\x{0a}1234\x{0a}"
length: 12
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 23: named captures are empty - status code ok got: ''
expected: '200'
035-gmatch.t TEST 23: named captures are empty - response_body - response is expected (repeated req 3, req 0) got: ""
length: 0
expected: "1234\x{0a}\x{0a}\x{0a}1234\x{0a}"
length: 12
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 23: named captures are empty - status code ok got: ''
expected: '200'
035-gmatch.t TEST 23: named captures are empty - response_body - response is expected (repeated req 4, req 0) got: ""
length: 0
expected: "1234\x{0a}\x{0a}\x{0a}1234\x{0a}"
length: 12
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 8: non-anchored gmatch (with regex cache) - status code ok got: ''
expected: '200'
035-gmatch.t TEST 8: non-anchored gmatch (with regex cache) - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "1\x{0a}2\x{0a}3\x{0a}4\x{0a}nil\x{0a}"
length: 12
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 8: non-anchored gmatch (with regex cache) - status code ok got: ''
expected: '200'
035-gmatch.t TEST 8: non-anchored gmatch (with regex cache) - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "1\x{0a}2\x{0a}3\x{0a}4\x{0a}nil\x{0a}"
length: 12
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 8: non-anchored gmatch (with regex cache) - status code ok got: ''
expected: '200'
035-gmatch.t TEST 8: non-anchored gmatch (with regex cache) - response_body - response is expected (repeated req 2, req 0) got: ""
length: 0
expected: "1\x{0a}2\x{0a}3\x{0a}4\x{0a}nil\x{0a}"
length: 12
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 8: non-anchored gmatch (with regex cache) - status code ok got: ''
expected: '200'
035-gmatch.t TEST 8: non-anchored gmatch (with regex cache) - response_body - response is expected (repeated req 3, req 0) got: ""
length: 0
expected: "1\x{0a}2\x{0a}3\x{0a}4\x{0a}nil\x{0a}"
length: 12
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 8: non-anchored gmatch (with regex cache) - status code ok got: ''
expected: '200'
035-gmatch.t TEST 8: non-anchored gmatch (with regex cache) - response_body - response is expected (repeated req 4, req 0) got: ""
length: 0
expected: "1\x{0a}2\x{0a}3\x{0a}4\x{0a}nil\x{0a}"
length: 12
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 4: match but iterate more times (just matched at the end) - status code ok got: ''
expected: '200'
035-gmatch.t TEST 4: match but iterate more times (just matched at the end) - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "hello\x{0a}world\x{0a}nil\x{0a}nil\x{0a}"
length: 20
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 4: match but iterate more times (just matched at the end) - status code ok got: ''
expected: '200'
035-gmatch.t TEST 4: match but iterate more times (just matched at the end) - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "hello\x{0a}world\x{0a}nil\x{0a}nil\x{0a}"
length: 20
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 4: match but iterate more times (just matched at the end) - status code ok got: ''
expected: '200'
035-gmatch.t TEST 4: match but iterate more times (just matched at the end) - response_body - response is expected (repeated req 2, req 0) got: ""
length: 0
expected: "hello\x{0a}world\x{0a}nil\x{0a}nil\x{0a}"
length: 20
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 4: match but iterate more times (just matched at the end) - status code ok got: ''
expected: '200'
035-gmatch.t TEST 4: match but iterate more times (just matched at the end) - response_body - response is expected (repeated req 3, req 0) got: ""
length: 0
expected: "hello\x{0a}world\x{0a}nil\x{0a}nil\x{0a}"
length: 20
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 4: match but iterate more times (just matched at the end) - status code ok got: ''
expected: '200'
035-gmatch.t TEST 4: match but iterate more times (just matched at the end) - response_body - response is expected (repeated req 4, req 0) got: ""
length: 0
expected: "hello\x{0a}world\x{0a}nil\x{0a}nil\x{0a}"
length: 20
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 7: non-anchored gmatch (without regex cache) - status code ok got: ''
expected: '200'
035-gmatch.t TEST 7: non-anchored gmatch (without regex cache) - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "1\x{0a}2\x{0a}3\x{0a}4\x{0a}nil\x{0a}"
length: 12
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 7: non-anchored gmatch (without regex cache) - status code ok got: ''
expected: '200'
035-gmatch.t TEST 7: non-anchored gmatch (without regex cache) - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "1\x{0a}2\x{0a}3\x{0a}4\x{0a}nil\x{0a}"
length: 12
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 7: non-anchored gmatch (without regex cache) - status code ok got: ''
expected: '200'
035-gmatch.t TEST 7: non-anchored gmatch (without regex cache) - response_body - response is expected (repeated req 2, req 0) got: ""
length: 0
expected: "1\x{0a}2\x{0a}3\x{0a}4\x{0a}nil\x{0a}"
length: 12
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 7: non-anchored gmatch (without regex cache) - status code ok got: ''
expected: '200'
035-gmatch.t TEST 7: non-anchored gmatch (without regex cache) - response_body - response is expected (repeated req 3, req 0) got: ""
length: 0
expected: "1\x{0a}2\x{0a}3\x{0a}4\x{0a}nil\x{0a}"
length: 12
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 7: non-anchored gmatch (without regex cache) - status code ok got: ''
expected: '200'
035-gmatch.t TEST 7: non-anchored gmatch (without regex cache) - response_body - response is expected (repeated req 4, req 0) got: ""
length: 0
expected: "1\x{0a}2\x{0a}3\x{0a}4\x{0a}nil\x{0a}"
length: 12
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 30: just not hit match limit - status code ok got: ''
expected: '200'
035-gmatch.t TEST 30: just not hit match limit - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "failed to match\x{0a}"
length: 16
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 30: just not hit match limit - status code ok got: ''
expected: '200'
035-gmatch.t TEST 30: just not hit match limit - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "failed to match\x{0a}"
length: 16
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 30: just not hit match limit - status code ok got: ''
expected: '200'
035-gmatch.t TEST 30: just not hit match limit - response_body - response is expected (repeated req 2, req 0) got: ""
length: 0
expected: "failed to match\x{0a}"
length: 16
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 30: just not hit match limit - status code ok got: ''
expected: '200'
035-gmatch.t TEST 30: just not hit match limit - response_body - response is expected (repeated req 3, req 0) got: ""
length: 0
expected: "failed to match\x{0a}"
length: 16
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 30: just not hit match limit - status code ok got: ''
expected: '200'
035-gmatch.t TEST 30: just not hit match limit - response_body - response is expected (repeated req 4, req 0) got: ""
length: 0
expected: "failed to match\x{0a}"
length: 16
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 14: disable regex cache completely - status code ok got: ''
expected: '200'
035-gmatch.t TEST 14: disable regex cache completely - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "1234\x{0a}567\x{0a}98\x{0a}"
length: 12
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 14: disable regex cache completely - status code ok got: ''
expected: '200'
035-gmatch.t TEST 14: disable regex cache completely - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "1234\x{0a}567\x{0a}98\x{0a}"
length: 12
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 14: disable regex cache completely - status code ok got: ''
expected: '200'
035-gmatch.t TEST 14: disable regex cache completely - response_body - response is expected (repeated req 2, req 0) got: ""
length: 0
expected: "1234\x{0a}567\x{0a}98\x{0a}"
length: 12
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 14: disable regex cache completely - status code ok got: ''
expected: '200'
035-gmatch.t TEST 14: disable regex cache completely - response_body - response is expected (repeated req 3, req 0) got: ""
length: 0
expected: "1234\x{0a}567\x{0a}98\x{0a}"
length: 12
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 14: disable regex cache completely - status code ok got: ''
expected: '200'
035-gmatch.t TEST 14: disable regex cache completely - response_body - response is expected (repeated req 4, req 0) got: ""
length: 0
expected: "1234\x{0a}567\x{0a}98\x{0a}"
length: 12
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 13: exceeding regex cache max entries - status code ok got: ''
expected: '200'
035-gmatch.t TEST 13: exceeding regex cache max entries - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "1234\x{0a}567\x{0a}98\x{0a}"
length: 12
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 13: exceeding regex cache max entries - status code ok got: ''
expected: '200'
035-gmatch.t TEST 13: exceeding regex cache max entries - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "1234\x{0a}567\x{0a}98\x{0a}"
length: 12
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 13: exceeding regex cache max entries - status code ok got: ''
expected: '200'
035-gmatch.t TEST 13: exceeding regex cache max entries - response_body - response is expected (repeated req 2, req 0) got: ""
length: 0
expected: "1234\x{0a}567\x{0a}98\x{0a}"
length: 12
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 13: exceeding regex cache max entries - status code ok got: ''
expected: '200'
035-gmatch.t TEST 13: exceeding regex cache max entries - response_body - response is expected (repeated req 3, req 0) got: ""
length: 0
expected: "1234\x{0a}567\x{0a}98\x{0a}"
length: 12
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 13: exceeding regex cache max entries - status code ok got: ''
expected: '200'
035-gmatch.t TEST 13: exceeding regex cache max entries - response_body - response is expected (repeated req 4, req 0) got: ""
length: 0
expected: "1234\x{0a}567\x{0a}98\x{0a}"
length: 12
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 17: gmatch matched but no iterate and early forced GC - status code ok got: ''
expected: '200'
035-gmatch.t TEST 17: gmatch matched but no iterate and early forced GC - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "done\x{0a}"
length: 5
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 17: gmatch matched but no iterate and early forced GC - status code ok got: ''
expected: '200'
035-gmatch.t TEST 17: gmatch matched but no iterate and early forced GC - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "done\x{0a}"
length: 5
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 17: gmatch matched but no iterate and early forced GC - status code ok got: ''
expected: '200'
035-gmatch.t TEST 17: gmatch matched but no iterate and early forced GC - response_body - response is expected (repeated req 2, req 0) got: ""
length: 0
expected: "done\x{0a}"
length: 5
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 17: gmatch matched but no iterate and early forced GC - status code ok got: ''
expected: '200'
035-gmatch.t TEST 17: gmatch matched but no iterate and early forced GC - response_body - response is expected (repeated req 3, req 0) got: ""
length: 0
expected: "done\x{0a}"
length: 5
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 17: gmatch matched but no iterate and early forced GC - status code ok got: ''
expected: '200'
035-gmatch.t TEST 17: gmatch matched but no iterate and early forced GC - response_body - response is expected (repeated req 4, req 0) got: ""
length: 0
expected: "done\x{0a}"
length: 5
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 11: gmatch (look-behind assertion 2) - status code ok got: ''
expected: '200'
035-gmatch.t TEST 11: gmatch (look-behind assertion 2) - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "bar\x{0a}baz\x{0a}"
length: 8
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 11: gmatch (look-behind assertion 2) - status code ok got: ''
expected: '200'
035-gmatch.t TEST 11: gmatch (look-behind assertion 2) - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "bar\x{0a}baz\x{0a}"
length: 8
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 11: gmatch (look-behind assertion 2) - status code ok got: ''
expected: '200'
035-gmatch.t TEST 11: gmatch (look-behind assertion 2) - response_body - response is expected (repeated req 2, req 0) got: ""
length: 0
expected: "bar\x{0a}baz\x{0a}"
length: 8
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 11: gmatch (look-behind assertion 2) - status code ok got: ''
expected: '200'
035-gmatch.t TEST 11: gmatch (look-behind assertion 2) - response_body - response is expected (repeated req 3, req 0) got: ""
length: 0
expected: "bar\x{0a}baz\x{0a}"
length: 8
strings begin to differ at char 1 (line 1 column 1)
035-gmatch.t TEST 11: gmatch (look-behind assertion 2) - status code ok got: ''
expected: '200'
035-gmatch.t TEST 11: gmatch (look-behind assertion 2) - response_body - response is expected (repeated req 4, req 0) got: ""
length: 0
expected: "bar\x{0a}baz\x{0a}"
length: 8
strings begin to differ at char 1 (line 1 column 1)
036-sub.t TEST 28: just not hit match limit - status code ok got: ''
expected: '200'
036-sub.t TEST 28: just not hit match limit - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'sub: 0
'
036-sub.t TEST 28: just not hit match limit - status code ok got: ''
expected: '200'
036-sub.t TEST 28: just not hit match limit - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'sub: 0
'
036-sub.t TEST 20: matched and with variables using named patterns in func - status code ok got: ''
expected: '200'
036-sub.t TEST 20: matched and with variables using named patterns in func - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-a [b c] [b] [c] d
-1
'
036-sub.t TEST 20: matched and with variables using named patterns in func - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:02:12 [alert] 7955\#0: worker process 7966 exited on signal 11" (req 0) 2020/10/27 05:02:12 [debug] 7955\#0: shmtx forced unlock
2020/10/27 05:02:12 [debug] 7955\#0: wake up, sigio 0
2020/10/27 05:02:12 [debug] 7955\#0: reap children
2020/10/27 05:02:12 [debug] 7955\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:02:12 [debug] 7955\#0: child: 1 7966 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:02:12 [debug] 7955\#0: channel 3:4
2020/10/27 05:02:12 [notice] 7955\#0: start worker process 7988
2020/10/27 05:02:12 [debug] 7955\#0: sigsuspend
2020/10/27 05:02:12 [debug] 7988\#0: malloc: 0892AFB0:12
'
036-sub.t TEST 20: matched and with variables using named patterns in func - status code ok got: ''
expected: '200'
036-sub.t TEST 20: matched and with variables using named patterns in func - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-a [b c] [b] [c] d
-1
'
036-sub.t TEST 20: matched and with variables using named patterns in func - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:02:13 [alert] 7955\#0: worker process 7988 exited on signal 11" (req 1) 2020/10/27 05:02:13 [debug] 7955\#0: shmtx forced unlock
2020/10/27 05:02:13 [debug] 7955\#0: wake up, sigio 0
2020/10/27 05:02:13 [debug] 7955\#0: reap children
2020/10/27 05:02:13 [debug] 7955\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:02:13 [debug] 7955\#0: child: 1 7988 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:02:13 [debug] 7955\#0: channel 3:4
2020/10/27 05:02:13 [notice] 7955\#0: start worker process 7989
2020/10/27 05:02:13 [debug] 7955\#0: sigsuspend
2020/10/27 05:02:13 [debug] 7989\#0: malloc: 0892AFB0:12
'
036-sub.t TEST 22: $0 without parens - status code ok got: ''
expected: '200'
036-sub.t TEST 22: $0 without parens - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-[a] b c d
-1
'
036-sub.t TEST 22: $0 without parens - status code ok got: ''
expected: '200'
036-sub.t TEST 22: $0 without parens - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-[a] b c d
-1
'
036-sub.t TEST 2: not matched - status code ok got: ''
expected: '200'
036-sub.t TEST 2: not matched - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-hello, world
-0
'
036-sub.t TEST 2: not matched - status code ok got: ''
expected: '200'
036-sub.t TEST 2: not matched - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-hello, world
-0
'
036-sub.t TEST 12: non-anchored match - status code ok got: ''
expected: '200'
036-sub.t TEST 12: non-anchored match - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-hello, x234
-1
'
036-sub.t TEST 12: non-anchored match - status code ok got: ''
expected: '200'
036-sub.t TEST 12: non-anchored match - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-hello, x234
-1
'
036-sub.t TEST 10: trailing $ - status code ok got: ''
expected: '200'
036-sub.t TEST 10: trailing $ - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'error: failed to compile the replacement template
'
036-sub.t TEST 10: trailing $ - status code ok got: ''
expected: '200'
036-sub.t TEST 10: trailing $ - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'error: failed to compile the replacement template
'
036-sub.t TEST 25: UTF-8 mode without UTF-8 sequence checks - status code ok got: ''
expected: '200'
036-sub.t TEST 25: UTF-8 mode without UTF-8 sequence checks - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 's: a好
'
036-sub.t TEST 25: UTF-8 mode without UTF-8 sequence checks - status code ok got: ''
expected: '200'
036-sub.t TEST 25: UTF-8 mode without UTF-8 sequence checks - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 's: a好
'
036-sub.t TEST 6: matched and with bracketed variables - status code ok got: ''
expected: '200'
036-sub.t TEST 6: matched and with bracketed variables - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-[b c] [b] [c] [] [] d
-1
'
036-sub.t TEST 6: matched and with bracketed variables - status code ok got: ''
expected: '200'
036-sub.t TEST 6: matched and with bracketed variables - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-[b c] [b] [c] [] [] d
-1
'
036-sub.t TEST 11: matched but w/o variables and with literal $ - status code ok got: ''
expected: '200'
036-sub.t TEST 11: matched but w/o variables and with literal $ - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-ho$wdy, world
-1
'
036-sub.t TEST 11: matched but w/o variables and with literal $ - status code ok got: ''
expected: '200'
036-sub.t TEST 11: matched but w/o variables and with literal $ - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-ho$wdy, world
-1
'
036-sub.t TEST 30: bug: sub incorrectly swallowed a character is not the first character - status code ok got: ''
expected: '200'
036-sub.t TEST 30: bug: sub incorrectly swallowed a character is not the first character - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'ab.cd
'
036-sub.t TEST 30: bug: sub incorrectly swallowed a character is not the first character - status code ok got: ''
expected: '200'
036-sub.t TEST 30: bug: sub incorrectly swallowed a character is not the first character - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'ab.cd
'
036-sub.t TEST 8: matched and with bracketed variables (unmatched brackets) - status code ok got: ''
expected: '200'
036-sub.t TEST 8: matched and with bracketed variables (unmatched brackets) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'error: failed to compile the replacement template
'
036-sub.t TEST 8: matched and with bracketed variables (unmatched brackets) - status code ok got: ''
expected: '200'
036-sub.t TEST 8: matched and with bracketed variables (unmatched brackets) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'error: failed to compile the replacement template
'
036-sub.t TEST 17: use number to replace - status code ok got: ''
expected: '200'
036-sub.t TEST 17: use number to replace - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-true
-hello, 724
-1
'
036-sub.t TEST 17: use number to replace - status code ok got: ''
expected: '200'
036-sub.t TEST 17: use number to replace - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-true
-hello, 724
-1
'
036-sub.t TEST 5: matched and with named variables (bracketed) - status code ok got: ''
expected: '200'
036-sub.t TEST 5: matched and with named variables (bracketed) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'error: failed to compile the replacement template
'
036-sub.t TEST 5: matched and with named variables (bracketed) - status code ok got: ''
expected: '200'
036-sub.t TEST 5: matched and with named variables (bracketed) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'error: failed to compile the replacement template
'
036-sub.t TEST 14: function replace - status code ok got: ''
expected: '200'
036-sub.t TEST 14: function replace - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-hello, [3] [3]4
-1
'
036-sub.t TEST 14: function replace - status code ok got: ''
expected: '200'
036-sub.t TEST 14: function replace - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-hello, [3] [3]4
-1
'
036-sub.t TEST 23: bad pattern - status code ok got: ''
expected: '200'
036-sub.t TEST 23: bad pattern - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'error: pcre_compile() failed: missing ) in "(abc"
'
036-sub.t TEST 23: bad pattern - status code ok got: ''
expected: '200'
036-sub.t TEST 23: bad pattern - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'error: pcre_compile() failed: missing ) in "(abc"
'
036-sub.t TEST 4: matched and with named variables - status code ok got: ''
expected: '200'
036-sub.t TEST 4: matched and with named variables - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'error: failed to compile the replacement template
'
036-sub.t TEST 4: matched and with named variables - status code ok got: ''
expected: '200'
036-sub.t TEST 4: matched and with named variables - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'error: failed to compile the replacement template
'
036-sub.t TEST 15: function replace (failed) - status code ok got: ''
expected: '200'
036-sub.t TEST 15: function replace (failed) - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-hello, 34
-0
'
036-sub.t TEST 15: function replace (failed) - status code ok got: ''
expected: '200'
036-sub.t TEST 15: function replace (failed) - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-hello, 34
-0
'
036-sub.t TEST 13: anchored match - status code ok got: ''
expected: '200'
036-sub.t TEST 13: anchored match - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-hello, 1234
-0
'
036-sub.t TEST 13: anchored match - status code ok got: ''
expected: '200'
036-sub.t TEST 13: anchored match - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-hello, 1234
-0
'
036-sub.t TEST 27: just hit match limit - status code ok got: ''
expected: '200'
036-sub.t TEST 27: just hit match limit - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'error: pcre_exec() failed: -8
'
036-sub.t TEST 27: just hit match limit - status code ok got: ''
expected: '200'
036-sub.t TEST 27: just hit match limit - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'error: pcre_exec() failed: -8
'
036-sub.t TEST 1: matched but w/o variables - status code ok got: ''
expected: '200'
036-sub.t TEST 1: matched but w/o variables - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-howdy, world
-1
'
036-sub.t TEST 1: matched but w/o variables - status code ok got: ''
expected: '200'
036-sub.t TEST 1: matched but w/o variables - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-howdy, world
-1
'
036-sub.t TEST 31: ngx.re.gsub: recursive calling (github \#445) - status code ok got: ''
expected: '200'
036-sub.t TEST 31: ngx.re.gsub: recursive calling (github \#445) - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
- OUTER {FIRST}
- OUTER REPLACED
'
036-sub.t TEST 31: ngx.re.gsub: recursive calling (github \#445) - status code ok got: ''
expected: '200'
036-sub.t TEST 31: ngx.re.gsub: recursive calling (github \#445) - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
- OUTER {FIRST}
- OUTER REPLACED
'
036-sub.t TEST 3: matched and with variables - status code ok got: ''
expected: '200'
036-sub.t TEST 3: matched and with variables - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-a [b c] [b] [c] [] [] d
-1
'
036-sub.t TEST 3: matched and with variables - status code ok got: ''
expected: '200'
036-sub.t TEST 3: matched and with variables - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-a [b c] [b] [c] [] [] d
-1
'
036-sub.t TEST 29: bug: sub incorrectly swallowed a character is the first character - status code ok got: ''
expected: '200'
036-sub.t TEST 29: bug: sub incorrectly swallowed a character is the first character - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'TestCase
'
036-sub.t TEST 29: bug: sub incorrectly swallowed a character is the first character - status code ok got: ''
expected: '200'
036-sub.t TEST 29: bug: sub incorrectly swallowed a character is the first character - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'TestCase
'
036-sub.t TEST 19: matched and with variables w/o using named patterns in sub - status code ok got: ''
expected: '200'
036-sub.t TEST 19: matched and with variables w/o using named patterns in sub - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-a [b c] [b] [c] [] [] d
-1
'
036-sub.t TEST 19: matched and with variables w/o using named patterns in sub - status code ok got: ''
expected: '200'
036-sub.t TEST 19: matched and with variables w/o using named patterns in sub - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-a [b c] [b] [c] [] [] d
-1
'
036-sub.t TEST 24: bad UTF-8 - status code ok got: ''
expected: '200'
036-sub.t TEST 24: bad UTF-8 - response_body_like - response is expected () ''
doesn't match '(?^s:error: pcre_exec\(\) failed: -10)'
036-sub.t TEST 24: bad UTF-8 - status code ok got: ''
expected: '200'
036-sub.t TEST 24: bad UTF-8 - response_body_like - response is expected () ''
doesn't match '(?^s:error: pcre_exec\(\) failed: -10)'
036-sub.t TEST 7: matched and with bracketed variables (unmatched brackets) - status code ok got: ''
expected: '200'
036-sub.t TEST 7: matched and with bracketed variables (unmatched brackets) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'error: failed to compile the replacement template
'
036-sub.t TEST 7: matched and with bracketed variables (unmatched brackets) - status code ok got: ''
expected: '200'
036-sub.t TEST 7: matched and with bracketed variables (unmatched brackets) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'error: failed to compile the replacement template
'
036-sub.t TEST 26: UTF-8 mode with UTF-8 sequence checks - status code ok got: ''
expected: '200'
036-sub.t TEST 26: UTF-8 mode with UTF-8 sequence checks - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 's: a好
'
036-sub.t TEST 26: UTF-8 mode with UTF-8 sequence checks - status code ok got: ''
expected: '200'
036-sub.t TEST 26: UTF-8 mode with UTF-8 sequence checks - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 's: a好
'
036-sub.t TEST 9: matched and with bracketed variables (unmatched brackets) - status code ok got: ''
expected: '200'
036-sub.t TEST 9: matched and with bracketed variables (unmatched brackets) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'error: failed to compile the replacement template
'
036-sub.t TEST 9: matched and with bracketed variables (unmatched brackets) - status code ok got: ''
expected: '200'
036-sub.t TEST 9: matched and with bracketed variables (unmatched brackets) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'error: failed to compile the replacement template
'
039-sub-o.t TEST 9: matched and with bracketed variables (unmatched brackets) - status code ok got: ''
expected: '200'
039-sub-o.t TEST 9: matched and with bracketed variables (unmatched brackets) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'error: failed to compile the replacement template
'
039-sub-o.t TEST 9: matched and with bracketed variables (unmatched brackets) - status code ok got: ''
expected: '200'
039-sub-o.t TEST 9: matched and with bracketed variables (unmatched brackets) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'error: failed to compile the replacement template
'
039-sub-o.t TEST 4: matched and with named variables (bad template) - status code ok got: ''
expected: '200'
039-sub-o.t TEST 4: matched and with named variables (bad template) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'error: failed to compile the replacement template
'
039-sub-o.t TEST 4: matched and with named variables (bad template) - status code ok got: ''
expected: '200'
039-sub-o.t TEST 4: matched and with named variables (bad template) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'error: failed to compile the replacement template
'
039-sub-o.t TEST 11: matched but w/o variables and with literal $ - status code ok got: ''
expected: '200'
039-sub-o.t TEST 11: matched but w/o variables and with literal $ - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-ho$wdy, world
-1
'
039-sub-o.t TEST 11: matched but w/o variables and with literal $ - status code ok got: ''
expected: '200'
039-sub-o.t TEST 11: matched but w/o variables and with literal $ - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-ho$wdy, world
-1
'
039-sub-o.t TEST 7: matched and with bracketed variables (unmatched brackets) - status code ok got: ''
expected: '200'
039-sub-o.t TEST 7: matched and with bracketed variables (unmatched brackets) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'error: failed to compile the replacement template
'
039-sub-o.t TEST 7: matched and with bracketed variables (unmatched brackets) - status code ok got: ''
expected: '200'
039-sub-o.t TEST 7: matched and with bracketed variables (unmatched brackets) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'error: failed to compile the replacement template
'
039-sub-o.t TEST 13: anchored match - status code ok got: ''
expected: '200'
039-sub-o.t TEST 13: anchored match - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-hello, 1234
-0
'
039-sub-o.t TEST 13: anchored match - status code ok got: ''
expected: '200'
039-sub-o.t TEST 13: anchored match - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-hello, 1234
-0
'
039-sub-o.t TEST 14: function replace - status code ok got: ''
expected: '200'
039-sub-o.t TEST 14: function replace - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-hello, [3] [3]4
-1
'
039-sub-o.t TEST 14: function replace - status code ok got: ''
expected: '200'
039-sub-o.t TEST 14: function replace - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-hello, [3] [3]4
-1
'
039-sub-o.t TEST 8: matched and with bracketed variables (unmatched brackets) - status code ok got: ''
expected: '200'
039-sub-o.t TEST 8: matched and with bracketed variables (unmatched brackets) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'error: failed to compile the replacement template
'
039-sub-o.t TEST 8: matched and with bracketed variables (unmatched brackets) - status code ok got: ''
expected: '200'
039-sub-o.t TEST 8: matched and with bracketed variables (unmatched brackets) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'error: failed to compile the replacement template
'
039-sub-o.t TEST 25: matched and with variables using named patterns in func - status code ok got: ''
expected: '200'
039-sub-o.t TEST 25: matched and with variables using named patterns in func - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-a [b c] [b] [c] d
-1
'
039-sub-o.t TEST 25: matched and with variables using named patterns in func - status code ok got: ''
expected: '200'
039-sub-o.t TEST 25: matched and with variables using named patterns in func - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-a [b c] [b] [c] d
-1
'
039-sub-o.t TEST 22: disable regex cache completely - status code ok got: ''
expected: '200'
039-sub-o.t TEST 22: disable regex cache completely - response_body - response is expected (repeated req 0, req 0) @@ -1,6 +0,0 @@
-hello, hello
-1
-howdy, hello
-1
-hiya, hello
-1
'
039-sub-o.t TEST 22: disable regex cache completely - status code ok got: ''
expected: '200'
039-sub-o.t TEST 22: disable regex cache completely - response_body - response is expected (repeated req 1, req 0) @@ -1,6 +0,0 @@
-hello, hello
-1
-howdy, hello
-1
-hiya, hello
-1
'
039-sub-o.t TEST 6: matched and with bracketed variables - status code ok got: ''
expected: '200'
039-sub-o.t TEST 6: matched and with bracketed variables - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-[b c] [b] [c] [] [] d
-1
'
039-sub-o.t TEST 6: matched and with bracketed variables - status code ok got: ''
expected: '200'
039-sub-o.t TEST 6: matched and with bracketed variables - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-[b c] [b] [c] [] [] d
-1
'
039-sub-o.t TEST 17: use number to replace - status code ok got: ''
expected: '200'
039-sub-o.t TEST 17: use number to replace - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-true
-hello, 724
-1
'
039-sub-o.t TEST 17: use number to replace - status code ok got: ''
expected: '200'
039-sub-o.t TEST 17: use number to replace - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-true
-hello, 724
-1
'
039-sub-o.t TEST 12: non-anchored match - status code ok got: ''
expected: '200'
039-sub-o.t TEST 12: non-anchored match - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-hello, x234
-1
'
039-sub-o.t TEST 12: non-anchored match - status code ok got: ''
expected: '200'
039-sub-o.t TEST 12: non-anchored match - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-hello, x234
-1
'
039-sub-o.t TEST 10: trailing $ - status code ok got: ''
expected: '200'
039-sub-o.t TEST 10: trailing $ - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'error: failed to compile the replacement template
'
039-sub-o.t TEST 10: trailing $ - status code ok got: ''
expected: '200'
039-sub-o.t TEST 10: trailing $ - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'error: failed to compile the replacement template
'
039-sub-o.t TEST 24: matched and with variables w/o using named patterns in sub - status code ok got: ''
expected: '200'
039-sub-o.t TEST 24: matched and with variables w/o using named patterns in sub - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-a [b c] [b] [c] [] [] d
-1
'
039-sub-o.t TEST 24: matched and with variables w/o using named patterns in sub - status code ok got: ''
expected: '200'
039-sub-o.t TEST 24: matched and with variables w/o using named patterns in sub - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-a [b c] [b] [c] [] [] d
-1
'
039-sub-o.t TEST 20: with regex cache (with func replace) - status code ok got: ''
expected: '200'
039-sub-o.t TEST 20: with regex cache (with func replace) - response_body - response is expected (repeated req 0, req 0) @@ -1,8 +0,0 @@
-baz, 1234
-1
-bah, 1234
-1
-1234, blah
-1
-hi, 1234
-0
'
039-sub-o.t TEST 20: with regex cache (with func replace) - status code ok got: ''
expected: '200'
039-sub-o.t TEST 20: with regex cache (with func replace) - response_body - response is expected (repeated req 1, req 0) @@ -1,8 +0,0 @@
-baz, 1234
-1
-bah, 1234
-1
-1234, blah
-1
-hi, 1234
-0
'
039-sub-o.t TEST 21: exceeding regex cache max entries - status code ok got: ''
expected: '200'
039-sub-o.t TEST 21: exceeding regex cache max entries - response_body - response is expected (repeated req 0, req 0) @@ -1,6 +0,0 @@
-hello, hello
-1
-howdy, hello
-1
-hiya, hello
-1
'
039-sub-o.t TEST 21: exceeding regex cache max entries - status code ok got: ''
expected: '200'
039-sub-o.t TEST 21: exceeding regex cache max entries - response_body - response is expected (repeated req 1, req 0) @@ -1,6 +0,0 @@
-hello, hello
-1
-howdy, hello
-1
-hiya, hello
-1
'
039-sub-o.t TEST 2: not matched - status code ok got: ''
expected: '200'
039-sub-o.t TEST 2: not matched - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-hello, world
-0
'
039-sub-o.t TEST 2: not matched - status code ok got: ''
expected: '200'
039-sub-o.t TEST 2: not matched - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-hello, world
-0
'
039-sub-o.t TEST 1: matched but w/o variables - status code ok got: ''
expected: '200'
039-sub-o.t TEST 1: matched but w/o variables - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-howdy, world
-1
'
039-sub-o.t TEST 1: matched but w/o variables - status code ok got: ''
expected: '200'
039-sub-o.t TEST 1: matched but w/o variables - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-howdy, world
-1
'
039-sub-o.t TEST 23: empty replace - status code ok got: ''
expected: '200'
039-sub-o.t TEST 23: empty replace - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-hello,
-1
-hi,
-1
'
039-sub-o.t TEST 23: empty replace - status code ok got: ''
expected: '200'
039-sub-o.t TEST 23: empty replace - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +0,0 @@
-hello,
-1
-hi,
-1
'
039-sub-o.t TEST 19: with regex cache (with text replace) - status code ok got: ''
expected: '200'
039-sub-o.t TEST 19: with regex cache (with text replace) - response_body - response is expected (repeated req 0, req 0) @@ -1,8 +0,0 @@
-baz, 1234
-1
-baz, 1234
-1
-1234, blah
-1
-hi, 1234
-0
'
039-sub-o.t TEST 19: with regex cache (with text replace) - status code ok got: ''
expected: '200'
039-sub-o.t TEST 19: with regex cache (with text replace) - response_body - response is expected (repeated req 1, req 0) @@ -1,8 +0,0 @@
-baz, 1234
-1
-baz, 1234
-1
-1234, blah
-1
-hi, 1234
-0
'
039-sub-o.t TEST 15: function replace (failed) - status code ok got: ''
expected: '200'
039-sub-o.t TEST 15: function replace (failed) - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-hello, 34
-0
'
039-sub-o.t TEST 15: function replace (failed) - status code ok got: ''
expected: '200'
039-sub-o.t TEST 15: function replace (failed) - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-hello, 34
-0
'
039-sub-o.t TEST 5: matched and with named variables (bracketed) - status code ok got: ''
expected: '200'
039-sub-o.t TEST 5: matched and with named variables (bracketed) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'error: failed to compile the replacement template
'
039-sub-o.t TEST 5: matched and with named variables (bracketed) - status code ok got: ''
expected: '200'
039-sub-o.t TEST 5: matched and with named variables (bracketed) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'error: failed to compile the replacement template
'
039-sub-o.t TEST 3: matched and with variables - status code ok got: ''
expected: '200'
039-sub-o.t TEST 3: matched and with variables - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-a [b c] [b] [c] [] [] d
-1
'
039-sub-o.t TEST 3: matched and with variables - status code ok got: ''
expected: '200'
039-sub-o.t TEST 3: matched and with variables - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-a [b c] [b] [c] [] [] d
-1
'
040-gsub-o.t TEST 3: not matched - status code ok got: ''
expected: '200'
040-gsub-o.t TEST 3: not matched - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-hello, world
-0
'
040-gsub-o.t TEST 3: not matched - status code ok got: ''
expected: '200'
040-gsub-o.t TEST 3: not matched - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-hello, world
-0
'
040-gsub-o.t TEST 1: sanity - status code ok got: ''
expected: '200'
040-gsub-o.t TEST 1: sanity - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-[howdy, howdy]
-2
'
040-gsub-o.t TEST 1: sanity - status code ok got: ''
expected: '200'
040-gsub-o.t TEST 1: sanity - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-[howdy, howdy]
-2
'
040-gsub-o.t TEST 6: replace by script (trimmed) - status code ok got: ''
expected: '200'
040-gsub-o.t TEST 6: replace by script (trimmed) - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-[hello,h], [world,w]
-2
'
040-gsub-o.t TEST 6: replace by script (trimmed) - status code ok got: ''
expected: '200'
040-gsub-o.t TEST 6: replace by script (trimmed) - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-[hello,h], [world,w]
-2
'
040-gsub-o.t TEST 9: named pattern repl w/ callback - status code ok got: ''
expected: '200'
040-gsub-o.t TEST 9: named pattern repl w/ callback - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-[hello,h], [world,w]
-2
'
040-gsub-o.t TEST 9: named pattern repl w/ callback - status code ok got: ''
expected: '200'
040-gsub-o.t TEST 9: named pattern repl w/ callback - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-[hello,h], [world,w]
-2
'
040-gsub-o.t TEST 5: replace by function (not trimmed) - status code ok got: ''
expected: '200'
040-gsub-o.t TEST 5: replace by function (not trimmed) - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-{[hello,h], [world,w]}
-2
'
040-gsub-o.t TEST 5: replace by function (not trimmed) - status code ok got: ''
expected: '200'
040-gsub-o.t TEST 5: replace by function (not trimmed) - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-{[hello,h], [world,w]}
-2
'
040-gsub-o.t TEST 7: replace by script (not trimmed) - status code ok got: ''
expected: '200'
040-gsub-o.t TEST 7: replace by script (not trimmed) - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-{[hello,h], [world,w]}
-2
'
040-gsub-o.t TEST 7: replace by script (not trimmed) - status code ok got: ''
expected: '200'
040-gsub-o.t TEST 7: replace by script (not trimmed) - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-{[hello,h], [world,w]}
-2
'
040-gsub-o.t TEST 2: trimmed - status code ok got: ''
expected: '200'
040-gsub-o.t TEST 2: trimmed - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-howdy, howdy
-2
'
040-gsub-o.t TEST 2: trimmed - status code ok got: ''
expected: '200'
040-gsub-o.t TEST 2: trimmed - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-howdy, howdy
-2
'
040-gsub-o.t TEST 8: look-behind assertion - status code ok got: ''
expected: '200'
040-gsub-o.t TEST 8: look-behind assertion - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-{foohbarhbaz}
-2
'
040-gsub-o.t TEST 8: look-behind assertion - status code ok got: ''
expected: '200'
040-gsub-o.t TEST 8: look-behind assertion - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-{foohbarhbaz}
-2
'
040-gsub-o.t TEST 4: replace by function (trimmed) - status code ok got: ''
expected: '200'
040-gsub-o.t TEST 4: replace by function (trimmed) - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-[hello,h], [world,w]
-2
'
040-gsub-o.t TEST 4: replace by function (trimmed) - status code ok got: ''
expected: '200'
040-gsub-o.t TEST 4: replace by function (trimmed) - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-[hello,h], [world,w]
-2
'
043-shdict.t TEST 5: different-size values set to the same key - status code ok got: ''
expected: '200'
043-shdict.t TEST 52: list all keys in a shdict with more than 1024 keys with no limit set - status code ok got: ''
expected: '200'
043-shdict.t TEST 35: incr key (incr by floating point number) - status code ok got: ''
expected: '200'
043-shdict.t TEST 38: get and set with flags - status code ok got: ''
expected: '200'
043-shdict.t TEST 44: flush_expires a dict without expired items - status code ok got: ''
expected: '200'
043-shdict.t TEST 74: incr nil key - status code ok got: ''
expected: '200'
043-shdict.t TEST 62: get empty key - status code ok got: ''
expected: '200'
043-shdict.t TEST 85: incr bad zone table - status code ok got: ''
expected: '200'
043-shdict.t TEST 78: incr number key - status code ok got: ''
expected: '200'
043-shdict.t TEST 18: delete at first - status code ok got: ''
expected: '200'
043-shdict.t TEST 21: fail to allocate memory - status code ok got: ''
expected: '200'
043-shdict.t TEST 75: incr bad zone argument - status code ok got: ''
expected: '200'
043-shdict.t TEST 65: get_stale nil key - status code ok got: ''
expected: '200'
043-shdict.t TEST 34: incr key (incr by 0) - status code ok got: ''
expected: '200'
043-shdict.t TEST 68: get_stale a too-long key - status code ok got: ''
expected: '200'
043-shdict.t TEST 69: get_stale a non-existent key - status code ok got: ''
expected: '200'
043-shdict.t TEST 12: get non-existent keys - status code ok got: ''
expected: '200'
043-shdict.t TEST 39: expired entries (can be auto-removed by get), with flags set - status code ok got: ''
expected: '200'
043-shdict.t TEST 81: replace key with exptime - status code ok got: ''
expected: '200'
043-shdict.t TEST 64: set & get large values - status code ok got: ''
expected: '200'
043-shdict.t TEST 66: get_stale empty key - status code ok got: ''
expected: '200'
043-shdict.t TEST 31: incr key (key exists) - status code ok got: ''
expected: '200'
043-shdict.t TEST 4: number keys, string values - status code ok got: ''
expected: '200'
043-shdict.t TEST 47: list all keys in a shdict with expires - status code ok got: ''
expected: '200'
043-shdict.t TEST 37: incr key (original value is not number) - status code ok got: ''
expected: '200'
043-shdict.t TEST 3: string key, boolean value - status code ok got: ''
expected: '200'
043-shdict.t TEST 63: get a too-long key - status code ok got: ''
expected: '200'
043-shdict.t TEST 28: replace key (key not exists) - status code ok got: ''
expected: '200'
043-shdict.t TEST 16: bad value type - status code ok got: ''
expected: '200'
043-shdict.t TEST 51: list all keys in a shdict with all keys expired - status code ok got: ''
expected: '200'
043-shdict.t TEST 2: string key, floating-point value - status code ok got: ''
expected: '200'
043-shdict.t TEST 57: set nil key - status code ok got: ''
expected: '200'
043-shdict.t TEST 77: incr too long key - status code ok got: ''
expected: '200'
043-shdict.t TEST 36: incr key (incr by negative numbers) - status code ok got: ''
expected: '200'
043-shdict.t TEST 1: string key, int value - status code ok got: ''
expected: '200'
043-shdict.t TEST 45: list all keys in a shdict - status code ok got: ''
expected: '200'
043-shdict.t TEST 43: flush_expires an empty dict - status code ok got: ''
expected: '200'
043-shdict.t TEST 33: replace key (key expired) - status code ok got: ''
expected: '200'
043-shdict.t TEST 8: not yet expired entries - status code ok got: ''
expected: '200'
043-shdict.t TEST 72: set & get_stale boolean values (false) - status code ok got: ''
expected: '200'
043-shdict.t TEST 79: incr a number-like string key - status code ok got: ''
expected: '200'
043-shdict.t TEST 27: incr key (key exists) - status code ok got: ''
expected: '200'
043-shdict.t TEST 56: get_stale: expired entries can still be fetched - status code ok got: ''
expected: '200'
043-shdict.t TEST 83: set bad zone table - status code ok got: ''
expected: '200'
043-shdict.t TEST 23: add key (key exists) - status code ok got: ''
expected: '200'
043-shdict.t TEST 46: list keys in a shdict with limit - status code ok got: ''
expected: '200'
043-shdict.t TEST 71: set & get_stale boolean values (true) - status code ok got: ''
expected: '200'
043-shdict.t TEST 53: list all keys in a shdict with more than 1024 keys with 0 limit set - status code ok got: ''
expected: '200'
043-shdict.t TEST 58: set bad zone argument - status code ok got: ''
expected: '200'
043-shdict.t TEST 50: list keys in an empty shdict with a limit - status code ok got: ''
expected: '200'
043-shdict.t TEST 25: add key (key expired) - status code ok got: ''
expected: '200'
043-shdict.t TEST 24: add key (key not exists) - status code ok got: ''
expected: '200'
043-shdict.t TEST 60: get bad zone argument - status code ok got: ''
expected: '200'
043-shdict.t TEST 55: safe_add - status code ok got: ''
expected: '200'
043-shdict.t TEST 15: set too large key - status code ok got: ''
expected: '200'
043-shdict.t TEST 67: get_stale number key - status code ok got: ''
expected: '200'
043-shdict.t TEST 84: get bad zone table - status code ok got: ''
expected: '200'
043-shdict.t TEST 59: set empty string keys - status code ok got: ''
expected: '200'
043-shdict.t TEST 49: list keys in an empty shdict - status code ok got: ''
expected: '200'
043-shdict.t TEST 73: set & get_stale with a flag - status code ok got: ''
expected: '200'
043-shdict.t TEST 40: flush_all - status code ok got: ''
expected: '200'
043-shdict.t TEST 76: incr empty string keys - status code ok got: ''
expected: '200'
043-shdict.t TEST 61: get nil key - status code ok got: ''
expected: '200'
043-shdict.t TEST 82: the lightuserdata ngx.null has no methods of shared dicts. - status code ok got: ''
expected: '200'
043-shdict.t TEST 30: replace key (key expired and value size unmatched) - status code ok got: ''
expected: '200'
043-shdict.t TEST 80: add nil values - status code ok got: ''
expected: '200'
043-shdict.t TEST 17: delete after setting values - status code ok got: ''
expected: '200'
043-shdict.t TEST 29: replace key (key expired) - status code ok got: ''
expected: '200'
043-shdict.t TEST 9: forcibly override other valid entries - status code ok got: ''
expected: '200'
043-shdict.t TEST 41: flush_expires - status code ok got: ''
expected: '200'
043-shdict.t TEST 7: expired entries (can NOT be auto-removed by get) - status code ok got: ''
expected: '200'
043-shdict.t TEST 70: set & get_stale large values - status code ok got: ''
expected: '200'
043-shdict.t TEST 86: check the type of the shdict object - status code ok got: ''
expected: '200'
043-shdict.t TEST 11: dogs and cats dicts - status code ok got: ''
expected: '200'
043-shdict.t TEST 32: replace key (key not exists) - status code ok got: ''
expected: '200'
043-shdict.t TEST 20: set nil at first - status code ok got: ''
expected: '200'
043-shdict.t TEST 42: flush_expires with number - status code ok got: ''
expected: '200'
043-shdict.t TEST 6: expired entries (can be auto-removed by get) - status code ok got: ''
expected: '200'
043-shdict.t TEST 19: set nil after setting values - status code ok got: ''
expected: '200'
043-shdict.t TEST 10: forcibly override other valid entries and test LRU - status code ok got: ''
expected: '200'
043-shdict.t TEST 26: add key (key expired and value size unmatched) - status code ok got: ''
expected: '200'
043-shdict.t TEST 48: list keys in a shdict with limit larger than number of keys - status code ok got: ''
expected: '200'
043-shdict.t TEST 87: dogs, cat mixing - status code ok got: ''
expected: '200'
043-shdict.t TEST 54: safe_set - status code ok got: ''
expected: '200'
045-ngx-var.t TEST 7: variable name is caseless - status code ok got: ''
expected: '200'
045-ngx-var.t TEST 7: variable name is caseless - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "value: 127.0.0.1\x{0a}"
length: 17
strings begin to differ at char 1 (line 1 column 1)
045-ngx-var.t TEST 7: variable name is caseless - status code ok got: ''
expected: '200'
045-ngx-var.t TEST 7: variable name is caseless - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "value: 127.0.0.1\x{0a}"
length: 17
strings begin to differ at char 1 (line 1 column 1)
045-ngx-var.t TEST 9: can not set variable - status code ok got: ''
expected: '200'
045-ngx-var.t TEST 9: can not set variable - status code ok got: ''
expected: '200'
045-ngx-var.t TEST 1: pid - status code ok got: ''
expected: '200'
045-ngx-var.t TEST 1: pid - response_body_like - response is expected () ''
doesn't match '(?^s:variable pid: \d+
variable pid is correct\.
)'
045-ngx-var.t TEST 1: pid - status code ok got: ''
expected: '200'
045-ngx-var.t TEST 1: pid - response_body_like - response is expected () ''
doesn't match '(?^s:variable pid: \d+
variable pid is correct\.
)'
045-ngx-var.t TEST 6: reference nonexistent variable - status code ok got: ''
expected: '200'
045-ngx-var.t TEST 6: reference nonexistent variable - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "value: nil\x{0a}"
length: 11
strings begin to differ at char 1 (line 1 column 1)
045-ngx-var.t TEST 6: reference nonexistent variable - status code ok got: ''
expected: '200'
045-ngx-var.t TEST 6: reference nonexistent variable - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "value: nil\x{0a}"
length: 11
strings begin to differ at char 1 (line 1 column 1)
045-ngx-var.t TEST 5: connection & nginx_version - status code ok got: ''
expected: '200'
045-ngx-var.t TEST 5: connection & nginx_version - response_body_like - response is expected () ''
doesn't match '(?^:^connection: \d+
nginx_version: \d+\.\d+\.\d+.*
string
string$)'
045-ngx-var.t TEST 5: connection & nginx_version - status code ok got: ''
expected: '200'
045-ngx-var.t TEST 5: connection & nginx_version - response_body_like - response is expected () ''
doesn't match '(?^:^connection: \d+
nginx_version: \d+\.\d+\.\d+.*
string
string$)'
045-ngx-var.t TEST 3: binary_remote_addr - status code ok got: ''
expected: '200'
045-ngx-var.t TEST 3: binary_remote_addr - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "binary_remote_addr len: 4\x{0a}type: string\x{0a}"
length: 39
strings begin to differ at char 1 (line 1 column 1)
045-ngx-var.t TEST 3: binary_remote_addr - status code ok got: ''
expected: '200'
045-ngx-var.t TEST 3: binary_remote_addr - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "binary_remote_addr len: 4\x{0a}type: string\x{0a}"
length: 39
strings begin to differ at char 1 (line 1 column 1)
045-ngx-var.t TEST 2: remote_addr - status code ok got: ''
expected: '200'
045-ngx-var.t TEST 2: remote_addr - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "remote_addr: 127.0.0.1\x{0a}type: string\x{0a}"
length: 36
strings begin to differ at char 1 (line 1 column 1)
045-ngx-var.t TEST 2: remote_addr - status code ok got: ''
expected: '200'
045-ngx-var.t TEST 2: remote_addr - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "remote_addr: 127.0.0.1\x{0a}type: string\x{0a}"
length: 36
strings begin to differ at char 1 (line 1 column 1)
045-ngx-var.t TEST 4: server_addr & server_port - status code ok got: ''
expected: '200'
045-ngx-var.t TEST 4: server_addr & server_port - response_body_like - response is expected () ''
doesn't match '(?^:^server_addr: 127\.0\.0\.1
server_port: \d{4,}
string
string
$)'
045-ngx-var.t TEST 4: server_addr & server_port - status code ok got: ''
expected: '200'
045-ngx-var.t TEST 4: server_addr & server_port - response_body_like - response is expected () ''
doesn't match '(?^:^server_addr: 127\.0\.0\.1
server_port: \d{4,}
string
string
$)'
045-ngx-var.t TEST 8: get a bad variable name - status code ok got: ''
expected: '200'
045-ngx-var.t TEST 8: get a bad variable name - status code ok got: ''
expected: '200'
046-hmac.t TEST 1: sanity - status code ok got: ''
expected: '200'
046-hmac.t TEST 1: sanity - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "R/pvxzHC4NLtj7S+kXFg/NePTmk=\x{0a}"
length: 29
strings begin to differ at char 1 (line 1 column 1)
046-hmac.t TEST 1: sanity - status code ok got: ''
expected: '200'
046-hmac.t TEST 1: sanity - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "R/pvxzHC4NLtj7S+kXFg/NePTmk=\x{0a}"
length: 29
strings begin to differ at char 1 (line 1 column 1)
047-match-jit.t TEST 1: matched with j - status code ok got: ''
expected: '200'
047-match-jit.t TEST 1: matched with j - response_body - response is expected (repeated req 0, req 0) got: ''
expected: '1234
'
047-match-jit.t TEST 1: matched with j - status code ok got: ''
expected: '200'
047-match-jit.t TEST 1: matched with j - response_body - response is expected (repeated req 1, req 0) got: ''
expected: '1234
'
047-match-jit.t TEST 6: just hit match limit - status code ok got: ''
expected: '200'
047-match-jit.t TEST 6: just hit match limit - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'error: pcre_exec() failed: -8
'
047-match-jit.t TEST 6: just hit match limit - status code ok got: ''
expected: '200'
047-match-jit.t TEST 6: just hit match limit - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'error: pcre_exec() failed: -8
'
047-match-jit.t TEST 3: matched with jo - status code ok got: ''
expected: '200'
047-match-jit.t TEST 3: matched with jo - response_body - response is expected (repeated req 0, req 0) got: ''
expected: '1234
'
047-match-jit.t TEST 3: matched with jo - status code ok got: ''
expected: '200'
047-match-jit.t TEST 3: matched with jo - response_body - response is expected (repeated req 1, req 0) got: ''
expected: '1234
'
047-match-jit.t TEST 3: matched with jo - grep_error_log_out (req 1) got: 'pcre JIT compiling result: 1
'
expected: ''
047-match-jit.t TEST 4: not matched with jo - status code ok got: ''
expected: '200'
047-match-jit.t TEST 4: not matched with jo - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'not matched!
'
047-match-jit.t TEST 4: not matched with jo - status code ok got: ''
expected: '200'
047-match-jit.t TEST 4: not matched with jo - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'not matched!
'
047-match-jit.t TEST 4: not matched with jo - grep_error_log_out (req 1) got: 'pcre JIT compiling result: 1
'
expected: ''
047-match-jit.t TEST 7: just not hit match limit - status code ok got: ''
expected: '200'
047-match-jit.t TEST 7: just not hit match limit - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'failed to match
'
047-match-jit.t TEST 7: just not hit match limit - status code ok got: ''
expected: '200'
047-match-jit.t TEST 7: just not hit match limit - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'failed to match
'
047-match-jit.t TEST 2: not matched with j - status code ok got: ''
expected: '200'
047-match-jit.t TEST 2: not matched with j - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'not matched!
'
047-match-jit.t TEST 2: not matched with j - status code ok got: ''
expected: '200'
047-match-jit.t TEST 2: not matched with j - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'not matched!
'
047-match-jit.t TEST 5: bad pattern - status code ok got: ''
expected: '200'
047-match-jit.t TEST 5: bad pattern - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'error: pcre_compile() failed: missing ) in "(abc"
'
047-match-jit.t TEST 5: bad pattern - status code ok got: ''
expected: '200'
047-match-jit.t TEST 5: bad pattern - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'error: pcre_compile() failed: missing ) in "(abc"
'
048-match-dfa.t TEST 7: UTF-8 mode with UTF-8 sequence checks - status code ok got: ''
expected: '200'
048-match-dfa.t TEST 7: UTF-8 mode with UTF-8 sequence checks - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'ä½ 
'
048-match-dfa.t TEST 7: UTF-8 mode with UTF-8 sequence checks - status code ok got: ''
expected: '200'
048-match-dfa.t TEST 7: UTF-8 mode with UTF-8 sequence checks - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'ä½ 
'
048-match-dfa.t TEST 3: not matched with j - status code ok got: ''
expected: '200'
048-match-dfa.t TEST 3: not matched with j - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'not matched!
'
048-match-dfa.t TEST 3: not matched with j - status code ok got: ''
expected: '200'
048-match-dfa.t TEST 3: not matched with j - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'not matched!
'
048-match-dfa.t TEST 2: matched with d + j - status code ok got: ''
expected: '200'
048-match-dfa.t TEST 2: matched with d + j - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'hell
'
048-match-dfa.t TEST 2: matched with d + j - status code ok got: ''
expected: '200'
048-match-dfa.t TEST 2: matched with d + j - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'hell
'
048-match-dfa.t TEST 5: not matched with do - status code ok got: ''
expected: '200'
048-match-dfa.t TEST 5: not matched with do - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'not matched!
'
048-match-dfa.t TEST 5: not matched with do - status code ok got: ''
expected: '200'
048-match-dfa.t TEST 5: not matched with do - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'not matched!
'
048-match-dfa.t TEST 1: matched with d - status code ok got: ''
expected: '200'
048-match-dfa.t TEST 1: matched with d - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'hell
'
048-match-dfa.t TEST 1: matched with d - status code ok got: ''
expected: '200'
048-match-dfa.t TEST 1: matched with d - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'hell
'
048-match-dfa.t TEST 6: UTF-8 mode without UTF-8 sequence checks - status code ok got: ''
expected: '200'
048-match-dfa.t TEST 6: UTF-8 mode without UTF-8 sequence checks - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'ä½ 
'
048-match-dfa.t TEST 6: UTF-8 mode without UTF-8 sequence checks - status code ok got: ''
expected: '200'
048-match-dfa.t TEST 6: UTF-8 mode without UTF-8 sequence checks - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'ä½ 
'
048-match-dfa.t TEST 4: matched with do - status code ok got: ''
expected: '200'
048-match-dfa.t TEST 4: matched with do - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-hell
-nil
-nil
'
048-match-dfa.t TEST 4: matched with do - status code ok got: ''
expected: '200'
048-match-dfa.t TEST 4: matched with do - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-hell
-nil
-nil
'
049-gmatch-jit.t TEST 5: gmatch matched + o - status code ok got: ''
expected: '200'
049-gmatch-jit.t TEST 5: gmatch matched + o - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "hello\x{0a}world\x{0a}"
length: 12
strings begin to differ at char 1 (line 1 column 1)
049-gmatch-jit.t TEST 5: gmatch matched + o - status code ok got: ''
expected: '200'
049-gmatch-jit.t TEST 5: gmatch matched + o - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "hello\x{0a}world\x{0a}"
length: 12
strings begin to differ at char 1 (line 1 column 1)
049-gmatch-jit.t TEST 5: gmatch matched + o - grep_error_log_out (req 1) got: "pcre JIT compiling result: 1\x{0a}"
length: 29
expected: ""
length: 0
strings begin to differ at char 1 (line 1 column 1)
049-gmatch-jit.t TEST 6: fail to match + o - status code ok got: ''
expected: '200'
049-gmatch-jit.t TEST 6: fail to match + o - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "nil\x{0a}nil\x{0a}nil\x{0a}"
length: 12
strings begin to differ at char 1 (line 1 column 1)
049-gmatch-jit.t TEST 6: fail to match + o - status code ok got: ''
expected: '200'
049-gmatch-jit.t TEST 6: fail to match + o - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "nil\x{0a}nil\x{0a}nil\x{0a}"
length: 12
strings begin to differ at char 1 (line 1 column 1)
049-gmatch-jit.t TEST 6: fail to match + o - grep_error_log_out (req 1) got: "pcre JIT compiling result: 1\x{0a}"
length: 29
expected: ""
length: 0
strings begin to differ at char 1 (line 1 column 1)
049-gmatch-jit.t TEST 3: gmatch matched but no iterate - status code ok got: ''
expected: '200'
049-gmatch-jit.t TEST 3: gmatch matched but no iterate - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "done\x{0a}"
length: 5
strings begin to differ at char 1 (line 1 column 1)
049-gmatch-jit.t TEST 3: gmatch matched but no iterate - status code ok got: ''
expected: '200'
049-gmatch-jit.t TEST 3: gmatch matched but no iterate - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "done\x{0a}"
length: 5
strings begin to differ at char 1 (line 1 column 1)
049-gmatch-jit.t TEST 8: gmatch matched but only iterate once and still matches remain + o - status code ok got: ''
expected: '200'
049-gmatch-jit.t TEST 8: gmatch matched but only iterate once and still matches remain + o - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "hello\x{0a}"
length: 6
strings begin to differ at char 1 (line 1 column 1)
049-gmatch-jit.t TEST 8: gmatch matched but only iterate once and still matches remain + o - status code ok got: ''
expected: '200'
049-gmatch-jit.t TEST 8: gmatch matched but only iterate once and still matches remain + o - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "hello\x{0a}"
length: 6
strings begin to differ at char 1 (line 1 column 1)
049-gmatch-jit.t TEST 8: gmatch matched but only iterate once and still matches remain + o - grep_error_log_out (req 1) got: "pcre JIT compiling result: 1\x{0a}"
length: 29
expected: ""
length: 0
strings begin to differ at char 1 (line 1 column 1)
049-gmatch-jit.t TEST 1: gmatch matched - status code ok got: ''
expected: '200'
049-gmatch-jit.t TEST 1: gmatch matched - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "hello\x{0a}world\x{0a}"
length: 12
strings begin to differ at char 1 (line 1 column 1)
049-gmatch-jit.t TEST 1: gmatch matched - status code ok got: ''
expected: '200'
049-gmatch-jit.t TEST 1: gmatch matched - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "hello\x{0a}world\x{0a}"
length: 12
strings begin to differ at char 1 (line 1 column 1)
049-gmatch-jit.t TEST 4: gmatch matched but only iterate once and still matches remain - status code ok got: ''
expected: '200'
049-gmatch-jit.t TEST 4: gmatch matched but only iterate once and still matches remain - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "hello\x{0a}"
length: 6
strings begin to differ at char 1 (line 1 column 1)
049-gmatch-jit.t TEST 4: gmatch matched but only iterate once and still matches remain - status code ok got: ''
expected: '200'
049-gmatch-jit.t TEST 4: gmatch matched but only iterate once and still matches remain - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "hello\x{0a}"
length: 6
strings begin to differ at char 1 (line 1 column 1)
049-gmatch-jit.t TEST 9: bad pattern - status code ok got: ''
expected: '200'
049-gmatch-jit.t TEST 9: bad pattern - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "error: pcre_compile() failed: missing ) in "(abc"\x{0a}"
length: 50
strings begin to differ at char 1 (line 1 column 1)
049-gmatch-jit.t TEST 9: bad pattern - status code ok got: ''
expected: '200'
049-gmatch-jit.t TEST 9: bad pattern - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "error: pcre_compile() failed: missing ) in "(abc"\x{0a}"
length: 50
strings begin to differ at char 1 (line 1 column 1)
049-gmatch-jit.t TEST 2: fail to match - status code ok got: ''
expected: '200'
049-gmatch-jit.t TEST 2: fail to match - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "nil\x{0a}nil\x{0a}nil\x{0a}"
length: 12
strings begin to differ at char 1 (line 1 column 1)
049-gmatch-jit.t TEST 2: fail to match - status code ok got: ''
expected: '200'
049-gmatch-jit.t TEST 2: fail to match - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "nil\x{0a}nil\x{0a}nil\x{0a}"
length: 12
strings begin to differ at char 1 (line 1 column 1)
049-gmatch-jit.t TEST 7: gmatch matched but no iterate + o - status code ok got: ''
expected: '200'
049-gmatch-jit.t TEST 7: gmatch matched but no iterate + o - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "done\x{0a}"
length: 5
strings begin to differ at char 1 (line 1 column 1)
049-gmatch-jit.t TEST 7: gmatch matched but no iterate + o - status code ok got: ''
expected: '200'
049-gmatch-jit.t TEST 7: gmatch matched but no iterate + o - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "done\x{0a}"
length: 5
strings begin to differ at char 1 (line 1 column 1)
049-gmatch-jit.t TEST 7: gmatch matched but no iterate + o - grep_error_log_out (req 1) got: "pcre JIT compiling result: 1\x{0a}"
length: 29
expected: ""
length: 0
strings begin to differ at char 1 (line 1 column 1)
050-gmatch-dfa.t TEST 10: bad pattern - status code ok got: ''
expected: '200'
050-gmatch-dfa.t TEST 10: bad pattern - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "error: pcre_compile() failed: missing ) in "(abc"\x{0a}"
length: 50
strings begin to differ at char 1 (line 1 column 1)
050-gmatch-dfa.t TEST 10: bad pattern - status code ok got: ''
expected: '200'
050-gmatch-dfa.t TEST 10: bad pattern - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "error: pcre_compile() failed: missing ) in "(abc"\x{0a}"
length: 50
strings begin to differ at char 1 (line 1 column 1)
050-gmatch-dfa.t TEST 7: fail to match + o - status code ok got: ''
expected: '200'
050-gmatch-dfa.t TEST 7: fail to match + o - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "nil\x{0a}nil\x{0a}nil\x{0a}"
length: 12
strings begin to differ at char 1 (line 1 column 1)
050-gmatch-dfa.t TEST 7: fail to match + o - status code ok got: ''
expected: '200'
050-gmatch-dfa.t TEST 7: fail to match + o - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "nil\x{0a}nil\x{0a}nil\x{0a}"
length: 12
strings begin to differ at char 1 (line 1 column 1)
050-gmatch-dfa.t TEST 5: gmatch matched but only iterate once and still matches remain - status code ok got: ''
expected: '200'
050-gmatch-dfa.t TEST 5: gmatch matched but only iterate once and still matches remain - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "hello\x{0a}"
length: 6
strings begin to differ at char 1 (line 1 column 1)
050-gmatch-dfa.t TEST 5: gmatch matched but only iterate once and still matches remain - status code ok got: ''
expected: '200'
050-gmatch-dfa.t TEST 5: gmatch matched but only iterate once and still matches remain - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "hello\x{0a}"
length: 6
strings begin to differ at char 1 (line 1 column 1)
050-gmatch-dfa.t TEST 9: gmatch matched but only iterate once and still matches remain + o - status code ok got: ''
expected: '200'
050-gmatch-dfa.t TEST 9: gmatch matched but only iterate once and still matches remain + o - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "hello\x{0a}"
length: 6
strings begin to differ at char 1 (line 1 column 1)
050-gmatch-dfa.t TEST 9: gmatch matched but only iterate once and still matches remain + o - status code ok got: ''
expected: '200'
050-gmatch-dfa.t TEST 9: gmatch matched but only iterate once and still matches remain + o - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "hello\x{0a}"
length: 6
strings begin to differ at char 1 (line 1 column 1)
050-gmatch-dfa.t TEST 12: UTF-8 mode with UTF-8 sequence checks - status code ok got: ''
expected: '200'
050-gmatch-dfa.t TEST 12: UTF-8 mode with UTF-8 sequence checks - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "\x{e4}\x{bd}\x{a0}\x{0a}"
length: 4
strings begin to differ at char 1 (line 1 column 1)
050-gmatch-dfa.t TEST 12: UTF-8 mode with UTF-8 sequence checks - status code ok got: ''
expected: '200'
050-gmatch-dfa.t TEST 12: UTF-8 mode with UTF-8 sequence checks - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "\x{e4}\x{bd}\x{a0}\x{0a}"
length: 4
strings begin to differ at char 1 (line 1 column 1)
050-gmatch-dfa.t TEST 4: gmatch matched but no iterate - status code ok got: ''
expected: '200'
050-gmatch-dfa.t TEST 4: gmatch matched but no iterate - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "done\x{0a}"
length: 5
strings begin to differ at char 1 (line 1 column 1)
050-gmatch-dfa.t TEST 4: gmatch matched but no iterate - status code ok got: ''
expected: '200'
050-gmatch-dfa.t TEST 4: gmatch matched but no iterate - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "done\x{0a}"
length: 5
strings begin to differ at char 1 (line 1 column 1)
050-gmatch-dfa.t TEST 6: gmatch matched + o - status code ok got: ''
expected: '200'
050-gmatch-dfa.t TEST 6: gmatch matched + o - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "hello\x{0a}world\x{0a}"
length: 12
strings begin to differ at char 1 (line 1 column 1)
050-gmatch-dfa.t TEST 6: gmatch matched + o - status code ok got: ''
expected: '200'
050-gmatch-dfa.t TEST 6: gmatch matched + o - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "hello\x{0a}world\x{0a}"
length: 12
strings begin to differ at char 1 (line 1 column 1)
050-gmatch-dfa.t TEST 2: d + j - status code ok got: ''
expected: '200'
050-gmatch-dfa.t TEST 2: d + j - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "hel\x{0a}hal\x{0a}"
length: 8
strings begin to differ at char 1 (line 1 column 1)
050-gmatch-dfa.t TEST 2: d + j - status code ok got: ''
expected: '200'
050-gmatch-dfa.t TEST 2: d + j - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "hel\x{0a}hal\x{0a}"
length: 8
strings begin to differ at char 1 (line 1 column 1)
050-gmatch-dfa.t TEST 11: UTF-8 mode without UTF-8 sequence checks - status code ok got: ''
expected: '200'
050-gmatch-dfa.t TEST 11: UTF-8 mode without UTF-8 sequence checks - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "\x{e4}\x{bd}\x{a0}\x{0a}"
length: 4
strings begin to differ at char 1 (line 1 column 1)
050-gmatch-dfa.t TEST 11: UTF-8 mode without UTF-8 sequence checks - status code ok got: ''
expected: '200'
050-gmatch-dfa.t TEST 11: UTF-8 mode without UTF-8 sequence checks - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "\x{e4}\x{bd}\x{a0}\x{0a}"
length: 4
strings begin to differ at char 1 (line 1 column 1)
050-gmatch-dfa.t TEST 1: gmatch matched - status code ok got: ''
expected: '200'
050-gmatch-dfa.t TEST 1: gmatch matched - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "hel\x{0a}hal\x{0a}"
length: 8
strings begin to differ at char 1 (line 1 column 1)
050-gmatch-dfa.t TEST 1: gmatch matched - status code ok got: ''
expected: '200'
050-gmatch-dfa.t TEST 1: gmatch matched - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "hel\x{0a}hal\x{0a}"
length: 8
strings begin to differ at char 1 (line 1 column 1)
050-gmatch-dfa.t TEST 8: gmatch matched but no iterate + o - status code ok got: ''
expected: '200'
050-gmatch-dfa.t TEST 8: gmatch matched but no iterate + o - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "done\x{0a}"
length: 5
strings begin to differ at char 1 (line 1 column 1)
050-gmatch-dfa.t TEST 8: gmatch matched but no iterate + o - status code ok got: ''
expected: '200'
050-gmatch-dfa.t TEST 8: gmatch matched but no iterate + o - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "done\x{0a}"
length: 5
strings begin to differ at char 1 (line 1 column 1)
050-gmatch-dfa.t TEST 3: fail to match - status code ok got: ''
expected: '200'
050-gmatch-dfa.t TEST 3: fail to match - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "nil\x{0a}nil\x{0a}nil\x{0a}"
length: 12
strings begin to differ at char 1 (line 1 column 1)
050-gmatch-dfa.t TEST 3: fail to match - status code ok got: ''
expected: '200'
050-gmatch-dfa.t TEST 3: fail to match - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "nil\x{0a}nil\x{0a}nil\x{0a}"
length: 12
strings begin to differ at char 1 (line 1 column 1)
051-sub-jit.t TEST 2: not matched with j - status code ok got: ''
expected: '200'
051-sub-jit.t TEST 2: not matched with j - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'hello, world: 0
'
051-sub-jit.t TEST 2: not matched with j - status code ok got: ''
expected: '200'
051-sub-jit.t TEST 2: not matched with j - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'hello, world: 0
'
051-sub-jit.t TEST 5: bad pattern - status code ok got: ''
expected: '200'
051-sub-jit.t TEST 5: bad pattern - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'error: pcre_compile() failed: missing ) in "(abc"
'
051-sub-jit.t TEST 5: bad pattern - status code ok got: ''
expected: '200'
051-sub-jit.t TEST 5: bad pattern - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'error: pcre_compile() failed: missing ) in "(abc"
'
051-sub-jit.t TEST 1: matched with j - status code ok got: ''
expected: '200'
051-sub-jit.t TEST 1: matched with j - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'hello, world 5678: 1
'
051-sub-jit.t TEST 1: matched with j - status code ok got: ''
expected: '200'
051-sub-jit.t TEST 1: matched with j - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'hello, world 5678: 1
'
051-sub-jit.t TEST 3: matched with jo - status code ok got: ''
expected: '200'
051-sub-jit.t TEST 3: matched with jo - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'hello, world 5678: 1
'
051-sub-jit.t TEST 3: matched with jo - status code ok got: ''
expected: '200'
051-sub-jit.t TEST 3: matched with jo - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'hello, world 5678: 1
'
051-sub-jit.t TEST 3: matched with jo - grep_error_log_out (req 1) got: 'pcre JIT compiling result: 1
'
expected: ''
051-sub-jit.t TEST 4: not matched with jo - status code ok got: ''
expected: '200'
051-sub-jit.t TEST 4: not matched with jo - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'hello, world: 0
'
051-sub-jit.t TEST 4: not matched with jo - status code ok got: ''
expected: '200'
051-sub-jit.t TEST 4: not matched with jo - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'hello, world: 0
'
051-sub-jit.t TEST 4: not matched with jo - grep_error_log_out (req 1) got: 'pcre JIT compiling result: 1
'
expected: ''
051-sub-jit.t TEST 6: bad pattern + o - status code ok got: ''
expected: '200'
051-sub-jit.t TEST 6: bad pattern + o - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'error: pcre_compile() failed: missing ) in "(abc"
'
051-sub-jit.t TEST 6: bad pattern + o - status code ok got: ''
expected: '200'
051-sub-jit.t TEST 6: bad pattern + o - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'error: pcre_compile() failed: missing ) in "(abc"
'
052-sub-dfa.t TEST 5: bad pattern - status code ok got: ''
expected: '200'
052-sub-dfa.t TEST 5: bad pattern - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'error: pcre_compile() failed: missing ) in "(abc"
'
052-sub-dfa.t TEST 5: bad pattern - status code ok got: ''
expected: '200'
052-sub-dfa.t TEST 5: bad pattern - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'error: pcre_compile() failed: missing ) in "(abc"
'
052-sub-dfa.t TEST 8: UTF-8 mode with UTF-8 sequence checks - status code ok got: ''
expected: '200'
052-sub-dfa.t TEST 8: UTF-8 mode with UTF-8 sequence checks - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 's: a好
'
052-sub-dfa.t TEST 8: UTF-8 mode with UTF-8 sequence checks - status code ok got: ''
expected: '200'
052-sub-dfa.t TEST 8: UTF-8 mode with UTF-8 sequence checks - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 's: a好
'
052-sub-dfa.t TEST 4: not matched with do - status code ok got: ''
expected: '200'
052-sub-dfa.t TEST 4: not matched with do - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'hello, world: 0
'
052-sub-dfa.t TEST 4: not matched with do - status code ok got: ''
expected: '200'
052-sub-dfa.t TEST 4: not matched with do - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'hello, world: 0
'
052-sub-dfa.t TEST 7: UTF-8 mode without UTF-8 sequence checks - status code ok got: ''
expected: '200'
052-sub-dfa.t TEST 7: UTF-8 mode without UTF-8 sequence checks - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 's: a好
'
052-sub-dfa.t TEST 7: UTF-8 mode without UTF-8 sequence checks - status code ok got: ''
expected: '200'
052-sub-dfa.t TEST 7: UTF-8 mode without UTF-8 sequence checks - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 's: a好
'
052-sub-dfa.t TEST 3: matched with do - status code ok got: ''
expected: '200'
052-sub-dfa.t TEST 3: matched with do - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'hello, world34 5678: 1
'
052-sub-dfa.t TEST 3: matched with do - status code ok got: ''
expected: '200'
052-sub-dfa.t TEST 3: matched with do - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'hello, world34 5678: 1
'
052-sub-dfa.t TEST 2: not matched with d - status code ok got: ''
expected: '200'
052-sub-dfa.t TEST 2: not matched with d - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'hello, world: 0
'
052-sub-dfa.t TEST 2: not matched with d - status code ok got: ''
expected: '200'
052-sub-dfa.t TEST 2: not matched with d - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'hello, world: 0
'
052-sub-dfa.t TEST 6: bad pattern + o - status code ok got: ''
expected: '200'
052-sub-dfa.t TEST 6: bad pattern + o - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'error: pcre_compile() failed: missing ) in "(abc"
'
052-sub-dfa.t TEST 6: bad pattern + o - status code ok got: ''
expected: '200'
052-sub-dfa.t TEST 6: bad pattern + o - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'error: pcre_compile() failed: missing ) in "(abc"
'
052-sub-dfa.t TEST 1: matched with d - status code ok got: ''
expected: '200'
052-sub-dfa.t TEST 1: matched with d - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'hello, world34 5678: 1
'
052-sub-dfa.t TEST 1: matched with d - status code ok got: ''
expected: '200'
052-sub-dfa.t TEST 1: matched with d - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'hello, world34 5678: 1
'
053-gsub-jit.t TEST 4: not matched with jo - status code ok got: ''
expected: '200'
053-gsub-jit.t TEST 4: not matched with jo - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'hello, world: 0
'
053-gsub-jit.t TEST 4: not matched with jo - status code ok got: ''
expected: '200'
053-gsub-jit.t TEST 4: not matched with jo - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'hello, world: 0
'
053-gsub-jit.t TEST 4: not matched with jo - grep_error_log_out (req 1) got: 'pcre JIT compiling result: 1
'
expected: ''
053-gsub-jit.t TEST 5: bad pattern - status code ok got: ''
expected: '200'
053-gsub-jit.t TEST 5: bad pattern - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'error: pcre_compile() failed: missing ) in "(abc"
'
053-gsub-jit.t TEST 5: bad pattern - status code ok got: ''
expected: '200'
053-gsub-jit.t TEST 5: bad pattern - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'error: pcre_compile() failed: missing ) in "(abc"
'
053-gsub-jit.t TEST 6: bad pattern + o - status code ok got: ''
expected: '200'
053-gsub-jit.t TEST 6: bad pattern + o - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'error: pcre_compile() failed: missing ) in "(abc"
'
053-gsub-jit.t TEST 6: bad pattern + o - status code ok got: ''
expected: '200'
053-gsub-jit.t TEST 6: bad pattern + o - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'error: pcre_compile() failed: missing ) in "(abc"
'
053-gsub-jit.t TEST 1: matched with j - status code ok got: ''
expected: '200'
053-gsub-jit.t TEST 1: matched with j - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'hello, world world: 2
'
053-gsub-jit.t TEST 1: matched with j - status code ok got: ''
expected: '200'
053-gsub-jit.t TEST 1: matched with j - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'hello, world world: 2
'
053-gsub-jit.t TEST 2: not matched with j - status code ok got: ''
expected: '200'
053-gsub-jit.t TEST 2: not matched with j - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'hello, world: 0
'
053-gsub-jit.t TEST 2: not matched with j - status code ok got: ''
expected: '200'
053-gsub-jit.t TEST 2: not matched with j - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'hello, world: 0
'
053-gsub-jit.t TEST 3: matched with jo - status code ok got: ''
expected: '200'
053-gsub-jit.t TEST 3: matched with jo - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'hello, world world: 2
'
053-gsub-jit.t TEST 3: matched with jo - status code ok got: ''
expected: '200'
053-gsub-jit.t TEST 3: matched with jo - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'hello, world world: 2
'
053-gsub-jit.t TEST 3: matched with jo - grep_error_log_out (req 1) got: 'pcre JIT compiling result: 1
'
expected: ''
054-gsub-dfa.t TEST 7: UTF-8 mode without UTF-8 sequence checks - status code ok got: ''
expected: '200'
054-gsub-dfa.t TEST 7: UTF-8 mode without UTF-8 sequence checks - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 's: aa
'
054-gsub-dfa.t TEST 7: UTF-8 mode without UTF-8 sequence checks - status code ok got: ''
expected: '200'
054-gsub-dfa.t TEST 7: UTF-8 mode without UTF-8 sequence checks - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 's: aa
'
054-gsub-dfa.t TEST 2: not matched with d - status code ok got: ''
expected: '200'
054-gsub-dfa.t TEST 2: not matched with d - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'hello, world: 0
'
054-gsub-dfa.t TEST 2: not matched with d - status code ok got: ''
expected: '200'
054-gsub-dfa.t TEST 2: not matched with d - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'hello, world: 0
'
054-gsub-dfa.t TEST 6: bad pattern + o - status code ok got: ''
expected: '200'
054-gsub-dfa.t TEST 6: bad pattern + o - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'error: pcre_compile() failed: missing ) in "(abc"
'
054-gsub-dfa.t TEST 6: bad pattern + o - status code ok got: ''
expected: '200'
054-gsub-dfa.t TEST 6: bad pattern + o - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'error: pcre_compile() failed: missing ) in "(abc"
'
054-gsub-dfa.t TEST 3: matched with do - status code ok got: ''
expected: '200'
054-gsub-dfa.t TEST 3: matched with do - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'hello, worldworld worldworld: 4
'
054-gsub-dfa.t TEST 3: matched with do - status code ok got: ''
expected: '200'
054-gsub-dfa.t TEST 3: matched with do - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'hello, worldworld worldworld: 4
'
054-gsub-dfa.t TEST 4: not matched with do - status code ok got: ''
expected: '200'
054-gsub-dfa.t TEST 4: not matched with do - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'hello, world: 0
'
054-gsub-dfa.t TEST 4: not matched with do - status code ok got: ''
expected: '200'
054-gsub-dfa.t TEST 4: not matched with do - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'hello, world: 0
'
054-gsub-dfa.t TEST 1: matched with d - status code ok got: ''
expected: '200'
054-gsub-dfa.t TEST 1: matched with d - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'hello, worldworld worldworld: 4
'
054-gsub-dfa.t TEST 1: matched with d - status code ok got: ''
expected: '200'
054-gsub-dfa.t TEST 1: matched with d - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'hello, worldworld worldworld: 4
'
054-gsub-dfa.t TEST 8: UTF-8 mode with UTF-8 sequence checks - status code ok got: ''
expected: '200'
054-gsub-dfa.t TEST 8: UTF-8 mode with UTF-8 sequence checks - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 's: aa
'
054-gsub-dfa.t TEST 8: UTF-8 mode with UTF-8 sequence checks - status code ok got: ''
expected: '200'
054-gsub-dfa.t TEST 8: UTF-8 mode with UTF-8 sequence checks - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 's: aa
'
054-gsub-dfa.t TEST 5: bad pattern - status code ok got: ''
expected: '200'
054-gsub-dfa.t TEST 5: bad pattern - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'error: pcre_compile() failed: missing ) in "(abc"
'
054-gsub-dfa.t TEST 5: bad pattern - status code ok got: ''
expected: '200'
054-gsub-dfa.t TEST 5: bad pattern - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'error: pcre_compile() failed: missing ) in "(abc"
'
056-flush.t TEST 4: flush wait in a user coroutine - status code ok got: ''
expected: '200'
056-flush.t TEST 4: flush wait in a user coroutine - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-hello, world
-true
-hiya
-true
'
056-flush.t TEST 4: flush wait in a user coroutine - status code ok got: ''
expected: '200'
056-flush.t TEST 4: flush wait in a user coroutine - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +0,0 @@
-hello, world
-true
-hiya
-true
'
056-flush.t TEST 2: flush no wait - content - status code ok got: ''
expected: '200'
056-flush.t TEST 2: flush no wait - content - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-hello, world
-hiya
'
056-flush.t TEST 2: flush no wait - content - status code ok got: ''
expected: '200'
056-flush.t TEST 2: flush no wait - content - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-hello, world
-hiya
'
056-flush.t TEST 1: flush wait - content - status code ok got: ''
expected: '200'
056-flush.t TEST 1: flush wait - content - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-hello, world
-hiya
'
056-flush.t TEST 1: flush wait - content - status code ok got: ''
expected: '200'
056-flush.t TEST 1: flush wait - content - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-hello, world
-hiya
'
056-flush.t TEST 5: flush before sending out the header - status code ok got: ''
expected: '200'
056-flush.t TEST 5: flush before sending out the header - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'not found
'
056-flush.t TEST 5: flush before sending out the header - status code ok got: ''
expected: '200'
056-flush.t TEST 5: flush before sending out the header - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'not found
'
057-flush-timeout.t TEST 3: exit in user thread (entry thread is still pending on ngx.flush) - status code ok got: ''
expected: '200'
057-flush-timeout.t TEST 3: exit in user thread (entry thread is still pending on ngx.flush) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'received 41 bytes of response data.
'
057-flush-timeout.t TEST 3: exit in user thread (entry thread is still pending on ngx.flush) - status code ok got: ''
expected: '200'
057-flush-timeout.t TEST 3: exit in user thread (entry thread is still pending on ngx.flush) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'received 41 bytes of response data.
'
057-flush-timeout.t TEST 2: send timeout timer got removed in time - status code ok got: ''
expected: '200'
057-flush-timeout.t TEST 2: send timeout timer got removed in time - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'received 141 bytes of response data.
'
057-flush-timeout.t TEST 2: send timeout timer got removed in time - status code ok got: ''
expected: '200'
057-flush-timeout.t TEST 2: send timeout timer got removed in time - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'received 141 bytes of response data.
'
057-flush-timeout.t TEST 1: flush wait - timeout - status code ok got: ''
expected: '200'
057-flush-timeout.t TEST 1: flush wait - timeout - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'received 12 bytes of response data.
'
057-flush-timeout.t TEST 1: flush wait - timeout - pattern "(?^:client timed out \(\d+: .*?timed out\))" should match a line in error.log (req 0)
057-flush-timeout.t TEST 1: flush wait - timeout - pattern "(?^:stream response: hello, world, client)" should match a line in error.log (req 0)
057-flush-timeout.t TEST 1: flush wait - timeout - status code ok got: ''
expected: '200'
057-flush-timeout.t TEST 1: flush wait - timeout - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'received 12 bytes of response data.
'
057-flush-timeout.t TEST 1: flush wait - timeout - pattern "(?^:client timed out \(\d+: .*?timed out\))" should match a line in error.log (req 1)
057-flush-timeout.t TEST 1: flush wait - timeout - pattern "(?^:stream response: hello, world, client)" should match a line in error.log (req 1)
057-flush-timeout.t TEST 5: flush wait in multiple user threads - return "timeout" error - status code ok got: ''
expected: '200'
057-flush-timeout.t TEST 5: flush wait in multiple user threads - return "timeout" error - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'received 12 bytes of response data.
'
057-flush-timeout.t TEST 5: flush wait in multiple user threads - return "timeout" error - pattern "(?^:client timed out \(\d+: .*?timed out\))" should match a line in error.log (req 0)
057-flush-timeout.t TEST 5: flush wait in multiple user threads - return "timeout" error - pattern "thread main: failed to flush: timeout" should match a line in error.log (req 0)
057-flush-timeout.t TEST 5: flush wait in multiple user threads - return "timeout" error - pattern "thread A: failed to flush: timeout" should match a line in error.log (req 0)
057-flush-timeout.t TEST 5: flush wait in multiple user threads - return "timeout" error - pattern "thread B: failed to flush: timeout" should match a line in error.log (req 0)
057-flush-timeout.t TEST 5: flush wait in multiple user threads - return "timeout" error - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:10:01 [alert] 15808\#0: worker process 15876 exited on signal 11" (req 0) 2020/10/27 05:10:01 [debug] 15808\#0: shmtx forced unlock
2020/10/27 05:10:01 [debug] 15808\#0: wake up, sigio 0
2020/10/27 05:10:01 [debug] 15808\#0: reap children
2020/10/27 05:10:01 [debug] 15808\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:10:01 [debug] 15808\#0: child: 1 15876 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:10:01 [debug] 15808\#0: channel 3:4
2020/10/27 05:10:01 [notice] 15808\#0: start worker process 15897
2020/10/27 05:10:01 [debug] 15808\#0: sigsuspend
2020/10/27 05:10:01 [debug] 15897\#0: malloc: 09318FB0:12
'
057-flush-timeout.t TEST 5: flush wait in multiple user threads - return "timeout" error - status code ok got: ''
expected: '200'
057-flush-timeout.t TEST 5: flush wait in multiple user threads - return "timeout" error - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'received 12 bytes of response data.
'
057-flush-timeout.t TEST 5: flush wait in multiple user threads - return "timeout" error - pattern "(?^:client timed out \(\d+: .*?timed out\))" should match a line in error.log (req 1)
057-flush-timeout.t TEST 5: flush wait in multiple user threads - return "timeout" error - pattern "thread main: failed to flush: timeout" should match a line in error.log (req 1)
057-flush-timeout.t TEST 5: flush wait in multiple user threads - return "timeout" error - pattern "thread A: failed to flush: timeout" should match a line in error.log (req 1)
057-flush-timeout.t TEST 5: flush wait in multiple user threads - return "timeout" error - pattern "thread B: failed to flush: timeout" should match a line in error.log (req 1)
057-flush-timeout.t TEST 5: flush wait in multiple user threads - return "timeout" error - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:10:03 [alert] 15808\#0: worker process 15897 exited on signal 11" (req 1) 2020/10/27 05:10:03 [debug] 15808\#0: shmtx forced unlock
2020/10/27 05:10:03 [debug] 15808\#0: wake up, sigio 0
2020/10/27 05:10:03 [debug] 15808\#0: reap children
2020/10/27 05:10:03 [debug] 15808\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:10:03 [debug] 15808\#0: child: 1 15897 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:10:03 [debug] 15808\#0: channel 3:4
2020/10/27 05:10:03 [notice] 15808\#0: start worker process 15898
2020/10/27 05:10:03 [debug] 15808\#0: sigsuspend
2020/10/27 05:10:03 [debug] 15898\#0: malloc: 09318FB0:12
'
057-flush-timeout.t TEST 4: flush wait - return "timeout" error - status code ok got: ''
expected: '200'
057-flush-timeout.t TEST 4: flush wait - return "timeout" error - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'received 12 bytes of response data.
'
057-flush-timeout.t TEST 4: flush wait - return "timeout" error - pattern "(?^:client timed out \(\d+: .*?timed out\))" should match a line in error.log (req 0)
057-flush-timeout.t TEST 4: flush wait - return "timeout" error - pattern "failed to flush: timeout" should match a line in error.log (req 0)
057-flush-timeout.t TEST 4: flush wait - return "timeout" error - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:10:09 [alert] 15808\#0: worker process 15905 exited on signal 11" (req 0) 2020/10/27 05:10:09 [debug] 15808\#0: shmtx forced unlock
2020/10/27 05:10:09 [debug] 15808\#0: wake up, sigio 0
2020/10/27 05:10:09 [debug] 15808\#0: reap children
2020/10/27 05:10:09 [debug] 15808\#0: child: 0 15905 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:10:09 [debug] 15808\#0: channel 3:4
2020/10/27 05:10:09 [notice] 15808\#0: start worker process 15926
2020/10/27 05:10:09 [debug] 15808\#0: sigsuspend
2020/10/27 05:10:09 [debug] 15926\#0: malloc: 0931D830:12
2020/10/27 05:10:09 [debug] 15926\#0: malloc: 09322050:8
'
057-flush-timeout.t TEST 4: flush wait - return "timeout" error - status code ok got: ''
expected: '200'
057-flush-timeout.t TEST 4: flush wait - return "timeout" error - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'received 12 bytes of response data.
'
057-flush-timeout.t TEST 4: flush wait - return "timeout" error - pattern "(?^:client timed out \(\d+: .*?timed out\))" should match a line in error.log (req 1)
057-flush-timeout.t TEST 4: flush wait - return "timeout" error - pattern "failed to flush: timeout" should match a line in error.log (req 1)
057-flush-timeout.t TEST 4: flush wait - return "timeout" error - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:10:10 [alert] 15808\#0: worker process 15926 exited on signal 11" (req 1) 2020/10/27 05:10:10 [debug] 15808\#0: shmtx forced unlock
2020/10/27 05:10:10 [debug] 15808\#0: wake up, sigio 0
2020/10/27 05:10:10 [debug] 15808\#0: reap children
2020/10/27 05:10:10 [debug] 15808\#0: child: 0 15926 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:10:10 [debug] 15808\#0: channel 3:4
2020/10/27 05:10:10 [notice] 15808\#0: start worker process 15927
2020/10/27 05:10:10 [debug] 15808\#0: sigsuspend
2020/10/27 05:10:10 [debug] 15927\#0: malloc: 0931D830:12
2020/10/27 05:10:10 [debug] 15927\#0: malloc: 09322050:8
'
058-tcp-socket.t TEST 26: send tables of string fragments (bad type "nil") - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 26: send tables of string fragments (bad type "nil") - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'connected: 1
'
058-tcp-socket.t TEST 26: send tables of string fragments (bad type "nil") - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 26: send tables of string fragments (bad type "nil") - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'connected: 1
'
058-tcp-socket.t TEST 23: connect again immediately - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 23: connect again immediately - response_body - response is expected (repeated req 0, req 0) @@ -1,5 +0,0 @@
-connected: 1
-connected again: 1
-request sent: 11
-received: OK
-close: 1 nil
'
058-tcp-socket.t TEST 23: connect again immediately - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 23: connect again immediately - response_body - response is expected (repeated req 1, req 0) @@ -1,5 +0,0 @@
-connected: 1
-connected again: 1
-request sent: 11
-received: OK
-close: 1 nil
'
058-tcp-socket.t TEST 27: send tables of string fragments (bad type "boolean") - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 27: send tables of string fragments (bad type "boolean") - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'connected: 1
'
058-tcp-socket.t TEST 27: send tables of string fragments (bad type "boolean") - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 27: send tables of string fragments (bad type "boolean") - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'connected: 1
'
058-tcp-socket.t TEST 28: send tables of string fragments (bad type ngx.null) - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 28: send tables of string fragments (bad type ngx.null) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'connected: 1
'
058-tcp-socket.t TEST 28: send tables of string fragments (bad type ngx.null) - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 28: send tables of string fragments (bad type ngx.null) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'connected: 1
'
058-tcp-socket.t TEST 54: reuse cleanup in ngx.timer (fake_request) - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 54: reuse cleanup in ngx.timer (fake_request) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'total_send_bytes: 114
'
058-tcp-socket.t TEST 54: reuse cleanup in ngx.timer (fake_request) - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 54: reuse cleanup in ngx.timer (fake_request) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'total_send_bytes: 114
'
058-tcp-socket.t TEST 46: bad request tries to receiveuntil - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 46: bad request tries to receiveuntil - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'connected
'
058-tcp-socket.t TEST 46: bad request tries to receiveuntil - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:10:19 [alert] 15936\#0: worker process 16066 exited on signal 11" (req 0) 2020/10/27 05:10:19 [debug] 15936\#0: shmtx forced unlock
2020/10/27 05:10:19 [debug] 15936\#0: wake up, sigio 0
2020/10/27 05:10:19 [debug] 15936\#0: reap children
2020/10/27 05:10:19 [debug] 15936\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:10:19 [debug] 15936\#0: child: 1 16066 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:10:19 [debug] 15936\#0: channel 3:4
2020/10/27 05:10:19 [notice] 15936\#0: start worker process 16088
2020/10/27 05:10:19 [debug] 15936\#0: sigsuspend
2020/10/27 05:10:19 [debug] 16088\#0: malloc: 09C99FB0:12
'
058-tcp-socket.t TEST 46: bad request tries to receiveuntil - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 46: bad request tries to receiveuntil - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'connected
'
058-tcp-socket.t TEST 46: bad request tries to receiveuntil - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:10:19 [alert] 15936\#0: worker process 16088 exited on signal 11" (req 1) 2020/10/27 05:10:19 [debug] 15936\#0: shmtx forced unlock
2020/10/27 05:10:19 [debug] 15936\#0: wake up, sigio 0
2020/10/27 05:10:19 [debug] 15936\#0: reap children
2020/10/27 05:10:19 [debug] 15936\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:10:19 [debug] 15936\#0: child: 1 16088 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:10:19 [debug] 15936\#0: channel 3:4
2020/10/27 05:10:19 [notice] 15936\#0: start worker process 16089
2020/10/27 05:10:19 [debug] 15936\#0: sigsuspend
2020/10/27 05:10:19 [debug] 16089\#0: malloc: 09C99FB0:12
'
058-tcp-socket.t TEST 37: successful reread after a read time out happen (receiveuntil -> receive) - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 37: successful reread after a read time out happen (receiveuntil -> receive) - response_body - response is expected (repeated req 0, req 0) @@ -1,5 +0,0 @@
-failed to receive: timeout, partial: 2
-hi
-
-received: 5
-received: world
'
058-tcp-socket.t TEST 37: successful reread after a read time out happen (receiveuntil -> receive) - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:10:21 [alert] 15936\#0: worker process 16097 exited on signal 11" (req 0) 2020/10/27 05:10:21 [debug] 15936\#0: shmtx forced unlock
2020/10/27 05:10:21 [debug] 15936\#0: wake up, sigio 0
2020/10/27 05:10:21 [debug] 15936\#0: reap children
2020/10/27 05:10:21 [debug] 15936\#0: child: 0 16097 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:10:21 [debug] 15936\#0: channel 3:4
2020/10/27 05:10:21 [notice] 15936\#0: start worker process 16119
2020/10/27 05:10:21 [debug] 15936\#0: sigsuspend
2020/10/27 05:10:21 [debug] 16119\#0: malloc: 09C9EA90:12
2020/10/27 05:10:21 [debug] 16119\#0: malloc: 09CA3260:8
'
058-tcp-socket.t TEST 37: successful reread after a read time out happen (receiveuntil -> receive) - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 37: successful reread after a read time out happen (receiveuntil -> receive) - response_body - response is expected (repeated req 1, req 0) @@ -1,5 +0,0 @@
-failed to receive: timeout, partial: 2
-hi
-
-received: 5
-received: world
'
058-tcp-socket.t TEST 37: successful reread after a read time out happen (receiveuntil -> receive) - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:10:21 [alert] 15936\#0: worker process 16119 exited on signal 11" (req 1) 2020/10/27 05:10:21 [debug] 15936\#0: shmtx forced unlock
2020/10/27 05:10:21 [debug] 15936\#0: wake up, sigio 0
2020/10/27 05:10:21 [debug] 15936\#0: reap children
2020/10/27 05:10:21 [debug] 15936\#0: child: 0 16119 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:10:21 [debug] 15936\#0: channel 3:4
2020/10/27 05:10:21 [notice] 15936\#0: start worker process 16120
2020/10/27 05:10:21 [debug] 15936\#0: sigsuspend
2020/10/27 05:10:21 [debug] 16120\#0: malloc: 09C9EA90:12
2020/10/27 05:10:21 [debug] 16120\#0: malloc: 09CA3260:8
'
058-tcp-socket.t TEST 14: receive by chunks (very small buffer) - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 14: receive by chunks (very small buffer) - response_body - response is expected (repeated req 0, req 0) @@ -1,11 +0,0 @@
-connected: 1
-request sent: 57
-[HTTP/1.1 2][00 OK
-Ser][ver: nginx][
-Content-][Type: text][/plain
-Co][ntent-Leng][th: 4
-Con][nection: c][lose
-
-fo]failed to receive a line: closed [o
-]
-close: 1 nil
'
058-tcp-socket.t TEST 14: receive by chunks (very small buffer) - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 14: receive by chunks (very small buffer) - response_body - response is expected (repeated req 1, req 0) @@ -1,11 +0,0 @@
-connected: 1
-request sent: 57
-[HTTP/1.1 2][00 OK
-Ser][ver: nginx][
-Content-][Type: text][/plain
-Co][ntent-Leng][th: 4
-Con][nection: c][lose
-
-fo]failed to receive a line: closed [o
-]
-close: 1 nil
'
058-tcp-socket.t TEST 49: tcp_nodelay on - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 49: tcp_nodelay on - response_body - response is expected (repeated req 0, req 0) @@ -1,11 +0,0 @@
-connected: 1
-request sent: 57
-received: HTTP/1.1 200 OK
-received: Server: nginx
-received: Content-Type: text/plain
-received: Content-Length: 4
-received: Connection: close
-received:
-received: foo
-failed to receive a line: closed []
-close: 1 nil
'
058-tcp-socket.t TEST 49: tcp_nodelay on - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 49: tcp_nodelay on - response_body - response is expected (repeated req 1, req 0) @@ -1,11 +0,0 @@
-connected: 1
-request sent: 57
-received: HTTP/1.1 200 OK
-received: Server: nginx
-received: Content-Type: text/plain
-received: Content-Length: 4
-received: Connection: close
-received:
-received: foo
-failed to receive a line: closed []
-close: 1 nil
'
058-tcp-socket.t TEST 38: receive(0) - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 38: receive(0) - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-connected: 1
-received:
-close: 1 nil
'
058-tcp-socket.t TEST 38: receive(0) - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 38: receive(0) - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-connected: 1
-received:
-close: 1 nil
'
058-tcp-socket.t TEST 56: setkeepalive on socket already shutdown - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 56: setkeepalive on socket already shutdown - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'connected: 1
'
058-tcp-socket.t TEST 56: setkeepalive on socket already shutdown - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 56: setkeepalive on socket already shutdown - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'connected: 1
'
058-tcp-socket.t TEST 43: bad request tries to send - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 43: bad request tries to send - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'connected
'
058-tcp-socket.t TEST 43: bad request tries to send - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:10:30 [alert] 15936\#0: worker process 16247 exited on signal 11" (req 0) 2020/10/27 05:10:30 [debug] 15936\#0: shmtx forced unlock
2020/10/27 05:10:30 [debug] 15936\#0: wake up, sigio 0
2020/10/27 05:10:30 [debug] 15936\#0: reap children
2020/10/27 05:10:30 [debug] 15936\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:10:30 [debug] 15936\#0: child: 1 16247 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:10:30 [debug] 15936\#0: channel 3:4
2020/10/27 05:10:30 [notice] 15936\#0: start worker process 16269
2020/10/27 05:10:30 [debug] 15936\#0: sigsuspend
2020/10/27 05:10:30 [debug] 16269\#0: malloc: 09C99FB0:12
'
058-tcp-socket.t TEST 43: bad request tries to send - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 43: bad request tries to send - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'connected
'
058-tcp-socket.t TEST 43: bad request tries to send - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:10:30 [alert] 15936\#0: worker process 16269 exited on signal 11" (req 1) 2020/10/27 05:10:30 [debug] 15936\#0: shmtx forced unlock
2020/10/27 05:10:30 [debug] 15936\#0: wake up, sigio 0
2020/10/27 05:10:30 [debug] 15936\#0: reap children
2020/10/27 05:10:30 [debug] 15936\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:10:30 [debug] 15936\#0: child: 1 16269 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:10:30 [debug] 15936\#0: channel 3:4
2020/10/27 05:10:30 [notice] 15936\#0: start worker process 16270
2020/10/27 05:10:30 [debug] 15936\#0: sigsuspend
2020/10/27 05:10:30 [debug] 16270\#0: malloc: 09C99FB0:12
'
058-tcp-socket.t TEST 47: cosocket resolving aborted by coroutine yielding failures (require) - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 47: cosocket resolving aborted by coroutine yielding failures (require) - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:10:32 [alert] 15936\#0: worker process 16278 exited on signal 11" (req 0) 2020/10/27 05:10:32 [debug] 15936\#0: shmtx forced unlock
2020/10/27 05:10:32 [debug] 15936\#0: wake up, sigio 0
2020/10/27 05:10:32 [debug] 15936\#0: reap children
2020/10/27 05:10:32 [debug] 15936\#0: child: 0 16278 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:10:32 [debug] 15936\#0: channel 3:4
2020/10/27 05:10:32 [notice] 15936\#0: start worker process 16300
2020/10/27 05:10:32 [debug] 15936\#0: sigsuspend
2020/10/27 05:10:32 [debug] 16300\#0: malloc: 09C9EA90:12
2020/10/27 05:10:32 [debug] 16300\#0: malloc: 09CA3260:8
'
058-tcp-socket.t TEST 47: cosocket resolving aborted by coroutine yielding failures (require) - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 47: cosocket resolving aborted by coroutine yielding failures (require) - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:10:32 [alert] 15936\#0: worker process 16300 exited on signal 11" (req 1) 2020/10/27 05:10:32 [debug] 15936\#0: shmtx forced unlock
2020/10/27 05:10:32 [debug] 15936\#0: wake up, sigio 0
2020/10/27 05:10:32 [debug] 15936\#0: reap children
2020/10/27 05:10:32 [debug] 15936\#0: child: 0 16300 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:10:32 [debug] 15936\#0: channel 3:4
2020/10/27 05:10:32 [notice] 15936\#0: start worker process 16301
2020/10/27 05:10:32 [debug] 15936\#0: sigsuspend
2020/10/27 05:10:32 [debug] 16301\#0: malloc: 09C9EA90:12
2020/10/27 05:10:32 [debug] 16301\#0: malloc: 09CA3260:8
'
058-tcp-socket.t TEST 21: cannot survive across request boundary (close) - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 21: cannot survive across request boundary (close) - response_body_like - response is expected () ''
doesn't match '(?^:^(?:connected: 1
request sent: 11
received: OK|failed to close: closed)$)'
058-tcp-socket.t TEST 21: cannot survive across request boundary (close) - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 21: cannot survive across request boundary (close) - response_body_like - response is expected () ''
doesn't match '(?^:^(?:connected: 1
request sent: 11
received: OK|failed to close: closed)$)'
058-tcp-socket.t TEST 53: reuse cleanup - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 53: reuse cleanup - response_body - response is expected (repeated req 0, req 0) @@ -1,8 +0,0 @@
-connected: 1
-request sent: 57
-failed to receive a line: closed []
-close: 1 nil
-connected: 1
-request sent: 57
-failed to receive a line: closed []
-close: 1 nil
'
058-tcp-socket.t TEST 53: reuse cleanup - pattern "lua stream cleanup reuse" should match a line in error.log (req 0)
058-tcp-socket.t TEST 53: reuse cleanup - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 53: reuse cleanup - response_body - response is expected (repeated req 1, req 0) @@ -1,8 +0,0 @@
-connected: 1
-request sent: 57
-failed to receive a line: closed []
-close: 1 nil
-connected: 1
-request sent: 57
-failed to receive a line: closed []
-close: 1 nil
'
058-tcp-socket.t TEST 53: reuse cleanup - pattern "lua stream cleanup reuse" should match a line in error.log (req 1)
058-tcp-socket.t TEST 62: receiveany method in cosocket - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 62: receiveany method in cosocket - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-1
-22
-hello world
'
058-tcp-socket.t TEST 62: receiveany method in cosocket - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 62: receiveany method in cosocket - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-1
-22
-hello world
'
058-tcp-socket.t TEST 31: send("") - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 31: send("") - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-connected: 1
-request sent: 57
-send(""): 0
-close: 1 nil
'
058-tcp-socket.t TEST 31: send("") - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:10:40 [alert] 15936\#0: worker process 16400 exited on signal 11" (req 0) 2020/10/27 05:10:40 [debug] 15936\#0: shmtx forced unlock
2020/10/27 05:10:40 [debug] 15936\#0: wake up, sigio 0
2020/10/27 05:10:40 [debug] 15936\#0: reap children
2020/10/27 05:10:40 [debug] 15936\#0: child: 0 16400 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:10:40 [debug] 15936\#0: channel 3:4
2020/10/27 05:10:40 [notice] 15936\#0: start worker process 16422
2020/10/27 05:10:40 [debug] 15936\#0: sigsuspend
2020/10/27 05:10:40 [debug] 16422\#0: malloc: 09C9EA90:12
2020/10/27 05:10:40 [debug] 16422\#0: malloc: 09CA3260:8
'
058-tcp-socket.t TEST 31: send("") - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 31: send("") - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +0,0 @@
-connected: 1
-request sent: 57
-send(""): 0
-close: 1 nil
'
058-tcp-socket.t TEST 31: send("") - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:10:40 [alert] 15936\#0: worker process 16422 exited on signal 11" (req 1) 2020/10/27 05:10:40 [debug] 15936\#0: shmtx forced unlock
2020/10/27 05:10:40 [debug] 15936\#0: wake up, sigio 0
2020/10/27 05:10:40 [debug] 15936\#0: reap children
2020/10/27 05:10:40 [debug] 15936\#0: child: 0 16422 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:10:40 [debug] 15936\#0: channel 3:4
2020/10/27 05:10:40 [notice] 15936\#0: start worker process 16423
2020/10/27 05:10:40 [debug] 15936\#0: sigsuspend
2020/10/27 05:10:40 [debug] 16423\#0: malloc: 09C9EA90:12
2020/10/27 05:10:40 [debug] 16423\#0: malloc: 09CA3260:8
'
058-tcp-socket.t TEST 50: tcp_nodelay off - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 50: tcp_nodelay off - response_body - response is expected (repeated req 0, req 0) @@ -1,11 +0,0 @@
-connected: 1
-request sent: 57
-received: HTTP/1.1 200 OK
-received: Server: nginx
-received: Content-Type: text/plain
-received: Content-Length: 4
-received: Connection: close
-received:
-received: foo
-failed to receive a line: closed []
-close: 1 nil
'
058-tcp-socket.t TEST 50: tcp_nodelay off - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 50: tcp_nodelay off - response_body - response is expected (repeated req 1, req 0) @@ -1,11 +0,0 @@
-connected: 1
-request sent: 57
-received: HTTP/1.1 200 OK
-received: Server: nginx
-received: Content-Type: text/plain
-received: Content-Length: 4
-received: Connection: close
-received:
-received: foo
-failed to receive a line: closed []
-close: 1 nil
'
058-tcp-socket.t TEST 59: the upper bound of port range should be 2^16 - 1 - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 59: the upper bound of port range should be 2^16 - 1 - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'failed to connect: bad port number: 65536
'
058-tcp-socket.t TEST 59: the upper bound of port range should be 2^16 - 1 - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 59: the upper bound of port range should be 2^16 - 1 - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'failed to connect: bad port number: 65536
'
058-tcp-socket.t TEST 34: successful reread after a read time out happen (receive -> receive) - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 34: successful reread after a read time out happen (receive -> receive) - response_body - response is expected (repeated req 0, req 0) @@ -1,5 +0,0 @@
-failed to receive: timeout, partial: 2
-hi
-
-received: 5
-received: world
'
058-tcp-socket.t TEST 34: successful reread after a read time out happen (receive -> receive) - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:10:45 [alert] 15936\#0: worker process 16490 exited on signal 11" (req 0) 2020/10/27 05:10:45 [debug] 15936\#0: shmtx forced unlock
2020/10/27 05:10:45 [debug] 15936\#0: wake up, sigio 0
2020/10/27 05:10:45 [debug] 15936\#0: reap children
2020/10/27 05:10:45 [debug] 15936\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:10:45 [debug] 15936\#0: child: 1 16490 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:10:45 [debug] 15936\#0: channel 3:4
2020/10/27 05:10:45 [notice] 15936\#0: start worker process 16512
2020/10/27 05:10:45 [debug] 15936\#0: sigsuspend
2020/10/27 05:10:45 [debug] 16512\#0: malloc: 09C99FB0:12
'
058-tcp-socket.t TEST 34: successful reread after a read time out happen (receive -> receive) - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 34: successful reread after a read time out happen (receive -> receive) - response_body - response is expected (repeated req 1, req 0) @@ -1,5 +0,0 @@
-failed to receive: timeout, partial: 2
-hi
-
-received: 5
-received: world
'
058-tcp-socket.t TEST 34: successful reread after a read time out happen (receive -> receive) - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:10:45 [alert] 15936\#0: worker process 16512 exited on signal 11" (req 1) 2020/10/27 05:10:45 [debug] 15936\#0: shmtx forced unlock
2020/10/27 05:10:45 [debug] 15936\#0: wake up, sigio 0
2020/10/27 05:10:45 [debug] 15936\#0: reap children
2020/10/27 05:10:45 [debug] 15936\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:10:45 [debug] 15936\#0: child: 1 16512 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:10:45 [debug] 15936\#0: channel 3:4
2020/10/27 05:10:45 [notice] 15936\#0: start worker process 16513
2020/10/27 05:10:45 [debug] 15936\#0: sigsuspend
2020/10/27 05:10:45 [debug] 16513\#0: malloc: 09C99FB0:12
'
058-tcp-socket.t TEST 1: sanity - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 1: sanity - response_body - response is expected (repeated req 0, req 0) @@ -1,11 +0,0 @@
-connected: 1
-request sent: 57
-received: HTTP/1.1 200 OK
-received: Server: nginx
-received: Content-Type: text/plain
-received: Content-Length: 4
-received: Connection: close
-received:
-received: foo
-failed to receive a line: closed []
-close: 1 nil
'
058-tcp-socket.t TEST 1: sanity - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 1: sanity - response_body - response is expected (repeated req 1, req 0) @@ -1,11 +0,0 @@
-connected: 1
-request sent: 57
-received: HTTP/1.1 200 OK
-received: Server: nginx
-received: Content-Type: text/plain
-received: Content-Length: 4
-received: Connection: close
-received:
-received: foo
-failed to receive a line: closed []
-close: 1 nil
'
058-tcp-socket.t TEST 3: no resolver defined - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 3: no resolver defined - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-failed to connect: no resolver defined to resolve "agentzh.org"
-connected: nil
-failed to send request: closed
'
058-tcp-socket.t TEST 3: no resolver defined - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 3: no resolver defined - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-failed to connect: no resolver defined to resolve "agentzh.org"
-connected: nil
-failed to send request: closed
'
058-tcp-socket.t TEST 32: connection refused (tcp) - lua_socket_log_errors off - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 32: connection refused (tcp) - lua_socket_log_errors off - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-connect: nil connection refused
-send: nil closed
-receive: nil closed
-close: nil closed
'
058-tcp-socket.t TEST 32: connection refused (tcp) - lua_socket_log_errors off - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 32: connection refused (tcp) - lua_socket_log_errors off - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +0,0 @@
-connect: nil connection refused
-send: nil closed
-receive: nil closed
-close: nil closed
'
058-tcp-socket.t TEST 39: empty options table - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 39: empty options table - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-connected: 1
-close: 1 nil
'
058-tcp-socket.t TEST 39: empty options table - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 39: empty options table - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-connected: 1
-close: 1 nil
'
058-tcp-socket.t TEST 57: options_table is nil - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 57: options_table is nil - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-connected: 1
-close: 1 nil
'
058-tcp-socket.t TEST 57: options_table is nil - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 57: options_table is nil - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-connected: 1
-close: 1 nil
'
058-tcp-socket.t TEST 66: receiveany with limited, max is smaller than data - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 66: receiveany with limited, max is smaller than data - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-hello w
-orld
'
058-tcp-socket.t TEST 66: receiveany with limited, max is smaller than data - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 66: receiveany with limited, max is smaller than data - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-hello w
-orld
'
058-tcp-socket.t TEST 5: connection refused (tcp) - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 5: connection refused (tcp) - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-connect: nil connection refused
-send: nil closed
-receive: nil closed
-close: nil closed
'
058-tcp-socket.t TEST 5: connection refused (tcp) - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 5: connection refused (tcp) - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +0,0 @@
-connect: nil connection refused
-send: nil closed
-receive: nil closed
-close: nil closed
'
058-tcp-socket.t TEST 13: receive by chunks - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 13: receive by chunks - response_body - response is expected (repeated req 0, req 0) @@ -1,11 +0,0 @@
-connected: 1
-request sent: 57
-[HTTP/1.1 2][00 OK
-Ser][ver: nginx][
-Content-][Type: text][/plain
-Co][ntent-Leng][th: 4
-Con][nection: c][lose
-
-fo]failed to receive a line: closed [o
-]
-close: 1 nil
'
058-tcp-socket.t TEST 13: receive by chunks - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 13: receive by chunks - response_body - response is expected (repeated req 1, req 0) @@ -1,11 +0,0 @@
-connected: 1
-request sent: 57
-[HTTP/1.1 2][00 OK
-Ser][ver: nginx][
-Content-][Type: text][/plain
-Co][ntent-Leng][th: 4
-Con][nection: c][lose
-
-fo]failed to receive a line: closed [o
-]
-close: 1 nil
'
058-tcp-socket.t TEST 61: TCP socket GC'ed in preread phase without Lua content phase - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 61: TCP socket GC'ed in preread phase without Lua content phase - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-connected: 1
-1'
058-tcp-socket.t TEST 61: TCP socket GC'ed in preread phase without Lua content phase - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 61: TCP socket GC'ed in preread phase without Lua content phase - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-connected: 1
-1'
058-tcp-socket.t TEST 35: successful reread after a read time out happen (receive -> receiveuntil) - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 35: successful reread after a read time out happen (receive -> receiveuntil) - response_body - response is expected (repeated req 0, req 0) @@ -1,5 +0,0 @@
-failed to receive: timeout, partial: 2
-hi
-
-received: 5
-received: world
'
058-tcp-socket.t TEST 35: successful reread after a read time out happen (receive -> receiveuntil) - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:11:03 [alert] 15936\#0: worker process 16790 exited on signal 11" (req 0) 2020/10/27 05:11:03 [debug] 15936\#0: shmtx forced unlock
2020/10/27 05:11:03 [debug] 15936\#0: wake up, sigio 0
2020/10/27 05:11:03 [debug] 15936\#0: reap children
2020/10/27 05:11:03 [debug] 15936\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:11:03 [debug] 15936\#0: child: 1 16790 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:11:03 [debug] 15936\#0: channel 3:4
2020/10/27 05:11:03 [notice] 15936\#0: start worker process 16812
2020/10/27 05:11:03 [debug] 15936\#0: sigsuspend
2020/10/27 05:11:03 [debug] 16812\#0: malloc: 09C99FB0:12
'
058-tcp-socket.t TEST 35: successful reread after a read time out happen (receive -> receiveuntil) - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 35: successful reread after a read time out happen (receive -> receiveuntil) - response_body - response is expected (repeated req 1, req 0) @@ -1,5 +0,0 @@
-failed to receive: timeout, partial: 2
-hi
-
-received: 5
-received: world
'
058-tcp-socket.t TEST 35: successful reread after a read time out happen (receive -> receiveuntil) - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:11:03 [alert] 15936\#0: worker process 16812 exited on signal 11" (req 1) 2020/10/27 05:11:03 [debug] 15936\#0: shmtx forced unlock
2020/10/27 05:11:03 [debug] 15936\#0: wake up, sigio 0
2020/10/27 05:11:03 [debug] 15936\#0: reap children
2020/10/27 05:11:03 [debug] 15936\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:11:03 [debug] 15936\#0: child: 1 16812 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:11:03 [debug] 15936\#0: channel 3:4
2020/10/27 05:11:03 [notice] 15936\#0: start worker process 16813
2020/10/27 05:11:03 [debug] 15936\#0: sigsuspend
2020/10/27 05:11:03 [debug] 16813\#0: malloc: 09C99FB0:12
'
058-tcp-socket.t TEST 63: receiveany send data after read side closed - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 63: receiveany send data after read side closed - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 16: ngx.socket.connect (working) - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 16: ngx.socket.connect (working) - response_body - response is expected (repeated req 0, req 0) @@ -1,11 +0,0 @@
-connected.
-request sent: 57
-received: HTTP/1.1 200 OK
-received: Server: nginx
-received: Content-Type: text/plain
-received: Content-Length: 4
-received: Connection: close
-received:
-received: foo
-failed to receive a line: closed []
-close: 1 nil
'
058-tcp-socket.t TEST 16: ngx.socket.connect (working) - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 16: ngx.socket.connect (working) - response_body - response is expected (repeated req 1, req 0) @@ -1,11 +0,0 @@
-connected.
-request sent: 57
-received: HTTP/1.1 200 OK
-received: Server: nginx
-received: Content-Type: text/plain
-received: Content-Length: 4
-received: Connection: close
-received:
-received: foo
-failed to receive a line: closed []
-close: 1 nil
'
058-tcp-socket.t TEST 41: bad request tries to connect - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 41: bad request tries to connect - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'connected
'
058-tcp-socket.t TEST 41: bad request tries to connect - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:11:09 [alert] 15936\#0: worker process 16884 exited on signal 11" (req 0) 2020/10/27 05:11:09 [debug] 15936\#0: shmtx forced unlock
2020/10/27 05:11:09 [debug] 15936\#0: wake up, sigio 0
2020/10/27 05:11:09 [debug] 15936\#0: reap children
2020/10/27 05:11:09 [debug] 15936\#0: child: 0 16884 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:11:09 [debug] 15936\#0: channel 3:4
2020/10/27 05:11:09 [notice] 15936\#0: start worker process 16906
2020/10/27 05:11:09 [debug] 15936\#0: sigsuspend
2020/10/27 05:11:09 [debug] 16906\#0: malloc: 09C9EA90:12
2020/10/27 05:11:09 [debug] 16906\#0: malloc: 09CA3260:8
'
058-tcp-socket.t TEST 41: bad request tries to connect - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 41: bad request tries to connect - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'connected
'
058-tcp-socket.t TEST 41: bad request tries to connect - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:11:09 [alert] 15936\#0: worker process 16906 exited on signal 11" (req 1) 2020/10/27 05:11:09 [debug] 15936\#0: shmtx forced unlock
2020/10/27 05:11:09 [debug] 15936\#0: wake up, sigio 0
2020/10/27 05:11:09 [debug] 15936\#0: reap children
2020/10/27 05:11:09 [debug] 15936\#0: child: 0 16906 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:11:09 [debug] 15936\#0: channel 3:4
2020/10/27 05:11:09 [notice] 15936\#0: start worker process 16907
2020/10/27 05:11:09 [debug] 15936\#0: sigsuspend
2020/10/27 05:11:09 [debug] 16907\#0: malloc: 09C9EA90:12
2020/10/27 05:11:09 [debug] 16907\#0: malloc: 09CA3260:8
'
058-tcp-socket.t TEST 20: cannot survive across request boundary (receive) - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 20: cannot survive across request boundary (receive) - response_body_like - response is expected () ''
doesn't match '(?^:^(?:connected: 1
request sent: 11
received: OK|failed to receive a line: closed \[nil\])$)'
058-tcp-socket.t TEST 20: cannot survive across request boundary (receive) - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 20: cannot survive across request boundary (receive) - response_body_like - response is expected () ''
doesn't match '(?^:^(?:connected: 1
request sent: 11
received: OK|failed to receive a line: closed \[nil\])$)'
058-tcp-socket.t TEST 65: receiveany with limited, max is larger than data - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 65: receiveany with limited, max is larger than data - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'hello world
'
058-tcp-socket.t TEST 65: receiveany with limited, max is larger than data - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 65: receiveany with limited, max is larger than data - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'hello world
'
058-tcp-socket.t TEST 6: connection timeout (tcp) - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 6: connection timeout (tcp) - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-connect: nil timeout
-send: nil closed
-receive: nil closed
-close: nil closed
'
058-tcp-socket.t TEST 6: connection timeout (tcp) - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 6: connection timeout (tcp) - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +0,0 @@
-connect: nil timeout
-send: nil closed
-receive: nil closed
-close: nil closed
'
058-tcp-socket.t TEST 19: cannot survive across request boundary (send) - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 19: cannot survive across request boundary (send) - response_body_like - response is expected () ''
doesn't match '(?^s:^(?:connected: 1
request sent: 11
received: OK|failed to send request: closed)$)'
058-tcp-socket.t TEST 19: cannot survive across request boundary (send) - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 19: cannot survive across request boundary (send) - response_body_like - response is expected () ''
doesn't match '(?^s:^(?:connected: 1
request sent: 11
received: OK|failed to send request: closed)$)'
058-tcp-socket.t TEST 40: u->coctx left over bug - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 40: u->coctx left over bug - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-connected: 1
-request sent: 57
-close: 1 nil
'
058-tcp-socket.t TEST 40: u->coctx left over bug - pattern "lua clean up the timer for pending ngx.sleep" should match a line in error.log (req 0)
058-tcp-socket.t TEST 40: u->coctx left over bug - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 40: u->coctx left over bug - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-connected: 1
-request sent: 57
-close: 1 nil
'
058-tcp-socket.t TEST 40: u->coctx left over bug - pattern "lua clean up the timer for pending ngx.sleep" should match a line in error.log (req 1)
058-tcp-socket.t TEST 2: no trailing newline - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 2: no trailing newline - response_body - response is expected (repeated req 0, req 0) @@ -1,10 +0,0 @@
-connected: 1
-request sent: 57
-received: HTTP/1.1 200 OK
-received: Server: nginx
-received: Content-Type: text/plain
-received: Content-Length: 3
-received: Connection: close
-received:
-failed to receive a line: closed [foo]
-closed
'
058-tcp-socket.t TEST 2: no trailing newline - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 2: no trailing newline - response_body - response is expected (repeated req 1, req 0) @@ -1,10 +0,0 @@
-connected: 1
-request sent: 57
-received: HTTP/1.1 200 OK
-received: Server: nginx
-received: Content-Type: text/plain
-received: Content-Length: 3
-received: Connection: close
-received:
-failed to receive a line: closed [foo]
-closed
'
058-tcp-socket.t TEST 42: bad request tries to receive - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 42: bad request tries to receive - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'connected
'
058-tcp-socket.t TEST 42: bad request tries to receive - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:11:21 [alert] 15936\#0: worker process 17096 exited on signal 11" (req 0) 2020/10/27 05:11:21 [debug] 15936\#0: shmtx forced unlock
2020/10/27 05:11:21 [debug] 15936\#0: wake up, sigio 0
2020/10/27 05:11:21 [debug] 15936\#0: reap children
2020/10/27 05:11:21 [debug] 15936\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:11:21 [debug] 15936\#0: child: 1 17096 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:11:21 [debug] 15936\#0: channel 3:4
2020/10/27 05:11:21 [notice] 15936\#0: start worker process 17118
2020/10/27 05:11:21 [debug] 15936\#0: sigsuspend
2020/10/27 05:11:21 [debug] 17118\#0: malloc: 09C99FB0:12
'
058-tcp-socket.t TEST 42: bad request tries to receive - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 42: bad request tries to receive - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'connected
'
058-tcp-socket.t TEST 42: bad request tries to receive - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:11:21 [alert] 15936\#0: worker process 17118 exited on signal 11" (req 1) 2020/10/27 05:11:21 [debug] 15936\#0: shmtx forced unlock
2020/10/27 05:11:21 [debug] 15936\#0: wake up, sigio 0
2020/10/27 05:11:21 [debug] 15936\#0: reap children
2020/10/27 05:11:21 [debug] 15936\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:11:21 [debug] 15936\#0: child: 1 17118 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:11:21 [debug] 15936\#0: channel 3:4
2020/10/27 05:11:21 [notice] 15936\#0: start worker process 17119
2020/10/27 05:11:21 [debug] 15936\#0: sigsuspend
2020/10/27 05:11:21 [debug] 17119\#0: malloc: 09C99FB0:12
'
058-tcp-socket.t TEST 9: resolver error (timeout) - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 9: resolver error (timeout) - response_body_like - response is expected () ''
doesn't match '(?^s:^failed to connect: blah-blah-not-found\.agentzh\.org could not be resolved(?: \(\d+: (?:Operation timed out|Host not found)\))?
connected: nil
failed to send request: closed$
)'
058-tcp-socket.t TEST 9: resolver error (timeout) - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 9: resolver error (timeout) - response_body_like - response is expected () ''
doesn't match '(?^s:^failed to connect: blah-blah-not-found\.agentzh\.org could not be resolved(?: \(\d+: (?:Operation timed out|Host not found)\))?
connected: nil
failed to send request: closed$
)'
058-tcp-socket.t TEST 17: ngx.socket.connect() shortcut (connection refused) - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 17: ngx.socket.connect() shortcut (connection refused) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'failed to connect: connection refused
'
058-tcp-socket.t TEST 17: ngx.socket.connect() shortcut (connection refused) - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 17: ngx.socket.connect() shortcut (connection refused) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'failed to connect: connection refused
'
058-tcp-socket.t TEST 4: with resolver - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 4: with resolver - response_body_like - response is expected () ''
doesn't match '(?^s:connected: 1
request sent: 56
first line received: HTTP\/1\.1 200 OK
second line received: (?:Date|Server): .*?
)'
058-tcp-socket.t TEST 4: with resolver - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 4: with resolver - response_body_like - response is expected () ''
doesn't match '(?^s:connected: 1
request sent: 56
first line received: HTTP\/1\.1 200 OK
second line received: (?:Date|Server): .*?
)'
058-tcp-socket.t TEST 51: IPv6 - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 51: IPv6 - response_body - response is expected (repeated req 0, req 0) @@ -1,11 +0,0 @@
-connected: 1
-request sent: 57
-received: HTTP/1.1 200 OK
-received: Server: nginx
-received: Content-Type: text/plain
-received: Content-Length: 4
-received: Connection: close
-received:
-received: foo
-failed to receive a line: closed []
-close: 1 nil
'
058-tcp-socket.t TEST 51: IPv6 - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 51: IPv6 - response_body - response is expected (repeated req 1, req 0) @@ -1,11 +0,0 @@
-connected: 1
-request sent: 57
-received: HTTP/1.1 200 OK
-received: Server: nginx
-received: Content-Type: text/plain
-received: Content-Length: 4
-received: Connection: close
-received:
-received: foo
-failed to receive a line: closed []
-close: 1 nil
'
058-tcp-socket.t TEST 24: two sockets mix together - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 24: two sockets mix together - response_body - response is expected (repeated req 0, req 0) @@ -1,8 +0,0 @@
-1: connected: 1
-2: connected: 1
-1: request sent: 11
-2: request sent: 57
-1: received: OK
-2: received: HTTP/1.1 200 OK
-1: close: 1 nil
-2: close: 1 nil
'
058-tcp-socket.t TEST 24: two sockets mix together - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 24: two sockets mix together - response_body - response is expected (repeated req 1, req 0) @@ -1,8 +0,0 @@
-1: connected: 1
-2: connected: 1
-1: request sent: 11
-2: request sent: 57
-1: received: OK
-2: received: HTTP/1.1 200 OK
-1: close: 1 nil
-2: close: 1 nil
'
058-tcp-socket.t TEST 33: reread after a read time out happen (receive -> receive) - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 33: reread after a read time out happen (receive -> receive) - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-connected: 1
-failed to receive: timeout
-failed to receive: timeout
'
058-tcp-socket.t TEST 33: reread after a read time out happen (receive -> receive) - pattern "lua tcp socket read timed out" should match a line in error.log (req 0)
058-tcp-socket.t TEST 33: reread after a read time out happen (receive -> receive) - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 33: reread after a read time out happen (receive -> receive) - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-connected: 1
-failed to receive: timeout
-failed to receive: timeout
'
058-tcp-socket.t TEST 33: reread after a read time out happen (receive -> receive) - pattern "lua tcp socket read timed out" should match a line in error.log (req 1)
058-tcp-socket.t TEST 60: send boolean and nil - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 60: send boolean and nil - response_body - response is expected (repeated req 0, req 0) @@ -1,6 +0,0 @@
-received: HTTP/1.1 200 OK
-received: Server: nginx
-received: Content-Type: text/plain
-received: Connection: close
-received:
-received: truefalsenil
'
058-tcp-socket.t TEST 60: send boolean and nil - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 60: send boolean and nil - response_body - response is expected (repeated req 1, req 0) @@ -1,6 +0,0 @@
-received: HTTP/1.1 200 OK
-received: Server: nginx
-received: Content-Type: text/plain
-received: Connection: close
-received:
-received: truefalsenil
'
058-tcp-socket.t TEST 8: resolver error (host not found) - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 8: resolver error (host not found) - response_body_like - response is expected () ''
doesn't match '(?^s:^failed to connect: blah-blah-not-found\.agentzh\.org could not be resolved(?: \(3: Host not found\))?
connected: nil
failed to send request: closed$
)'
058-tcp-socket.t TEST 8: resolver error (host not found) - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 8: resolver error (host not found) - response_body_like - response is expected () ''
doesn't match '(?^s:^failed to connect: blah-blah-not-found\.agentzh\.org could not be resolved(?: \(3: Host not found\))?
connected: nil
failed to send request: closed$
)'
058-tcp-socket.t TEST 18: receive by chunks (stringified size) - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 18: receive by chunks (stringified size) - response_body - response is expected (repeated req 0, req 0) @@ -1,11 +0,0 @@
-connected: 1
-request sent: 57
-[HTTP/1.1 2][00 OK
-Ser][ver: nginx][
-Content-][Type: text][/plain
-Co][ntent-Leng][th: 4
-Con][nection: c][lose
-
-fo]failed to receive a line: closed [o
-]
-close: 1 nil
'
058-tcp-socket.t TEST 18: receive by chunks (stringified size) - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 18: receive by chunks (stringified size) - response_body - response is expected (repeated req 1, req 0) @@ -1,11 +0,0 @@
-connected: 1
-request sent: 57
-[HTTP/1.1 2][00 OK
-Ser][ver: nginx][
-Content-][Type: text][/plain
-Co][ntent-Leng][th: 4
-Con][nection: c][lose
-
-fo]failed to receive a line: closed [o
-]
-close: 1 nil
'
058-tcp-socket.t TEST 44: bad request tries to close - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 44: bad request tries to close - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'connected
'
058-tcp-socket.t TEST 44: bad request tries to close - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:11:39 [alert] 15936\#0: worker process 17399 exited on signal 11" (req 0) 2020/10/27 05:11:39 [debug] 15936\#0: shmtx forced unlock
2020/10/27 05:11:39 [debug] 15936\#0: wake up, sigio 0
2020/10/27 05:11:39 [debug] 15936\#0: reap children
2020/10/27 05:11:39 [debug] 15936\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:11:39 [debug] 15936\#0: child: 1 17399 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:11:39 [debug] 15936\#0: channel 3:4
2020/10/27 05:11:39 [notice] 15936\#0: start worker process 17421
2020/10/27 05:11:39 [debug] 15936\#0: sigsuspend
2020/10/27 05:11:39 [debug] 17421\#0: malloc: 09C99FB0:12
'
058-tcp-socket.t TEST 44: bad request tries to close - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 44: bad request tries to close - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'connected
'
058-tcp-socket.t TEST 44: bad request tries to close - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:11:39 [alert] 15936\#0: worker process 17421 exited on signal 11" (req 1) 2020/10/27 05:11:39 [debug] 15936\#0: shmtx forced unlock
2020/10/27 05:11:39 [debug] 15936\#0: wake up, sigio 0
2020/10/27 05:11:39 [debug] 15936\#0: reap children
2020/10/27 05:11:39 [debug] 15936\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:11:39 [debug] 15936\#0: child: 1 17421 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:11:39 [debug] 15936\#0: channel 3:4
2020/10/27 05:11:39 [notice] 15936\#0: start worker process 17422
2020/10/27 05:11:39 [debug] 15936\#0: sigsuspend
2020/10/27 05:11:39 [debug] 17422\#0: malloc: 09C99FB0:12
'
058-tcp-socket.t TEST 15: line reading (very small buffer) - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 15: line reading (very small buffer) - response_body - response is expected (repeated req 0, req 0) @@ -1,11 +0,0 @@
-connected: 1
-request sent: 57
-received: HTTP/1.1 200 OK
-received: Server: nginx
-received: Content-Type: text/plain
-received: Content-Length: 4
-received: Connection: close
-received:
-received: foo
-failed to receive a line: closed []
-close: 1 nil
'
058-tcp-socket.t TEST 15: line reading (very small buffer) - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 15: line reading (very small buffer) - response_body - response is expected (repeated req 1, req 0) @@ -1,11 +0,0 @@
-connected: 1
-request sent: 57
-received: HTTP/1.1 200 OK
-received: Server: nginx
-received: Content-Type: text/plain
-received: Content-Length: 4
-received: Connection: close
-received:
-received: foo
-failed to receive a line: closed []
-close: 1 nil
'
058-tcp-socket.t TEST 48: cosocket resolving aborted by coroutine yielding failures (xpcall err) - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 48: cosocket resolving aborted by coroutine yielding failures (xpcall err) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'ok
'
058-tcp-socket.t TEST 48: cosocket resolving aborted by coroutine yielding failures (xpcall err) - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:11:43 [alert] 15936\#0: worker process 17460 exited on signal 11" (req 0) 2020/10/27 05:11:43 [debug] 15936\#0: shmtx forced unlock
2020/10/27 05:11:43 [debug] 15936\#0: wake up, sigio 0
2020/10/27 05:11:43 [debug] 15936\#0: reap children
2020/10/27 05:11:43 [debug] 15936\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:11:43 [debug] 15936\#0: child: 1 17460 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:11:43 [debug] 15936\#0: channel 3:4
2020/10/27 05:11:43 [notice] 15936\#0: start worker process 17482
2020/10/27 05:11:43 [debug] 15936\#0: sigsuspend
2020/10/27 05:11:43 [debug] 17482\#0: malloc: 09C99FB0:12
'
058-tcp-socket.t TEST 48: cosocket resolving aborted by coroutine yielding failures (xpcall err) - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 48: cosocket resolving aborted by coroutine yielding failures (xpcall err) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'ok
'
058-tcp-socket.t TEST 48: cosocket resolving aborted by coroutine yielding failures (xpcall err) - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:11:43 [alert] 15936\#0: worker process 17482 exited on signal 11" (req 1) 2020/10/27 05:11:43 [debug] 15936\#0: shmtx forced unlock
2020/10/27 05:11:43 [debug] 15936\#0: wake up, sigio 0
2020/10/27 05:11:43 [debug] 15936\#0: reap children
2020/10/27 05:11:43 [debug] 15936\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:11:43 [debug] 15936\#0: child: 1 17482 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:11:43 [debug] 15936\#0: channel 3:4
2020/10/27 05:11:43 [notice] 15936\#0: start worker process 17483
2020/10/27 05:11:43 [debug] 15936\#0: sigsuspend
2020/10/27 05:11:43 [debug] 17483\#0: malloc: 09C99FB0:12
'
058-tcp-socket.t TEST 36: successful reread after a read time out happen (receiveuntil -> receiveuntil) - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 36: successful reread after a read time out happen (receiveuntil -> receiveuntil) - response_body - response is expected (repeated req 0, req 0) @@ -1,5 +0,0 @@
-failed to receive: timeout, partial: 2
-hi
-
-received: 5
-received: world
'
058-tcp-socket.t TEST 36: successful reread after a read time out happen (receiveuntil -> receiveuntil) - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:11:45 [alert] 15936\#0: worker process 17490 exited on signal 11" (req 0) 2020/10/27 05:11:45 [debug] 15936\#0: shmtx forced unlock
2020/10/27 05:11:45 [debug] 15936\#0: wake up, sigio 0
2020/10/27 05:11:45 [debug] 15936\#0: reap children
2020/10/27 05:11:45 [debug] 15936\#0: child: 0 17490 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:11:45 [debug] 15936\#0: channel 3:4
2020/10/27 05:11:45 [notice] 15936\#0: start worker process 17512
2020/10/27 05:11:45 [debug] 15936\#0: sigsuspend
2020/10/27 05:11:45 [debug] 17512\#0: malloc: 09C9EA90:12
2020/10/27 05:11:45 [debug] 17512\#0: malloc: 09CA3260:8
'
058-tcp-socket.t TEST 36: successful reread after a read time out happen (receiveuntil -> receiveuntil) - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 36: successful reread after a read time out happen (receiveuntil -> receiveuntil) - response_body - response is expected (repeated req 1, req 0) @@ -1,5 +0,0 @@
-failed to receive: timeout, partial: 2
-hi
-
-received: 5
-received: world
'
058-tcp-socket.t TEST 36: successful reread after a read time out happen (receiveuntil -> receiveuntil) - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:11:45 [alert] 15936\#0: worker process 17512 exited on signal 11" (req 1) 2020/10/27 05:11:45 [debug] 15936\#0: shmtx forced unlock
2020/10/27 05:11:45 [debug] 15936\#0: wake up, sigio 0
2020/10/27 05:11:45 [debug] 15936\#0: reap children
2020/10/27 05:11:45 [debug] 15936\#0: child: 0 17512 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:11:45 [debug] 15936\#0: channel 3:4
2020/10/27 05:11:45 [notice] 15936\#0: start worker process 17513
2020/10/27 05:11:45 [debug] 15936\#0: sigsuspend
2020/10/27 05:11:45 [debug] 17513\#0: malloc: 09C9EA90:12
2020/10/27 05:11:45 [debug] 17513\#0: malloc: 09CA3260:8
'
058-tcp-socket.t TEST 45: bad request tries to set keepalive - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 45: bad request tries to set keepalive - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'connected
'
058-tcp-socket.t TEST 45: bad request tries to set keepalive - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:11:47 [alert] 15936\#0: worker process 17520 exited on signal 11" (req 0) 2020/10/27 05:11:47 [debug] 15936\#0: shmtx forced unlock
2020/10/27 05:11:47 [debug] 15936\#0: wake up, sigio 0
2020/10/27 05:11:47 [debug] 15936\#0: reap children
2020/10/27 05:11:47 [debug] 15936\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:11:47 [debug] 15936\#0: child: 1 17520 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:11:47 [debug] 15936\#0: channel 3:4
2020/10/27 05:11:47 [notice] 15936\#0: start worker process 17542
2020/10/27 05:11:47 [debug] 15936\#0: sigsuspend
2020/10/27 05:11:47 [debug] 17542\#0: malloc: 09C99FB0:12
'
058-tcp-socket.t TEST 45: bad request tries to set keepalive - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 45: bad request tries to set keepalive - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'connected
'
058-tcp-socket.t TEST 45: bad request tries to set keepalive - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:11:47 [alert] 15936\#0: worker process 17542 exited on signal 11" (req 1) 2020/10/27 05:11:47 [debug] 15936\#0: shmtx forced unlock
2020/10/27 05:11:47 [debug] 15936\#0: wake up, sigio 0
2020/10/27 05:11:47 [debug] 15936\#0: reap children
2020/10/27 05:11:47 [debug] 15936\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:11:47 [debug] 15936\#0: child: 1 17542 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:11:47 [debug] 15936\#0: channel 3:4
2020/10/27 05:11:47 [notice] 15936\#0: start worker process 17543
2020/10/27 05:11:47 [debug] 15936\#0: sigsuspend
2020/10/27 05:11:47 [debug] 17543\#0: malloc: 09C99FB0:12
'
058-tcp-socket.t TEST 30: receive(0) - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 30: receive(0) - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-connected: 1
-request sent: 57
-receive(0): []
-close: 1 nil
'
058-tcp-socket.t TEST 30: receive(0) - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 30: receive(0) - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +0,0 @@
-connected: 1
-request sent: 57
-receive(0): []
-close: 1 nil
'
058-tcp-socket.t TEST 7: not closed manually - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 7: not closed manually - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'connected: 1
'
058-tcp-socket.t TEST 7: not closed manually - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 7: not closed manually - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'connected: 1
'
058-tcp-socket.t TEST 55: free cleanup in ngx.timer (without sock:close) - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 55: free cleanup in ngx.timer (without sock:close) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'total_send_bytes: 114
'
058-tcp-socket.t TEST 55: free cleanup in ngx.timer (without sock:close) - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 55: free cleanup in ngx.timer (without sock:close) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'total_send_bytes: 114
'
058-tcp-socket.t TEST 64: receiveany with limited, max <= 0 - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 64: receiveany with limited, max <= 0 - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-bad argument \#2 to '?' (bad max argument)
-bad argument \#2 to '?' (bad max argument)
-expecting 2 arguments (including the object), but got 1
-bad argument \#2 to '?' (bad max argument)
'
058-tcp-socket.t TEST 64: receiveany with limited, max <= 0 - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 64: receiveany with limited, max <= 0 - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +0,0 @@
-bad argument \#2 to '?' (bad max argument)
-bad argument \#2 to '?' (bad max argument)
-expecting 2 arguments (including the object), but got 1
-bad argument \#2 to '?' (bad max argument)
'
058-tcp-socket.t TEST 58: resolver send query failing immediately in connect() - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 58: resolver send query failing immediately in connect() - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 25: send tables of string fragments - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 25: send tables of string fragments - response_body - response is expected (repeated req 0, req 0) @@ -1,11 +0,0 @@
-connected: 1
-request sent: 57
-received: HTTP/1.1 200 OK
-received: Server: nginx
-received: Content-Type: text/plain
-received: Content-Length: 4
-received: Connection: close
-received:
-received: foo
-failed to receive a line: closed []
-close: 1 nil
'
058-tcp-socket.t TEST 25: send tables of string fragments - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 25: send tables of string fragments - response_body - response is expected (repeated req 1, req 0) @@ -1,11 +0,0 @@
-connected: 1
-request sent: 57
-received: HTTP/1.1 200 OK
-received: Server: nginx
-received: Content-Type: text/plain
-received: Content-Length: 4
-received: Connection: close
-received:
-received: foo
-failed to receive a line: closed []
-close: 1 nil
'
058-tcp-socket.t TEST 10: explicit *l pattern for receive - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 10: explicit *l pattern for receive - response_body - response is expected (repeated req 0, req 0) @@ -1,11 +0,0 @@
-connected: 1
-request sent: 57
-received: HTTP/1.1 200 OK
-received: Server: nginx
-received: Content-Type: text/plain
-received: Content-Length: 4
-received: Connection: close
-received:
-received: foo
-failed to receive a line: closed
-close: 1 nil
'
058-tcp-socket.t TEST 10: explicit *l pattern for receive - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 10: explicit *l pattern for receive - response_body - response is expected (repeated req 1, req 0) @@ -1,11 +0,0 @@
-connected: 1
-request sent: 57
-received: HTTP/1.1 200 OK
-received: Server: nginx
-received: Content-Type: text/plain
-received: Content-Length: 4
-received: Connection: close
-received:
-received: foo
-failed to receive a line: closed
-close: 1 nil
'
058-tcp-socket.t TEST 52: kill a thread with a connecting socket - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 52: kill a thread with a connecting socket - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'failed to setkeepalive: closed
'
058-tcp-socket.t TEST 52: kill a thread with a connecting socket - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 52: kill a thread with a connecting socket - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'failed to setkeepalive: closed
'
058-tcp-socket.t TEST 11: *a pattern for receive - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 11: *a pattern for receive - response_body - response is expected (repeated req 0, req 0) @@ -1,12 +0,0 @@
-connected: 1
-request sent: 57
-receive: HTTP/1.1 200 OK
-Server: nginx
-Content-Type: text/plain
-Content-Length: 4
-Connection: close
-
-foo
-
-err: nil
-close: 1 nil
'
058-tcp-socket.t TEST 11: *a pattern for receive - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 11: *a pattern for receive - response_body - response is expected (repeated req 1, req 0) @@ -1,12 +0,0 @@
-connected: 1
-request sent: 57
-receive: HTTP/1.1 200 OK
-Server: nginx
-Content-Type: text/plain
-Content-Length: 4
-Connection: close
-
-foo
-
-err: nil
-close: 1 nil
'
058-tcp-socket.t TEST 12: mixing *a and *l patterns for receive - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 12: mixing *a and *l patterns for receive - response_body - response is expected (repeated req 0, req 0) @@ -1,13 +0,0 @@
-connected: 1
-request sent: 57
-receive: HTTP/1.1 200 OK
-err: nil
-receive: Server: nginx
-Content-Type: text/plain
-Content-Length: 4
-Connection: close
-
-foo
-
-err: nil
-close: 1 nil
'
058-tcp-socket.t TEST 12: mixing *a and *l patterns for receive - status code ok got: ''
expected: '200'
058-tcp-socket.t TEST 12: mixing *a and *l patterns for receive - response_body - response is expected (repeated req 1, req 0) @@ -1,13 +0,0 @@
-connected: 1
-request sent: 57
-receive: HTTP/1.1 200 OK
-err: nil
-receive: Server: nginx
-Content-Type: text/plain
-Content-Length: 4
-Connection: close
-
-foo
-
-err: nil
-close: 1 nil
'
059-unix-socket.t TEST 1: connection refused (unix domain socket) - status code ok got: ''
expected: '200'
059-unix-socket.t TEST 1: connection refused (unix domain socket) - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-connect: nil no such file or directory
-send: nil closed
-receive: nil closed
-close: nil closed
'
059-unix-socket.t TEST 1: connection refused (unix domain socket) - status code ok got: ''
expected: '200'
059-unix-socket.t TEST 1: connection refused (unix domain socket) - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +0,0 @@
-connect: nil no such file or directory
-send: nil closed
-receive: nil closed
-close: nil closed
'
059-unix-socket.t TEST 3: sanity - status code ok got: ''
expected: '200'
059-unix-socket.t TEST 3: sanity - response_body - response is expected (repeated req 0, req 0) @@ -1,11 +0,0 @@
-connected: 1
-request sent: 57
-received: HTTP/1.1 200 OK
-received: Server: nginx
-received: Content-Type: text/plain
-received: Content-Length: 4
-received: Connection: close
-received:
-received: foo
-failed to receive a line: closed
-close: 1 nil
'
059-unix-socket.t TEST 3: sanity - status code ok got: ''
expected: '200'
059-unix-socket.t TEST 3: sanity - response_body - response is expected (repeated req 1, req 0) @@ -1,11 +0,0 @@
-connected: 1
-request sent: 57
-received: HTTP/1.1 200 OK
-received: Server: nginx
-received: Content-Type: text/plain
-received: Content-Length: 4
-received: Connection: close
-received:
-received: foo
-failed to receive a line: closed
-close: 1 nil
'
059-unix-socket.t TEST 2: invalid host argument - status code ok got: ''
expected: '200'
059-unix-socket.t TEST 2: invalid host argument - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'failed to connect: failed to parse host name "/tmp/test-nginx.sock": invalid host
'
059-unix-socket.t TEST 2: invalid host argument - status code ok got: ''
expected: '200'
059-unix-socket.t TEST 2: invalid host argument - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'failed to connect: failed to parse host name "/tmp/test-nginx.sock": invalid host
'
060-lua-memcached.t ERROR: client socket timed out - TEST 2: raw memcached '
060-lua-memcached.t TEST 2: raw memcached - status code ok got: ''
expected: '200'
060-lua-memcached.t TEST 2: raw memcached - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'some_key: hello 1234
'
060-lua-memcached.t TEST 2: raw memcached - pattern "lua reuse free buf memory" should match a line in error.log (req 0)
060-lua-memcached.t ERROR: client socket timed out - TEST 2: raw memcached '
060-lua-memcached.t TEST 2: raw memcached - status code ok got: ''
expected: '200'
060-lua-memcached.t TEST 2: raw memcached - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'some_key: hello 1234
'
060-lua-memcached.t TEST 2: raw memcached - pattern "lua reuse free buf memory" should match a line in error.log (req 1)
060-lua-memcached.t ERROR: client socket timed out - TEST 1: sanity '
060-lua-memcached.t TEST 1: sanity - status code ok got: ''
expected: '200'
060-lua-memcached.t TEST 1: sanity - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'some_key: hello 1234
'
060-lua-memcached.t ERROR: client socket timed out - TEST 1: sanity '
060-lua-memcached.t TEST 1: sanity - status code ok got: ''
expected: '200'
060-lua-memcached.t TEST 1: sanity - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'some_key: hello 1234
'
061-lua-redis.t TEST 2: coroutine-based pub/sub - status code ok got: ''
expected: '200'
061-lua-redis.t TEST 2: coroutine-based pub/sub - response_body - response is expected (repeated req 0, req 0) @@ -1,10 +0,0 @@
-msg type: table
-abort: function
-msg: {"channel":"foo","kind":"subscribe","payload":1}
-msg: {"channel":"foo","kind":"message","payload":"test 1"}
-abort: function
-msg: {"channel":"foo","kind":"message","payload":"test 2"}
-abort: function
-msg: {"channel":"foo","kind":"message","payload":"test 3"}
-abort: function
-msg type: nil
'
061-lua-redis.t TEST 2: coroutine-based pub/sub - pattern "[error]" should not match any line in error.log but matches line "2020/10/27 05:12:24 [error] 17967\#0: *3 connect() failed (111: Connection refused), client: 127.0.0.1, server: 0.0.0.0:1985" (req 0) 2020/10/27 05:12:24 [debug] 17967\#0: *3 stream lua tcp socket handle connect error
2020/10/27 05:12:24 [debug] 17967\#0: *3 stream lua finalize socket
2020/10/27 05:12:24 [debug] 17967\#0: *3 lua stream cleanup free: 0887FC28
2020/10/27 05:12:24 [debug] 17967\#0: *3 lua close socket connection
2020/10/27 05:12:24 [debug] 17967\#0: *3 reusable connection: 0
2020/10/27 05:12:24 [debug] 17967\#0: *3 stream lua tcp socket waking up the current request
2020/10/27 05:12:24 [debug] 17967\#0: *3 lua ngx_stream_lua_content_wev_handler
2020/10/27 05:12:24 [debug] 17967\#0: *3 stream lua tcp operation done, resuming lua thread
2020/10/27 05:12:24 [debug] 17967\#0: *3 stream lua tcp socket calling prepare retvals handler 081677D0, u:B6E547F8
'
061-lua-redis.t TEST 2: coroutine-based pub/sub - pattern "[error]" should not match any line in error.log but matches line "2020/10/27 05:12:24 [error] 17967\#0: *3 lua entry thread aborted: runtime error: /home/ec2-user/git/stream-lua-nginx-module/t/lib/Redis.lua:709: could not connect to 127.0.0.1:6379 [connection refused]" (req 0) stack traceback:
coroutine 0:
[C]: in function 'lua_error'
/home/ec2-user/git/stream-lua-nginx-module/t/lib/Redis.lua:45: in function 'default_error_fn'
/home/ec2-user/git/stream-lua-nginx-module/t/lib/Redis.lua:709: in function 'create_connection'
/home/ec2-user/git/stream-lua-nginx-module/t/lib/Redis.lua:766: in function 'connect'
content_by_lua(nginx.conf:56):7: in main chunk, client: 127.0.0.1, server: 0.0.0.0:1985
2020/10/27 05:12:24 [debug] 17967\#0: *3 lua request cleanup: forcible=0
2020/10/27 05:12:24 [debug] 17967\#0: *3 stream lua run thread returned 500
'
061-lua-redis.t TEST 2: coroutine-based pub/sub - status code ok got: ''
expected: '200'
061-lua-redis.t TEST 2: coroutine-based pub/sub - response_body - response is expected (repeated req 1, req 0) @@ -1,10 +0,0 @@
-msg type: table
-abort: function
-msg: {"channel":"foo","kind":"subscribe","payload":1}
-msg: {"channel":"foo","kind":"message","payload":"test 1"}
-abort: function
-msg: {"channel":"foo","kind":"message","payload":"test 2"}
-abort: function
-msg: {"channel":"foo","kind":"message","payload":"test 3"}
-abort: function
-msg type: nil
'
061-lua-redis.t TEST 2: coroutine-based pub/sub - pattern "[error]" should not match any line in error.log but matches line "2020/10/27 05:12:24 [error] 17968\#0: *7 connect() failed (111: Connection refused), client: 127.0.0.1, server: 0.0.0.0:1985" (req 1) 2020/10/27 05:12:24 [debug] 17968\#0: *7 stream lua tcp socket handle connect error
2020/10/27 05:12:24 [debug] 17968\#0: *7 stream lua finalize socket
2020/10/27 05:12:24 [debug] 17968\#0: *7 lua stream cleanup free: 0887FC28
2020/10/27 05:12:24 [debug] 17968\#0: *7 lua close socket connection
2020/10/27 05:12:24 [debug] 17968\#0: *7 reusable connection: 0
2020/10/27 05:12:24 [debug] 17968\#0: *7 stream lua tcp socket waking up the current request
2020/10/27 05:12:24 [debug] 17968\#0: *7 lua ngx_stream_lua_content_wev_handler
2020/10/27 05:12:24 [debug] 17968\#0: *7 stream lua tcp operation done, resuming lua thread
2020/10/27 05:12:24 [debug] 17968\#0: *7 stream lua tcp socket calling prepare retvals handler 081677D0, u:B6E547F8
'
061-lua-redis.t TEST 2: coroutine-based pub/sub - pattern "[error]" should not match any line in error.log but matches line "2020/10/27 05:12:24 [error] 17968\#0: *7 lua entry thread aborted: runtime error: /home/ec2-user/git/stream-lua-nginx-module/t/lib/Redis.lua:709: could not connect to 127.0.0.1:6379 [connection refused]" (req 1) stack traceback:
coroutine 0:
[C]: in function 'lua_error'
/home/ec2-user/git/stream-lua-nginx-module/t/lib/Redis.lua:45: in function 'default_error_fn'
/home/ec2-user/git/stream-lua-nginx-module/t/lib/Redis.lua:709: in function 'create_connection'
/home/ec2-user/git/stream-lua-nginx-module/t/lib/Redis.lua:766: in function 'connect'
content_by_lua(nginx.conf:56):7: in main chunk, client: 127.0.0.1, server: 0.0.0.0:1985
2020/10/27 05:12:24 [debug] 17968\#0: *7 lua request cleanup: forcible=0
2020/10/27 05:12:24 [debug] 17968\#0: *7 stream lua run thread returned 500
'
061-lua-redis.t TEST 1: sanity - status code ok got: ''
expected: '200'
061-lua-redis.t TEST 1: sanity - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'some_key: hello 1234
'
061-lua-redis.t TEST 1: sanity - pattern "[error]" should not match any line in error.log but matches line "2020/10/27 05:12:26 [error] 17976\#0: *33 connect() failed (111: Connection refused), client: 127.0.0.1, server: 0.0.0.0:1985" (req 0) 2020/10/27 05:12:26 [debug] 17976\#0: *33 stream lua tcp socket handle connect error
2020/10/27 05:12:26 [debug] 17976\#0: *33 stream lua finalize socket
2020/10/27 05:12:26 [debug] 17976\#0: *33 lua stream cleanup free: 088AA470
2020/10/27 05:12:26 [debug] 17976\#0: *33 lua close socket connection
2020/10/27 05:12:26 [debug] 17976\#0: *33 reusable connection: 0
2020/10/27 05:12:26 [debug] 17976\#0: *33 stream lua tcp socket waking up the current request
2020/10/27 05:12:26 [debug] 17976\#0: *33 lua ngx_stream_lua_content_wev_handler
2020/10/27 05:12:26 [debug] 17976\#0: *33 stream lua tcp operation done, resuming lua thread
2020/10/27 05:12:26 [debug] 17976\#0: *33 stream lua tcp socket calling prepare retvals handler 081677D0, u:B6DD8790
'
061-lua-redis.t TEST 1: sanity - pattern "[error]" should not match any line in error.log but matches line "2020/10/27 05:12:26 [error] 17976\#0: *33 lua entry thread aborted: runtime error: /home/ec2-user/git/stream-lua-nginx-module/t/lib/Redis.lua:709: could not connect to 127.0.0.1:6379 [connection refused]" (req 0) stack traceback:
coroutine 0:
[C]: in function 'lua_error'
/home/ec2-user/git/stream-lua-nginx-module/t/lib/Redis.lua:45: in function 'default_error_fn'
/home/ec2-user/git/stream-lua-nginx-module/t/lib/Redis.lua:709: in function 'create_connection'
/home/ec2-user/git/stream-lua-nginx-module/t/lib/Redis.lua:766: in function 'connect'
content_by_lua(nginx.conf:31):5: in main chunk, client: 127.0.0.1, server: 0.0.0.0:1985
2020/10/27 05:12:26 [debug] 17976\#0: *33 lua request cleanup: forcible=0
2020/10/27 05:12:26 [debug] 17976\#0: *33 stream lua run thread returned 500
'
061-lua-redis.t TEST 1: sanity - status code ok got: ''
expected: '200'
061-lua-redis.t TEST 1: sanity - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'some_key: hello 1234
'
061-lua-redis.t TEST 1: sanity - pattern "[error]" should not match any line in error.log but matches line "2020/10/27 05:12:26 [error] 17998\#0: *37 connect() failed (111: Connection refused), client: 127.0.0.1, server: 0.0.0.0:1985" (req 1) 2020/10/27 05:12:26 [debug] 17998\#0: *37 stream lua tcp socket handle connect error
2020/10/27 05:12:26 [debug] 17998\#0: *37 stream lua finalize socket
2020/10/27 05:12:26 [debug] 17998\#0: *37 lua stream cleanup free: 088AA4A0
2020/10/27 05:12:26 [debug] 17998\#0: *37 lua close socket connection
2020/10/27 05:12:26 [debug] 17998\#0: *37 reusable connection: 0
2020/10/27 05:12:26 [debug] 17998\#0: *37 stream lua tcp socket waking up the current request
2020/10/27 05:12:26 [debug] 17998\#0: *37 lua ngx_stream_lua_content_wev_handler
2020/10/27 05:12:26 [debug] 17998\#0: *37 stream lua tcp operation done, resuming lua thread
2020/10/27 05:12:26 [debug] 17998\#0: *37 stream lua tcp socket calling prepare retvals handler 081677D0, u:B6DD8790
'
061-lua-redis.t TEST 1: sanity - pattern "[error]" should not match any line in error.log but matches line "2020/10/27 05:12:26 [error] 17998\#0: *37 lua entry thread aborted: runtime error: /home/ec2-user/git/stream-lua-nginx-module/t/lib/Redis.lua:709: could not connect to 127.0.0.1:6379 [connection refused]" (req 1) stack traceback:
coroutine 0:
[C]: in function 'lua_error'
/home/ec2-user/git/stream-lua-nginx-module/t/lib/Redis.lua:45: in function 'default_error_fn'
/home/ec2-user/git/stream-lua-nginx-module/t/lib/Redis.lua:709: in function 'create_connection'
/home/ec2-user/git/stream-lua-nginx-module/t/lib/Redis.lua:766: in function 'connect'
content_by_lua(nginx.conf:31):5: in main chunk, client: 127.0.0.1, server: 0.0.0.0:1985
2020/10/27 05:12:26 [debug] 17998\#0: *37 lua request cleanup: forcible=0
2020/10/27 05:12:26 [debug] 17998\#0: *37 stream lua run thread returned 500
'
062-count.t TEST 15: entries under the metatable of req raw sockets - status code ok got: ''
expected: '200'
062-count.t TEST 15: entries under the metatable of req raw sockets - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'n = 9
'
062-count.t TEST 10: entries under coroutine. (content by lua) - status code ok got: ''
expected: '200'
062-count.t TEST 10: entries under coroutine. (content by lua) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'coroutine: 16
'
062-count.t TEST 6: shdict metatable - status code ok got: ''
expected: '200'
062-count.t TEST 6: shdict metatable - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'n = 22
'
062-count.t TEST 14: entries under the metatable of udp sockets - status code ok got: ''
expected: '200'
062-count.t TEST 14: entries under the metatable of udp sockets - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'n = 6
'
062-count.t TEST 7: entries under ngx.timer - status code ok got: ''
expected: '200'
062-count.t TEST 7: entries under ngx.timer - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'n = 4
'
062-count.t TEST 13: entries under the metatable of tcp sockets - status code ok got: ''
expected: '200'
062-count.t TEST 13: entries under the metatable of tcp sockets - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'n = 14
'
062-count.t TEST 1: entries under ngx. (content by lua) - status code ok got: ''
expected: '200'
062-count.t TEST 1: entries under ngx. (content by lua) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'ngx: 53
'
062-count.t TEST 3: entries under ngx.socket - status code ok got: ''
expected: '200'
062-count.t TEST 3: entries under ngx.socket - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'n = 4
'
062-count.t TEST 5: entries under the metatable of req sockets - status code ok got: ''
expected: '200'
062-count.t TEST 5: entries under the metatable of req sockets - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'n = 9
'
062-count.t TEST 11: entries under ngx.thread. (content by lua) - status code ok got: ''
expected: '200'
062-count.t TEST 11: entries under ngx.thread. (content by lua) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'thread: 3
'
062-count.t TEST 9: entries under ngx.re - status code ok got: ''
expected: '200'
062-count.t TEST 9: entries under ngx.re - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'n = 5
'
062-count.t TEST 12: entries under ngx.worker - status code ok got: ''
expected: '200'
062-count.t TEST 12: entries under ngx.worker - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'worker: 4
'
062-count.t TEST 2: entries under ngx.req (content by lua) - status code ok got: ''
expected: '200'
062-count.t TEST 2: entries under ngx.req (content by lua) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'n = 2
'
062-count.t TEST 8: entries under ngx.config - status code ok got: ''
expected: '200'
062-count.t TEST 8: entries under ngx.config - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'n = 6
'
064-pcall.t TEST 2: xpcall works - status code ok got: ''
expected: '200'
064-pcall.t TEST 2: xpcall works - response_body - like (repeated req 0, req 0) ''
doesn't match '(?^:^error handler called: content_by_lua\(nginx\.conf:\d+\):4: zero error
res len: 2
res: falsethis is the new err
res len: 4
res: true23hellotrue
$)'
064-pcall.t TEST 2: xpcall works - status code ok got: ''
expected: '200'
064-pcall.t TEST 2: xpcall works - response_body - like (repeated req 1, req 0) ''
doesn't match '(?^:^error handler called: content_by_lua\(nginx\.conf:\d+\):4: zero error
res len: 2
res: falsethis is the new err
res len: 4
res: true23hellotrue
$)'
064-pcall.t TEST 1: pcall works - status code ok got: ''
expected: '200'
064-pcall.t TEST 1: pcall works - response_body - like (repeated req 0, req 0) ''
doesn't match '(?^s:^res len: 2
res: falsecontent_by_lua\(nginx\.conf:\d+\):4: zero error
res len: 4
res: true23hellotrue
$)'
064-pcall.t TEST 1: pcall works - status code ok got: ''
expected: '200'
064-pcall.t TEST 1: pcall works - response_body - like (repeated req 1, req 0) ''
doesn't match '(?^s:^res len: 2
res: falsecontent_by_lua\(nginx\.conf:\d+\):4: zero error
res len: 4
res: true23hellotrue
$)'
065-tcp-socket-timeout.t TEST 4: sock:settimeout(0) does not override lua_socket_connect_timeout - status code ok got: ''
expected: '200'
065-tcp-socket-timeout.t TEST 4: sock:settimeout(0) does not override lua_socket_connect_timeout - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'failed to connect: timeout
'
065-tcp-socket-timeout.t TEST 4: sock:settimeout(0) does not override lua_socket_connect_timeout - status code ok got: ''
expected: '200'
065-tcp-socket-timeout.t TEST 4: sock:settimeout(0) does not override lua_socket_connect_timeout - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'failed to connect: timeout
'
065-tcp-socket-timeout.t TEST 10: -1 is bad timeout value - status code ok got: ''
expected: '200'
065-tcp-socket-timeout.t TEST 10: -1 is bad timeout value - status code ok got: ''
expected: '200'
065-tcp-socket-timeout.t TEST 14: sock:settimeout(0) does not override lua_socket_send_timeout - status code ok got: ''
expected: '200'
065-tcp-socket-timeout.t TEST 14: sock:settimeout(0) does not override lua_socket_send_timeout - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-connected: 1
-failed to send: timeout
'
065-tcp-socket-timeout.t TEST 14: sock:settimeout(0) does not override lua_socket_send_timeout - pattern "lua tcp socket write timed out" should match a line in error.log (req 0)
065-tcp-socket-timeout.t TEST 14: sock:settimeout(0) does not override lua_socket_send_timeout - status code ok got: ''
expected: '200'
065-tcp-socket-timeout.t TEST 14: sock:settimeout(0) does not override lua_socket_send_timeout - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-connected: 1
-failed to send: timeout
'
065-tcp-socket-timeout.t TEST 14: sock:settimeout(0) does not override lua_socket_send_timeout - pattern "lua tcp socket write timed out" should match a line in error.log (req 1)
065-tcp-socket-timeout.t TEST 11: lua_socket_send_timeout only - status code ok got: ''
expected: '200'
065-tcp-socket-timeout.t TEST 11: lua_socket_send_timeout only - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-connected: 1
-failed to send: timeout
'
065-tcp-socket-timeout.t TEST 11: lua_socket_send_timeout only - pattern "lua tcp socket write timed out" should match a line in error.log (req 0)
065-tcp-socket-timeout.t TEST 11: lua_socket_send_timeout only - status code ok got: ''
expected: '200'
065-tcp-socket-timeout.t TEST 11: lua_socket_send_timeout only - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-connected: 1
-failed to send: timeout
'
065-tcp-socket-timeout.t TEST 11: lua_socket_send_timeout only - pattern "lua tcp socket write timed out" should match a line in error.log (req 1)
065-tcp-socket-timeout.t TEST 13: sock:settimeout(nil) does not override lua_socket_send_timeout - status code ok got: ''
expected: '200'
065-tcp-socket-timeout.t TEST 13: sock:settimeout(nil) does not override lua_socket_send_timeout - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-connected: 1
-failed to send: timeout
'
065-tcp-socket-timeout.t TEST 13: sock:settimeout(nil) does not override lua_socket_send_timeout - pattern "lua tcp socket write timed out" should match a line in error.log (req 0)
065-tcp-socket-timeout.t TEST 13: sock:settimeout(nil) does not override lua_socket_send_timeout - status code ok got: ''
expected: '200'
065-tcp-socket-timeout.t TEST 13: sock:settimeout(nil) does not override lua_socket_send_timeout - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-connected: 1
-failed to send: timeout
'
065-tcp-socket-timeout.t TEST 13: sock:settimeout(nil) does not override lua_socket_send_timeout - pattern "lua tcp socket write timed out" should match a line in error.log (req 1)
065-tcp-socket-timeout.t TEST 18: re-send on the same object after a send timeout happens - status code ok got: ''
expected: '200'
065-tcp-socket-timeout.t TEST 18: re-send on the same object after a send timeout happens - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-connected: 1
-failed to send: timeout
-failed to send again: closed
'
065-tcp-socket-timeout.t TEST 18: re-send on the same object after a send timeout happens - pattern "lua tcp socket write timed out" should match a line in error.log (req 0)
065-tcp-socket-timeout.t TEST 18: re-send on the same object after a send timeout happens - status code ok got: ''
expected: '200'
065-tcp-socket-timeout.t TEST 18: re-send on the same object after a send timeout happens - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-connected: 1
-failed to send: timeout
-failed to send again: closed
'
065-tcp-socket-timeout.t TEST 18: re-send on the same object after a send timeout happens - pattern "lua tcp socket write timed out" should match a line in error.log (req 1)
065-tcp-socket-timeout.t TEST 1: lua_socket_connect_timeout only - status code ok got: ''
expected: '200'
065-tcp-socket-timeout.t TEST 1: lua_socket_connect_timeout only - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'failed to connect: timeout
'
065-tcp-socket-timeout.t TEST 1: lua_socket_connect_timeout only - status code ok got: ''
expected: '200'
065-tcp-socket-timeout.t TEST 1: lua_socket_connect_timeout only - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'failed to connect: timeout
'
065-tcp-socket-timeout.t TEST 3: sock:settimeout(nil) does not override lua_socket_connect_timeout - status code ok got: ''
expected: '200'
065-tcp-socket-timeout.t TEST 3: sock:settimeout(nil) does not override lua_socket_connect_timeout - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'failed to connect: timeout
'
065-tcp-socket-timeout.t TEST 3: sock:settimeout(nil) does not override lua_socket_connect_timeout - status code ok got: ''
expected: '200'
065-tcp-socket-timeout.t TEST 3: sock:settimeout(nil) does not override lua_socket_connect_timeout - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'failed to connect: timeout
'
065-tcp-socket-timeout.t TEST 12: sock:settimeout() overrides lua_socket_send_timeout - status code ok got: ''
expected: '200'
065-tcp-socket-timeout.t TEST 12: sock:settimeout() overrides lua_socket_send_timeout - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-connected: 1
-failed to send: timeout
'
065-tcp-socket-timeout.t TEST 12: sock:settimeout() overrides lua_socket_send_timeout - pattern "lua tcp socket write timed out" should match a line in error.log (req 0)
065-tcp-socket-timeout.t TEST 12: sock:settimeout() overrides lua_socket_send_timeout - status code ok got: ''
expected: '200'
065-tcp-socket-timeout.t TEST 12: sock:settimeout() overrides lua_socket_send_timeout - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-connected: 1
-failed to send: timeout
'
065-tcp-socket-timeout.t TEST 12: sock:settimeout() overrides lua_socket_send_timeout - pattern "lua tcp socket write timed out" should match a line in error.log (req 1)
065-tcp-socket-timeout.t TEST 20: abort when downstream socket pending on writes - status code ok got: ''
expected: '200'
065-tcp-socket-timeout.t TEST 20: abort when downstream socket pending on writes - response_body_like - response is expected () ''
doesn't match '(?^s:^received [1-9]\d* bytes of response data\.$)'
065-tcp-socket-timeout.t TEST 20: abort when downstream socket pending on writes - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:13:50 [alert] 18438\#0: worker process 18680 exited on signal 11" (req 0) 2020/10/27 05:13:50 [debug] 18438\#0: shmtx forced unlock
2020/10/27 05:13:50 [debug] 18438\#0: wake up, sigio 0
2020/10/27 05:13:50 [debug] 18438\#0: reap children
2020/10/27 05:13:50 [debug] 18438\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:13:50 [debug] 18438\#0: child: 1 18680 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:13:50 [debug] 18438\#0: channel 3:4
2020/10/27 05:13:50 [notice] 18438\#0: start worker process 18701
2020/10/27 05:13:50 [debug] 18438\#0: sigsuspend
2020/10/27 05:13:50 [debug] 18701\#0: malloc: 086A6FB0:12
'
065-tcp-socket-timeout.t TEST 20: abort when downstream socket pending on writes - status code ok got: ''
expected: '200'
065-tcp-socket-timeout.t TEST 20: abort when downstream socket pending on writes - response_body_like - response is expected () ''
doesn't match '(?^s:^received [1-9]\d* bytes of response data\.$)'
065-tcp-socket-timeout.t TEST 20: abort when downstream socket pending on writes - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:13:51 [alert] 18438\#0: worker process 18701 exited on signal 11" (req 1) 2020/10/27 05:13:51 [debug] 18438\#0: shmtx forced unlock
2020/10/27 05:13:51 [debug] 18438\#0: wake up, sigio 0
2020/10/27 05:13:51 [debug] 18438\#0: reap children
2020/10/27 05:13:51 [debug] 18438\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:13:51 [debug] 18438\#0: child: 1 18701 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:13:51 [debug] 18438\#0: channel 3:4
2020/10/27 05:13:51 [notice] 18438\#0: start worker process 18702
2020/10/27 05:13:51 [debug] 18438\#0: sigsuspend
2020/10/27 05:13:51 [debug] 18702\#0: malloc: 086A6FB0:12
'
065-tcp-socket-timeout.t TEST 22: concurrent operations while writing - status code ok got: ''
expected: '200'
065-tcp-socket-timeout.t TEST 22: concurrent operations while writing - response_body - response is expected (repeated req 0, req 0) @@ -1,9 +0,0 @@
-connect: 1 nil
-send: nil socket busy writing
-close: nil socket busy writing
-getreusedtimes: 0 nil
-setkeepalive: nil socket busy writing
-connect: nil socket busy writing
-receive: nil timeout
-send failed: timeout
-close: 1 nil
'
065-tcp-socket-timeout.t TEST 22: concurrent operations while writing - status code ok got: ''
expected: '200'
065-tcp-socket-timeout.t TEST 22: concurrent operations while writing - response_body - response is expected (repeated req 1, req 0) @@ -1,9 +0,0 @@
-connect: 1 nil
-send: nil socket busy writing
-close: nil socket busy writing
-getreusedtimes: 0 nil
-setkeepalive: nil socket busy writing
-connect: nil socket busy writing
-receive: nil timeout
-send failed: timeout
-close: 1 nil
'
065-tcp-socket-timeout.t TEST 7: sock:settimeout() overrides lua_socket_read_timeout - status code ok got: ''
expected: '200'
065-tcp-socket-timeout.t TEST 7: sock:settimeout() overrides lua_socket_read_timeout - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-connected: 1
-failed to receive: timeout
'
065-tcp-socket-timeout.t TEST 7: sock:settimeout() overrides lua_socket_read_timeout - pattern "lua tcp socket read timed out" should match a line in error.log (req 0)
065-tcp-socket-timeout.t TEST 7: sock:settimeout() overrides lua_socket_read_timeout - status code ok got: ''
expected: '200'
065-tcp-socket-timeout.t TEST 7: sock:settimeout() overrides lua_socket_read_timeout - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-connected: 1
-failed to receive: timeout
'
065-tcp-socket-timeout.t TEST 7: sock:settimeout() overrides lua_socket_read_timeout - pattern "lua tcp socket read timed out" should match a line in error.log (req 1)
065-tcp-socket-timeout.t TEST 9: sock:settimeout(0) does not override lua_socket_read_timeout - status code ok got: ''
expected: '200'
065-tcp-socket-timeout.t TEST 9: sock:settimeout(0) does not override lua_socket_read_timeout - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-connected: 1
-failed to receive: timeout
'
065-tcp-socket-timeout.t TEST 9: sock:settimeout(0) does not override lua_socket_read_timeout - pattern "lua tcp socket read timed out" should match a line in error.log (req 0)
065-tcp-socket-timeout.t TEST 9: sock:settimeout(0) does not override lua_socket_read_timeout - status code ok got: ''
expected: '200'
065-tcp-socket-timeout.t TEST 9: sock:settimeout(0) does not override lua_socket_read_timeout - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-connected: 1
-failed to receive: timeout
'
065-tcp-socket-timeout.t TEST 9: sock:settimeout(0) does not override lua_socket_read_timeout - pattern "lua tcp socket read timed out" should match a line in error.log (req 1)
065-tcp-socket-timeout.t TEST 16: exit in user thread (entry thread is still pending on tcpsock:send) - status code ok got: ''
expected: '200'
065-tcp-socket-timeout.t TEST 16: exit in user thread (entry thread is still pending on tcpsock:send) - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-before
-hello in thread
-after
'
065-tcp-socket-timeout.t TEST 16: exit in user thread (entry thread is still pending on tcpsock:send) - status code ok got: ''
expected: '200'
065-tcp-socket-timeout.t TEST 16: exit in user thread (entry thread is still pending on tcpsock:send) - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-before
-hello in thread
-after
'
065-tcp-socket-timeout.t TEST 19: abort when upstream sockets pending on writes - status code ok got: ''
expected: '200'
065-tcp-socket-timeout.t TEST 19: abort when upstream sockets pending on writes - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-connected: 1
-done
'
065-tcp-socket-timeout.t TEST 19: abort when upstream sockets pending on writes - status code ok got: ''
expected: '200'
065-tcp-socket-timeout.t TEST 19: abort when upstream sockets pending on writes - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-connected: 1
-done
'
065-tcp-socket-timeout.t TEST 6: lua_socket_read_timeout only - status code ok got: ''
expected: '200'
065-tcp-socket-timeout.t TEST 6: lua_socket_read_timeout only - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-connected: 1
-failed to receive: timeout
'
065-tcp-socket-timeout.t TEST 6: lua_socket_read_timeout only - pattern "lua tcp socket read timed out" should match a line in error.log (req 0)
065-tcp-socket-timeout.t TEST 6: lua_socket_read_timeout only - status code ok got: ''
expected: '200'
065-tcp-socket-timeout.t TEST 6: lua_socket_read_timeout only - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-connected: 1
-failed to receive: timeout
'
065-tcp-socket-timeout.t TEST 6: lua_socket_read_timeout only - pattern "lua tcp socket read timed out" should match a line in error.log (req 1)
065-tcp-socket-timeout.t TEST 5: -1 is bad timeout value - status code ok got: ''
expected: '200'
065-tcp-socket-timeout.t TEST 5: -1 is bad timeout value - status code ok got: ''
expected: '200'
065-tcp-socket-timeout.t TEST 15: sock:settimeout(-1) does not override lua_socket_send_timeout - status code ok got: ''
expected: '200'
065-tcp-socket-timeout.t TEST 15: sock:settimeout(-1) does not override lua_socket_send_timeout - status code ok got: ''
expected: '200'
065-tcp-socket-timeout.t TEST 17: re-connect after timed out - status code ok got: ''
expected: '200'
065-tcp-socket-timeout.t TEST 17: re-connect after timed out - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-1: failed to connect: timeout
-2: connected: 1
'
065-tcp-socket-timeout.t TEST 17: re-connect after timed out - status code ok got: ''
expected: '200'
065-tcp-socket-timeout.t TEST 17: re-connect after timed out - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-1: failed to connect: timeout
-2: connected: 1
'
065-tcp-socket-timeout.t TEST 8: sock:settimeout(nil) does not override lua_socket_read_timeout - status code ok got: ''
expected: '200'
065-tcp-socket-timeout.t TEST 8: sock:settimeout(nil) does not override lua_socket_read_timeout - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-connected: 1
-failed to receive: timeout
'
065-tcp-socket-timeout.t TEST 8: sock:settimeout(nil) does not override lua_socket_read_timeout - pattern "lua tcp socket read timed out" should match a line in error.log (req 0)
065-tcp-socket-timeout.t TEST 8: sock:settimeout(nil) does not override lua_socket_read_timeout - status code ok got: ''
expected: '200'
065-tcp-socket-timeout.t TEST 8: sock:settimeout(nil) does not override lua_socket_read_timeout - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-connected: 1
-failed to receive: timeout
'
065-tcp-socket-timeout.t TEST 8: sock:settimeout(nil) does not override lua_socket_read_timeout - pattern "lua tcp socket read timed out" should match a line in error.log (req 1)
065-tcp-socket-timeout.t TEST 2: sock:settimeout() overrides lua_socket_connect_timeout - status code ok got: ''
expected: '200'
065-tcp-socket-timeout.t TEST 2: sock:settimeout() overrides lua_socket_connect_timeout - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'failed to connect: timeout
'
065-tcp-socket-timeout.t TEST 2: sock:settimeout() overrides lua_socket_connect_timeout - status code ok got: ''
expected: '200'
065-tcp-socket-timeout.t TEST 2: sock:settimeout() overrides lua_socket_connect_timeout - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'failed to connect: timeout
'
065-tcp-socket-timeout.t TEST 21: read timeout on receive(N) - status code ok got: ''
expected: '200'
065-tcp-socket-timeout.t TEST 21: read timeout on receive(N) - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-connected: 1
-failed to receive: timeout
'
065-tcp-socket-timeout.t TEST 21: read timeout on receive(N) - pattern "lua tcp socket read timed out" should match a line in error.log (req 0)
065-tcp-socket-timeout.t TEST 21: read timeout on receive(N) - status code ok got: ''
expected: '200'
065-tcp-socket-timeout.t TEST 21: read timeout on receive(N) - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-connected: 1
-failed to receive: timeout
'
065-tcp-socket-timeout.t TEST 21: read timeout on receive(N) - pattern "lua tcp socket read timed out" should match a line in error.log (req 1)
066-socket-receiveuntil.t TEST 7: ambiguous boundary patterns (aaaaad) - status code ok got: ''
expected: '200'
066-socket-receiveuntil.t TEST 7: ambiguous boundary patterns (aaaaad) - response_body - response is expected (repeated req 0, req 0) @@ -1,6 +0,0 @@
-connected: 1
-request sent: 57
-read: baaaaaaaaeaa
-failed to read a line: closed [f
-]
-close: 1 nil
'
066-socket-receiveuntil.t TEST 7: ambiguous boundary patterns (aaaaad) - status code ok got: ''
expected: '200'
066-socket-receiveuntil.t TEST 7: ambiguous boundary patterns (aaaaad) - response_body - response is expected (repeated req 1, req 0) @@ -1,6 +0,0 @@
-connected: 1
-request sent: 57
-read: baaaaaaaaeaa
-failed to read a line: closed [f
-]
-close: 1 nil
'
066-socket-receiveuntil.t TEST 18: ambiguous boundary patterns (abcabd), small buffer - status code ok got: ''
expected: '200'
066-socket-receiveuntil.t TEST 18: ambiguous boundary patterns (abcabd), small buffer - response_body - response is expected (repeated req 0, req 0) @@ -1,6 +0,0 @@
-connected: 1
-request sent: 57
-read: abc
-failed to read a line: closed [
-]
-close: 1 nil
'
066-socket-receiveuntil.t TEST 18: ambiguous boundary patterns (abcabd), small buffer - status code ok got: ''
expected: '200'
066-socket-receiveuntil.t TEST 18: ambiguous boundary patterns (abcabd), small buffer - response_body - response is expected (repeated req 1, req 0) @@ -1,6 +0,0 @@
-connected: 1
-request sent: 57
-read: abc
-failed to read a line: closed [
-]
-close: 1 nil
'
066-socket-receiveuntil.t TEST 3: http read all the headers in a single run - status code ok got: ''
expected: '200'
066-socket-receiveuntil.t TEST 3: http read all the headers in a single run - response_body - response is expected (repeated req 0, req 0) @@ -1,10 +0,0 @@
-connected: 1
-request sent: 57
-read: HTTP/1.1 200 OK
-Server: nginx
-Content-Type: text/plain
-Content-Length: 4
-Connection: close
-failed to read a line: closed [foo
-]
-close: 1 nil
'
066-socket-receiveuntil.t TEST 3: http read all the headers in a single run - status code ok got: ''
expected: '200'
066-socket-receiveuntil.t TEST 3: http read all the headers in a single run - response_body - response is expected (repeated req 1, req 0) @@ -1,10 +0,0 @@
-connected: 1
-request sent: 57
-read: HTTP/1.1 200 OK
-Server: nginx
-Content-Type: text/plain
-Content-Length: 4
-Connection: close
-failed to read a line: closed [foo
-]
-close: 1 nil
'
066-socket-receiveuntil.t TEST 9: ambiguous boundary patterns (aaaaad), small buffer, 1 byte - status code ok got: ''
expected: '200'
066-socket-receiveuntil.t TEST 9: ambiguous boundary patterns (aaaaad), small buffer, 1 byte - response_body - response is expected (repeated req 0, req 0) @@ -1,6 +0,0 @@
-connected: 1
-request sent: 57
-read: baaaaaaaaeaa
-failed to read a line: closed [f
-]
-close: 1 nil
'
066-socket-receiveuntil.t TEST 9: ambiguous boundary patterns (aaaaad), small buffer, 1 byte - status code ok got: ''
expected: '200'
066-socket-receiveuntil.t TEST 9: ambiguous boundary patterns (aaaaad), small buffer, 1 byte - response_body - response is expected (repeated req 1, req 0) @@ -1,6 +0,0 @@
-connected: 1
-request sent: 57
-read: baaaaaaaaeaa
-failed to read a line: closed [f
-]
-close: 1 nil
'
066-socket-receiveuntil.t TEST 10: ambiguous boundary patterns (abcabdabcabe) - status code ok got: ''
expected: '200'
066-socket-receiveuntil.t TEST 10: ambiguous boundary patterns (abcabdabcabe) - response_body - response is expected (repeated req 0, req 0) @@ -1,6 +0,0 @@
-connected: 1
-request sent: 57
-read: abcabd
-failed to read a line: closed [
-]
-close: 1 nil
'
066-socket-receiveuntil.t TEST 10: ambiguous boundary patterns (abcabdabcabe) - status code ok got: ''
expected: '200'
066-socket-receiveuntil.t TEST 10: ambiguous boundary patterns (abcabdabcabe) - response_body - response is expected (repeated req 1, req 0) @@ -1,6 +0,0 @@
-connected: 1
-request sent: 57
-read: abcabd
-failed to read a line: closed [
-]
-close: 1 nil
'
066-socket-receiveuntil.t TEST 1: memcached read lines - status code ok got: ''
expected: '200'
066-socket-receiveuntil.t TEST 1: memcached read lines - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-connected: 1
-request sent: 11
-received: OK
-close: 1 nil
'
066-socket-receiveuntil.t TEST 1: memcached read lines - status code ok got: ''
expected: '200'
066-socket-receiveuntil.t TEST 1: memcached read lines - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +0,0 @@
-connected: 1
-request sent: 11
-received: OK
-close: 1 nil
'
066-socket-receiveuntil.t TEST 2: http read lines - status code ok got: ''
expected: '200'
066-socket-receiveuntil.t TEST 2: http read lines - response_body - response is expected (repeated req 0, req 0) @@ -1,11 +0,0 @@
-connected: 1
-request sent: 57
-read: HTTP/1.1 200 OK
-read: Server: nginx
-read: Content-Type: text/plain
-read: Content-Length: 4
-read: Connection: close
-read:
-failed to read a line: closed [foo
-]
-close: 1 nil
'
066-socket-receiveuntil.t TEST 2: http read lines - status code ok got: ''
expected: '200'
066-socket-receiveuntil.t TEST 2: http read lines - response_body - response is expected (repeated req 1, req 0) @@ -1,11 +0,0 @@
-connected: 1
-request sent: 57
-read: HTTP/1.1 200 OK
-read: Server: nginx
-read: Content-Type: text/plain
-read: Content-Length: 4
-read: Connection: close
-read:
-failed to read a line: closed [foo
-]
-close: 1 nil
'
066-socket-receiveuntil.t TEST 4: ambiguous boundary patterns (abcabd) - status code ok got: ''
expected: '200'
066-socket-receiveuntil.t TEST 4: ambiguous boundary patterns (abcabd) - response_body - response is expected (repeated req 0, req 0) @@ -1,6 +0,0 @@
-connected: 1
-request sent: 57
-read: abc
-failed to read a line: closed [
-]
-close: 1 nil
'
066-socket-receiveuntil.t TEST 4: ambiguous boundary patterns (abcabd) - status code ok got: ''
expected: '200'
066-socket-receiveuntil.t TEST 4: ambiguous boundary patterns (abcabd) - response_body - response is expected (repeated req 1, req 0) @@ -1,6 +0,0 @@
-connected: 1
-request sent: 57
-read: abc
-failed to read a line: closed [
-]
-close: 1 nil
'
066-socket-receiveuntil.t TEST 19: long patterns - status code ok got: ''
expected: '200'
066-socket-receiveuntil.t TEST 19: long patterns - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'ok
'
066-socket-receiveuntil.t TEST 19: long patterns - status code ok got: ''
expected: '200'
066-socket-receiveuntil.t TEST 19: long patterns - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'ok
'
066-socket-receiveuntil.t TEST 12: ambiguous boundary patterns (abcabdabcabe 3) - status code ok got: ''
expected: '200'
066-socket-receiveuntil.t TEST 12: ambiguous boundary patterns (abcabdabcabe 3) - response_body - response is expected (repeated req 0, req 0) @@ -1,6 +0,0 @@
-connected: 1
-request sent: 57
-read: abc
-failed to read a line: closed [
-]
-close: 1 nil
'
066-socket-receiveuntil.t TEST 12: ambiguous boundary patterns (abcabdabcabe 3) - status code ok got: ''
expected: '200'
066-socket-receiveuntil.t TEST 12: ambiguous boundary patterns (abcabdabcabe 3) - response_body - response is expected (repeated req 1, req 0) @@ -1,6 +0,0 @@
-connected: 1
-request sent: 57
-read: abc
-failed to read a line: closed [
-]
-close: 1 nil
'
066-socket-receiveuntil.t TEST 15: ambiguous boundary patterns (--abc) - status code ok got: ''
expected: '200'
066-socket-receiveuntil.t TEST 15: ambiguous boundary patterns (--abc) - response_body - response is expected (repeated req 0, req 0) @@ -1,11 +0,0 @@
-connected: 1
-request sent: 57
-read: hell
-read: o, w
-read: orld
-read: --
-read:
-failed to read a line: nil [nil]
-failed to read a line: closed [
-]
-close: 1 nil
'
066-socket-receiveuntil.t TEST 15: ambiguous boundary patterns (--abc) - status code ok got: ''
expected: '200'
066-socket-receiveuntil.t TEST 15: ambiguous boundary patterns (--abc) - response_body - response is expected (repeated req 1, req 0) @@ -1,11 +0,0 @@
-connected: 1
-request sent: 57
-read: hell
-read: o, w
-read: orld
-read: --
-read:
-failed to read a line: nil [nil]
-failed to read a line: closed [
-]
-close: 1 nil
'
066-socket-receiveuntil.t TEST 5: ambiguous boundary patterns (aa) - status code ok got: ''
expected: '200'
066-socket-receiveuntil.t TEST 5: ambiguous boundary patterns (aa) - response_body - response is expected (repeated req 0, req 0) @@ -1,6 +0,0 @@
-connected: 1
-request sent: 57
-read: abcabc
-failed to read a line: closed [d
-]
-close: 1 nil
'
066-socket-receiveuntil.t TEST 5: ambiguous boundary patterns (aa) - status code ok got: ''
expected: '200'
066-socket-receiveuntil.t TEST 5: ambiguous boundary patterns (aa) - response_body - response is expected (repeated req 1, req 0) @@ -1,6 +0,0 @@
-connected: 1
-request sent: 57
-read: abcabc
-failed to read a line: closed [d
-]
-close: 1 nil
'
066-socket-receiveuntil.t TEST 13: ambiguous boundary patterns (abcabdabcabe 4) - status code ok got: ''
expected: '200'
066-socket-receiveuntil.t TEST 13: ambiguous boundary patterns (abcabdabcabe 4) - response_body - response is expected (repeated req 0, req 0) @@ -1,6 +0,0 @@
-connected: 1
-request sent: 57
-read: ab
-failed to read a line: closed [
-]
-close: 1 nil
'
066-socket-receiveuntil.t TEST 13: ambiguous boundary patterns (abcabdabcabe 4) - status code ok got: ''
expected: '200'
066-socket-receiveuntil.t TEST 13: ambiguous boundary patterns (abcabdabcabe 4) - response_body - response is expected (repeated req 1, req 0) @@ -1,6 +0,0 @@
-connected: 1
-request sent: 57
-read: ab
-failed to read a line: closed [
-]
-close: 1 nil
'
066-socket-receiveuntil.t TEST 6: ambiguous boundary patterns (aaa) - status code ok got: ''
expected: '200'
066-socket-receiveuntil.t TEST 6: ambiguous boundary patterns (aaa) - response_body - response is expected (repeated req 0, req 0) @@ -1,6 +0,0 @@
-connected: 1
-request sent: 57
-read: abaabc
-failed to read a line: closed [ef
-]
-close: 1 nil
'
066-socket-receiveuntil.t TEST 6: ambiguous boundary patterns (aaa) - status code ok got: ''
expected: '200'
066-socket-receiveuntil.t TEST 6: ambiguous boundary patterns (aaa) - response_body - response is expected (repeated req 1, req 0) @@ -1,6 +0,0 @@
-connected: 1
-request sent: 57
-read: abaabc
-failed to read a line: closed [ef
-]
-close: 1 nil
'
066-socket-receiveuntil.t TEST 8: ambiguous boundary patterns (aaaaad), small buffer, 2 bytes - status code ok got: ''
expected: '200'
066-socket-receiveuntil.t TEST 8: ambiguous boundary patterns (aaaaad), small buffer, 2 bytes - response_body - response is expected (repeated req 0, req 0) @@ -1,6 +0,0 @@
-connected: 1
-request sent: 57
-read: baaaaaaaaeaa
-failed to read a line: closed [f
-]
-close: 1 nil
'
066-socket-receiveuntil.t TEST 8: ambiguous boundary patterns (aaaaad), small buffer, 2 bytes - status code ok got: ''
expected: '200'
066-socket-receiveuntil.t TEST 8: ambiguous boundary patterns (aaaaad), small buffer, 2 bytes - response_body - response is expected (repeated req 1, req 0) @@ -1,6 +0,0 @@
-connected: 1
-request sent: 57
-read: baaaaaaaaeaa
-failed to read a line: closed [f
-]
-close: 1 nil
'
066-socket-receiveuntil.t TEST 16: ambiguous boundary patterns (--abc), small buffer - status code ok got: ''
expected: '200'
066-socket-receiveuntil.t TEST 16: ambiguous boundary patterns (--abc), small buffer - response_body - response is expected (repeated req 0, req 0) @@ -1,11 +0,0 @@
-connected: 1
-request sent: 57
-read: hell
-read: o, w
-read: orld
-read: --
-read:
-failed to read a line: nil [nil]
-failed to read a line: closed [
-]
-close: 1 nil
'
066-socket-receiveuntil.t TEST 16: ambiguous boundary patterns (--abc), small buffer - status code ok got: ''
expected: '200'
066-socket-receiveuntil.t TEST 16: ambiguous boundary patterns (--abc), small buffer - response_body - response is expected (repeated req 1, req 0) @@ -1,11 +0,0 @@
-connected: 1
-request sent: 57
-read: hell
-read: o, w
-read: orld
-read: --
-read:
-failed to read a line: nil [nil]
-failed to read a line: closed [
-]
-close: 1 nil
'
066-socket-receiveuntil.t TEST 17: ambiguous boundary patterns (--abc), small buffer, mixed by other reading calls - status code ok got: ''
expected: '200'
066-socket-receiveuntil.t TEST 17: ambiguous boundary patterns (--abc), small buffer, mixed by other reading calls - response_body - response is expected (repeated req 0, req 0) @@ -1,14 +0,0 @@
-connected: 1
-request sent: 57
-read: hell
-read one byte: o
-read: , wo
-read one byte: r
-read: ld -
-read one byte: -
-read:
-read one byte:
-
-failed to read a chunk: nil [nil]
-failed to read a byte: closed []
-close: 1 nil
'
066-socket-receiveuntil.t TEST 17: ambiguous boundary patterns (--abc), small buffer, mixed by other reading calls - status code ok got: ''
expected: '200'
066-socket-receiveuntil.t TEST 17: ambiguous boundary patterns (--abc), small buffer, mixed by other reading calls - response_body - response is expected (repeated req 1, req 0) @@ -1,14 +0,0 @@
-connected: 1
-request sent: 57
-read: hell
-read one byte: o
-read: , wo
-read one byte: r
-read: ld -
-read one byte: -
-read:
-read one byte:
-
-failed to read a chunk: nil [nil]
-failed to read a byte: closed []
-close: 1 nil
'
066-socket-receiveuntil.t TEST 11: ambiguous boundary patterns (abcabdabcabe 2) - status code ok got: ''
expected: '200'
066-socket-receiveuntil.t TEST 11: ambiguous boundary patterns (abcabdabcabe 2) - response_body - response is expected (repeated req 0, req 0) @@ -1,6 +0,0 @@
-connected: 1
-request sent: 57
-read: abcabdabc
-failed to read a line: closed [
-]
-close: 1 nil
'
066-socket-receiveuntil.t TEST 11: ambiguous boundary patterns (abcabdabcabe 2) - status code ok got: ''
expected: '200'
066-socket-receiveuntil.t TEST 11: ambiguous boundary patterns (abcabdabcabe 2) - response_body - response is expected (repeated req 1, req 0) @@ -1,6 +0,0 @@
-connected: 1
-request sent: 57
-read: abcabdabc
-failed to read a line: closed [
-]
-close: 1 nil
'
066-socket-receiveuntil.t TEST 14: ambiguous boundary patterns (--abc) - status code ok got: ''
expected: '200'
066-socket-receiveuntil.t TEST 14: ambiguous boundary patterns (--abc) - response_body - response is expected (repeated req 0, req 0) @@ -1,6 +0,0 @@
-connected: 1
-request sent: 57
-read: --
-failed to read a line: closed [
-]
-close: 1 nil
'
066-socket-receiveuntil.t TEST 14: ambiguous boundary patterns (--abc) - status code ok got: ''
expected: '200'
066-socket-receiveuntil.t TEST 14: ambiguous boundary patterns (--abc) - response_body - response is expected (repeated req 1, req 0) @@ -1,6 +0,0 @@
-connected: 1
-request sent: 57
-read: --
-failed to read a line: closed [
-]
-close: 1 nil
'
067-req-socket.t TEST 1: sanity - status code ok got: ''
expected: '200'
067-req-socket.t TEST 1: sanity - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-got the request socket
-received: hello
-received: worl
-received: d! my
'
067-req-socket.t TEST 1: sanity - status code ok got: ''
expected: '200'
067-req-socket.t TEST 1: sanity - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +0,0 @@
-got the request socket
-received: hello
-received: worl
-received: d! my
'
067-req-socket.t TEST 2: multipart rfc sample (just partial streaming) - status code ok got: ''
expected: '200'
067-req-socket.t TEST 2: multipart rfc sample (just partial streaming) - response_body - response is expected (repeated req 0, req 0) @@ -1,11 +0,0 @@
-got the request socket
-preamble: [This is the preamble. It is to be ignored, though it
-is a handy place for mail composers to include an
-explanatory note to non-MIME compliant readers.]
-part 1 body: [This is implicitly typed plain ASCII text.
-It does NOT end with a linebreak.]
-part 2 header: [Content-type: text/plain; charset=us-ascii]
-part 2 body: [This is explicitly typed plain ASCII text.
-It DOES end with a linebreak.
-]
-found the end of the stream
'
067-req-socket.t TEST 2: multipart rfc sample (just partial streaming) - status code ok got: ''
expected: '200'
067-req-socket.t TEST 2: multipart rfc sample (just partial streaming) - response_body - response is expected (repeated req 1, req 0) @@ -1,11 +0,0 @@
-got the request socket
-preamble: [This is the preamble. It is to be ignored, though it
-is a handy place for mail composers to include an
-explanatory note to non-MIME compliant readers.]
-part 1 body: [This is implicitly typed plain ASCII text.
-It does NOT end with a linebreak.]
-part 2 header: [Content-type: text/plain; charset=us-ascii]
-part 2 body: [This is explicitly typed plain ASCII text.
-It DOES end with a linebreak.
-]
-found the end of the stream
'
067-req-socket.t TEST 3: multipart rfc sample (completely streaming) - status code ok got: ''
expected: '200'
067-req-socket.t TEST 3: multipart rfc sample (completely streaming) - response_body - response is expected (repeated req 0, req 0) @@ -1,11 +0,0 @@
-got the request socket
-preamble: [This is the preamble. It is to be ignored, though it
-is a handy place for mail composers to include an
-explanatory note to non-MIME compliant readers.]
-part 1 body: [This is implicitly typed plain ASCII text.
-It does NOT end with a linebreak.]
-part 2 header: [Content-type: text/plain; charset=us-ascii]
-part 2 body: [This is explicitly typed plain ASCII text.
-It DOES end with a linebreak.
-]
-found the end of the stream
'
067-req-socket.t TEST 3: multipart rfc sample (completely streaming) - status code ok got: ''
expected: '200'
067-req-socket.t TEST 3: multipart rfc sample (completely streaming) - response_body - response is expected (repeated req 1, req 0) @@ -1,11 +0,0 @@
-got the request socket
-preamble: [This is the preamble. It is to be ignored, though it
-is a handy place for mail composers to include an
-explanatory note to non-MIME compliant readers.]
-part 1 body: [This is implicitly typed plain ASCII text.
-It does NOT end with a linebreak.]
-part 2 header: [Content-type: text/plain; charset=us-ascii]
-part 2 body: [This is explicitly typed plain ASCII text.
-It DOES end with a linebreak.
-]
-found the end of the stream
'
067-req-socket.t TEST 4: attempt to use the req socket across request boundary - status code ok got: ''
expected: '200'
067-req-socket.t TEST 4: attempt to use the req socket across request boundary - response_body_like - response is expected () ''
doesn't match '(?^s:(?:got the request socket
|failed to receive: closed [d]
)?done
)'
067-req-socket.t TEST 4: attempt to use the req socket across request boundary - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:15:47 [alert] 19610\#0: worker process 19680 exited on signal 11" (req 0) 2020/10/27 05:15:47 [debug] 19610\#0: shmtx forced unlock
2020/10/27 05:15:47 [debug] 19610\#0: wake up, sigio 0
2020/10/27 05:15:47 [debug] 19610\#0: reap children
2020/10/27 05:15:47 [debug] 19610\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:15:47 [debug] 19610\#0: child: 1 19680 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:15:47 [debug] 19610\#0: channel 3:4
2020/10/27 05:15:47 [notice] 19610\#0: start worker process 19702
2020/10/27 05:15:47 [debug] 19610\#0: sigsuspend
2020/10/27 05:15:47 [debug] 19702\#0: malloc: 0858FFB0:12
'
067-req-socket.t TEST 4: attempt to use the req socket across request boundary - status code ok got: ''
expected: '200'
067-req-socket.t TEST 4: attempt to use the req socket across request boundary - response_body_like - response is expected () ''
doesn't match '(?^s:(?:got the request socket
|failed to receive: closed [d]
)?done
)'
067-req-socket.t TEST 4: attempt to use the req socket across request boundary - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:15:47 [alert] 19610\#0: worker process 19702 exited on signal 11" (req 1) 2020/10/27 05:15:47 [debug] 19610\#0: shmtx forced unlock
2020/10/27 05:15:47 [debug] 19610\#0: wake up, sigio 0
2020/10/27 05:15:47 [debug] 19610\#0: reap children
2020/10/27 05:15:47 [debug] 19610\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:15:47 [debug] 19610\#0: child: 1 19702 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:15:47 [debug] 19610\#0: channel 3:4
2020/10/27 05:15:47 [notice] 19610\#0: start worker process 19703
2020/10/27 05:15:47 [debug] 19610\#0: sigsuspend
2020/10/27 05:15:47 [debug] 19703\#0: malloc: 0858FFB0:12
'
067-req-socket.t TEST 5: receive until on request_body - receiveuntil(1) on the last byte of the body - status code ok got: ''
expected: '200'
067-req-socket.t TEST 5: receive until on request_body - receiveuntil(1) on the last byte of the body - response_body - response is expected (repeated req 0, req 0) @@ -1,5 +0,0 @@
-got the request socket
-received: -----------------------------820127721219505131303151179
-received len: 8192
-received: $
-done
'
067-req-socket.t TEST 5: receive until on request_body - receiveuntil(1) on the last byte of the body - status code ok got: ''
expected: '200'
067-req-socket.t TEST 5: receive until on request_body - receiveuntil(1) on the last byte of the body - response_body - response is expected (repeated req 1, req 0) @@ -1,5 +0,0 @@
-got the request socket
-received: -----------------------------820127721219505131303151179
-received len: 8192
-received: $
-done
'
067-req-socket.t TEST 6: pipelined POST requests - status code ok got: ''
expected: '200'
067-req-socket.t TEST 6: pipelined POST requests - response_body - response is expected (repeated req 0, req 0) @@ -1,7 +0,0 @@
-got the request socket
-received: hell
-received: o, w
-received: orld
-received: hiya
-received: , wo
-done
'
067-req-socket.t TEST 6: pipelined POST requests - status code ok got: ''
expected: '200'
067-req-socket.t TEST 6: pipelined POST requests - response_body - response is expected (repeated req 1, req 0) @@ -1,7 +0,0 @@
-got the request socket
-received: hell
-received: o, w
-received: orld
-received: hiya
-received: , wo
-done
'
067-req-socket.t TEST 7: pipelined requests, big buffer, small steps - status code ok got: ''
expected: '200'
067-req-socket.t TEST 7: pipelined requests, big buffer, small steps - response_body - response is expected (repeated req 0, req 0) @@ -1,13 +0,0 @@
-got the request socket
-received: he
-received: ll
-received: o
-received: wo
-received: rl
-received: d
-
-received: hi
-received: ya
-received: g
-received: lo
-received: be
'
067-req-socket.t TEST 7: pipelined requests, big buffer, small steps - status code ok got: ''
expected: '200'
067-req-socket.t TEST 7: pipelined requests, big buffer, small steps - response_body - response is expected (repeated req 1, req 0) @@ -1,13 +0,0 @@
-got the request socket
-received: he
-received: ll
-received: o
-received: wo
-received: rl
-received: d
-
-received: hi
-received: ya
-received: g
-received: lo
-received: be
'
067-req-socket.t TEST 8: failing reread after reading timeout happens - status code ok got: ''
expected: '200'
067-req-socket.t TEST 8: failing reread after reading timeout happens - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-err: timeout, partial: hello
-err: timeout, partial:
'
067-req-socket.t TEST 8: failing reread after reading timeout happens - status code ok got: ''
expected: '200'
067-req-socket.t TEST 8: failing reread after reading timeout happens - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-err: timeout, partial: hello
-err: timeout, partial:
'
067-req-socket.t TEST 9: successful reread after reading timeout happens (receive -> receive) - status code ok got: ''
expected: '200'
067-req-socket.t TEST 9: successful reread after reading timeout happens (receive -> receive) - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-sent: 65
-sent: 11
-received: err: timeout, partial: abc
-received: received: hello world
'
067-req-socket.t TEST 9: successful reread after reading timeout happens (receive -> receive) - pattern "lua tcp socket read timed out" should match a line in error.log (req 0)
067-req-socket.t TEST 9: successful reread after reading timeout happens (receive -> receive) - status code ok got: ''
expected: '200'
067-req-socket.t TEST 9: successful reread after reading timeout happens (receive -> receive) - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +0,0 @@
-sent: 65
-sent: 11
-received: err: timeout, partial: abc
-received: received: hello world
'
067-req-socket.t TEST 9: successful reread after reading timeout happens (receive -> receive) - pattern "lua tcp socket read timed out" should match a line in error.log (req 1)
067-req-socket.t TEST 10: successful reread after reading timeout happens (receive -> receiveuntil) - status code ok got: ''
expected: '200'
067-req-socket.t TEST 10: successful reread after reading timeout happens (receive -> receiveuntil) - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-sent: 65
-sent: 12
-received: err: timeout, partial: abc
-received: received: hello world
'
067-req-socket.t TEST 10: successful reread after reading timeout happens (receive -> receiveuntil) - pattern "lua tcp socket read timed out" should match a line in error.log (req 0)
067-req-socket.t TEST 10: successful reread after reading timeout happens (receive -> receiveuntil) - status code ok got: ''
expected: '200'
067-req-socket.t TEST 10: successful reread after reading timeout happens (receive -> receiveuntil) - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +0,0 @@
-sent: 65
-sent: 12
-received: err: timeout, partial: abc
-received: received: hello world
'
067-req-socket.t TEST 10: successful reread after reading timeout happens (receive -> receiveuntil) - pattern "lua tcp socket read timed out" should match a line in error.log (req 1)
067-req-socket.t TEST 11: successful reread after reading timeout happens (receiveuntil -> receive) - status code ok got: ''
expected: '200'
067-req-socket.t TEST 11: successful reread after reading timeout happens (receiveuntil -> receive) - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-sent: 65
-sent: 12
-received: err: timeout, partial: abc
-received: received: hello world
'
067-req-socket.t TEST 11: successful reread after reading timeout happens (receiveuntil -> receive) - pattern "lua tcp socket read timed out" should match a line in error.log (req 0)
067-req-socket.t TEST 11: successful reread after reading timeout happens (receiveuntil -> receive) - status code ok got: ''
expected: '200'
067-req-socket.t TEST 11: successful reread after reading timeout happens (receiveuntil -> receive) - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +0,0 @@
-sent: 65
-sent: 12
-received: err: timeout, partial: abc
-received: received: hello world
'
067-req-socket.t TEST 11: successful reread after reading timeout happens (receiveuntil -> receive) - pattern "lua tcp socket read timed out" should match a line in error.log (req 1)
067-req-socket.t TEST 12: req socket GC'd - status code ok got: ''
expected: '200'
067-req-socket.t TEST 12: req socket GC'd - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-got the request socket
-done
'
067-req-socket.t TEST 12: req socket GC'd - status code ok got: ''
expected: '200'
067-req-socket.t TEST 12: req socket GC'd - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-got the request socket
-done
'
067-req-socket.t TEST 13: sanity of raw req socket receive any - status code ok got: ''
expected: '200'
067-req-socket.t TEST 13: sanity of raw req socket receive any - response_body - response is expected (repeated req 0, req 0) got: ''
expected: '1: received: hello
'
067-req-socket.t TEST 13: sanity of raw req socket receive any - status code ok got: ''
expected: '200'
067-req-socket.t TEST 13: sanity of raw req socket receive any - response_body - response is expected (repeated req 1, req 0) got: ''
expected: '1: received: hello
'
067-req-socket.t TEST 14: receiveany small block size for a big size block - status code ok got: ''
expected: '200'
067-req-socket.t TEST 14: receiveany small block size for a big size block - response_body - response is expected (repeated req 0, req 0) @@ -1,10 +0,0 @@
-ok
-receive: hel
-receive: lo,
-receive: st
-receive: rea
-receive: m r
-receive: ece
-receive: ive
-receive: any
-receive: !
'
067-req-socket.t TEST 14: receiveany small block size for a big size block - pattern "read timed out" should match a line in error.log (req 0)
067-req-socket.t TEST 14: receiveany small block size for a big size block - pattern "client timeout" should match a line in error.log (req 0)
067-req-socket.t TEST 14: receiveany small block size for a big size block - status code ok got: ''
expected: '200'
067-req-socket.t TEST 14: receiveany small block size for a big size block - response_body - response is expected (repeated req 1, req 0) @@ -1,10 +0,0 @@
-ok
-receive: hel
-receive: lo,
-receive: st
-receive: rea
-receive: m r
-receive: ece
-receive: ive
-receive: any
-receive: !
'
067-req-socket.t TEST 14: receiveany small block size for a big size block - pattern "read timed out" should match a line in error.log (req 1)
067-req-socket.t TEST 14: receiveany small block size for a big size block - pattern "client timeout" should match a line in error.log (req 1)
067-req-socket.t TEST 15: receiveany with limited, max <= 0 - status code ok got: ''
expected: '200'
067-req-socket.t TEST 15: receiveany with limited, max <= 0 - status code ok got: ''
expected: '200'
067-req-socket.t TEST 16: receiveany send data after read side timeout - status code ok got: ''
expected: '200'
067-req-socket.t TEST 16: receiveany send data after read side timeout - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'send data after read side timeout'
067-req-socket.t TEST 16: receiveany send data after read side timeout - status code ok got: ''
expected: '200'
067-req-socket.t TEST 16: receiveany send data after read side timeout - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'send data after read side timeout'
068-socket-keepalive.t TEST 1: sanity - status code ok got: ''
expected: '200'
068-socket-keepalive.t TEST 1: sanity - response_body - response is expected (repeated req 0, req 0) @@ -1,6 +0,0 @@
-connected: 1, reused: 0
-request sent: 11
-received: OK
-connected: 1, reused: 1
-request sent: 11
-received: OK
'
068-socket-keepalive.t TEST 1: sanity - pattern "lua tcp socket get keepalive peer: using connection" should match a line in error.log (req 0)
068-socket-keepalive.t TEST 1: sanity - pattern "lua tcp socket keepalive create connection pool for key "127.0.0.1:11211"" should match a line in error.log (req 0)
068-socket-keepalive.t TEST 2: free up the whole connection pool if no active connections - status code ok got: ''
expected: '200'
068-socket-keepalive.t TEST 2: free up the whole connection pool if no active connections - response_body - response is expected (repeated req 0, req 0) @@ -1,6 +0,0 @@
-connected: 1, reused: 0
-request sent: 11
-received: OK
-connected: 1, reused: 1
-request sent: 11
-received: OK
'
068-socket-keepalive.t TEST 2: free up the whole connection pool if no active connections - pattern "lua tcp socket get keepalive peer: using connection" should match a line in error.log (req 0)
068-socket-keepalive.t TEST 2: free up the whole connection pool if no active connections - pattern "lua tcp socket keepalive: free connection pool for " should match a line in error.log (req 0)
068-socket-keepalive.t TEST 3: upstream sockets close prematurely - status code ok got: ''
expected: '200'
068-socket-keepalive.t TEST 3: upstream sockets close prematurely - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-connected: 1
-request sent: 61
-received response of 156 bytes
-done
'
068-socket-keepalive.t TEST 3: upstream sockets close prematurely - pattern "lua tcp socket keepalive close handler" should match a line in error.log (req 0)
068-socket-keepalive.t TEST 3: upstream sockets close prematurely - pattern "lua tcp socket keepalive: free connection pool for " should match a line in error.log (req 0)
068-socket-keepalive.t TEST 4: http keepalive - status code ok got: ''
expected: '200'
068-socket-keepalive.t TEST 4: http keepalive - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-connected: 1
-request sent: 61
-received response of 156 bytes
-done
'
068-socket-keepalive.t TEST 5: lua_socket_keepalive_timeout - status code ok got: ''
expected: '200'
068-socket-keepalive.t TEST 5: lua_socket_keepalive_timeout - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-connected: 1
-request sent: 61
-received response of 156 bytes
-done
'
068-socket-keepalive.t TEST 5: lua_socket_keepalive_timeout - pattern "lua tcp socket keepalive close handler" should match a line in error.log (req 0)
068-socket-keepalive.t TEST 5: lua_socket_keepalive_timeout - pattern "lua tcp socket keepalive: free connection pool for " should match a line in error.log (req 0)
068-socket-keepalive.t TEST 5: lua_socket_keepalive_timeout - pattern "lua tcp socket keepalive timeout: 100 ms" should match a line in error.log (req 0)
068-socket-keepalive.t TEST 5: lua_socket_keepalive_timeout - pattern "(?^:lua tcp socket connection pool size: 30\b)" should match a line in error.log (req 0)
068-socket-keepalive.t TEST 6: lua_socket_pool_size - status code ok got: ''
expected: '200'
068-socket-keepalive.t TEST 6: lua_socket_pool_size - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-connected: 1
-request sent: 61
-received response of 156 bytes
-done
'
068-socket-keepalive.t TEST 6: lua_socket_pool_size - pattern "lua tcp socket keepalive close handler" should match a line in error.log (req 0)
068-socket-keepalive.t TEST 6: lua_socket_pool_size - pattern "lua tcp socket keepalive: free connection pool for " should match a line in error.log (req 0)
068-socket-keepalive.t TEST 6: lua_socket_pool_size - pattern "lua tcp socket keepalive timeout: 100 ms" should match a line in error.log (req 0)
068-socket-keepalive.t TEST 6: lua_socket_pool_size - pattern "(?^:lua tcp socket connection pool size: 1\b)" should match a line in error.log (req 0)
068-socket-keepalive.t TEST 7: "lua_socket_keepalive_timeout 0" means unlimited - status code ok got: ''
expected: '200'
068-socket-keepalive.t TEST 7: "lua_socket_keepalive_timeout 0" means unlimited - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-connected: 1
-request sent: 61
-received response of 156 bytes
-done
'
068-socket-keepalive.t TEST 7: "lua_socket_keepalive_timeout 0" means unlimited - pattern "lua tcp socket keepalive timeout: unlimited" should match a line in error.log (req 0)
068-socket-keepalive.t TEST 7: "lua_socket_keepalive_timeout 0" means unlimited - pattern "(?^:lua tcp socket connection pool size: 30\b)" should match a line in error.log (req 0)
068-socket-keepalive.t TEST 8: setkeepalive(timeout) overrides lua_socket_keepalive_timeout - status code ok got: ''
expected: '200'
068-socket-keepalive.t TEST 8: setkeepalive(timeout) overrides lua_socket_keepalive_timeout - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-connected: 1
-request sent: 61
-received response of 156 bytes
-done
'
068-socket-keepalive.t TEST 8: setkeepalive(timeout) overrides lua_socket_keepalive_timeout - pattern "lua tcp socket keepalive close handler" should match a line in error.log (req 0)
068-socket-keepalive.t TEST 8: setkeepalive(timeout) overrides lua_socket_keepalive_timeout - pattern "lua tcp socket keepalive: free connection pool for " should match a line in error.log (req 0)
068-socket-keepalive.t TEST 8: setkeepalive(timeout) overrides lua_socket_keepalive_timeout - pattern "lua tcp socket keepalive timeout: 123 ms" should match a line in error.log (req 0)
068-socket-keepalive.t TEST 8: setkeepalive(timeout) overrides lua_socket_keepalive_timeout - pattern "(?^:lua tcp socket connection pool size: 30\b)" should match a line in error.log (req 0)
068-socket-keepalive.t TEST 9: sock:setkeepalive(timeout, size) overrides lua_socket_pool_size - status code ok got: ''
expected: '200'
068-socket-keepalive.t TEST 9: sock:setkeepalive(timeout, size) overrides lua_socket_pool_size - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-connected: 1
-request sent: 61
-received response of 156 bytes
-done
'
068-socket-keepalive.t TEST 9: sock:setkeepalive(timeout, size) overrides lua_socket_pool_size - pattern "lua tcp socket keepalive close handler" should match a line in error.log (req 0)
068-socket-keepalive.t TEST 9: sock:setkeepalive(timeout, size) overrides lua_socket_pool_size - pattern "lua tcp socket keepalive: free connection pool for " should match a line in error.log (req 0)
068-socket-keepalive.t TEST 9: sock:setkeepalive(timeout, size) overrides lua_socket_pool_size - pattern "lua tcp socket keepalive timeout: 101 ms" should match a line in error.log (req 0)
068-socket-keepalive.t TEST 9: sock:setkeepalive(timeout, size) overrides lua_socket_pool_size - pattern "(?^:lua tcp socket connection pool size: 25\b)" should match a line in error.log (req 0)
068-socket-keepalive.t TEST 10: setkeepalive() 'pool_size' should be greater than zero - status code ok got: ''
expected: '200'
068-socket-keepalive.t TEST 10: setkeepalive() 'pool_size' should be greater than zero - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'bad argument #3 to '?' (bad "pool_size" option value: 0)
'
068-socket-keepalive.t TEST 11: sock:keepalive_timeout(0) means unlimited - status code ok got: ''
expected: '200'
068-socket-keepalive.t TEST 11: sock:keepalive_timeout(0) means unlimited - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-connected: 1
-request sent: 61
-received response of 156 bytes
-done
'
068-socket-keepalive.t TEST 11: sock:keepalive_timeout(0) means unlimited - pattern "lua tcp socket keepalive timeout: unlimited" should match a line in error.log (req 0)
068-socket-keepalive.t TEST 11: sock:keepalive_timeout(0) means unlimited - pattern "(?^:lua tcp socket connection pool size: 30\b)" should match a line in error.log (req 0)
068-socket-keepalive.t TEST 12: sanity (uds) - status code ok got: ''
expected: '200'
068-socket-keepalive.t TEST 12: sanity (uds) - response_body - response is expected (repeated req 0, req 0) @@ -1,6 +0,0 @@
-connected: 1, reused: 0
-request sent: 61
-received response of 119 bytes
-connected: 1, reused: 1
-request sent: 61
-received response of 119 bytes
'
068-socket-keepalive.t TEST 12: sanity (uds) - pattern "lua tcp socket get keepalive peer: using connection" should match a line in error.log (req 0)
068-socket-keepalive.t TEST 12: sanity (uds) - pattern "lua tcp socket keepalive create connection pool for key "unix:" should match a line in error.log (req 0)
068-socket-keepalive.t TEST 15: custom pools (different pool for the same host:port) - tcp - status code ok got: ''
expected: '200'
068-socket-keepalive.t TEST 15: custom pools (different pool for the same host:port) - tcp - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-connected: 1, reused: 0
-connected: 1, reused: 0
'
068-socket-keepalive.t TEST 15: custom pools (different pool for the same host:port) - tcp - pattern "lua tcp socket keepalive create connection pool for key "B"" should match a line in error.log (req 0)
068-socket-keepalive.t TEST 16: custom pools (same pool for different host:port) - tcp - status code ok got: ''
expected: '200'
068-socket-keepalive.t TEST 16: custom pools (same pool for different host:port) - tcp - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-connected: 1, reused: 0
-connected: 1, reused: 1
'
068-socket-keepalive.t TEST 17: custom pools (different pool for the same host:port) - unix - status code ok got: ''
expected: '200'
068-socket-keepalive.t TEST 17: custom pools (different pool for the same host:port) - unix - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-connected: 1, reused: 0
-connected: 1, reused: 0
'
068-socket-keepalive.t TEST 18: custom pools (same pool for the same path) - unix - status code ok got: ''
expected: '200'
068-socket-keepalive.t TEST 18: custom pools (same pool for the same path) - unix - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-connected: 1, reused: 0
-connected: 1, reused: 1
'
068-socket-keepalive.t TEST 19: numeric pool option value - status code ok got: ''
expected: '200'
068-socket-keepalive.t TEST 19: numeric pool option value - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-connected: 1, reused: 0
-connected: 1, reused: 1
'
068-socket-keepalive.t TEST 20: nil pool option value - status code ok got: ''
expected: '200'
068-socket-keepalive.t TEST 20: nil pool option value - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-connected: 1, reused: 0
-connected: 1, reused: 0
'
068-socket-keepalive.t TEST 21: (bad) table pool option value - status code ok got: ''
expected: '200'
068-socket-keepalive.t TEST 22: (bad) boolean pool option value - status code ok got: ''
expected: '200'
068-socket-keepalive.t TEST 25: setkeepalive() with explicit nil args - status code ok got: ''
expected: '200'
068-socket-keepalive.t TEST 25: setkeepalive() with explicit nil args - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-connected: 1
-request sent: 61
-received response of 156 bytes
-done
'
068-socket-keepalive.t TEST 25: setkeepalive() with explicit nil args - pattern "lua tcp socket keepalive close handler" should match a line in error.log (req 0)
068-socket-keepalive.t TEST 25: setkeepalive() with explicit nil args - pattern "lua tcp socket keepalive: free connection pool for " should match a line in error.log (req 0)
068-socket-keepalive.t TEST 25: setkeepalive() with explicit nil args - pattern "lua tcp socket keepalive timeout: 100 ms" should match a line in error.log (req 0)
068-socket-keepalive.t TEST 25: setkeepalive() with explicit nil args - pattern "(?^:lua tcp socket connection pool size: 30\b)" should match a line in error.log (req 0)
068-socket-keepalive.t TEST 26: conn queuing: connect() verifies the options for connection pool - status code ok got: ''
expected: '200'
068-socket-keepalive.t TEST 26: conn queuing: connect() verifies the options for connection pool - response_body_like - response is expected () ''
doesn't match '(?^s:.+ 'connect' \(bad "pool_size" option type: string\)
.+ 'connect' \(bad "pool_size" option value: 0\)
.+ 'connect' \(bad "backlog" option value: -1\)
ok
)'
068-socket-keepalive.t TEST 27: conn queuing: connect() can specify 'pool_size' which overrides setkeepalive() - status code ok got: ''
expected: '200'
068-socket-keepalive.t TEST 27: conn queuing: connect() can specify 'pool_size' which overrides setkeepalive() - response_body - response is expected (repeated req 0, req 0) @@ -1,8 +0,0 @@
-connected: 1, reused: 0
-request sent: 11
-received: OK
-connected: 1, reused: 1
-request sent: 11
-received: OK
-reused: 1
-reused: 0
'
068-socket-keepalive.t TEST 28: conn queuing: connect() can specify 'pool_size' for unix domain socket - status code ok got: ''
expected: '200'
068-socket-keepalive.t TEST 28: conn queuing: connect() can specify 'pool_size' for unix domain socket - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-connected: 1, reused: 0
-connected: 1, reused: 1
-reused: 1
-reused: 0
'
068-socket-keepalive.t TEST 29: conn queuing: connect() can specify 'pool_size' for custom pool - status code ok got: ''
expected: '200'
068-socket-keepalive.t TEST 29: conn queuing: connect() can specify 'pool_size' for custom pool - response_body - response is expected (repeated req 0, req 0) @@ -1,6 +0,0 @@
-connected: A, reused: 0
-connected: B, reused: 0
-connected: A, reused: 1
-connected: B, reused: 1
-reused: 1
-reused: 0
'
068-socket-keepalive.t TEST 30: conn queuing: connect() uses lua_socket_pool_size as default if 'backlog' is given - status code ok got: ''
expected: '200'
068-socket-keepalive.t TEST 30: conn queuing: connect() uses lua_socket_pool_size as default if 'backlog' is given - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'ok
'
068-socket-keepalive.t TEST 31: conn queuing: more connect operations than 'backlog' size - status code ok got: ''
expected: '200'
068-socket-keepalive.t TEST 31: conn queuing: more connect operations than 'backlog' size - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-too many waiting connect operations
-reused: 1
-too many waiting connect operations
'
068-socket-keepalive.t TEST 32: conn queuing: once 'pool_size' is reached and pool has 'backlog' - status code ok got: ''
expected: '200'
068-socket-keepalive.t TEST 32: conn queuing: once 'pool_size' is reached and pool has 'backlog' - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-request sent: 11
-received: OK
-setkeepalive: OK
'
068-socket-keepalive.t TEST 33: conn queuing: do not count failed connect operations - status code ok got: ''
expected: '200'
068-socket-keepalive.t TEST 33: conn queuing: do not count failed connect operations - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-timeout
-ok
'
068-socket-keepalive.t TEST 34: conn queuing: connect until backlog is reached - status code ok got: ''
expected: '200'
068-socket-keepalive.t TEST 34: conn queuing: connect until backlog is reached - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'too many waiting connect operations
'
068-socket-keepalive.t TEST 34: conn queuing: connect until backlog is reached - grep_error_log_out (req 0) @@ -1,6 +1,2 @@
start to handle timer
queue connect operation for connection pool
-start to handle cosocket
-queue connect operation for connection pool
-continue to handle timer
-continue to handle cosocket
'
068-socket-keepalive.t TEST 35: conn queuing: memory reuse for host in queueing connect operation ctx - status code ok got: ''
expected: '200'
068-socket-keepalive.t TEST 35: conn queuing: memory reuse for host in queueing connect operation ctx - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'ok
'
068-socket-keepalive.t TEST 36: conn queuing: connect() returns error after connect operation resumed - status code ok got: ''
expected: '200'
068-socket-keepalive.t TEST 36: conn queuing: connect() returns error after connect operation resumed - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'ok
'
068-socket-keepalive.t TEST 37: conn queuing: in uthread - status code ok got: ''
expected: '200'
068-socket-keepalive.t TEST 37: conn queuing: in uthread - response_body - response is expected (repeated req 0, req 0) @@ -1,6 +0,0 @@
-too many waiting connect operations
-start to handle uthread
-continue to handle other uthread
-start to handle uthread
-continue to handle other uthread
-all uthreads ok
'
068-socket-keepalive.t TEST 41: conn queuing: timeouts when 'connect_timeout' is reached - status code ok got: ''
expected: '200'
068-socket-keepalive.t TEST 41: conn queuing: timeouts when 'connect_timeout' is reached - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'timeout
'
068-socket-keepalive.t TEST 42: conn queuing: set timeout via lua_socket_connect_timeout - status code ok got: ''
expected: '200'
068-socket-keepalive.t TEST 42: conn queuing: set timeout via lua_socket_connect_timeout - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'timeout
'
068-socket-keepalive.t TEST 44: conn queuing: resume next connect operation if resumed connect failed immediately - status code ok got: ''
expected: '200'
068-socket-keepalive.t TEST 44: conn queuing: resume next connect operation if resumed connect failed immediately - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-failed to parse host name "": no host
-connected in uthread
-ok
'
068-socket-keepalive.t TEST 45: conn queuing: resume connect operation if resumed connect failed (timeout) - status code ok got: ''
expected: '200'
068-socket-keepalive.t TEST 45: conn queuing: resume connect operation if resumed connect failed (timeout) - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-timeout
-connected in uthread
-ok
'
068-socket-keepalive.t TEST 46: conn queuing: resume connect operation if resumed connect failed (could not be resolved) - status code ok got: ''
expected: '200'
068-socket-keepalive.t TEST 46: conn queuing: resume connect operation if resumed connect failed (could not be resolved) - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-agentzh.org could not be resolved (110: Operation timed out)
-connected in uthread
-ok
'
068-socket-keepalive.t TEST 47: conn queuing: resume connect operation if resumed connect failed (connection refused) - status code ok got: ''
expected: '200'
068-socket-keepalive.t TEST 47: conn queuing: resume connect operation if resumed connect failed (connection refused) - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-connection refused
-connected in uthread
-ok
'
068-socket-keepalive.t TEST 48: conn queuing: resume connect operation if resumed connect failed (uthread aborted while resolving) - status code ok got: ''
expected: '200'
068-socket-keepalive.t TEST 48: conn queuing: resume connect operation if resumed connect failed (uthread aborted while resolving) - pattern "resume success" should match a line in error.log (req 0)
068-socket-keepalive.t TEST 48: conn queuing: resume connect operation if resumed connect failed (uthread aborted while resolving) - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:17:21 [alert] 20075\#0: worker process 21214 exited on signal 11" (req 0) 2020/10/27 05:17:21 [debug] 20075\#0: shmtx forced unlock
2020/10/27 05:17:21 [debug] 20075\#0: wake up, sigio 0
2020/10/27 05:17:21 [debug] 20075\#0: reap children
2020/10/27 05:17:21 [debug] 20075\#0: child: 0 21214 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:17:21 [debug] 20075\#0: channel 3:4
2020/10/27 05:17:21 [notice] 20075\#0: start worker process 21236
2020/10/27 05:17:21 [debug] 20075\#0: sigsuspend
2020/10/27 05:17:21 [debug] 21236\#0: malloc: 08948AC0:12
2020/10/27 05:17:21 [debug] 21236\#0: malloc: 0894D290:8
'
068-socket-keepalive.t TEST 49: conn queuing: resume connect operation if resumed connect failed (uthread killed while resolving) - status code ok got: ''
expected: '200'
068-socket-keepalive.t TEST 49: conn queuing: resume connect operation if resumed connect failed (uthread killed while resolving) - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:17:22 [alert] 20075\#0: worker process 21243 exited on signal 11" (req 0) 2020/10/27 05:17:22 [debug] 20075\#0: shmtx forced unlock
2020/10/27 05:17:22 [debug] 20075\#0: wake up, sigio 0
2020/10/27 05:17:22 [debug] 20075\#0: reap children
2020/10/27 05:17:22 [debug] 20075\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:17:22 [debug] 20075\#0: child: 1 21243 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:17:22 [debug] 20075\#0: channel 3:4
2020/10/27 05:17:22 [notice] 20075\#0: start worker process 21265
2020/10/27 05:17:22 [debug] 20075\#0: sigsuspend
2020/10/27 05:17:22 [debug] 21265\#0: malloc: 08943FB0:12
'
068-socket-keepalive.t TEST 50: conn queuing: increase the counter for connections created before creating the pool with setkeepalive() - status code ok got: ''
expected: '200'
068-socket-keepalive.t TEST 50: conn queuing: increase the counter for connections created before creating the pool with setkeepalive() - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'ok
'
068-socket-keepalive.t TEST 51: conn queuing: only decrease the counter for connections which were counted by the pool - status code ok got: ''
expected: '200'
068-socket-keepalive.t TEST 51: conn queuing: only decrease the counter for connections which were counted by the pool - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'ok
'
068-socket-keepalive.t TEST 52: conn queuing: clean up pending connect operations which are in queue - status code ok got: ''
expected: '200'
068-socket-keepalive.t TEST 52: conn queuing: clean up pending connect operations which are in queue - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'ok
'
069-null.t TEST 1: compare ngx.null with cjson.null - status code ok got: ''
expected: '200'
069-null.t TEST 1: compare ngx.null with cjson.null - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-true
-null
'
069-null.t TEST 1: compare ngx.null with cjson.null - status code ok got: ''
expected: '200'
069-null.t TEST 1: compare ngx.null with cjson.null - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-true
-null
'
069-null.t TEST 3: output ngx.null in a table - status code ok got: ''
expected: '200'
069-null.t TEST 3: output ngx.null in a table - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'ngx.null: null
'
069-null.t TEST 3: output ngx.null in a table - status code ok got: ''
expected: '200'
069-null.t TEST 3: output ngx.null in a table - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'ngx.null: null
'
069-null.t TEST 4: log ngx.null - status code ok got: ''
expected: '200'
069-null.t TEST 4: log ngx.null - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'done
'
069-null.t TEST 4: log ngx.null - status code ok got: ''
expected: '200'
069-null.t TEST 4: log ngx.null - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'done
'
069-null.t TEST 2: output ngx.null - status code ok got: ''
expected: '200'
069-null.t TEST 2: output ngx.null - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'ngx.null: null
'
069-null.t TEST 2: output ngx.null - status code ok got: ''
expected: '200'
069-null.t TEST 2: output ngx.null - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'ngx.null: null
'
071-idle-socket.t TEST 5: set keepalive when system socket recv buffer has unread data - status code ok got: ''
expected: '200'
071-idle-socket.t TEST 5: set keepalive when system socket recv buffer has unread data - response_body_like - response is expected () ''
doesn't match '(?^:connected: 1
request sent: 57
read: HTTP/1\.1 200 OK\r
Server: nginx\r
Content-Type: text/plain\r
Transfer-Encoding: chunked\r
Connection: close\r
\r
6\r
failed to set keepalive: (?:unread data in buffer|connection in dubious state)
)'
071-idle-socket.t TEST 5: set keepalive when system socket recv buffer has unread data - status code ok got: ''
expected: '200'
071-idle-socket.t TEST 5: set keepalive when system socket recv buffer has unread data - response_body_like - response is expected () ''
doesn't match '(?^:connected: 1
request sent: 57
read: HTTP/1\.1 200 OK\r
Server: nginx\r
Content-Type: text/plain\r
Transfer-Encoding: chunked\r
Connection: close\r
\r
6\r
failed to set keepalive: (?:unread data in buffer|connection in dubious state)
)'
071-idle-socket.t TEST 1: read events come when socket is idle - status code ok got: ''
expected: '200'
071-idle-socket.t TEST 1: read events come when socket is idle - response_body - response is expected (repeated req 0, req 0) @@ -1,15 +0,0 @@
-connected: 1
-request sent: 57
-read: HTTP/1.1 200 OK
-Server: nginx
-Content-Type: text/plain
-Transfer-Encoding: chunked
-Connection: close
-
-6
-2nd part: [6
-barbar
-0
-
-]
-close: 1 nil
'
071-idle-socket.t TEST 1: read events come when socket is idle - status code ok got: ''
expected: '200'
071-idle-socket.t TEST 1: read events come when socket is idle - response_body - response is expected (repeated req 1, req 0) @@ -1,15 +0,0 @@
-connected: 1
-request sent: 57
-read: HTTP/1.1 200 OK
-Server: nginx
-Content-Type: text/plain
-Transfer-Encoding: chunked
-Connection: close
-
-6
-2nd part: [6
-barbar
-0
-
-]
-close: 1 nil
'
071-idle-socket.t TEST 4: send timer cleared in time - status code ok got: ''
expected: '200'
071-idle-socket.t TEST 4: send timer cleared in time - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-connected: 1
-request sent: 11
-received: OK
-close: 1 nil
'
071-idle-socket.t TEST 4: send timer cleared in time - status code ok got: ''
expected: '200'
071-idle-socket.t TEST 4: send timer cleared in time - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +0,0 @@
-connected: 1
-request sent: 11
-received: OK
-close: 1 nil
'
071-idle-socket.t TEST 2: read timer cleared in time - status code ok got: ''
expected: '200'
071-idle-socket.t TEST 2: read timer cleared in time - response_body - response is expected (repeated req 0, req 0) @@ -1,5 +0,0 @@
-connected: 1
-request sent: 11
-received: OK
-request sent again: 11
-close: 1 nil
'
071-idle-socket.t TEST 2: read timer cleared in time - status code ok got: ''
expected: '200'
071-idle-socket.t TEST 2: read timer cleared in time - response_body - response is expected (repeated req 1, req 0) @@ -1,5 +0,0 @@
-connected: 1
-request sent: 11
-received: OK
-request sent again: 11
-close: 1 nil
'
071-idle-socket.t TEST 6: set keepalive when cosocket recv buffer has unread data - status code ok got: ''
expected: '200'
071-idle-socket.t TEST 6: set keepalive when cosocket recv buffer has unread data - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-connected: 1
-request sent: 11
-read: O
-failed to set keepalive: unread data in buffer
'
071-idle-socket.t TEST 6: set keepalive when cosocket recv buffer has unread data - status code ok got: ''
expected: '200'
071-idle-socket.t TEST 6: set keepalive when cosocket recv buffer has unread data - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +0,0 @@
-connected: 1
-request sent: 11
-read: O
-failed to set keepalive: unread data in buffer
'
071-idle-socket.t TEST 3: connect timer cleared in time - status code ok got: ''
expected: '200'
071-idle-socket.t TEST 3: connect timer cleared in time - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-connected: 1
-request sent: 11
-close: 1 nil
'
071-idle-socket.t TEST 3: connect timer cleared in time - status code ok got: ''
expected: '200'
071-idle-socket.t TEST 3: connect timer cleared in time - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-connected: 1
-request sent: 11
-close: 1 nil
'
073-backtrace.t TEST 4: deep backtrace in a single coroutine (more than 22) - status code ok got: ''
expected: '200'
073-backtrace.t TEST 4: deep backtrace in a single coroutine (more than 22) - status code ok got: ''
expected: '200'
073-backtrace.t TEST 1: sanity - status code ok got: ''
expected: '200'
073-backtrace.t TEST 1: sanity - status code ok got: ''
expected: '200'
073-backtrace.t TEST 3: deep backtrace in a single coroutine (more than 15) - status code ok got: ''
expected: '200'
073-backtrace.t TEST 3: deep backtrace in a single coroutine (more than 15) - status code ok got: ''
expected: '200'
073-backtrace.t TEST 2: error(nil) - status code ok got: ''
expected: '200'
073-backtrace.t TEST 2: error(nil) - status code ok got: ''
expected: '200'
074-prefix-var.t TEST 2: ${prefix} - status code ok got: ''
expected: '200'
074-prefix-var.t TEST 2: ${prefix} - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "Greetings from module foo.\x{0a}"
length: 27
strings begin to differ at char 1 (line 1 column 1)
074-prefix-var.t TEST 2: ${prefix} - status code ok got: ''
expected: '200'
074-prefix-var.t TEST 2: ${prefix} - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "Greetings from module foo.\x{0a}"
length: 27
strings begin to differ at char 1 (line 1 column 1)
074-prefix-var.t TEST 1: $prefix - status code ok got: ''
expected: '200'
074-prefix-var.t TEST 1: $prefix - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "Greetings from module foo.\x{0a}"
length: 27
strings begin to differ at char 1 (line 1 column 1)
074-prefix-var.t TEST 1: $prefix - status code ok got: ''
expected: '200'
074-prefix-var.t TEST 1: $prefix - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "Greetings from module foo.\x{0a}"
length: 27
strings begin to differ at char 1 (line 1 column 1)
075-logby.t TEST 10: no ngx.print - status code ok got: ''
expected: '200'
075-logby.t TEST 10: no ngx.print - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "ok\x{0a}"
length: 3
strings begin to differ at char 1 (line 1 column 1)
075-logby.t TEST 10: no ngx.print - status code ok got: ''
expected: '200'
075-logby.t TEST 10: no ngx.print - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "ok\x{0a}"
length: 3
strings begin to differ at char 1 (line 1 column 1)
075-logby.t TEST 6: log_by_lua + shared dict - status code ok got: ''
expected: '200'
075-logby.t TEST 6: log_by_lua + shared dict - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "hello\x{0a}"
length: 6
strings begin to differ at char 1 (line 1 column 1)
075-logby.t TEST 6: log_by_lua + shared dict - status code ok got: ''
expected: '200'
075-logby.t TEST 6: log_by_lua + shared dict - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "hello\x{0a}"
length: 6
strings begin to differ at char 1 (line 1 column 1)
075-logby.t TEST 16: no ngx.socket.tcp() - status code ok got: ''
expected: '200'
075-logby.t TEST 16: no ngx.socket.tcp() - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "ok\x{0a}"
length: 3
strings begin to differ at char 1 (line 1 column 1)
075-logby.t TEST 16: no ngx.socket.tcp() - status code ok got: ''
expected: '200'
075-logby.t TEST 16: no ngx.socket.tcp() - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "ok\x{0a}"
length: 3
strings begin to differ at char 1 (line 1 column 1)
075-logby.t TEST 18: backtrace - status code ok got: ''
expected: '200'
075-logby.t TEST 18: backtrace - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "ok\x{0a}"
length: 3
strings begin to differ at char 1 (line 1 column 1)
075-logby.t TEST 18: backtrace - status code ok got: ''
expected: '200'
075-logby.t TEST 18: backtrace - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "ok\x{0a}"
length: 3
strings begin to differ at char 1 (line 1 column 1)
075-logby.t TEST 13: no ngx.eof - status code ok got: ''
expected: '200'
075-logby.t TEST 13: no ngx.eof - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "ok\x{0a}"
length: 3
strings begin to differ at char 1 (line 1 column 1)
075-logby.t TEST 13: no ngx.eof - status code ok got: ''
expected: '200'
075-logby.t TEST 13: no ngx.eof - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "ok\x{0a}"
length: 3
strings begin to differ at char 1 (line 1 column 1)
075-logby.t TEST 3: log_by_lua_file & content_by_lua - status code ok got: ''
expected: '200'
075-logby.t TEST 3: log_by_lua_file & content_by_lua - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "127.0.0.1\x{0a}"
length: 10
strings begin to differ at char 1 (line 1 column 1)
075-logby.t TEST 3: log_by_lua_file & content_by_lua - status code ok got: ''
expected: '200'
075-logby.t TEST 3: log_by_lua_file & content_by_lua - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "127.0.0.1\x{0a}"
length: 10
strings begin to differ at char 1 (line 1 column 1)
075-logby.t TEST 5: ngx.ctx available in log_by_lua (not defined yet) - status code ok got: ''
expected: '200'
075-logby.t TEST 5: ngx.ctx available in log_by_lua (not defined yet) - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "hello\x{0a}"
length: 6
strings begin to differ at char 1 (line 1 column 1)
075-logby.t TEST 5: ngx.ctx available in log_by_lua (not defined yet) - status code ok got: ''
expected: '200'
075-logby.t TEST 5: ngx.ctx available in log_by_lua (not defined yet) - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "hello\x{0a}"
length: 6
strings begin to differ at char 1 (line 1 column 1)
075-logby.t TEST 20: log_by_lua runs before access logging (github issue \#254) - status code ok got: ''
expected: '200'
075-logby.t TEST 20: log_by_lua runs before access logging (github issue \#254) - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "ok\x{0a}"
length: 3
strings begin to differ at char 1 (line 1 column 1)
075-logby.t TEST 20: log_by_lua runs before access logging (github issue \#254) - status code ok got: ''
expected: '200'
075-logby.t TEST 20: log_by_lua runs before access logging (github issue \#254) - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "ok\x{0a}"
length: 3
strings begin to differ at char 1 (line 1 column 1)
075-logby.t TEST 8: lua error (nil) - status code ok got: ''
expected: '200'
075-logby.t TEST 8: lua error (nil) - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "ok\x{0a}"
length: 3
strings begin to differ at char 1 (line 1 column 1)
075-logby.t TEST 8: lua error (nil) - status code ok got: ''
expected: '200'
075-logby.t TEST 8: lua error (nil) - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "ok\x{0a}"
length: 3
strings begin to differ at char 1 (line 1 column 1)
075-logby.t TEST 15: no ngx.req.socket() - status code ok got: ''
expected: '200'
075-logby.t TEST 15: no ngx.req.socket() - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "ok\x{0a}"
length: 3
strings begin to differ at char 1 (line 1 column 1)
075-logby.t TEST 15: no ngx.req.socket() - status code ok got: ''
expected: '200'
075-logby.t TEST 15: no ngx.req.socket() - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "ok\x{0a}"
length: 3
strings begin to differ at char 1 (line 1 column 1)
075-logby.t TEST 11: no ngx.say - status code ok got: ''
expected: '200'
075-logby.t TEST 11: no ngx.say - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "ok\x{0a}"
length: 3
strings begin to differ at char 1 (line 1 column 1)
075-logby.t TEST 11: no ngx.say - status code ok got: ''
expected: '200'
075-logby.t TEST 11: no ngx.say - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "ok\x{0a}"
length: 3
strings begin to differ at char 1 (line 1 column 1)
075-logby.t TEST 12: no ngx.flush - status code ok got: ''
expected: '200'
075-logby.t TEST 12: no ngx.flush - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "ok\x{0a}"
length: 3
strings begin to differ at char 1 (line 1 column 1)
075-logby.t TEST 12: no ngx.flush - status code ok got: ''
expected: '200'
075-logby.t TEST 12: no ngx.flush - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "ok\x{0a}"
length: 3
strings begin to differ at char 1 (line 1 column 1)
075-logby.t TEST 4: ngx.ctx available in log_by_lua (already defined) - status code ok got: ''
expected: '200'
075-logby.t TEST 4: ngx.ctx available in log_by_lua (already defined) - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "3\x{0a}"
length: 2
strings begin to differ at char 1 (line 1 column 1)
075-logby.t TEST 4: ngx.ctx available in log_by_lua (already defined) - status code ok got: ''
expected: '200'
075-logby.t TEST 4: ngx.ctx available in log_by_lua (already defined) - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "3\x{0a}"
length: 2
strings begin to differ at char 1 (line 1 column 1)
075-logby.t TEST 1: log_by_lua - status code ok got: ''
expected: '200'
075-logby.t TEST 1: log_by_lua - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "hello\x{0a}"
length: 6
strings begin to differ at char 1 (line 1 column 1)
075-logby.t TEST 1: log_by_lua - status code ok got: ''
expected: '200'
075-logby.t TEST 1: log_by_lua - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "hello\x{0a}"
length: 6
strings begin to differ at char 1 (line 1 column 1)
075-logby.t TEST 9: globals shared - status code ok got: ''
expected: '200'
075-logby.t TEST 9: globals shared - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "ok\x{0a}"
length: 3
strings begin to differ at char 1 (line 1 column 1)
075-logby.t TEST 9: globals shared - status code ok got: ''
expected: '200'
075-logby.t TEST 9: globals shared - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "ok\x{0a}"
length: 3
strings begin to differ at char 1 (line 1 column 1)
075-logby.t TEST 9: globals shared - grep_error_log_out (req 1) got: ""
length: 0
expected: "old foo: 1\x{0a}"
length: 11
strings begin to differ at char 1 (line 1 column 1)
075-logby.t TEST 19: Lua file does not exist - status code ok got: ''
expected: '200'
075-logby.t TEST 19: Lua file does not exist - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "ok\x{0a}"
length: 3
strings begin to differ at char 1 (line 1 column 1)
075-logby.t TEST 19: Lua file does not exist - status code ok got: ''
expected: '200'
075-logby.t TEST 19: Lua file does not exist - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "ok\x{0a}"
length: 3
strings begin to differ at char 1 (line 1 column 1)
075-logby.t TEST 7: lua error (string) - status code ok got: ''
expected: '200'
075-logby.t TEST 7: lua error (string) - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "ok\x{0a}"
length: 3
strings begin to differ at char 1 (line 1 column 1)
075-logby.t TEST 7: lua error (string) - status code ok got: ''
expected: '200'
075-logby.t TEST 7: lua error (string) - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "ok\x{0a}"
length: 3
strings begin to differ at char 1 (line 1 column 1)
075-logby.t TEST 2: log_by_lua_file - status code ok got: ''
expected: '200'
075-logby.t TEST 2: log_by_lua_file - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "hello\x{0a}"
length: 6
strings begin to differ at char 1 (line 1 column 1)
075-logby.t TEST 2: log_by_lua_file - status code ok got: ''
expected: '200'
075-logby.t TEST 2: log_by_lua_file - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "hello\x{0a}"
length: 6
strings begin to differ at char 1 (line 1 column 1)
075-logby.t TEST 17: no ngx.socket.connect() - status code ok got: ''
expected: '200'
075-logby.t TEST 17: no ngx.socket.connect() - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "ok\x{0a}"
length: 3
strings begin to differ at char 1 (line 1 column 1)
075-logby.t TEST 17: no ngx.socket.connect() - status code ok got: ''
expected: '200'
075-logby.t TEST 17: no ngx.socket.connect() - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "ok\x{0a}"
length: 3
strings begin to differ at char 1 (line 1 column 1)
075-logby.t TEST 14: no ngx.exit - status code ok got: ''
expected: '200'
075-logby.t TEST 14: no ngx.exit - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "ok\x{0a}"
length: 3
strings begin to differ at char 1 (line 1 column 1)
075-logby.t TEST 14: no ngx.exit - status code ok got: ''
expected: '200'
075-logby.t TEST 14: no ngx.exit - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "ok\x{0a}"
length: 3
strings begin to differ at char 1 (line 1 column 1)
077-sleep.t TEST 6: sleep 0 - status code ok got: ''
expected: '200'
077-sleep.t TEST 6: sleep 0 - response_body_like - response is expected () ''
doesn't match '(?^s:elapsed: 0)'
077-sleep.t TEST 6: sleep 0 - status code ok got: ''
expected: '200'
077-sleep.t TEST 6: sleep 0 - response_body_like - response is expected () ''
doesn't match '(?^s:elapsed: 0)'
077-sleep.t TEST 4: sleep 0.5 - interleaved by ngx.say() - ended by ngx.sleep - status code ok got: ''
expected: '200'
077-sleep.t TEST 4: sleep 0.5 - interleaved by ngx.say() - ended by ngx.sleep - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "blah\x{0a}"
length: 5
strings begin to differ at char 1 (line 1 column 1)
077-sleep.t TEST 4: sleep 0.5 - interleaved by ngx.say() - ended by ngx.sleep - status code ok got: ''
expected: '200'
077-sleep.t TEST 4: sleep 0.5 - interleaved by ngx.say() - ended by ngx.sleep - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "blah\x{0a}"
length: 5
strings begin to differ at char 1 (line 1 column 1)
077-sleep.t TEST 9: ngx.sleep() fails to yield (require) - status code ok got: ''
expected: '200'
077-sleep.t TEST 9: ngx.sleep() fails to yield (require) - status code ok got: ''
expected: '200'
077-sleep.t TEST 5: sleep 0.5 - interleaved by ngx.say() - not ended by ngx.sleep - status code ok got: ''
expected: '200'
077-sleep.t TEST 5: sleep 0.5 - interleaved by ngx.say() - not ended by ngx.sleep - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "blah\x{0a}hiya\x{0a}"
length: 10
strings begin to differ at char 1 (line 1 column 1)
077-sleep.t TEST 5: sleep 0.5 - interleaved by ngx.say() - not ended by ngx.sleep - status code ok got: ''
expected: '200'
077-sleep.t TEST 5: sleep 0.5 - interleaved by ngx.say() - not ended by ngx.sleep - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "blah\x{0a}hiya\x{0a}"
length: 10
strings begin to differ at char 1 (line 1 column 1)
077-sleep.t TEST 10: sleep coctx handler did not get called in ngx.exit(). - status code ok got: ''
expected: '200'
077-sleep.t TEST 10: sleep coctx handler did not get called in ngx.exit(). - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:18:41 [alert] 22449\#0: worker process 22550 exited on signal 11" (req 0) 2020/10/27 05:18:41 [debug] 22449\#0: shmtx forced unlock
2020/10/27 05:18:41 [debug] 22449\#0: wake up, sigio 0
2020/10/27 05:18:41 [debug] 22449\#0: reap children
2020/10/27 05:18:41 [debug] 22449\#0: child: 0 22550 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:18:41 [debug] 22449\#0: channel 3:4
2020/10/27 05:18:41 [notice] 22449\#0: start worker process 22572
2020/10/27 05:18:41 [debug] 22449\#0: sigsuspend
2020/10/27 05:18:41 [debug] 22572\#0: malloc: 08C4E6B0:12
2020/10/27 05:18:41 [debug] 22572\#0: malloc: 08C52E80:8
'
077-sleep.t TEST 10: sleep coctx handler did not get called in ngx.exit(). - status code ok got: ''
expected: '200'
077-sleep.t TEST 10: sleep coctx handler did not get called in ngx.exit(). - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:18:41 [alert] 22449\#0: worker process 22572 exited on signal 11" (req 1) 2020/10/27 05:18:41 [debug] 22449\#0: shmtx forced unlock
2020/10/27 05:18:41 [debug] 22449\#0: wake up, sigio 0
2020/10/27 05:18:41 [debug] 22449\#0: reap children
2020/10/27 05:18:41 [debug] 22449\#0: child: 0 22572 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:18:41 [debug] 22449\#0: channel 3:4
2020/10/27 05:18:41 [notice] 22449\#0: start worker process 22573
2020/10/27 05:18:41 [debug] 22449\#0: sigsuspend
2020/10/27 05:18:41 [debug] 22573\#0: malloc: 08C4E6B0:12
2020/10/27 05:18:41 [debug] 22573\#0: malloc: 08C52E80:8
'
077-sleep.t TEST 1: sleep 0.5 - content - status code ok got: ''
expected: '200'
077-sleep.t TEST 1: sleep 0.5 - content - response_body_like - response is expected () ''
doesn't match '(?^s:^0\.(?:4[5-9]\d*|5[0-5]\d*|5)$)'
077-sleep.t TEST 1: sleep 0.5 - content - status code ok got: ''
expected: '200'
077-sleep.t TEST 1: sleep 0.5 - content - response_body_like - response is expected () ''
doesn't match '(?^s:^0\.(?:4[5-9]\d*|5[0-5]\d*|5)$)'
077-sleep.t TEST 3: sleep 0.33 - multi-times in content - status code ok got: ''
expected: '200'
077-sleep.t TEST 3: sleep 0.33 - multi-times in content - response_body_like - response is expected () ''
doesn't match '(?^s:^(?:0\.9\d*|1\.[0-2]\d*|1)$)'
077-sleep.t TEST 3: sleep 0.33 - multi-times in content - status code ok got: ''
expected: '200'
077-sleep.t TEST 3: sleep 0.33 - multi-times in content - response_body_like - response is expected () ''
doesn't match '(?^s:^(?:0\.9\d*|1\.[0-2]\d*|1)$)'
077-sleep.t TEST 2: sleep a - content - status code ok got: ''
expected: '200'
077-sleep.t TEST 2: sleep a - content - status code ok got: ''
expected: '200'
077-sleep.t TEST 8: ngx.sleep() fails to yield (xpcall err handler) - status code ok got: ''
expected: '200'
077-sleep.t TEST 8: ngx.sleep() fails to yield (xpcall err handler) - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "ok\x{0a}"
length: 3
strings begin to differ at char 1 (line 1 column 1)
077-sleep.t TEST 8: ngx.sleep() fails to yield (xpcall err handler) - status code ok got: ''
expected: '200'
077-sleep.t TEST 8: ngx.sleep() fails to yield (xpcall err handler) - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "ok\x{0a}"
length: 3
strings begin to differ at char 1 (line 1 column 1)
080-hup-shdict.t TEST 1: initialize the fields in shdict - status code ok got: ''
expected: '200'
080-hup-shdict.t TEST 1: initialize the fields in shdict - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-32 number
-10502 number
'
080-hup-shdict.t TEST 1: initialize the fields in shdict - status code ok got: ''
expected: '200'
080-hup-shdict.t TEST 1: initialize the fields in shdict - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-32 number
-10502 number
'
080-hup-shdict.t TEST 2: retrieve the fields in shdict after HUP reload - status code ok got: ''
expected: '200'
080-hup-shdict.t TEST 2: retrieve the fields in shdict after HUP reload - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-32 number
-10502 number
'
080-hup-shdict.t TEST 2: retrieve the fields in shdict after HUP reload - status code ok got: ''
expected: '200'
080-hup-shdict.t TEST 2: retrieve the fields in shdict after HUP reload - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-32 number
-10502 number
'
081-bytecode.t TEST 1: bytecode (not stripped) - status code ok got: ''
expected: '200'
081-bytecode.t TEST 1: bytecode (not stripped) - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "a = 1\x{0a}"
length: 6
strings begin to differ at char 1 (line 1 column 1)
081-bytecode.t TEST 1: bytecode (not stripped) - status code ok got: ''
expected: '200'
081-bytecode.t TEST 1: bytecode (not stripped) - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "a = 1\x{0a}"
length: 6
strings begin to differ at char 1 (line 1 column 1)
081-bytecode.t TEST 2: bytecode (stripped) - status code ok got: ''
expected: '200'
081-bytecode.t TEST 2: bytecode (stripped) - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "a = 1\x{0a}"
length: 6
strings begin to differ at char 1 (line 1 column 1)
081-bytecode.t TEST 2: bytecode (stripped) - status code ok got: ''
expected: '200'
081-bytecode.t TEST 2: bytecode (stripped) - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "a = 1\x{0a}"
length: 6
strings begin to differ at char 1 (line 1 column 1)
083-bad-sock-self.t TEST 7: setkeepalive (bad self) - status code ok got: ''
expected: '200'
083-bad-sock-self.t TEST 7: setkeepalive (bad self) - status code ok got: ''
expected: '200'
083-bad-sock-self.t TEST 3: send (bad arg number) - status code ok got: ''
expected: '200'
083-bad-sock-self.t TEST 3: send (bad arg number) - status code ok got: ''
expected: '200'
083-bad-sock-self.t TEST 4: send (bad self) - status code ok got: ''
expected: '200'
083-bad-sock-self.t TEST 4: send (bad self) - status code ok got: ''
expected: '200'
083-bad-sock-self.t TEST 6: close (bad self) - status code ok got: ''
expected: '200'
083-bad-sock-self.t TEST 6: close (bad self) - status code ok got: ''
expected: '200'
083-bad-sock-self.t TEST 5: getreusedtimes (bad self) - status code ok got: ''
expected: '200'
083-bad-sock-self.t TEST 5: getreusedtimes (bad self) - status code ok got: ''
expected: '200'
083-bad-sock-self.t TEST 2: receiveuntil - status code ok got: ''
expected: '200'
083-bad-sock-self.t TEST 2: receiveuntil - status code ok got: ''
expected: '200'
083-bad-sock-self.t TEST 1: receive - status code ok got: ''
expected: '200'
083-bad-sock-self.t TEST 1: receive - status code ok got: ''
expected: '200'
084-inclusive-receiveuntil.t TEST 10: ambiguous boundary patterns (--abc), small buffer, mixed by other reading calls - status code ok got: ''
expected: '200'
084-inclusive-receiveuntil.t TEST 10: ambiguous boundary patterns (--abc), small buffer, mixed by other reading calls - response_body - response is expected (repeated req 0, req 0) @@ -1,14 +0,0 @@
-connected: 1
-request sent: 57
-read: hell
-read one byte: o
-read: , wo
-read one byte: r
-read: ld -
-read one byte: -
-read: --abc
-read one byte:
-
-failed to read a chunk: nil [nil]
-failed to read a byte: closed []
-close: 1 nil
'
084-inclusive-receiveuntil.t TEST 10: ambiguous boundary patterns (--abc), small buffer, mixed by other reading calls - status code ok got: ''
expected: '200'
084-inclusive-receiveuntil.t TEST 10: ambiguous boundary patterns (--abc), small buffer, mixed by other reading calls - response_body - response is expected (repeated req 1, req 0) @@ -1,14 +0,0 @@
-connected: 1
-request sent: 57
-read: hell
-read one byte: o
-read: , wo
-read one byte: r
-read: ld -
-read one byte: -
-read: --abc
-read one byte:
-
-failed to read a chunk: nil [nil]
-failed to read a byte: closed []
-close: 1 nil
'
084-inclusive-receiveuntil.t TEST 7: bad inclusive option value type - status code ok got: ''
expected: '200'
084-inclusive-receiveuntil.t TEST 7: bad inclusive option value type - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-connected: 1
-request sent: 57
'
084-inclusive-receiveuntil.t TEST 7: bad inclusive option value type - pattern "bad "inclusive" option value type: string" should match a line in error.log (req 0)
084-inclusive-receiveuntil.t TEST 7: bad inclusive option value type - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:19:10 [alert] 22979\#0: worker process 22989 exited on signal 11" (req 0) 2020/10/27 05:19:10 [debug] 22979\#0: shmtx forced unlock
2020/10/27 05:19:10 [debug] 22979\#0: wake up, sigio 0
2020/10/27 05:19:10 [debug] 22979\#0: reap children
2020/10/27 05:19:10 [debug] 22979\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:19:10 [debug] 22979\#0: child: 1 22989 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:19:10 [debug] 22979\#0: channel 3:4
2020/10/27 05:19:10 [notice] 22979\#0: start worker process 23011
2020/10/27 05:19:10 [debug] 22979\#0: sigsuspend
2020/10/27 05:19:10 [debug] 23011\#0: malloc: 086FBFB0:12
'
084-inclusive-receiveuntil.t TEST 7: bad inclusive option value type - status code ok got: ''
expected: '200'
084-inclusive-receiveuntil.t TEST 7: bad inclusive option value type - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-connected: 1
-request sent: 57
'
084-inclusive-receiveuntil.t TEST 7: bad inclusive option value type - pattern "bad "inclusive" option value type: string" should match a line in error.log (req 1)
084-inclusive-receiveuntil.t TEST 7: bad inclusive option value type - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:19:10 [alert] 22979\#0: worker process 23011 exited on signal 11" (req 1) 2020/10/27 05:19:10 [debug] 22979\#0: shmtx forced unlock
2020/10/27 05:19:10 [debug] 22979\#0: wake up, sigio 0
2020/10/27 05:19:10 [debug] 22979\#0: reap children
2020/10/27 05:19:10 [debug] 22979\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:19:10 [debug] 22979\#0: child: 1 23011 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:19:10 [debug] 22979\#0: channel 3:4
2020/10/27 05:19:10 [notice] 22979\#0: start worker process 23012
2020/10/27 05:19:10 [debug] 22979\#0: sigsuspend
2020/10/27 05:19:10 [debug] 23012\#0: malloc: 086FBFB0:12
'
084-inclusive-receiveuntil.t TEST 1: ambiguous boundary patterns (abcabd) - inclusive mode - status code ok got: ''
expected: '200'
084-inclusive-receiveuntil.t TEST 1: ambiguous boundary patterns (abcabd) - inclusive mode - response_body - response is expected (repeated req 0, req 0) @@ -1,7 +0,0 @@
-connected: 1
-request sent: 57
-read: abcabcabd
-read: abcabd
-failed to read a line: closed [
-]
-close: 1 nil
'
084-inclusive-receiveuntil.t TEST 1: ambiguous boundary patterns (abcabd) - inclusive mode - status code ok got: ''
expected: '200'
084-inclusive-receiveuntil.t TEST 1: ambiguous boundary patterns (abcabd) - inclusive mode - response_body - response is expected (repeated req 1, req 0) @@ -1,7 +0,0 @@
-connected: 1
-request sent: 57
-read: abcabcabd
-read: abcabd
-failed to read a line: closed [
-]
-close: 1 nil
'
084-inclusive-receiveuntil.t TEST 4: inclusive option value nil - status code ok got: ''
expected: '200'
084-inclusive-receiveuntil.t TEST 4: inclusive option value nil - response_body - response is expected (repeated req 0, req 0) @@ -1,6 +0,0 @@
-connected: 1
-request sent: 57
-read: abcabc
-failed to read a line: closed [d
-]
-close: 1 nil
'
084-inclusive-receiveuntil.t TEST 4: inclusive option value nil - status code ok got: ''
expected: '200'
084-inclusive-receiveuntil.t TEST 4: inclusive option value nil - response_body - response is expected (repeated req 1, req 0) @@ -1,6 +0,0 @@
-connected: 1
-request sent: 57
-read: abcabc
-failed to read a line: closed [d
-]
-close: 1 nil
'
084-inclusive-receiveuntil.t TEST 5: inclusive option value false - status code ok got: ''
expected: '200'
084-inclusive-receiveuntil.t TEST 5: inclusive option value false - response_body - response is expected (repeated req 0, req 0) @@ -1,6 +0,0 @@
-connected: 1
-request sent: 57
-read: abcabc
-failed to read a line: closed [d
-]
-close: 1 nil
'
084-inclusive-receiveuntil.t TEST 5: inclusive option value false - status code ok got: ''
expected: '200'
084-inclusive-receiveuntil.t TEST 5: inclusive option value false - response_body - response is expected (repeated req 1, req 0) @@ -1,6 +0,0 @@
-connected: 1
-request sent: 57
-read: abcabc
-failed to read a line: closed [d
-]
-close: 1 nil
'
084-inclusive-receiveuntil.t TEST 2: ambiguous boundary patterns (abcabdabcabe 4) - inclusive mode - status code ok got: ''
expected: '200'
084-inclusive-receiveuntil.t TEST 2: ambiguous boundary patterns (abcabdabcabe 4) - inclusive mode - response_body - response is expected (repeated req 0, req 0) @@ -1,6 +0,0 @@
-connected: 1
-request sent: 57
-read: ababcabdabcabe
-failed to read a line: closed [
-]
-close: 1 nil
'
084-inclusive-receiveuntil.t TEST 2: ambiguous boundary patterns (abcabdabcabe 4) - inclusive mode - status code ok got: ''
expected: '200'
084-inclusive-receiveuntil.t TEST 2: ambiguous boundary patterns (abcabdabcabe 4) - inclusive mode - response_body - response is expected (repeated req 1, req 0) @@ -1,6 +0,0 @@
-connected: 1
-request sent: 57
-read: ababcabdabcabe
-failed to read a line: closed [
-]
-close: 1 nil
'
084-inclusive-receiveuntil.t TEST 8: bad option table - status code ok got: ''
expected: '200'
084-inclusive-receiveuntil.t TEST 8: bad option table - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-connected: 1
-request sent: 57
'
084-inclusive-receiveuntil.t TEST 8: bad option table - pattern "bad "inclusive" option value type: string" should match a line in error.log (req 0)
084-inclusive-receiveuntil.t TEST 8: bad option table - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:19:18 [alert] 22979\#0: worker process 23139 exited on signal 11" (req 0) 2020/10/27 05:19:18 [debug] 22979\#0: shmtx forced unlock
2020/10/27 05:19:18 [debug] 22979\#0: wake up, sigio 0
2020/10/27 05:19:18 [debug] 22979\#0: reap children
2020/10/27 05:19:18 [debug] 22979\#0: child: 0 23139 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:19:18 [debug] 22979\#0: channel 3:4
2020/10/27 05:19:18 [notice] 22979\#0: start worker process 23161
2020/10/27 05:19:18 [debug] 22979\#0: sigsuspend
2020/10/27 05:19:18 [debug] 23161\#0: malloc: 08700C80:12
2020/10/27 05:19:18 [debug] 23161\#0: malloc: 087054A0:8
'
084-inclusive-receiveuntil.t TEST 8: bad option table - status code ok got: ''
expected: '200'
084-inclusive-receiveuntil.t TEST 8: bad option table - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-connected: 1
-request sent: 57
'
084-inclusive-receiveuntil.t TEST 8: bad option table - pattern "bad "inclusive" option value type: string" should match a line in error.log (req 1)
084-inclusive-receiveuntil.t TEST 8: bad option table - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:19:19 [alert] 22979\#0: worker process 23161 exited on signal 11" (req 1) 2020/10/27 05:19:19 [debug] 22979\#0: shmtx forced unlock
2020/10/27 05:19:19 [debug] 22979\#0: wake up, sigio 0
2020/10/27 05:19:19 [debug] 22979\#0: reap children
2020/10/27 05:19:19 [debug] 22979\#0: child: 0 23161 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:19:19 [debug] 22979\#0: channel 3:4
2020/10/27 05:19:19 [notice] 22979\#0: start worker process 23162
2020/10/27 05:19:19 [debug] 22979\#0: sigsuspend
2020/10/27 05:19:19 [debug] 23162\#0: malloc: 08700C80:12
2020/10/27 05:19:19 [debug] 23162\#0: malloc: 087054A0:8
'
084-inclusive-receiveuntil.t TEST 9: ambiguous boundary patterns (--abc), small buffer - status code ok got: ''
expected: '200'
084-inclusive-receiveuntil.t TEST 9: ambiguous boundary patterns (--abc), small buffer - response_body - response is expected (repeated req 0, req 0) @@ -1,11 +0,0 @@
-connected: 1
-request sent: 57
-read: hell
-read: o, w
-read: orld
-read: --
-read: --abc
-failed to read a line: nil [nil]
-failed to read a line: closed [
-]
-close: 1 nil
'
084-inclusive-receiveuntil.t TEST 9: ambiguous boundary patterns (--abc), small buffer - status code ok got: ''
expected: '200'
084-inclusive-receiveuntil.t TEST 9: ambiguous boundary patterns (--abc), small buffer - response_body - response is expected (repeated req 1, req 0) @@ -1,11 +0,0 @@
-connected: 1
-request sent: 57
-read: hell
-read: o, w
-read: orld
-read: --
-read: --abc
-failed to read a line: nil [nil]
-failed to read a line: closed [
-]
-close: 1 nil
'
084-inclusive-receiveuntil.t TEST 6: inclusive option value true (aa) - status code ok got: ''
expected: '200'
084-inclusive-receiveuntil.t TEST 6: inclusive option value true (aa) - response_body - response is expected (repeated req 0, req 0) @@ -1,6 +0,0 @@
-connected: 1
-request sent: 57
-read: abcabcaa
-failed to read a line: closed [d
-]
-close: 1 nil
'
084-inclusive-receiveuntil.t TEST 6: inclusive option value true (aa) - status code ok got: ''
expected: '200'
084-inclusive-receiveuntil.t TEST 6: inclusive option value true (aa) - response_body - response is expected (repeated req 1, req 0) @@ -1,6 +0,0 @@
-connected: 1
-request sent: 57
-read: abcabcaa
-failed to read a line: closed [d
-]
-close: 1 nil
'
084-inclusive-receiveuntil.t TEST 3: ambiguous boundary patterns (abcabd) - inclusive mode - small buffers - status code ok got: ''
expected: '200'
084-inclusive-receiveuntil.t TEST 3: ambiguous boundary patterns (abcabd) - inclusive mode - small buffers - response_body - response is expected (repeated req 0, req 0) @@ -1,7 +0,0 @@
-connected: 1
-request sent: 57
-read: abcabcabd
-read: abcabd
-failed to read a line: closed [
-]
-close: 1 nil
'
084-inclusive-receiveuntil.t TEST 3: ambiguous boundary patterns (abcabd) - inclusive mode - small buffers - status code ok got: ''
expected: '200'
084-inclusive-receiveuntil.t TEST 3: ambiguous boundary patterns (abcabd) - inclusive mode - small buffers - response_body - response is expected (repeated req 1, req 0) @@ -1,7 +0,0 @@
-connected: 1
-request sent: 57
-read: abcabcabd
-read: abcabd
-failed to read a line: closed [
-]
-close: 1 nil
'
086-init-by.t TEST 1: sanity (inline) - status code ok got: ''
expected: '200'
086-init-by.t TEST 1: sanity (inline) - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "hello, FOO\x{0a}"
length: 11
strings begin to differ at char 1 (line 1 column 1)
086-init-by.t TEST 1: sanity (inline) - status code ok got: ''
expected: '200'
086-init-by.t TEST 1: sanity (inline) - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "hello, FOO\x{0a}"
length: 11
strings begin to differ at char 1 (line 1 column 1)
086-init-by.t TEST 2: sanity (file) - status code ok got: ''
expected: '200'
086-init-by.t TEST 2: sanity (file) - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "hello, FOO\x{0a}"
length: 11
strings begin to differ at char 1 (line 1 column 1)
086-init-by.t TEST 2: sanity (file) - status code ok got: ''
expected: '200'
086-init-by.t TEST 2: sanity (file) - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "hello, FOO\x{0a}"
length: 11
strings begin to differ at char 1 (line 1 column 1)
086-init-by.t TEST 3: require - status code ok got: ''
expected: '200'
086-init-by.t TEST 3: require - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "hello, blah\x{0a}"
length: 12
strings begin to differ at char 1 (line 1 column 1)
086-init-by.t TEST 3: require - status code ok got: ''
expected: '200'
086-init-by.t TEST 3: require - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "hello, blah\x{0a}"
length: 12
strings begin to differ at char 1 (line 1 column 1)
086-init-by.t TEST 4: shdict (single) - status code ok got: ''
expected: '200'
086-init-by.t TEST 4: shdict (single) - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "Jim: 6\x{0a}"
length: 7
strings begin to differ at char 1 (line 1 column 1)
086-init-by.t TEST 4: shdict (single) - status code ok got: ''
expected: '200'
086-init-by.t TEST 4: shdict (single) - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "Jim: 6\x{0a}"
length: 7
strings begin to differ at char 1 (line 1 column 1)
086-init-by.t TEST 5: shdict (multi) - status code ok got: ''
expected: '200'
086-init-by.t TEST 5: shdict (multi) - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "Jim: 6\x{0a}"
length: 7
strings begin to differ at char 1 (line 1 column 1)
086-init-by.t TEST 5: shdict (multi) - status code ok got: ''
expected: '200'
086-init-by.t TEST 5: shdict (multi) - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "Jim: 6\x{0a}"
length: 7
strings begin to differ at char 1 (line 1 column 1)
086-init-by.t TEST 6: print - status code ok got: ''
expected: '200'
086-init-by.t TEST 6: print - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "ok\x{0a}"
length: 3
strings begin to differ at char 1 (line 1 column 1)
086-init-by.t TEST 6: print - status code ok got: ''
expected: '200'
086-init-by.t TEST 6: print - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "ok\x{0a}"
length: 3
strings begin to differ at char 1 (line 1 column 1)
086-init-by.t TEST 7: ngx.log - status code ok got: ''
expected: '200'
086-init-by.t TEST 7: ngx.log - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "ok\x{0a}"
length: 3
strings begin to differ at char 1 (line 1 column 1)
086-init-by.t TEST 7: ngx.log - status code ok got: ''
expected: '200'
086-init-by.t TEST 7: ngx.log - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "ok\x{0a}"
length: 3
strings begin to differ at char 1 (line 1 column 1)
086-init-by.t TEST 8: require (with shm defined) - status code ok got: ''
expected: '200'
086-init-by.t TEST 8: require (with shm defined) - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "hello, blah\x{0a}"
length: 12
strings begin to differ at char 1 (line 1 column 1)
086-init-by.t TEST 8: require (with shm defined) - status code ok got: ''
expected: '200'
086-init-by.t TEST 8: require (with shm defined) - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "hello, blah\x{0a}"
length: 12
strings begin to differ at char 1 (line 1 column 1)
086-init-by.t TEST 9: coroutine API (inlined init_by_lua) - status code ok got: ''
expected: '200'
086-init-by.t TEST 9: coroutine API (inlined init_by_lua) - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "foo = 32\x{0a}bar = running\x{0a}baz = 78\x{0a}"
length: 32
strings begin to differ at char 1 (line 1 column 1)
086-init-by.t TEST 9: coroutine API (inlined init_by_lua) - status code ok got: ''
expected: '200'
086-init-by.t TEST 9: coroutine API (inlined init_by_lua) - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "foo = 32\x{0a}bar = running\x{0a}baz = 78\x{0a}"
length: 32
strings begin to differ at char 1 (line 1 column 1)
086-init-by.t TEST 10: coroutine API (init_by_lua_file) - status code ok got: ''
expected: '200'
086-init-by.t TEST 10: coroutine API (init_by_lua_file) - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "foo = 32\x{0a}bar = running\x{0a}baz = 78\x{0a}"
length: 32
strings begin to differ at char 1 (line 1 column 1)
086-init-by.t TEST 10: coroutine API (init_by_lua_file) - status code ok got: ''
expected: '200'
086-init-by.t TEST 10: coroutine API (init_by_lua_file) - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "foo = 32\x{0a}bar = running\x{0a}baz = 78\x{0a}"
length: 32
strings begin to differ at char 1 (line 1 column 1)
086-init-by.t TEST 11: access a field in the ngx. table - status code ok got: ''
expected: '200'
086-init-by.t TEST 11: access a field in the ngx. table - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "ok\x{0a}"
length: 3
strings begin to differ at char 1 (line 1 column 1)
086-init-by.t TEST 11: access a field in the ngx. table - status code ok got: ''
expected: '200'
086-init-by.t TEST 11: access a field in the ngx. table - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "ok\x{0a}"
length: 3
strings begin to differ at char 1 (line 1 column 1)
087-udp-socket.t TEST 1: sanity - status code ok got: ''
expected: '200'
087-udp-socket.t TEST 1: sanity - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-connected
-received 12 bytes: OK
'
087-udp-socket.t TEST 1: sanity - status code ok got: ''
expected: '200'
087-udp-socket.t TEST 1: sanity - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-connected
-received 12 bytes: OK
'
087-udp-socket.t TEST 7: recv timeout - status code ok got: ''
expected: '200'
087-udp-socket.t TEST 7: recv timeout - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-connected: 1
-failed to receive: timeout
'
087-udp-socket.t TEST 7: recv timeout - pattern "lua udp socket read timed out" should match a line in error.log (req 0)
087-udp-socket.t TEST 7: recv timeout - status code ok got: ''
expected: '200'
087-udp-socket.t TEST 7: recv timeout - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-connected: 1
-failed to receive: timeout
'
087-udp-socket.t TEST 7: recv timeout - pattern "lua udp socket read timed out" should match a line in error.log (req 1)
087-udp-socket.t TEST 16: bad request tries to close - status code ok got: ''
expected: '200'
087-udp-socket.t TEST 16: bad request tries to close - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'peer set
'
087-udp-socket.t TEST 16: bad request tries to close - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:19:46 [alert] 23576\#0: worker process 23616 exited on signal 11" (req 0) 2020/10/27 05:19:46 [debug] 23576\#0: shmtx forced unlock
2020/10/27 05:19:46 [debug] 23576\#0: wake up, sigio 0
2020/10/27 05:19:46 [debug] 23576\#0: reap children
2020/10/27 05:19:46 [debug] 23576\#0: child: 0 23616 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:19:46 [debug] 23576\#0: channel 3:4
2020/10/27 05:19:46 [notice] 23576\#0: start worker process 23638
2020/10/27 05:19:46 [debug] 23576\#0: sigsuspend
2020/10/27 05:19:46 [debug] 23638\#0: malloc: 09A6E950:12
2020/10/27 05:19:46 [debug] 23638\#0: malloc: 09A73120:8
'
087-udp-socket.t TEST 16: bad request tries to close - status code ok got: ''
expected: '200'
087-udp-socket.t TEST 16: bad request tries to close - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'peer set
'
087-udp-socket.t TEST 16: bad request tries to close - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:19:46 [alert] 23576\#0: worker process 23616 exited on signal 11" (req 1) 2020/10/27 05:19:46 [debug] 23576\#0: shmtx forced unlock
2020/10/27 05:19:46 [debug] 23576\#0: wake up, sigio 0
2020/10/27 05:19:46 [debug] 23576\#0: reap children
2020/10/27 05:19:46 [debug] 23576\#0: child: 0 23616 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:19:46 [debug] 23576\#0: channel 3:4
2020/10/27 05:19:46 [notice] 23576\#0: start worker process 23638
2020/10/27 05:19:46 [debug] 23576\#0: sigsuspend
2020/10/27 05:19:46 [debug] 23638\#0: malloc: 09A6E950:12
2020/10/27 05:19:46 [debug] 23638\#0: malloc: 09A73120:8
'
087-udp-socket.t TEST 16: bad request tries to close - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:19:46 [alert] 23576\#0: worker process 23638 exited on signal 11" (req 1) 2020/10/27 05:19:46 [debug] 23576\#0: shmtx forced unlock
2020/10/27 05:19:46 [debug] 23576\#0: wake up, sigio 0
2020/10/27 05:19:46 [debug] 23576\#0: reap children
2020/10/27 05:19:46 [debug] 23576\#0: child: 0 23638 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:19:46 [debug] 23576\#0: channel 3:4
2020/10/27 05:19:46 [notice] 23576\#0: start worker process 23639
2020/10/27 05:19:46 [debug] 23576\#0: sigsuspend
2020/10/27 05:19:46 [debug] 23639\#0: malloc: 09A6E950:12
2020/10/27 05:19:46 [debug] 23639\#0: malloc: 09A73120:8
'
087-udp-socket.t TEST 10: access the google DNS server (using IP addr) - status code ok got: ''
expected: '200'
087-udp-socket.t TEST 10: access the google DNS server (using IP addr) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'received a good response.
'
087-udp-socket.t TEST 10: access the google DNS server (using IP addr) - status code ok got: ''
expected: '200'
087-udp-socket.t TEST 10: access the google DNS server (using IP addr) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'received a good response.
'
087-udp-socket.t TEST 8: with an explicit receive buffer size argument - status code ok got: ''
expected: '200'
087-udp-socket.t TEST 8: with an explicit receive buffer size argument - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-connected
-received 12 bytes: OK
'
087-udp-socket.t TEST 8: with an explicit receive buffer size argument - status code ok got: ''
expected: '200'
087-udp-socket.t TEST 8: with an explicit receive buffer size argument - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-connected
-received 12 bytes: OK
'
087-udp-socket.t TEST 14: bad request tries to send - status code ok got: ''
expected: '200'
087-udp-socket.t TEST 14: bad request tries to send - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'peer set
'
087-udp-socket.t TEST 14: bad request tries to send - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:19:51 [alert] 23576\#0: worker process 23707 exited on signal 11" (req 0) 2020/10/27 05:19:51 [debug] 23576\#0: shmtx forced unlock
2020/10/27 05:19:51 [debug] 23576\#0: wake up, sigio 0
2020/10/27 05:19:51 [debug] 23576\#0: reap children
2020/10/27 05:19:51 [debug] 23576\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:19:51 [debug] 23576\#0: child: 1 23707 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:19:51 [debug] 23576\#0: channel 3:4
2020/10/27 05:19:51 [notice] 23576\#0: start worker process 23729
2020/10/27 05:19:51 [debug] 23576\#0: sigsuspend
2020/10/27 05:19:51 [debug] 23729\#0: malloc: 09A69FB0:12
'
087-udp-socket.t TEST 14: bad request tries to send - status code ok got: ''
expected: '200'
087-udp-socket.t TEST 14: bad request tries to send - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'peer set
'
087-udp-socket.t TEST 14: bad request tries to send - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:19:51 [alert] 23576\#0: worker process 23707 exited on signal 11" (req 1) 2020/10/27 05:19:51 [debug] 23576\#0: shmtx forced unlock
2020/10/27 05:19:51 [debug] 23576\#0: wake up, sigio 0
2020/10/27 05:19:51 [debug] 23576\#0: reap children
2020/10/27 05:19:51 [debug] 23576\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:19:51 [debug] 23576\#0: child: 1 23707 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:19:51 [debug] 23576\#0: channel 3:4
2020/10/27 05:19:51 [notice] 23576\#0: start worker process 23729
2020/10/27 05:19:51 [debug] 23576\#0: sigsuspend
2020/10/27 05:19:51 [debug] 23729\#0: malloc: 09A69FB0:12
'
087-udp-socket.t TEST 14: bad request tries to send - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:19:51 [alert] 23576\#0: worker process 23729 exited on signal 11" (req 1) 2020/10/27 05:19:51 [debug] 23576\#0: shmtx forced unlock
2020/10/27 05:19:51 [debug] 23576\#0: wake up, sigio 0
2020/10/27 05:19:51 [debug] 23576\#0: reap children
2020/10/27 05:19:51 [debug] 23576\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:19:51 [debug] 23576\#0: child: 1 23729 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:19:51 [debug] 23576\#0: channel 3:4
2020/10/27 05:19:51 [notice] 23576\#0: start worker process 23730
2020/10/27 05:19:51 [debug] 23576\#0: sigsuspend
2020/10/27 05:19:51 [debug] 23730\#0: malloc: 09A69FB0:12
'
087-udp-socket.t TEST 15: bad request tries to receive - status code ok got: ''
expected: '200'
087-udp-socket.t TEST 15: bad request tries to receive - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'peer set
'
087-udp-socket.t TEST 15: bad request tries to receive - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:19:53 [alert] 23576\#0: worker process 23738 exited on signal 11" (req 0) 2020/10/27 05:19:53 [debug] 23576\#0: shmtx forced unlock
2020/10/27 05:19:53 [debug] 23576\#0: wake up, sigio 0
2020/10/27 05:19:53 [debug] 23576\#0: reap children
2020/10/27 05:19:53 [debug] 23576\#0: child: 0 23738 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:19:53 [debug] 23576\#0: channel 3:4
2020/10/27 05:19:53 [notice] 23576\#0: start worker process 23760
2020/10/27 05:19:53 [debug] 23576\#0: sigsuspend
2020/10/27 05:19:53 [debug] 23760\#0: malloc: 09A6E950:12
2020/10/27 05:19:53 [debug] 23760\#0: malloc: 09A73120:8
'
087-udp-socket.t TEST 15: bad request tries to receive - status code ok got: ''
expected: '200'
087-udp-socket.t TEST 15: bad request tries to receive - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'peer set
'
087-udp-socket.t TEST 15: bad request tries to receive - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:19:53 [alert] 23576\#0: worker process 23738 exited on signal 11" (req 1) 2020/10/27 05:19:53 [debug] 23576\#0: shmtx forced unlock
2020/10/27 05:19:53 [debug] 23576\#0: wake up, sigio 0
2020/10/27 05:19:53 [debug] 23576\#0: reap children
2020/10/27 05:19:53 [debug] 23576\#0: child: 0 23738 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:19:53 [debug] 23576\#0: channel 3:4
2020/10/27 05:19:53 [notice] 23576\#0: start worker process 23760
2020/10/27 05:19:53 [debug] 23576\#0: sigsuspend
2020/10/27 05:19:53 [debug] 23760\#0: malloc: 09A6E950:12
2020/10/27 05:19:53 [debug] 23760\#0: malloc: 09A73120:8
'
087-udp-socket.t TEST 15: bad request tries to receive - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:19:53 [alert] 23576\#0: worker process 23760 exited on signal 11" (req 1) 2020/10/27 05:19:53 [debug] 23576\#0: shmtx forced unlock
2020/10/27 05:19:53 [debug] 23576\#0: wake up, sigio 0
2020/10/27 05:19:53 [debug] 23576\#0: reap children
2020/10/27 05:19:53 [debug] 23576\#0: child: 0 23760 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:19:53 [debug] 23576\#0: channel 3:4
2020/10/27 05:19:53 [notice] 23576\#0: start worker process 23761
2020/10/27 05:19:53 [debug] 23576\#0: sigsuspend
2020/10/27 05:19:53 [debug] 23761\#0: malloc: 09A6E950:12
2020/10/27 05:19:53 [debug] 23761\#0: malloc: 09A73120:8
'
087-udp-socket.t TEST 18: send boolean and nil - status code ok got: ''
expected: '200'
087-udp-socket.t TEST 18: send boolean and nil - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-sent ok
-sent ok
-sent ok
'
087-udp-socket.t TEST 18: send boolean and nil - status code ok got: ''
expected: '200'
087-udp-socket.t TEST 18: send boolean and nil - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-sent ok
-sent ok
-sent ok
'
087-udp-socket.t TEST 19: UDP socket GC'ed in preread phase without Lua content phase - status code ok got: ''
expected: '200'
087-udp-socket.t TEST 19: UDP socket GC'ed in preread phase without Lua content phase - response_body - response is expected (repeated req 0, req 0) got: ''
expected: '1'
087-udp-socket.t TEST 19: UDP socket GC'ed in preread phase without Lua content phase - status code ok got: ''
expected: '200'
087-udp-socket.t TEST 19: UDP socket GC'ed in preread phase without Lua content phase - response_body - response is expected (repeated req 1, req 0) got: ''
expected: '1'
087-udp-socket.t TEST 11: access the google DNS server (using domain names) - status code ok got: ''
expected: '200'
087-udp-socket.t TEST 11: access the google DNS server (using domain names) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'received a good response.
'
087-udp-socket.t TEST 11: access the google DNS server (using domain names) - status code ok got: ''
expected: '200'
087-udp-socket.t TEST 11: access the google DNS server (using domain names) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'received a good response.
'
087-udp-socket.t TEST 4: access conflicts of connect() on shared udp objects - status code ok got: ''
expected: '200'
087-udp-socket.t TEST 4: access conflicts of connect() on shared udp objects - status code ok got: ''
expected: '200'
087-udp-socket.t TEST 6: connect again immediately - status code ok got: ''
expected: '200'
087-udp-socket.t TEST 6: connect again immediately - response_body - response is expected (repeated req 0, req 0) @@ -1,6 +0,0 @@
-connected: 1
-connected again: 1
-request sent: 1
-received: OK
-
-close: 1 nil
'
087-udp-socket.t TEST 6: connect again immediately - status code ok got: ''
expected: '200'
087-udp-socket.t TEST 6: connect again immediately - response_body - response is expected (repeated req 1, req 0) @@ -1,6 +0,0 @@
-connected: 1
-connected again: 1
-request sent: 1
-received: OK
-
-close: 1 nil
'
087-udp-socket.t TEST 17: the upper bound of port range should be 2^16 - 1 - status code ok got: ''
expected: '200'
087-udp-socket.t TEST 17: the upper bound of port range should be 2^16 - 1 - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'failed to connect: bad port number: 65536
'
087-udp-socket.t TEST 17: the upper bound of port range should be 2^16 - 1 - status code ok got: ''
expected: '200'
087-udp-socket.t TEST 17: the upper bound of port range should be 2^16 - 1 - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'failed to connect: bad port number: 65536
'
087-udp-socket.t TEST 13: bad request tries to setpeer - status code ok got: ''
expected: '200'
087-udp-socket.t TEST 13: bad request tries to setpeer - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'peer set
'
087-udp-socket.t TEST 13: bad request tries to setpeer - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:20:06 [alert] 23576\#0: worker process 23950 exited on signal 11" (req 0) 2020/10/27 05:20:06 [debug] 23576\#0: shmtx forced unlock
2020/10/27 05:20:06 [debug] 23576\#0: wake up, sigio 0
2020/10/27 05:20:06 [debug] 23576\#0: reap children
2020/10/27 05:20:06 [debug] 23576\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:20:06 [debug] 23576\#0: child: 1 23950 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:20:06 [debug] 23576\#0: channel 3:4
2020/10/27 05:20:06 [notice] 23576\#0: start worker process 23972
2020/10/27 05:20:06 [debug] 23576\#0: sigsuspend
2020/10/27 05:20:06 [debug] 23972\#0: malloc: 09A69FB0:12
'
087-udp-socket.t TEST 13: bad request tries to setpeer - status code ok got: ''
expected: '200'
087-udp-socket.t TEST 13: bad request tries to setpeer - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'peer set
'
087-udp-socket.t TEST 13: bad request tries to setpeer - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:20:06 [alert] 23576\#0: worker process 23950 exited on signal 11" (req 1) 2020/10/27 05:20:06 [debug] 23576\#0: shmtx forced unlock
2020/10/27 05:20:06 [debug] 23576\#0: wake up, sigio 0
2020/10/27 05:20:06 [debug] 23576\#0: reap children
2020/10/27 05:20:06 [debug] 23576\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:20:06 [debug] 23576\#0: child: 1 23950 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:20:06 [debug] 23576\#0: channel 3:4
2020/10/27 05:20:06 [notice] 23576\#0: start worker process 23972
2020/10/27 05:20:06 [debug] 23576\#0: sigsuspend
2020/10/27 05:20:06 [debug] 23972\#0: malloc: 09A69FB0:12
'
087-udp-socket.t TEST 13: bad request tries to setpeer - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:20:06 [alert] 23576\#0: worker process 23972 exited on signal 11" (req 1) 2020/10/27 05:20:06 [debug] 23576\#0: shmtx forced unlock
2020/10/27 05:20:06 [debug] 23576\#0: wake up, sigio 0
2020/10/27 05:20:06 [debug] 23576\#0: reap children
2020/10/27 05:20:06 [debug] 23576\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:20:06 [debug] 23576\#0: child: 1 23972 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:20:06 [debug] 23576\#0: channel 3:4
2020/10/27 05:20:06 [notice] 23576\#0: start worker process 23973
2020/10/27 05:20:06 [debug] 23576\#0: sigsuspend
2020/10/27 05:20:06 [debug] 23973\#0: malloc: 09A69FB0:12
'
087-udp-socket.t TEST 2: multiple parallel queries - status code ok got: ''
expected: '200'
087-udp-socket.t TEST 2: multiple parallel queries - response_body_like - response is expected () ''
doesn't match '(?^s:^connected
1: received 12 bytes: []OK
2: received 12 bytes: []OK
$)'
087-udp-socket.t TEST 2: multiple parallel queries - status code ok got: ''
expected: '200'
087-udp-socket.t TEST 2: multiple parallel queries - response_body_like - response is expected () ''
doesn't match '(?^s:^connected
1: received 12 bytes: []OK
2: received 12 bytes: []OK
$)'
087-udp-socket.t TEST 12: datagram unix domain socket - status code ok got: ''
expected: '200'
087-udp-socket.t TEST 12: datagram unix domain socket - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-connected
-received 14 bytes: hello,
-client
'
087-udp-socket.t TEST 12: datagram unix domain socket - status code ok got: ''
expected: '200'
087-udp-socket.t TEST 12: datagram unix domain socket - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-connected
-received 14 bytes: hello,
-client
'
087-udp-socket.t TEST 9: read timeout and re-receive - status code ok got: ''
expected: '200'
087-udp-socket.t TEST 9: read timeout and re-receive - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'received: hello world
'
087-udp-socket.t TEST 9: read timeout and re-receive - status code ok got: ''
expected: '200'
087-udp-socket.t TEST 9: read timeout and re-receive - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'received: hello world
'
087-udp-socket.t TEST 5: access conflicts of receive() on shared udp objects - status code ok got: ''
expected: '200'
087-udp-socket.t TEST 5: access conflicts of receive() on shared udp objects - status code ok got: ''
expected: '200'
087-udp-socket.t TEST 3: access a TCP interface - status code ok got: ''
expected: '200'
087-udp-socket.t TEST 3: access a TCP interface - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-connected
-failed to receive data: connection refused
'
087-udp-socket.t TEST 3: access a TCP interface - status code ok got: ''
expected: '200'
087-udp-socket.t TEST 3: access a TCP interface - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-connected
-failed to receive data: connection refused
'
089-phase.t TEST 3: get_phase in content_by_lua - status code ok got: ''
expected: '200'
089-phase.t TEST 3: get_phase in content_by_lua - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "content\x{0a}"
length: 8
strings begin to differ at char 1 (line 1 column 1)
089-phase.t TEST 3: get_phase in content_by_lua - status code ok got: ''
expected: '200'
089-phase.t TEST 3: get_phase in content_by_lua - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "content\x{0a}"
length: 8
strings begin to differ at char 1 (line 1 column 1)
089-phase.t TEST 5: get_phase in ngx.timer callback - status code ok got: ''
expected: '200'
089-phase.t TEST 5: get_phase in ngx.timer callback - status code ok got: ''
expected: '200'
089-phase.t TEST 1: get_phase in init_by_lua - status code ok got: ''
expected: '200'
089-phase.t TEST 1: get_phase in init_by_lua - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "init\x{0a}"
length: 5
strings begin to differ at char 1 (line 1 column 1)
089-phase.t TEST 1: get_phase in init_by_lua - status code ok got: ''
expected: '200'
089-phase.t TEST 1: get_phase in init_by_lua - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "init\x{0a}"
length: 5
strings begin to differ at char 1 (line 1 column 1)
089-phase.t TEST 6: get_phase in init_worker_by_lua - status code ok got: ''
expected: '200'
089-phase.t TEST 6: get_phase in init_worker_by_lua - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "init_worker\x{0a}"
length: 12
strings begin to differ at char 1 (line 1 column 1)
089-phase.t TEST 6: get_phase in init_worker_by_lua - status code ok got: ''
expected: '200'
089-phase.t TEST 6: get_phase in init_worker_by_lua - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "init_worker\x{0a}"
length: 12
strings begin to differ at char 1 (line 1 column 1)
091-coroutine.t TEST 1: basic coroutine print - status code ok got: ''
expected: '200'
091-coroutine.t TEST 1: basic coroutine print - response_body - response is expected (repeated req 0, req 0) @@ -1,6 +0,0 @@
-Hello, 0
-***
-Hello, 1
-***
-Hello, 2
-***
'
091-coroutine.t TEST 1: basic coroutine print - status code ok got: ''
expected: '200'
091-coroutine.t TEST 1: basic coroutine print - response_body - response is expected (repeated req 1, req 0) @@ -1,6 +0,0 @@
-Hello, 0
-***
-Hello, 1
-***
-Hello, 2
-***
'
091-coroutine.t TEST 2: basic coroutine2 - status code ok got: ''
expected: '200'
091-coroutine.t TEST 2: basic coroutine2 - response_body - response is expected (repeated req 0, req 0) @@ -1,9 +0,0 @@
-cc1: 0
-cc2: 0
-cc3: 0
-cc1: 1
-cc2: 1
-cc3: 1
-cc1: 2
-cc2: 2
-cc3: 2
'
091-coroutine.t TEST 2: basic coroutine2 - status code ok got: ''
expected: '200'
091-coroutine.t TEST 2: basic coroutine2 - response_body - response is expected (repeated req 1, req 0) @@ -1,9 +0,0 @@
-cc1: 0
-cc2: 0
-cc3: 0
-cc1: 1
-cc2: 1
-cc3: 1
-cc1: 2
-cc2: 2
-cc3: 2
'
091-coroutine.t TEST 3: basic coroutine and cosocket - status code ok got: ''
expected: '200'
091-coroutine.t TEST 3: basic coroutine and cosocket - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-successfully connected to: agentzh.org
-successfully connected to: openresty.com
-successfully connected to: openresty.org
-*** All Done ***
'
091-coroutine.t TEST 3: basic coroutine and cosocket - status code ok got: ''
expected: '200'
091-coroutine.t TEST 3: basic coroutine and cosocket - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +0,0 @@
-successfully connected to: agentzh.org
-successfully connected to: openresty.com
-successfully connected to: openresty.org
-*** All Done ***
'
091-coroutine.t TEST 4: coroutine.wrap(generate prime numbers) - status code ok got: ''
expected: '200'
091-coroutine.t TEST 4: coroutine.wrap(generate prime numbers) - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-2
-3
-5
-7
'
091-coroutine.t TEST 4: coroutine.wrap(generate prime numbers) - status code ok got: ''
expected: '200'
091-coroutine.t TEST 4: coroutine.wrap(generate prime numbers) - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +0,0 @@
-2
-3
-5
-7
'
091-coroutine.t TEST 5: coroutine.wrap(generate prime numbers,reset create and resume) - status code ok got: ''
expected: '200'
091-coroutine.t TEST 5: coroutine.wrap(generate prime numbers,reset create and resume) - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-2
-3
-5
-7
'
091-coroutine.t TEST 5: coroutine.wrap(generate prime numbers,reset create and resume) - status code ok got: ''
expected: '200'
091-coroutine.t TEST 5: coroutine.wrap(generate prime numbers,reset create and resume) - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +0,0 @@
-2
-3
-5
-7
'
091-coroutine.t TEST 6: coroutine.wrap(generate fib) - status code ok got: ''
expected: '200'
091-coroutine.t TEST 6: coroutine.wrap(generate fib) - response_body - response is expected (repeated req 0, req 0) @@ -1,16 +0,0 @@
-1
-1
-2
-3
-5
-8
-13
-21
-34
-55
-89
-144
-233
-377
-610
-987
'
091-coroutine.t TEST 6: coroutine.wrap(generate fib) - status code ok got: ''
expected: '200'
091-coroutine.t TEST 6: coroutine.wrap(generate fib) - response_body - response is expected (repeated req 1, req 0) @@ -1,16 +0,0 @@
-1
-1
-2
-3
-5
-8
-13
-21
-34
-55
-89
-144
-233
-377
-610
-987
'
091-coroutine.t TEST 7: coroutine wrap and cosocket - status code ok got: ''
expected: '200'
091-coroutine.t TEST 7: coroutine wrap and cosocket - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-successfully connected to: agentzh.org
-successfully connected to: openresty.com
-successfully connected to: openresty.org
-*** All Done ***
'
091-coroutine.t TEST 7: coroutine wrap and cosocket - status code ok got: ''
expected: '200'
091-coroutine.t TEST 7: coroutine wrap and cosocket - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +0,0 @@
-successfully connected to: agentzh.org
-successfully connected to: openresty.com
-successfully connected to: openresty.org
-*** All Done ***
'
091-coroutine.t TEST 8: coroutine status, running - status code ok got: ''
expected: '200'
091-coroutine.t TEST 8: coroutine status, running - response_body - response is expected (repeated req 0, req 0) @@ -1,5 +0,0 @@
-suspended: suspended
-running: running
-suspended: suspended
-normal: normal
-dead: dead
'
091-coroutine.t TEST 8: coroutine status, running - status code ok got: ''
expected: '200'
091-coroutine.t TEST 8: coroutine status, running - response_body - response is expected (repeated req 1, req 0) @@ -1,5 +0,0 @@
-suspended: suspended
-running: running
-suspended: suspended
-normal: normal
-dead: dead
'
091-coroutine.t TEST 9: entry coroutine yielded will be resumed immediately - status code ok got: ''
expected: '200'
091-coroutine.t TEST 9: entry coroutine yielded will be resumed immediately - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-[]
-[]
-done
'
091-coroutine.t TEST 9: entry coroutine yielded will be resumed immediately - status code ok got: ''
expected: '200'
091-coroutine.t TEST 9: entry coroutine yielded will be resumed immediately - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-[]
-[]
-done
'
091-coroutine.t TEST 10: thread traceback (multi-thread) - status code ok got: ''
expected: '200'
091-coroutine.t TEST 10: thread traceback (multi-thread) - status code ok got: ''
expected: '200'
091-coroutine.t TEST 11: thread traceback (only the entry thread) - status code ok got: ''
expected: '200'
091-coroutine.t TEST 11: thread traceback (only the entry thread) - status code ok got: ''
expected: '200'
091-coroutine.t TEST 12: bug: resume dead coroutine with args - status code ok got: ''
expected: '200'
091-coroutine.t TEST 12: bug: resume dead coroutine with args - response_body - response is expected (repeated req 0, req 0) @@ -1,8 +0,0 @@
-co-body 1 10
-foo 2
-main true 4
-co-body r
-main true 11 -9
-co-body x y
-main true 10 end
-main false cannot resume dead coroutine
'
091-coroutine.t TEST 12: bug: resume dead coroutine with args - status code ok got: ''
expected: '200'
091-coroutine.t TEST 12: bug: resume dead coroutine with args - response_body - response is expected (repeated req 1, req 0) @@ -1,8 +0,0 @@
-co-body 1 10
-foo 2
-main true 4
-co-body r
-main true 11 -9
-co-body x y
-main true 10 end
-main false cannot resume dead coroutine
'
091-coroutine.t TEST 13: deeply nested coroutines - status code ok got: ''
expected: '200'
091-coroutine.t TEST 13: deeply nested coroutines - response_body - response is expected (repeated req 0, req 0) @@ -1,12 +0,0 @@
-1: resuming c1
-f begin
-2: resuming c1
-1: resuming c2
-g begin
-2: resuming c2
-g going
-3: resuming c1
-3: resuming c2
-g done
-f done
-main done
'
091-coroutine.t TEST 13: deeply nested coroutines - status code ok got: ''
expected: '200'
091-coroutine.t TEST 13: deeply nested coroutines - response_body - response is expected (repeated req 1, req 0) @@ -1,12 +0,0 @@
-1: resuming c1
-f begin
-2: resuming c1
-1: resuming c2
-g begin
-2: resuming c2
-g going
-3: resuming c1
-3: resuming c2
-g done
-f done
-main done
'
091-coroutine.t TEST 14: using ngx.exit in user coroutines - status code ok got: ''
expected: '200'
091-coroutine.t TEST 14: using ngx.exit in user coroutines - status code ok got: ''
expected: '200'
091-coroutine.t TEST 15: resume coroutines from within another one that is not its parent - status code ok got: ''
expected: '200'
091-coroutine.t TEST 15: resume coroutines from within another one that is not its parent - response_body - response is expected (repeated req 0, req 0) @@ -1,5 +0,0 @@
-f 1
-g 1
-g 2
-true
-f 2
'
091-coroutine.t TEST 15: resume coroutines from within another one that is not its parent - status code ok got: ''
expected: '200'
091-coroutine.t TEST 15: resume coroutines from within another one that is not its parent - response_body - response is expected (repeated req 1, req 0) @@ -1,5 +0,0 @@
-f 1
-g 1
-g 2
-true
-f 2
'
091-coroutine.t TEST 16: infinite recursive calls of coroutine.resume - status code ok got: ''
expected: '200'
091-coroutine.t TEST 16: infinite recursive calls of coroutine.resume - response_body - response is expected (repeated req 0, req 0) @@ -1,6 +0,0 @@
-f 1
-g 1
-falsecannot resume normal coroutine
-g 2
-true
-f 2
'
091-coroutine.t TEST 16: infinite recursive calls of coroutine.resume - status code ok got: ''
expected: '200'
091-coroutine.t TEST 16: infinite recursive calls of coroutine.resume - response_body - response is expected (repeated req 1, req 0) @@ -1,6 +0,0 @@
-f 1
-g 1
-falsecannot resume normal coroutine
-g 2
-true
-f 2
'
091-coroutine.t TEST 17: resume running (entry) coroutines - status code ok got: ''
expected: '200'
091-coroutine.t TEST 17: resume running (entry) coroutines - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-running
-falsecannot resume running coroutine
'
091-coroutine.t TEST 17: resume running (entry) coroutines - status code ok got: ''
expected: '200'
091-coroutine.t TEST 17: resume running (entry) coroutines - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-running
-falsecannot resume running coroutine
'
091-coroutine.t TEST 18: resume running (user) coroutines - status code ok got: ''
expected: '200'
091-coroutine.t TEST 18: resume running (user) coroutines - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-chunk: suspended
-f: running
-f: falsecannot resume running coroutine
-chunk: true
'
091-coroutine.t TEST 18: resume running (user) coroutines - status code ok got: ''
expected: '200'
091-coroutine.t TEST 18: resume running (user) coroutines - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +0,0 @@
-chunk: suspended
-f: running
-f: falsecannot resume running coroutine
-chunk: true
'
091-coroutine.t TEST 19: user coroutine end with errors, and the parent coroutine gets the right status - status code ok got: ''
expected: '200'
091-coroutine.t TEST 19: user coroutine end with errors, and the parent coroutine gets the right status - response_body - like (repeated req 0, req 0) ''
doesn't match '(?^s:^child: resume: falsecontent_by_lua\(nginx\.conf:\d+\):4: bad
child: status: dead
parent: status: running
$)'
091-coroutine.t TEST 19: user coroutine end with errors, and the parent coroutine gets the right status - status code ok got: ''
expected: '200'
091-coroutine.t TEST 19: user coroutine end with errors, and the parent coroutine gets the right status - response_body - like (repeated req 1, req 0) ''
doesn't match '(?^s:^child: resume: falsecontent_by_lua\(nginx\.conf:\d+\):4: bad
child: status: dead
parent: status: running
$)'
091-coroutine.t TEST 20: entry coroutine is yielded by hand and still gets the right status - status code ok got: ''
expected: '200'
091-coroutine.t TEST 20: entry coroutine is yielded by hand and still gets the right status - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-status: running
-status: running
'
091-coroutine.t TEST 20: entry coroutine is yielded by hand and still gets the right status - status code ok got: ''
expected: '200'
091-coroutine.t TEST 20: entry coroutine is yielded by hand and still gets the right status - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-status: running
-status: running
'
091-coroutine.t TEST 21: github issue \#208: coroutine as iterator doesn't work - status code ok got: ''
expected: '200'
091-coroutine.t TEST 21: github issue \#208: coroutine as iterator doesn't work - response_body - response is expected (repeated req 0, req 0) @@ -1,10 +0,0 @@
-test1
-test2
-test3
-test4
-test5
-test6
-test7
-test8
-test9
-test10
'
091-coroutine.t TEST 21: github issue \#208: coroutine as iterator doesn't work - status code ok got: ''
expected: '200'
091-coroutine.t TEST 21: github issue \#208: coroutine as iterator doesn't work - response_body - response is expected (repeated req 1, req 0) @@ -1,10 +0,0 @@
-test1
-test2
-test3
-test4
-test5
-test6
-test7
-test8
-test9
-test10
'
091-coroutine.t TEST 22: init_by_lua + our own coroutines in content_by_lua - status code ok got: ''
expected: '200'
091-coroutine.t TEST 22: init_by_lua + our own coroutines in content_by_lua - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-successfully connected to: agentzh.org
-*** All Done ***
'
091-coroutine.t TEST 22: init_by_lua + our own coroutines in content_by_lua - status code ok got: ''
expected: '200'
091-coroutine.t TEST 22: init_by_lua + our own coroutines in content_by_lua - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-successfully connected to: agentzh.org
-*** All Done ***
'
091-coroutine.t TEST 23: init_by_lua_file + our own coroutines in content_by_lua - status code ok got: ''
expected: '200'
091-coroutine.t TEST 23: init_by_lua_file + our own coroutines in content_by_lua - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-successfully connected to: agentzh.org
-*** All Done ***
'
091-coroutine.t TEST 23: init_by_lua_file + our own coroutines in content_by_lua - status code ok got: ''
expected: '200'
091-coroutine.t TEST 23: init_by_lua_file + our own coroutines in content_by_lua - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-successfully connected to: agentzh.org
-*** All Done ***
'
091-coroutine.t TEST 24: mixing coroutine.* API between init_by_lua and other contexts (github \#304) - init_by_lua - status code ok got: ''
expected: '200'
091-coroutine.t TEST 24: mixing coroutine.* API between init_by_lua and other contexts (github \#304) - init_by_lua - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'data
'
091-coroutine.t TEST 24: mixing coroutine.* API between init_by_lua and other contexts (github \#304) - init_by_lua - status code ok got: ''
expected: '200'
091-coroutine.t TEST 24: mixing coroutine.* API between init_by_lua and other contexts (github \#304) - init_by_lua - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'data
'
091-coroutine.t TEST 25: mixing coroutine.* API between init_by_lua and other contexts (github \#304) - init_by_lua_file - status code ok got: ''
expected: '200'
091-coroutine.t TEST 25: mixing coroutine.* API between init_by_lua and other contexts (github \#304) - init_by_lua_file - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'data
'
091-coroutine.t TEST 25: mixing coroutine.* API between init_by_lua and other contexts (github \#304) - init_by_lua_file - status code ok got: ''
expected: '200'
091-coroutine.t TEST 25: mixing coroutine.* API between init_by_lua and other contexts (github \#304) - init_by_lua_file - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'data
'
091-coroutine.t TEST 26: coroutine context collicisions - status code ok got: ''
expected: '200'
091-coroutine.t TEST 26: coroutine context collicisions - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'ok
'
091-coroutine.t TEST 26: coroutine context collicisions - status code ok got: ''
expected: '200'
091-coroutine.t TEST 26: coroutine context collicisions - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'ok
'
091-coroutine.t TEST 27: require "coroutine" - status code ok got: ''
expected: '200'
091-coroutine.t TEST 27: require "coroutine" - response_body - response is expected (repeated req 0, req 0) @@ -1,6 +0,0 @@
-Hello, 0
-***
-Hello, 1
-***
-Hello, 2
-***
'
091-coroutine.t TEST 27: require "coroutine" - status code ok got: ''
expected: '200'
091-coroutine.t TEST 27: require "coroutine" - response_body - response is expected (repeated req 1, req 0) @@ -1,6 +0,0 @@
-Hello, 0
-***
-Hello, 1
-***
-Hello, 2
-***
'
091-coroutine.t TEST 28: coroutine.wrap propagates errors to parent coroutine - status code ok got: ''
expected: '200'
091-coroutine.t TEST 28: coroutine.wrap propagates errors to parent coroutine - status code ok got: ''
expected: '200'
091-coroutine.t TEST 29: coroutine.wrap propagates nested errors to parent coroutine - status code ok got: ''
expected: '200'
091-coroutine.t TEST 29: coroutine.wrap propagates nested errors to parent coroutine - status code ok got: ''
expected: '200'
091-coroutine.t TEST 30: coroutine.wrap propagates nested errors with stack level to parent coroutine - status code ok got: ''
expected: '200'
091-coroutine.t TEST 30: coroutine.wrap propagates nested errors with stack level to parent coroutine - status code ok got: ''
expected: '200'
091-coroutine.t TEST 31: coroutine.wrap runtime errors do not log errors - status code ok got: ''
expected: '200'
091-coroutine.t TEST 31: coroutine.wrap runtime errors do not log errors - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:21:21 [alert] 24335\#0: worker process 25217 exited on signal 11" (req 0) 2020/10/27 05:21:21 [debug] 24335\#0: shmtx forced unlock
2020/10/27 05:21:21 [debug] 24335\#0: wake up, sigio 0
2020/10/27 05:21:21 [debug] 24335\#0: reap children
2020/10/27 05:21:21 [debug] 24335\#0: child: 0 25217 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:21:21 [debug] 24335\#0: channel 3:4
2020/10/27 05:21:21 [notice] 24335\#0: start worker process 25239
2020/10/27 05:21:21 [debug] 24335\#0: sigsuspend
2020/10/27 05:21:21 [debug] 25239\#0: malloc: 0A167790:12
2020/10/27 05:21:21 [debug] 25239\#0: malloc: 0A16BF60:8
'
091-coroutine.t TEST 31: coroutine.wrap runtime errors do not log errors - status code ok got: ''
expected: '200'
091-coroutine.t TEST 31: coroutine.wrap runtime errors do not log errors - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:21:21 [alert] 24335\#0: worker process 25239 exited on signal 11" (req 1) 2020/10/27 05:21:21 [debug] 24335\#0: shmtx forced unlock
2020/10/27 05:21:21 [debug] 24335\#0: wake up, sigio 0
2020/10/27 05:21:21 [debug] 24335\#0: reap children
2020/10/27 05:21:21 [debug] 24335\#0: child: 0 25239 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:21:21 [debug] 24335\#0: channel 3:4
2020/10/27 05:21:21 [notice] 24335\#0: start worker process 25240
2020/10/27 05:21:21 [debug] 24335\#0: sigsuspend
2020/10/27 05:21:21 [debug] 25240\#0: malloc: 0A167790:12
2020/10/27 05:21:21 [debug] 25240\#0: malloc: 0A16BF60:8
'
091-coroutine.t TEST 32: coroutine.wrap does not return status boolean on yield - status code ok got: ''
expected: '200'
091-coroutine.t TEST 32: coroutine.wrap does not return status boolean on yield - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'ok, err
'
091-coroutine.t TEST 32: coroutine.wrap does not return status boolean on yield - status code ok got: ''
expected: '200'
091-coroutine.t TEST 32: coroutine.wrap does not return status boolean on yield - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'ok, err
'
091-coroutine.t TEST 33: coroutine.wrap does not return status boolean on done - status code ok got: ''
expected: '200'
091-coroutine.t TEST 33: coroutine.wrap does not return status boolean on done - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'nil
'
091-coroutine.t TEST 33: coroutine.wrap does not return status boolean on done - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:21:25 [alert] 24335\#0: worker process 25277 exited on signal 11" (req 0) 2020/10/27 05:21:25 [debug] 24335\#0: shmtx forced unlock
2020/10/27 05:21:25 [debug] 24335\#0: wake up, sigio 0
2020/10/27 05:21:25 [debug] 24335\#0: reap children
2020/10/27 05:21:25 [debug] 24335\#0: child: 0 25277 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:21:25 [debug] 24335\#0: channel 3:4
2020/10/27 05:21:25 [notice] 24335\#0: start worker process 25299
2020/10/27 05:21:25 [debug] 24335\#0: sigsuspend
2020/10/27 05:21:25 [debug] 25299\#0: malloc: 0A167790:12
2020/10/27 05:21:25 [debug] 25299\#0: malloc: 0A16BF60:8
'
091-coroutine.t TEST 33: coroutine.wrap does not return status boolean on done - status code ok got: ''
expected: '200'
091-coroutine.t TEST 33: coroutine.wrap does not return status boolean on done - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'nil
'
091-coroutine.t TEST 33: coroutine.wrap does not return status boolean on done - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:21:25 [alert] 24335\#0: worker process 25299 exited on signal 11" (req 1) 2020/10/27 05:21:25 [debug] 24335\#0: shmtx forced unlock
2020/10/27 05:21:25 [debug] 24335\#0: wake up, sigio 0
2020/10/27 05:21:25 [debug] 24335\#0: reap children
2020/10/27 05:21:25 [debug] 24335\#0: child: 0 25299 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:21:25 [debug] 24335\#0: channel 3:4
2020/10/27 05:21:25 [notice] 24335\#0: start worker process 25300
2020/10/27 05:21:25 [debug] 24335\#0: sigsuspend
2020/10/27 05:21:25 [debug] 25300\#0: malloc: 0A167790:12
2020/10/27 05:21:25 [debug] 25300\#0: malloc: 0A16BF60:8
'
091-coroutine.t TEST 35: coroutine.wrap creates different function refs - status code ok got: ''
expected: '200'
091-coroutine.t TEST 35: coroutine.wrap creates different function refs - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'co == co2: false
'
091-coroutine.t TEST 35: coroutine.wrap creates different function refs - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:21:26 [alert] 24335\#0: worker process 25307 exited on signal 11" (req 0) 2020/10/27 05:21:26 [debug] 24335\#0: shmtx forced unlock
2020/10/27 05:21:26 [debug] 24335\#0: wake up, sigio 0
2020/10/27 05:21:26 [debug] 24335\#0: reap children
2020/10/27 05:21:26 [debug] 24335\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:21:26 [debug] 24335\#0: child: 1 25307 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:21:26 [debug] 24335\#0: channel 3:4
2020/10/27 05:21:26 [notice] 24335\#0: start worker process 25329
2020/10/27 05:21:26 [debug] 24335\#0: sigsuspend
2020/10/27 05:21:26 [debug] 25329\#0: malloc: 0A162FB0:12
'
091-coroutine.t TEST 35: coroutine.wrap creates different function refs - status code ok got: ''
expected: '200'
091-coroutine.t TEST 35: coroutine.wrap creates different function refs - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'co == co2: false
'
091-coroutine.t TEST 35: coroutine.wrap creates different function refs - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:21:27 [alert] 24335\#0: worker process 25329 exited on signal 11" (req 1) 2020/10/27 05:21:27 [debug] 24335\#0: shmtx forced unlock
2020/10/27 05:21:27 [debug] 24335\#0: wake up, sigio 0
2020/10/27 05:21:27 [debug] 24335\#0: reap children
2020/10/27 05:21:27 [debug] 24335\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:21:27 [debug] 24335\#0: child: 1 25329 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:21:27 [debug] 24335\#0: channel 3:4
2020/10/27 05:21:27 [notice] 24335\#0: start worker process 25330
2020/10/27 05:21:27 [debug] 24335\#0: sigsuspend
2020/10/27 05:21:27 [debug] 25330\#0: malloc: 0A162FB0:12
'
091-coroutine.t TEST 36: coroutine.wrap supports yielding and resuming - status code ok got: ''
expected: '200'
091-coroutine.t TEST 36: coroutine.wrap supports yielding and resuming - response_body - response is expected (repeated req 0, req 0) @@ -1,6 +0,0 @@
-co resume
-co yield: 0
-co resume
-co yield: 1
-co resume
-co yield: 2
'
091-coroutine.t TEST 36: coroutine.wrap supports yielding and resuming - status code ok got: ''
expected: '200'
091-coroutine.t TEST 36: coroutine.wrap supports yielding and resuming - response_body - response is expected (repeated req 1, req 0) @@ -1,6 +0,0 @@
-co resume
-co yield: 0
-co resume
-co yield: 1
-co resume
-co yield: 2
'
091-coroutine.t TEST 37: coroutine.wrap return values - status code ok got: ''
expected: '200'
091-coroutine.t TEST 37: coroutine.wrap return values - response_body - response is expected (repeated req 0, req 0) @@ -1,6 +0,0 @@
-co resume
-co yield: 0, 1
-co resume
-co yield: 1, 2
-co resume
-co yield: 2, 3
'
091-coroutine.t TEST 37: coroutine.wrap return values - status code ok got: ''
expected: '200'
091-coroutine.t TEST 37: coroutine.wrap return values - response_body - response is expected (repeated req 1, req 0) @@ -1,6 +0,0 @@
-co resume
-co yield: 0, 1
-co resume
-co yield: 1, 2
-co resume
-co yield: 2, 3
'
091-coroutine.t TEST 38: coroutine.wrap arguments - status code ok got: ''
expected: '200'
091-coroutine.t TEST 38: coroutine.wrap arguments - response_body - response is expected (repeated req 0, req 0) @@ -1,6 +0,0 @@
-co resume
-co yield: 0
-co resume
-co yield: 1
-co resume
-co yield: 2
'
091-coroutine.t TEST 38: coroutine.wrap arguments - status code ok got: ''
expected: '200'
091-coroutine.t TEST 38: coroutine.wrap arguments - response_body - response is expected (repeated req 1, req 0) @@ -1,6 +0,0 @@
-co resume
-co yield: 0
-co resume
-co yield: 1
-co resume
-co yield: 2
'
091-coroutine.t TEST 40: coroutine.resume runtime errors do not log errors - status code ok got: ''
expected: '200'
091-coroutine.t TEST 40: coroutine.resume runtime errors do not log errors - response_body_like - response is expected () ''
doesn't match '(?^s:false
content_by_lua\(nginx.conf:\d+\):\d+: something went wrong
)'
091-coroutine.t TEST 40: coroutine.resume runtime errors do not log errors - status code ok got: ''
expected: '200'
091-coroutine.t TEST 40: coroutine.resume runtime errors do not log errors - response_body_like - response is expected () ''
doesn't match '(?^s:false
content_by_lua\(nginx.conf:\d+\):\d+: something went wrong
)'
093-uthread-spawn.t TEST 8: coroutine status of a running user thread - status code ok got: ''
expected: '200'
093-uthread-spawn.t TEST 8: coroutine status of a running user thread - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'status: running
'
093-uthread-spawn.t TEST 8: coroutine status of a running user thread - status code ok got: ''
expected: '200'
093-uthread-spawn.t TEST 8: coroutine status of a running user thread - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'status: running
'
093-uthread-spawn.t TEST 10: coroutine status of a "normal" user thread - status code ok got: ''
expected: '200'
093-uthread-spawn.t TEST 10: coroutine status of a "normal" user thread - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'status: normal
'
093-uthread-spawn.t TEST 10: coroutine status of a "normal" user thread - status code ok got: ''
expected: '200'
093-uthread-spawn.t TEST 10: coroutine status of a "normal" user thread - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'status: normal
'
093-uthread-spawn.t TEST 5: error in user thread - status code ok got: ''
expected: '200'
093-uthread-spawn.t TEST 5: error in user thread - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'after
'
093-uthread-spawn.t TEST 5: error in user thread - status code ok got: ''
expected: '200'
093-uthread-spawn.t TEST 5: error in user thread - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'after
'
093-uthread-spawn.t TEST 15: two user threads flushing at the same time - status code ok got: ''
expected: '200'
093-uthread-spawn.t TEST 15: two user threads flushing at the same time - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-hello from f
-hello from g
'
093-uthread-spawn.t TEST 15: two user threads flushing at the same time - status code ok got: ''
expected: '200'
093-uthread-spawn.t TEST 15: two user threads flushing at the same time - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-hello from f
-hello from g
'
093-uthread-spawn.t TEST 3: simple user thread with sleep - status code ok got: ''
expected: '200'
093-uthread-spawn.t TEST 3: simple user thread with sleep - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-before thread create
-before sleep
-after thread create
-after sleep
'
093-uthread-spawn.t TEST 3: simple user thread with sleep - status code ok got: ''
expected: '200'
093-uthread-spawn.t TEST 3: simple user thread with sleep - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +0,0 @@
-before thread create
-before sleep
-after thread create
-after sleep
'
093-uthread-spawn.t TEST 7: nested user threads (with I/O) - status code ok got: ''
expected: '200'
093-uthread-spawn.t TEST 7: nested user threads (with I/O) - response_body - response is expected (repeated req 0, req 0) @@ -1,5 +0,0 @@
-before f
-before g
-after f
-after g
-hello in g()
'
093-uthread-spawn.t TEST 7: nested user threads (with I/O) - status code ok got: ''
expected: '200'
093-uthread-spawn.t TEST 7: nested user threads (with I/O) - response_body - response is expected (repeated req 1, req 0) @@ -1,5 +0,0 @@
-before f
-before g
-after f
-after g
-hello in g()
'
093-uthread-spawn.t TEST 19: simple user thread with args - status code ok got: ''
expected: '200'
093-uthread-spawn.t TEST 19: simple user thread with args - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-before
-hello foo and 3.14
-after
'
093-uthread-spawn.t TEST 19: simple user thread with args - status code ok got: ''
expected: '200'
093-uthread-spawn.t TEST 19: simple user thread with args - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-before
-hello foo and 3.14
-after
'
093-uthread-spawn.t TEST 18: simple user thread with ngx.req.socket() - status code ok got: ''
expected: '200'
093-uthread-spawn.t TEST 18: simple user thread with ngx.req.socket() - response_body_like - response is expected () ''
doesn't match '(?^s:^(?:before
body: hello world
after|before
after
body: hello world)$)'
093-uthread-spawn.t TEST 18: simple user thread with ngx.req.socket() - status code ok got: ''
expected: '200'
093-uthread-spawn.t TEST 18: simple user thread with ngx.req.socket() - response_body_like - response is expected () ''
doesn't match '(?^s:^(?:before
body: hello world
after|before
after
body: hello world)$)'
093-uthread-spawn.t TEST 1: simple user thread without I/O - status code ok got: ''
expected: '200'
093-uthread-spawn.t TEST 1: simple user thread without I/O - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-before
-hello in thread
-after
'
093-uthread-spawn.t TEST 1: simple user thread without I/O - status code ok got: ''
expected: '200'
093-uthread-spawn.t TEST 1: simple user thread without I/O - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-before
-hello in thread
-after
'
093-uthread-spawn.t TEST 20: simple user thread without I/O - status code ok got: ''
expected: '200'
093-uthread-spawn.t TEST 20: simple user thread without I/O - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'f
'
093-uthread-spawn.t TEST 20: simple user thread without I/O - status code ok got: ''
expected: '200'
093-uthread-spawn.t TEST 20: simple user thread without I/O - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'f
'
093-uthread-spawn.t TEST 14: entry thread and a user thread flushing at the same time - status code ok got: ''
expected: '200'
093-uthread-spawn.t TEST 14: entry thread and a user thread flushing at the same time - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-before
-hello in thread
-after
'
093-uthread-spawn.t TEST 14: entry thread and a user thread flushing at the same time - status code ok got: ''
expected: '200'
093-uthread-spawn.t TEST 14: entry thread and a user thread flushing at the same time - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-before
-hello in thread
-after
'
093-uthread-spawn.t TEST 17: user threads + ngx.socket.udp - status code ok got: ''
expected: '200'
093-uthread-spawn.t TEST 17: user threads + ngx.socket.udp - response_body_like - response is expected () ''
doesn't match '(?^s:^(?:before
after
received: hello udp
|before
received: hello udp
after)$)'
093-uthread-spawn.t TEST 17: user threads + ngx.socket.udp - status code ok got: ''
expected: '200'
093-uthread-spawn.t TEST 17: user threads + ngx.socket.udp - response_body_like - response is expected () ''
doesn't match '(?^s:^(?:before
after
received: hello udp
|before
received: hello udp
after)$)'
093-uthread-spawn.t TEST 12: manual time slicing between a user thread and the entry thread - status code ok got: ''
expected: '200'
093-uthread-spawn.t TEST 12: manual time slicing between a user thread and the entry thread - response_body - response is expected (repeated req 0, req 0) @@ -1,8 +0,0 @@
-0
-1
-f 1
-2
-f 2
-3
-f 3
-4
'
093-uthread-spawn.t TEST 12: manual time slicing between a user thread and the entry thread - status code ok got: ''
expected: '200'
093-uthread-spawn.t TEST 12: manual time slicing between a user thread and the entry thread - response_body - response is expected (repeated req 1, req 0) @@ -1,8 +0,0 @@
-0
-1
-f 1
-2
-f 2
-3
-f 3
-4
'
093-uthread-spawn.t TEST 9: coroutine status of a dead user thread - status code ok got: ''
expected: '200'
093-uthread-spawn.t TEST 9: coroutine status of a dead user thread - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'status: zombie
'
093-uthread-spawn.t TEST 9: coroutine status of a dead user thread - status code ok got: ''
expected: '200'
093-uthread-spawn.t TEST 9: coroutine status of a dead user thread - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'status: zombie
'
093-uthread-spawn.t TEST 11: creating user threads in a user coroutine - status code ok got: ''
expected: '200'
093-uthread-spawn.t TEST 11: creating user threads in a user coroutine - response_body - response is expected (repeated req 0, req 0) @@ -1,5 +0,0 @@
-before f
-before g
-hello in g()
-after g
-after f
'
093-uthread-spawn.t TEST 11: creating user threads in a user coroutine - status code ok got: ''
expected: '200'
093-uthread-spawn.t TEST 11: creating user threads in a user coroutine - response_body - response is expected (repeated req 1, req 0) @@ -1,5 +0,0 @@
-before f
-before g
-hello in g()
-after g
-after f
'
093-uthread-spawn.t TEST 2: two simple user threads without I/O - status code ok got: ''
expected: '200'
093-uthread-spawn.t TEST 2: two simple user threads without I/O - response_body - response is expected (repeated req 0, req 0) @@ -1,6 +0,0 @@
-before 1
-in thread 1
-after 1
-before 2
-in thread 2
-after 2
'
093-uthread-spawn.t TEST 2: two simple user threads without I/O - status code ok got: ''
expected: '200'
093-uthread-spawn.t TEST 2: two simple user threads without I/O - response_body - response is expected (repeated req 1, req 0) @@ -1,6 +0,0 @@
-before 1
-in thread 1
-after 1
-before 2
-in thread 2
-after 2
'
093-uthread-spawn.t TEST 16: user threads + ngx.socket.tcp - status code ok got: ''
expected: '200'
093-uthread-spawn.t TEST 16: user threads + ngx.socket.tcp - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-before
-after
-received: OK
'
093-uthread-spawn.t TEST 16: user threads + ngx.socket.tcp - status code ok got: ''
expected: '200'
093-uthread-spawn.t TEST 16: user threads + ngx.socket.tcp - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-before
-after
-received: OK
'
093-uthread-spawn.t TEST 13: manual time slicing between two user threads - status code ok got: ''
expected: '200'
093-uthread-spawn.t TEST 13: manual time slicing between two user threads - response_body - response is expected (repeated req 0, req 0) @@ -1,7 +0,0 @@
-f 1
-g 1
-f 2
-done
-g 2
-f 3
-g 3
'
093-uthread-spawn.t TEST 13: manual time slicing between two user threads - status code ok got: ''
expected: '200'
093-uthread-spawn.t TEST 13: manual time slicing between two user threads - response_body - response is expected (repeated req 1, req 0) @@ -1,7 +0,0 @@
-f 1
-g 1
-f 2
-done
-g 2
-f 3
-g 3
'
093-uthread-spawn.t TEST 6: nested user threads - status code ok got: ''
expected: '200'
093-uthread-spawn.t TEST 6: nested user threads - response_body - response is expected (repeated req 0, req 0) @@ -1,5 +0,0 @@
-before f
-before g
-hello in g()
-after f
-after g
'
093-uthread-spawn.t TEST 6: nested user threads - status code ok got: ''
expected: '200'
093-uthread-spawn.t TEST 6: nested user threads - response_body - response is expected (repeated req 1, req 0) @@ -1,5 +0,0 @@
-before f
-before g
-hello in g()
-after f
-after g
'
093-uthread-spawn.t TEST 4: two simple user threads with sleep - status code ok got: ''
expected: '200'
093-uthread-spawn.t TEST 4: two simple user threads with sleep - response_body - response is expected (repeated req 0, req 0) @@ -1,8 +0,0 @@
-1: before thread create
-1: before sleep
-1: after thread create
-2: before thread create
-2: before sleep
-2: after thread create
-2: after sleep
-1: after sleep
'
093-uthread-spawn.t TEST 4: two simple user threads with sleep - status code ok got: ''
expected: '200'
093-uthread-spawn.t TEST 4: two simple user threads with sleep - response_body - response is expected (repeated req 1, req 0) @@ -1,8 +0,0 @@
-1: before thread create
-1: before sleep
-1: after thread create
-2: before thread create
-2: before sleep
-2: after thread create
-2: after sleep
-1: after sleep
'
094-uthread-exit.t TEST 4: exit in user thread (entry already quits) - status code ok got: ''
expected: '200'
094-uthread-exit.t TEST 4: exit in user thread (entry already quits) - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-before
-after
-exiting the user thread
'
094-uthread-exit.t TEST 4: exit in user thread (entry already quits) - status code ok got: ''
expected: '200'
094-uthread-exit.t TEST 4: exit in user thread (entry already quits) - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-before
-after
-exiting the user thread
'
094-uthread-exit.t TEST 8: exit in user thread (entry thread is still pending on tcpsock:receive) - status code ok got: ''
expected: '200'
094-uthread-exit.t TEST 8: exit in user thread (entry thread is still pending on tcpsock:receive) - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-before
-hello in thread
-after
'
094-uthread-exit.t TEST 8: exit in user thread (entry thread is still pending on tcpsock:receive) - status code ok got: ''
expected: '200'
094-uthread-exit.t TEST 8: exit in user thread (entry thread is still pending on tcpsock:receive) - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-before
-hello in thread
-after
'
094-uthread-exit.t TEST 3: exit in a user thread (another user thread is still pending on ngx.sleep) - status code ok got: ''
expected: '200'
094-uthread-exit.t TEST 3: exit in a user thread (another user thread is still pending on ngx.sleep) - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-end
-f
'
094-uthread-exit.t TEST 3: exit in a user thread (another user thread is still pending on ngx.sleep) - status code ok got: ''
expected: '200'
094-uthread-exit.t TEST 3: exit in a user thread (another user thread is still pending on ngx.sleep) - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-end
-f
'
094-uthread-exit.t TEST 1: exit in user thread (entry thread is still pending to run) - status code ok got: ''
expected: '200'
094-uthread-exit.t TEST 1: exit in user thread (entry thread is still pending to run) - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-before
-hello in thread
'
094-uthread-exit.t TEST 1: exit in user thread (entry thread is still pending to run) - status code ok got: ''
expected: '200'
094-uthread-exit.t TEST 1: exit in user thread (entry thread is still pending to run) - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-before
-hello in thread
'
094-uthread-exit.t TEST 9: exit in user thread (entry thread is still pending on tcpsock:receiveuntil's iterator) - status code ok got: ''
expected: '200'
094-uthread-exit.t TEST 9: exit in user thread (entry thread is still pending on tcpsock:receiveuntil's iterator) - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-before
-hello in thread
-after
'
094-uthread-exit.t TEST 9: exit in user thread (entry thread is still pending on tcpsock:receiveuntil's iterator) - status code ok got: ''
expected: '200'
094-uthread-exit.t TEST 9: exit in user thread (entry thread is still pending on tcpsock:receiveuntil's iterator) - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-before
-hello in thread
-after
'
094-uthread-exit.t TEST 7: exit in user thread (entry thread is still pending on tcpsock:connect) - status code ok got: ''
expected: '200'
094-uthread-exit.t TEST 7: exit in user thread (entry thread is still pending on tcpsock:connect) - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-before
-hello in thread
-after
'
094-uthread-exit.t TEST 7: exit in user thread (entry thread is still pending on tcpsock:connect) - status code ok got: ''
expected: '200'
094-uthread-exit.t TEST 7: exit in user thread (entry thread is still pending on tcpsock:connect) - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-before
-hello in thread
-after
'
094-uthread-exit.t TEST 10: exit in user thread (entry thread is still pending on udpsock:receive) - status code ok got: ''
expected: '200'
094-uthread-exit.t TEST 10: exit in user thread (entry thread is still pending on udpsock:receive) - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-before
-hello in thread
-after
'
094-uthread-exit.t TEST 10: exit in user thread (entry thread is still pending on udpsock:receive) - status code ok got: ''
expected: '200'
094-uthread-exit.t TEST 10: exit in user thread (entry thread is still pending on udpsock:receive) - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-before
-hello in thread
-after
'
094-uthread-exit.t TEST 6: exit in user thread (entry thread is still pending on the DNS resolver for ngx.socket.udp) - status code ok got: ''
expected: '200'
094-uthread-exit.t TEST 6: exit in user thread (entry thread is still pending on the DNS resolver for ngx.socket.udp) - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-before
-hello in thread
-after
'
094-uthread-exit.t TEST 6: exit in user thread (entry thread is still pending on the DNS resolver for ngx.socket.udp) - status code ok got: ''
expected: '200'
094-uthread-exit.t TEST 6: exit in user thread (entry thread is still pending on the DNS resolver for ngx.socket.udp) - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-before
-hello in thread
-after
'
094-uthread-exit.t TEST 11: exit in user thread (entry thread is still pending on reqsock:receive) - status code ok got: ''
expected: '200'
094-uthread-exit.t TEST 11: exit in user thread (entry thread is still pending on reqsock:receive) - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-before
-hello in thread
-after
'
094-uthread-exit.t TEST 11: exit in user thread (entry thread is still pending on reqsock:receive) - status code ok got: ''
expected: '200'
094-uthread-exit.t TEST 11: exit in user thread (entry thread is still pending on reqsock:receive) - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-before
-hello in thread
-after
'
094-uthread-exit.t TEST 2: exit in user thread (entry thread is still pending on ngx.sleep) - status code ok got: ''
expected: '200'
094-uthread-exit.t TEST 2: exit in user thread (entry thread is still pending on ngx.sleep) - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-before
-hello in thread
-after
'
094-uthread-exit.t TEST 2: exit in user thread (entry thread is still pending on ngx.sleep) - status code ok got: ''
expected: '200'
094-uthread-exit.t TEST 2: exit in user thread (entry thread is still pending on ngx.sleep) - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-before
-hello in thread
-after
'
094-uthread-exit.t TEST 5: exit in user thread (entry thread is still pending on the DNS resolver for ngx.socket.tcp) - status code ok got: ''
expected: '200'
094-uthread-exit.t TEST 5: exit in user thread (entry thread is still pending on the DNS resolver for ngx.socket.tcp) - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-before
-hello in thread
-after
'
094-uthread-exit.t TEST 5: exit in user thread (entry thread is still pending on the DNS resolver for ngx.socket.tcp) - status code ok got: ''
expected: '200'
094-uthread-exit.t TEST 5: exit in user thread (entry thread is still pending on the DNS resolver for ngx.socket.tcp) - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-before
-hello in thread
-after
'
098-uthread-wait.t TEST 21: waiting on a dead coroutine - status code ok got: ''
expected: '200'
098-uthread-wait.t TEST 21: waiting on a dead coroutine - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-hello in thread
-thread created: zombie
-failed to run thread: already waited or killed
'
098-uthread-wait.t TEST 21: waiting on a dead coroutine - status code ok got: ''
expected: '200'
098-uthread-wait.t TEST 21: waiting on a dead coroutine - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-hello in thread
-thread created: zombie
-failed to run thread: already waited or killed
'
098-uthread-wait.t TEST 6: simple user thread wait with I/O, return multiple values - status code ok got: ''
expected: '200'
098-uthread-wait.t TEST 6: simple user thread wait with I/O, return multiple values - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-thread created: running
-hello in thread
-res: done 3.14
'
098-uthread-wait.t TEST 6: simple user thread wait with I/O, return multiple values - status code ok got: ''
expected: '200'
098-uthread-wait.t TEST 6: simple user thread wait with I/O, return multiple values - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-thread created: running
-hello in thread
-res: done 3.14
'
098-uthread-wait.t TEST 14: waiting on two simple user threads without I/O, both aborted by errors - status code ok got: ''
expected: '200'
098-uthread-wait.t TEST 14: waiting on two simple user threads without I/O, both aborted by errors - response_body - response is expected (repeated req 0, req 0) @@ -1,7 +0,0 @@
-f: hello
-thread f created: zombie
-g: hello
-thread g created: zombie
-failed to wait thread: f done
-f status: dead
-g status: zombie
'
098-uthread-wait.t TEST 14: waiting on two simple user threads without I/O, both aborted by errors - status code ok got: ''
expected: '200'
098-uthread-wait.t TEST 14: waiting on two simple user threads without I/O, both aborted by errors - response_body - response is expected (repeated req 1, req 0) @@ -1,7 +0,0 @@
-f: hello
-thread f created: zombie
-g: hello
-thread g created: zombie
-failed to wait thread: f done
-f status: dead
-g status: zombie
'
098-uthread-wait.t TEST 2: simple user thread wait with I/O - status code ok got: ''
expected: '200'
098-uthread-wait.t TEST 2: simple user thread wait with I/O - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-thread created: running
-hello in thread
-done
'
098-uthread-wait.t TEST 2: simple user thread wait with I/O - status code ok got: ''
expected: '200'
098-uthread-wait.t TEST 2: simple user thread wait with I/O - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-thread created: running
-hello in thread
-done
'
098-uthread-wait.t TEST 11: waiting on two simple user threads without I/O - status code ok got: ''
expected: '200'
098-uthread-wait.t TEST 11: waiting on two simple user threads without I/O - response_body - response is expected (repeated req 0, req 0) @@ -1,7 +0,0 @@
-f: hello
-thread f created: zombie
-g: hello
-thread g created: zombie
-res: f done
-f status: dead
-g status: zombie
'
098-uthread-wait.t TEST 11: waiting on two simple user threads without I/O - status code ok got: ''
expected: '200'
098-uthread-wait.t TEST 11: waiting on two simple user threads without I/O - response_body - response is expected (repeated req 1, req 0) @@ -1,7 +0,0 @@
-f: hello
-thread f created: zombie
-g: hello
-thread g created: zombie
-res: f done
-f status: dead
-g status: zombie
'
098-uthread-wait.t TEST 22: spawn and wait uthreads for many times - status code ok got: ''
expected: '200'
098-uthread-wait.t TEST 22: spawn and wait uthreads for many times - response_body - response is expected (repeated req 0, req 0) @@ -1,100 +0,0 @@
-1: done
-2: done
-3: done
-4: done
-5: done
-6: done
-7: done
-8: done
-9: done
-10: done
-11: done
-12: done
-13: done
-14: done
-15: done
-16: done
-17: done
-18: done
-19: done
-20: done
-21: done
-22: done
-23: done
-24: done
-25: done
-26: done
-27: done
-28: done
-29: done
-30: done
-31: done
-32: done
-33: done
-34: done
-35: done
-36: done
-37: done
-38: done
-39: done
-40: done
-41: done
-42: done
-43: done
-44: done
-45: done
-46: done
-47: done
-48: done
-49: done
-50: done
-51: done
-52: done
-53: done
-54: done
-55: done
-56: done
-57: done
-58: done
-59: done
-60: done
-61: done
-62: done
-63: done
-64: done
-65: done
-66: done
-67: done
-68: done
-69: done
-70: done
-71: done
-72: done
-73: done
-74: done
-75: done
-76: done
-77: done
-78: done
-79: done
-80: done
-81: done
-82: done
-83: done
-84: done
-85: done
-86: done
-87: done
-88: done
-89: done
-90: done
-91: done
-92: done
-93: done
-94: done
-95: done
-96: done
-97: done
-98: done
-99: done
-100: done
'
098-uthread-wait.t TEST 22: spawn and wait uthreads for many times - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:22:35 [alert] 26339\#0: worker process 26469 exited on signal 11" (req 0) 2020/10/27 05:22:35 [debug] 26339\#0: shmtx forced unlock
2020/10/27 05:22:35 [debug] 26339\#0: wake up, sigio 0
2020/10/27 05:22:35 [debug] 26339\#0: reap children
2020/10/27 05:22:35 [debug] 26339\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:22:35 [debug] 26339\#0: child: 1 26469 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:22:35 [debug] 26339\#0: channel 3:4
2020/10/27 05:22:35 [notice] 26339\#0: start worker process 26491
2020/10/27 05:22:35 [debug] 26339\#0: sigsuspend
2020/10/27 05:22:35 [debug] 26491\#0: malloc: 09129FB0:12
'
098-uthread-wait.t TEST 22: spawn and wait uthreads for many times - status code ok got: ''
expected: '200'
098-uthread-wait.t TEST 22: spawn and wait uthreads for many times - response_body - response is expected (repeated req 1, req 0) @@ -1,100 +0,0 @@
-1: done
-2: done
-3: done
-4: done
-5: done
-6: done
-7: done
-8: done
-9: done
-10: done
-11: done
-12: done
-13: done
-14: done
-15: done
-16: done
-17: done
-18: done
-19: done
-20: done
-21: done
-22: done
-23: done
-24: done
-25: done
-26: done
-27: done
-28: done
-29: done
-30: done
-31: done
-32: done
-33: done
-34: done
-35: done
-36: done
-37: done
-38: done
-39: done
-40: done
-41: done
-42: done
-43: done
-44: done
-45: done
-46: done
-47: done
-48: done
-49: done
-50: done
-51: done
-52: done
-53: done
-54: done
-55: done
-56: done
-57: done
-58: done
-59: done
-60: done
-61: done
-62: done
-63: done
-64: done
-65: done
-66: done
-67: done
-68: done
-69: done
-70: done
-71: done
-72: done
-73: done
-74: done
-75: done
-76: done
-77: done
-78: done
-79: done
-80: done
-81: done
-82: done
-83: done
-84: done
-85: done
-86: done
-87: done
-88: done
-89: done
-90: done
-91: done
-92: done
-93: done
-94: done
-95: done
-96: done
-97: done
-98: done
-99: done
-100: done
'
098-uthread-wait.t TEST 22: spawn and wait uthreads for many times - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:22:35 [alert] 26339\#0: worker process 26491 exited on signal 11" (req 1) 2020/10/27 05:22:35 [debug] 26339\#0: shmtx forced unlock
2020/10/27 05:22:35 [debug] 26339\#0: wake up, sigio 0
2020/10/27 05:22:35 [debug] 26339\#0: reap children
2020/10/27 05:22:35 [debug] 26339\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:22:35 [debug] 26339\#0: child: 1 26491 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:22:35 [debug] 26339\#0: channel 3:4
2020/10/27 05:22:35 [notice] 26339\#0: start worker process 26492
2020/10/27 05:22:35 [debug] 26339\#0: sigsuspend
2020/10/27 05:22:35 [debug] 26492\#0: malloc: 09129FB0:12
'
098-uthread-wait.t TEST 13: waiting on two simple user threads with I/O (uthreads completed in reversed order) - status code ok got: ''
expected: '200'
098-uthread-wait.t TEST 13: waiting on two simple user threads with I/O (uthreads completed in reversed order) - response_body - response is expected (repeated req 0, req 0) @@ -1,7 +0,0 @@
-thread f created: running
-thread g created: running
-g: hello
-res: g done
-f status: running
-g status: dead
-f: hello
'
098-uthread-wait.t TEST 13: waiting on two simple user threads with I/O (uthreads completed in reversed order) - status code ok got: ''
expected: '200'
098-uthread-wait.t TEST 13: waiting on two simple user threads with I/O (uthreads completed in reversed order) - response_body - response is expected (repeated req 1, req 0) @@ -1,7 +0,0 @@
-thread f created: running
-thread g created: running
-g: hello
-res: g done
-f status: running
-g status: dead
-f: hello
'
098-uthread-wait.t TEST 19: entry coroutine waiting on a user coroutine - status code ok got: ''
expected: '200'
098-uthread-wait.t TEST 19: entry coroutine waiting on a user coroutine - status code ok got: ''
expected: '200'
098-uthread-wait.t TEST 7: simple user thread wait without I/O, throw errors - status code ok got: ''
expected: '200'
098-uthread-wait.t TEST 7: simple user thread wait without I/O, throw errors - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-hello in thread
-thread created: zombie
-failed to wait thread: bad bad!
'
098-uthread-wait.t TEST 7: simple user thread wait without I/O, throw errors - status code ok got: ''
expected: '200'
098-uthread-wait.t TEST 7: simple user thread wait without I/O, throw errors - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-hello in thread
-thread created: zombie
-failed to wait thread: bad bad!
'
098-uthread-wait.t TEST 17: wait on uthreads on the reversed order of their termination, but exit the world early - status code ok got: ''
expected: '200'
098-uthread-wait.t TEST 17: wait on uthreads on the reversed order of their termination, but exit the world early - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-f thread created: running
-g thread created: running
-g: hello
-res: g done
'
098-uthread-wait.t TEST 17: wait on uthreads on the reversed order of their termination, but exit the world early - status code ok got: ''
expected: '200'
098-uthread-wait.t TEST 17: wait on uthreads on the reversed order of their termination, but exit the world early - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +0,0 @@
-f thread created: running
-g thread created: running
-g: hello
-res: g done
'
098-uthread-wait.t TEST 15: waiting on two simple user threads with I/O, both aborted by errors - status code ok got: ''
expected: '200'
098-uthread-wait.t TEST 15: waiting on two simple user threads with I/O, both aborted by errors - response_body - response is expected (repeated req 0, req 0) @@ -1,7 +0,0 @@
-thread f created: running
-thread g created: running
-f: hello
-failed to wait thread: f done
-f status: dead
-g status: running
-g: hello
'
098-uthread-wait.t TEST 15: waiting on two simple user threads with I/O, both aborted by errors - pattern "(?^:lua user thread aborted: runtime error: content_by_lua\(nginx\.conf:\d+\):8: f done)" should match a line in error.log (req 0)
098-uthread-wait.t TEST 15: waiting on two simple user threads with I/O, both aborted by errors - status code ok got: ''
expected: '200'
098-uthread-wait.t TEST 15: waiting on two simple user threads with I/O, both aborted by errors - response_body - response is expected (repeated req 1, req 0) @@ -1,7 +0,0 @@
-thread f created: running
-thread g created: running
-f: hello
-failed to wait thread: f done
-f status: dead
-g status: running
-g: hello
'
098-uthread-wait.t TEST 15: waiting on two simple user threads with I/O, both aborted by errors - pattern "(?^:lua user thread aborted: runtime error: content_by_lua\(nginx\.conf:\d+\):8: f done)" should match a line in error.log (req 1)
098-uthread-wait.t TEST 23: hanging bug - status code ok got: ''
expected: '200'
098-uthread-wait.t TEST 23: hanging bug - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'ok
'
098-uthread-wait.t TEST 23: hanging bug - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:22:46 [alert] 26339\#0: worker process 26649 exited on signal 11" (req 0) 2020/10/27 05:22:46 [debug] 26339\#0: shmtx forced unlock
2020/10/27 05:22:46 [debug] 26339\#0: wake up, sigio 0
2020/10/27 05:22:46 [debug] 26339\#0: reap children
2020/10/27 05:22:46 [debug] 26339\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:22:46 [debug] 26339\#0: child: 1 26649 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:22:46 [debug] 26339\#0: channel 3:4
2020/10/27 05:22:46 [notice] 26339\#0: start worker process 26671
2020/10/27 05:22:46 [debug] 26339\#0: sigsuspend
2020/10/27 05:22:46 [debug] 26671\#0: malloc: 09129FB0:12
'
098-uthread-wait.t TEST 23: hanging bug - status code ok got: ''
expected: '200'
098-uthread-wait.t TEST 23: hanging bug - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'ok
'
098-uthread-wait.t TEST 23: hanging bug - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:22:46 [alert] 26339\#0: worker process 26671 exited on signal 11" (req 1) 2020/10/27 05:22:46 [debug] 26339\#0: shmtx forced unlock
2020/10/27 05:22:46 [debug] 26339\#0: wake up, sigio 0
2020/10/27 05:22:46 [debug] 26339\#0: reap children
2020/10/27 05:22:46 [debug] 26339\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:22:46 [debug] 26339\#0: child: 1 26671 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:22:46 [debug] 26339\#0: channel 3:4
2020/10/27 05:22:46 [notice] 26339\#0: start worker process 26672
2020/10/27 05:22:46 [debug] 26339\#0: sigsuspend
2020/10/27 05:22:46 [debug] 26672\#0: malloc: 09129FB0:12
'
098-uthread-wait.t TEST 16: wait on uthreads on the exact order of their termination, but exit the world early - status code ok got: ''
expected: '200'
098-uthread-wait.t TEST 16: wait on uthreads on the exact order of their termination, but exit the world early - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-f thread created: running
-g thread created: running
-f: hello
-res: done
'
098-uthread-wait.t TEST 16: wait on uthreads on the exact order of their termination, but exit the world early - status code ok got: ''
expected: '200'
098-uthread-wait.t TEST 16: wait on uthreads on the exact order of their termination, but exit the world early - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +0,0 @@
-f thread created: running
-g thread created: running
-f: hello
-res: done
'
098-uthread-wait.t TEST 9: simple user thread wait without I/O (in a user coroutine) - status code ok got: ''
expected: '200'
098-uthread-wait.t TEST 9: simple user thread wait without I/O (in a user coroutine) - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-hello in thread
-thread created: zombie
-done
'
098-uthread-wait.t TEST 9: simple user thread wait without I/O (in a user coroutine) - status code ok got: ''
expected: '200'
098-uthread-wait.t TEST 9: simple user thread wait without I/O (in a user coroutine) - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-hello in thread
-thread created: zombie
-done
'
098-uthread-wait.t TEST 5: simple user thread wait without I/O (return multiple values) - status code ok got: ''
expected: '200'
098-uthread-wait.t TEST 5: simple user thread wait without I/O (return multiple values) - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-hello in thread
-thread created: zombie
-res: done 3.14
'
098-uthread-wait.t TEST 5: simple user thread wait without I/O (return multiple values) - status code ok got: ''
expected: '200'
098-uthread-wait.t TEST 5: simple user thread wait without I/O (return multiple values) - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-hello in thread
-thread created: zombie
-res: done 3.14
'
098-uthread-wait.t TEST 3: wait on uthreads on the reversed order of their termination - status code ok got: ''
expected: '200'
098-uthread-wait.t TEST 3: wait on uthreads on the reversed order of their termination - response_body - response is expected (repeated req 0, req 0) @@ -1,7 +0,0 @@
-f thread created: running
-g thread created: running
-f: hello
-g: hello
-g: done
-f thread status: zombie
-f: done
'
098-uthread-wait.t TEST 3: wait on uthreads on the reversed order of their termination - status code ok got: ''
expected: '200'
098-uthread-wait.t TEST 3: wait on uthreads on the reversed order of their termination - response_body - response is expected (repeated req 1, req 0) @@ -1,7 +0,0 @@
-f thread created: running
-g thread created: running
-f: hello
-g: hello
-g: done
-f thread status: zombie
-f: done
'
098-uthread-wait.t TEST 8: simple user thread wait with I/O, throw errors - status code ok got: ''
expected: '200'
098-uthread-wait.t TEST 8: simple user thread wait with I/O, throw errors - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-thread created: running
-hello in thread
-failed to wait thread: bad bad!
'
098-uthread-wait.t TEST 8: simple user thread wait with I/O, throw errors - pattern "(?^:lua user thread aborted: runtime error: content_by_lua\(nginx\.conf:\d+\):5: bad bad!)" should match a line in error.log (req 0)
098-uthread-wait.t TEST 8: simple user thread wait with I/O, throw errors - status code ok got: ''
expected: '200'
098-uthread-wait.t TEST 8: simple user thread wait with I/O, throw errors - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-thread created: running
-hello in thread
-failed to wait thread: bad bad!
'
098-uthread-wait.t TEST 8: simple user thread wait with I/O, throw errors - pattern "(?^:lua user thread aborted: runtime error: content_by_lua\(nginx\.conf:\d+\):5: bad bad!)" should match a line in error.log (req 1)
098-uthread-wait.t TEST 12: waiting on two simple user threads with I/O - status code ok got: ''
expected: '200'
098-uthread-wait.t TEST 12: waiting on two simple user threads with I/O - response_body - response is expected (repeated req 0, req 0) @@ -1,7 +0,0 @@
-thread f created: running
-thread g created: running
-f: hello
-res: f done
-f status: dead
-g status: running
-g: hello
'
098-uthread-wait.t TEST 12: waiting on two simple user threads with I/O - status code ok got: ''
expected: '200'
098-uthread-wait.t TEST 12: waiting on two simple user threads with I/O - response_body - response is expected (repeated req 1, req 0) @@ -1,7 +0,0 @@
-thread f created: running
-thread g created: running
-f: hello
-res: f done
-f status: dead
-g status: running
-g: hello
'
098-uthread-wait.t TEST 10: simple user thread wait with I/O (in a user coroutine) - status code ok got: ''
expected: '200'
098-uthread-wait.t TEST 10: simple user thread wait with I/O (in a user coroutine) - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-thread created: running
-hello in thread
-done
'
098-uthread-wait.t TEST 10: simple user thread wait with I/O (in a user coroutine) - status code ok got: ''
expected: '200'
098-uthread-wait.t TEST 10: simple user thread wait with I/O (in a user coroutine) - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-thread created: running
-hello in thread
-done
'
098-uthread-wait.t TEST 20: lua backtrace dumper may access dead parent coroutines - status code ok got: ''
expected: '200'
098-uthread-wait.t TEST 20: lua backtrace dumper may access dead parent coroutines - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'ok
'
098-uthread-wait.t TEST 20: lua backtrace dumper may access dead parent coroutines - pattern "(?^:lua user thread aborted: runtime error: content_by_lua\(nginx\.conf:\d+\):5: f done)" should match a line in error.log (req 0)
098-uthread-wait.t TEST 20: lua backtrace dumper may access dead parent coroutines - status code ok got: ''
expected: '200'
098-uthread-wait.t TEST 20: lua backtrace dumper may access dead parent coroutines - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'ok
'
098-uthread-wait.t TEST 20: lua backtrace dumper may access dead parent coroutines - pattern "(?^:lua user thread aborted: runtime error: content_by_lua\(nginx\.conf:\d+\):5: f done)" should match a line in error.log (req 1)
098-uthread-wait.t TEST 18: entry coroutine waiting on a thread not created by itself - status code ok got: ''
expected: '200'
098-uthread-wait.t TEST 18: entry coroutine waiting on a thread not created by itself - status code ok got: ''
expected: '200'
098-uthread-wait.t TEST 1: simple user thread wait without I/O - status code ok got: ''
expected: '200'
098-uthread-wait.t TEST 1: simple user thread wait without I/O - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-hello in thread
-thread created: zombie
-done
'
098-uthread-wait.t TEST 1: simple user thread wait without I/O - status code ok got: ''
expected: '200'
098-uthread-wait.t TEST 1: simple user thread wait without I/O - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-hello in thread
-thread created: zombie
-done
'
098-uthread-wait.t TEST 4: wait on uthreads on the exact order of their termination - status code ok got: ''
expected: '200'
098-uthread-wait.t TEST 4: wait on uthreads on the exact order of their termination - response_body - response is expected (repeated req 0, req 0) @@ -1,7 +0,0 @@
-f thread created: running
-g thread created: running
-f: hello
-f: done
-g thread status: running
-g: hello
-g: done
'
098-uthread-wait.t TEST 4: wait on uthreads on the exact order of their termination - status code ok got: ''
expected: '200'
098-uthread-wait.t TEST 4: wait on uthreads on the exact order of their termination - response_body - response is expected (repeated req 1, req 0) @@ -1,7 +0,0 @@
-f thread created: running
-g thread created: running
-f: hello
-f: done
-g thread status: running
-g: hello
-g: done
'
100-client-abort.t TEST 18: ngx.flush - status code ok got: ''
expected: '200'
100-client-abort.t TEST 18: ngx.flush - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'receive stream response error: timeout
'
100-client-abort.t TEST 18: ngx.flush - pattern "flush succeeded" should match a line in error.log (req 0)
100-client-abort.t TEST 18: ngx.flush - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:23:36 [alert] 27048\#0: worker process 27308 exited on signal 11" (req 0) 2020/10/27 05:23:36 [debug] 27048\#0: shmtx forced unlock
2020/10/27 05:23:36 [debug] 27048\#0: wake up, sigio 0
2020/10/27 05:23:36 [debug] 27048\#0: reap children
2020/10/27 05:23:36 [debug] 27048\#0: child: 0 27308 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:23:36 [debug] 27048\#0: channel 3:4
2020/10/27 05:23:36 [notice] 27048\#0: start worker process 27330
2020/10/27 05:23:36 [debug] 27048\#0: sigsuspend
2020/10/27 05:23:36 [debug] 27330\#0: malloc: 09D8B690:12
2020/10/27 05:23:36 [debug] 27330\#0: malloc: 09D8FE60:8
'
100-client-abort.t TEST 18: ngx.flush - status code ok got: ''
expected: '200'
100-client-abort.t TEST 18: ngx.flush - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'receive stream response error: timeout
'
100-client-abort.t TEST 18: ngx.flush - pattern "flush succeeded" should match a line in error.log (req 1)
100-client-abort.t TEST 18: ngx.flush - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:23:36 [alert] 27048\#0: worker process 27330 exited on signal 11" (req 1) 2020/10/27 05:23:36 [debug] 27048\#0: shmtx forced unlock
2020/10/27 05:23:36 [debug] 27048\#0: wake up, sigio 0
2020/10/27 05:23:36 [debug] 27048\#0: reap children
2020/10/27 05:23:36 [debug] 27048\#0: child: 0 27330 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:23:36 [debug] 27048\#0: channel 3:4
2020/10/27 05:23:36 [notice] 27048\#0: start worker process 27331
2020/10/27 05:23:36 [debug] 27048\#0: sigsuspend
2020/10/27 05:23:36 [debug] 27331\#0: malloc: 09D8B690:12
2020/10/27 05:23:36 [debug] 27331\#0: malloc: 09D8FE60:8
'
100-client-abort.t TEST 11: cosocket + stop - status code ok got: ''
expected: '200'
100-client-abort.t TEST 11: cosocket + stop - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'receive stream response error: timeout
'
100-client-abort.t TEST 11: cosocket + stop - pattern "stream client prematurely closed connection" should match a line in error.log (req 0)
100-client-abort.t TEST 11: cosocket + stop - pattern "[error]" should not match any line in error.log but matches line "2020/10/27 05:23:52 [error] 27469\#0: *423 connect() failed (111: Connection refused), client: 127.0.0.1, server: 0.0.0.0:1985" (req 0) 2020/10/27 05:23:52 [debug] 27469\#0: *423 stream lua tcp socket handle connect error
2020/10/27 05:23:52 [debug] 27469\#0: *423 stream lua finalize socket
2020/10/27 05:23:52 [debug] 27469\#0: *423 lua stream cleanup free: 09DA9EC0
2020/10/27 05:23:52 [debug] 27469\#0: *423 lua close socket connection
2020/10/27 05:23:52 [debug] 27469\#0: *423 reusable connection: 0
2020/10/27 05:23:52 [debug] 27469\#0: *423 stream lua tcp socket waking up the current request
2020/10/27 05:23:52 [debug] 27469\#0: *423 lua ngx_stream_lua_content_wev_handler
2020/10/27 05:23:52 [debug] 27469\#0: *423 stream lua tcp operation done, resuming lua thread
2020/10/27 05:23:52 [debug] 27469\#0: *423 stream lua tcp socket calling prepare retvals handler 081677D0, u:B6DB7538
'
100-client-abort.t TEST 11: cosocket + stop - pattern "[error]" should not match any line in error.log but matches line "2020/10/27 05:23:52 [error] 27469\#0: *423 stream [lua] content_by_lua(nginx.conf:50):10: failed to connect: connection refused, client: 127.0.0.1, server: 0.0.0.0:1985" (req 0) 2020/10/27 05:23:52 [debug] 27469\#0: *423 lua resume returned 0
2020/10/27 05:23:52 [debug] 27469\#0: *423 lua light thread ended normally
2020/10/27 05:23:52 [debug] 27469\#0: *423 lua deleting light thread
2020/10/27 05:23:52 [debug] 27469\#0: *423 stream lua run thread returned 0
2020/10/27 05:23:52 [debug] 27469\#0: *423 finalize stream request: 0
2020/10/27 05:23:52 [debug] 27469\#0: *423 finalize stream session: 200
2020/10/27 05:23:52 [debug] 27469\#0: *423 stream log handler
2020/10/27 05:23:52 [debug] 27469\#0: *423 close stream connection: 6
2020/10/27 05:23:52 [debug] 27469\#0: *423 reusable connection: 0
'
100-client-abort.t TEST 11: cosocket + stop - status code ok got: ''
expected: '200'
100-client-abort.t TEST 11: cosocket + stop - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'receive stream response error: timeout
'
100-client-abort.t TEST 11: cosocket + stop - pattern "stream client prematurely closed connection" should match a line in error.log (req 1)
100-client-abort.t TEST 11: cosocket + stop - pattern "[error]" should not match any line in error.log but matches line "2020/10/27 05:23:53 [error] 27491\#0: *427 connect() failed (111: Connection refused), client: 127.0.0.1, server: 0.0.0.0:1985" (req 1) 2020/10/27 05:23:53 [debug] 27491\#0: *427 stream lua tcp socket handle connect error
2020/10/27 05:23:53 [debug] 27491\#0: *427 stream lua finalize socket
2020/10/27 05:23:53 [debug] 27491\#0: *427 lua stream cleanup free: 09DB11F8
2020/10/27 05:23:53 [debug] 27491\#0: *427 lua close socket connection
2020/10/27 05:23:53 [debug] 27491\#0: *427 reusable connection: 0
2020/10/27 05:23:53 [debug] 27491\#0: *427 stream lua tcp socket waking up the current request
2020/10/27 05:23:53 [debug] 27491\#0: *427 lua ngx_stream_lua_content_wev_handler
2020/10/27 05:23:53 [debug] 27491\#0: *427 stream lua tcp operation done, resuming lua thread
2020/10/27 05:23:53 [debug] 27491\#0: *427 stream lua tcp socket calling prepare retvals handler 081677D0, u:B6DB7538
'
100-client-abort.t TEST 11: cosocket + stop - pattern "[error]" should not match any line in error.log but matches line "2020/10/27 05:23:53 [error] 27491\#0: *427 stream [lua] content_by_lua(nginx.conf:50):10: failed to connect: connection refused, client: 127.0.0.1, server: 0.0.0.0:1985" (req 1) 2020/10/27 05:23:53 [debug] 27491\#0: *427 lua resume returned 0
2020/10/27 05:23:53 [debug] 27491\#0: *427 lua light thread ended normally
2020/10/27 05:23:53 [debug] 27491\#0: *427 lua deleting light thread
2020/10/27 05:23:53 [debug] 27491\#0: *427 stream lua run thread returned 0
2020/10/27 05:23:53 [debug] 27491\#0: *427 finalize stream request: 0
2020/10/27 05:23:53 [debug] 27491\#0: *427 finalize stream session: 200
2020/10/27 05:23:53 [debug] 27491\#0: *427 stream log handler
2020/10/27 05:23:53 [debug] 27491\#0: *427 close stream connection: 14
2020/10/27 05:23:53 [debug] 27491\#0: *427 reusable connection: 0
'
101-on-abort.t TEST 3: accessing cosocket in callback - pattern "callback done: +OK" should match a line in error.log (req 0)
101-on-abort.t TEST 3: accessing cosocket in callback - pattern "[error]" should not match any line in error.log but matches line "2020/10/27 05:23:58 [error] 27509\#0: *31 connect() failed (111: Connection refused), client: 127.0.0.1, server: 0.0.0.0:1985" (req 0) 2020/10/27 05:23:58 [debug] 27509\#0: *31 stream lua tcp socket handle connect error
2020/10/27 05:23:58 [debug] 27509\#0: *31 stream lua finalize socket
2020/10/27 05:23:58 [debug] 27509\#0: *31 lua stream cleanup free: 08943FD0
2020/10/27 05:23:58 [debug] 27509\#0: *31 lua close socket connection
2020/10/27 05:23:58 [debug] 27509\#0: *31 reusable connection: 0
2020/10/27 05:23:58 [debug] 27509\#0: *31 stream lua tcp socket waking up the current request
2020/10/27 05:23:58 [debug] 27509\#0: *31 lua ngx_stream_lua_content_wev_handler
2020/10/27 05:23:58 [debug] 27509\#0: *31 stream lua tcp operation done, resuming lua thread
2020/10/27 05:23:58 [debug] 27509\#0: *31 stream lua tcp socket calling prepare retvals handler 081677D0, u:B6D9AB38
'
101-on-abort.t TEST 3: accessing cosocket in callback - pattern "[error]" should not match any line in error.log but matches line "2020/10/27 05:23:58 [error] 27509\#0: *31 stream [lua] content_by_lua(nginx.conf:52):7: failed to connect to redis: connection refused, client: 127.0.0.1, server: 0.0.0.0:1985" (req 0) 2020/10/27 05:23:58 [debug] 27509\#0: *31 lua exit with code 499
2020/10/27 05:23:58 [debug] 27509\#0: *31 lua resume returned 1
2020/10/27 05:23:58 [debug] 27509\#0: *31 lua thread yielded
2020/10/27 05:23:58 [debug] 27509\#0: *31 lua thread aborting request with status 499
2020/10/27 05:23:58 [debug] 27509\#0: *31 lua request cleanup: forcible=0
2020/10/27 05:23:58 [debug] 27509\#0: lua clean up the timer for pending ngx.sleep
2020/10/27 05:23:58 [debug] 27509\#0: *31 event timer del: 0: 6666946
2020/10/27 05:23:58 [debug] 27509\#0: *31 stream lua run thread returned 499
2020/10/27 05:23:58 [debug] 27509\#0: *31 finalize stream request: 499
'
101-on-abort.t TEST 3: accessing cosocket in callback - pattern "callback done: +OK" should match a line in error.log (req 1)
101-on-abort.t TEST 3: accessing cosocket in callback - pattern "[error]" should not match any line in error.log but matches line "2020/10/27 05:23:59 [error] 27509\#0: *35 connect() failed (111: Connection refused), client: 127.0.0.1, server: 0.0.0.0:1985" (req 1) 2020/10/27 05:23:59 [debug] 27509\#0: *35 stream lua tcp socket handle connect error
2020/10/27 05:23:59 [debug] 27509\#0: *35 stream lua finalize socket
2020/10/27 05:23:59 [debug] 27509\#0: *35 lua stream cleanup free: 08951730
2020/10/27 05:23:59 [debug] 27509\#0: *35 lua close socket connection
2020/10/27 05:23:59 [debug] 27509\#0: *35 reusable connection: 0
2020/10/27 05:23:59 [debug] 27509\#0: *35 stream lua tcp socket waking up the current request
2020/10/27 05:23:59 [debug] 27509\#0: *35 lua ngx_stream_lua_content_wev_handler
2020/10/27 05:23:59 [debug] 27509\#0: *35 stream lua tcp operation done, resuming lua thread
2020/10/27 05:23:59 [debug] 27509\#0: *35 stream lua tcp socket calling prepare retvals handler 081677D0, u:B6D83090
'
101-on-abort.t TEST 3: accessing cosocket in callback - pattern "[error]" should not match any line in error.log but matches line "2020/10/27 05:23:59 [error] 27509\#0: *35 stream [lua] content_by_lua(nginx.conf:52):7: failed to connect to redis: connection refused, client: 127.0.0.1, server: 0.0.0.0:1985" (req 1) 2020/10/27 05:23:59 [debug] 27509\#0: *35 lua exit with code 499
2020/10/27 05:23:59 [debug] 27509\#0: *35 lua resume returned 1
2020/10/27 05:23:59 [debug] 27509\#0: *35 lua thread yielded
2020/10/27 05:23:59 [debug] 27509\#0: *35 lua thread aborting request with status 499
2020/10/27 05:23:59 [debug] 27509\#0: *35 lua request cleanup: forcible=0
2020/10/27 05:23:59 [debug] 27509\#0: lua clean up the timer for pending ngx.sleep
2020/10/27 05:23:59 [debug] 27509\#0: *35 event timer del: 0: 6667830
2020/10/27 05:23:59 [debug] 27509\#0: *35 stream lua run thread returned 499
2020/10/27 05:23:59 [debug] 27509\#0: *35 finalize stream request: 499
'
101-on-abort.t TEST 10: regsiter on_abort callback but no client abortion (2 uthreads and 1 pending) - status code ok got: ''
expected: '200'
101-on-abort.t TEST 10: regsiter on_abort callback but no client abortion (2 uthreads and 1 pending) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'done
'
101-on-abort.t TEST 10: regsiter on_abort callback but no client abortion (2 uthreads and 1 pending) - status code ok got: ''
expected: '200'
101-on-abort.t TEST 10: regsiter on_abort callback but no client abortion (2 uthreads and 1 pending) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'done
'
101-on-abort.t TEST 4: ignore the client abort event in the user callback (no check) - status code ok got: ''
expected: '200'
101-on-abort.t TEST 4: ignore the client abort event in the user callback (no check) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'cannot set on_abort: lua_check_client_abort is off
'
101-on-abort.t TEST 4: ignore the client abort event in the user callback (no check) - status code ok got: ''
expected: '200'
101-on-abort.t TEST 4: ignore the client abort event in the user callback (no check) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'cannot set on_abort: lua_check_client_abort is off
'
101-on-abort.t TEST 5: regsiter on_abort callback but no client abortion - status code ok got: ''
expected: '200'
101-on-abort.t TEST 5: regsiter on_abort callback but no client abortion - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'done
'
101-on-abort.t TEST 5: regsiter on_abort callback but no client abortion - status code ok got: ''
expected: '200'
101-on-abort.t TEST 5: regsiter on_abort callback but no client abortion - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'done
'
101-on-abort.t TEST 9: regsiter on_abort callback multiple times - status code ok got: ''
expected: '200'
101-on-abort.t TEST 9: regsiter on_abort callback multiple times - response_body - response is expected (repeated req 0, req 0) got: ''
expected: '2: cannot set on_abort: duplicate call
'
101-on-abort.t TEST 9: regsiter on_abort callback multiple times - status code ok got: ''
expected: '200'
101-on-abort.t TEST 9: regsiter on_abort callback multiple times - response_body - response is expected (repeated req 1, req 0) got: ''
expected: '2: cannot set on_abort: duplicate call
'
101-on-abort.t TEST 8: regsiter on_abort callback but no client abortion (uthread) - status code ok got: ''
expected: '200'
101-on-abort.t TEST 8: regsiter on_abort callback but no client abortion (uthread) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'done
'
101-on-abort.t TEST 8: regsiter on_abort callback but no client abortion (uthread) - status code ok got: ''
expected: '200'
101-on-abort.t TEST 8: regsiter on_abort callback but no client abortion (uthread) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'done
'
106-timer.t TEST 31: log function location when failed to run a timer (anonymous function) - status code ok got: ''
expected: '200'
106-timer.t TEST 31: log function location when failed to run a timer (anonymous function) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'ok
'
106-timer.t TEST 31: log function location when failed to run a timer (anonymous function) - status code ok got: ''
expected: '200'
106-timer.t TEST 31: log function location when failed to run a timer (anonymous function) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'ok
'
106-timer.t TEST 7: 0 timer - status code ok got: ''
expected: '200'
106-timer.t TEST 7: 0 timer - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'registered timer
'
106-timer.t TEST 7: 0 timer - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:24:21 [alert] 27773\#0: worker process 27783 exited on signal 11" (req 0) 2020/10/27 05:24:21 [debug] 27773\#0: shmtx forced unlock
2020/10/27 05:24:21 [debug] 27773\#0: wake up, sigio 0
2020/10/27 05:24:21 [debug] 27773\#0: reap children
2020/10/27 05:24:21 [debug] 27773\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:24:21 [debug] 27773\#0: child: 1 27783 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:24:21 [debug] 27773\#0: channel 3:4
2020/10/27 05:24:21 [notice] 27773\#0: start worker process 27805
2020/10/27 05:24:21 [debug] 27773\#0: sigsuspend
2020/10/27 05:24:21 [debug] 27805\#0: malloc: 08D58FB0:12
'
106-timer.t TEST 7: 0 timer - status code ok got: ''
expected: '200'
106-timer.t TEST 7: 0 timer - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'registered timer
'
106-timer.t TEST 7: 0 timer - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:24:22 [alert] 27773\#0: worker process 27805 exited on signal 11" (req 1) 2020/10/27 05:24:22 [debug] 27773\#0: shmtx forced unlock
2020/10/27 05:24:22 [debug] 27773\#0: wake up, sigio 0
2020/10/27 05:24:22 [debug] 27773\#0: reap children
2020/10/27 05:24:22 [debug] 27773\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:24:22 [debug] 27773\#0: child: 1 27805 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:24:22 [debug] 27773\#0: channel 3:4
2020/10/27 05:24:22 [notice] 27773\#0: start worker process 27806
2020/10/27 05:24:22 [debug] 27773\#0: sigsuspend
2020/10/27 05:24:22 [debug] 27806\#0: malloc: 08D58FB0:12
'
106-timer.t TEST 20: lua_max_pending_timers - status code ok got: ''
expected: '200'
106-timer.t TEST 20: lua_max_pending_timers - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'failed to set timer g: too many pending timers
'
106-timer.t TEST 20: lua_max_pending_timers - pattern "lua ngx.timer expired" should match a line in error.log (req 0)
106-timer.t TEST 20: lua_max_pending_timers - pattern "stream lua close fake stream connection" should match a line in error.log (req 0)
106-timer.t TEST 20: lua_max_pending_timers - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:24:24 [alert] 27773\#0: worker process 27813 exited on signal 11" (req 0) 2020/10/27 05:24:24 [debug] 27773\#0: shmtx forced unlock
2020/10/27 05:24:24 [debug] 27773\#0: wake up, sigio 0
2020/10/27 05:24:24 [debug] 27773\#0: reap children
2020/10/27 05:24:24 [debug] 27773\#0: child: 0 27813 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:24:24 [debug] 27773\#0: channel 3:4
2020/10/27 05:24:24 [notice] 27773\#0: start worker process 27835
2020/10/27 05:24:24 [debug] 27773\#0: sigsuspend
2020/10/27 05:24:24 [debug] 27835\#0: malloc: 08D5D858:12
2020/10/27 05:24:24 [debug] 27835\#0: malloc: 08D62078:8
'
106-timer.t TEST 20: lua_max_pending_timers - status code ok got: ''
expected: '200'
106-timer.t TEST 20: lua_max_pending_timers - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'failed to set timer g: too many pending timers
'
106-timer.t TEST 20: lua_max_pending_timers - pattern "lua ngx.timer expired" should match a line in error.log (req 1)
106-timer.t TEST 20: lua_max_pending_timers - pattern "stream lua close fake stream connection" should match a line in error.log (req 1)
106-timer.t TEST 20: lua_max_pending_timers - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:24:24 [alert] 27773\#0: worker process 27835 exited on signal 11" (req 1) 2020/10/27 05:24:24 [debug] 27773\#0: shmtx forced unlock
2020/10/27 05:24:24 [debug] 27773\#0: wake up, sigio 0
2020/10/27 05:24:24 [debug] 27773\#0: reap children
2020/10/27 05:24:24 [debug] 27773\#0: child: 0 27835 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:24:24 [debug] 27773\#0: channel 3:4
2020/10/27 05:24:24 [notice] 27773\#0: start worker process 27836
2020/10/27 05:24:24 [debug] 27773\#0: sigsuspend
2020/10/27 05:24:24 [debug] 27836\#0: malloc: 08D5D858:12
2020/10/27 05:24:24 [debug] 27836\#0: malloc: 08D62078:8
'
106-timer.t TEST 28: use of ngx.ctx - status code ok got: ''
expected: '200'
106-timer.t TEST 28: use of ngx.ctx - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'registered timer
'
106-timer.t TEST 28: use of ngx.ctx - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:24:26 [alert] 27773\#0: worker process 27843 exited on signal 11" (req 0) 2020/10/27 05:24:26 [debug] 27773\#0: shmtx forced unlock
2020/10/27 05:24:26 [debug] 27773\#0: wake up, sigio 0
2020/10/27 05:24:26 [debug] 27773\#0: reap children
2020/10/27 05:24:26 [debug] 27773\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:24:26 [debug] 27773\#0: child: 1 27843 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:24:26 [debug] 27773\#0: channel 3:4
2020/10/27 05:24:26 [notice] 27773\#0: start worker process 27865
2020/10/27 05:24:26 [debug] 27773\#0: sigsuspend
2020/10/27 05:24:26 [debug] 27865\#0: malloc: 08D58FB0:12
'
106-timer.t TEST 28: use of ngx.ctx - status code ok got: ''
expected: '200'
106-timer.t TEST 28: use of ngx.ctx - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'registered timer
'
106-timer.t TEST 28: use of ngx.ctx - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:24:26 [alert] 27773\#0: worker process 27865 exited on signal 11" (req 1) 2020/10/27 05:24:26 [debug] 27773\#0: shmtx forced unlock
2020/10/27 05:24:26 [debug] 27773\#0: wake up, sigio 0
2020/10/27 05:24:26 [debug] 27773\#0: reap children
2020/10/27 05:24:26 [debug] 27773\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:24:26 [debug] 27773\#0: child: 1 27865 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:24:26 [debug] 27773\#0: channel 3:4
2020/10/27 05:24:26 [notice] 27773\#0: start worker process 27866
2020/10/27 05:24:26 [debug] 27773\#0: sigsuspend
2020/10/27 05:24:26 [debug] 27866\#0: malloc: 08D58FB0:12
'
106-timer.t TEST 19: multiple parallel timers - status code ok got: ''
expected: '200'
106-timer.t TEST 19: multiple parallel timers - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'registered timer
'
106-timer.t TEST 19: multiple parallel timers - pattern "lua ngx.timer expired" should match a line in error.log (req 0)
106-timer.t TEST 19: multiple parallel timers - pattern "stream lua close fake stream connection" should match a line in error.log (req 0)
106-timer.t TEST 19: multiple parallel timers - pattern "trace: [m][f][g]" should match a line in error.log (req 0)
106-timer.t TEST 19: multiple parallel timers - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:24:28 [alert] 27773\#0: worker process 27873 exited on signal 11" (req 0) 2020/10/27 05:24:28 [debug] 27773\#0: shmtx forced unlock
2020/10/27 05:24:28 [debug] 27773\#0: wake up, sigio 0
2020/10/27 05:24:28 [debug] 27773\#0: reap children
2020/10/27 05:24:28 [debug] 27773\#0: child: 0 27873 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:24:28 [debug] 27773\#0: channel 3:4
2020/10/27 05:24:28 [notice] 27773\#0: start worker process 27895
2020/10/27 05:24:28 [debug] 27773\#0: sigsuspend
2020/10/27 05:24:28 [debug] 27895\#0: malloc: 08D5D858:12
2020/10/27 05:24:28 [debug] 27895\#0: malloc: 08D62078:8
'
106-timer.t TEST 19: multiple parallel timers - status code ok got: ''
expected: '200'
106-timer.t TEST 19: multiple parallel timers - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'registered timer
'
106-timer.t TEST 19: multiple parallel timers - pattern "lua ngx.timer expired" should match a line in error.log (req 1)
106-timer.t TEST 19: multiple parallel timers - pattern "stream lua close fake stream connection" should match a line in error.log (req 1)
106-timer.t TEST 19: multiple parallel timers - pattern "trace: [m][f][g]" should match a line in error.log (req 1)
106-timer.t TEST 19: multiple parallel timers - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:24:28 [alert] 27773\#0: worker process 27895 exited on signal 11" (req 1) 2020/10/27 05:24:28 [debug] 27773\#0: shmtx forced unlock
2020/10/27 05:24:28 [debug] 27773\#0: wake up, sigio 0
2020/10/27 05:24:28 [debug] 27773\#0: reap children
2020/10/27 05:24:28 [debug] 27773\#0: child: 0 27895 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:24:28 [debug] 27773\#0: channel 3:4
2020/10/27 05:24:28 [notice] 27773\#0: start worker process 27896
2020/10/27 05:24:28 [debug] 27773\#0: sigsuspend
2020/10/27 05:24:28 [debug] 27896\#0: malloc: 08D5D858:12
2020/10/27 05:24:28 [debug] 27896\#0: malloc: 08D62078:8
'
106-timer.t TEST 30: log function location when failed to run a timer - status code ok got: ''
expected: '200'
106-timer.t TEST 30: log function location when failed to run a timer - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'ok
'
106-timer.t TEST 30: log function location when failed to run a timer - status code ok got: ''
expected: '200'
106-timer.t TEST 30: log function location when failed to run a timer - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'ok
'
106-timer.t TEST 6: tcp cosocket in timer handler (keep-alive connections) - status code ok got: ''
expected: '200'
106-timer.t TEST 6: tcp cosocket in timer handler (keep-alive connections) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'registered timer
'
106-timer.t TEST 6: tcp cosocket in timer handler (keep-alive connections) - pattern "(?^:\[lua\] .*? my lua timer handler)" should match a line in error.log (req 0)
106-timer.t TEST 6: tcp cosocket in timer handler (keep-alive connections) - pattern "lua ngx.timer expired" should match a line in error.log (req 0)
106-timer.t TEST 6: tcp cosocket in timer handler (keep-alive connections) - pattern "stream lua close fake stream connection" should match a line in error.log (req 0)
106-timer.t TEST 6: tcp cosocket in timer handler (keep-alive connections) - pattern "(?^:go\(\): connected: 1, reused: \d+)" should match a line in error.log (req 0)
106-timer.t TEST 6: tcp cosocket in timer handler (keep-alive connections) - pattern "go(): request sent: 11" should match a line in error.log (req 0)
106-timer.t TEST 6: tcp cosocket in timer handler (keep-alive connections) - pattern "go(): received: OK" should match a line in error.log (req 0)
106-timer.t TEST 6: tcp cosocket in timer handler (keep-alive connections) - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:24:32 [alert] 27773\#0: worker process 27933 exited on signal 11" (req 0) 2020/10/27 05:24:32 [debug] 27773\#0: shmtx forced unlock
2020/10/27 05:24:32 [debug] 27773\#0: wake up, sigio 0
2020/10/27 05:24:32 [debug] 27773\#0: reap children
2020/10/27 05:24:32 [debug] 27773\#0: child: 0 27933 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:24:32 [debug] 27773\#0: channel 3:4
2020/10/27 05:24:32 [notice] 27773\#0: start worker process 27955
2020/10/27 05:24:32 [debug] 27773\#0: sigsuspend
2020/10/27 05:24:32 [debug] 27955\#0: malloc: 08D5D858:12
2020/10/27 05:24:32 [debug] 27955\#0: malloc: 08D62078:8
'
106-timer.t TEST 6: tcp cosocket in timer handler (keep-alive connections) - status code ok got: ''
expected: '200'
106-timer.t TEST 6: tcp cosocket in timer handler (keep-alive connections) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'registered timer
'
106-timer.t TEST 6: tcp cosocket in timer handler (keep-alive connections) - pattern "(?^:\[lua\] .*? my lua timer handler)" should match a line in error.log (req 1)
106-timer.t TEST 6: tcp cosocket in timer handler (keep-alive connections) - pattern "lua ngx.timer expired" should match a line in error.log (req 1)
106-timer.t TEST 6: tcp cosocket in timer handler (keep-alive connections) - pattern "stream lua close fake stream connection" should match a line in error.log (req 1)
106-timer.t TEST 6: tcp cosocket in timer handler (keep-alive connections) - pattern "(?^:go\(\): connected: 1, reused: \d+)" should match a line in error.log (req 1)
106-timer.t TEST 6: tcp cosocket in timer handler (keep-alive connections) - pattern "go(): request sent: 11" should match a line in error.log (req 1)
106-timer.t TEST 6: tcp cosocket in timer handler (keep-alive connections) - pattern "go(): received: OK" should match a line in error.log (req 1)
106-timer.t TEST 6: tcp cosocket in timer handler (keep-alive connections) - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:24:32 [alert] 27773\#0: worker process 27955 exited on signal 11" (req 1) 2020/10/27 05:24:32 [debug] 27773\#0: shmtx forced unlock
2020/10/27 05:24:32 [debug] 27773\#0: wake up, sigio 0
2020/10/27 05:24:32 [debug] 27773\#0: reap children
2020/10/27 05:24:32 [debug] 27773\#0: child: 0 27955 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:24:32 [debug] 27773\#0: channel 3:4
2020/10/27 05:24:32 [notice] 27773\#0: start worker process 27956
2020/10/27 05:24:32 [debug] 27773\#0: sigsuspend
2020/10/27 05:24:32 [debug] 27956\#0: malloc: 08D5D858:12
2020/10/27 05:24:32 [debug] 27956\#0: malloc: 08D62078:8
'
106-timer.t TEST 4: simple at (sleep in the timer callback) - status code ok got: ''
expected: '200'
106-timer.t TEST 4: simple at (sleep in the timer callback) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'registered timer
'
106-timer.t TEST 4: simple at (sleep in the timer callback) - pattern "(?^:\[lua\] .*? my lua timer handler)" should match a line in error.log (req 0)
106-timer.t TEST 4: simple at (sleep in the timer callback) - pattern "(?^:\[lua\] content_by_lua\(nginx\.conf:\d+\):\d+: elapsed: 0\.0(?:6[4-9]|7[0-9]|8[0-6]))" should match a line in error.log (req 0)
106-timer.t TEST 4: simple at (sleep in the timer callback) - pattern "lua ngx.timer expired" should match a line in error.log (req 0)
106-timer.t TEST 4: simple at (sleep in the timer callback) - pattern "stream lua close fake stream connection" should match a line in error.log (req 0)
106-timer.t TEST 4: simple at (sleep in the timer callback) - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:24:34 [alert] 27773\#0: worker process 27964 exited on signal 11" (req 0) 2020/10/27 05:24:34 [debug] 27773\#0: shmtx forced unlock
2020/10/27 05:24:34 [debug] 27773\#0: wake up, sigio 0
2020/10/27 05:24:34 [debug] 27773\#0: reap children
2020/10/27 05:24:34 [debug] 27773\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:24:34 [debug] 27773\#0: child: 1 27964 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:24:34 [debug] 27773\#0: channel 3:4
2020/10/27 05:24:34 [notice] 27773\#0: start worker process 27986
2020/10/27 05:24:34 [debug] 27773\#0: sigsuspend
2020/10/27 05:24:34 [debug] 27986\#0: malloc: 08D58FB0:12
'
106-timer.t TEST 4: simple at (sleep in the timer callback) - status code ok got: ''
expected: '200'
106-timer.t TEST 4: simple at (sleep in the timer callback) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'registered timer
'
106-timer.t TEST 4: simple at (sleep in the timer callback) - pattern "(?^:\[lua\] .*? my lua timer handler)" should match a line in error.log (req 1)
106-timer.t TEST 4: simple at (sleep in the timer callback) - pattern "(?^:\[lua\] content_by_lua\(nginx\.conf:\d+\):\d+: elapsed: 0\.0(?:6[4-9]|7[0-9]|8[0-6]))" should match a line in error.log (req 1)
106-timer.t TEST 4: simple at (sleep in the timer callback) - pattern "lua ngx.timer expired" should match a line in error.log (req 1)
106-timer.t TEST 4: simple at (sleep in the timer callback) - pattern "stream lua close fake stream connection" should match a line in error.log (req 1)
106-timer.t TEST 4: simple at (sleep in the timer callback) - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:24:35 [alert] 27773\#0: worker process 27986 exited on signal 11" (req 1) 2020/10/27 05:24:35 [debug] 27773\#0: shmtx forced unlock
2020/10/27 05:24:35 [debug] 27773\#0: wake up, sigio 0
2020/10/27 05:24:35 [debug] 27773\#0: reap children
2020/10/27 05:24:35 [debug] 27773\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:24:35 [debug] 27773\#0: child: 1 27986 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:24:35 [debug] 27773\#0: channel 3:4
2020/10/27 05:24:35 [notice] 27773\#0: start worker process 27987
2020/10/27 05:24:35 [debug] 27773\#0: sigsuspend
2020/10/27 05:24:35 [debug] 27987\#0: malloc: 08D58FB0:12
'
106-timer.t TEST 13: shared dict - status code ok got: ''
expected: '200'
106-timer.t TEST 13: shared dict - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'registered timer
'
106-timer.t TEST 13: shared dict - pattern "lua ngx.timer expired" should match a line in error.log (req 0)
106-timer.t TEST 13: shared dict - pattern "stream lua close fake stream connection" should match a line in error.log (req 0)
106-timer.t TEST 13: shared dict - pattern "get foo: 32 number" should match a line in error.log (req 0)
106-timer.t TEST 13: shared dict - pattern "get bah: 10502 number" should match a line in error.log (req 0)
106-timer.t TEST 13: shared dict - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:24:36 [alert] 27773\#0: worker process 27994 exited on signal 11" (req 0) 2020/10/27 05:24:36 [debug] 27773\#0: shmtx forced unlock
2020/10/27 05:24:36 [debug] 27773\#0: shmtx forced unlock
2020/10/27 05:24:36 [debug] 27773\#0: wake up, sigio 0
2020/10/27 05:24:36 [debug] 27773\#0: reap children
2020/10/27 05:24:36 [debug] 27773\#0: child: 0 27994 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:24:36 [debug] 27773\#0: channel 3:4
2020/10/27 05:24:36 [notice] 27773\#0: start worker process 28016
2020/10/27 05:24:36 [debug] 27773\#0: sigsuspend
2020/10/27 05:24:36 [debug] 28016\#0: malloc: 08D5D858:12
'
106-timer.t TEST 13: shared dict - status code ok got: ''
expected: '200'
106-timer.t TEST 13: shared dict - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'registered timer
'
106-timer.t TEST 13: shared dict - pattern "lua ngx.timer expired" should match a line in error.log (req 1)
106-timer.t TEST 13: shared dict - pattern "stream lua close fake stream connection" should match a line in error.log (req 1)
106-timer.t TEST 13: shared dict - pattern "get foo: 32 number" should match a line in error.log (req 1)
106-timer.t TEST 13: shared dict - pattern "get bah: 10502 number" should match a line in error.log (req 1)
106-timer.t TEST 13: shared dict - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:24:37 [alert] 27773\#0: worker process 28016 exited on signal 11" (req 1) 2020/10/27 05:24:37 [debug] 27773\#0: shmtx forced unlock
2020/10/27 05:24:37 [debug] 27773\#0: shmtx forced unlock
2020/10/27 05:24:37 [debug] 27773\#0: wake up, sigio 0
2020/10/27 05:24:37 [debug] 27773\#0: reap children
2020/10/27 05:24:37 [debug] 27773\#0: child: 0 28016 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:24:37 [debug] 27773\#0: channel 3:4
2020/10/27 05:24:37 [notice] 27773\#0: start worker process 28017
2020/10/27 05:24:37 [debug] 27773\#0: sigsuspend
2020/10/27 05:24:37 [debug] 28017\#0: malloc: 08D5D858:12
'
106-timer.t TEST 15: ngx.exit(403) - status code ok got: ''
expected: '200'
106-timer.t TEST 15: ngx.exit(403) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'registered timer
'
106-timer.t TEST 15: ngx.exit(403) - pattern "lua ngx.timer expired" should match a line in error.log (req 0)
106-timer.t TEST 15: ngx.exit(403) - pattern "stream lua close fake stream connection" should match a line in error.log (req 0)
106-timer.t TEST 15: ngx.exit(403) - pattern "BEFORE ngx.exit" should match a line in error.log (req 0)
106-timer.t TEST 15: ngx.exit(403) - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:24:38 [alert] 27773\#0: worker process 28024 exited on signal 11" (req 0) 2020/10/27 05:24:38 [debug] 27773\#0: shmtx forced unlock
2020/10/27 05:24:38 [debug] 27773\#0: wake up, sigio 0
2020/10/27 05:24:38 [debug] 27773\#0: reap children
2020/10/27 05:24:38 [debug] 27773\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:24:38 [debug] 27773\#0: child: 1 28024 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:24:38 [debug] 27773\#0: channel 3:4
2020/10/27 05:24:38 [notice] 27773\#0: start worker process 28046
2020/10/27 05:24:38 [debug] 27773\#0: sigsuspend
2020/10/27 05:24:38 [debug] 28046\#0: malloc: 08D58FB0:12
'
106-timer.t TEST 15: ngx.exit(403) - status code ok got: ''
expected: '200'
106-timer.t TEST 15: ngx.exit(403) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'registered timer
'
106-timer.t TEST 15: ngx.exit(403) - pattern "lua ngx.timer expired" should match a line in error.log (req 1)
106-timer.t TEST 15: ngx.exit(403) - pattern "stream lua close fake stream connection" should match a line in error.log (req 1)
106-timer.t TEST 15: ngx.exit(403) - pattern "BEFORE ngx.exit" should match a line in error.log (req 1)
106-timer.t TEST 15: ngx.exit(403) - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:24:39 [alert] 27773\#0: worker process 28046 exited on signal 11" (req 1) 2020/10/27 05:24:39 [debug] 27773\#0: shmtx forced unlock
2020/10/27 05:24:39 [debug] 27773\#0: wake up, sigio 0
2020/10/27 05:24:39 [debug] 27773\#0: reap children
2020/10/27 05:24:39 [debug] 27773\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:24:39 [debug] 27773\#0: child: 1 28046 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:24:39 [debug] 27773\#0: channel 3:4
2020/10/27 05:24:39 [notice] 27773\#0: start worker process 28047
2020/10/27 05:24:39 [debug] 27773\#0: sigsuspend
2020/10/27 05:24:39 [debug] 28047\#0: malloc: 08D58FB0:12
'
106-timer.t TEST 26: lua_max_running_timers (just enough) - 2 - status code ok got: ''
expected: '200'
106-timer.t TEST 26: lua_max_running_timers (just enough) - 2 - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'registered timer
'
106-timer.t TEST 26: lua_max_running_timers (just enough) - 2 - pattern "stream lua close fake stream connection" should match a line in error.log (req 0)
106-timer.t TEST 26: lua_max_running_timers (just enough) - 2 - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:24:41 [alert] 27773\#0: worker process 28054 exited on signal 11" (req 0) 2020/10/27 05:24:41 [debug] 27773\#0: shmtx forced unlock
2020/10/27 05:24:41 [debug] 27773\#0: wake up, sigio 0
2020/10/27 05:24:41 [debug] 27773\#0: reap children
2020/10/27 05:24:41 [debug] 27773\#0: child: 0 28054 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:24:41 [debug] 27773\#0: channel 3:4
2020/10/27 05:24:41 [notice] 27773\#0: start worker process 28076
2020/10/27 05:24:41 [debug] 27773\#0: sigsuspend
2020/10/27 05:24:41 [debug] 28076\#0: malloc: 08D5D858:12
2020/10/27 05:24:41 [debug] 28076\#0: malloc: 08D62078:8
'
106-timer.t TEST 26: lua_max_running_timers (just enough) - 2 - status code ok got: ''
expected: '200'
106-timer.t TEST 26: lua_max_running_timers (just enough) - 2 - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'registered timer
'
106-timer.t TEST 26: lua_max_running_timers (just enough) - 2 - pattern "stream lua close fake stream connection" should match a line in error.log (req 1)
106-timer.t TEST 26: lua_max_running_timers (just enough) - 2 - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:24:41 [alert] 27773\#0: worker process 28076 exited on signal 11" (req 1) 2020/10/27 05:24:41 [debug] 27773\#0: shmtx forced unlock
2020/10/27 05:24:41 [debug] 27773\#0: wake up, sigio 0
2020/10/27 05:24:41 [debug] 27773\#0: reap children
2020/10/27 05:24:41 [debug] 27773\#0: child: 0 28076 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:24:41 [debug] 27773\#0: channel 3:4
2020/10/27 05:24:41 [notice] 27773\#0: start worker process 28077
2020/10/27 05:24:41 [debug] 27773\#0: sigsuspend
2020/10/27 05:24:41 [debug] 28077\#0: malloc: 08D5D858:12
2020/10/27 05:24:41 [debug] 28077\#0: malloc: 08D62078:8
'
106-timer.t TEST 21: lua_max_pending_timers (just not exceeding) - status code ok got: ''
expected: '200'
106-timer.t TEST 21: lua_max_pending_timers (just not exceeding) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'registered timer
'
106-timer.t TEST 21: lua_max_pending_timers (just not exceeding) - pattern "lua ngx.timer expired" should match a line in error.log (req 0)
106-timer.t TEST 21: lua_max_pending_timers (just not exceeding) - pattern "stream lua close fake stream connection" should match a line in error.log (req 0)
106-timer.t TEST 21: lua_max_pending_timers (just not exceeding) - pattern "trace: [m][f][g]" should match a line in error.log (req 0)
106-timer.t TEST 21: lua_max_pending_timers (just not exceeding) - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:24:43 [alert] 27773\#0: worker process 28084 exited on signal 11" (req 0) 2020/10/27 05:24:43 [debug] 27773\#0: shmtx forced unlock
2020/10/27 05:24:43 [debug] 27773\#0: wake up, sigio 0
2020/10/27 05:24:43 [debug] 27773\#0: reap children
2020/10/27 05:24:43 [debug] 27773\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:24:43 [debug] 27773\#0: child: 1 28084 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:24:43 [debug] 27773\#0: channel 3:4
2020/10/27 05:24:43 [notice] 27773\#0: start worker process 28106
2020/10/27 05:24:43 [debug] 27773\#0: sigsuspend
2020/10/27 05:24:43 [debug] 28106\#0: malloc: 08D58FB0:12
'
106-timer.t TEST 21: lua_max_pending_timers (just not exceeding) - status code ok got: ''
expected: '200'
106-timer.t TEST 21: lua_max_pending_timers (just not exceeding) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'registered timer
'
106-timer.t TEST 21: lua_max_pending_timers (just not exceeding) - pattern "lua ngx.timer expired" should match a line in error.log (req 1)
106-timer.t TEST 21: lua_max_pending_timers (just not exceeding) - pattern "stream lua close fake stream connection" should match a line in error.log (req 1)
106-timer.t TEST 21: lua_max_pending_timers (just not exceeding) - pattern "trace: [m][f][g]" should match a line in error.log (req 1)
106-timer.t TEST 21: lua_max_pending_timers (just not exceeding) - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:24:43 [alert] 27773\#0: worker process 28106 exited on signal 11" (req 1) 2020/10/27 05:24:43 [debug] 27773\#0: shmtx forced unlock
2020/10/27 05:24:43 [debug] 27773\#0: wake up, sigio 0
2020/10/27 05:24:43 [debug] 27773\#0: reap children
2020/10/27 05:24:43 [debug] 27773\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:24:43 [debug] 27773\#0: child: 1 28106 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:24:43 [debug] 27773\#0: channel 3:4
2020/10/27 05:24:43 [notice] 27773\#0: start worker process 28107
2020/10/27 05:24:43 [debug] 27773\#0: sigsuspend
2020/10/27 05:24:43 [debug] 28107\#0: malloc: 08D58FB0:12
'
106-timer.t TEST 1: simple at - status code ok got: ''
expected: '200'
106-timer.t TEST 1: simple at - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'registered timer
'
106-timer.t TEST 1: simple at - pattern "(?^:\[lua\] content_by_lua\(nginx\.conf:\d+\):\d+: elapsed: 0\.0(?:4[4-9]|5[0-6])\d*, context: ngx\.timer, client: \d+\.\d+\.\d+\.\d+, server: 0\.0\.0\.0:\d+)" should match a line in error.log (req 0)
106-timer.t TEST 1: simple at - pattern "lua ngx.timer expired" should match a line in error.log (req 0)
106-timer.t TEST 1: simple at - pattern "stream lua close fake stream connection" should match a line in error.log (req 0)
106-timer.t TEST 1: simple at - pattern "timer prematurely expired: false" should match a line in error.log (req 0)
106-timer.t TEST 1: simple at - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:24:45 [alert] 27773\#0: worker process 28114 exited on signal 11" (req 0) 2020/10/27 05:24:45 [debug] 27773\#0: shmtx forced unlock
2020/10/27 05:24:45 [debug] 27773\#0: wake up, sigio 0
2020/10/27 05:24:45 [debug] 27773\#0: reap children
2020/10/27 05:24:45 [debug] 27773\#0: child: 0 28114 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:24:45 [debug] 27773\#0: channel 3:4
2020/10/27 05:24:45 [notice] 27773\#0: start worker process 28136
2020/10/27 05:24:45 [debug] 27773\#0: sigsuspend
2020/10/27 05:24:45 [debug] 28136\#0: malloc: 08D5D858:12
2020/10/27 05:24:45 [debug] 28136\#0: malloc: 08D62078:8
'
106-timer.t TEST 1: simple at - status code ok got: ''
expected: '200'
106-timer.t TEST 1: simple at - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'registered timer
'
106-timer.t TEST 1: simple at - pattern "(?^:\[lua\] content_by_lua\(nginx\.conf:\d+\):\d+: elapsed: 0\.0(?:4[4-9]|5[0-6])\d*, context: ngx\.timer, client: \d+\.\d+\.\d+\.\d+, server: 0\.0\.0\.0:\d+)" should match a line in error.log (req 1)
106-timer.t TEST 1: simple at - pattern "lua ngx.timer expired" should match a line in error.log (req 1)
106-timer.t TEST 1: simple at - pattern "stream lua close fake stream connection" should match a line in error.log (req 1)
106-timer.t TEST 1: simple at - pattern "timer prematurely expired: false" should match a line in error.log (req 1)
106-timer.t TEST 1: simple at - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:24:45 [alert] 27773\#0: worker process 28136 exited on signal 11" (req 1) 2020/10/27 05:24:45 [debug] 27773\#0: shmtx forced unlock
2020/10/27 05:24:45 [debug] 27773\#0: wake up, sigio 0
2020/10/27 05:24:45 [debug] 27773\#0: reap children
2020/10/27 05:24:45 [debug] 27773\#0: child: 0 28136 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:24:45 [debug] 27773\#0: channel 3:4
2020/10/27 05:24:45 [notice] 27773\#0: start worker process 28137
2020/10/27 05:24:45 [debug] 27773\#0: sigsuspend
2020/10/27 05:24:45 [debug] 28137\#0: malloc: 08D5D858:12
2020/10/27 05:24:45 [debug] 28137\#0: malloc: 08D62078:8
'
106-timer.t TEST 18: chained timers (non-zero delay) - status code ok got: ''
expected: '200'
106-timer.t TEST 18: chained timers (non-zero delay) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'registered timer
'
106-timer.t TEST 18: chained timers (non-zero delay) - pattern "lua ngx.timer expired" should match a line in error.log (req 0)
106-timer.t TEST 18: chained timers (non-zero delay) - pattern "stream lua close fake stream connection" should match a line in error.log (req 0)
106-timer.t TEST 18: chained timers (non-zero delay) - pattern "trace: [m][f][g]" should match a line in error.log (req 0)
106-timer.t TEST 18: chained timers (non-zero delay) - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:24:47 [alert] 27773\#0: worker process 28144 exited on signal 11" (req 0) 2020/10/27 05:24:47 [debug] 27773\#0: shmtx forced unlock
2020/10/27 05:24:47 [debug] 27773\#0: wake up, sigio 0
2020/10/27 05:24:47 [debug] 27773\#0: reap children
2020/10/27 05:24:47 [debug] 27773\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:24:47 [debug] 27773\#0: child: 1 28144 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:24:47 [debug] 27773\#0: channel 3:4
2020/10/27 05:24:47 [notice] 27773\#0: start worker process 28166
2020/10/27 05:24:47 [debug] 27773\#0: sigsuspend
2020/10/27 05:24:47 [debug] 28166\#0: malloc: 08D58FB0:12
'
106-timer.t TEST 18: chained timers (non-zero delay) - status code ok got: ''
expected: '200'
106-timer.t TEST 18: chained timers (non-zero delay) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'registered timer
'
106-timer.t TEST 18: chained timers (non-zero delay) - pattern "lua ngx.timer expired" should match a line in error.log (req 1)
106-timer.t TEST 18: chained timers (non-zero delay) - pattern "stream lua close fake stream connection" should match a line in error.log (req 1)
106-timer.t TEST 18: chained timers (non-zero delay) - pattern "trace: [m][f][g]" should match a line in error.log (req 1)
106-timer.t TEST 18: chained timers (non-zero delay) - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:24:47 [alert] 27773\#0: worker process 28166 exited on signal 11" (req 1) 2020/10/27 05:24:47 [debug] 27773\#0: shmtx forced unlock
2020/10/27 05:24:47 [debug] 27773\#0: wake up, sigio 0
2020/10/27 05:24:47 [debug] 27773\#0: reap children
2020/10/27 05:24:47 [debug] 27773\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:24:47 [debug] 27773\#0: child: 1 28166 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:24:47 [debug] 27773\#0: channel 3:4
2020/10/27 05:24:47 [notice] 27773\#0: start worker process 28167
2020/10/27 05:24:47 [debug] 27773\#0: sigsuspend
2020/10/27 05:24:47 [debug] 28167\#0: malloc: 08D58FB0:12
'
106-timer.t TEST 3: lua variable sharing via upvalue - status code ok got: ''
expected: '200'
106-timer.t TEST 3: lua variable sharing via upvalue - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-registered timer
-foo = 3
'
106-timer.t TEST 3: lua variable sharing via upvalue - pattern "(?^:\[lua\] content_by_lua\(nginx\.conf:\d+\):\d+: elapsed: 0\.0(?:4[4-9]|5[0-6]))" should match a line in error.log (req 0)
106-timer.t TEST 3: lua variable sharing via upvalue - pattern "stream lua ngx.timer expired" should match a line in error.log (req 0)
106-timer.t TEST 3: lua variable sharing via upvalue - pattern "stream lua close fake stream connection" should match a line in error.log (req 0)
106-timer.t TEST 3: lua variable sharing via upvalue - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:24:49 [alert] 27773\#0: worker process 28174 exited on signal 11" (req 0) 2020/10/27 05:24:49 [debug] 27773\#0: shmtx forced unlock
2020/10/27 05:24:49 [debug] 27773\#0: wake up, sigio 0
2020/10/27 05:24:49 [debug] 27773\#0: reap children
2020/10/27 05:24:49 [debug] 27773\#0: child: 0 28174 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:24:49 [debug] 27773\#0: channel 3:4
2020/10/27 05:24:49 [notice] 27773\#0: start worker process 28196
2020/10/27 05:24:49 [debug] 27773\#0: sigsuspend
2020/10/27 05:24:49 [debug] 28196\#0: malloc: 08D5D858:12
2020/10/27 05:24:49 [debug] 28196\#0: malloc: 08D62078:8
'
106-timer.t TEST 3: lua variable sharing via upvalue - status code ok got: ''
expected: '200'
106-timer.t TEST 3: lua variable sharing via upvalue - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-registered timer
-foo = 3
'
106-timer.t TEST 3: lua variable sharing via upvalue - pattern "(?^:\[lua\] content_by_lua\(nginx\.conf:\d+\):\d+: elapsed: 0\.0(?:4[4-9]|5[0-6]))" should match a line in error.log (req 1)
106-timer.t TEST 3: lua variable sharing via upvalue - pattern "stream lua ngx.timer expired" should match a line in error.log (req 1)
106-timer.t TEST 3: lua variable sharing via upvalue - pattern "stream lua close fake stream connection" should match a line in error.log (req 1)
106-timer.t TEST 3: lua variable sharing via upvalue - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:24:49 [alert] 27773\#0: worker process 28196 exited on signal 11" (req 1) 2020/10/27 05:24:49 [debug] 27773\#0: shmtx forced unlock
2020/10/27 05:24:49 [debug] 27773\#0: wake up, sigio 0
2020/10/27 05:24:49 [debug] 27773\#0: reap children
2020/10/27 05:24:49 [debug] 27773\#0: child: 0 28196 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:24:49 [debug] 27773\#0: channel 3:4
2020/10/27 05:24:49 [notice] 27773\#0: start worker process 28197
2020/10/27 05:24:49 [debug] 27773\#0: sigsuspend
2020/10/27 05:24:49 [debug] 28197\#0: malloc: 08D5D858:12
2020/10/27 05:24:49 [debug] 28197\#0: malloc: 08D62078:8
'
106-timer.t TEST 25: lua_max_running_timers (just enough) - status code ok got: ''
expected: '200'
106-timer.t TEST 25: lua_max_running_timers (just enough) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'registered timer
'
106-timer.t TEST 25: lua_max_running_timers (just enough) - pattern "stream lua close fake stream connection" should match a line in error.log (req 0)
106-timer.t TEST 25: lua_max_running_timers (just enough) - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:24:51 [alert] 27773\#0: worker process 28204 exited on signal 11" (req 0) 2020/10/27 05:24:51 [debug] 27773\#0: shmtx forced unlock
2020/10/27 05:24:51 [debug] 27773\#0: wake up, sigio 0
2020/10/27 05:24:51 [debug] 27773\#0: reap children
2020/10/27 05:24:51 [debug] 27773\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:24:51 [debug] 27773\#0: child: 1 28204 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:24:51 [debug] 27773\#0: channel 3:4
2020/10/27 05:24:51 [notice] 27773\#0: start worker process 28226
2020/10/27 05:24:51 [debug] 27773\#0: sigsuspend
2020/10/27 05:24:51 [debug] 28226\#0: malloc: 08D58FB0:12
'
106-timer.t TEST 25: lua_max_running_timers (just enough) - status code ok got: ''
expected: '200'
106-timer.t TEST 25: lua_max_running_timers (just enough) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'registered timer
'
106-timer.t TEST 25: lua_max_running_timers (just enough) - pattern "stream lua close fake stream connection" should match a line in error.log (req 1)
106-timer.t TEST 25: lua_max_running_timers (just enough) - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:24:51 [alert] 27773\#0: worker process 28226 exited on signal 11" (req 1) 2020/10/27 05:24:51 [debug] 27773\#0: shmtx forced unlock
2020/10/27 05:24:51 [debug] 27773\#0: wake up, sigio 0
2020/10/27 05:24:51 [debug] 27773\#0: reap children
2020/10/27 05:24:51 [debug] 27773\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:24:51 [debug] 27773\#0: child: 1 28226 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:24:51 [debug] 27773\#0: channel 3:4
2020/10/27 05:24:51 [notice] 27773\#0: start worker process 28227
2020/10/27 05:24:51 [debug] 27773\#0: sigsuspend
2020/10/27 05:24:51 [debug] 28227\#0: malloc: 08D58FB0:12
'
106-timer.t TEST 12: ngx.thread API - status code ok got: ''
expected: '200'
106-timer.t TEST 12: ngx.thread API - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'registered timer
'
106-timer.t TEST 12: ngx.thread API - pattern "lua ngx.timer expired" should match a line in error.log (req 0)
106-timer.t TEST 12: ngx.thread API - pattern "stream lua close fake stream connection" should match a line in error.log (req 0)
106-timer.t TEST 12: ngx.thread API - pattern "hello in thread" should match a line in error.log (req 0)
106-timer.t TEST 12: ngx.thread API - pattern "thread created: zombie" should match a line in error.log (req 0)
106-timer.t TEST 12: ngx.thread API - pattern "wait result: done" should match a line in error.log (req 0)
106-timer.t TEST 12: ngx.thread API - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:24:53 [alert] 27773\#0: worker process 28234 exited on signal 11" (req 0) 2020/10/27 05:24:53 [debug] 27773\#0: shmtx forced unlock
2020/10/27 05:24:53 [debug] 27773\#0: wake up, sigio 0
2020/10/27 05:24:53 [debug] 27773\#0: reap children
2020/10/27 05:24:53 [debug] 27773\#0: child: 0 28234 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:24:53 [debug] 27773\#0: channel 3:4
2020/10/27 05:24:53 [notice] 27773\#0: start worker process 28256
2020/10/27 05:24:53 [debug] 27773\#0: sigsuspend
2020/10/27 05:24:53 [debug] 28256\#0: malloc: 08D5D858:12
2020/10/27 05:24:53 [debug] 28256\#0: malloc: 08D62078:8
'
106-timer.t TEST 12: ngx.thread API - status code ok got: ''
expected: '200'
106-timer.t TEST 12: ngx.thread API - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'registered timer
'
106-timer.t TEST 12: ngx.thread API - pattern "lua ngx.timer expired" should match a line in error.log (req 1)
106-timer.t TEST 12: ngx.thread API - pattern "stream lua close fake stream connection" should match a line in error.log (req 1)
106-timer.t TEST 12: ngx.thread API - pattern "hello in thread" should match a line in error.log (req 1)
106-timer.t TEST 12: ngx.thread API - pattern "thread created: zombie" should match a line in error.log (req 1)
106-timer.t TEST 12: ngx.thread API - pattern "wait result: done" should match a line in error.log (req 1)
106-timer.t TEST 12: ngx.thread API - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:24:53 [alert] 27773\#0: worker process 28256 exited on signal 11" (req 1) 2020/10/27 05:24:53 [debug] 27773\#0: shmtx forced unlock
2020/10/27 05:24:53 [debug] 27773\#0: wake up, sigio 0
2020/10/27 05:24:53 [debug] 27773\#0: reap children
2020/10/27 05:24:53 [debug] 27773\#0: child: 0 28256 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:24:53 [debug] 27773\#0: channel 3:4
2020/10/27 05:24:53 [notice] 27773\#0: start worker process 28257
2020/10/27 05:24:53 [debug] 27773\#0: sigsuspend
2020/10/27 05:24:53 [debug] 28257\#0: malloc: 08D5D858:12
2020/10/27 05:24:53 [debug] 28257\#0: malloc: 08D62078:8
'
106-timer.t TEST 2: separated global env - status code ok got: ''
expected: '200'
106-timer.t TEST 2: separated global env - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-registered timer
-foo = 3
'
106-timer.t TEST 2: separated global env - pattern "(?^:\[lua\] content_by_lua\(nginx\.conf:\d+\):\d+: elapsed: 0\.0(?:4[4-9]|5[0-6]))" should match a line in error.log (req 0)
106-timer.t TEST 2: separated global env - pattern "lua ngx.timer expired" should match a line in error.log (req 0)
106-timer.t TEST 2: separated global env - pattern "stream lua close fake stream connection" should match a line in error.log (req 0)
106-timer.t TEST 2: separated global env - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:24:55 [alert] 27773\#0: worker process 28264 exited on signal 11" (req 0) 2020/10/27 05:24:55 [debug] 27773\#0: shmtx forced unlock
2020/10/27 05:24:55 [debug] 27773\#0: wake up, sigio 0
2020/10/27 05:24:55 [debug] 27773\#0: reap children
2020/10/27 05:24:55 [debug] 27773\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:24:55 [debug] 27773\#0: child: 1 28264 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:24:55 [debug] 27773\#0: channel 3:4
2020/10/27 05:24:55 [notice] 27773\#0: start worker process 28286
2020/10/27 05:24:55 [debug] 27773\#0: sigsuspend
2020/10/27 05:24:55 [debug] 28286\#0: malloc: 08D58FB0:12
'
106-timer.t TEST 2: separated global env - status code ok got: ''
expected: '200'
106-timer.t TEST 2: separated global env - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-registered timer
-foo = 3
'
106-timer.t TEST 2: separated global env - pattern "(?^:\[lua\] content_by_lua\(nginx\.conf:\d+\):\d+: elapsed: 0\.0(?:4[4-9]|5[0-6]))" should match a line in error.log (req 1)
106-timer.t TEST 2: separated global env - pattern "lua ngx.timer expired" should match a line in error.log (req 1)
106-timer.t TEST 2: separated global env - pattern "stream lua close fake stream connection" should match a line in error.log (req 1)
106-timer.t TEST 2: separated global env - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:24:55 [alert] 27773\#0: worker process 28286 exited on signal 11" (req 1) 2020/10/27 05:24:55 [debug] 27773\#0: shmtx forced unlock
2020/10/27 05:24:55 [debug] 27773\#0: wake up, sigio 0
2020/10/27 05:24:55 [debug] 27773\#0: reap children
2020/10/27 05:24:55 [debug] 27773\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:24:55 [debug] 27773\#0: child: 1 28286 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:24:55 [debug] 27773\#0: channel 3:4
2020/10/27 05:24:55 [notice] 27773\#0: start worker process 28287
2020/10/27 05:24:55 [debug] 27773\#0: sigsuspend
2020/10/27 05:24:55 [debug] 28287\#0: malloc: 08D58FB0:12
'
106-timer.t TEST 22: lua_max_pending_timers - chained timers (non-zero delay) - not exceeding - status code ok got: ''
expected: '200'
106-timer.t TEST 22: lua_max_pending_timers - chained timers (non-zero delay) - not exceeding - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'registered timer
'
106-timer.t TEST 22: lua_max_pending_timers - chained timers (non-zero delay) - not exceeding - pattern "lua ngx.timer expired" should match a line in error.log (req 0)
106-timer.t TEST 22: lua_max_pending_timers - chained timers (non-zero delay) - not exceeding - pattern "stream lua close fake stream connection" should match a line in error.log (req 0)
106-timer.t TEST 22: lua_max_pending_timers - chained timers (non-zero delay) - not exceeding - pattern "trace: [m][f][g]" should match a line in error.log (req 0)
106-timer.t TEST 22: lua_max_pending_timers - chained timers (non-zero delay) - not exceeding - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:24:57 [alert] 27773\#0: worker process 28294 exited on signal 11" (req 0) 2020/10/27 05:24:57 [debug] 27773\#0: shmtx forced unlock
2020/10/27 05:24:57 [debug] 27773\#0: wake up, sigio 0
2020/10/27 05:24:57 [debug] 27773\#0: reap children
2020/10/27 05:24:57 [debug] 27773\#0: child: 0 28294 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:24:57 [debug] 27773\#0: channel 3:4
2020/10/27 05:24:57 [notice] 27773\#0: start worker process 28316
2020/10/27 05:24:57 [debug] 27773\#0: sigsuspend
2020/10/27 05:24:57 [debug] 28316\#0: malloc: 08D5D858:12
2020/10/27 05:24:57 [debug] 28316\#0: malloc: 08D62078:8
'
106-timer.t TEST 22: lua_max_pending_timers - chained timers (non-zero delay) - not exceeding - status code ok got: ''
expected: '200'
106-timer.t TEST 22: lua_max_pending_timers - chained timers (non-zero delay) - not exceeding - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'registered timer
'
106-timer.t TEST 22: lua_max_pending_timers - chained timers (non-zero delay) - not exceeding - pattern "lua ngx.timer expired" should match a line in error.log (req 1)
106-timer.t TEST 22: lua_max_pending_timers - chained timers (non-zero delay) - not exceeding - pattern "stream lua close fake stream connection" should match a line in error.log (req 1)
106-timer.t TEST 22: lua_max_pending_timers - chained timers (non-zero delay) - not exceeding - pattern "trace: [m][f][g]" should match a line in error.log (req 1)
106-timer.t TEST 22: lua_max_pending_timers - chained timers (non-zero delay) - not exceeding - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:24:57 [alert] 27773\#0: worker process 28316 exited on signal 11" (req 1) 2020/10/27 05:24:57 [debug] 27773\#0: shmtx forced unlock
2020/10/27 05:24:57 [debug] 27773\#0: wake up, sigio 0
2020/10/27 05:24:57 [debug] 27773\#0: reap children
2020/10/27 05:24:57 [debug] 27773\#0: child: 0 28316 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:24:57 [debug] 27773\#0: channel 3:4
2020/10/27 05:24:57 [notice] 27773\#0: start worker process 28317
2020/10/27 05:24:57 [debug] 27773\#0: sigsuspend
2020/10/27 05:24:57 [debug] 28317\#0: malloc: 08D5D858:12
2020/10/27 05:24:57 [debug] 28317\#0: malloc: 08D62078:8
'
106-timer.t TEST 5: tcp cosocket in timer handler (short connections) - status code ok got: ''
expected: '200'
106-timer.t TEST 5: tcp cosocket in timer handler (short connections) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'registered timer
'
106-timer.t TEST 5: tcp cosocket in timer handler (short connections) - pattern "(?^:\[lua\] .*? my lua timer handler)" should match a line in error.log (req 0)
106-timer.t TEST 5: tcp cosocket in timer handler (short connections) - pattern "lua ngx.timer expired" should match a line in error.log (req 0)
106-timer.t TEST 5: tcp cosocket in timer handler (short connections) - pattern "stream lua close fake stream connection" should match a line in error.log (req 0)
106-timer.t TEST 5: tcp cosocket in timer handler (short connections) - pattern "connected: 1" should match a line in error.log (req 0)
106-timer.t TEST 5: tcp cosocket in timer handler (short connections) - pattern "request sent: 57" should match a line in error.log (req 0)
106-timer.t TEST 5: tcp cosocket in timer handler (short connections) - pattern "received: HTTP/1.1 200 OK" should match a line in error.log (req 0)
106-timer.t TEST 5: tcp cosocket in timer handler (short connections) - pattern "(?^:received: Server: \S+)" should match a line in error.log (req 0)
106-timer.t TEST 5: tcp cosocket in timer handler (short connections) - pattern "received: Content-Type: text/plain" should match a line in error.log (req 0)
106-timer.t TEST 5: tcp cosocket in timer handler (short connections) - pattern "received: Content-Length: 4" should match a line in error.log (req 0)
106-timer.t TEST 5: tcp cosocket in timer handler (short connections) - pattern "received: Connection: close" should match a line in error.log (req 0)
106-timer.t TEST 5: tcp cosocket in timer handler (short connections) - pattern "received: foo" should match a line in error.log (req 0)
106-timer.t TEST 5: tcp cosocket in timer handler (short connections) - pattern "close: 1 nil" should match a line in error.log (req 0)
106-timer.t TEST 5: tcp cosocket in timer handler (short connections) - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:24:59 [alert] 27773\#0: worker process 28324 exited on signal 11" (req 0) 2020/10/27 05:24:59 [debug] 27773\#0: shmtx forced unlock
2020/10/27 05:24:59 [debug] 27773\#0: wake up, sigio 0
2020/10/27 05:24:59 [debug] 27773\#0: reap children
2020/10/27 05:24:59 [debug] 27773\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:24:59 [debug] 27773\#0: child: 1 28324 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:24:59 [debug] 27773\#0: channel 3:4
2020/10/27 05:24:59 [notice] 27773\#0: start worker process 28346
2020/10/27 05:24:59 [debug] 27773\#0: sigsuspend
2020/10/27 05:24:59 [debug] 28346\#0: malloc: 08D58FB0:12
'
106-timer.t TEST 5: tcp cosocket in timer handler (short connections) - status code ok got: ''
expected: '200'
106-timer.t TEST 5: tcp cosocket in timer handler (short connections) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'registered timer
'
106-timer.t TEST 5: tcp cosocket in timer handler (short connections) - pattern "(?^:\[lua\] .*? my lua timer handler)" should match a line in error.log (req 1)
106-timer.t TEST 5: tcp cosocket in timer handler (short connections) - pattern "lua ngx.timer expired" should match a line in error.log (req 1)
106-timer.t TEST 5: tcp cosocket in timer handler (short connections) - pattern "stream lua close fake stream connection" should match a line in error.log (req 1)
106-timer.t TEST 5: tcp cosocket in timer handler (short connections) - pattern "connected: 1" should match a line in error.log (req 1)
106-timer.t TEST 5: tcp cosocket in timer handler (short connections) - pattern "request sent: 57" should match a line in error.log (req 1)
106-timer.t TEST 5: tcp cosocket in timer handler (short connections) - pattern "received: HTTP/1.1 200 OK" should match a line in error.log (req 1)
106-timer.t TEST 5: tcp cosocket in timer handler (short connections) - pattern "(?^:received: Server: \S+)" should match a line in error.log (req 1)
106-timer.t TEST 5: tcp cosocket in timer handler (short connections) - pattern "received: Content-Type: text/plain" should match a line in error.log (req 1)
106-timer.t TEST 5: tcp cosocket in timer handler (short connections) - pattern "received: Content-Length: 4" should match a line in error.log (req 1)
106-timer.t TEST 5: tcp cosocket in timer handler (short connections) - pattern "received: Connection: close" should match a line in error.log (req 1)
106-timer.t TEST 5: tcp cosocket in timer handler (short connections) - pattern "received: foo" should match a line in error.log (req 1)
106-timer.t TEST 5: tcp cosocket in timer handler (short connections) - pattern "close: 1 nil" should match a line in error.log (req 1)
106-timer.t TEST 5: tcp cosocket in timer handler (short connections) - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:25:00 [alert] 27773\#0: worker process 28346 exited on signal 11" (req 1) 2020/10/27 05:25:00 [debug] 27773\#0: shmtx forced unlock
2020/10/27 05:25:00 [debug] 27773\#0: wake up, sigio 0
2020/10/27 05:25:00 [debug] 27773\#0: reap children
2020/10/27 05:25:00 [debug] 27773\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:25:00 [debug] 27773\#0: child: 1 28346 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:25:00 [debug] 27773\#0: channel 3:4
2020/10/27 05:25:00 [notice] 27773\#0: start worker process 28347
2020/10/27 05:25:00 [debug] 27773\#0: sigsuspend
2020/10/27 05:25:00 [debug] 28347\#0: malloc: 08D58FB0:12
'
106-timer.t TEST 27: user args - status code ok got: ''
expected: '200'
106-timer.t TEST 27: user args - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'registered timer
'
106-timer.t TEST 27: user args - pattern "(?^:\[lua\] content_by_lua\(nginx\.conf:\d+\):\d+: elapsed: 0\.0(?:4[4-9]|5[0-6])\d*, context: ngx\.timer)" should match a line in error.log (req 0)
106-timer.t TEST 27: user args - pattern "lua ngx.timer expired" should match a line in error.log (req 0)
106-timer.t TEST 27: user args - pattern "stream lua close fake stream connection" should match a line in error.log (req 0)
106-timer.t TEST 27: user args - pattern "timer prematurely expired: false" should match a line in error.log (req 0)
106-timer.t TEST 27: user args - pattern "timer user args: 1 hello true" should match a line in error.log (req 0)
106-timer.t TEST 27: user args - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:25:02 [alert] 27773\#0: worker process 28354 exited on signal 11" (req 0) 2020/10/27 05:25:02 [debug] 27773\#0: shmtx forced unlock
2020/10/27 05:25:02 [debug] 27773\#0: wake up, sigio 0
2020/10/27 05:25:02 [debug] 27773\#0: reap children
2020/10/27 05:25:02 [debug] 27773\#0: child: 0 28354 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:25:02 [debug] 27773\#0: channel 3:4
2020/10/27 05:25:02 [notice] 27773\#0: start worker process 28376
2020/10/27 05:25:02 [debug] 27773\#0: sigsuspend
2020/10/27 05:25:02 [debug] 28376\#0: malloc: 08D5D858:12
2020/10/27 05:25:02 [debug] 28376\#0: malloc: 08D62078:8
'
106-timer.t TEST 27: user args - status code ok got: ''
expected: '200'
106-timer.t TEST 27: user args - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'registered timer
'
106-timer.t TEST 27: user args - pattern "(?^:\[lua\] content_by_lua\(nginx\.conf:\d+\):\d+: elapsed: 0\.0(?:4[4-9]|5[0-6])\d*, context: ngx\.timer)" should match a line in error.log (req 1)
106-timer.t TEST 27: user args - pattern "lua ngx.timer expired" should match a line in error.log (req 1)
106-timer.t TEST 27: user args - pattern "stream lua close fake stream connection" should match a line in error.log (req 1)
106-timer.t TEST 27: user args - pattern "timer prematurely expired: false" should match a line in error.log (req 1)
106-timer.t TEST 27: user args - pattern "timer user args: 1 hello true" should match a line in error.log (req 1)
106-timer.t TEST 27: user args - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:25:02 [alert] 27773\#0: worker process 28376 exited on signal 11" (req 1) 2020/10/27 05:25:02 [debug] 27773\#0: shmtx forced unlock
2020/10/27 05:25:02 [debug] 27773\#0: wake up, sigio 0
2020/10/27 05:25:02 [debug] 27773\#0: reap children
2020/10/27 05:25:02 [debug] 27773\#0: child: 0 28376 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:25:02 [debug] 27773\#0: channel 3:4
2020/10/27 05:25:02 [notice] 27773\#0: start worker process 28377
2020/10/27 05:25:02 [debug] 27773\#0: sigsuspend
2020/10/27 05:25:02 [debug] 28377\#0: malloc: 08D5D858:12
2020/10/27 05:25:02 [debug] 28377\#0: malloc: 08D62078:8
'
106-timer.t TEST 8: udp cosocket in timer handler - status code ok got: ''
expected: '200'
106-timer.t TEST 8: udp cosocket in timer handler - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'registered timer
'
106-timer.t TEST 8: udp cosocket in timer handler - pattern "(?^:\[lua\] .*? my lua timer handler)" should match a line in error.log (req 0)
106-timer.t TEST 8: udp cosocket in timer handler - pattern "lua ngx.timer expired" should match a line in error.log (req 0)
106-timer.t TEST 8: udp cosocket in timer handler - pattern "stream lua close fake stream connection" should match a line in error.log (req 0)
106-timer.t TEST 8: udp cosocket in timer handler - pattern "connected: 1" should match a line in error.log (req 0)
106-timer.t TEST 8: udp cosocket in timer handler - pattern "received 12 bytes: OK " should match a line in error.log (req 0)'
106-timer.t TEST 8: udp cosocket in timer handler - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:25:04 [alert] 27773\#0: worker process 28384 exited on signal 11" (req 0) 2020/10/27 05:25:04 [debug] 27773\#0: shmtx forced unlock
2020/10/27 05:25:04 [debug] 27773\#0: wake up, sigio 0
2020/10/27 05:25:04 [debug] 27773\#0: reap children
2020/10/27 05:25:04 [debug] 27773\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:25:04 [debug] 27773\#0: child: 1 28384 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:25:04 [debug] 27773\#0: channel 3:4
2020/10/27 05:25:04 [notice] 27773\#0: start worker process 28406
2020/10/27 05:25:04 [debug] 27773\#0: sigsuspend
2020/10/27 05:25:04 [debug] 28406\#0: malloc: 08D58FB0:12
'
106-timer.t TEST 8: udp cosocket in timer handler - status code ok got: ''
expected: '200'
106-timer.t TEST 8: udp cosocket in timer handler - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'registered timer
'
106-timer.t TEST 8: udp cosocket in timer handler - pattern "(?^:\[lua\] .*? my lua timer handler)" should match a line in error.log (req 1)
106-timer.t TEST 8: udp cosocket in timer handler - pattern "lua ngx.timer expired" should match a line in error.log (req 1)
106-timer.t TEST 8: udp cosocket in timer handler - pattern "stream lua close fake stream connection" should match a line in error.log (req 1)
106-timer.t TEST 8: udp cosocket in timer handler - pattern "connected: 1" should match a line in error.log (req 1)
106-timer.t TEST 8: udp cosocket in timer handler - pattern "received 12 bytes: OK " should match a line in error.log (req 1)'
106-timer.t TEST 8: udp cosocket in timer handler - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:25:04 [alert] 27773\#0: worker process 28406 exited on signal 11" (req 1) 2020/10/27 05:25:04 [debug] 27773\#0: shmtx forced unlock
2020/10/27 05:25:04 [debug] 27773\#0: wake up, sigio 0
2020/10/27 05:25:04 [debug] 27773\#0: reap children
2020/10/27 05:25:04 [debug] 27773\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:25:04 [debug] 27773\#0: child: 1 28406 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:25:04 [debug] 27773\#0: channel 3:4
2020/10/27 05:25:04 [notice] 27773\#0: start worker process 28407
2020/10/27 05:25:04 [debug] 27773\#0: sigsuspend
2020/10/27 05:25:04 [debug] 28407\#0: malloc: 08D58FB0:12
'
106-timer.t TEST 16: exit in user thread (entry thread is still pending on ngx.sleep) - status code ok got: ''
expected: '200'
106-timer.t TEST 16: exit in user thread (entry thread is still pending on ngx.sleep) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'registered timer
'
106-timer.t TEST 16: exit in user thread (entry thread is still pending on ngx.sleep) - pattern "lua ngx.timer expired" should match a line in error.log (req 0)
106-timer.t TEST 16: exit in user thread (entry thread is still pending on ngx.sleep) - pattern "stream lua close fake stream connection" should match a line in error.log (req 0)
106-timer.t TEST 16: exit in user thread (entry thread is still pending on ngx.sleep) - pattern "BEFORE thread spawn" should match a line in error.log (req 0)
106-timer.t TEST 16: exit in user thread (entry thread is still pending on ngx.sleep) - pattern "hello in thread" should match a line in error.log (req 0)
106-timer.t TEST 16: exit in user thread (entry thread is still pending on ngx.sleep) - pattern "AFTER thread spawn" should match a line in error.log (req 0)
106-timer.t TEST 16: exit in user thread (entry thread is still pending on ngx.sleep) - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:25:06 [alert] 27773\#0: worker process 28414 exited on signal 11" (req 0) 2020/10/27 05:25:06 [debug] 27773\#0: shmtx forced unlock
2020/10/27 05:25:06 [debug] 27773\#0: wake up, sigio 0
2020/10/27 05:25:06 [debug] 27773\#0: reap children
2020/10/27 05:25:06 [debug] 27773\#0: child: 0 28414 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:25:06 [debug] 27773\#0: channel 3:4
2020/10/27 05:25:06 [notice] 27773\#0: start worker process 28436
2020/10/27 05:25:06 [debug] 27773\#0: sigsuspend
2020/10/27 05:25:06 [debug] 28436\#0: malloc: 08D5D858:12
2020/10/27 05:25:06 [debug] 28436\#0: malloc: 08D62078:8
'
106-timer.t TEST 16: exit in user thread (entry thread is still pending on ngx.sleep) - status code ok got: ''
expected: '200'
106-timer.t TEST 16: exit in user thread (entry thread is still pending on ngx.sleep) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'registered timer
'
106-timer.t TEST 16: exit in user thread (entry thread is still pending on ngx.sleep) - pattern "lua ngx.timer expired" should match a line in error.log (req 1)
106-timer.t TEST 16: exit in user thread (entry thread is still pending on ngx.sleep) - pattern "stream lua close fake stream connection" should match a line in error.log (req 1)
106-timer.t TEST 16: exit in user thread (entry thread is still pending on ngx.sleep) - pattern "BEFORE thread spawn" should match a line in error.log (req 1)
106-timer.t TEST 16: exit in user thread (entry thread is still pending on ngx.sleep) - pattern "hello in thread" should match a line in error.log (req 1)
106-timer.t TEST 16: exit in user thread (entry thread is still pending on ngx.sleep) - pattern "AFTER thread spawn" should match a line in error.log (req 1)
106-timer.t TEST 16: exit in user thread (entry thread is still pending on ngx.sleep) - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:25:07 [alert] 27773\#0: worker process 28436 exited on signal 11" (req 1) 2020/10/27 05:25:07 [debug] 27773\#0: shmtx forced unlock
2020/10/27 05:25:07 [debug] 27773\#0: wake up, sigio 0
2020/10/27 05:25:07 [debug] 27773\#0: reap children
2020/10/27 05:25:07 [debug] 27773\#0: child: 0 28436 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:25:07 [debug] 27773\#0: channel 3:4
2020/10/27 05:25:07 [notice] 27773\#0: start worker process 28437
2020/10/27 05:25:07 [debug] 27773\#0: sigsuspend
2020/10/27 05:25:07 [debug] 28437\#0: malloc: 08D5D858:12
2020/10/27 05:25:07 [debug] 28437\#0: malloc: 08D62078:8
'
106-timer.t TEST 23: lua_max_pending_timers - chained timers (zero delay) - not exceeding - status code ok got: ''
expected: '200'
106-timer.t TEST 23: lua_max_pending_timers - chained timers (zero delay) - not exceeding - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'registered timer
'
106-timer.t TEST 23: lua_max_pending_timers - chained timers (zero delay) - not exceeding - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:25:08 [alert] 27773\#0: worker process 28444 exited on signal 11" (req 0) 2020/10/27 05:25:08 [debug] 27773\#0: shmtx forced unlock
2020/10/27 05:25:08 [debug] 27773\#0: wake up, sigio 0
2020/10/27 05:25:08 [debug] 27773\#0: reap children
2020/10/27 05:25:08 [debug] 27773\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:25:08 [debug] 27773\#0: child: 1 28444 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:25:08 [debug] 27773\#0: channel 3:4
2020/10/27 05:25:08 [notice] 27773\#0: start worker process 28466
2020/10/27 05:25:08 [debug] 27773\#0: sigsuspend
2020/10/27 05:25:08 [debug] 28466\#0: malloc: 08D58FB0:12
'
106-timer.t TEST 23: lua_max_pending_timers - chained timers (zero delay) - not exceeding - status code ok got: ''
expected: '200'
106-timer.t TEST 23: lua_max_pending_timers - chained timers (zero delay) - not exceeding - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'registered timer
'
106-timer.t TEST 23: lua_max_pending_timers - chained timers (zero delay) - not exceeding - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:25:09 [alert] 27773\#0: worker process 28466 exited on signal 11" (req 1) 2020/10/27 05:25:09 [debug] 27773\#0: shmtx forced unlock
2020/10/27 05:25:09 [debug] 27773\#0: wake up, sigio 0
2020/10/27 05:25:09 [debug] 27773\#0: reap children
2020/10/27 05:25:09 [debug] 27773\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:25:09 [debug] 27773\#0: child: 1 28466 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:25:09 [debug] 27773\#0: channel 3:4
2020/10/27 05:25:09 [notice] 27773\#0: start worker process 28467
2020/10/27 05:25:09 [debug] 27773\#0: sigsuspend
2020/10/27 05:25:09 [debug] 28467\#0: malloc: 08D58FB0:12
'
106-timer.t TEST 11: coroutine API - status code ok got: ''
expected: '200'
106-timer.t TEST 11: coroutine API - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'registered timer
'
106-timer.t TEST 11: coroutine API - pattern "lua ngx.timer expired" should match a line in error.log (req 0)
106-timer.t TEST 11: coroutine API - pattern "stream lua close fake stream connection" should match a line in error.log (req 0)
106-timer.t TEST 11: coroutine API - pattern "cnt = 0" should match a line in error.log (req 0)
106-timer.t TEST 11: coroutine API - pattern "after resume, i = 1" should match a line in error.log (req 0)
106-timer.t TEST 11: coroutine API - pattern "cnt = 1" should match a line in error.log (req 0)
106-timer.t TEST 11: coroutine API - pattern "after resume, i = 2" should match a line in error.log (req 0)
106-timer.t TEST 11: coroutine API - pattern "cnt = 2" should match a line in error.log (req 0)
106-timer.t TEST 11: coroutine API - pattern "after resume, i = 3" should match a line in error.log (req 0)
106-timer.t TEST 11: coroutine API - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:25:10 [alert] 27773\#0: worker process 28474 exited on signal 11" (req 0) 2020/10/27 05:25:10 [debug] 27773\#0: shmtx forced unlock
2020/10/27 05:25:10 [debug] 27773\#0: wake up, sigio 0
2020/10/27 05:25:10 [debug] 27773\#0: reap children
2020/10/27 05:25:10 [debug] 27773\#0: child: 0 28474 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:25:10 [debug] 27773\#0: channel 3:4
2020/10/27 05:25:10 [notice] 27773\#0: start worker process 28495
2020/10/27 05:25:10 [debug] 27773\#0: sigsuspend
2020/10/27 05:25:10 [debug] 28495\#0: malloc: 08D5D858:12
2020/10/27 05:25:10 [debug] 28495\#0: malloc: 08D62078:8
'
106-timer.t TEST 11: coroutine API - status code ok got: ''
expected: '200'
106-timer.t TEST 11: coroutine API - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'registered timer
'
106-timer.t TEST 11: coroutine API - pattern "lua ngx.timer expired" should match a line in error.log (req 1)
106-timer.t TEST 11: coroutine API - pattern "stream lua close fake stream connection" should match a line in error.log (req 1)
106-timer.t TEST 11: coroutine API - pattern "cnt = 0" should match a line in error.log (req 1)
106-timer.t TEST 11: coroutine API - pattern "after resume, i = 1" should match a line in error.log (req 1)
106-timer.t TEST 11: coroutine API - pattern "cnt = 1" should match a line in error.log (req 1)
106-timer.t TEST 11: coroutine API - pattern "after resume, i = 2" should match a line in error.log (req 1)
106-timer.t TEST 11: coroutine API - pattern "cnt = 2" should match a line in error.log (req 1)
106-timer.t TEST 11: coroutine API - pattern "after resume, i = 3" should match a line in error.log (req 1)
106-timer.t TEST 11: coroutine API - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:25:11 [alert] 27773\#0: worker process 28495 exited on signal 11" (req 1) 2020/10/27 05:25:11 [debug] 27773\#0: shmtx forced unlock
2020/10/27 05:25:11 [debug] 27773\#0: wake up, sigio 0
2020/10/27 05:25:11 [debug] 27773\#0: reap children
2020/10/27 05:25:11 [debug] 27773\#0: child: 0 28495 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:25:11 [debug] 27773\#0: channel 3:4
2020/10/27 05:25:11 [notice] 27773\#0: start worker process 28496
2020/10/27 05:25:11 [debug] 27773\#0: sigsuspend
2020/10/27 05:25:11 [debug] 28496\#0: malloc: 08D5D858:12
2020/10/27 05:25:11 [debug] 28496\#0: malloc: 08D62078:8
'
106-timer.t TEST 32: log function location when failed to run a timer (lua file) - status code ok got: ''
expected: '200'
106-timer.t TEST 32: log function location when failed to run a timer (lua file) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'ok
'
106-timer.t TEST 32: log function location when failed to run a timer (lua file) - status code ok got: ''
expected: '200'
106-timer.t TEST 32: log function location when failed to run a timer (lua file) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'ok
'
106-timer.t TEST 17: chained timers (0 delay) - status code ok got: ''
expected: '200'
106-timer.t TEST 17: chained timers (0 delay) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'registered timer
'
106-timer.t TEST 17: chained timers (0 delay) - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:25:15 [alert] 27773\#0: worker process 28534 exited on signal 11" (req 0) 2020/10/27 05:25:15 [debug] 27773\#0: shmtx forced unlock
2020/10/27 05:25:15 [debug] 27773\#0: wake up, sigio 0
2020/10/27 05:25:15 [debug] 27773\#0: reap children
2020/10/27 05:25:15 [debug] 27773\#0: child: 0 28534 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:25:15 [debug] 27773\#0: channel 3:4
2020/10/27 05:25:15 [notice] 27773\#0: start worker process 28556
2020/10/27 05:25:15 [debug] 27773\#0: sigsuspend
2020/10/27 05:25:15 [debug] 28556\#0: malloc: 08D5D858:12
2020/10/27 05:25:15 [debug] 28556\#0: malloc: 08D62078:8
'
106-timer.t TEST 17: chained timers (0 delay) - status code ok got: ''
expected: '200'
106-timer.t TEST 17: chained timers (0 delay) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'registered timer
'
106-timer.t TEST 17: chained timers (0 delay) - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:25:15 [alert] 27773\#0: worker process 28556 exited on signal 11" (req 1) 2020/10/27 05:25:15 [debug] 27773\#0: shmtx forced unlock
2020/10/27 05:25:15 [debug] 27773\#0: wake up, sigio 0
2020/10/27 05:25:15 [debug] 27773\#0: reap children
2020/10/27 05:25:15 [debug] 27773\#0: child: 0 28556 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:25:15 [debug] 27773\#0: channel 3:4
2020/10/27 05:25:15 [notice] 27773\#0: start worker process 28557
2020/10/27 05:25:15 [debug] 27773\#0: sigsuspend
2020/10/27 05:25:15 [debug] 28557\#0: malloc: 08D5D858:12
2020/10/27 05:25:15 [debug] 28557\#0: malloc: 08D62078:8
'
106-timer.t TEST 24: lua_max_running_timers (just not enough) - status code ok got: ''
expected: '200'
106-timer.t TEST 24: lua_max_running_timers (just not enough) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'registered timer
'
106-timer.t TEST 24: lua_max_running_timers (just not enough) - pattern "stream lua close fake stream connection" should match a line in error.log (req 0)
106-timer.t TEST 24: lua_max_running_timers (just not enough) - status code ok got: ''
expected: '200'
106-timer.t TEST 24: lua_max_running_timers (just not enough) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'registered timer
'
106-timer.t TEST 24: lua_max_running_timers (just not enough) - pattern "stream lua close fake stream connection" should match a line in error.log (req 1)
106-timer.t TEST 14: ngx.exit(0) - status code ok got: ''
expected: '200'
106-timer.t TEST 14: ngx.exit(0) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'registered timer
'
106-timer.t TEST 14: ngx.exit(0) - pattern "lua ngx.timer expired" should match a line in error.log (req 0)
106-timer.t TEST 14: ngx.exit(0) - pattern "stream lua close fake stream connection" should match a line in error.log (req 0)
106-timer.t TEST 14: ngx.exit(0) - pattern "BEFORE ngx.exit" should match a line in error.log (req 0)
106-timer.t TEST 14: ngx.exit(0) - status code ok got: ''
expected: '200'
106-timer.t TEST 14: ngx.exit(0) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'registered timer
'
106-timer.t TEST 14: ngx.exit(0) - pattern "lua ngx.timer expired" should match a line in error.log (req 1)
106-timer.t TEST 14: ngx.exit(0) - pattern "stream lua close fake stream connection" should match a line in error.log (req 1)
106-timer.t TEST 14: ngx.exit(0) - pattern "BEFORE ngx.exit" should match a line in error.log (req 1)
107-timer-errors.t TEST 3: ngx.flush() - status code ok got: ''
expected: '200'
107-timer-errors.t TEST 3: ngx.flush() - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'registered timer
'
107-timer-errors.t TEST 3: ngx.flush() - pattern "(?^:\[error\] .*? runtime error: content_by_lua\(nginx\.conf:\d+\):3: API disabled in the context of ngx\.timer)" should match a line in error.log (req 0)
107-timer-errors.t TEST 3: ngx.flush() - pattern "lua ngx.timer expired" should match a line in error.log (req 0)
107-timer-errors.t TEST 3: ngx.flush() - pattern "stream lua close fake stream connection" should match a line in error.log (req 0)
107-timer-errors.t TEST 3: ngx.flush() - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:25:22 [alert] 28658\#0: worker process 28659 exited on signal 11" (req 0) 2020/10/27 05:25:22 [debug] 28658\#0: shmtx forced unlock
2020/10/27 05:25:22 [debug] 28658\#0: wake up, sigio 0
2020/10/27 05:25:22 [debug] 28658\#0: reap children
2020/10/27 05:25:22 [debug] 28658\#0: child: 0 28659 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:25:22 [debug] 28658\#0: channel 3:9
2020/10/27 05:25:22 [notice] 28658\#0: start worker process 28660
2020/10/27 05:25:22 [debug] 28658\#0: sigsuspend
2020/10/27 05:25:22 [debug] 28660\#0: malloc: 09B9D710:12
2020/10/27 05:25:22 [debug] 28660\#0: malloc: 09BA1EE0:8
'
107-timer-errors.t TEST 3: ngx.flush() - status code ok got: ''
expected: '200'
107-timer-errors.t TEST 3: ngx.flush() - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'registered timer
'
107-timer-errors.t TEST 3: ngx.flush() - pattern "(?^:\[error\] .*? runtime error: content_by_lua\(nginx\.conf:\d+\):3: API disabled in the context of ngx\.timer)" should match a line in error.log (req 1)
107-timer-errors.t TEST 3: ngx.flush() - pattern "lua ngx.timer expired" should match a line in error.log (req 1)
107-timer-errors.t TEST 3: ngx.flush() - pattern "stream lua close fake stream connection" should match a line in error.log (req 1)
107-timer-errors.t TEST 3: ngx.flush() - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:25:22 [alert] 28658\#0: worker process 28660 exited on signal 11" (req 1) 2020/10/27 05:25:22 [debug] 28658\#0: shmtx forced unlock
2020/10/27 05:25:22 [debug] 28658\#0: wake up, sigio 0
2020/10/27 05:25:22 [debug] 28658\#0: reap children
2020/10/27 05:25:22 [debug] 28658\#0: child: 0 28660 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:25:22 [debug] 28658\#0: channel 3:9
2020/10/27 05:25:22 [notice] 28658\#0: start worker process 28661
2020/10/27 05:25:22 [debug] 28658\#0: sigsuspend
2020/10/27 05:25:22 [debug] 28661\#0: malloc: 09B9D710:12
2020/10/27 05:25:22 [debug] 28661\#0: malloc: 09BA1EE0:8
'
107-timer-errors.t TEST 1: ngx.say() - status code ok got: ''
expected: '200'
107-timer-errors.t TEST 1: ngx.say() - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'registered timer
'
107-timer-errors.t TEST 1: ngx.say() - pattern "(?^:\[error\] .*? runtime error: content_by_lua\(nginx\.conf:\d+\):3: API disabled in the context of ngx\.timer)" should match a line in error.log (req 0)
107-timer-errors.t TEST 1: ngx.say() - pattern "lua ngx.timer expired" should match a line in error.log (req 0)
107-timer-errors.t TEST 1: ngx.say() - pattern "stream lua close fake stream connection" should match a line in error.log (req 0)
107-timer-errors.t TEST 1: ngx.say() - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:25:24 [alert] 28658\#0: worker process 28668 exited on signal 11" (req 0) 2020/10/27 05:25:24 [debug] 28658\#0: shmtx forced unlock
2020/10/27 05:25:24 [debug] 28658\#0: wake up, sigio 0
2020/10/27 05:25:24 [debug] 28658\#0: reap children
2020/10/27 05:25:24 [debug] 28658\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:25:24 [debug] 28658\#0: child: 1 28668 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:25:24 [debug] 28658\#0: channel 3:4
2020/10/27 05:25:24 [notice] 28658\#0: start worker process 28690
2020/10/27 05:25:24 [debug] 28658\#0: sigsuspend
2020/10/27 05:25:24 [debug] 28690\#0: malloc: 09B98FB0:12
'
107-timer-errors.t TEST 1: ngx.say() - status code ok got: ''
expected: '200'
107-timer-errors.t TEST 1: ngx.say() - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'registered timer
'
107-timer-errors.t TEST 1: ngx.say() - pattern "(?^:\[error\] .*? runtime error: content_by_lua\(nginx\.conf:\d+\):3: API disabled in the context of ngx\.timer)" should match a line in error.log (req 1)
107-timer-errors.t TEST 1: ngx.say() - pattern "lua ngx.timer expired" should match a line in error.log (req 1)
107-timer-errors.t TEST 1: ngx.say() - pattern "stream lua close fake stream connection" should match a line in error.log (req 1)
107-timer-errors.t TEST 1: ngx.say() - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:25:24 [alert] 28658\#0: worker process 28690 exited on signal 11" (req 1) 2020/10/27 05:25:24 [debug] 28658\#0: shmtx forced unlock
2020/10/27 05:25:24 [debug] 28658\#0: wake up, sigio 0
2020/10/27 05:25:24 [debug] 28658\#0: reap children
2020/10/27 05:25:24 [debug] 28658\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:25:24 [debug] 28658\#0: child: 1 28690 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:25:24 [debug] 28658\#0: channel 3:4
2020/10/27 05:25:24 [notice] 28658\#0: start worker process 28691
2020/10/27 05:25:24 [debug] 28658\#0: sigsuspend
2020/10/27 05:25:24 [debug] 28691\#0: malloc: 09B98FB0:12
'
107-timer-errors.t TEST 6: ngx.req.socket - status code ok got: ''
expected: '200'
107-timer-errors.t TEST 6: ngx.req.socket - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'registered timer
'
107-timer-errors.t TEST 6: ngx.req.socket - pattern "(?^:\[error\] .*? runtime error: content_by_lua\(nginx\.conf:\d+\):3: API disabled in the context of ngx\.timer)" should match a line in error.log (req 0)
107-timer-errors.t TEST 6: ngx.req.socket - pattern "lua ngx.timer expired" should match a line in error.log (req 0)
107-timer-errors.t TEST 6: ngx.req.socket - pattern "stream lua close fake stream connection" should match a line in error.log (req 0)
107-timer-errors.t TEST 6: ngx.req.socket - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:25:26 [alert] 28658\#0: worker process 28698 exited on signal 11" (req 0) 2020/10/27 05:25:26 [debug] 28658\#0: shmtx forced unlock
2020/10/27 05:25:26 [debug] 28658\#0: wake up, sigio 0
2020/10/27 05:25:26 [debug] 28658\#0: reap children
2020/10/27 05:25:26 [debug] 28658\#0: child: 0 28698 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:25:26 [debug] 28658\#0: channel 3:4
2020/10/27 05:25:26 [notice] 28658\#0: start worker process 28720
2020/10/27 05:25:26 [debug] 28658\#0: sigsuspend
2020/10/27 05:25:26 [debug] 28720\#0: malloc: 09B9D710:12
2020/10/27 05:25:26 [debug] 28720\#0: malloc: 09BA1EE0:8
'
107-timer-errors.t TEST 6: ngx.req.socket - status code ok got: ''
expected: '200'
107-timer-errors.t TEST 6: ngx.req.socket - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'registered timer
'
107-timer-errors.t TEST 6: ngx.req.socket - pattern "(?^:\[error\] .*? runtime error: content_by_lua\(nginx\.conf:\d+\):3: API disabled in the context of ngx\.timer)" should match a line in error.log (req 1)
107-timer-errors.t TEST 6: ngx.req.socket - pattern "lua ngx.timer expired" should match a line in error.log (req 1)
107-timer-errors.t TEST 6: ngx.req.socket - pattern "stream lua close fake stream connection" should match a line in error.log (req 1)
107-timer-errors.t TEST 6: ngx.req.socket - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:25:26 [alert] 28658\#0: worker process 28720 exited on signal 11" (req 1) 2020/10/27 05:25:26 [debug] 28658\#0: shmtx forced unlock
2020/10/27 05:25:26 [debug] 28658\#0: wake up, sigio 0
2020/10/27 05:25:26 [debug] 28658\#0: reap children
2020/10/27 05:25:26 [debug] 28658\#0: child: 0 28720 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:25:26 [debug] 28658\#0: channel 3:4
2020/10/27 05:25:26 [notice] 28658\#0: start worker process 28721
2020/10/27 05:25:26 [debug] 28658\#0: sigsuspend
2020/10/27 05:25:26 [debug] 28721\#0: malloc: 09B9D710:12
2020/10/27 05:25:26 [debug] 28721\#0: malloc: 09BA1EE0:8
'
107-timer-errors.t TEST 2: ngx.print() - status code ok got: ''
expected: '200'
107-timer-errors.t TEST 2: ngx.print() - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'registered timer
'
107-timer-errors.t TEST 2: ngx.print() - pattern "(?^:\[error\] .*? runtime error: content_by_lua\(nginx\.conf:\d+\):3: API disabled in the context of ngx\.timer)" should match a line in error.log (req 0)
107-timer-errors.t TEST 2: ngx.print() - pattern "lua ngx.timer expired" should match a line in error.log (req 0)
107-timer-errors.t TEST 2: ngx.print() - pattern "stream lua close fake stream connection" should match a line in error.log (req 0)
107-timer-errors.t TEST 2: ngx.print() - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:25:28 [alert] 28658\#0: worker process 28728 exited on signal 11" (req 0) 2020/10/27 05:25:28 [debug] 28658\#0: shmtx forced unlock
2020/10/27 05:25:28 [debug] 28658\#0: wake up, sigio 0
2020/10/27 05:25:28 [debug] 28658\#0: reap children
2020/10/27 05:25:28 [debug] 28658\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:25:28 [debug] 28658\#0: child: 1 28728 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:25:28 [debug] 28658\#0: channel 3:4
2020/10/27 05:25:28 [notice] 28658\#0: start worker process 28750
2020/10/27 05:25:28 [debug] 28658\#0: sigsuspend
2020/10/27 05:25:28 [debug] 28750\#0: malloc: 09B98FB0:12
'
107-timer-errors.t TEST 2: ngx.print() - status code ok got: ''
expected: '200'
107-timer-errors.t TEST 2: ngx.print() - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'registered timer
'
107-timer-errors.t TEST 2: ngx.print() - pattern "(?^:\[error\] .*? runtime error: content_by_lua\(nginx\.conf:\d+\):3: API disabled in the context of ngx\.timer)" should match a line in error.log (req 1)
107-timer-errors.t TEST 2: ngx.print() - pattern "lua ngx.timer expired" should match a line in error.log (req 1)
107-timer-errors.t TEST 2: ngx.print() - pattern "stream lua close fake stream connection" should match a line in error.log (req 1)
107-timer-errors.t TEST 2: ngx.print() - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:25:28 [alert] 28658\#0: worker process 28750 exited on signal 11" (req 1) 2020/10/27 05:25:28 [debug] 28658\#0: shmtx forced unlock
2020/10/27 05:25:28 [debug] 28658\#0: wake up, sigio 0
2020/10/27 05:25:28 [debug] 28658\#0: reap children
2020/10/27 05:25:28 [debug] 28658\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:25:28 [debug] 28658\#0: child: 1 28750 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:25:28 [debug] 28658\#0: channel 3:4
2020/10/27 05:25:28 [notice] 28658\#0: start worker process 28751
2020/10/27 05:25:28 [debug] 28658\#0: sigsuspend
2020/10/27 05:25:28 [debug] 28751\#0: malloc: 09B98FB0:12
'
107-timer-errors.t TEST 5: ngx.eof - status code ok got: ''
expected: '200'
107-timer-errors.t TEST 5: ngx.eof - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'registered timer
'
107-timer-errors.t TEST 5: ngx.eof - pattern "(?^:\[error\] .*? runtime error: content_by_lua\(nginx\.conf:\d+\):3: API disabled in the context of ngx\.timer)" should match a line in error.log (req 0)
107-timer-errors.t TEST 5: ngx.eof - pattern "lua ngx.timer expired" should match a line in error.log (req 0)
107-timer-errors.t TEST 5: ngx.eof - pattern "stream lua close fake stream connection" should match a line in error.log (req 0)
107-timer-errors.t TEST 5: ngx.eof - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:25:30 [alert] 28658\#0: worker process 28758 exited on signal 11" (req 0) 2020/10/27 05:25:30 [debug] 28658\#0: shmtx forced unlock
2020/10/27 05:25:30 [debug] 28658\#0: wake up, sigio 0
2020/10/27 05:25:30 [debug] 28658\#0: reap children
2020/10/27 05:25:30 [debug] 28658\#0: child: 0 28758 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:25:30 [debug] 28658\#0: channel 3:4
2020/10/27 05:25:30 [notice] 28658\#0: start worker process 28780
2020/10/27 05:25:30 [debug] 28658\#0: sigsuspend
2020/10/27 05:25:30 [debug] 28780\#0: malloc: 09B9D710:12
2020/10/27 05:25:30 [debug] 28780\#0: malloc: 09BA1EE0:8
'
107-timer-errors.t TEST 5: ngx.eof - status code ok got: ''
expected: '200'
107-timer-errors.t TEST 5: ngx.eof - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'registered timer
'
107-timer-errors.t TEST 5: ngx.eof - pattern "(?^:\[error\] .*? runtime error: content_by_lua\(nginx\.conf:\d+\):3: API disabled in the context of ngx\.timer)" should match a line in error.log (req 1)
107-timer-errors.t TEST 5: ngx.eof - pattern "lua ngx.timer expired" should match a line in error.log (req 1)
107-timer-errors.t TEST 5: ngx.eof - pattern "stream lua close fake stream connection" should match a line in error.log (req 1)
107-timer-errors.t TEST 5: ngx.eof - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:25:30 [alert] 28658\#0: worker process 28780 exited on signal 11" (req 1) 2020/10/27 05:25:30 [debug] 28658\#0: shmtx forced unlock
2020/10/27 05:25:30 [debug] 28658\#0: wake up, sigio 0
2020/10/27 05:25:30 [debug] 28658\#0: reap children
2020/10/27 05:25:30 [debug] 28658\#0: child: 0 28780 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:25:30 [debug] 28658\#0: channel 3:4
2020/10/27 05:25:30 [notice] 28658\#0: start worker process 28781
2020/10/27 05:25:30 [debug] 28658\#0: sigsuspend
2020/10/27 05:25:30 [debug] 28781\#0: malloc: 09B9D710:12
2020/10/27 05:25:30 [debug] 28781\#0: malloc: 09BA1EE0:8
'
107-timer-errors.t TEST 4: ngx.on_abort - status code ok got: ''
expected: '200'
107-timer-errors.t TEST 4: ngx.on_abort - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'registered timer
'
107-timer-errors.t TEST 4: ngx.on_abort - pattern "(?^:\[error\] .*? runtime error: content_by_lua\(nginx\.conf:\d+\):3: API disabled in the context of ngx\.timer)" should match a line in error.log (req 0)
107-timer-errors.t TEST 4: ngx.on_abort - pattern "lua ngx.timer expired" should match a line in error.log (req 0)
107-timer-errors.t TEST 4: ngx.on_abort - pattern "stream lua close fake stream connection" should match a line in error.log (req 0)
107-timer-errors.t TEST 4: ngx.on_abort - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:25:32 [alert] 28658\#0: worker process 28788 exited on signal 11" (req 0) 2020/10/27 05:25:32 [debug] 28658\#0: shmtx forced unlock
2020/10/27 05:25:32 [debug] 28658\#0: wake up, sigio 0
2020/10/27 05:25:32 [debug] 28658\#0: reap children
2020/10/27 05:25:32 [debug] 28658\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:25:32 [debug] 28658\#0: child: 1 28788 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:25:32 [debug] 28658\#0: channel 3:4
2020/10/27 05:25:32 [notice] 28658\#0: start worker process 28810
2020/10/27 05:25:32 [debug] 28658\#0: sigsuspend
2020/10/27 05:25:32 [debug] 28810\#0: malloc: 09B98FB0:12
'
107-timer-errors.t TEST 4: ngx.on_abort - status code ok got: ''
expected: '200'
107-timer-errors.t TEST 4: ngx.on_abort - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'registered timer
'
107-timer-errors.t TEST 4: ngx.on_abort - pattern "(?^:\[error\] .*? runtime error: content_by_lua\(nginx\.conf:\d+\):3: API disabled in the context of ngx\.timer)" should match a line in error.log (req 1)
107-timer-errors.t TEST 4: ngx.on_abort - pattern "lua ngx.timer expired" should match a line in error.log (req 1)
107-timer-errors.t TEST 4: ngx.on_abort - pattern "stream lua close fake stream connection" should match a line in error.log (req 1)
107-timer-errors.t TEST 4: ngx.on_abort - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:25:32 [alert] 28658\#0: worker process 28810 exited on signal 11" (req 1) 2020/10/27 05:25:32 [debug] 28658\#0: shmtx forced unlock
2020/10/27 05:25:32 [debug] 28658\#0: wake up, sigio 0
2020/10/27 05:25:32 [debug] 28658\#0: reap children
2020/10/27 05:25:32 [debug] 28658\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:25:32 [debug] 28658\#0: child: 1 28810 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:25:32 [debug] 28658\#0: channel 3:4
2020/10/27 05:25:32 [notice] 28658\#0: start worker process 28811
2020/10/27 05:25:32 [debug] 28658\#0: sigsuspend
2020/10/27 05:25:32 [debug] 28811\#0: malloc: 09B98FB0:12
'
108-timer-safe.t TEST 11: shared dict - status code ok got: ''
expected: '200'
108-timer-safe.t TEST 11: shared dict - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'registered timer
'
108-timer-safe.t TEST 11: shared dict - pattern "lua ngx.timer expired" should match a line in error.log (req 0)
108-timer-safe.t TEST 11: shared dict - pattern "stream lua close fake stream connection" should match a line in error.log (req 0)
108-timer-safe.t TEST 11: shared dict - pattern "get foo: 32 number" should match a line in error.log (req 0)
108-timer-safe.t TEST 11: shared dict - pattern "get bah: 10502 number" should match a line in error.log (req 0)
108-timer-safe.t TEST 11: shared dict - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:25:33 [alert] 28820\#0: worker process 28821 exited on signal 11" (req 0) 2020/10/27 05:25:33 [debug] 28820\#0: shmtx forced unlock
2020/10/27 05:25:33 [debug] 28820\#0: shmtx forced unlock
2020/10/27 05:25:33 [debug] 28820\#0: wake up, sigio 0
2020/10/27 05:25:33 [debug] 28820\#0: reap children
2020/10/27 05:25:33 [debug] 28820\#0: child: 0 28821 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:25:33 [debug] 28820\#0: channel 3:9
2020/10/27 05:25:33 [notice] 28820\#0: start worker process 28822
2020/10/27 05:25:33 [debug] 28820\#0: sigsuspend
2020/10/27 05:25:33 [debug] 28822\#0: malloc: 08B938B8:12
'
108-timer-safe.t TEST 11: shared dict - status code ok got: ''
expected: '200'
108-timer-safe.t TEST 11: shared dict - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'registered timer
'
108-timer-safe.t TEST 11: shared dict - pattern "lua ngx.timer expired" should match a line in error.log (req 1)
108-timer-safe.t TEST 11: shared dict - pattern "stream lua close fake stream connection" should match a line in error.log (req 1)
108-timer-safe.t TEST 11: shared dict - pattern "get foo: 32 number" should match a line in error.log (req 1)
108-timer-safe.t TEST 11: shared dict - pattern "get bah: 10502 number" should match a line in error.log (req 1)
108-timer-safe.t TEST 11: shared dict - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:25:33 [alert] 28820\#0: worker process 28822 exited on signal 11" (req 1) 2020/10/27 05:25:33 [debug] 28820\#0: shmtx forced unlock
2020/10/27 05:25:33 [debug] 28820\#0: shmtx forced unlock
2020/10/27 05:25:33 [debug] 28820\#0: wake up, sigio 0
2020/10/27 05:25:33 [debug] 28820\#0: reap children
2020/10/27 05:25:33 [debug] 28820\#0: child: 0 28822 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:25:33 [debug] 28820\#0: channel 3:9
2020/10/27 05:25:33 [notice] 28820\#0: start worker process 28823
2020/10/27 05:25:33 [debug] 28820\#0: sigsuspend
2020/10/27 05:25:33 [debug] 28823\#0: malloc: 08B938B8:12
'
108-timer-safe.t TEST 5: 0 timer - status code ok got: ''
expected: '200'
108-timer-safe.t TEST 5: 0 timer - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'registered timer
'
108-timer-safe.t TEST 5: 0 timer - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:25:35 [alert] 28820\#0: worker process 28830 exited on signal 11" (req 0) 2020/10/27 05:25:35 [debug] 28820\#0: shmtx forced unlock
2020/10/27 05:25:35 [debug] 28820\#0: wake up, sigio 0
2020/10/27 05:25:35 [debug] 28820\#0: reap children
2020/10/27 05:25:35 [debug] 28820\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:25:35 [debug] 28820\#0: child: 1 28830 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:25:35 [debug] 28820\#0: channel 3:4
2020/10/27 05:25:35 [notice] 28820\#0: start worker process 28852
2020/10/27 05:25:35 [debug] 28820\#0: sigsuspend
2020/10/27 05:25:35 [debug] 28852\#0: malloc: 08B8EFB0:12
'
108-timer-safe.t TEST 5: 0 timer - status code ok got: ''
expected: '200'
108-timer-safe.t TEST 5: 0 timer - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'registered timer
'
108-timer-safe.t TEST 5: 0 timer - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:25:35 [alert] 28820\#0: worker process 28852 exited on signal 11" (req 1) 2020/10/27 05:25:35 [debug] 28820\#0: shmtx forced unlock
2020/10/27 05:25:35 [debug] 28820\#0: wake up, sigio 0
2020/10/27 05:25:35 [debug] 28820\#0: reap children
2020/10/27 05:25:35 [debug] 28820\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:25:35 [debug] 28820\#0: child: 1 28852 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:25:35 [debug] 28820\#0: channel 3:4
2020/10/27 05:25:35 [notice] 28820\#0: start worker process 28853
2020/10/27 05:25:35 [debug] 28820\#0: sigsuspend
2020/10/27 05:25:35 [debug] 28853\#0: malloc: 08B8EFB0:12
'
108-timer-safe.t TEST 6: udp cosocket in timer handler - status code ok got: ''
expected: '200'
108-timer-safe.t TEST 6: udp cosocket in timer handler - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'registered timer
'
108-timer-safe.t TEST 6: udp cosocket in timer handler - pattern "(?^:\[lua\] .*? my lua timer handler)" should match a line in error.log (req 0)
108-timer-safe.t TEST 6: udp cosocket in timer handler - pattern "lua ngx.timer expired" should match a line in error.log (req 0)
108-timer-safe.t TEST 6: udp cosocket in timer handler - pattern "stream lua close fake stream connection" should match a line in error.log (req 0)
108-timer-safe.t TEST 6: udp cosocket in timer handler - pattern "connected: 1" should match a line in error.log (req 0)
108-timer-safe.t TEST 6: udp cosocket in timer handler - pattern "received 12 bytes: OK " should match a line in error.log (req 0)'
108-timer-safe.t TEST 6: udp cosocket in timer handler - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:25:37 [alert] 28820\#0: worker process 28860 exited on signal 11" (req 0) 2020/10/27 05:25:37 [debug] 28820\#0: shmtx forced unlock
2020/10/27 05:25:37 [debug] 28820\#0: wake up, sigio 0
2020/10/27 05:25:37 [debug] 28820\#0: reap children
2020/10/27 05:25:37 [debug] 28820\#0: child: 0 28860 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:25:37 [debug] 28820\#0: channel 3:4
2020/10/27 05:25:37 [notice] 28820\#0: start worker process 28882
2020/10/27 05:25:37 [debug] 28820\#0: sigsuspend
2020/10/27 05:25:37 [debug] 28882\#0: malloc: 08B938B8:12
2020/10/27 05:25:37 [debug] 28882\#0: malloc: 08B98210:8
'
108-timer-safe.t TEST 6: udp cosocket in timer handler - status code ok got: ''
expected: '200'
108-timer-safe.t TEST 6: udp cosocket in timer handler - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'registered timer
'
108-timer-safe.t TEST 6: udp cosocket in timer handler - pattern "(?^:\[lua\] .*? my lua timer handler)" should match a line in error.log (req 1)
108-timer-safe.t TEST 6: udp cosocket in timer handler - pattern "lua ngx.timer expired" should match a line in error.log (req 1)
108-timer-safe.t TEST 6: udp cosocket in timer handler - pattern "stream lua close fake stream connection" should match a line in error.log (req 1)
108-timer-safe.t TEST 6: udp cosocket in timer handler - pattern "connected: 1" should match a line in error.log (req 1)
108-timer-safe.t TEST 6: udp cosocket in timer handler - pattern "received 12 bytes: OK " should match a line in error.log (req 1)'
108-timer-safe.t TEST 6: udp cosocket in timer handler - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:25:37 [alert] 28820\#0: worker process 28882 exited on signal 11" (req 1) 2020/10/27 05:25:37 [debug] 28820\#0: shmtx forced unlock
2020/10/27 05:25:37 [debug] 28820\#0: wake up, sigio 0
2020/10/27 05:25:37 [debug] 28820\#0: reap children
2020/10/27 05:25:37 [debug] 28820\#0: child: 0 28882 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:25:37 [debug] 28820\#0: channel 3:4
2020/10/27 05:25:37 [notice] 28820\#0: start worker process 28883
2020/10/27 05:25:37 [debug] 28820\#0: sigsuspend
2020/10/27 05:25:37 [debug] 28883\#0: malloc: 08B938B8:12
2020/10/27 05:25:37 [debug] 28883\#0: malloc: 08B98210:8
'
108-timer-safe.t TEST 9: coroutine API - status code ok got: ''
expected: '200'
108-timer-safe.t TEST 9: coroutine API - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'registered timer
'
108-timer-safe.t TEST 9: coroutine API - pattern "lua ngx.timer expired" should match a line in error.log (req 0)
108-timer-safe.t TEST 9: coroutine API - pattern "stream lua close fake stream connection" should match a line in error.log (req 0)
108-timer-safe.t TEST 9: coroutine API - pattern "cnt = 0" should match a line in error.log (req 0)
108-timer-safe.t TEST 9: coroutine API - pattern "after resume, i = 1" should match a line in error.log (req 0)
108-timer-safe.t TEST 9: coroutine API - pattern "cnt = 1" should match a line in error.log (req 0)
108-timer-safe.t TEST 9: coroutine API - pattern "after resume, i = 2" should match a line in error.log (req 0)
108-timer-safe.t TEST 9: coroutine API - pattern "cnt = 2" should match a line in error.log (req 0)
108-timer-safe.t TEST 9: coroutine API - pattern "after resume, i = 3" should match a line in error.log (req 0)
108-timer-safe.t TEST 9: coroutine API - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:25:39 [alert] 28820\#0: worker process 28890 exited on signal 11" (req 0) 2020/10/27 05:25:39 [debug] 28820\#0: shmtx forced unlock
2020/10/27 05:25:39 [debug] 28820\#0: wake up, sigio 0
2020/10/27 05:25:39 [debug] 28820\#0: reap children
2020/10/27 05:25:39 [debug] 28820\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:25:39 [debug] 28820\#0: child: 1 28890 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:25:39 [debug] 28820\#0: channel 3:4
2020/10/27 05:25:39 [notice] 28820\#0: start worker process 28912
2020/10/27 05:25:39 [debug] 28820\#0: sigsuspend
2020/10/27 05:25:39 [debug] 28912\#0: malloc: 08B8EFB0:12
'
108-timer-safe.t TEST 9: coroutine API - status code ok got: ''
expected: '200'
108-timer-safe.t TEST 9: coroutine API - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'registered timer
'
108-timer-safe.t TEST 9: coroutine API - pattern "lua ngx.timer expired" should match a line in error.log (req 1)
108-timer-safe.t TEST 9: coroutine API - pattern "stream lua close fake stream connection" should match a line in error.log (req 1)
108-timer-safe.t TEST 9: coroutine API - pattern "cnt = 0" should match a line in error.log (req 1)
108-timer-safe.t TEST 9: coroutine API - pattern "after resume, i = 1" should match a line in error.log (req 1)
108-timer-safe.t TEST 9: coroutine API - pattern "cnt = 1" should match a line in error.log (req 1)
108-timer-safe.t TEST 9: coroutine API - pattern "after resume, i = 2" should match a line in error.log (req 1)
108-timer-safe.t TEST 9: coroutine API - pattern "cnt = 2" should match a line in error.log (req 1)
108-timer-safe.t TEST 9: coroutine API - pattern "after resume, i = 3" should match a line in error.log (req 1)
108-timer-safe.t TEST 9: coroutine API - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:25:39 [alert] 28820\#0: worker process 28912 exited on signal 11" (req 1) 2020/10/27 05:25:39 [debug] 28820\#0: shmtx forced unlock
2020/10/27 05:25:39 [debug] 28820\#0: wake up, sigio 0
2020/10/27 05:25:39 [debug] 28820\#0: reap children
2020/10/27 05:25:39 [debug] 28820\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:25:39 [debug] 28820\#0: child: 1 28912 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:25:39 [debug] 28820\#0: channel 3:4
2020/10/27 05:25:39 [notice] 28820\#0: start worker process 28913
2020/10/27 05:25:39 [debug] 28820\#0: sigsuspend
2020/10/27 05:25:39 [debug] 28913\#0: malloc: 08B8EFB0:12
'
108-timer-safe.t TEST 1: simple at - status code ok got: ''
expected: '200'
108-timer-safe.t TEST 1: simple at - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'registered timer
'
108-timer-safe.t TEST 1: simple at - pattern "(?^:\[lua\] content_by_lua\(nginx\.conf:\d+\):\d+: elapsed: 0\.0(?:4[4-9]|5[0-6]))" should match a line in error.log (req 0)
108-timer-safe.t TEST 1: simple at - pattern "lua ngx.timer expired" should match a line in error.log (req 0)
108-timer-safe.t TEST 1: simple at - pattern "stream lua close fake stream connection" should match a line in error.log (req 0)
108-timer-safe.t TEST 1: simple at - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:25:41 [alert] 28820\#0: worker process 28920 exited on signal 11" (req 0) 2020/10/27 05:25:41 [debug] 28820\#0: shmtx forced unlock
2020/10/27 05:25:41 [debug] 28820\#0: wake up, sigio 0
2020/10/27 05:25:41 [debug] 28820\#0: reap children
2020/10/27 05:25:41 [debug] 28820\#0: child: 0 28920 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:25:41 [debug] 28820\#0: channel 3:4
2020/10/27 05:25:41 [notice] 28820\#0: start worker process 28942
2020/10/27 05:25:41 [debug] 28820\#0: sigsuspend
2020/10/27 05:25:41 [debug] 28942\#0: malloc: 08B938B8:12
2020/10/27 05:25:41 [debug] 28942\#0: malloc: 08B98210:8
'
108-timer-safe.t TEST 1: simple at - status code ok got: ''
expected: '200'
108-timer-safe.t TEST 1: simple at - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'registered timer
'
108-timer-safe.t TEST 1: simple at - pattern "(?^:\[lua\] content_by_lua\(nginx\.conf:\d+\):\d+: elapsed: 0\.0(?:4[4-9]|5[0-6]))" should match a line in error.log (req 1)
108-timer-safe.t TEST 1: simple at - pattern "lua ngx.timer expired" should match a line in error.log (req 1)
108-timer-safe.t TEST 1: simple at - pattern "stream lua close fake stream connection" should match a line in error.log (req 1)
108-timer-safe.t TEST 1: simple at - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:25:41 [alert] 28820\#0: worker process 28942 exited on signal 11" (req 1) 2020/10/27 05:25:41 [debug] 28820\#0: shmtx forced unlock
2020/10/27 05:25:41 [debug] 28820\#0: wake up, sigio 0
2020/10/27 05:25:41 [debug] 28820\#0: reap children
2020/10/27 05:25:41 [debug] 28820\#0: child: 0 28942 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:25:41 [debug] 28820\#0: channel 3:4
2020/10/27 05:25:41 [notice] 28820\#0: start worker process 28943
2020/10/27 05:25:41 [debug] 28820\#0: sigsuspend
2020/10/27 05:25:41 [debug] 28943\#0: malloc: 08B938B8:12
2020/10/27 05:25:41 [debug] 28943\#0: malloc: 08B98210:8
'
108-timer-safe.t TEST 3: tcp cosocket in timer handler (short connections) - status code ok got: ''
expected: '200'
108-timer-safe.t TEST 3: tcp cosocket in timer handler (short connections) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'registered timer
'
108-timer-safe.t TEST 3: tcp cosocket in timer handler (short connections) - pattern "(?^:\[lua\] .*? my lua timer handler)" should match a line in error.log (req 0)
108-timer-safe.t TEST 3: tcp cosocket in timer handler (short connections) - pattern "lua ngx.timer expired" should match a line in error.log (req 0)
108-timer-safe.t TEST 3: tcp cosocket in timer handler (short connections) - pattern "stream lua close fake stream connection" should match a line in error.log (req 0)
108-timer-safe.t TEST 3: tcp cosocket in timer handler (short connections) - pattern "connected: 1" should match a line in error.log (req 0)
108-timer-safe.t TEST 3: tcp cosocket in timer handler (short connections) - pattern "request sent: 57" should match a line in error.log (req 0)
108-timer-safe.t TEST 3: tcp cosocket in timer handler (short connections) - pattern "received: HTTP/1.1 200 OK" should match a line in error.log (req 0)
108-timer-safe.t TEST 3: tcp cosocket in timer handler (short connections) - pattern "(?^:received: Server: \S+)" should match a line in error.log (req 0)
108-timer-safe.t TEST 3: tcp cosocket in timer handler (short connections) - pattern "received: Content-Type: text/plain" should match a line in error.log (req 0)
108-timer-safe.t TEST 3: tcp cosocket in timer handler (short connections) - pattern "received: Content-Length: 4" should match a line in error.log (req 0)
108-timer-safe.t TEST 3: tcp cosocket in timer handler (short connections) - pattern "received: Connection: close" should match a line in error.log (req 0)
108-timer-safe.t TEST 3: tcp cosocket in timer handler (short connections) - pattern "received: foo" should match a line in error.log (req 0)
108-timer-safe.t TEST 3: tcp cosocket in timer handler (short connections) - pattern "close: 1 nil" should match a line in error.log (req 0)
108-timer-safe.t TEST 3: tcp cosocket in timer handler (short connections) - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:25:43 [alert] 28820\#0: worker process 28950 exited on signal 11" (req 0) 2020/10/27 05:25:43 [debug] 28820\#0: shmtx forced unlock
2020/10/27 05:25:43 [debug] 28820\#0: wake up, sigio 0
2020/10/27 05:25:43 [debug] 28820\#0: reap children
2020/10/27 05:25:43 [debug] 28820\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:25:43 [debug] 28820\#0: child: 1 28950 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:25:43 [debug] 28820\#0: channel 3:4
2020/10/27 05:25:43 [notice] 28820\#0: start worker process 28972
2020/10/27 05:25:43 [debug] 28820\#0: sigsuspend
2020/10/27 05:25:43 [debug] 28972\#0: malloc: 08B8EFB0:12
'
108-timer-safe.t TEST 3: tcp cosocket in timer handler (short connections) - status code ok got: ''
expected: '200'
108-timer-safe.t TEST 3: tcp cosocket in timer handler (short connections) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'registered timer
'
108-timer-safe.t TEST 3: tcp cosocket in timer handler (short connections) - pattern "(?^:\[lua\] .*? my lua timer handler)" should match a line in error.log (req 1)
108-timer-safe.t TEST 3: tcp cosocket in timer handler (short connections) - pattern "lua ngx.timer expired" should match a line in error.log (req 1)
108-timer-safe.t TEST 3: tcp cosocket in timer handler (short connections) - pattern "stream lua close fake stream connection" should match a line in error.log (req 1)
108-timer-safe.t TEST 3: tcp cosocket in timer handler (short connections) - pattern "connected: 1" should match a line in error.log (req 1)
108-timer-safe.t TEST 3: tcp cosocket in timer handler (short connections) - pattern "request sent: 57" should match a line in error.log (req 1)
108-timer-safe.t TEST 3: tcp cosocket in timer handler (short connections) - pattern "received: HTTP/1.1 200 OK" should match a line in error.log (req 1)
108-timer-safe.t TEST 3: tcp cosocket in timer handler (short connections) - pattern "(?^:received: Server: \S+)" should match a line in error.log (req 1)
108-timer-safe.t TEST 3: tcp cosocket in timer handler (short connections) - pattern "received: Content-Type: text/plain" should match a line in error.log (req 1)
108-timer-safe.t TEST 3: tcp cosocket in timer handler (short connections) - pattern "received: Content-Length: 4" should match a line in error.log (req 1)
108-timer-safe.t TEST 3: tcp cosocket in timer handler (short connections) - pattern "received: Connection: close" should match a line in error.log (req 1)
108-timer-safe.t TEST 3: tcp cosocket in timer handler (short connections) - pattern "received: foo" should match a line in error.log (req 1)
108-timer-safe.t TEST 3: tcp cosocket in timer handler (short connections) - pattern "close: 1 nil" should match a line in error.log (req 1)
108-timer-safe.t TEST 3: tcp cosocket in timer handler (short connections) - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:25:44 [alert] 28820\#0: worker process 28972 exited on signal 11" (req 1) 2020/10/27 05:25:44 [debug] 28820\#0: shmtx forced unlock
2020/10/27 05:25:44 [debug] 28820\#0: wake up, sigio 0
2020/10/27 05:25:44 [debug] 28820\#0: reap children
2020/10/27 05:25:44 [debug] 28820\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:25:44 [debug] 28820\#0: child: 1 28972 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:25:44 [debug] 28820\#0: channel 3:4
2020/10/27 05:25:44 [notice] 28820\#0: start worker process 28973
2020/10/27 05:25:44 [debug] 28820\#0: sigsuspend
2020/10/27 05:25:44 [debug] 28973\#0: malloc: 08B8EFB0:12
'
108-timer-safe.t TEST 15: chained timers (non-zero delay) - status code ok got: ''
expected: '200'
108-timer-safe.t TEST 15: chained timers (non-zero delay) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'registered timer
'
108-timer-safe.t TEST 15: chained timers (non-zero delay) - pattern "lua ngx.timer expired" should match a line in error.log (req 0)
108-timer-safe.t TEST 15: chained timers (non-zero delay) - pattern "stream lua close fake stream connection" should match a line in error.log (req 0)
108-timer-safe.t TEST 15: chained timers (non-zero delay) - pattern "trace: [m][f][g]" should match a line in error.log (req 0)
108-timer-safe.t TEST 15: chained timers (non-zero delay) - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:25:46 [alert] 28820\#0: worker process 28980 exited on signal 11" (req 0) 2020/10/27 05:25:46 [debug] 28820\#0: shmtx forced unlock
2020/10/27 05:25:46 [debug] 28820\#0: wake up, sigio 0
2020/10/27 05:25:46 [debug] 28820\#0: reap children
2020/10/27 05:25:46 [debug] 28820\#0: child: 0 28980 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:25:46 [debug] 28820\#0: channel 3:4
2020/10/27 05:25:46 [notice] 28820\#0: start worker process 29002
2020/10/27 05:25:46 [debug] 28820\#0: sigsuspend
2020/10/27 05:25:46 [debug] 29002\#0: malloc: 08B938B8:12
2020/10/27 05:25:46 [debug] 29002\#0: malloc: 08B98210:8
'
108-timer-safe.t TEST 15: chained timers (non-zero delay) - status code ok got: ''
expected: '200'
108-timer-safe.t TEST 15: chained timers (non-zero delay) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'registered timer
'
108-timer-safe.t TEST 15: chained timers (non-zero delay) - pattern "lua ngx.timer expired" should match a line in error.log (req 1)
108-timer-safe.t TEST 15: chained timers (non-zero delay) - pattern "stream lua close fake stream connection" should match a line in error.log (req 1)
108-timer-safe.t TEST 15: chained timers (non-zero delay) - pattern "trace: [m][f][g]" should match a line in error.log (req 1)
108-timer-safe.t TEST 15: chained timers (non-zero delay) - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:25:46 [alert] 28820\#0: worker process 29002 exited on signal 11" (req 1) 2020/10/27 05:25:46 [debug] 28820\#0: shmtx forced unlock
2020/10/27 05:25:46 [debug] 28820\#0: wake up, sigio 0
2020/10/27 05:25:46 [debug] 28820\#0: reap children
2020/10/27 05:25:46 [debug] 28820\#0: child: 0 29002 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:25:46 [debug] 28820\#0: channel 3:4
2020/10/27 05:25:46 [notice] 28820\#0: start worker process 29003
2020/10/27 05:25:46 [debug] 28820\#0: sigsuspend
2020/10/27 05:25:46 [debug] 29003\#0: malloc: 08B938B8:12
2020/10/27 05:25:46 [debug] 29003\#0: malloc: 08B98210:8
'
108-timer-safe.t TEST 4: tcp cosocket in timer handler (keep-alive connections) - status code ok got: ''
expected: '200'
108-timer-safe.t TEST 4: tcp cosocket in timer handler (keep-alive connections) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'registered timer
'
108-timer-safe.t TEST 4: tcp cosocket in timer handler (keep-alive connections) - pattern "(?^:\[lua\] .*? my lua timer handler)" should match a line in error.log (req 0)
108-timer-safe.t TEST 4: tcp cosocket in timer handler (keep-alive connections) - pattern "lua ngx.timer expired" should match a line in error.log (req 0)
108-timer-safe.t TEST 4: tcp cosocket in timer handler (keep-alive connections) - pattern "stream lua close fake stream connection" should match a line in error.log (req 0)
108-timer-safe.t TEST 4: tcp cosocket in timer handler (keep-alive connections) - pattern "(?^:go\(\): connected: 1, reused: \d+)" should match a line in error.log (req 0)
108-timer-safe.t TEST 4: tcp cosocket in timer handler (keep-alive connections) - pattern "go(): request sent: 11" should match a line in error.log (req 0)
108-timer-safe.t TEST 4: tcp cosocket in timer handler (keep-alive connections) - pattern "go(): received: OK" should match a line in error.log (req 0)
108-timer-safe.t TEST 4: tcp cosocket in timer handler (keep-alive connections) - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:25:48 [alert] 28820\#0: worker process 29010 exited on signal 11" (req 0) 2020/10/27 05:25:48 [debug] 28820\#0: shmtx forced unlock
2020/10/27 05:25:48 [debug] 28820\#0: wake up, sigio 0
2020/10/27 05:25:48 [debug] 28820\#0: reap children
2020/10/27 05:25:48 [debug] 28820\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:25:48 [debug] 28820\#0: child: 1 29010 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:25:48 [debug] 28820\#0: channel 3:4
2020/10/27 05:25:48 [notice] 28820\#0: start worker process 29032
2020/10/27 05:25:48 [debug] 28820\#0: sigsuspend
2020/10/27 05:25:48 [debug] 29032\#0: malloc: 08B8EFB0:12
'
108-timer-safe.t TEST 4: tcp cosocket in timer handler (keep-alive connections) - status code ok got: ''
expected: '200'
108-timer-safe.t TEST 4: tcp cosocket in timer handler (keep-alive connections) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'registered timer
'
108-timer-safe.t TEST 4: tcp cosocket in timer handler (keep-alive connections) - pattern "(?^:\[lua\] .*? my lua timer handler)" should match a line in error.log (req 1)
108-timer-safe.t TEST 4: tcp cosocket in timer handler (keep-alive connections) - pattern "lua ngx.timer expired" should match a line in error.log (req 1)
108-timer-safe.t TEST 4: tcp cosocket in timer handler (keep-alive connections) - pattern "stream lua close fake stream connection" should match a line in error.log (req 1)
108-timer-safe.t TEST 4: tcp cosocket in timer handler (keep-alive connections) - pattern "(?^:go\(\): connected: 1, reused: \d+)" should match a line in error.log (req 1)
108-timer-safe.t TEST 4: tcp cosocket in timer handler (keep-alive connections) - pattern "go(): request sent: 11" should match a line in error.log (req 1)
108-timer-safe.t TEST 4: tcp cosocket in timer handler (keep-alive connections) - pattern "go(): received: OK" should match a line in error.log (req 1)
108-timer-safe.t TEST 4: tcp cosocket in timer handler (keep-alive connections) - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:25:48 [alert] 28820\#0: worker process 29032 exited on signal 11" (req 1) 2020/10/27 05:25:48 [debug] 28820\#0: shmtx forced unlock
2020/10/27 05:25:48 [debug] 28820\#0: wake up, sigio 0
2020/10/27 05:25:48 [debug] 28820\#0: reap children
2020/10/27 05:25:48 [debug] 28820\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:25:48 [debug] 28820\#0: child: 1 29032 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:25:48 [debug] 28820\#0: channel 3:4
2020/10/27 05:25:48 [notice] 28820\#0: start worker process 29033
2020/10/27 05:25:48 [debug] 28820\#0: sigsuspend
2020/10/27 05:25:48 [debug] 29033\#0: malloc: 08B8EFB0:12
'
108-timer-safe.t TEST 14: exit in user thread (entry thread is still pending on ngx.sleep) - status code ok got: ''
expected: '200'
108-timer-safe.t TEST 14: exit in user thread (entry thread is still pending on ngx.sleep) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'registered timer
'
108-timer-safe.t TEST 14: exit in user thread (entry thread is still pending on ngx.sleep) - pattern "lua ngx.timer expired" should match a line in error.log (req 0)
108-timer-safe.t TEST 14: exit in user thread (entry thread is still pending on ngx.sleep) - pattern "stream lua close fake stream connection" should match a line in error.log (req 0)
108-timer-safe.t TEST 14: exit in user thread (entry thread is still pending on ngx.sleep) - pattern "BEFORE thread spawn" should match a line in error.log (req 0)
108-timer-safe.t TEST 14: exit in user thread (entry thread is still pending on ngx.sleep) - pattern "hello in thread" should match a line in error.log (req 0)
108-timer-safe.t TEST 14: exit in user thread (entry thread is still pending on ngx.sleep) - pattern "AFTER thread spawn" should match a line in error.log (req 0)
108-timer-safe.t TEST 14: exit in user thread (entry thread is still pending on ngx.sleep) - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:25:50 [alert] 28820\#0: worker process 29041 exited on signal 11" (req 0) 2020/10/27 05:25:50 [debug] 28820\#0: shmtx forced unlock
2020/10/27 05:25:50 [debug] 28820\#0: wake up, sigio 0
2020/10/27 05:25:50 [debug] 28820\#0: reap children
2020/10/27 05:25:50 [debug] 28820\#0: child: 0 29041 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:25:50 [debug] 28820\#0: channel 3:4
2020/10/27 05:25:50 [notice] 28820\#0: start worker process 29063
2020/10/27 05:25:50 [debug] 28820\#0: sigsuspend
2020/10/27 05:25:50 [debug] 29063\#0: malloc: 08B938B8:12
2020/10/27 05:25:50 [debug] 29063\#0: malloc: 08B98210:8
'
108-timer-safe.t TEST 14: exit in user thread (entry thread is still pending on ngx.sleep) - status code ok got: ''
expected: '200'
108-timer-safe.t TEST 14: exit in user thread (entry thread is still pending on ngx.sleep) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'registered timer
'
108-timer-safe.t TEST 14: exit in user thread (entry thread is still pending on ngx.sleep) - pattern "lua ngx.timer expired" should match a line in error.log (req 1)
108-timer-safe.t TEST 14: exit in user thread (entry thread is still pending on ngx.sleep) - pattern "stream lua close fake stream connection" should match a line in error.log (req 1)
108-timer-safe.t TEST 14: exit in user thread (entry thread is still pending on ngx.sleep) - pattern "BEFORE thread spawn" should match a line in error.log (req 1)
108-timer-safe.t TEST 14: exit in user thread (entry thread is still pending on ngx.sleep) - pattern "hello in thread" should match a line in error.log (req 1)
108-timer-safe.t TEST 14: exit in user thread (entry thread is still pending on ngx.sleep) - pattern "AFTER thread spawn" should match a line in error.log (req 1)
108-timer-safe.t TEST 14: exit in user thread (entry thread is still pending on ngx.sleep) - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:25:50 [alert] 28820\#0: worker process 29063 exited on signal 11" (req 1) 2020/10/27 05:25:50 [debug] 28820\#0: shmtx forced unlock
2020/10/27 05:25:50 [debug] 28820\#0: wake up, sigio 0
2020/10/27 05:25:50 [debug] 28820\#0: reap children
2020/10/27 05:25:50 [debug] 28820\#0: child: 0 29063 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:25:50 [debug] 28820\#0: channel 3:4
2020/10/27 05:25:50 [notice] 28820\#0: start worker process 29064
2020/10/27 05:25:50 [debug] 28820\#0: sigsuspend
2020/10/27 05:25:50 [debug] 29064\#0: malloc: 08B938B8:12
2020/10/27 05:25:50 [debug] 29064\#0: malloc: 08B98210:8
'
108-timer-safe.t TEST 12: ngx.exit(0) - status code ok got: ''
expected: '200'
108-timer-safe.t TEST 12: ngx.exit(0) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'registered timer
'
108-timer-safe.t TEST 12: ngx.exit(0) - pattern "lua ngx.timer expired" should match a line in error.log (req 0)
108-timer-safe.t TEST 12: ngx.exit(0) - pattern "stream lua close fake stream connection" should match a line in error.log (req 0)
108-timer-safe.t TEST 12: ngx.exit(0) - pattern "BEFORE ngx.exit" should match a line in error.log (req 0)
108-timer-safe.t TEST 12: ngx.exit(0) - status code ok got: ''
expected: '200'
108-timer-safe.t TEST 12: ngx.exit(0) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'registered timer
'
108-timer-safe.t TEST 12: ngx.exit(0) - pattern "lua ngx.timer expired" should match a line in error.log (req 1)
108-timer-safe.t TEST 12: ngx.exit(0) - pattern "stream lua close fake stream connection" should match a line in error.log (req 1)
108-timer-safe.t TEST 12: ngx.exit(0) - pattern "BEFORE ngx.exit" should match a line in error.log (req 1)
108-timer-safe.t TEST 13: ngx.exit(403) - status code ok got: ''
expected: '200'
108-timer-safe.t TEST 13: ngx.exit(403) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'registered timer
'
108-timer-safe.t TEST 13: ngx.exit(403) - pattern "lua ngx.timer expired" should match a line in error.log (req 0)
108-timer-safe.t TEST 13: ngx.exit(403) - pattern "stream lua close fake stream connection" should match a line in error.log (req 0)
108-timer-safe.t TEST 13: ngx.exit(403) - pattern "BEFORE ngx.exit" should match a line in error.log (req 0)
108-timer-safe.t TEST 13: ngx.exit(403) - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:25:54 [alert] 28820\#0: worker process 29101 exited on signal 11" (req 0) 2020/10/27 05:25:54 [debug] 28820\#0: shmtx forced unlock
2020/10/27 05:25:54 [debug] 28820\#0: wake up, sigio 0
2020/10/27 05:25:54 [debug] 28820\#0: reap children
2020/10/27 05:25:54 [debug] 28820\#0: child: 0 29101 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:25:54 [debug] 28820\#0: channel 3:4
2020/10/27 05:25:54 [notice] 28820\#0: start worker process 29123
2020/10/27 05:25:54 [debug] 28820\#0: sigsuspend
2020/10/27 05:25:54 [debug] 29123\#0: malloc: 08B938B8:12
2020/10/27 05:25:54 [debug] 29123\#0: malloc: 08B98210:8
'
108-timer-safe.t TEST 13: ngx.exit(403) - status code ok got: ''
expected: '200'
108-timer-safe.t TEST 13: ngx.exit(403) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'registered timer
'
108-timer-safe.t TEST 13: ngx.exit(403) - pattern "lua ngx.timer expired" should match a line in error.log (req 1)
108-timer-safe.t TEST 13: ngx.exit(403) - pattern "stream lua close fake stream connection" should match a line in error.log (req 1)
108-timer-safe.t TEST 13: ngx.exit(403) - pattern "BEFORE ngx.exit" should match a line in error.log (req 1)
108-timer-safe.t TEST 13: ngx.exit(403) - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:25:55 [alert] 28820\#0: worker process 29123 exited on signal 11" (req 1) 2020/10/27 05:25:55 [debug] 28820\#0: shmtx forced unlock
2020/10/27 05:25:55 [debug] 28820\#0: wake up, sigio 0
2020/10/27 05:25:55 [debug] 28820\#0: reap children
2020/10/27 05:25:55 [debug] 28820\#0: child: 0 29123 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:25:55 [debug] 28820\#0: channel 3:4
2020/10/27 05:25:55 [notice] 28820\#0: start worker process 29124
2020/10/27 05:25:55 [debug] 28820\#0: sigsuspend
2020/10/27 05:25:55 [debug] 29124\#0: malloc: 08B938B8:12
2020/10/27 05:25:55 [debug] 29124\#0: malloc: 08B98210:8
'
108-timer-safe.t TEST 2: simple at (sleep in the timer callback) - status code ok got: ''
expected: '200'
108-timer-safe.t TEST 2: simple at (sleep in the timer callback) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'registered timer
'
108-timer-safe.t TEST 2: simple at (sleep in the timer callback) - pattern "(?^:\[lua\] .*? my lua timer handler)" should match a line in error.log (req 0)
108-timer-safe.t TEST 2: simple at (sleep in the timer callback) - pattern "(?^:\[lua\] content_by_lua\(nginx\.conf:\d+\):\d+: elapsed: 0\.0(?:6[4-9]|7[0-6]))" should match a line in error.log (req 0)
108-timer-safe.t TEST 2: simple at (sleep in the timer callback) - pattern "lua ngx.timer expired" should match a line in error.log (req 0)
108-timer-safe.t TEST 2: simple at (sleep in the timer callback) - pattern "stream lua close fake stream connection" should match a line in error.log (req 0)
108-timer-safe.t TEST 2: simple at (sleep in the timer callback) - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:25:56 [alert] 28820\#0: worker process 29131 exited on signal 11" (req 0) 2020/10/27 05:25:56 [debug] 28820\#0: shmtx forced unlock
2020/10/27 05:25:56 [debug] 28820\#0: wake up, sigio 0
2020/10/27 05:25:56 [debug] 28820\#0: reap children
2020/10/27 05:25:56 [debug] 28820\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:25:56 [debug] 28820\#0: child: 1 29131 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:25:56 [debug] 28820\#0: channel 3:4
2020/10/27 05:25:56 [notice] 28820\#0: start worker process 29153
2020/10/27 05:25:56 [debug] 28820\#0: sigsuspend
2020/10/27 05:25:56 [debug] 29153\#0: malloc: 08B8EFB0:12
'
108-timer-safe.t TEST 2: simple at (sleep in the timer callback) - status code ok got: ''
expected: '200'
108-timer-safe.t TEST 2: simple at (sleep in the timer callback) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'registered timer
'
108-timer-safe.t TEST 2: simple at (sleep in the timer callback) - pattern "(?^:\[lua\] .*? my lua timer handler)" should match a line in error.log (req 1)
108-timer-safe.t TEST 2: simple at (sleep in the timer callback) - pattern "(?^:\[lua\] content_by_lua\(nginx\.conf:\d+\):\d+: elapsed: 0\.0(?:6[4-9]|7[0-6]))" should match a line in error.log (req 1)
108-timer-safe.t TEST 2: simple at (sleep in the timer callback) - pattern "lua ngx.timer expired" should match a line in error.log (req 1)
108-timer-safe.t TEST 2: simple at (sleep in the timer callback) - pattern "stream lua close fake stream connection" should match a line in error.log (req 1)
108-timer-safe.t TEST 2: simple at (sleep in the timer callback) - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:25:57 [alert] 28820\#0: worker process 29153 exited on signal 11" (req 1) 2020/10/27 05:25:57 [debug] 28820\#0: shmtx forced unlock
2020/10/27 05:25:57 [debug] 28820\#0: wake up, sigio 0
2020/10/27 05:25:57 [debug] 28820\#0: reap children
2020/10/27 05:25:57 [debug] 28820\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:25:57 [debug] 28820\#0: child: 1 29153 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:25:57 [debug] 28820\#0: channel 3:4
2020/10/27 05:25:57 [notice] 28820\#0: start worker process 29154
2020/10/27 05:25:57 [debug] 28820\#0: sigsuspend
2020/10/27 05:25:57 [debug] 29154\#0: malloc: 08B8EFB0:12
'
108-timer-safe.t TEST 10: ngx.thread API - status code ok got: ''
expected: '200'
108-timer-safe.t TEST 10: ngx.thread API - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'registered timer
'
108-timer-safe.t TEST 10: ngx.thread API - pattern "lua ngx.timer expired" should match a line in error.log (req 0)
108-timer-safe.t TEST 10: ngx.thread API - pattern "stream lua close fake stream connection" should match a line in error.log (req 0)
108-timer-safe.t TEST 10: ngx.thread API - pattern "hello in thread" should match a line in error.log (req 0)
108-timer-safe.t TEST 10: ngx.thread API - pattern "thread created: zombie" should match a line in error.log (req 0)
108-timer-safe.t TEST 10: ngx.thread API - pattern "wait result: done" should match a line in error.log (req 0)
108-timer-safe.t TEST 10: ngx.thread API - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:25:59 [alert] 28820\#0: worker process 29161 exited on signal 11" (req 0) 2020/10/27 05:25:59 [debug] 28820\#0: shmtx forced unlock
2020/10/27 05:25:59 [debug] 28820\#0: wake up, sigio 0
2020/10/27 05:25:59 [debug] 28820\#0: reap children
2020/10/27 05:25:59 [debug] 28820\#0: child: 0 29161 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:25:59 [debug] 28820\#0: channel 3:4
2020/10/27 05:25:59 [notice] 28820\#0: start worker process 29183
2020/10/27 05:25:59 [debug] 28820\#0: sigsuspend
2020/10/27 05:25:59 [debug] 29183\#0: malloc: 08B938B8:12
2020/10/27 05:25:59 [debug] 29183\#0: malloc: 08B98210:8
'
108-timer-safe.t TEST 10: ngx.thread API - status code ok got: ''
expected: '200'
108-timer-safe.t TEST 10: ngx.thread API - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'registered timer
'
108-timer-safe.t TEST 10: ngx.thread API - pattern "lua ngx.timer expired" should match a line in error.log (req 1)
108-timer-safe.t TEST 10: ngx.thread API - pattern "stream lua close fake stream connection" should match a line in error.log (req 1)
108-timer-safe.t TEST 10: ngx.thread API - pattern "hello in thread" should match a line in error.log (req 1)
108-timer-safe.t TEST 10: ngx.thread API - pattern "thread created: zombie" should match a line in error.log (req 1)
108-timer-safe.t TEST 10: ngx.thread API - pattern "wait result: done" should match a line in error.log (req 1)
108-timer-safe.t TEST 10: ngx.thread API - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:25:59 [alert] 28820\#0: worker process 29183 exited on signal 11" (req 1) 2020/10/27 05:25:59 [debug] 28820\#0: shmtx forced unlock
2020/10/27 05:25:59 [debug] 28820\#0: wake up, sigio 0
2020/10/27 05:25:59 [debug] 28820\#0: reap children
2020/10/27 05:25:59 [debug] 28820\#0: child: 0 29183 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:25:59 [debug] 28820\#0: channel 3:4
2020/10/27 05:25:59 [notice] 28820\#0: start worker process 29184
2020/10/27 05:25:59 [debug] 28820\#0: sigsuspend
2020/10/27 05:25:59 [debug] 29184\#0: malloc: 08B938B8:12
2020/10/27 05:25:59 [debug] 29184\#0: malloc: 08B98210:8
'
109-timer-hup.t TEST 1: single timer - status code ok got: ''
expected: '200'
109-timer-hup.t TEST 1: single timer - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'registered timer
'
109-timer-hup.t TEST 1: single timer - pattern "lua abort pending timers" should match a line in error.log (req 0)
109-timer-hup.t TEST 1: single timer - pattern "lua ngx.timer expired" should match a line in error.log (req 0)
109-timer-hup.t TEST 1: single timer - pattern "stream lua close fake stream connection" should match a line in error.log (req 0)
109-timer-hup.t TEST 1: single timer - pattern "in callback: hello, 1" should match a line in error.log (req 0)
109-timer-hup.t TEST 1: single timer - pattern "timer prematurely expired: true" should match a line in error.log (req 0)
109-timer-hup.t TEST 1: single timer - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:26:01 [alert] 29193\#0: worker process 29194 exited on signal 11" (req 0) 2020/10/27 05:26:01 [debug] 29193\#0: shmtx forced unlock
2020/10/27 05:26:01 [debug] 29193\#0: wake up, sigio 0
2020/10/27 05:26:01 [debug] 29193\#0: reap children
2020/10/27 05:26:01 [debug] 29193\#0: child: 0 29194 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:26:01 [debug] 29193\#0: pass close channel s:0 pid:29194 to:29196
2020/10/27 05:26:01 [debug] 29193\#0: child: 1 29196 e:0 t:0 d:0 r:1 j:0
2020/10/27 05:26:01 [debug] 29193\#0: sigsuspend
2020/10/27 05:26:01 [notice] 29193\#0: signal 29 (SIGIO) received
2020/10/27 05:26:01 [debug] 29193\#0: wake up, sigio 0
'
109-timer-hup.t TEST 1: single timer - status code ok got: ''
expected: '200'
109-timer-hup.t TEST 1: single timer - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'registered timer
'
109-timer-hup.t TEST 1: single timer - pattern "lua abort pending timers" should match a line in error.log (req 1)
109-timer-hup.t TEST 1: single timer - pattern "lua ngx.timer expired" should match a line in error.log (req 1)
109-timer-hup.t TEST 1: single timer - pattern "stream lua close fake stream connection" should match a line in error.log (req 1)
109-timer-hup.t TEST 1: single timer - pattern "in callback: hello, 1" should match a line in error.log (req 1)
109-timer-hup.t TEST 1: single timer - pattern "timer prematurely expired: true" should match a line in error.log (req 1)
109-timer-hup.t TEST 1: single timer - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:26:01 [alert] 29193\#0: worker process 29196 exited on signal 11" (req 1) 2020/10/27 05:26:01 [debug] 29193\#0: shmtx forced unlock
2020/10/27 05:26:01 [debug] 29193\#0: wake up, sigio 0
2020/10/27 05:26:01 [debug] 29193\#0: reap children
2020/10/27 05:26:01 [debug] 29193\#0: child: 0 29198 e:0 t:0 d:0 r:1 j:0
2020/10/27 05:26:01 [debug] 29193\#0: child: 1 29196 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:26:01 [debug] 29193\#0: pass close channel s:1 pid:29196 to:29198
2020/10/27 05:26:01 [debug] 29193\#0: sigsuspend
2020/10/27 05:26:01 [notice] 29193\#0: signal 29 (SIGIO) received
2020/10/27 05:26:01 [debug] 29198\#0: epoll: fd:11 ev:0001 d:08D1DC44
'
109-timer-hup.t TEST 7: HUP reload should abort pending timers (fuzz test) - status code ok got: ''
expected: '200'
109-timer-hup.t TEST 7: HUP reload should abort pending timers (fuzz test) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'ok
'
109-timer-hup.t TEST 7: HUP reload should abort pending timers (fuzz test) - grep_error_log_out (req 0) got: ''
expected: 'stream lua found 8191 pending timers
'
109-timer-hup.t TEST 7: HUP reload should abort pending timers (fuzz test) - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:26:05 [alert] 29193\#0: worker process 29205 exited on signal 11" (req 0) 2020/10/27 05:26:05 [debug] 29193\#0: shmtx forced unlock
2020/10/27 05:26:05 [debug] 29193\#0: wake up, sigio 0
2020/10/27 05:26:05 [debug] 29193\#0: reap children
2020/10/27 05:26:05 [debug] 29193\#0: child: 0 29228 e:0 t:0 d:0 r:1 j:0
2020/10/27 05:26:05 [debug] 29193\#0: child: 1 29205 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:26:05 [debug] 29193\#0: pass close channel s:1 pid:29205 to:29228
2020/10/27 05:26:05 [debug] 29193\#0: sigsuspend
2020/10/27 05:26:05 [notice] 29193\#0: signal 29 (SIGIO) received
2020/10/27 05:26:05 [debug] 29193\#0: wake up, sigio 0
'
109-timer-hup.t TEST 7: HUP reload should abort pending timers (fuzz test) - status code ok got: ''
expected: '200'
109-timer-hup.t TEST 7: HUP reload should abort pending timers (fuzz test) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'ok
'
109-timer-hup.t TEST 7: HUP reload should abort pending timers (fuzz test) - grep_error_log_out (req 1) got: ''
expected: 'stream lua found 8191 pending timers
'
109-timer-hup.t TEST 7: HUP reload should abort pending timers (fuzz test) - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:26:07 [alert] 29193\#0: worker process 29228 exited on signal 11" (req 1) 2020/10/27 05:26:07 [debug] 29193\#0: shmtx forced unlock
2020/10/27 05:26:07 [debug] 29193\#0: wake up, sigio 0
2020/10/27 05:26:07 [debug] 29193\#0: reap children
2020/10/27 05:26:07 [debug] 29193\#0: child: 0 29228 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:26:07 [debug] 29193\#0: pass close channel s:0 pid:29228 to:29230
2020/10/27 05:26:07 [debug] 29193\#0: child: 1 29230 e:0 t:0 d:0 r:1 j:0
2020/10/27 05:26:07 [debug] 29193\#0: sigsuspend
2020/10/27 05:26:07 [notice] 29193\#0: signal 29 (SIGIO) received
2020/10/27 05:26:07 [debug] 29230\#0: epoll: fd:11 ev:0001 d:08D1F7BC
'
109-timer-hup.t TEST 4: trying to add new timer after HUP reload - status code ok got: ''
expected: '200'
109-timer-hup.t TEST 4: trying to add new timer after HUP reload - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'registered timer
'
109-timer-hup.t TEST 4: trying to add new timer after HUP reload - pattern "lua abort pending timers" should match a line in error.log (req 0)
109-timer-hup.t TEST 4: trying to add new timer after HUP reload - pattern "lua ngx.timer expired" should match a line in error.log (req 0)
109-timer-hup.t TEST 4: trying to add new timer after HUP reload - pattern "stream lua close fake stream connection" should match a line in error.log (req 0)
109-timer-hup.t TEST 4: trying to add new timer after HUP reload - pattern "f: timer prematurely expired: true" should match a line in error.log (req 0)
109-timer-hup.t TEST 4: trying to add new timer after HUP reload - pattern "f: registered a new timer after reload" should match a line in error.log (req 0)
109-timer-hup.t TEST 4: trying to add new timer after HUP reload - pattern "f: exiting=true" should match a line in error.log (req 0)
109-timer-hup.t TEST 4: trying to add new timer after HUP reload - pattern "g: timer prematurely expired: false" should match a line in error.log (req 0)
109-timer-hup.t TEST 4: trying to add new timer after HUP reload - pattern "g: exiting=true" should match a line in error.log (req 0)
109-timer-hup.t TEST 4: trying to add new timer after HUP reload - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:26:09 [alert] 29193\#0: worker process 29237 exited on signal 11" (req 0) 2020/10/27 05:26:09 [debug] 29193\#0: shmtx forced unlock
2020/10/27 05:26:09 [debug] 29193\#0: wake up, sigio 0
2020/10/27 05:26:09 [debug] 29193\#0: reap children
2020/10/27 05:26:09 [debug] 29193\#0: child: 0 29237 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:26:09 [debug] 29193\#0: pass close channel s:0 pid:29237 to:29260
2020/10/27 05:26:09 [debug] 29193\#0: child: 1 29260 e:0 t:0 d:0 r:1 j:0
2020/10/27 05:26:09 [debug] 29193\#0: sigsuspend
2020/10/27 05:26:09 [debug] 29260\#0: epoll: fd:9 ev:0001 d:08D1F7BC
2020/10/27 05:26:09 [notice] 29193\#0: signal 29 (SIGIO) received
'
109-timer-hup.t TEST 4: trying to add new timer after HUP reload - status code ok got: ''
expected: '200'
109-timer-hup.t TEST 4: trying to add new timer after HUP reload - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'registered timer
'
109-timer-hup.t TEST 4: trying to add new timer after HUP reload - pattern "lua abort pending timers" should match a line in error.log (req 1)
109-timer-hup.t TEST 4: trying to add new timer after HUP reload - pattern "lua ngx.timer expired" should match a line in error.log (req 1)
109-timer-hup.t TEST 4: trying to add new timer after HUP reload - pattern "stream lua close fake stream connection" should match a line in error.log (req 1)
109-timer-hup.t TEST 4: trying to add new timer after HUP reload - pattern "f: timer prematurely expired: true" should match a line in error.log (req 1)
109-timer-hup.t TEST 4: trying to add new timer after HUP reload - pattern "f: registered a new timer after reload" should match a line in error.log (req 1)
109-timer-hup.t TEST 4: trying to add new timer after HUP reload - pattern "f: exiting=true" should match a line in error.log (req 1)
109-timer-hup.t TEST 4: trying to add new timer after HUP reload - pattern "g: timer prematurely expired: false" should match a line in error.log (req 1)
109-timer-hup.t TEST 4: trying to add new timer after HUP reload - pattern "g: exiting=true" should match a line in error.log (req 1)
109-timer-hup.t TEST 4: trying to add new timer after HUP reload - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:26:10 [alert] 29193\#0: worker process 29260 exited on signal 11" (req 1) 2020/10/27 05:26:10 [debug] 29193\#0: shmtx forced unlock
2020/10/27 05:26:10 [debug] 29193\#0: wake up, sigio 0
2020/10/27 05:26:10 [debug] 29193\#0: reap children
2020/10/27 05:26:10 [debug] 29193\#0: child: 0 29262 e:0 t:0 d:0 r:1 j:0
2020/10/27 05:26:10 [debug] 29193\#0: child: 1 29260 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:26:10 [debug] 29193\#0: pass close channel s:1 pid:29260 to:29262
2020/10/27 05:26:10 [debug] 29193\#0: sigsuspend
2020/10/27 05:26:10 [notice] 29193\#0: signal 29 (SIGIO) received
2020/10/27 05:26:10 [debug] 29262\#0: epoll: fd:11 ev:0001 d:08D21004
'
109-timer-hup.t TEST 2: multiple timers - status code ok got: ''
expected: '200'
109-timer-hup.t TEST 2: multiple timers - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'registered timers
'
109-timer-hup.t TEST 2: multiple timers - pattern "lua abort pending timers" should match a line in error.log (req 0)
109-timer-hup.t TEST 2: multiple timers - pattern "lua ngx.timer expired" should match a line in error.log (req 0)
109-timer-hup.t TEST 2: multiple timers - pattern "stream lua close fake stream connection" should match a line in error.log (req 0)
109-timer-hup.t TEST 2: multiple timers - pattern "in callback: hello, 1!" should match a line in error.log (req 0)
109-timer-hup.t TEST 2: multiple timers - pattern "in callback: hello, 2!" should match a line in error.log (req 0)
109-timer-hup.t TEST 2: multiple timers - pattern "in callback: hello, 3!" should match a line in error.log (req 0)
109-timer-hup.t TEST 2: multiple timers - pattern "in callback: hello, 4!" should match a line in error.log (req 0)
109-timer-hup.t TEST 2: multiple timers - pattern "in callback: hello, 5!" should match a line in error.log (req 0)
109-timer-hup.t TEST 2: multiple timers - pattern "in callback: hello, 6!" should match a line in error.log (req 0)
109-timer-hup.t TEST 2: multiple timers - pattern "in callback: hello, 7!" should match a line in error.log (req 0)
109-timer-hup.t TEST 2: multiple timers - pattern "in callback: hello, 8!" should match a line in error.log (req 0)
109-timer-hup.t TEST 2: multiple timers - pattern "in callback: hello, 9!" should match a line in error.log (req 0)
109-timer-hup.t TEST 2: multiple timers - pattern "in callback: hello, 10!" should match a line in error.log (req 0)
109-timer-hup.t TEST 2: multiple timers - pattern "timer prematurely expired: true" should match a line in error.log (req 0)
109-timer-hup.t TEST 2: multiple timers - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:26:12 [alert] 29193\#0: worker process 29269 exited on signal 11" (req 0) 2020/10/27 05:26:12 [debug] 29193\#0: shmtx forced unlock
2020/10/27 05:26:12 [debug] 29193\#0: wake up, sigio 0
2020/10/27 05:26:12 [debug] 29193\#0: reap children
2020/10/27 05:26:12 [debug] 29193\#0: child: 0 29292 e:0 t:0 d:0 r:1 j:0
2020/10/27 05:26:12 [debug] 29193\#0: child: 1 29269 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:26:12 [debug] 29193\#0: pass close channel s:1 pid:29269 to:29292
2020/10/27 05:26:12 [debug] 29193\#0: sigsuspend
2020/10/27 05:26:12 [notice] 29193\#0: signal 29 (SIGIO) received
2020/10/27 05:26:12 [debug] 29292\#0: epoll: fd:9 ev:0001 d:08D1F79C
'
109-timer-hup.t TEST 2: multiple timers - status code ok got: ''
expected: '200'
109-timer-hup.t TEST 2: multiple timers - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'registered timers
'
109-timer-hup.t TEST 2: multiple timers - pattern "lua abort pending timers" should match a line in error.log (req 1)
109-timer-hup.t TEST 2: multiple timers - pattern "lua ngx.timer expired" should match a line in error.log (req 1)
109-timer-hup.t TEST 2: multiple timers - pattern "stream lua close fake stream connection" should match a line in error.log (req 1)
109-timer-hup.t TEST 2: multiple timers - pattern "in callback: hello, 1!" should match a line in error.log (req 1)
109-timer-hup.t TEST 2: multiple timers - pattern "in callback: hello, 2!" should match a line in error.log (req 1)
109-timer-hup.t TEST 2: multiple timers - pattern "in callback: hello, 3!" should match a line in error.log (req 1)
109-timer-hup.t TEST 2: multiple timers - pattern "in callback: hello, 4!" should match a line in error.log (req 1)
109-timer-hup.t TEST 2: multiple timers - pattern "in callback: hello, 5!" should match a line in error.log (req 1)
109-timer-hup.t TEST 2: multiple timers - pattern "in callback: hello, 6!" should match a line in error.log (req 1)
109-timer-hup.t TEST 2: multiple timers - pattern "in callback: hello, 7!" should match a line in error.log (req 1)
109-timer-hup.t TEST 2: multiple timers - pattern "in callback: hello, 8!" should match a line in error.log (req 1)
109-timer-hup.t TEST 2: multiple timers - pattern "in callback: hello, 9!" should match a line in error.log (req 1)
109-timer-hup.t TEST 2: multiple timers - pattern "in callback: hello, 10!" should match a line in error.log (req 1)
109-timer-hup.t TEST 2: multiple timers - pattern "timer prematurely expired: true" should match a line in error.log (req 1)
109-timer-hup.t TEST 2: multiple timers - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:26:13 [alert] 29193\#0: worker process 29292 exited on signal 11" (req 1) 2020/10/27 05:26:13 [debug] 29193\#0: shmtx forced unlock
2020/10/27 05:26:13 [debug] 29193\#0: wake up, sigio 0
2020/10/27 05:26:13 [debug] 29193\#0: reap children
2020/10/27 05:26:13 [debug] 29193\#0: child: 0 29292 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:26:13 [debug] 29193\#0: pass close channel s:0 pid:29292 to:29294
2020/10/27 05:26:13 [debug] 29193\#0: child: 1 29294 e:0 t:0 d:0 r:1 j:0
2020/10/27 05:26:13 [debug] 29193\#0: sigsuspend
2020/10/27 05:26:13 [debug] 29294\#0: epoll: fd:11 ev:0001 d:08D1F78C
2020/10/27 05:26:13 [notice] 29193\#0: signal 29 (SIGIO) received
'
109-timer-hup.t TEST 5: HUP reload should abort pending timers - status code ok got: ''
expected: '200'
109-timer-hup.t TEST 5: HUP reload should abort pending timers - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'ok
'
109-timer-hup.t TEST 5: HUP reload should abort pending timers - grep_error_log_out (req 0) got: ''
expected: 'lua found 100 pending timers
'
109-timer-hup.t TEST 5: HUP reload should abort pending timers - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:26:15 [alert] 29193\#0: worker process 29301 exited on signal 11" (req 0) 2020/10/27 05:26:15 [debug] 29193\#0: shmtx forced unlock
2020/10/27 05:26:15 [debug] 29193\#0: wake up, sigio 0
2020/10/27 05:26:15 [debug] 29193\#0: reap children
2020/10/27 05:26:15 [debug] 29193\#0: child: 0 29301 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:26:15 [debug] 29193\#0: pass close channel s:0 pid:29301 to:29324
2020/10/27 05:26:15 [debug] 29193\#0: child: 1 29324 e:0 t:0 d:0 r:1 j:0
2020/10/27 05:26:15 [debug] 29193\#0: sigsuspend
2020/10/27 05:26:15 [notice] 29193\#0: signal 29 (SIGIO) received
2020/10/27 05:26:15 [debug] 29324\#0: epoll: fd:9 ev:0001 d:08D20594
'
109-timer-hup.t TEST 5: HUP reload should abort pending timers - status code ok got: ''
expected: '200'
109-timer-hup.t TEST 5: HUP reload should abort pending timers - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'ok
'
109-timer-hup.t TEST 5: HUP reload should abort pending timers - grep_error_log_out (req 1) got: ''
expected: 'lua found 100 pending timers
'
109-timer-hup.t TEST 5: HUP reload should abort pending timers - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:26:16 [alert] 29193\#0: worker process 29324 exited on signal 11" (req 1) 2020/10/27 05:26:16 [debug] 29193\#0: shmtx forced unlock
2020/10/27 05:26:16 [debug] 29193\#0: wake up, sigio 0
2020/10/27 05:26:16 [debug] 29193\#0: reap children
2020/10/27 05:26:16 [debug] 29193\#0: child: 0 29326 e:0 t:0 d:0 r:1 j:0
2020/10/27 05:26:16 [debug] 29193\#0: child: 1 29324 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:26:16 [debug] 29193\#0: pass close channel s:1 pid:29324 to:29326
2020/10/27 05:26:16 [debug] 29193\#0: sigsuspend
2020/10/27 05:26:16 [notice] 29193\#0: signal 29 (SIGIO) received
2020/10/27 05:26:16 [debug] 29326\#0: epoll: fd:11 ev:0001 d:08D1ED4C
'
109-timer-hup.t TEST 3: trying to add new timer after HUP reload - status code ok got: ''
expected: '200'
109-timer-hup.t TEST 3: trying to add new timer after HUP reload - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'registered timer
'
109-timer-hup.t TEST 3: trying to add new timer after HUP reload - pattern "lua abort pending timers" should match a line in error.log (req 0)
109-timer-hup.t TEST 3: trying to add new timer after HUP reload - pattern "lua ngx.timer expired" should match a line in error.log (req 0)
109-timer-hup.t TEST 3: trying to add new timer after HUP reload - pattern "stream lua close fake stream connection" should match a line in error.log (req 0)
109-timer-hup.t TEST 3: trying to add new timer after HUP reload - pattern "timer prematurely expired: true" should match a line in error.log (req 0)
109-timer-hup.t TEST 3: trying to add new timer after HUP reload - pattern "failed to register a new timer after reload: process exiting, context: ngx.timer" should match a line in error.log (req 0)
109-timer-hup.t TEST 3: trying to add new timer after HUP reload - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:26:19 [alert] 29193\#0: worker process 29333 exited on signal 11" (req 0) 2020/10/27 05:26:19 [debug] 29193\#0: shmtx forced unlock
2020/10/27 05:26:19 [debug] 29193\#0: wake up, sigio 0
2020/10/27 05:26:19 [debug] 29193\#0: reap children
2020/10/27 05:26:19 [debug] 29193\#0: child: 0 29356 e:0 t:0 d:0 r:1 j:0
2020/10/27 05:26:19 [debug] 29193\#0: child: 1 29333 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:26:19 [debug] 29193\#0: pass close channel s:1 pid:29333 to:29356
2020/10/27 05:26:19 [debug] 29193\#0: sigsuspend
2020/10/27 05:26:19 [notice] 29193\#0: signal 29 (SIGIO) received
2020/10/27 05:26:19 [debug] 29193\#0: wake up, sigio 0
'
109-timer-hup.t TEST 3: trying to add new timer after HUP reload - status code ok got: ''
expected: '200'
109-timer-hup.t TEST 3: trying to add new timer after HUP reload - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'registered timer
'
109-timer-hup.t TEST 3: trying to add new timer after HUP reload - pattern "lua abort pending timers" should match a line in error.log (req 1)
109-timer-hup.t TEST 3: trying to add new timer after HUP reload - pattern "lua ngx.timer expired" should match a line in error.log (req 1)
109-timer-hup.t TEST 3: trying to add new timer after HUP reload - pattern "stream lua close fake stream connection" should match a line in error.log (req 1)
109-timer-hup.t TEST 3: trying to add new timer after HUP reload - pattern "timer prematurely expired: true" should match a line in error.log (req 1)
109-timer-hup.t TEST 3: trying to add new timer after HUP reload - pattern "failed to register a new timer after reload: process exiting, context: ngx.timer" should match a line in error.log (req 1)
109-timer-hup.t TEST 3: trying to add new timer after HUP reload - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:26:19 [alert] 29193\#0: worker process 29356 exited on signal 11" (req 1) 2020/10/27 05:26:19 [debug] 29193\#0: shmtx forced unlock
2020/10/27 05:26:19 [debug] 29193\#0: wake up, sigio 0
2020/10/27 05:26:19 [debug] 29193\#0: reap children
2020/10/27 05:26:19 [debug] 29193\#0: child: 0 29356 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:26:19 [debug] 29193\#0: pass close channel s:0 pid:29356 to:29358
2020/10/27 05:26:19 [debug] 29193\#0: child: 1 29358 e:0 t:0 d:0 r:1 j:0
2020/10/27 05:26:19 [debug] 29193\#0: sigsuspend
2020/10/27 05:26:19 [notice] 29193\#0: signal 29 (SIGIO) received
2020/10/27 05:26:19 [debug] 29358\#0: epoll: fd:11 ev:0001 d:08D20594
'
114-config.t TEST 1: ngx.config.debug - status code ok got: ''
expected: '200'
114-config.t TEST 1: ngx.config.debug - response_body_like - response is expected () ''
doesn't match '(?^s:^debug: (?:true|false)$)'
114-config.t TEST 1: ngx.config.debug - status code ok got: ''
expected: '200'
114-config.t TEST 1: ngx.config.debug - response_body_like - response is expected () ''
doesn't match '(?^s:^debug: (?:true|false)$)'
114-config.t TEST 2: ngx.config.subystem - status code ok got: ''
expected: '200'
114-config.t TEST 2: ngx.config.subystem - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "subsystem: stream\x{0a}"
length: 18
strings begin to differ at char 1 (line 1 column 1)
114-config.t TEST 2: ngx.config.subystem - status code ok got: ''
expected: '200'
114-config.t TEST 2: ngx.config.subystem - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "subsystem: stream\x{0a}"
length: 18
strings begin to differ at char 1 (line 1 column 1)
115-quote-sql-str.t TEST 4: \Z - status code ok got: ''
expected: '200'
115-quote-sql-str.t TEST 4: \Z - response_body - response is expected (repeated req 0, req 0) got: ''
expected: ''a\Zb\Z'
'
115-quote-sql-str.t TEST 4: \Z - status code ok got: ''
expected: '200'
115-quote-sql-str.t TEST 4: \Z - response_body - response is expected (repeated req 1, req 0) got: ''
expected: ''a\Zb\Z'
'
115-quote-sql-str.t TEST 2: \t - status code ok got: ''
expected: '200'
115-quote-sql-str.t TEST 2: \t - response_body - response is expected (repeated req 0, req 0) got: ''
expected: ''a\tb\t'
'
115-quote-sql-str.t TEST 2: \t - status code ok got: ''
expected: '200'
115-quote-sql-str.t TEST 2: \t - response_body - response is expected (repeated req 1, req 0) got: ''
expected: ''a\tb\t'
'
115-quote-sql-str.t TEST 1: \0 - status code ok got: ''
expected: '200'
115-quote-sql-str.t TEST 1: \0 - response_body - response is expected (repeated req 0, req 0) got: ''
expected: ''a\0b\0'
'
115-quote-sql-str.t TEST 1: \0 - status code ok got: ''
expected: '200'
115-quote-sql-str.t TEST 1: \0 - response_body - response is expected (repeated req 1, req 0) got: ''
expected: ''a\0b\0'
'
115-quote-sql-str.t TEST 3: \b - status code ok got: ''
expected: '200'
115-quote-sql-str.t TEST 3: \b - response_body - response is expected (repeated req 0, req 0) got: ''
expected: ''a\bb\b'
'
115-quote-sql-str.t TEST 3: \b - status code ok got: ''
expected: '200'
115-quote-sql-str.t TEST 3: \b - response_body - response is expected (repeated req 1, req 0) got: ''
expected: ''a\bb\b'
'
116-raw-req-socket.t TEST 4: ngx.print after ngx.req.socket(true) - status code ok got: ''
expected: '200'
116-raw-req-socket.t TEST 4: ngx.print after ngx.req.socket(true) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'ok'
116-raw-req-socket.t TEST 4: ngx.print after ngx.req.socket(true) - status code ok got: ''
expected: '200'
116-raw-req-socket.t TEST 4: ngx.print after ngx.req.socket(true) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'ok'
116-raw-req-socket.t TEST 8: on_abort called during ngx.sleep() - status code ok got: ''
expected: '200'
116-raw-req-socket.t TEST 8: on_abort called during ngx.sleep() - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'receive stream response error: timeout
'
116-raw-req-socket.t TEST 8: on_abort called during ngx.sleep() - pattern "mysock handler aborted" should match a line in error.log (req 0)
116-raw-req-socket.t TEST 8: on_abort called during ngx.sleep() - status code ok got: ''
expected: '200'
116-raw-req-socket.t TEST 8: on_abort called during ngx.sleep() - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'receive stream response error: timeout
'
116-raw-req-socket.t TEST 8: on_abort called during ngx.sleep() - pattern "mysock handler aborted" should match a line in error.log (req 1)
116-raw-req-socket.t TEST 12: read chunked request body with raw req socket - status code ok got: ''
expected: '200'
116-raw-req-socket.t TEST 12: read chunked request body with raw req socket - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-got 2 chunks.
-request body: hey, hello world
'
116-raw-req-socket.t TEST 12: read chunked request body with raw req socket - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:26:34 [alert] 29511\#0: worker process 29551 exited on signal 11" (req 0) 2020/10/27 05:26:34 [debug] 29511\#0: shmtx forced unlock
2020/10/27 05:26:34 [debug] 29511\#0: wake up, sigio 0
2020/10/27 05:26:34 [debug] 29511\#0: reap children
2020/10/27 05:26:34 [debug] 29511\#0: child: 0 29551 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:26:34 [debug] 29511\#0: channel 3:4
2020/10/27 05:26:34 [notice] 29511\#0: start worker process 29573
2020/10/27 05:26:34 [debug] 29511\#0: sigsuspend
2020/10/27 05:26:34 [debug] 29573\#0: malloc: 0A0DF780:12
2020/10/27 05:26:34 [debug] 29573\#0: malloc: 0A0E3F50:8
'
116-raw-req-socket.t TEST 12: read chunked request body with raw req socket - status code ok got: ''
expected: '200'
116-raw-req-socket.t TEST 12: read chunked request body with raw req socket - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-got 2 chunks.
-request body: hey, hello world
'
116-raw-req-socket.t TEST 12: read chunked request body with raw req socket - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:26:34 [alert] 29511\#0: worker process 29573 exited on signal 11" (req 1) 2020/10/27 05:26:34 [debug] 29511\#0: shmtx forced unlock
2020/10/27 05:26:34 [debug] 29511\#0: wake up, sigio 0
2020/10/27 05:26:34 [debug] 29511\#0: reap children
2020/10/27 05:26:34 [debug] 29511\#0: child: 0 29573 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:26:34 [debug] 29511\#0: channel 3:4
2020/10/27 05:26:34 [notice] 29511\#0: start worker process 29574
2020/10/27 05:26:34 [debug] 29511\#0: sigsuspend
2020/10/27 05:26:34 [debug] 29574\#0: malloc: 0A0DF780:12
2020/10/27 05:26:34 [debug] 29574\#0: malloc: 0A0E3F50:8
'
116-raw-req-socket.t TEST 2: multiple raw req sockets - status code ok got: ''
expected: '200'
116-raw-req-socket.t TEST 2: multiple raw req sockets - status code ok got: ''
expected: '200'
116-raw-req-socket.t TEST 14: simulated lingering close - status code ok got: ''
expected: '200'
116-raw-req-socket.t TEST 14: simulated lingering close - status code ok got: ''
expected: '200'
116-raw-req-socket.t TEST 6: ngx.flush after ngx.req.socket(true) - status code ok got: ''
expected: '200'
116-raw-req-socket.t TEST 6: ngx.flush after ngx.req.socket(true) - status code ok got: ''
expected: '200'
116-raw-req-socket.t TEST 10: receiveuntil - status code ok got: ''
expected: '200'
116-raw-req-socket.t TEST 10: receiveuntil - response_body - response is expected (repeated req 0, req 0) got: ''
expected: '1: received: hello, wo
'
116-raw-req-socket.t TEST 10: receiveuntil - pattern "attempt to receive data on a closed socket" should match a line in error.log (req 0)
116-raw-req-socket.t TEST 10: receiveuntil - status code ok got: ''
expected: '200'
116-raw-req-socket.t TEST 10: receiveuntil - response_body - response is expected (repeated req 1, req 0) got: ''
expected: '1: received: hello, wo
'
116-raw-req-socket.t TEST 10: receiveuntil - pattern "attempt to receive data on a closed socket" should match a line in error.log (req 1)
116-raw-req-socket.t TEST 11: request body not read yet - status code ok got: ''
expected: '200'
116-raw-req-socket.t TEST 11: request body not read yet - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-HTTP/1.1 200 OK
-Content-Length: 5
-
-hello'
116-raw-req-socket.t TEST 11: request body not read yet - status code ok got: ''
expected: '200'
116-raw-req-socket.t TEST 11: request body not read yet - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +0,0 @@
-HTTP/1.1 200 OK
-Content-Length: 5
-
-hello'
116-raw-req-socket.t TEST 1: sanity - status code ok got: ''
expected: '200'
116-raw-req-socket.t TEST 1: sanity - response_body - response is expected (repeated req 0, req 0) got: ''
expected: '1: received: hello
'
116-raw-req-socket.t TEST 1: sanity - status code ok got: ''
expected: '200'
116-raw-req-socket.t TEST 1: sanity - response_body - response is expected (repeated req 1, req 0) got: ''
expected: '1: received: hello
'
116-raw-req-socket.t TEST 7: receive timeout - status code ok got: ''
expected: '200'
116-raw-req-socket.t TEST 7: receive timeout - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:26:49 [alert] 29511\#0: worker process 29789 exited on signal 11" (req 0) 2020/10/27 05:26:49 [debug] 29511\#0: shmtx forced unlock
2020/10/27 05:26:49 [debug] 29511\#0: wake up, sigio 0
2020/10/27 05:26:49 [debug] 29511\#0: reap children
2020/10/27 05:26:49 [debug] 29511\#0: child: 0 29789 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:26:49 [debug] 29511\#0: channel 3:4
2020/10/27 05:26:49 [notice] 29511\#0: start worker process 29811
2020/10/27 05:26:49 [debug] 29511\#0: sigsuspend
2020/10/27 05:26:49 [debug] 29811\#0: malloc: 0A0DF780:12
2020/10/27 05:26:49 [debug] 29811\#0: malloc: 0A0E3F50:8
'
116-raw-req-socket.t TEST 7: receive timeout - status code ok got: ''
expected: '200'
116-raw-req-socket.t TEST 7: receive timeout - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:26:49 [alert] 29511\#0: worker process 29811 exited on signal 11" (req 1) 2020/10/27 05:26:49 [debug] 29511\#0: shmtx forced unlock
2020/10/27 05:26:49 [debug] 29511\#0: wake up, sigio 0
2020/10/27 05:26:49 [debug] 29511\#0: reap children
2020/10/27 05:26:49 [debug] 29511\#0: child: 0 29811 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:26:49 [debug] 29511\#0: channel 3:4
2020/10/27 05:26:49 [notice] 29511\#0: start worker process 29812
2020/10/27 05:26:49 [debug] 29511\#0: sigsuspend
2020/10/27 05:26:49 [debug] 29812\#0: malloc: 0A0DF780:12
2020/10/27 05:26:49 [debug] 29812\#0: malloc: 0A0E3F50:8
'
116-raw-req-socket.t TEST 3: ngx.say after ngx.req.socket(true) - status code ok got: ''
expected: '200'
116-raw-req-socket.t TEST 3: ngx.say after ngx.req.socket(true) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'ok
'
116-raw-req-socket.t TEST 3: ngx.say after ngx.req.socket(true) - status code ok got: ''
expected: '200'
116-raw-req-socket.t TEST 3: ngx.say after ngx.req.socket(true) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'ok
'
116-raw-req-socket.t TEST 13: shutdown can only be called once and prevents all further output - status code ok got: ''
expected: '200'
116-raw-req-socket.t TEST 13: shutdown can only be called once and prevents all further output - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'it works
'
116-raw-req-socket.t TEST 13: shutdown can only be called once and prevents all further output - status code ok got: ''
expected: '200'
116-raw-req-socket.t TEST 13: shutdown can only be called once and prevents all further output - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'it works
'
116-raw-req-socket.t TEST 5: ngx.eof after ngx.req.socket(true) - status code ok got: ''
expected: '200'
116-raw-req-socket.t TEST 5: ngx.eof after ngx.req.socket(true) - status code ok got: ''
expected: '200'
117-raw-req-socket-timeout.t TEST 1: pending response data - status code ok got: ''
expected: '200'
117-raw-req-socket-timeout.t TEST 1: pending response data - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'hello
'
117-raw-req-socket-timeout.t TEST 1: pending response data - status code ok got: ''
expected: '200'
117-raw-req-socket-timeout.t TEST 1: pending response data - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'hello
'
117-raw-req-socket-timeout.t TEST 2: send timeout - status code ok got: ''
expected: '200'
117-raw-req-socket-timeout.t TEST 2: send timeout - response_body_like - response is expected () ''
doesn't match '(?^s:^received \d+ bytes of response data\.$)'
117-raw-req-socket-timeout.t TEST 2: send timeout - pattern "stream lua tcp socket write timed out" should match a line in error.log (req 0)
117-raw-req-socket-timeout.t TEST 2: send timeout - pattern "server: failed to send: timeout" should match a line in error.log (req 0)
117-raw-req-socket-timeout.t TEST 2: send timeout - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:27:00 [alert] 29911\#0: worker process 29921 exited on signal 11" (req 0) 2020/10/27 05:27:00 [debug] 29911\#0: shmtx forced unlock
2020/10/27 05:27:00 [debug] 29911\#0: wake up, sigio 0
2020/10/27 05:27:00 [debug] 29911\#0: reap children
2020/10/27 05:27:00 [debug] 29911\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:27:00 [debug] 29911\#0: child: 1 29921 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:27:00 [debug] 29911\#0: channel 3:4
2020/10/27 05:27:00 [notice] 29911\#0: start worker process 29942
2020/10/27 05:27:00 [debug] 29911\#0: sigsuspend
2020/10/27 05:27:00 [debug] 29942\#0: malloc: 092ABFB0:12
'
117-raw-req-socket-timeout.t TEST 2: send timeout - status code ok got: ''
expected: '200'
117-raw-req-socket-timeout.t TEST 2: send timeout - response_body_like - response is expected () ''
doesn't match '(?^s:^received \d+ bytes of response data\.$)'
117-raw-req-socket-timeout.t TEST 2: send timeout - pattern "stream lua tcp socket write timed out" should match a line in error.log (req 1)
117-raw-req-socket-timeout.t TEST 2: send timeout - pattern "server: failed to send: timeout" should match a line in error.log (req 1)
117-raw-req-socket-timeout.t TEST 2: send timeout - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:27:01 [alert] 29911\#0: worker process 29942 exited on signal 11" (req 1) 2020/10/27 05:27:01 [debug] 29911\#0: shmtx forced unlock
2020/10/27 05:27:01 [debug] 29911\#0: wake up, sigio 0
2020/10/27 05:27:01 [debug] 29911\#0: reap children
2020/10/27 05:27:01 [debug] 29911\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:27:01 [debug] 29911\#0: child: 1 29942 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:27:01 [debug] 29911\#0: channel 3:4
2020/10/27 05:27:01 [notice] 29911\#0: start worker process 29943
2020/10/27 05:27:01 [debug] 29911\#0: sigsuspend
2020/10/27 05:27:01 [debug] 29943\#0: malloc: 092ABFB0:12
'
119-config-prefix.t TEST 1: content_by_lua - status code ok got: ''
expected: '200'
119-config-prefix.t TEST 1: content_by_lua - response_body_like - response is expected () ''
doesn't match '(?^s:^prefix: \/\S+$)'
119-config-prefix.t TEST 1: content_by_lua - status code ok got: ''
expected: '200'
119-config-prefix.t TEST 1: content_by_lua - response_body_like - response is expected () ''
doesn't match '(?^s:^prefix: \/\S+$)'
120-re-find.t TEST 10: single-line mode (^ as normal) - status code ok got: ''
expected: '200'
120-re-find.t TEST 10: single-line mode (^ as normal) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'not matched.
'
120-re-find.t TEST 10: single-line mode (^ as normal) - status code ok got: ''
expected: '200'
120-re-find.t TEST 10: single-line mode (^ as normal) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'not matched.
'
120-re-find.t TEST 23: just not hit match limit - status code ok got: ''
expected: '200'
120-re-find.t TEST 23: just not hit match limit - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'failed to match
'
120-re-find.t TEST 23: just not hit match limit - status code ok got: ''
expected: '200'
120-re-find.t TEST 23: just not hit match limit - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'failed to match
'
120-re-find.t TEST 27: specify the group (3) - status code ok got: ''
expected: '200'
120-re-find.t TEST 27: specify the group (3) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'error: nth out of bound
'
120-re-find.t TEST 27: specify the group (3) - status code ok got: ''
expected: '200'
120-re-find.t TEST 27: specify the group (3) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'error: nth out of bound
'
120-re-find.t TEST 3: multiple captures (with o) - status code ok got: ''
expected: '200'
120-re-find.t TEST 3: multiple captures (with o) - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-from: 1
-to: 11
-matched: hello, 1234
'
120-re-find.t TEST 3: multiple captures (with o) - status code ok got: ''
expected: '200'
120-re-find.t TEST 3: multiple captures (with o) - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-from: 1
-to: 11
-matched: hello, 1234
'
120-re-find.t TEST 6: case insensitive - status code ok got: ''
expected: '200'
120-re-find.t TEST 6: case insensitive - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-from: 1
-to: 5
-matched: hello
'
120-re-find.t TEST 6: case insensitive - status code ok got: ''
expected: '200'
120-re-find.t TEST 6: case insensitive - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-from: 1
-to: 5
-matched: hello
'
120-re-find.t TEST 15: anchored match (failed) - status code ok got: ''
expected: '200'
120-re-find.t TEST 15: anchored match (failed) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'not matched.
'
120-re-find.t TEST 15: anchored match (failed) - status code ok got: ''
expected: '200'
120-re-find.t TEST 15: anchored match (failed) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'not matched.
'
120-re-find.t TEST 25: specify the group (0) - status code ok got: ''
expected: '200'
120-re-find.t TEST 25: specify the group (0) - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-from: 8
-to: 11
-matched: 1234
'
120-re-find.t TEST 25: specify the group (0) - status code ok got: ''
expected: '200'
120-re-find.t TEST 25: specify the group (0) - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-from: 8
-to: 11
-matched: 1234
'
120-re-find.t TEST 12: extended mode (ignore whitespaces) - status code ok got: ''
expected: '200'
120-re-find.t TEST 12: extended mode (ignore whitespaces) - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-from: 1
-to: 2
-matched: he
'
120-re-find.t TEST 12: extended mode (ignore whitespaces) - status code ok got: ''
expected: '200'
120-re-find.t TEST 12: extended mode (ignore whitespaces) - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-from: 1
-to: 2
-matched: he
'
120-re-find.t TEST 2: empty matched string - status code ok got: ''
expected: '200'
120-re-find.t TEST 2: empty matched string - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-from: 1
-to: 0
-matched:
'
120-re-find.t TEST 2: empty matched string - status code ok got: ''
expected: '200'
120-re-find.t TEST 2: empty matched string - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-from: 1
-to: 0
-matched:
'
120-re-find.t TEST 4: not matched - status code ok got: ''
expected: '200'
120-re-find.t TEST 4: not matched - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'not matched.
'
120-re-find.t TEST 4: not matched - status code ok got: ''
expected: '200'
120-re-find.t TEST 4: not matched - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'not matched.
'
120-re-find.t TEST 19: named subpatterns w/ extraction - status code ok got: ''
expected: '200'
120-re-find.t TEST 19: named subpatterns w/ extraction - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-from: 1
-to: 11
-matched: hello, 1234
'
120-re-find.t TEST 19: named subpatterns w/ extraction - status code ok got: ''
expected: '200'
120-re-find.t TEST 19: named subpatterns w/ extraction - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-from: 1
-to: 11
-matched: hello, 1234
'
120-re-find.t TEST 28: specify the group (4) - status code ok got: ''
expected: '200'
120-re-find.t TEST 28: specify the group (4) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'error: nth out of bound
'
120-re-find.t TEST 28: specify the group (4) - status code ok got: ''
expected: '200'
120-re-find.t TEST 28: specify the group (4) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'error: nth out of bound
'
120-re-find.t TEST 17: match with ctx but no pos - status code ok got: ''
expected: '200'
120-re-find.t TEST 17: match with ctx but no pos - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-from: 1
-to: 4
-pos: 5
'
120-re-find.t TEST 17: match with ctx but no pos - status code ok got: ''
expected: '200'
120-re-find.t TEST 17: match with ctx but no pos - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-from: 1
-to: 4
-pos: 5
'
120-re-find.t TEST 30: nil submatch (1st) - status code ok got: ''
expected: '200'
120-re-find.t TEST 30: nil submatch (1st) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'not matched!
'
120-re-find.t TEST 30: nil submatch (1st) - status code ok got: ''
expected: '200'
120-re-find.t TEST 30: nil submatch (1st) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'not matched!
'
120-re-find.t TEST 26: specify the group (2) - status code ok got: ''
expected: '200'
120-re-find.t TEST 26: specify the group (2) - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-from: 9
-to: 11
-matched: 234
'
120-re-find.t TEST 26: specify the group (2) - status code ok got: ''
expected: '200'
120-re-find.t TEST 26: specify the group (2) - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-from: 9
-to: 11
-matched: 234
'
120-re-find.t TEST 29: nil submatch (2nd) - status code ok got: ''
expected: '200'
120-re-find.t TEST 29: nil submatch (2nd) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'not matched!
'
120-re-find.t TEST 29: nil submatch (2nd) - status code ok got: ''
expected: '200'
120-re-find.t TEST 29: nil submatch (2nd) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'not matched!
'
120-re-find.t TEST 1: sanity - status code ok got: ''
expected: '200'
120-re-find.t TEST 1: sanity - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-from: 8
-to: 11
-matched: 1234
'
120-re-find.t TEST 1: sanity - status code ok got: ''
expected: '200'
120-re-find.t TEST 1: sanity - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-from: 8
-to: 11
-matched: 1234
'
120-re-find.t TEST 11: single-line mode (dot all) - status code ok got: ''
expected: '200'
120-re-find.t TEST 11: single-line mode (dot all) - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-from: 1
-to: 11
-matched: hello
-world
'
120-re-find.t TEST 11: single-line mode (dot all) - status code ok got: ''
expected: '200'
120-re-find.t TEST 11: single-line mode (dot all) - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +0,0 @@
-from: 1
-to: 11
-matched: hello
-world
'
120-re-find.t TEST 8: multi-line mode (^ at line head) - status code ok got: ''
expected: '200'
120-re-find.t TEST 8: multi-line mode (^ at line head) - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-from: 7
-to: 11
-matched: world
'
120-re-find.t TEST 8: multi-line mode (^ at line head) - status code ok got: ''
expected: '200'
120-re-find.t TEST 8: multi-line mode (^ at line head) - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-from: 7
-to: 11
-matched: world
'
120-re-find.t TEST 21: UTF-8 mode without UTF-8 sequence checks - status code ok got: ''
expected: '200'
120-re-find.t TEST 21: UTF-8 mode without UTF-8 sequence checks - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-from: 1
-to: 3
-matched: ä½ 
'
120-re-find.t TEST 21: UTF-8 mode without UTF-8 sequence checks - status code ok got: ''
expected: '200'
120-re-find.t TEST 21: UTF-8 mode without UTF-8 sequence checks - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-from: 1
-to: 3
-matched: ä½ 
'
120-re-find.t TEST 9: multi-line mode (. does not match \n) - status code ok got: ''
expected: '200'
120-re-find.t TEST 9: multi-line mode (. does not match \n) - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-from: 1
-to: 5
-matched: hello
'
120-re-find.t TEST 9: multi-line mode (. does not match \n) - status code ok got: ''
expected: '200'
120-re-find.t TEST 9: multi-line mode (. does not match \n) - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-from: 1
-to: 5
-matched: hello
'
120-re-find.t TEST 22: just hit match limit - status code ok got: ''
expected: '200'
120-re-find.t TEST 22: just hit match limit - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'failed to match.
'
120-re-find.t TEST 22: just hit match limit - status code ok got: ''
expected: '200'
120-re-find.t TEST 22: just hit match limit - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'failed to match.
'
120-re-find.t TEST 16: anchored match (succeeded) - status code ok got: ''
expected: '200'
120-re-find.t TEST 16: anchored match (succeeded) - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-from: 1
-to: 4
-matched: 1234
'
120-re-find.t TEST 16: anchored match (succeeded) - status code ok got: ''
expected: '200'
120-re-find.t TEST 16: anchored match (succeeded) - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-from: 1
-to: 4
-matched: 1234
'
120-re-find.t TEST 7: UTF-8 mode - status code ok got: ''
expected: '200'
120-re-find.t TEST 7: UTF-8 mode - response_body_like - response is expected () ''
doesn't match '(?^s:^(?:FAIL: bad argument \#2 to '\?' \(pcre_compile\(\) failed: this version of PCRE is not compiled with PCRE_UTF8 support in "HELLO\.\{2\}" at "HELLO\.\{2\}"\)|hello章亦)$)'
120-re-find.t TEST 7: UTF-8 mode - status code ok got: ''
expected: '200'
120-re-find.t TEST 7: UTF-8 mode - response_body_like - response is expected () ''
doesn't match '(?^s:^(?:FAIL: bad argument \#2 to '\?' \(pcre_compile\(\) failed: this version of PCRE is not compiled with PCRE_UTF8 support in "HELLO\.\{2\}" at "HELLO\.\{2\}"\)|hello章亦)$)'
120-re-find.t TEST 14: bad option - status code ok got: ''
expected: '200'
120-re-find.t TEST 14: bad option - status code ok got: ''
expected: '200'
120-re-find.t TEST 18: match with ctx and a pos - status code ok got: ''
expected: '200'
120-re-find.t TEST 18: match with ctx and a pos - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-from: 3
-to: 4
-pos: 5
'
120-re-find.t TEST 18: match with ctx and a pos - status code ok got: ''
expected: '200'
120-re-find.t TEST 18: match with ctx and a pos - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-from: 3
-to: 4
-pos: 5
'
120-re-find.t TEST 13: bad pattern - status code ok got: ''
expected: '200'
120-re-find.t TEST 13: bad pattern - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'error: pcre_compile() failed: missing ) in "(abc"
'
120-re-find.t TEST 13: bad pattern - status code ok got: ''
expected: '200'
120-re-find.t TEST 13: bad pattern - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'error: pcre_compile() failed: missing ) in "(abc"
'
120-re-find.t TEST 20: bad UTF-8 - status code ok got: ''
expected: '200'
120-re-find.t TEST 20: bad UTF-8 - response_body_like - response is expected () ''
doesn't match '(?^s:^error: pcre_exec\(\) failed: -10$)'
120-re-find.t TEST 20: bad UTF-8 - status code ok got: ''
expected: '200'
120-re-find.t TEST 20: bad UTF-8 - response_body_like - response is expected () ''
doesn't match '(?^s:^error: pcre_exec\(\) failed: -10$)'
120-re-find.t TEST 5: case sensitive by default - status code ok got: ''
expected: '200'
120-re-find.t TEST 5: case sensitive by default - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'not matched.
'
120-re-find.t TEST 5: case sensitive by default - status code ok got: ''
expected: '200'
120-re-find.t TEST 5: case sensitive by default - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'not matched.
'
120-re-find.t TEST 24: specify the group (1) - status code ok got: ''
expected: '200'
120-re-find.t TEST 24: specify the group (1) - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-from: 8
-to: 8
-matched: 1
'
120-re-find.t TEST 24: specify the group (1) - status code ok got: ''
expected: '200'
120-re-find.t TEST 24: specify the group (1) - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-from: 8
-to: 8
-matched: 1
'
121-version.t TEST 1: nginx version - status code ok got: ''
expected: '200'
121-version.t TEST 1: nginx version - response_body_like - response is expected () ''
doesn't match '(?^s:^version: \d+$)'
121-version.t TEST 1: nginx version - status code ok got: ''
expected: '200'
121-version.t TEST 1: nginx version - response_body_like - response is expected () ''
doesn't match '(?^s:^version: \d+$)'
121-version.t TEST 2: ngx_lua_version - status code ok got: ''
expected: '200'
121-version.t TEST 2: ngx_lua_version - response_body_like - response is expected () ''
doesn't match '(?^s:^version: \d+$)'
121-version.t TEST 2: ngx_lua_version - status code ok got: ''
expected: '200'
121-version.t TEST 2: ngx_lua_version - response_body_like - response is expected () ''
doesn't match '(?^s:^version: \d+$)'
122-worker.t TEST 5: init_worker_by_lua + ngx.worker.pid - status code ok got: ''
expected: '200'
122-worker.t TEST 5: init_worker_by_lua + ngx.worker.pid - response_body_like - response is expected () ''
doesn't match '(?^s:worker pid: \d+
)'
122-worker.t TEST 5: init_worker_by_lua + ngx.worker.pid - status code ok got: ''
expected: '200'
122-worker.t TEST 5: init_worker_by_lua + ngx.worker.pid - response_body_like - response is expected () ''
doesn't match '(?^s:worker pid: \d+
)'
122-worker.t TEST 3: content_by_lua + ngx.worker.pid - status code ok got: ''
expected: '200'
122-worker.t TEST 3: content_by_lua + ngx.worker.pid - response_body_like - response is expected () ''
doesn't match '(?^s:^worker pid: \d+
)'
122-worker.t TEST 3: content_by_lua + ngx.worker.pid - status code ok got: ''
expected: '200'
122-worker.t TEST 3: content_by_lua + ngx.worker.pid - response_body_like - response is expected () ''
doesn't match '(?^s:^worker pid: \d+
)'
122-worker.t TEST 1: content_by_lua + ngx.worker.exiting - status code ok got: ''
expected: '200'
122-worker.t TEST 1: content_by_lua + ngx.worker.exiting - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'worker exiting: false
'
122-worker.t TEST 1: content_by_lua + ngx.worker.exiting - status code ok got: ''
expected: '200'
122-worker.t TEST 1: content_by_lua + ngx.worker.exiting - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'worker exiting: false
'
123-lua-path.t TEST 1: LUA_PATH & LUA_CPATH env (code cache on) - status code ok got: ''
expected: '200'
123-lua-path.t TEST 1: LUA_PATH & LUA_CPATH env (code cache on) - response_body_like - response is expected () ''
doesn't match '(?^s:(?:\.\.\/lua-resty-core\/lib\/\?\.lua;\.\.\/lua-resty-lrucache\/lib\/\?\.lua;){1,2}\/foo\/bar\/baz
/baz/bar/foo
)'
123-lua-path.t TEST 1: LUA_PATH & LUA_CPATH env (code cache on) - status code ok got: ''
expected: '200'
123-lua-path.t TEST 1: LUA_PATH & LUA_CPATH env (code cache on) - response_body_like - response is expected () ''
doesn't match '(?^s:(?:\.\.\/lua-resty-core\/lib\/\?\.lua;\.\.\/lua-resty-lrucache\/lib\/\?\.lua;){1,2}\/foo\/bar\/baz
/baz/bar/foo
)'
123-lua-path.t TEST 2: LUA_PATH & LUA_CPATH env (code cache off) - status code ok got: ''
expected: '200'
123-lua-path.t TEST 2: LUA_PATH & LUA_CPATH env (code cache off) - response_body_like - response is expected () ''
doesn't match '(?^s:(?:\.\.\/lua-resty-core\/lib\/\?\.lua;\.\.\/lua-resty-lrucache\/lib\/\?\.lua;){1,2}\/foo\/bar\/baz
/baz/bar/foo
)'
123-lua-path.t TEST 2: LUA_PATH & LUA_CPATH env (code cache off) - status code ok got: ''
expected: '200'
123-lua-path.t TEST 2: LUA_PATH & LUA_CPATH env (code cache off) - response_body_like - response is expected () ''
doesn't match '(?^s:(?:\.\.\/lua-resty-core\/lib\/\?\.lua;\.\.\/lua-resty-lrucache\/lib\/\?\.lua;){1,2}\/foo\/bar\/baz
/baz/bar/foo
)'
124-init-worker.t TEST 19: fake module calls ngx_stream_conf_get_module_srv_conf in its merge_srv_conf callback (GitHub issue \#554) - status code ok got: ''
expected: '200'
124-init-worker.t TEST 19: fake module calls ngx_stream_conf_get_module_srv_conf in its merge_srv_conf callback (GitHub issue \#554) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'ok
'
124-init-worker.t TEST 11: ngx.re - status code ok got: ''
expected: '200'
124-init-worker.t TEST 11: ngx.re - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'ok
'
124-init-worker.t TEST 11: ngx.re - grep_error_log_out (req 0) got: 'warn(): hello XXX
warn(): hello XXX
'
expected: 'warn(): hello XXX
'
124-init-worker.t TEST 13: cosocket with resolver - status code ok got: ''
expected: '200'
124-init-worker.t TEST 13: cosocket with resolver - response_body_like - response is expected () ''
doesn't match '(?^s:timer created
connected: 1
request sent: 56
first line received: HTTP\/1\.1 200 OK
second line received: (?:Date|Server): .*?
)'
124-init-worker.t TEST 5: init_worker_by_lua_file (simple global var) - status code ok got: ''
expected: '200'
124-init-worker.t TEST 5: init_worker_by_lua_file (simple global var) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'foo = 5eb63bbbe01eeed093cb22bb8f5acdc3
'
124-init-worker.t TEST 1: set a global lua var - status code ok got: ''
expected: '200'
124-init-worker.t TEST 1: set a global lua var - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'foo = 5eb63bbbe01eeed093cb22bb8f5acdc3
'
124-init-worker.t TEST 9: unescape_uri - status code ok got: ''
expected: '200'
124-init-worker.t TEST 9: unescape_uri - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'ok
'
124-init-worker.t TEST 9: unescape_uri - grep_error_log_out (req 0) got: 'warn(): hello world
warn(): hello world
'
expected: 'warn(): hello world
'
124-init-worker.t TEST 15: connection refused (tcp) - log_errors explicitly on - status code ok got: ''
expected: '200'
124-init-worker.t TEST 15: connection refused (tcp) - log_errors explicitly on - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-timer created
-failed to connect: connection refused
'
124-init-worker.t ERROR: client socket timed out - TEST 4: timer.at + cosocket '
124-init-worker.t TEST 4: timer.at + cosocket - status code ok got: ''
expected: '200'
124-init-worker.t TEST 4: timer.at + cosocket - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'ok
'
124-init-worker.t TEST 4: timer.at + cosocket - grep_error_log_out (req 0) @@ -1,4 +1,3 @@
warn(): created timer: 1
warn(): timer expired (premature: false)
warn(): request sent: 11
-warn(): received: OK
'
124-init-worker.t TEST 7: ngx.ctx - status code ok got: ''
expected: '200'
124-init-worker.t TEST 7: ngx.ctx - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'ok
'
124-init-worker.t TEST 7: ngx.ctx - grep_error_log_out (req 0) got: 'warn(): foo = hello world
warn(): foo = hello world
'
expected: 'warn(): foo = hello world
'
124-init-worker.t TEST 3: timer.at - status code ok got: ''
expected: '200'
124-init-worker.t TEST 3: timer.at - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'my_counter = 1
'
124-init-worker.t TEST 3: timer.at - grep_error_log_out (req 0) @@ -1,2 +1,4 @@
warn(): created timer: 1
warn(): timer expired (premature: false; counter: 0)
+warn(): created timer: 1
+warn(): timer expired (premature: false; counter: 0)
'
124-init-worker.t TEST 14: connection refused (tcp) - log_errors on by default - status code ok got: ''
expected: '200'
124-init-worker.t TEST 14: connection refused (tcp) - log_errors on by default - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-timer created
-failed to connect: connection refused
'
124-init-worker.t TEST 2: no ngx.say() - status code ok got: ''
expected: '200'
124-init-worker.t TEST 2: no ngx.say() - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'foo = nil
'
124-init-worker.t ERROR: client socket timed out - TEST 6: timer.at + cosocket (by_lua_file) '
124-init-worker.t TEST 6: timer.at + cosocket (by_lua_file) - status code ok got: ''
expected: '200'
124-init-worker.t TEST 6: timer.at + cosocket (by_lua_file) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'ok
'
124-init-worker.t TEST 6: timer.at + cosocket (by_lua_file) - grep_error_log_out (req 0) @@ -1,4 +1,3 @@
warn(): created timer: 1
warn(): timer expired (premature: false)
warn(): request sent: 11
-warn(): received: OK
'
124-init-worker.t TEST 10: escape_uri - status code ok got: ''
expected: '200'
124-init-worker.t TEST 10: escape_uri - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'ok
'
124-init-worker.t TEST 10: escape_uri - grep_error_log_out (req 0) got: 'warn(): hello%20world
warn(): hello%20world
'
expected: 'warn(): hello%20world
'
124-init-worker.t TEST 12: ngx.time - status code ok got: ''
expected: '200'
124-init-worker.t TEST 12: ngx.time - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'ok
'
124-init-worker.t TEST 16: connection refused (tcp) - log_errors explicitly off - status code ok got: ''
expected: '200'
124-init-worker.t TEST 16: connection refused (tcp) - log_errors explicitly off - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-timer created
-failed to connect: connection refused
'
124-init-worker.t TEST 8: print - status code ok got: ''
expected: '200'
124-init-worker.t TEST 8: print - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'ok
'
125-configure-args.t TEST 1: nginx configure - status code ok got: ''
expected: '200'
125-configure-args.t TEST 1: nginx configure - response_body_like - response is expected () ''
doesn't match '(?^s:^\s*\-\-[^-]+)'
125-configure-args.t TEST 1: nginx configure - status code ok got: ''
expected: '200'
125-configure-args.t TEST 1: nginx configure - response_body_like - response is expected () ''
doesn't match '(?^s:^\s*\-\-[^-]+)'
126-shdict-frag.t TEST 6: merge 2 multi-page blocks (forcibly evicted, merge backward) - status code ok got: ''
expected: '200'
126-shdict-frag.t TEST 7: merge big slabs (less than max slab size) backward - status code ok got: ''
expected: '200'
126-shdict-frag.t TEST 1: merge 2 single-page free blocks (forcibly evicted, merge forward) - status code ok got: ''
expected: '200'
126-shdict-frag.t TEST 3: merge 3 single-page free slabs (actively deleted, merge backward AND forward) - status code ok got: ''
expected: '200'
126-shdict-frag.t TEST 8: cannot merge in-used big slabs page (backward) - status code ok got: ''
expected: '200'
126-shdict-frag.t TEST 10: fuzz testing - status code ok got: ''
expected: '200'
126-shdict-frag.t TEST 9: cannot merge in-used big slabs page (forward) - status code ok got: ''
expected: '200'
126-shdict-frag.t TEST 5: merge one single-page block forward, but no more - status code ok got: ''
expected: '200'
126-shdict-frag.t TEST 4: merge one single-page block backward, but no more - status code ok got: ''
expected: '200'
126-shdict-frag.t TEST 2: merge 2 single-page free slabs (forcibly evicted, merge backward) - status code ok got: ''
expected: '200'
127-uthread-kill.t TEST 6: kill self - status code ok got: ''
expected: '200'
127-uthread-kill.t TEST 6: kill self - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-failed to kill main thread: not user thread
-failed to kill user thread: killer not parent
-thread created: zombie
'
127-uthread-kill.t TEST 6: kill self - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:29:11 [alert] 31785\#0: worker process 31786 exited on signal 11" (req 0) 2020/10/27 05:29:11 [debug] 31785\#0: shmtx forced unlock
2020/10/27 05:29:11 [debug] 31785\#0: wake up, sigio 0
2020/10/27 05:29:11 [debug] 31785\#0: reap children
2020/10/27 05:29:11 [debug] 31785\#0: child: 0 31786 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:29:11 [debug] 31785\#0: channel 3:9
2020/10/27 05:29:11 [notice] 31785\#0: start worker process 31787
2020/10/27 05:29:11 [debug] 31785\#0: sigsuspend
2020/10/27 05:29:11 [debug] 31787\#0: malloc: 094488E8:12
2020/10/27 05:29:11 [debug] 31787\#0: malloc: 0944D0B8:8
'
127-uthread-kill.t TEST 6: kill self - status code ok got: ''
expected: '200'
127-uthread-kill.t TEST 6: kill self - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-failed to kill main thread: not user thread
-failed to kill user thread: killer not parent
-thread created: zombie
'
127-uthread-kill.t TEST 6: kill self - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:29:11 [alert] 31785\#0: worker process 31787 exited on signal 11" (req 1) 2020/10/27 05:29:11 [debug] 31785\#0: shmtx forced unlock
2020/10/27 05:29:11 [debug] 31785\#0: wake up, sigio 0
2020/10/27 05:29:11 [debug] 31785\#0: reap children
2020/10/27 05:29:11 [debug] 31785\#0: child: 0 31787 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:29:11 [debug] 31785\#0: channel 3:9
2020/10/27 05:29:11 [notice] 31785\#0: start worker process 31788
2020/10/27 05:29:11 [debug] 31785\#0: sigsuspend
2020/10/27 05:29:11 [debug] 31788\#0: malloc: 094488E8:12
2020/10/27 05:29:11 [debug] 31788\#0: malloc: 0944D0B8:8
'
127-uthread-kill.t TEST 3: kill pending resolver - status code ok got: ''
expected: '200'
127-uthread-kill.t TEST 3: kill pending resolver - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-thread created: running
-killed
'
127-uthread-kill.t TEST 3: kill pending resolver - status code ok got: ''
expected: '200'
127-uthread-kill.t TEST 3: kill pending resolver - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-thread created: running
-killed
'
127-uthread-kill.t TEST 1: kill pending sleep - status code ok got: ''
expected: '200'
127-uthread-kill.t TEST 1: kill pending sleep - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-hello from f()
-thread created: running
-killed
-failed to kill thread: already waited or killed
'
127-uthread-kill.t TEST 1: kill pending sleep - status code ok got: ''
expected: '200'
127-uthread-kill.t TEST 1: kill pending sleep - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +0,0 @@
-hello from f()
-thread created: running
-killed
-failed to kill thread: already waited or killed
'
127-uthread-kill.t TEST 5: kill a thread already terminated - status code ok got: ''
expected: '200'
127-uthread-kill.t TEST 5: kill a thread already terminated - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-thread created: zombie
-failed to kill thread: already terminated
'
127-uthread-kill.t TEST 5: kill a thread already terminated - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:29:16 [alert] 31785\#0: worker process 31855 exited on signal 11" (req 0) 2020/10/27 05:29:16 [debug] 31785\#0: shmtx forced unlock
2020/10/27 05:29:16 [debug] 31785\#0: wake up, sigio 0
2020/10/27 05:29:16 [debug] 31785\#0: reap children
2020/10/27 05:29:16 [debug] 31785\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:29:16 [debug] 31785\#0: child: 1 31855 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:29:16 [debug] 31785\#0: channel 3:4
2020/10/27 05:29:16 [notice] 31785\#0: start worker process 31877
2020/10/27 05:29:16 [debug] 31785\#0: sigsuspend
2020/10/27 05:29:16 [debug] 31877\#0: malloc: 09443FB0:12
'
127-uthread-kill.t TEST 5: kill a thread already terminated - status code ok got: ''
expected: '200'
127-uthread-kill.t TEST 5: kill a thread already terminated - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-thread created: zombie
-failed to kill thread: already terminated
'
127-uthread-kill.t TEST 5: kill a thread already terminated - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:29:16 [alert] 31785\#0: worker process 31877 exited on signal 11" (req 1) 2020/10/27 05:29:16 [debug] 31785\#0: shmtx forced unlock
2020/10/27 05:29:16 [debug] 31785\#0: wake up, sigio 0
2020/10/27 05:29:16 [debug] 31785\#0: reap children
2020/10/27 05:29:16 [debug] 31785\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:29:16 [debug] 31785\#0: child: 1 31877 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:29:16 [debug] 31785\#0: channel 3:4
2020/10/27 05:29:16 [notice] 31785\#0: start worker process 31878
2020/10/27 05:29:16 [debug] 31785\#0: sigsuspend
2020/10/27 05:29:16 [debug] 31878\#0: malloc: 09443FB0:12
'
127-uthread-kill.t TEST 2: already waited - status code ok got: ''
expected: '200'
127-uthread-kill.t TEST 2: already waited - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-hello from f()
-thread created: running
-waited: 32
-failed to kill thread: already waited or killed
'
127-uthread-kill.t TEST 2: already waited - status code ok got: ''
expected: '200'
127-uthread-kill.t TEST 2: already waited - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +0,0 @@
-hello from f()
-thread created: running
-waited: 32
-failed to kill thread: already waited or killed
'
127-uthread-kill.t TEST 4: kill pending connect - status code ok got: ''
expected: '200'
127-uthread-kill.t TEST 4: kill pending connect - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-thread created: running
-killed
'
127-uthread-kill.t TEST 4: kill pending connect - grep_error_log_out (req 0) @@ -1,2 +0,0 @@
-stream lua finalize socket
-stream lua finalize socket
'
127-uthread-kill.t TEST 4: kill pending connect - status code ok got: ''
expected: '200'
127-uthread-kill.t TEST 4: kill pending connect - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-thread created: running
-killed
'
127-uthread-kill.t TEST 4: kill pending connect - grep_error_log_out (req 1) @@ -1,2 +0,0 @@
-stream lua finalize socket
-stream lua finalize socket
'
128-duplex-tcp-socket.t TEST 8: concurrent operations while reading (receiveuntil) - status code ok got: ''
expected: '200'
128-duplex-tcp-socket.t TEST 8: concurrent operations while reading (receiveuntil) - response_body - response is expected (repeated req 0, req 0) @@ -1,9 +0,0 @@
-connect: 1 nil
-receive: nil socket busy reading
-send: 9 nil
-close: nil socket busy reading
-getreusedtimes: 0 nil
-setkeepalive: nil socket busy reading
-connect: nil socket busy reading
-receiveuntil() iterator: nil timeout
-close: 1 nil
'
128-duplex-tcp-socket.t TEST 8: concurrent operations while reading (receiveuntil) - status code ok got: ''
expected: '200'
128-duplex-tcp-socket.t TEST 8: concurrent operations while reading (receiveuntil) - response_body - response is expected (repeated req 1, req 0) @@ -1,9 +0,0 @@
-connect: 1 nil
-receive: nil socket busy reading
-send: 9 nil
-close: nil socket busy reading
-getreusedtimes: 0 nil
-setkeepalive: nil socket busy reading
-connect: nil socket busy reading
-receiveuntil() iterator: nil timeout
-close: 1 nil
'
128-duplex-tcp-socket.t TEST 2: read timeout errors won't affect writing - status code ok got: ''
expected: '200'
128-duplex-tcp-socket.t TEST 2: read timeout errors won't affect writing - response_body_like - response is expected () ''
doesn't match '(?^s:^connected: 1
(?:received: OK|failed to send request: timeout
partial read: )
read timed out: [1-9]\d*
close: 1 nil$)'
128-duplex-tcp-socket.t TEST 2: read timeout errors won't affect writing - status code ok got: ''
expected: '200'
128-duplex-tcp-socket.t TEST 2: read timeout errors won't affect writing - response_body_like - response is expected () ''
doesn't match '(?^s:^connected: 1
(?:received: OK|failed to send request: timeout
partial read: )
read timed out: [1-9]\d*
close: 1 nil$)'
128-duplex-tcp-socket.t TEST 7: concurrent operations while reading (receive) - status code ok got: ''
expected: '200'
128-duplex-tcp-socket.t TEST 7: concurrent operations while reading (receive) - response_body - response is expected (repeated req 0, req 0) @@ -1,9 +0,0 @@
-connect: 1 nil
-receive: nil socket busy reading
-send: 9 nil
-close: nil socket busy reading
-getreusedtimes: 0 nil
-setkeepalive: nil socket busy reading
-connect: nil socket busy reading
-receive: nil timeout
-close: 1 nil
'
128-duplex-tcp-socket.t TEST 7: concurrent operations while reading (receive) - status code ok got: ''
expected: '200'
128-duplex-tcp-socket.t TEST 7: concurrent operations while reading (receive) - response_body - response is expected (repeated req 1, req 0) @@ -1,9 +0,0 @@
-connect: 1 nil
-receive: nil socket busy reading
-send: 9 nil
-close: nil socket busy reading
-getreusedtimes: 0 nil
-setkeepalive: nil socket busy reading
-connect: nil socket busy reading
-receive: nil timeout
-close: 1 nil
'
128-duplex-tcp-socket.t TEST 6: concurrent operations while resolving - status code ok got: ''
expected: '200'
128-duplex-tcp-socket.t TEST 6: concurrent operations while resolving - response_body - response is expected (repeated req 0, req 0) @@ -1,8 +0,0 @@
-receive: nil closed
-send: nil closed
-close: nil closed
-getreusedtimes: nil closed
-setkeepalive: nil closed
-connect: nil socket busy connecting
-connect: nil some2.agentzh.org could not be resolved (110: Operation timed out)
-close: nil closed
'
128-duplex-tcp-socket.t TEST 6: concurrent operations while resolving - status code ok got: ''
expected: '200'
128-duplex-tcp-socket.t TEST 6: concurrent operations while resolving - response_body - response is expected (repeated req 1, req 0) @@ -1,8 +0,0 @@
-receive: nil closed
-send: nil closed
-close: nil closed
-getreusedtimes: nil closed
-setkeepalive: nil closed
-connect: nil socket busy connecting
-connect: nil some2.agentzh.org could not be resolved (110: Operation timed out)
-close: nil closed
'
128-duplex-tcp-socket.t TEST 4: reads are rejected while writes are not - status code ok got: ''
expected: '200'
128-duplex-tcp-socket.t TEST 4: reads are rejected while writes are not - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-connected: 1
-failed to receive: closed
-request sent.
-close: 1 nil
'
128-duplex-tcp-socket.t TEST 4: reads are rejected while writes are not - tcp_query ok got: ''
expected: 'flush_all
'
128-duplex-tcp-socket.t TEST 4: reads are rejected while writes are not - TCP query length ok got: '0'
expected: '11'
128-duplex-tcp-socket.t TEST 4: reads are rejected while writes are not - status code ok got: ''
expected: '200'
128-duplex-tcp-socket.t TEST 4: reads are rejected while writes are not - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +0,0 @@
-connected: 1
-failed to receive: closed
-request sent.
-close: 1 nil
'
128-duplex-tcp-socket.t TEST 4: reads are rejected while writes are not - tcp_query ok got: 'f'
expected: 'flush_all
'
128-duplex-tcp-socket.t TEST 4: reads are rejected while writes are not - TCP query length ok got: '1'
expected: '11'
128-duplex-tcp-socket.t TEST 1: pipelined memcached requests (sent one byte at a time) - status code ok got: ''
expected: '200'
128-duplex-tcp-socket.t TEST 1: pipelined memcached requests (sent one byte at a time) - response_body - response is expected (repeated req 0, req 0) @@ -1,5 +0,0 @@
-connected: 1
-received: OK
-received: END
-received: END
-setkeepalive: 1 nil
'
128-duplex-tcp-socket.t TEST 1: pipelined memcached requests (sent one byte at a time) - status code ok got: ''
expected: '200'
128-duplex-tcp-socket.t TEST 1: pipelined memcached requests (sent one byte at a time) - response_body - response is expected (repeated req 1, req 0) @@ -1,5 +0,0 @@
-connected: 1
-received: OK
-received: END
-received: END
-setkeepalive: 1 nil
'
128-duplex-tcp-socket.t TEST 3: writes are rejected while reads are not - status code ok got: ''
expected: '200'
128-duplex-tcp-socket.t TEST 3: writes are rejected while reads are not - response_body_like - response is expected () ''
doesn't match '(?^s:^connected: 1
received: OK!
close: (?:nil socket busy writing|1 nil
failed to send request: closed)$)'
128-duplex-tcp-socket.t TEST 3: writes are rejected while reads are not - status code ok got: ''
expected: '200'
128-duplex-tcp-socket.t TEST 3: writes are rejected while reads are not - response_body_like - response is expected () ''
doesn't match '(?^s:^connected: 1
received: OK!
close: (?:nil socket busy writing|1 nil
failed to send request: closed)$)'
128-duplex-tcp-socket.t TEST 5: concurrent socket operations while connecting - status code ok got: ''
expected: '200'
128-duplex-tcp-socket.t TEST 5: concurrent socket operations while connecting - response_body - response is expected (repeated req 0, req 0) @@ -1,8 +0,0 @@
-receive: nil socket busy connecting
-send: nil socket busy connecting
-close: nil socket busy connecting
-getreusedtimes: 0 nil
-setkeepalive: nil socket busy connecting
-connect: nil socket busy connecting
-connect: nil timeout
-close: nil closed
'
128-duplex-tcp-socket.t TEST 5: concurrent socket operations while connecting - status code ok got: ''
expected: '200'
128-duplex-tcp-socket.t TEST 5: concurrent socket operations while connecting - response_body - response is expected (repeated req 1, req 0) @@ -1,8 +0,0 @@
-receive: nil socket busy connecting
-send: nil socket busy connecting
-close: nil socket busy connecting
-getreusedtimes: 0 nil
-setkeepalive: nil socket busy connecting
-connect: nil socket busy connecting
-connect: nil timeout
-close: nil closed
'
129-ssl-socket.t TEST 8: openresty.org: passing SSL verify - status code ok got: ''
expected: '200'
129-ssl-socket.t TEST 8: openresty.org: passing SSL verify - response_body - response is expected (repeated req 0, req 0) @@ -1,5 +0,0 @@
-connected: 1
-ssl handshake: userdata
-sent stream request: 58 bytes.
-received: HTTP/1.1 302 Moved Temporarily
-close: 1 nil
'
129-ssl-socket.t TEST 8: openresty.org: passing SSL verify - grep_error_log_out (req 0) ''
doesn't match '(?^:^lua ssl save session: ([0-9A-F]+)
lua ssl free session: ([0-9A-F]+)
$)'
129-ssl-socket.t TEST 8: openresty.org: passing SSL verify - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:29:59 [alert] 32175\#0: worker process 32176 exited on signal 11" (req 0) 2020/10/27 05:29:59 [debug] 32175\#0: shmtx forced unlock
2020/10/27 05:29:59 [debug] 32175\#0: wake up, sigio 0
2020/10/27 05:29:59 [debug] 32175\#0: reap children
2020/10/27 05:29:59 [debug] 32175\#0: child: 0 32176 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:29:59 [debug] 32175\#0: channel 3:9
2020/10/27 05:29:59 [notice] 32175\#0: start worker process 32177
2020/10/27 05:29:59 [debug] 32175\#0: sigsuspend
2020/10/27 05:29:59 [debug] 32177\#0: malloc: 08F6AC60:12
2020/10/27 05:29:59 [debug] 32177\#0: malloc: 08F6F7E8:8
'
129-ssl-socket.t TEST 8: openresty.org: passing SSL verify - status code ok got: ''
expected: '200'
129-ssl-socket.t TEST 8: openresty.org: passing SSL verify - response_body - response is expected (repeated req 1, req 0) @@ -1,5 +0,0 @@
-connected: 1
-ssl handshake: userdata
-sent stream request: 58 bytes.
-received: HTTP/1.1 302 Moved Temporarily
-close: 1 nil
'
129-ssl-socket.t TEST 8: openresty.org: passing SSL verify - grep_error_log_out (req 1) ''
doesn't match '(?^:^lua ssl save session: ([0-9A-F]+)
lua ssl free session: ([0-9A-F]+)
$)'
129-ssl-socket.t TEST 8: openresty.org: passing SSL verify - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:29:59 [alert] 32175\#0: worker process 32177 exited on signal 11" (req 1) 2020/10/27 05:29:59 [debug] 32175\#0: shmtx forced unlock
2020/10/27 05:29:59 [debug] 32175\#0: wake up, sigio 0
2020/10/27 05:29:59 [debug] 32175\#0: reap children
2020/10/27 05:29:59 [debug] 32175\#0: child: 0 32177 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:29:59 [debug] 32175\#0: channel 3:9
2020/10/27 05:29:59 [notice] 32175\#0: start worker process 32178
2020/10/27 05:29:59 [debug] 32175\#0: sigsuspend
2020/10/27 05:29:59 [debug] 32178\#0: malloc: 08F6AC60:12
2020/10/27 05:29:59 [debug] 32178\#0: malloc: 08F6F7E8:8
'
129-ssl-socket.t TEST 19: openresty.org: passing SSL verify: keepalive (no reusing the ssl session) - status code ok got: ''
expected: '200'
129-ssl-socket.t TEST 19: openresty.org: passing SSL verify: keepalive (no reusing the ssl session) - response_body - response is expected (repeated req 0, req 0) @@ -1,9 +0,0 @@
-connected: 1
-ssl handshake: userdata
-set keepalive: 1 nil
-connected: 1
-ssl handshake: userdata
-set keepalive: 1 nil
-connected: 1
-ssl handshake: userdata
-set keepalive: 1 nil
'
129-ssl-socket.t TEST 19: openresty.org: passing SSL verify: keepalive (no reusing the ssl session) - grep_error_log_out (req 0) ''
doesn't match '(?^:^stream lua ssl save session: ([0-9A-F]+)
stream lua ssl save session: \1
stream lua ssl save session: \1
stream lua ssl free session: \1
stream lua ssl free session: \1
stream lua ssl free session: \1
$)'
129-ssl-socket.t TEST 19: openresty.org: passing SSL verify: keepalive (no reusing the ssl session) - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:30:01 [alert] 32175\#0: worker process 32185 exited on signal 11" (req 0) 2020/10/27 05:30:01 [debug] 32175\#0: shmtx forced unlock
2020/10/27 05:30:01 [debug] 32175\#0: wake up, sigio 0
2020/10/27 05:30:01 [debug] 32175\#0: reap children
2020/10/27 05:30:01 [debug] 32175\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:30:01 [debug] 32175\#0: child: 1 32185 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:30:01 [debug] 32175\#0: channel 3:4
2020/10/27 05:30:01 [notice] 32175\#0: start worker process 32207
2020/10/27 05:30:01 [debug] 32175\#0: sigsuspend
2020/10/27 05:30:01 [debug] 32207\#0: malloc: 08F65FB0:12
'
129-ssl-socket.t TEST 19: openresty.org: passing SSL verify: keepalive (no reusing the ssl session) - status code ok got: ''
expected: '200'
129-ssl-socket.t TEST 19: openresty.org: passing SSL verify: keepalive (no reusing the ssl session) - response_body - response is expected (repeated req 1, req 0) @@ -1,9 +0,0 @@
-connected: 1
-ssl handshake: userdata
-set keepalive: 1 nil
-connected: 1
-ssl handshake: userdata
-set keepalive: 1 nil
-connected: 1
-ssl handshake: userdata
-set keepalive: 1 nil
'
129-ssl-socket.t TEST 19: openresty.org: passing SSL verify: keepalive (no reusing the ssl session) - grep_error_log_out (req 1) ''
doesn't match '(?^:^stream lua ssl save session: ([0-9A-F]+)
stream lua ssl save session: \1
stream lua ssl save session: \1
stream lua ssl free session: \1
stream lua ssl free session: \1
stream lua ssl free session: \1
$)'
129-ssl-socket.t TEST 19: openresty.org: passing SSL verify: keepalive (no reusing the ssl session) - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:30:01 [alert] 32175\#0: worker process 32207 exited on signal 11" (req 1) 2020/10/27 05:30:01 [debug] 32175\#0: shmtx forced unlock
2020/10/27 05:30:01 [debug] 32175\#0: wake up, sigio 0
2020/10/27 05:30:01 [debug] 32175\#0: reap children
2020/10/27 05:30:01 [debug] 32175\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:30:01 [debug] 32175\#0: child: 1 32207 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:30:01 [debug] 32175\#0: channel 3:4
2020/10/27 05:30:01 [notice] 32175\#0: start worker process 32208
2020/10/27 05:30:01 [debug] 32175\#0: sigsuspend
2020/10/27 05:30:01 [debug] 32208\#0: malloc: 08F65FB0:12
'
129-ssl-socket.t TEST 13: openresty.org: passing SSL verify with multiple certificates - status code ok got: ''
expected: '200'
129-ssl-socket.t TEST 13: openresty.org: passing SSL verify with multiple certificates - response_body - response is expected (repeated req 0, req 0) @@ -1,5 +0,0 @@
-connected: 1
-ssl handshake: userdata
-sent stream request: 58 bytes.
-received: HTTP/1.1 302 Moved Temporarily
-close: 1 nil
'
129-ssl-socket.t TEST 13: openresty.org: passing SSL verify with multiple certificates - grep_error_log_out (req 0) ''
doesn't match '(?^:^lua ssl save session: ([0-9A-F]+)
lua ssl free session: ([0-9A-F]+)
$)'
129-ssl-socket.t TEST 13: openresty.org: passing SSL verify with multiple certificates - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:30:03 [alert] 32175\#0: worker process 32215 exited on signal 11" (req 0) 2020/10/27 05:30:03 [debug] 32175\#0: shmtx forced unlock
2020/10/27 05:30:03 [debug] 32175\#0: wake up, sigio 0
2020/10/27 05:30:03 [debug] 32175\#0: reap children
2020/10/27 05:30:03 [debug] 32175\#0: child: 0 32215 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:30:03 [debug] 32175\#0: channel 3:4
2020/10/27 05:30:03 [notice] 32175\#0: start worker process 32237
2020/10/27 05:30:03 [debug] 32175\#0: sigsuspend
2020/10/27 05:30:03 [debug] 32237\#0: malloc: 08F6AC60:12
2020/10/27 05:30:03 [debug] 32237\#0: malloc: 08F6F7E8:8
'
129-ssl-socket.t TEST 13: openresty.org: passing SSL verify with multiple certificates - status code ok got: ''
expected: '200'
129-ssl-socket.t TEST 13: openresty.org: passing SSL verify with multiple certificates - response_body - response is expected (repeated req 1, req 0) @@ -1,5 +0,0 @@
-connected: 1
-ssl handshake: userdata
-sent stream request: 58 bytes.
-received: HTTP/1.1 302 Moved Temporarily
-close: 1 nil
'
129-ssl-socket.t TEST 13: openresty.org: passing SSL verify with multiple certificates - grep_error_log_out (req 1) ''
doesn't match '(?^:^lua ssl save session: ([0-9A-F]+)
lua ssl free session: ([0-9A-F]+)
$)'
129-ssl-socket.t TEST 13: openresty.org: passing SSL verify with multiple certificates - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:30:03 [alert] 32175\#0: worker process 32237 exited on signal 11" (req 1) 2020/10/27 05:30:03 [debug] 32175\#0: shmtx forced unlock
2020/10/27 05:30:03 [debug] 32175\#0: wake up, sigio 0
2020/10/27 05:30:03 [debug] 32175\#0: reap children
2020/10/27 05:30:03 [debug] 32175\#0: child: 0 32237 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:30:03 [debug] 32175\#0: channel 3:4
2020/10/27 05:30:03 [notice] 32175\#0: start worker process 32238
2020/10/27 05:30:03 [debug] 32175\#0: sigsuspend
2020/10/27 05:30:03 [debug] 32238\#0: malloc: 08F6AC60:12
2020/10/27 05:30:03 [debug] 32238\#0: malloc: 08F6F7E8:8
'
129-ssl-socket.t TEST 24: lua_ssl_crl - status code ok got: ''
expected: '200'
129-ssl-socket.t TEST 24: lua_ssl_crl - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-connected: 1
-failed to do SSL handshake: 23: certificate revoked
-failed to send stream request: closed
'
129-ssl-socket.t TEST 24: lua_ssl_crl - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:30:05 [alert] 32175\#0: worker process 32245 exited on signal 11" (req 0) 2020/10/27 05:30:05 [debug] 32175\#0: shmtx forced unlock
2020/10/27 05:30:05 [debug] 32175\#0: wake up, sigio 0
2020/10/27 05:30:05 [debug] 32175\#0: reap children
2020/10/27 05:30:05 [debug] 32175\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:30:05 [debug] 32175\#0: child: 1 32245 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:30:05 [debug] 32175\#0: channel 3:4
2020/10/27 05:30:05 [notice] 32175\#0: start worker process 32267
2020/10/27 05:30:05 [debug] 32175\#0: sigsuspend
2020/10/27 05:30:05 [debug] 32267\#0: malloc: 08F65FB0:12
'
129-ssl-socket.t TEST 24: lua_ssl_crl - status code ok got: ''
expected: '200'
129-ssl-socket.t TEST 24: lua_ssl_crl - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-connected: 1
-failed to do SSL handshake: 23: certificate revoked
-failed to send stream request: closed
'
129-ssl-socket.t TEST 24: lua_ssl_crl - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:30:05 [alert] 32175\#0: worker process 32267 exited on signal 11" (req 1) 2020/10/27 05:30:05 [debug] 32175\#0: shmtx forced unlock
2020/10/27 05:30:05 [debug] 32175\#0: wake up, sigio 0
2020/10/27 05:30:05 [debug] 32175\#0: reap children
2020/10/27 05:30:05 [debug] 32175\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:30:05 [debug] 32175\#0: child: 1 32267 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:30:05 [debug] 32175\#0: channel 3:4
2020/10/27 05:30:05 [notice] 32175\#0: start worker process 32268
2020/10/27 05:30:05 [debug] 32175\#0: sigsuspend
2020/10/27 05:30:05 [debug] 32268\#0: malloc: 08F65FB0:12
'
129-ssl-socket.t TEST 7: certificate does not match host name (no verify) - status code ok got: ''
expected: '200'
129-ssl-socket.t TEST 7: certificate does not match host name (no verify) - response_body - response is expected (repeated req 0, req 0) @@ -1,5 +0,0 @@
-connected: 1
-ssl handshake: userdata
-sent http request: 80 bytes.
-received: HTTP/1.1 404 Not Found
-close: 1 nil
'
129-ssl-socket.t TEST 7: certificate does not match host name (no verify) - grep_error_log_out (req 0) ''
doesn't match '(?^:^lua ssl save session: ([0-9A-F]+)
lua ssl free session: ([0-9A-F]+)
$)'
129-ssl-socket.t TEST 7: certificate does not match host name (no verify) - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:30:07 [alert] 32175\#0: worker process 32276 exited on signal 11" (req 0) 2020/10/27 05:30:07 [debug] 32175\#0: shmtx forced unlock
2020/10/27 05:30:07 [debug] 32175\#0: wake up, sigio 0
2020/10/27 05:30:07 [debug] 32175\#0: reap children
2020/10/27 05:30:07 [debug] 32175\#0: child: 0 32276 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:30:07 [debug] 32175\#0: channel 3:4
2020/10/27 05:30:07 [notice] 32175\#0: start worker process 32298
2020/10/27 05:30:07 [debug] 32175\#0: sigsuspend
2020/10/27 05:30:07 [debug] 32298\#0: malloc: 08F6AC60:12
2020/10/27 05:30:07 [debug] 32298\#0: malloc: 08F6F7E8:8
'
129-ssl-socket.t TEST 7: certificate does not match host name (no verify) - status code ok got: ''
expected: '200'
129-ssl-socket.t TEST 7: certificate does not match host name (no verify) - response_body - response is expected (repeated req 1, req 0) @@ -1,5 +0,0 @@
-connected: 1
-ssl handshake: userdata
-sent http request: 80 bytes.
-received: HTTP/1.1 404 Not Found
-close: 1 nil
'
129-ssl-socket.t TEST 7: certificate does not match host name (no verify) - grep_error_log_out (req 1) ''
doesn't match '(?^:^lua ssl save session: ([0-9A-F]+)
lua ssl free session: ([0-9A-F]+)
$)'
129-ssl-socket.t TEST 7: certificate does not match host name (no verify) - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:30:07 [alert] 32175\#0: worker process 32298 exited on signal 11" (req 1) 2020/10/27 05:30:07 [debug] 32175\#0: shmtx forced unlock
2020/10/27 05:30:07 [debug] 32175\#0: wake up, sigio 0
2020/10/27 05:30:07 [debug] 32175\#0: reap children
2020/10/27 05:30:07 [debug] 32175\#0: child: 0 32298 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:30:07 [debug] 32175\#0: channel 3:4
2020/10/27 05:30:07 [notice] 32175\#0: start worker process 32299
2020/10/27 05:30:07 [debug] 32175\#0: sigsuspend
2020/10/27 05:30:07 [debug] 32299\#0: malloc: 08F6AC60:12
2020/10/27 05:30:07 [debug] 32299\#0: malloc: 08F6F7E8:8
'
129-ssl-socket.t TEST 17: unsupported ssl protocol - status code ok got: ''
expected: '200'
129-ssl-socket.t TEST 17: unsupported ssl protocol - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-connected: 1
-failed to do SSL handshake: handshake failed
-failed to send stream request: closed
'
129-ssl-socket.t TEST 17: unsupported ssl protocol - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:30:08 [alert] 32175\#0: worker process 32306 exited on signal 11" (req 0) 2020/10/27 05:30:08 [debug] 32175\#0: shmtx forced unlock
2020/10/27 05:30:08 [debug] 32175\#0: wake up, sigio 0
2020/10/27 05:30:08 [debug] 32175\#0: reap children
2020/10/27 05:30:08 [debug] 32175\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:30:08 [debug] 32175\#0: child: 1 32306 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:30:08 [debug] 32175\#0: channel 3:4
2020/10/27 05:30:08 [notice] 32175\#0: start worker process 32328
2020/10/27 05:30:08 [debug] 32175\#0: sigsuspend
2020/10/27 05:30:08 [debug] 32328\#0: malloc: 08F65FB0:12
'
129-ssl-socket.t TEST 17: unsupported ssl protocol - status code ok got: ''
expected: '200'
129-ssl-socket.t TEST 17: unsupported ssl protocol - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-connected: 1
-failed to do SSL handshake: handshake failed
-failed to send stream request: closed
'
129-ssl-socket.t TEST 17: unsupported ssl protocol - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:30:09 [alert] 32175\#0: worker process 32328 exited on signal 11" (req 1) 2020/10/27 05:30:09 [debug] 32175\#0: shmtx forced unlock
2020/10/27 05:30:09 [debug] 32175\#0: wake up, sigio 0
2020/10/27 05:30:09 [debug] 32175\#0: reap children
2020/10/27 05:30:09 [debug] 32175\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:30:09 [debug] 32175\#0: child: 1 32328 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:30:09 [debug] 32175\#0: channel 3:4
2020/10/27 05:30:09 [notice] 32175\#0: start worker process 32329
2020/10/27 05:30:09 [debug] 32175\#0: sigsuspend
2020/10/27 05:30:09 [debug] 32329\#0: malloc: 08F65FB0:12
'
129-ssl-socket.t TEST 2: no SNI, no verify - status code ok got: ''
expected: '200'
129-ssl-socket.t TEST 2: no SNI, no verify - response_body - response is expected (repeated req 0, req 0) @@ -1,5 +0,0 @@
-connected: 1
-ssl handshake: userdata
-sent: ping
-received: pong
-close: 1 nil
'
129-ssl-socket.t TEST 2: no SNI, no verify - grep_error_log_out (req 0) ''
doesn't match '(?^:^lua ssl save session: ([0-9A-F]+)
lua ssl free session: ([0-9A-F]+)
$)'
129-ssl-socket.t TEST 2: no SNI, no verify - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:30:10 [alert] 32175\#0: worker process 32336 exited on signal 11" (req 0) 2020/10/27 05:30:10 [debug] 32175\#0: shmtx forced unlock
2020/10/27 05:30:10 [debug] 32175\#0: wake up, sigio 0
2020/10/27 05:30:10 [debug] 32175\#0: reap children
2020/10/27 05:30:10 [debug] 32175\#0: child: 0 32336 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:30:10 [debug] 32175\#0: channel 3:4
2020/10/27 05:30:10 [notice] 32175\#0: start worker process 32358
2020/10/27 05:30:10 [debug] 32175\#0: sigsuspend
2020/10/27 05:30:10 [debug] 32358\#0: malloc: 08F6AC60:12
2020/10/27 05:30:10 [debug] 32358\#0: malloc: 08F6F7E8:8
'
129-ssl-socket.t TEST 2: no SNI, no verify - status code ok got: ''
expected: '200'
129-ssl-socket.t TEST 2: no SNI, no verify - response_body - response is expected (repeated req 1, req 0) @@ -1,5 +0,0 @@
-connected: 1
-ssl handshake: userdata
-sent: ping
-received: pong
-close: 1 nil
'
129-ssl-socket.t TEST 2: no SNI, no verify - grep_error_log_out (req 1) ''
doesn't match '(?^:^lua ssl save session: ([0-9A-F]+)
lua ssl free session: ([0-9A-F]+)
$)'
129-ssl-socket.t TEST 2: no SNI, no verify - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:30:10 [alert] 32175\#0: worker process 32358 exited on signal 11" (req 1) 2020/10/27 05:30:10 [debug] 32175\#0: shmtx forced unlock
2020/10/27 05:30:10 [debug] 32175\#0: wake up, sigio 0
2020/10/27 05:30:10 [debug] 32175\#0: reap children
2020/10/27 05:30:10 [debug] 32175\#0: child: 0 32358 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:30:10 [debug] 32175\#0: channel 3:4
2020/10/27 05:30:10 [notice] 32175\#0: start worker process 32359
2020/10/27 05:30:10 [debug] 32175\#0: sigsuspend
2020/10/27 05:30:10 [debug] 32359\#0: malloc: 08F6AC60:12
2020/10/27 05:30:10 [debug] 32359\#0: malloc: 08F6F7E8:8
'
129-ssl-socket.t TEST 6: certificate does not match host name (verify, no log socket errors) - status code ok got: ''
expected: '200'
129-ssl-socket.t TEST 6: certificate does not match host name (verify, no log socket errors) - response_body_like - response is expected () ''
doesn't match '(?^s:\Aconnected: 1
failed to do SSL handshake: (?:handshake failed|certificate host mismatch)
failed to send stream request: closed
\z)'
129-ssl-socket.t TEST 6: certificate does not match host name (verify, no log socket errors) - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:30:12 [alert] 32175\#0: worker process 32366 exited on signal 11" (req 0) 2020/10/27 05:30:12 [debug] 32175\#0: shmtx forced unlock
2020/10/27 05:30:12 [debug] 32175\#0: wake up, sigio 0
2020/10/27 05:30:12 [debug] 32175\#0: reap children
2020/10/27 05:30:12 [debug] 32175\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:30:12 [debug] 32175\#0: child: 1 32366 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:30:12 [debug] 32175\#0: channel 3:4
2020/10/27 05:30:12 [notice] 32175\#0: start worker process 32388
2020/10/27 05:30:12 [debug] 32175\#0: sigsuspend
2020/10/27 05:30:12 [debug] 32388\#0: malloc: 08F65FB0:12
'
129-ssl-socket.t TEST 6: certificate does not match host name (verify, no log socket errors) - status code ok got: ''
expected: '200'
129-ssl-socket.t TEST 6: certificate does not match host name (verify, no log socket errors) - response_body_like - response is expected () ''
doesn't match '(?^s:\Aconnected: 1
failed to do SSL handshake: (?:handshake failed|certificate host mismatch)
failed to send stream request: closed
\z)'
129-ssl-socket.t TEST 6: certificate does not match host name (verify, no log socket errors) - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:30:12 [alert] 32175\#0: worker process 32388 exited on signal 11" (req 1) 2020/10/27 05:30:12 [debug] 32175\#0: shmtx forced unlock
2020/10/27 05:30:12 [debug] 32175\#0: wake up, sigio 0
2020/10/27 05:30:12 [debug] 32175\#0: reap children
2020/10/27 05:30:12 [debug] 32175\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:30:12 [debug] 32175\#0: child: 1 32388 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:30:12 [debug] 32175\#0: channel 3:4
2020/10/27 05:30:12 [notice] 32175\#0: start worker process 32389
2020/10/27 05:30:12 [debug] 32175\#0: sigsuspend
2020/10/27 05:30:12 [debug] 32389\#0: malloc: 08F65FB0:12
'
129-ssl-socket.t TEST 23: unix domain ssl cosocket (no ssl on server) - status code ok got: ''
expected: '200'
129-ssl-socket.t TEST 23: unix domain ssl cosocket (no ssl on server) - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-connected: 1
-failed to do SSL handshake: handshake failed
'
129-ssl-socket.t TEST 23: unix domain ssl cosocket (no ssl on server) - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:30:14 [alert] 32175\#0: worker process 32396 exited on signal 11" (req 0) 2020/10/27 05:30:14 [debug] 32175\#0: shmtx forced unlock
2020/10/27 05:30:14 [debug] 32175\#0: wake up, sigio 0
2020/10/27 05:30:14 [debug] 32175\#0: reap children
2020/10/27 05:30:14 [debug] 32175\#0: child: 0 32396 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:30:14 [debug] 32175\#0: channel 3:4
2020/10/27 05:30:14 [notice] 32175\#0: start worker process 32418
2020/10/27 05:30:14 [debug] 32175\#0: sigsuspend
2020/10/27 05:30:14 [debug] 32418\#0: malloc: 08F6AC60:12
2020/10/27 05:30:14 [debug] 32418\#0: malloc: 08F6F7E8:8
'
129-ssl-socket.t TEST 23: unix domain ssl cosocket (no ssl on server) - status code ok got: ''
expected: '200'
129-ssl-socket.t TEST 23: unix domain ssl cosocket (no ssl on server) - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-connected: 1
-failed to do SSL handshake: handshake failed
'
129-ssl-socket.t TEST 23: unix domain ssl cosocket (no ssl on server) - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:30:14 [alert] 32175\#0: worker process 32418 exited on signal 11" (req 1) 2020/10/27 05:30:14 [debug] 32175\#0: shmtx forced unlock
2020/10/27 05:30:14 [debug] 32175\#0: wake up, sigio 0
2020/10/27 05:30:14 [debug] 32175\#0: reap children
2020/10/27 05:30:14 [debug] 32175\#0: child: 0 32418 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:30:14 [debug] 32175\#0: channel 3:4
2020/10/27 05:30:14 [notice] 32175\#0: start worker process 32419
2020/10/27 05:30:14 [debug] 32175\#0: sigsuspend
2020/10/27 05:30:14 [debug] 32419\#0: malloc: 08F6AC60:12
2020/10/27 05:30:14 [debug] 32419\#0: malloc: 08F6F7E8:8
'
129-ssl-socket.t TEST 4: ssl session reuse - status code ok got: ''
expected: '200'
129-ssl-socket.t TEST 4: ssl session reuse - response_body - response is expected (repeated req 0, req 0) @@ -1,10 +0,0 @@
-connected: 1
-ssl handshake: userdata
-sent stream request: 58 bytes.
-received: HTTP/1.1 302 Moved Temporarily
-close: 1 nil
-connected: 1
-ssl handshake: userdata
-sent stream request: 58 bytes.
-received: HTTP/1.1 302 Moved Temporarily
-close: 1 nil
'
129-ssl-socket.t TEST 4: ssl session reuse - grep_error_log_out (req 0) ''
doesn't match '(?^:^lua ssl save session: ([0-9A-F]+)
lua ssl set session: \1
lua ssl save session: \1
lua ssl free session: \1
lua ssl free session: \1
$)'
129-ssl-socket.t TEST 4: ssl session reuse - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:30:16 [alert] 32175\#0: worker process 32426 exited on signal 11" (req 0) 2020/10/27 05:30:16 [debug] 32175\#0: shmtx forced unlock
2020/10/27 05:30:16 [debug] 32175\#0: wake up, sigio 0
2020/10/27 05:30:16 [debug] 32175\#0: reap children
2020/10/27 05:30:16 [debug] 32175\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:30:16 [debug] 32175\#0: child: 1 32426 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:30:16 [debug] 32175\#0: channel 3:4
2020/10/27 05:30:16 [notice] 32175\#0: start worker process 32448
2020/10/27 05:30:16 [debug] 32175\#0: sigsuspend
2020/10/27 05:30:16 [debug] 32448\#0: malloc: 08F65FB0:12
'
129-ssl-socket.t TEST 4: ssl session reuse - status code ok got: ''
expected: '200'
129-ssl-socket.t TEST 4: ssl session reuse - response_body - response is expected (repeated req 1, req 0) @@ -1,10 +0,0 @@
-connected: 1
-ssl handshake: userdata
-sent stream request: 58 bytes.
-received: HTTP/1.1 302 Moved Temporarily
-close: 1 nil
-connected: 1
-ssl handshake: userdata
-sent stream request: 58 bytes.
-received: HTTP/1.1 302 Moved Temporarily
-close: 1 nil
'
129-ssl-socket.t TEST 4: ssl session reuse - grep_error_log_out (req 1) ''
doesn't match '(?^:^lua ssl save session: ([0-9A-F]+)
lua ssl set session: \1
lua ssl save session: \1
lua ssl free session: \1
lua ssl free session: \1
$)'
129-ssl-socket.t TEST 4: ssl session reuse - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:30:16 [alert] 32175\#0: worker process 32448 exited on signal 11" (req 1) 2020/10/27 05:30:16 [debug] 32175\#0: shmtx forced unlock
2020/10/27 05:30:16 [debug] 32175\#0: wake up, sigio 0
2020/10/27 05:30:16 [debug] 32175\#0: reap children
2020/10/27 05:30:16 [debug] 32175\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:30:16 [debug] 32175\#0: child: 1 32448 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:30:16 [debug] 32175\#0: channel 3:4
2020/10/27 05:30:16 [notice] 32175\#0: start worker process 32449
2020/10/27 05:30:16 [debug] 32175\#0: sigsuspend
2020/10/27 05:30:16 [debug] 32449\#0: malloc: 08F65FB0:12
'
129-ssl-socket.t TEST 22: unix domain ssl cosocket (verify) - status code ok got: ''
expected: '200'
129-ssl-socket.t TEST 22: unix domain ssl cosocket (verify) - response_body - response is expected (repeated req 0, req 0) @@ -1,6 +0,0 @@
-connected: 1
-ssl handshake: userdata
-sent stream request: 9 bytes.
-received: flash!
-received: the end...
-close: 1 nil
'
129-ssl-socket.t TEST 22: unix domain ssl cosocket (verify) - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:30:18 [alert] 32175\#0: worker process 32456 exited on signal 11" (req 0) 2020/10/27 05:30:18 [debug] 32175\#0: shmtx forced unlock
2020/10/27 05:30:18 [debug] 32175\#0: wake up, sigio 0
2020/10/27 05:30:18 [debug] 32175\#0: reap children
2020/10/27 05:30:18 [debug] 32175\#0: child: 0 32456 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:30:18 [debug] 32175\#0: channel 3:4
2020/10/27 05:30:18 [notice] 32175\#0: start worker process 32478
2020/10/27 05:30:18 [debug] 32175\#0: sigsuspend
2020/10/27 05:30:18 [debug] 32478\#0: malloc: 08F6AC60:12
2020/10/27 05:30:18 [debug] 32478\#0: malloc: 08F6F7E8:8
'
129-ssl-socket.t TEST 22: unix domain ssl cosocket (verify) - status code ok got: ''
expected: '200'
129-ssl-socket.t TEST 22: unix domain ssl cosocket (verify) - response_body - response is expected (repeated req 1, req 0) @@ -1,6 +0,0 @@
-connected: 1
-ssl handshake: userdata
-sent stream request: 9 bytes.
-received: flash!
-received: the end...
-close: 1 nil
'
129-ssl-socket.t TEST 22: unix domain ssl cosocket (verify) - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:30:18 [alert] 32175\#0: worker process 32478 exited on signal 11" (req 1) 2020/10/27 05:30:18 [debug] 32175\#0: shmtx forced unlock
2020/10/27 05:30:18 [debug] 32175\#0: wake up, sigio 0
2020/10/27 05:30:18 [debug] 32175\#0: reap children
2020/10/27 05:30:18 [debug] 32175\#0: child: 0 32478 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:30:18 [debug] 32175\#0: channel 3:4
2020/10/27 05:30:18 [notice] 32175\#0: start worker process 32479
2020/10/27 05:30:18 [debug] 32175\#0: sigsuspend
2020/10/27 05:30:18 [debug] 32479\#0: malloc: 08F6AC60:12
2020/10/27 05:30:18 [debug] 32479\#0: malloc: 08F6F7E8:8
'
129-ssl-socket.t TEST 9: ssl verify depth not enough (with automatic error logging) - status code ok got: ''
expected: '200'
129-ssl-socket.t TEST 9: ssl verify depth not enough (with automatic error logging) - response_body - like (repeated req 0, req 0) ''
doesn't match '(?^:connected: 1
failed to do SSL handshake: (22: certificate chain too long|20: unable to get local issuer certificate|21: unable to verify the first certificate)
failed to send stream request: closed
)'
129-ssl-socket.t TEST 9: ssl verify depth not enough (with automatic error logging) - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:30:20 [alert] 32175\#0: worker process 32486 exited on signal 11" (req 0) 2020/10/27 05:30:20 [debug] 32175\#0: shmtx forced unlock
2020/10/27 05:30:20 [debug] 32175\#0: wake up, sigio 0
2020/10/27 05:30:20 [debug] 32175\#0: reap children
2020/10/27 05:30:20 [debug] 32175\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:30:20 [debug] 32175\#0: child: 1 32486 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:30:20 [debug] 32175\#0: channel 3:4
2020/10/27 05:30:20 [notice] 32175\#0: start worker process 32508
2020/10/27 05:30:20 [debug] 32175\#0: sigsuspend
2020/10/27 05:30:20 [debug] 32508\#0: malloc: 08F65FB0:12
'
129-ssl-socket.t TEST 9: ssl verify depth not enough (with automatic error logging) - status code ok got: ''
expected: '200'
129-ssl-socket.t TEST 9: ssl verify depth not enough (with automatic error logging) - response_body - like (repeated req 1, req 0) ''
doesn't match '(?^:connected: 1
failed to do SSL handshake: (22: certificate chain too long|20: unable to get local issuer certificate|21: unable to verify the first certificate)
failed to send stream request: closed
)'
129-ssl-socket.t TEST 9: ssl verify depth not enough (with automatic error logging) - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:30:20 [alert] 32175\#0: worker process 32508 exited on signal 11" (req 1) 2020/10/27 05:30:20 [debug] 32175\#0: shmtx forced unlock
2020/10/27 05:30:20 [debug] 32175\#0: wake up, sigio 0
2020/10/27 05:30:20 [debug] 32175\#0: reap children
2020/10/27 05:30:20 [debug] 32175\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:30:20 [debug] 32175\#0: child: 1 32508 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:30:20 [debug] 32175\#0: channel 3:4
2020/10/27 05:30:20 [notice] 32175\#0: start worker process 32509
2020/10/27 05:30:20 [debug] 32175\#0: sigsuspend
2020/10/27 05:30:20 [debug] 32509\#0: malloc: 08F65FB0:12
'
129-ssl-socket.t TEST 11: www.google.com (SSL verify passes) - status code ok got: ''
expected: '200'
129-ssl-socket.t TEST 11: www.google.com (SSL verify passes) - response_body_like - response is expected () ''
doesn't match '(?^s:\Aconnected: 1
ssl handshake: userdata
sent http request: 59 bytes.
received: HTTP/1.1 (?:200 OK|302 Found)
close: 1 nil
\z)'
129-ssl-socket.t TEST 11: www.google.com (SSL verify passes) - grep_error_log_out (req 0) ''
doesn't match '(?^:^lua ssl save session: ([0-9A-F]+)
lua ssl free session: ([0-9A-F]+)
$)'
129-ssl-socket.t TEST 11: www.google.com (SSL verify passes) - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:30:22 [alert] 32175\#0: worker process 32516 exited on signal 11" (req 0) 2020/10/27 05:30:22 [debug] 32175\#0: shmtx forced unlock
2020/10/27 05:30:22 [debug] 32175\#0: wake up, sigio 0
2020/10/27 05:30:22 [debug] 32175\#0: reap children
2020/10/27 05:30:22 [debug] 32175\#0: child: 0 32516 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:30:22 [debug] 32175\#0: channel 3:4
2020/10/27 05:30:22 [notice] 32175\#0: start worker process 32538
2020/10/27 05:30:22 [debug] 32175\#0: sigsuspend
2020/10/27 05:30:22 [debug] 32538\#0: malloc: 08F6AC60:12
2020/10/27 05:30:22 [debug] 32538\#0: malloc: 08F6F7E8:8
'
129-ssl-socket.t TEST 11: www.google.com (SSL verify passes) - status code ok got: ''
expected: '200'
129-ssl-socket.t TEST 11: www.google.com (SSL verify passes) - response_body_like - response is expected () ''
doesn't match '(?^s:\Aconnected: 1
ssl handshake: userdata
sent http request: 59 bytes.
received: HTTP/1.1 (?:200 OK|302 Found)
close: 1 nil
\z)'
129-ssl-socket.t TEST 11: www.google.com (SSL verify passes) - grep_error_log_out (req 1) ''
doesn't match '(?^:^lua ssl save session: ([0-9A-F]+)
lua ssl free session: ([0-9A-F]+)
$)'
129-ssl-socket.t TEST 11: www.google.com (SSL verify passes) - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:30:22 [alert] 32175\#0: worker process 32538 exited on signal 11" (req 1) 2020/10/27 05:30:22 [debug] 32175\#0: shmtx forced unlock
2020/10/27 05:30:22 [debug] 32175\#0: wake up, sigio 0
2020/10/27 05:30:22 [debug] 32175\#0: reap children
2020/10/27 05:30:22 [debug] 32175\#0: child: 0 32538 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:30:22 [debug] 32175\#0: channel 3:4
2020/10/27 05:30:22 [notice] 32175\#0: start worker process 32539
2020/10/27 05:30:22 [debug] 32175\#0: sigsuspend
2020/10/27 05:30:22 [debug] 32539\#0: malloc: 08F6AC60:12
2020/10/27 05:30:22 [debug] 32539\#0: malloc: 08F6F7E8:8
'
129-ssl-socket.t TEST 25: multiple handshake calls - status code ok got: ''
expected: '200'
129-ssl-socket.t TEST 25: multiple handshake calls - response_body - response is expected (repeated req 0, req 0) @@ -1,6 +0,0 @@
-connected: 1
-ssl handshake: userdata
-ssl handshake: userdata
-sent stream request: 58 bytes.
-received: HTTP/1.1 302 Moved Temporarily
-close: 1 nil
'
129-ssl-socket.t TEST 25: multiple handshake calls - grep_error_log_out (req 0) ''
doesn't match '(?^:^lua ssl save session: ([0-9A-F]+)
lua ssl save session: ([0-9A-F]+)
lua ssl free session: ([0-9A-F]+)
lua ssl free session: ([0-9A-F]+)
$)'
129-ssl-socket.t TEST 25: multiple handshake calls - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:30:24 [alert] 32175\#0: worker process 32546 exited on signal 11" (req 0) 2020/10/27 05:30:24 [debug] 32175\#0: shmtx forced unlock
2020/10/27 05:30:24 [debug] 32175\#0: wake up, sigio 0
2020/10/27 05:30:24 [debug] 32175\#0: reap children
2020/10/27 05:30:24 [debug] 32175\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:30:24 [debug] 32175\#0: child: 1 32546 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:30:24 [debug] 32175\#0: channel 3:4
2020/10/27 05:30:24 [notice] 32175\#0: start worker process 32568
2020/10/27 05:30:24 [debug] 32175\#0: sigsuspend
2020/10/27 05:30:24 [debug] 32568\#0: malloc: 08F65FB0:12
'
129-ssl-socket.t TEST 25: multiple handshake calls - status code ok got: ''
expected: '200'
129-ssl-socket.t TEST 25: multiple handshake calls - response_body - response is expected (repeated req 1, req 0) @@ -1,6 +0,0 @@
-connected: 1
-ssl handshake: userdata
-ssl handshake: userdata
-sent stream request: 58 bytes.
-received: HTTP/1.1 302 Moved Temporarily
-close: 1 nil
'
129-ssl-socket.t TEST 25: multiple handshake calls - grep_error_log_out (req 1) ''
doesn't match '(?^:^lua ssl save session: ([0-9A-F]+)
lua ssl save session: ([0-9A-F]+)
lua ssl free session: ([0-9A-F]+)
lua ssl free session: ([0-9A-F]+)
$)'
129-ssl-socket.t TEST 25: multiple handshake calls - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:30:24 [alert] 32175\#0: worker process 32568 exited on signal 11" (req 1) 2020/10/27 05:30:24 [debug] 32175\#0: shmtx forced unlock
2020/10/27 05:30:24 [debug] 32175\#0: wake up, sigio 0
2020/10/27 05:30:24 [debug] 32175\#0: reap children
2020/10/27 05:30:24 [debug] 32175\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:30:24 [debug] 32175\#0: child: 1 32568 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:30:24 [debug] 32175\#0: channel 3:4
2020/10/27 05:30:24 [notice] 32175\#0: start worker process 32569
2020/10/27 05:30:24 [debug] 32175\#0: sigsuspend
2020/10/27 05:30:24 [debug] 32569\#0: malloc: 08F65FB0:12
'
129-ssl-socket.t TEST 28: unix domain ssl cosocket (gen session, true) - status code ok got: ''
expected: '200'
129-ssl-socket.t TEST 28: unix domain ssl cosocket (gen session, true) - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-connected: 1
-ssl handshake: userdata
'
129-ssl-socket.t TEST 28: unix domain ssl cosocket (gen session, true) - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:30:25 [alert] 32175\#0: worker process 32576 exited on signal 11" (req 0) 2020/10/27 05:30:25 [debug] 32175\#0: shmtx forced unlock
2020/10/27 05:30:25 [debug] 32175\#0: wake up, sigio 0
2020/10/27 05:30:25 [debug] 32175\#0: reap children
2020/10/27 05:30:25 [debug] 32175\#0: child: 0 32576 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:30:25 [debug] 32175\#0: channel 3:4
2020/10/27 05:30:25 [notice] 32175\#0: start worker process 32598
2020/10/27 05:30:25 [debug] 32175\#0: sigsuspend
2020/10/27 05:30:25 [debug] 32598\#0: malloc: 08F6AC60:12
2020/10/27 05:30:25 [debug] 32598\#0: malloc: 08F6F7E8:8
'
129-ssl-socket.t TEST 28: unix domain ssl cosocket (gen session, true) - status code ok got: ''
expected: '200'
129-ssl-socket.t TEST 28: unix domain ssl cosocket (gen session, true) - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-connected: 1
-ssl handshake: userdata
'
129-ssl-socket.t TEST 28: unix domain ssl cosocket (gen session, true) - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:30:26 [alert] 32175\#0: worker process 32598 exited on signal 11" (req 1) 2020/10/27 05:30:26 [debug] 32175\#0: shmtx forced unlock
2020/10/27 05:30:26 [debug] 32175\#0: wake up, sigio 0
2020/10/27 05:30:26 [debug] 32175\#0: reap children
2020/10/27 05:30:26 [debug] 32175\#0: child: 0 32598 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:30:26 [debug] 32175\#0: channel 3:4
2020/10/27 05:30:26 [notice] 32175\#0: start worker process 32599
2020/10/27 05:30:26 [debug] 32175\#0: sigsuspend
2020/10/27 05:30:26 [debug] 32599\#0: malloc: 08F6AC60:12
2020/10/27 05:30:26 [debug] 32599\#0: malloc: 08F6F7E8:8
'
129-ssl-socket.t TEST 29: unix domain ssl cosocket (keepalive) - status code ok got: ''
expected: '200'
129-ssl-socket.t TEST 29: unix domain ssl cosocket (keepalive) - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-connected: 1
-ssl handshake: true
-connected: 1
-ssl handshake: true
'
129-ssl-socket.t TEST 29: unix domain ssl cosocket (keepalive) - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:30:27 [alert] 32175\#0: worker process 32606 exited on signal 11" (req 0) 2020/10/27 05:30:27 [debug] 32175\#0: shmtx forced unlock
2020/10/27 05:30:27 [debug] 32175\#0: wake up, sigio 0
2020/10/27 05:30:27 [debug] 32175\#0: reap children
2020/10/27 05:30:27 [debug] 32175\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:30:27 [debug] 32175\#0: child: 1 32606 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:30:27 [debug] 32175\#0: channel 3:4
2020/10/27 05:30:27 [notice] 32175\#0: start worker process 32628
2020/10/27 05:30:27 [debug] 32175\#0: sigsuspend
2020/10/27 05:30:27 [debug] 32628\#0: malloc: 08F65FB0:12
'
129-ssl-socket.t TEST 29: unix domain ssl cosocket (keepalive) - status code ok got: ''
expected: '200'
129-ssl-socket.t TEST 29: unix domain ssl cosocket (keepalive) - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +0,0 @@
-connected: 1
-ssl handshake: true
-connected: 1
-ssl handshake: true
'
129-ssl-socket.t TEST 29: unix domain ssl cosocket (keepalive) - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:30:27 [alert] 32175\#0: worker process 32628 exited on signal 11" (req 1) 2020/10/27 05:30:27 [debug] 32175\#0: shmtx forced unlock
2020/10/27 05:30:27 [debug] 32175\#0: wake up, sigio 0
2020/10/27 05:30:27 [debug] 32175\#0: reap children
2020/10/27 05:30:27 [debug] 32175\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:30:27 [debug] 32175\#0: child: 1 32628 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:30:27 [debug] 32175\#0: channel 3:4
2020/10/27 05:30:27 [notice] 32175\#0: start worker process 32629
2020/10/27 05:30:27 [debug] 32175\#0: sigsuspend
2020/10/27 05:30:27 [debug] 32629\#0: malloc: 08F65FB0:12
'
129-ssl-socket.t TEST 14: default cipher - status code ok got: ''
expected: '200'
129-ssl-socket.t TEST 14: default cipher - response_body - response is expected (repeated req 0, req 0) @@ -1,5 +0,0 @@
-connected: 1
-ssl handshake: userdata
-sent stream request: 58 bytes.
-received: HTTP/1.1 302 Moved Temporarily
-close: 1 nil
'
129-ssl-socket.t TEST 14: default cipher - grep_error_log_out (req 0) ''
doesn't match '(?^:^lua ssl save session: ([0-9A-F]+)
lua ssl free session: ([0-9A-F]+)
$)'
129-ssl-socket.t TEST 14: default cipher - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:30:29 [alert] 32175\#0: worker process 32636 exited on signal 11" (req 0) 2020/10/27 05:30:29 [debug] 32175\#0: shmtx forced unlock
2020/10/27 05:30:29 [debug] 32175\#0: wake up, sigio 0
2020/10/27 05:30:29 [debug] 32175\#0: reap children
2020/10/27 05:30:29 [debug] 32175\#0: child: 0 32636 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:30:29 [debug] 32175\#0: channel 3:4
2020/10/27 05:30:29 [notice] 32175\#0: start worker process 32658
2020/10/27 05:30:29 [debug] 32175\#0: sigsuspend
2020/10/27 05:30:29 [debug] 32658\#0: malloc: 08F6AC60:12
2020/10/27 05:30:29 [debug] 32658\#0: malloc: 08F6F7E8:8
'
129-ssl-socket.t TEST 14: default cipher - status code ok got: ''
expected: '200'
129-ssl-socket.t TEST 14: default cipher - response_body - response is expected (repeated req 1, req 0) @@ -1,5 +0,0 @@
-connected: 1
-ssl handshake: userdata
-sent stream request: 58 bytes.
-received: HTTP/1.1 302 Moved Temporarily
-close: 1 nil
'
129-ssl-socket.t TEST 14: default cipher - grep_error_log_out (req 1) ''
doesn't match '(?^:^lua ssl save session: ([0-9A-F]+)
lua ssl free session: ([0-9A-F]+)
$)'
129-ssl-socket.t TEST 14: default cipher - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:30:29 [alert] 32175\#0: worker process 32658 exited on signal 11" (req 1) 2020/10/27 05:30:29 [debug] 32175\#0: shmtx forced unlock
2020/10/27 05:30:29 [debug] 32175\#0: wake up, sigio 0
2020/10/27 05:30:29 [debug] 32175\#0: reap children
2020/10/27 05:30:29 [debug] 32175\#0: child: 0 32658 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:30:29 [debug] 32175\#0: channel 3:4
2020/10/27 05:30:29 [notice] 32175\#0: start worker process 32659
2020/10/27 05:30:29 [debug] 32175\#0: sigsuspend
2020/10/27 05:30:29 [debug] 32659\#0: malloc: 08F6AC60:12
2020/10/27 05:30:29 [debug] 32659\#0: malloc: 08F6F7E8:8
'
129-ssl-socket.t TEST 10: ssl verify depth not enough (without automatic error logging) - status code ok got: ''
expected: '200'
129-ssl-socket.t TEST 10: ssl verify depth not enough (without automatic error logging) - response_body - like (repeated req 0, req 0) ''
doesn't match '(?^:connected: 1
failed to do SSL handshake: (22: certificate chain too long|20: unable to get local issuer certificate|21: unable to verify the first certificate)
failed to send stream request: closed
)'
129-ssl-socket.t TEST 10: ssl verify depth not enough (without automatic error logging) - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:30:31 [alert] 32175\#0: worker process 32666 exited on signal 11" (req 0) 2020/10/27 05:30:31 [debug] 32175\#0: shmtx forced unlock
2020/10/27 05:30:31 [debug] 32175\#0: wake up, sigio 0
2020/10/27 05:30:31 [debug] 32175\#0: reap children
2020/10/27 05:30:31 [debug] 32175\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:30:31 [debug] 32175\#0: child: 1 32666 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:30:31 [debug] 32175\#0: channel 3:4
2020/10/27 05:30:31 [notice] 32175\#0: start worker process 32688
2020/10/27 05:30:31 [debug] 32175\#0: sigsuspend
2020/10/27 05:30:31 [debug] 32688\#0: malloc: 08F65FB0:12
'
129-ssl-socket.t TEST 10: ssl verify depth not enough (without automatic error logging) - status code ok got: ''
expected: '200'
129-ssl-socket.t TEST 10: ssl verify depth not enough (without automatic error logging) - response_body - like (repeated req 1, req 0) ''
doesn't match '(?^:connected: 1
failed to do SSL handshake: (22: certificate chain too long|20: unable to get local issuer certificate|21: unable to verify the first certificate)
failed to send stream request: closed
)'
129-ssl-socket.t TEST 10: ssl verify depth not enough (without automatic error logging) - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:30:31 [alert] 32175\#0: worker process 32688 exited on signal 11" (req 1) 2020/10/27 05:30:31 [debug] 32175\#0: shmtx forced unlock
2020/10/27 05:30:31 [debug] 32175\#0: wake up, sigio 0
2020/10/27 05:30:31 [debug] 32175\#0: reap children
2020/10/27 05:30:31 [debug] 32175\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:30:31 [debug] 32175\#0: child: 1 32688 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:30:31 [debug] 32175\#0: channel 3:4
2020/10/27 05:30:31 [notice] 32175\#0: start worker process 32689
2020/10/27 05:30:31 [debug] 32175\#0: sigsuspend
2020/10/27 05:30:31 [debug] 32689\#0: malloc: 08F65FB0:12
'
129-ssl-socket.t TEST 26: handshake timed out - status code ok got: ''
expected: '200'
129-ssl-socket.t TEST 26: handshake timed out - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-connected: 1
-failed to do SSL handshake: timeout
'
129-ssl-socket.t TEST 26: handshake timed out - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:30:33 [alert] 32175\#0: worker process 32696 exited on signal 11" (req 0) 2020/10/27 05:30:33 [debug] 32175\#0: shmtx forced unlock
2020/10/27 05:30:33 [debug] 32175\#0: wake up, sigio 0
2020/10/27 05:30:33 [debug] 32175\#0: reap children
2020/10/27 05:30:33 [debug] 32175\#0: child: 0 32696 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:30:33 [debug] 32175\#0: channel 3:4
2020/10/27 05:30:33 [notice] 32175\#0: start worker process 32718
2020/10/27 05:30:33 [debug] 32175\#0: sigsuspend
2020/10/27 05:30:33 [debug] 32718\#0: malloc: 08F6AC60:12
2020/10/27 05:30:33 [debug] 32718\#0: malloc: 08F6F7E8:8
'
129-ssl-socket.t TEST 26: handshake timed out - status code ok got: ''
expected: '200'
129-ssl-socket.t TEST 26: handshake timed out - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-connected: 1
-failed to do SSL handshake: timeout
'
129-ssl-socket.t TEST 26: handshake timed out - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:30:33 [alert] 32175\#0: worker process 32718 exited on signal 11" (req 1) 2020/10/27 05:30:33 [debug] 32175\#0: shmtx forced unlock
2020/10/27 05:30:33 [debug] 32175\#0: wake up, sigio 0
2020/10/27 05:30:33 [debug] 32175\#0: reap children
2020/10/27 05:30:33 [debug] 32175\#0: child: 0 32718 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:30:33 [debug] 32175\#0: channel 3:4
2020/10/27 05:30:33 [notice] 32175\#0: start worker process 32719
2020/10/27 05:30:33 [debug] 32175\#0: sigsuspend
2020/10/27 05:30:33 [debug] 32719\#0: malloc: 08F6AC60:12
2020/10/27 05:30:33 [debug] 32719\#0: malloc: 08F6F7E8:8
'
129-ssl-socket.t TEST 20: downstream cosockets do not support ssl handshake - status code ok got: ''
expected: '200'
129-ssl-socket.t TEST 20: downstream cosockets do not support ssl handshake - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:30:35 [alert] 32175\#0: worker process 32726 exited on signal 11" (req 0) 2020/10/27 05:30:35 [debug] 32175\#0: shmtx forced unlock
2020/10/27 05:30:35 [debug] 32175\#0: wake up, sigio 0
2020/10/27 05:30:35 [debug] 32175\#0: reap children
2020/10/27 05:30:35 [debug] 32175\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:30:35 [debug] 32175\#0: child: 1 32726 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:30:35 [debug] 32175\#0: channel 3:4
2020/10/27 05:30:35 [notice] 32175\#0: start worker process 32748
2020/10/27 05:30:35 [debug] 32175\#0: sigsuspend
2020/10/27 05:30:35 [debug] 32748\#0: malloc: 08F65FB0:12
'
129-ssl-socket.t TEST 20: downstream cosockets do not support ssl handshake - status code ok got: ''
expected: '200'
129-ssl-socket.t TEST 20: downstream cosockets do not support ssl handshake - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:30:35 [alert] 32175\#0: worker process 32748 exited on signal 11" (req 1) 2020/10/27 05:30:35 [debug] 32175\#0: shmtx forced unlock
2020/10/27 05:30:35 [debug] 32175\#0: wake up, sigio 0
2020/10/27 05:30:35 [debug] 32175\#0: reap children
2020/10/27 05:30:35 [debug] 32175\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:30:35 [debug] 32175\#0: child: 1 32748 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:30:35 [debug] 32175\#0: channel 3:4
2020/10/27 05:30:35 [notice] 32175\#0: start worker process 32749
2020/10/27 05:30:35 [debug] 32175\#0: sigsuspend
2020/10/27 05:30:35 [debug] 32749\#0: malloc: 08F65FB0:12
'
129-ssl-socket.t TEST 16: explicit ssl protocol configuration - status code ok got: ''
expected: '200'
129-ssl-socket.t TEST 16: explicit ssl protocol configuration - response_body - response is expected (repeated req 0, req 0) @@ -1,5 +0,0 @@
-connected: 1
-ssl handshake: userdata
-sent stream request: 53 bytes.
-received: HTTP/1.1 200 OK
-close: 1 nil
'
129-ssl-socket.t TEST 16: explicit ssl protocol configuration - grep_error_log_out (req 0) ''
doesn't match '(?^:^lua ssl save session: ([0-9A-F]+)
lua ssl free session: ([0-9A-F]+)
$)'
129-ssl-socket.t TEST 16: explicit ssl protocol configuration - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:30:37 [alert] 32175\#0: worker process 32756 exited on signal 11" (req 0) 2020/10/27 05:30:37 [debug] 32175\#0: shmtx forced unlock
2020/10/27 05:30:37 [debug] 32175\#0: wake up, sigio 0
2020/10/27 05:30:37 [debug] 32175\#0: reap children
2020/10/27 05:30:37 [debug] 32175\#0: child: 0 32756 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:30:37 [debug] 32175\#0: channel 3:4
2020/10/27 05:30:37 [notice] 32175\#0: start worker process 311
2020/10/27 05:30:37 [debug] 32175\#0: sigsuspend
2020/10/27 05:30:37 [debug] 311\#0: malloc: 08F6AC60:12
2020/10/27 05:30:37 [debug] 311\#0: malloc: 08F6F7E8:8
'
129-ssl-socket.t TEST 16: explicit ssl protocol configuration - status code ok got: ''
expected: '200'
129-ssl-socket.t TEST 16: explicit ssl protocol configuration - response_body - response is expected (repeated req 1, req 0) @@ -1,5 +0,0 @@
-connected: 1
-ssl handshake: userdata
-sent stream request: 53 bytes.
-received: HTTP/1.1 200 OK
-close: 1 nil
'
129-ssl-socket.t TEST 16: explicit ssl protocol configuration - grep_error_log_out (req 1) ''
doesn't match '(?^:^lua ssl save session: ([0-9A-F]+)
lua ssl free session: ([0-9A-F]+)
$)'
129-ssl-socket.t TEST 16: explicit ssl protocol configuration - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:30:37 [alert] 32175\#0: worker process 311 exited on signal 11" (req 1) 2020/10/27 05:30:37 [debug] 32175\#0: shmtx forced unlock
2020/10/27 05:30:37 [debug] 32175\#0: wake up, sigio 0
2020/10/27 05:30:37 [debug] 32175\#0: reap children
2020/10/27 05:30:37 [debug] 32175\#0: child: 0 311 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:30:37 [debug] 32175\#0: channel 3:4
2020/10/27 05:30:37 [notice] 32175\#0: start worker process 312
2020/10/27 05:30:37 [debug] 32175\#0: sigsuspend
2020/10/27 05:30:37 [debug] 312\#0: malloc: 08F6AC60:12
2020/10/27 05:30:37 [debug] 312\#0: malloc: 08F6F7E8:8
'
129-ssl-socket.t TEST 18: openresty.org: passing SSL verify: keepalive (reuse the ssl session) - status code ok got: ''
expected: '200'
129-ssl-socket.t TEST 18: openresty.org: passing SSL verify: keepalive (reuse the ssl session) - response_body - response is expected (repeated req 0, req 0) @@ -1,9 +0,0 @@
-connected: 1
-ssl handshake: userdata
-set keepalive: 1 nil
-connected: 1
-ssl handshake: userdata
-set keepalive: 1 nil
-connected: 1
-ssl handshake: userdata
-set keepalive: 1 nil
'
129-ssl-socket.t TEST 18: openresty.org: passing SSL verify: keepalive (reuse the ssl session) - grep_error_log_out (req 0) ''
doesn't match '(?^:^lua ssl save session: ([0-9A-F]+)
lua ssl free session: \1
$)'
129-ssl-socket.t TEST 18: openresty.org: passing SSL verify: keepalive (reuse the ssl session) - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:30:39 [alert] 32175\#0: worker process 319 exited on signal 11" (req 0) 2020/10/27 05:30:39 [debug] 32175\#0: shmtx forced unlock
2020/10/27 05:30:39 [debug] 32175\#0: wake up, sigio 0
2020/10/27 05:30:39 [debug] 32175\#0: reap children
2020/10/27 05:30:39 [debug] 32175\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:30:39 [debug] 32175\#0: child: 1 319 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:30:39 [debug] 32175\#0: channel 3:4
2020/10/27 05:30:39 [notice] 32175\#0: start worker process 341
2020/10/27 05:30:39 [debug] 32175\#0: sigsuspend
2020/10/27 05:30:39 [debug] 341\#0: malloc: 08F65FB0:12
'
129-ssl-socket.t TEST 18: openresty.org: passing SSL verify: keepalive (reuse the ssl session) - status code ok got: ''
expected: '200'
129-ssl-socket.t TEST 18: openresty.org: passing SSL verify: keepalive (reuse the ssl session) - response_body - response is expected (repeated req 1, req 0) @@ -1,9 +0,0 @@
-connected: 1
-ssl handshake: userdata
-set keepalive: 1 nil
-connected: 1
-ssl handshake: userdata
-set keepalive: 1 nil
-connected: 1
-ssl handshake: userdata
-set keepalive: 1 nil
'
129-ssl-socket.t TEST 18: openresty.org: passing SSL verify: keepalive (reuse the ssl session) - grep_error_log_out (req 1) ''
doesn't match '(?^:^lua ssl save session: ([0-9A-F]+)
lua ssl free session: \1
$)'
129-ssl-socket.t TEST 18: openresty.org: passing SSL verify: keepalive (reuse the ssl session) - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:30:39 [alert] 32175\#0: worker process 341 exited on signal 11" (req 1) 2020/10/27 05:30:39 [debug] 32175\#0: shmtx forced unlock
2020/10/27 05:30:39 [debug] 32175\#0: wake up, sigio 0
2020/10/27 05:30:39 [debug] 32175\#0: reap children
2020/10/27 05:30:39 [debug] 32175\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:30:39 [debug] 32175\#0: child: 1 341 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:30:39 [debug] 32175\#0: channel 3:4
2020/10/27 05:30:39 [notice] 32175\#0: start worker process 342
2020/10/27 05:30:39 [debug] 32175\#0: sigsuspend
2020/10/27 05:30:39 [debug] 342\#0: malloc: 08F65FB0:12
'
129-ssl-socket.t TEST 3: SNI, no verify - status code ok got: ''
expected: '200'
129-ssl-socket.t TEST 3: SNI, no verify - response_body - response is expected (repeated req 0, req 0) @@ -1,5 +0,0 @@
-connected: 1
-ssl handshake: userdata
-sent stream request: 58 bytes.
-received: HTTP/1.1 302 Moved Temporarily
-close: 1 nil
'
129-ssl-socket.t TEST 3: SNI, no verify - grep_error_log_out (req 0) ''
doesn't match '(?^:^lua ssl save session: ([0-9A-F]+)
lua ssl free session: ([0-9A-F]+)
$)'
129-ssl-socket.t TEST 3: SNI, no verify - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:30:40 [alert] 32175\#0: worker process 349 exited on signal 11" (req 0) 2020/10/27 05:30:40 [debug] 32175\#0: shmtx forced unlock
2020/10/27 05:30:40 [debug] 32175\#0: wake up, sigio 0
2020/10/27 05:30:40 [debug] 32175\#0: reap children
2020/10/27 05:30:40 [debug] 32175\#0: child: 0 349 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:30:40 [debug] 32175\#0: channel 3:4
2020/10/27 05:30:40 [notice] 32175\#0: start worker process 371
2020/10/27 05:30:40 [debug] 32175\#0: sigsuspend
2020/10/27 05:30:40 [debug] 371\#0: malloc: 08F6AC60:12
2020/10/27 05:30:40 [debug] 371\#0: malloc: 08F6F7E8:8
'
129-ssl-socket.t TEST 3: SNI, no verify - status code ok got: ''
expected: '200'
129-ssl-socket.t TEST 3: SNI, no verify - response_body - response is expected (repeated req 1, req 0) @@ -1,5 +0,0 @@
-connected: 1
-ssl handshake: userdata
-sent stream request: 58 bytes.
-received: HTTP/1.1 302 Moved Temporarily
-close: 1 nil
'
129-ssl-socket.t TEST 3: SNI, no verify - grep_error_log_out (req 1) ''
doesn't match '(?^:^lua ssl save session: ([0-9A-F]+)
lua ssl free session: ([0-9A-F]+)
$)'
129-ssl-socket.t TEST 3: SNI, no verify - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:30:41 [alert] 32175\#0: worker process 371 exited on signal 11" (req 1) 2020/10/27 05:30:41 [debug] 32175\#0: shmtx forced unlock
2020/10/27 05:30:41 [debug] 32175\#0: wake up, sigio 0
2020/10/27 05:30:41 [debug] 32175\#0: reap children
2020/10/27 05:30:41 [debug] 32175\#0: child: 0 371 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:30:41 [debug] 32175\#0: channel 3:4
2020/10/27 05:30:41 [notice] 32175\#0: start worker process 372
2020/10/27 05:30:41 [debug] 32175\#0: sigsuspend
2020/10/27 05:30:41 [debug] 372\#0: malloc: 08F6AC60:12
2020/10/27 05:30:41 [debug] 372\#0: malloc: 08F6F7E8:8
'
129-ssl-socket.t TEST 31: unix domain ssl cosocket (verify cert but no host name check, NOT passed) - status code ok got: ''
expected: '200'
129-ssl-socket.t TEST 31: unix domain ssl cosocket (verify cert but no host name check, NOT passed) - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-connected: 1
-failed to do SSL handshake: 18: self signed certificate
'
129-ssl-socket.t TEST 31: unix domain ssl cosocket (verify cert but no host name check, NOT passed) - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:30:42 [alert] 32175\#0: worker process 379 exited on signal 11" (req 0) 2020/10/27 05:30:42 [debug] 32175\#0: shmtx forced unlock
2020/10/27 05:30:42 [debug] 32175\#0: wake up, sigio 0
2020/10/27 05:30:42 [debug] 32175\#0: reap children
2020/10/27 05:30:42 [debug] 32175\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:30:42 [debug] 32175\#0: child: 1 379 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:30:42 [debug] 32175\#0: channel 3:4
2020/10/27 05:30:42 [notice] 32175\#0: start worker process 401
2020/10/27 05:30:42 [debug] 32175\#0: sigsuspend
2020/10/27 05:30:42 [debug] 401\#0: malloc: 08F65FB0:12
'
129-ssl-socket.t TEST 31: unix domain ssl cosocket (verify cert but no host name check, NOT passed) - status code ok got: ''
expected: '200'
129-ssl-socket.t TEST 31: unix domain ssl cosocket (verify cert but no host name check, NOT passed) - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-connected: 1
-failed to do SSL handshake: 18: self signed certificate
'
129-ssl-socket.t TEST 31: unix domain ssl cosocket (verify cert but no host name check, NOT passed) - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:30:42 [alert] 32175\#0: worker process 401 exited on signal 11" (req 1) 2020/10/27 05:30:42 [debug] 32175\#0: shmtx forced unlock
2020/10/27 05:30:42 [debug] 32175\#0: wake up, sigio 0
2020/10/27 05:30:42 [debug] 32175\#0: reap children
2020/10/27 05:30:42 [debug] 32175\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:30:42 [debug] 32175\#0: child: 1 401 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:30:42 [debug] 32175\#0: channel 3:4
2020/10/27 05:30:42 [notice] 32175\#0: start worker process 402
2020/10/27 05:30:42 [debug] 32175\#0: sigsuspend
2020/10/27 05:30:42 [debug] 402\#0: malloc: 08F65FB0:12
'
129-ssl-socket.t TEST 27: unix domain ssl cosocket (no gen session) - status code ok got: ''
expected: '200'
129-ssl-socket.t TEST 27: unix domain ssl cosocket (no gen session) - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-connected: 1
-ssl handshake: true
'
129-ssl-socket.t TEST 27: unix domain ssl cosocket (no gen session) - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:30:44 [alert] 32175\#0: worker process 409 exited on signal 11" (req 0) 2020/10/27 05:30:44 [debug] 32175\#0: shmtx forced unlock
2020/10/27 05:30:44 [debug] 32175\#0: wake up, sigio 0
2020/10/27 05:30:44 [debug] 32175\#0: reap children
2020/10/27 05:30:44 [debug] 32175\#0: child: 0 409 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:30:44 [debug] 32175\#0: channel 3:4
2020/10/27 05:30:44 [notice] 32175\#0: start worker process 431
2020/10/27 05:30:44 [debug] 32175\#0: sigsuspend
2020/10/27 05:30:44 [debug] 431\#0: malloc: 08F6AC60:12
2020/10/27 05:30:44 [debug] 431\#0: malloc: 08F6F7E8:8
'
129-ssl-socket.t TEST 27: unix domain ssl cosocket (no gen session) - status code ok got: ''
expected: '200'
129-ssl-socket.t TEST 27: unix domain ssl cosocket (no gen session) - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-connected: 1
-ssl handshake: true
'
129-ssl-socket.t TEST 27: unix domain ssl cosocket (no gen session) - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:30:44 [alert] 32175\#0: worker process 431 exited on signal 11" (req 1) 2020/10/27 05:30:44 [debug] 32175\#0: shmtx forced unlock
2020/10/27 05:30:44 [debug] 32175\#0: wake up, sigio 0
2020/10/27 05:30:44 [debug] 32175\#0: reap children
2020/10/27 05:30:44 [debug] 32175\#0: child: 0 431 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:30:44 [debug] 32175\#0: channel 3:4
2020/10/27 05:30:44 [notice] 32175\#0: start worker process 432
2020/10/27 05:30:44 [debug] 32175\#0: sigsuspend
2020/10/27 05:30:44 [debug] 432\#0: malloc: 08F6AC60:12
2020/10/27 05:30:44 [debug] 432\#0: malloc: 08F6F7E8:8
'
129-ssl-socket.t TEST 30: unix domain ssl cosocket (verify cert but no host name check, passed) - status code ok got: ''
expected: '200'
129-ssl-socket.t TEST 30: unix domain ssl cosocket (verify cert but no host name check, passed) - response_body - response is expected (repeated req 0, req 0) @@ -1,6 +0,0 @@
-connected: 1
-ssl handshake: userdata
-sent stream request: 9 bytes.
-received: flash!
-received: the end...
-close: 1 nil
'
129-ssl-socket.t TEST 30: unix domain ssl cosocket (verify cert but no host name check, passed) - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:30:46 [alert] 32175\#0: worker process 439 exited on signal 11" (req 0) 2020/10/27 05:30:46 [debug] 32175\#0: shmtx forced unlock
2020/10/27 05:30:46 [debug] 32175\#0: wake up, sigio 0
2020/10/27 05:30:46 [debug] 32175\#0: reap children
2020/10/27 05:30:46 [debug] 32175\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:30:46 [debug] 32175\#0: child: 1 439 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:30:46 [debug] 32175\#0: channel 3:4
2020/10/27 05:30:46 [notice] 32175\#0: start worker process 461
2020/10/27 05:30:46 [debug] 32175\#0: sigsuspend
2020/10/27 05:30:46 [debug] 461\#0: malloc: 08F65FB0:12
'
129-ssl-socket.t TEST 30: unix domain ssl cosocket (verify cert but no host name check, passed) - status code ok got: ''
expected: '200'
129-ssl-socket.t TEST 30: unix domain ssl cosocket (verify cert but no host name check, passed) - response_body - response is expected (repeated req 1, req 0) @@ -1,6 +0,0 @@
-connected: 1
-ssl handshake: userdata
-sent stream request: 9 bytes.
-received: flash!
-received: the end...
-close: 1 nil
'
129-ssl-socket.t TEST 30: unix domain ssl cosocket (verify cert but no host name check, passed) - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:30:46 [alert] 32175\#0: worker process 461 exited on signal 11" (req 1) 2020/10/27 05:30:46 [debug] 32175\#0: shmtx forced unlock
2020/10/27 05:30:46 [debug] 32175\#0: wake up, sigio 0
2020/10/27 05:30:46 [debug] 32175\#0: reap children
2020/10/27 05:30:46 [debug] 32175\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:30:46 [debug] 32175\#0: child: 1 461 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:30:46 [debug] 32175\#0: channel 3:4
2020/10/27 05:30:46 [notice] 32175\#0: start worker process 462
2020/10/27 05:30:46 [debug] 32175\#0: sigsuspend
2020/10/27 05:30:46 [debug] 462\#0: malloc: 08F65FB0:12
'
129-ssl-socket.t TEST 15: explicit cipher configuration - status code ok got: ''
expected: '200'
129-ssl-socket.t TEST 15: explicit cipher configuration - response_body - response is expected (repeated req 0, req 0) @@ -1,5 +0,0 @@
-connected: 1
-ssl handshake: userdata
-sent stream request: 53 bytes.
-received: HTTP/1.1 200 OK
-close: 1 nil
'
129-ssl-socket.t TEST 15: explicit cipher configuration - grep_error_log_out (req 0) ''
doesn't match '(?^:^lua ssl save session: ([0-9A-F]+)
lua ssl free session: ([0-9A-F]+)
$)'
129-ssl-socket.t TEST 15: explicit cipher configuration - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:30:48 [alert] 32175\#0: worker process 469 exited on signal 11" (req 0) 2020/10/27 05:30:48 [debug] 32175\#0: shmtx forced unlock
2020/10/27 05:30:48 [debug] 32175\#0: wake up, sigio 0
2020/10/27 05:30:48 [debug] 32175\#0: reap children
2020/10/27 05:30:48 [debug] 32175\#0: child: 0 469 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:30:48 [debug] 32175\#0: channel 3:4
2020/10/27 05:30:48 [notice] 32175\#0: start worker process 491
2020/10/27 05:30:48 [debug] 32175\#0: sigsuspend
2020/10/27 05:30:48 [debug] 491\#0: malloc: 08F6AC60:12
2020/10/27 05:30:48 [debug] 491\#0: malloc: 08F6F7E8:8
'
129-ssl-socket.t TEST 15: explicit cipher configuration - status code ok got: ''
expected: '200'
129-ssl-socket.t TEST 15: explicit cipher configuration - response_body - response is expected (repeated req 1, req 0) @@ -1,5 +0,0 @@
-connected: 1
-ssl handshake: userdata
-sent stream request: 53 bytes.
-received: HTTP/1.1 200 OK
-close: 1 nil
'
129-ssl-socket.t TEST 15: explicit cipher configuration - grep_error_log_out (req 1) ''
doesn't match '(?^:^lua ssl save session: ([0-9A-F]+)
lua ssl free session: ([0-9A-F]+)
$)'
129-ssl-socket.t TEST 15: explicit cipher configuration - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:30:48 [alert] 32175\#0: worker process 491 exited on signal 11" (req 1) 2020/10/27 05:30:48 [debug] 32175\#0: shmtx forced unlock
2020/10/27 05:30:48 [debug] 32175\#0: wake up, sigio 0
2020/10/27 05:30:48 [debug] 32175\#0: reap children
2020/10/27 05:30:48 [debug] 32175\#0: child: 0 491 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:30:48 [debug] 32175\#0: channel 3:4
2020/10/27 05:30:48 [notice] 32175\#0: start worker process 492
2020/10/27 05:30:48 [debug] 32175\#0: sigsuspend
2020/10/27 05:30:48 [debug] 492\#0: malloc: 08F6AC60:12
2020/10/27 05:30:48 [debug] 492\#0: malloc: 08F6F7E8:8
'
129-ssl-socket.t TEST 21: unix domain ssl cosocket (no verify) - status code ok got: ''
expected: '200'
129-ssl-socket.t TEST 21: unix domain ssl cosocket (no verify) - response_body - response is expected (repeated req 0, req 0) @@ -1,6 +0,0 @@
-connected: 1
-ssl handshake: userdata
-sent stream request: 9 bytes.
-received: flash!
-received: the end...
-close: 1 nil
'
129-ssl-socket.t TEST 21: unix domain ssl cosocket (no verify) - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:30:50 [alert] 32175\#0: worker process 499 exited on signal 11" (req 0) 2020/10/27 05:30:50 [debug] 32175\#0: shmtx forced unlock
2020/10/27 05:30:50 [debug] 32175\#0: wake up, sigio 0
2020/10/27 05:30:50 [debug] 32175\#0: reap children
2020/10/27 05:30:50 [debug] 32175\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:30:50 [debug] 32175\#0: child: 1 499 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:30:50 [debug] 32175\#0: channel 3:4
2020/10/27 05:30:50 [notice] 32175\#0: start worker process 521
2020/10/27 05:30:50 [debug] 32175\#0: sigsuspend
2020/10/27 05:30:50 [debug] 521\#0: malloc: 08F65FB0:12
'
129-ssl-socket.t TEST 21: unix domain ssl cosocket (no verify) - status code ok got: ''
expected: '200'
129-ssl-socket.t TEST 21: unix domain ssl cosocket (no verify) - response_body - response is expected (repeated req 1, req 0) @@ -1,6 +0,0 @@
-connected: 1
-ssl handshake: userdata
-sent stream request: 9 bytes.
-received: flash!
-received: the end...
-close: 1 nil
'
129-ssl-socket.t TEST 21: unix domain ssl cosocket (no verify) - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:30:50 [alert] 32175\#0: worker process 521 exited on signal 11" (req 1) 2020/10/27 05:30:50 [debug] 32175\#0: shmtx forced unlock
2020/10/27 05:30:50 [debug] 32175\#0: wake up, sigio 0
2020/10/27 05:30:50 [debug] 32175\#0: reap children
2020/10/27 05:30:50 [debug] 32175\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:30:50 [debug] 32175\#0: child: 1 521 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:30:50 [debug] 32175\#0: channel 3:4
2020/10/27 05:30:50 [notice] 32175\#0: start worker process 522
2020/10/27 05:30:50 [debug] 32175\#0: sigsuspend
2020/10/27 05:30:50 [debug] 522\#0: malloc: 08F65FB0:12
'
129-ssl-socket.t TEST 12: www.google.com (SSL verify enabled and no corresponding trusted certificates) - status code ok got: ''
expected: '200'
129-ssl-socket.t TEST 12: www.google.com (SSL verify enabled and no corresponding trusted certificates) - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-connected: 1
-failed to do SSL handshake: 20: unable to get local issuer certificate
'
129-ssl-socket.t TEST 12: www.google.com (SSL verify enabled and no corresponding trusted certificates) - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:30:52 [alert] 32175\#0: worker process 529 exited on signal 11" (req 0) 2020/10/27 05:30:52 [debug] 32175\#0: shmtx forced unlock
2020/10/27 05:30:52 [debug] 32175\#0: wake up, sigio 0
2020/10/27 05:30:52 [debug] 32175\#0: reap children
2020/10/27 05:30:52 [debug] 32175\#0: child: 0 529 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:30:52 [debug] 32175\#0: channel 3:4
2020/10/27 05:30:52 [notice] 32175\#0: start worker process 551
2020/10/27 05:30:52 [debug] 32175\#0: sigsuspend
2020/10/27 05:30:52 [debug] 551\#0: malloc: 08F6AC60:12
2020/10/27 05:30:52 [debug] 551\#0: malloc: 08F6F7E8:8
'
129-ssl-socket.t TEST 12: www.google.com (SSL verify enabled and no corresponding trusted certificates) - status code ok got: ''
expected: '200'
129-ssl-socket.t TEST 12: www.google.com (SSL verify enabled and no corresponding trusted certificates) - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-connected: 1
-failed to do SSL handshake: 20: unable to get local issuer certificate
'
129-ssl-socket.t TEST 12: www.google.com (SSL verify enabled and no corresponding trusted certificates) - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:30:52 [alert] 32175\#0: worker process 551 exited on signal 11" (req 1) 2020/10/27 05:30:52 [debug] 32175\#0: shmtx forced unlock
2020/10/27 05:30:52 [debug] 32175\#0: wake up, sigio 0
2020/10/27 05:30:52 [debug] 32175\#0: reap children
2020/10/27 05:30:52 [debug] 32175\#0: child: 0 551 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:30:52 [debug] 32175\#0: channel 3:4
2020/10/27 05:30:52 [notice] 32175\#0: start worker process 552
2020/10/27 05:30:52 [debug] 32175\#0: sigsuspend
2020/10/27 05:30:52 [debug] 552\#0: malloc: 08F6AC60:12
2020/10/27 05:30:52 [debug] 552\#0: malloc: 08F6F7E8:8
'
129-ssl-socket.t TEST 1: www.google.com - status code ok got: ''
expected: '200'
129-ssl-socket.t TEST 1: www.google.com - response_body_like - response is expected () ''
doesn't match '(?^s:\Aconnected: 1
ssl handshake: userdata
sent http request: 59 bytes.
received: HTTP/1.1 (?:200 OK|302 Found)
close: 1 nil
\z)'
129-ssl-socket.t TEST 1: www.google.com - grep_error_log_out (req 0) ''
doesn't match '(?^:^lua ssl save session: ([0-9A-F]+)
lua ssl free session: ([0-9A-F]+)
$)'
129-ssl-socket.t TEST 1: www.google.com - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:30:53 [alert] 32175\#0: worker process 559 exited on signal 11" (req 0) 2020/10/27 05:30:53 [debug] 32175\#0: shmtx forced unlock
2020/10/27 05:30:53 [debug] 32175\#0: wake up, sigio 0
2020/10/27 05:30:53 [debug] 32175\#0: reap children
2020/10/27 05:30:53 [debug] 32175\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:30:53 [debug] 32175\#0: child: 1 559 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:30:53 [debug] 32175\#0: channel 3:4
2020/10/27 05:30:53 [notice] 32175\#0: start worker process 581
2020/10/27 05:30:53 [debug] 32175\#0: sigsuspend
2020/10/27 05:30:53 [debug] 581\#0: malloc: 08F65FB0:12
'
129-ssl-socket.t TEST 1: www.google.com - status code ok got: ''
expected: '200'
129-ssl-socket.t TEST 1: www.google.com - response_body_like - response is expected () ''
doesn't match '(?^s:\Aconnected: 1
ssl handshake: userdata
sent http request: 59 bytes.
received: HTTP/1.1 (?:200 OK|302 Found)
close: 1 nil
\z)'
129-ssl-socket.t TEST 1: www.google.com - grep_error_log_out (req 1) ''
doesn't match '(?^:^lua ssl save session: ([0-9A-F]+)
lua ssl free session: ([0-9A-F]+)
$)'
129-ssl-socket.t TEST 1: www.google.com - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:30:54 [alert] 32175\#0: worker process 581 exited on signal 11" (req 1) 2020/10/27 05:30:54 [debug] 32175\#0: shmtx forced unlock
2020/10/27 05:30:54 [debug] 32175\#0: wake up, sigio 0
2020/10/27 05:30:54 [debug] 32175\#0: reap children
2020/10/27 05:30:54 [debug] 32175\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:30:54 [debug] 32175\#0: child: 1 581 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:30:54 [debug] 32175\#0: channel 3:4
2020/10/27 05:30:54 [notice] 32175\#0: start worker process 582
2020/10/27 05:30:54 [debug] 32175\#0: sigsuspend
2020/10/27 05:30:54 [debug] 582\#0: malloc: 08F65FB0:12
'
129-ssl-socket.t TEST 5: certificate does not match host name (verify) - status code ok got: ''
expected: '200'
129-ssl-socket.t TEST 5: certificate does not match host name (verify) - response_body_like - response is expected () ''
doesn't match '(?^s:\Aconnected: 1
failed to do SSL handshake: (?:handshake failed|certificate host mismatch)
failed to send stream request: closed
\z)'
129-ssl-socket.t TEST 5: certificate does not match host name (verify) - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:30:55 [alert] 32175\#0: worker process 591 exited on signal 11" (req 0) 2020/10/27 05:30:55 [debug] 32175\#0: shmtx forced unlock
2020/10/27 05:30:55 [debug] 32175\#0: wake up, sigio 0
2020/10/27 05:30:55 [debug] 32175\#0: reap children
2020/10/27 05:30:55 [debug] 32175\#0: child: 0 591 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:30:55 [debug] 32175\#0: channel 3:4
2020/10/27 05:30:55 [notice] 32175\#0: start worker process 613
2020/10/27 05:30:55 [debug] 32175\#0: sigsuspend
2020/10/27 05:30:55 [debug] 613\#0: malloc: 08F6AC60:12
2020/10/27 05:30:55 [debug] 613\#0: malloc: 08F6F7E8:8
'
129-ssl-socket.t TEST 5: certificate does not match host name (verify) - status code ok got: ''
expected: '200'
129-ssl-socket.t TEST 5: certificate does not match host name (verify) - response_body_like - response is expected () ''
doesn't match '(?^s:\Aconnected: 1
failed to do SSL handshake: (?:handshake failed|certificate host mismatch)
failed to send stream request: closed
\z)'
129-ssl-socket.t TEST 5: certificate does not match host name (verify) - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:30:56 [alert] 32175\#0: worker process 613 exited on signal 11" (req 1) 2020/10/27 05:30:56 [debug] 32175\#0: shmtx forced unlock
2020/10/27 05:30:56 [debug] 32175\#0: wake up, sigio 0
2020/10/27 05:30:56 [debug] 32175\#0: reap children
2020/10/27 05:30:56 [debug] 32175\#0: child: 0 613 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:30:56 [debug] 32175\#0: channel 3:4
2020/10/27 05:30:56 [notice] 32175\#0: start worker process 614
2020/10/27 05:30:56 [debug] 32175\#0: sigsuspend
2020/10/27 05:30:56 [debug] 614\#0: malloc: 08F6AC60:12
2020/10/27 05:30:56 [debug] 614\#0: malloc: 08F6F7E8:8
'
130-internal-api.t TEST 1: req - status code ok got: ''
expected: '200'
130-internal-api.t TEST 1: req - response_body_like - response is expected () ''
doesn't match '(?^s:^content req=0x[a-f0-9]{4,}
$)'
130-internal-api.t TEST 1: req - status code ok got: ''
expected: '200'
130-internal-api.t TEST 1: req - response_body_like - response is expected () ''
doesn't match '(?^s:^content req=0x[a-f0-9]{4,}
$)'
131-duplex-req-socket.t TEST 1: raw downstream cosocket used in two different threads. See issue \#481 - status code ok got: ''
expected: '200'
131-duplex-req-socket.t TEST 1: raw downstream cosocket used in two different threads. See issue \#481 - response_body_like - response is expected () ''
doesn't match '(?^s:^received \d+ bytes of response data\.$)'
131-duplex-req-socket.t TEST 1: raw downstream cosocket used in two different threads. See issue \#481 - pattern "The two threads finished" should match a line in error.log (req 0)
131-duplex-req-socket.t TEST 1: raw downstream cosocket used in two different threads. See issue \#481 - status code ok got: ''
expected: '200'
131-duplex-req-socket.t TEST 1: raw downstream cosocket used in two different threads. See issue \#481 - response_body_like - response is expected () ''
doesn't match '(?^s:^received \d+ bytes of response data\.$)'
131-duplex-req-socket.t TEST 1: raw downstream cosocket used in two different threads. See issue \#481 - pattern "The two threads finished" should match a line in error.log (req 1)
131-duplex-req-socket.t TEST 2: normal downstream cosocket used in two different threads. See issue \#481 - status code ok got: ''
expected: '200'
131-duplex-req-socket.t TEST 2: normal downstream cosocket used in two different threads. See issue \#481 - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "received 4 bytes of response data.\x{0a}"
length: 35
strings begin to differ at char 1 (line 1 column 1)
131-duplex-req-socket.t TEST 2: normal downstream cosocket used in two different threads. See issue \#481 - pattern "The two threads finished" should match a line in error.log (req 0)
131-duplex-req-socket.t TEST 2: normal downstream cosocket used in two different threads. See issue \#481 - status code ok got: ''
expected: '200'
131-duplex-req-socket.t TEST 2: normal downstream cosocket used in two different threads. See issue \#481 - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "received 4 bytes of response data.\x{0a}"
length: 35
strings begin to differ at char 1 (line 1 column 1)
131-duplex-req-socket.t TEST 2: normal downstream cosocket used in two different threads. See issue \#481 - pattern "The two threads finished" should match a line in error.log (req 1)
132-lua-blocks.t TEST 5: content_by_lua_block ("nested" long brackets) - status code ok got: ''
expected: '200'
132-lua-blocks.t TEST 5: content_by_lua_block ("nested" long brackets) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'ok
'
132-lua-blocks.t TEST 5: content_by_lua_block ("nested" long brackets) - status code ok got: ''
expected: '200'
132-lua-blocks.t TEST 5: content_by_lua_block ("nested" long brackets) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'ok
'
132-lua-blocks.t TEST 16: ambiguous line comments inside a long bracket string (GitHub \#596) - status code ok got: ''
expected: '200'
132-lua-blocks.t TEST 16: ambiguous line comments inside a long bracket string (GitHub \#596) - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-ok--
-ok--
-ok--
-done
'
132-lua-blocks.t TEST 16: ambiguous line comments inside a long bracket string (GitHub \#596) - status code ok got: ''
expected: '200'
132-lua-blocks.t TEST 16: ambiguous line comments inside a long bracket string (GitHub \#596) - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +0,0 @@
-ok--
-ok--
-ok--
-done
'
132-lua-blocks.t TEST 6: content_by_lua_block (curly braces in line comments) - status code ok got: ''
expected: '200'
132-lua-blocks.t TEST 6: content_by_lua_block (curly braces in line comments) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'ok
'
132-lua-blocks.t TEST 6: content_by_lua_block (curly braces in line comments) - status code ok got: ''
expected: '200'
132-lua-blocks.t TEST 6: content_by_lua_block (curly braces in line comments) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'ok
'
132-lua-blocks.t TEST 7: content_by_lua_block (cosockets) - status code ok got: ''
expected: '200'
132-lua-blocks.t TEST 7: content_by_lua_block (cosockets) - response_body - response is expected (repeated req 0, req 0) @@ -1,11 +0,0 @@
-connected: 1
-request sent: 57
-received: HTTP/1.1 200 OK
-received: Server: nginx
-received: Content-Type: text/plain
-received: Content-Length: 4
-received: Connection: close
-received:
-received: foo
-failed to receive a line: closed []
-close: 1 nil
'
132-lua-blocks.t TEST 7: content_by_lua_block (cosockets) - status code ok got: ''
expected: '200'
132-lua-blocks.t TEST 7: content_by_lua_block (cosockets) - response_body - response is expected (repeated req 1, req 0) @@ -1,11 +0,0 @@
-connected: 1
-request sent: 57
-received: HTTP/1.1 200 OK
-received: Server: nginx
-received: Content-Type: text/plain
-received: Content-Length: 4
-received: Connection: close
-received:
-received: foo
-failed to receive a line: closed []
-close: 1 nil
'
132-lua-blocks.t TEST 14: content_by_lua_block (compact) - status code ok got: ''
expected: '200'
132-lua-blocks.t TEST 14: content_by_lua_block (compact) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'hello, world!
'
132-lua-blocks.t TEST 14: content_by_lua_block (compact) - status code ok got: ''
expected: '200'
132-lua-blocks.t TEST 14: content_by_lua_block (compact) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'hello, world!
'
132-lua-blocks.t TEST 2: content_by_lua_block (curly braces in strings) - status code ok got: ''
expected: '200'
132-lua-blocks.t TEST 2: content_by_lua_block (curly braces in strings) - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-}1, 2)
-{1, 2)
'
132-lua-blocks.t TEST 2: content_by_lua_block (curly braces in strings) - status code ok got: ''
expected: '200'
132-lua-blocks.t TEST 2: content_by_lua_block (curly braces in strings) - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-}1, 2)
-{1, 2)
'
132-lua-blocks.t TEST 8: all in one - status code ok got: ''
expected: '200'
132-lua-blocks.t TEST 8: all in one - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-}content{
-glob: init by lua }here{, init worker }here{
'
132-lua-blocks.t TEST 8: all in one - status code ok got: ''
expected: '200'
132-lua-blocks.t TEST 8: all in one - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-}content{
-glob: init by lua }here{, init worker }here{
'
132-lua-blocks.t TEST 3: content_by_lua_block (curly braces in strings, with escaped terminators) - status code ok got: ''
expected: '200'
132-lua-blocks.t TEST 3: content_by_lua_block (curly braces in strings, with escaped terminators) - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-"}1, 2)
-'{1, 2)
'
132-lua-blocks.t TEST 3: content_by_lua_block (curly braces in strings, with escaped terminators) - status code ok got: ''
expected: '200'
132-lua-blocks.t TEST 3: content_by_lua_block (curly braces in strings, with escaped terminators) - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-"}1, 2)
-'{1, 2)
'
132-lua-blocks.t TEST 1: content_by_lua_block (nested curly braces) - status code ok got: ''
expected: '200'
132-lua-blocks.t TEST 1: content_by_lua_block (nested curly braces) - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-a.dogs[1] = 32
-a.dogs[2] = 78
-a.dogs[3] = 96
-a.cat = kitty
'
132-lua-blocks.t TEST 1: content_by_lua_block (nested curly braces) - status code ok got: ''
expected: '200'
132-lua-blocks.t TEST 1: content_by_lua_block (nested curly braces) - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +0,0 @@
-a.dogs[1] = 32
-a.dogs[2] = 78
-a.dogs[3] = 96
-a.cat = kitty
'
132-lua-blocks.t TEST 4: content_by_lua_block (curly braces in long brackets) - status code ok got: ''
expected: '200'
132-lua-blocks.t TEST 4: content_by_lua_block (curly braces in long brackets) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'ok
'
132-lua-blocks.t TEST 4: content_by_lua_block (curly braces in long brackets) - status code ok got: ''
expected: '200'
132-lua-blocks.t TEST 4: content_by_lua_block (curly braces in long brackets) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'ok
'
133-worker-count.t TEST 1: content_by_lua - status code ok got: ''
expected: '200'
133-worker-count.t TEST 1: content_by_lua - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "workers: 1\x{0a}"
length: 11
strings begin to differ at char 1 (line 1 column 1)
133-worker-count.t TEST 1: content_by_lua - status code ok got: ''
expected: '200'
133-worker-count.t TEST 1: content_by_lua - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "workers: 1\x{0a}"
length: 11
strings begin to differ at char 1 (line 1 column 1)
134-worker-count-5.t TEST 1: sanity - status code ok got: ''
expected: '200'
134-worker-count-5.t TEST 1: sanity - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "worker count: 5\x{0a}"
length: 16
strings begin to differ at char 1 (line 1 column 1)
134-worker-count-5.t TEST 1: sanity - status code ok got: ''
expected: '200'
134-worker-count-5.t TEST 1: sanity - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "worker count: 5\x{0a}"
length: 16
strings begin to differ at char 1 (line 1 column 1)
135-worker-id.t TEST 1: sanity - status code ok got: ''
expected: '200'
135-worker-id.t TEST 1: sanity - response_body_like - response is expected () ''
doesn't match '(?^s:^worker id: [0-1]$)'
135-worker-id.t TEST 1: sanity - status code ok got: ''
expected: '200'
135-worker-id.t TEST 1: sanity - response_body_like - response is expected () ''
doesn't match '(?^s:^worker id: [0-1]$)'
136-timer-counts.t TEST 5: one running timer - status code ok got: ''
expected: '200'
136-timer-counts.t TEST 5: one running timer - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "1\x{0a}"
length: 2
strings begin to differ at char 1 (line 1 column 1)
136-timer-counts.t TEST 6: 3 running timers - status code ok got: ''
expected: '200'
136-timer-counts.t TEST 6: 3 running timers - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "3\x{0a}"
length: 2
strings begin to differ at char 1 (line 1 column 1)
136-timer-counts.t TEST 1: running count with no running timers - status code ok got: ''
expected: '200'
136-timer-counts.t TEST 1: running count with no running timers - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "0\x{0a}"
length: 2
strings begin to differ at char 1 (line 1 column 1)
136-timer-counts.t TEST 4: pending count with 3 pending timers - status code ok got: ''
expected: '200'
136-timer-counts.t TEST 4: pending count with 3 pending timers - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "3\x{0a}"
length: 2
strings begin to differ at char 1 (line 1 column 1)
136-timer-counts.t TEST 3: pending count with one pending timer - status code ok got: ''
expected: '200'
136-timer-counts.t TEST 3: pending count with one pending timer - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "1\x{0a}"
length: 2
strings begin to differ at char 1 (line 1 column 1)
136-timer-counts.t TEST 2: running count with no pending timers - status code ok got: ''
expected: '200'
136-timer-counts.t TEST 2: running count with no pending timers - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "0\x{0a}"
length: 2
strings begin to differ at char 1 (line 1 column 1)
138-balancer.t TEST 2: exit 403 - status code ok got: ''
expected: '200'
138-balancer.t TEST 2: exit 403 - status code ok got: ''
expected: '200'
138-balancer.t TEST 5: simple logging (by_lua_file) - status code ok got: ''
expected: '200'
138-balancer.t TEST 5: simple logging (by_lua_file) - status code ok got: ''
expected: '200'
138-balancer.t TEST 11: set_more_tries bugfix - status code ok got: ''
expected: '200'
138-balancer.t TEST 11: set_more_tries bugfix - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:31:36 [alert] 1180\#0: worker process 1222 exited on signal 11" (req 0) 2020/10/27 05:31:36 [debug] 1180\#0: shmtx forced unlock
2020/10/27 05:31:36 [debug] 1180\#0: wake up, sigio 0
2020/10/27 05:31:36 [debug] 1180\#0: reap children
2020/10/27 05:31:36 [debug] 1180\#0: child: 0 1222 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:31:36 [debug] 1180\#0: channel 3:4
2020/10/27 05:31:36 [notice] 1180\#0: start worker process 1244
2020/10/27 05:31:36 [debug] 1180\#0: sigsuspend
2020/10/27 05:31:36 [debug] 1244\#0: malloc: 094786A0:12
2020/10/27 05:31:36 [debug] 1244\#0: malloc: 0947CFD8:8
'
138-balancer.t TEST 11: set_more_tries bugfix - status code ok got: ''
expected: '200'
138-balancer.t TEST 11: set_more_tries bugfix - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:31:36 [alert] 1180\#0: worker process 1244 exited on signal 11" (req 1) 2020/10/27 05:31:36 [debug] 1180\#0: shmtx forced unlock
2020/10/27 05:31:36 [debug] 1180\#0: wake up, sigio 0
2020/10/27 05:31:36 [debug] 1180\#0: reap children
2020/10/27 05:31:36 [debug] 1180\#0: child: 0 1244 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:31:36 [debug] 1180\#0: channel 3:4
2020/10/27 05:31:36 [notice] 1180\#0: start worker process 1245
2020/10/27 05:31:36 [debug] 1180\#0: sigsuspend
2020/10/27 05:31:36 [debug] 1245\#0: malloc: 094786A0:12
2020/10/27 05:31:36 [debug] 1245\#0: malloc: 0947CFD8:8
'
138-balancer.t TEST 9: ngx.log(ngx.ERR, ...) github \#816 - status code ok got: ''
expected: '200'
138-balancer.t TEST 9: ngx.log(ngx.ERR, ...) github \#816 - status code ok got: ''
expected: '200'
138-balancer.t TEST 4: ngx.var works - status code ok got: ''
expected: '200'
138-balancer.t TEST 4: ngx.var works - status code ok got: ''
expected: '200'
138-balancer.t TEST 1: simple logging - status code ok got: ''
expected: '200'
138-balancer.t TEST 1: simple logging - status code ok got: ''
expected: '200'
138-balancer.t TEST 6: cosockets are disabled - status code ok got: ''
expected: '200'
138-balancer.t TEST 6: cosockets are disabled - status code ok got: ''
expected: '200'
138-balancer.t TEST 8: get_phase - status code ok got: ''
expected: '200'
138-balancer.t TEST 8: get_phase - status code ok got: ''
expected: '200'
138-balancer.t TEST 10: test if execeed proxy_next_upstream_limit - status code ok got: ''
expected: '200'
138-balancer.t TEST 10: test if execeed proxy_next_upstream_limit - status code ok got: ''
expected: '200'
138-balancer.t TEST 3: exit OK - status code ok got: ''
expected: '200'
138-balancer.t TEST 3: exit OK - status code ok got: ''
expected: '200'
138-balancer.t TEST 7: ngx.sleep is disabled - status code ok got: ''
expected: '200'
138-balancer.t TEST 7: ngx.sleep is disabled - status code ok got: ''
expected: '200'
139-ssl-cert-by.t TEST 5: ngx.exit(0) - no yield - status code ok got: ''
expected: '200'
139-ssl-cert-by.t TEST 5: ngx.exit(0) - no yield - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-connected: 1
-ssl handshake: boolean
'
139-ssl-cert-by.t TEST 5: ngx.exit(0) - no yield - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:31:51 [alert] 1514\#0: worker process 1515 exited on signal 11" (req 0) 2020/10/27 05:31:51 [debug] 1514\#0: shmtx forced unlock
2020/10/27 05:31:51 [debug] 1514\#0: wake up, sigio 0
2020/10/27 05:31:51 [debug] 1514\#0: reap children
2020/10/27 05:31:51 [debug] 1514\#0: child: 0 1515 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:31:51 [debug] 1514\#0: channel 3:10
2020/10/27 05:31:51 [notice] 1514\#0: start worker process 1516
2020/10/27 05:31:51 [debug] 1514\#0: sigsuspend
2020/10/27 05:31:51 [debug] 1516\#0: malloc: 08627A50:12
2020/10/27 05:31:51 [debug] 1516\#0: malloc: 0862C250:8
'
139-ssl-cert-by.t TEST 5: ngx.exit(0) - no yield - status code ok got: ''
expected: '200'
139-ssl-cert-by.t TEST 5: ngx.exit(0) - no yield - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-connected: 1
-ssl handshake: boolean
'
139-ssl-cert-by.t TEST 5: ngx.exit(0) - no yield - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:31:51 [alert] 1514\#0: worker process 1516 exited on signal 11" (req 1) 2020/10/27 05:31:51 [debug] 1514\#0: shmtx forced unlock
2020/10/27 05:31:51 [debug] 1514\#0: wake up, sigio 0
2020/10/27 05:31:51 [debug] 1514\#0: reap children
2020/10/27 05:31:51 [debug] 1514\#0: child: 0 1516 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:31:51 [debug] 1514\#0: channel 3:10
2020/10/27 05:31:51 [notice] 1514\#0: start worker process 1517
2020/10/27 05:31:51 [debug] 1514\#0: sigsuspend
2020/10/27 05:31:51 [debug] 1517\#0: malloc: 08627A50:12
2020/10/27 05:31:51 [debug] 1517\#0: malloc: 0862C250:8
'
139-ssl-cert-by.t TEST 5: ngx.exit(0) - no yield - status code ok got: ''
expected: '200'
139-ssl-cert-by.t TEST 5: ngx.exit(0) - no yield - response_body - response is expected (repeated req 2, req 0) @@ -1,2 +0,0 @@
-connected: 1
-ssl handshake: boolean
'
139-ssl-cert-by.t TEST 5: ngx.exit(0) - no yield - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:31:51 [alert] 1514\#0: worker process 1517 exited on signal 11" (req 2) 2020/10/27 05:31:51 [debug] 1514\#0: shmtx forced unlock
2020/10/27 05:31:51 [debug] 1514\#0: wake up, sigio 0
2020/10/27 05:31:51 [debug] 1514\#0: reap children
2020/10/27 05:31:51 [debug] 1514\#0: child: 0 1517 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:31:51 [debug] 1514\#0: channel 3:10
2020/10/27 05:31:51 [notice] 1514\#0: start worker process 1518
2020/10/27 05:31:51 [debug] 1514\#0: sigsuspend
2020/10/27 05:31:51 [debug] 1518\#0: malloc: 08627A50:12
2020/10/27 05:31:51 [debug] 1518\#0: malloc: 0862C250:8
'
139-ssl-cert-by.t TEST 6: ngx.exit(ngx.ERROR) - no yield - status code ok got: ''
expected: '200'
139-ssl-cert-by.t TEST 6: ngx.exit(ngx.ERROR) - no yield - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-connected: 1
-failed to do SSL handshake: handshake failed
'
139-ssl-cert-by.t TEST 6: ngx.exit(ngx.ERROR) - no yield - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:31:53 [alert] 1514\#0: worker process 1525 exited on signal 11" (req 0) 2020/10/27 05:31:53 [debug] 1514\#0: shmtx forced unlock
2020/10/27 05:31:53 [debug] 1514\#0: wake up, sigio 0
2020/10/27 05:31:53 [debug] 1514\#0: reap children
2020/10/27 05:31:53 [debug] 1514\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:31:53 [debug] 1514\#0: child: 1 1525 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:31:53 [debug] 1514\#0: channel 3:4
2020/10/27 05:31:53 [notice] 1514\#0: start worker process 1547
2020/10/27 05:31:53 [debug] 1514\#0: sigsuspend
2020/10/27 05:31:53 [debug] 1547\#0: malloc: 08622FB0:12
'
139-ssl-cert-by.t TEST 6: ngx.exit(ngx.ERROR) - no yield - status code ok got: ''
expected: '200'
139-ssl-cert-by.t TEST 6: ngx.exit(ngx.ERROR) - no yield - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-connected: 1
-failed to do SSL handshake: handshake failed
'
139-ssl-cert-by.t TEST 6: ngx.exit(ngx.ERROR) - no yield - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:31:53 [alert] 1514\#0: worker process 1547 exited on signal 11" (req 1) 2020/10/27 05:31:53 [debug] 1514\#0: shmtx forced unlock
2020/10/27 05:31:53 [debug] 1514\#0: wake up, sigio 0
2020/10/27 05:31:53 [debug] 1514\#0: reap children
2020/10/27 05:31:53 [debug] 1514\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:31:53 [debug] 1514\#0: child: 1 1547 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:31:53 [debug] 1514\#0: channel 3:4
2020/10/27 05:31:53 [notice] 1514\#0: start worker process 1548
2020/10/27 05:31:53 [debug] 1514\#0: sigsuspend
2020/10/27 05:31:53 [debug] 1548\#0: malloc: 08622FB0:12
'
139-ssl-cert-by.t TEST 6: ngx.exit(ngx.ERROR) - no yield - status code ok got: ''
expected: '200'
139-ssl-cert-by.t TEST 6: ngx.exit(ngx.ERROR) - no yield - response_body - response is expected (repeated req 2, req 0) @@ -1,2 +0,0 @@
-connected: 1
-failed to do SSL handshake: handshake failed
'
139-ssl-cert-by.t TEST 6: ngx.exit(ngx.ERROR) - no yield - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:31:53 [alert] 1514\#0: worker process 1548 exited on signal 11" (req 2) 2020/10/27 05:31:53 [debug] 1514\#0: shmtx forced unlock
2020/10/27 05:31:53 [debug] 1514\#0: wake up, sigio 0
2020/10/27 05:31:53 [debug] 1514\#0: reap children
2020/10/27 05:31:53 [debug] 1514\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:31:53 [debug] 1514\#0: child: 1 1548 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:31:53 [debug] 1514\#0: channel 3:4
2020/10/27 05:31:53 [notice] 1514\#0: start worker process 1549
2020/10/27 05:31:53 [debug] 1514\#0: sigsuspend
2020/10/27 05:31:53 [debug] 1549\#0: malloc: 08622FB0:12
'
139-ssl-cert-by.t TEST 16: simple logging - use ssl_certificate_by_lua* on the http {} level - status code ok got: ''
expected: '200'
139-ssl-cert-by.t TEST 16: simple logging - use ssl_certificate_by_lua* on the http {} level - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-connected: 1
-ssl handshake: userdata
-received: it works!
-close: 1 nil
'
139-ssl-cert-by.t TEST 16: simple logging - use ssl_certificate_by_lua* on the http {} level - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:31:55 [alert] 1514\#0: worker process 1556 exited on signal 11" (req 0) 2020/10/27 05:31:55 [debug] 1514\#0: shmtx forced unlock
2020/10/27 05:31:55 [debug] 1514\#0: wake up, sigio 0
2020/10/27 05:31:55 [debug] 1514\#0: reap children
2020/10/27 05:31:55 [debug] 1514\#0: child: 0 1556 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:31:55 [debug] 1514\#0: channel 3:4
2020/10/27 05:31:55 [notice] 1514\#0: start worker process 1578
2020/10/27 05:31:55 [debug] 1514\#0: sigsuspend
2020/10/27 05:31:55 [debug] 1578\#0: malloc: 08627A50:12
2020/10/27 05:31:55 [debug] 1578\#0: malloc: 0862C250:8
'
139-ssl-cert-by.t TEST 16: simple logging - use ssl_certificate_by_lua* on the http {} level - status code ok got: ''
expected: '200'
139-ssl-cert-by.t TEST 16: simple logging - use ssl_certificate_by_lua* on the http {} level - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +0,0 @@
-connected: 1
-ssl handshake: userdata
-received: it works!
-close: 1 nil
'
139-ssl-cert-by.t TEST 16: simple logging - use ssl_certificate_by_lua* on the http {} level - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:31:55 [alert] 1514\#0: worker process 1578 exited on signal 11" (req 1) 2020/10/27 05:31:55 [debug] 1514\#0: shmtx forced unlock
2020/10/27 05:31:55 [debug] 1514\#0: wake up, sigio 0
2020/10/27 05:31:55 [debug] 1514\#0: reap children
2020/10/27 05:31:55 [debug] 1514\#0: child: 0 1578 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:31:55 [debug] 1514\#0: channel 3:4
2020/10/27 05:31:55 [notice] 1514\#0: start worker process 1579
2020/10/27 05:31:55 [debug] 1514\#0: sigsuspend
2020/10/27 05:31:55 [debug] 1579\#0: malloc: 08627A50:12
2020/10/27 05:31:55 [debug] 1579\#0: malloc: 0862C250:8
'
139-ssl-cert-by.t TEST 16: simple logging - use ssl_certificate_by_lua* on the http {} level - status code ok got: ''
expected: '200'
139-ssl-cert-by.t TEST 16: simple logging - use ssl_certificate_by_lua* on the http {} level - response_body - response is expected (repeated req 2, req 0) @@ -1,4 +0,0 @@
-connected: 1
-ssl handshake: userdata
-received: it works!
-close: 1 nil
'
139-ssl-cert-by.t TEST 16: simple logging - use ssl_certificate_by_lua* on the http {} level - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:31:55 [alert] 1514\#0: worker process 1579 exited on signal 11" (req 2) 2020/10/27 05:31:55 [debug] 1514\#0: shmtx forced unlock
2020/10/27 05:31:55 [debug] 1514\#0: wake up, sigio 0
2020/10/27 05:31:55 [debug] 1514\#0: reap children
2020/10/27 05:31:55 [debug] 1514\#0: child: 0 1579 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:31:55 [debug] 1514\#0: channel 3:4
2020/10/27 05:31:55 [notice] 1514\#0: start worker process 1580
2020/10/27 05:31:55 [debug] 1514\#0: sigsuspend
2020/10/27 05:31:55 [debug] 1580\#0: malloc: 08627A50:12
2020/10/27 05:31:55 [debug] 1580\#0: malloc: 0862C250:8
'
139-ssl-cert-by.t TEST 14: coroutine API - status code ok got: ''
expected: '200'
139-ssl-cert-by.t TEST 14: coroutine API - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-connected: 1
-ssl handshake: userdata
-received: it works!
-close: 1 nil
'
139-ssl-cert-by.t TEST 14: coroutine API - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:31:56 [alert] 1514\#0: worker process 1587 exited on signal 11" (req 0) 2020/10/27 05:31:56 [debug] 1514\#0: shmtx forced unlock
2020/10/27 05:31:56 [debug] 1514\#0: wake up, sigio 0
2020/10/27 05:31:56 [debug] 1514\#0: reap children
2020/10/27 05:31:56 [debug] 1514\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:31:56 [debug] 1514\#0: child: 1 1587 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:31:56 [debug] 1514\#0: channel 3:4
2020/10/27 05:31:56 [notice] 1514\#0: start worker process 1609
2020/10/27 05:31:56 [debug] 1514\#0: sigsuspend
2020/10/27 05:31:56 [debug] 1609\#0: malloc: 08622FB0:12
'
139-ssl-cert-by.t TEST 14: coroutine API - status code ok got: ''
expected: '200'
139-ssl-cert-by.t TEST 14: coroutine API - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +0,0 @@
-connected: 1
-ssl handshake: userdata
-received: it works!
-close: 1 nil
'
139-ssl-cert-by.t TEST 14: coroutine API - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:31:57 [alert] 1514\#0: worker process 1609 exited on signal 11" (req 1) 2020/10/27 05:31:57 [debug] 1514\#0: shmtx forced unlock
2020/10/27 05:31:57 [debug] 1514\#0: wake up, sigio 0
2020/10/27 05:31:57 [debug] 1514\#0: reap children
2020/10/27 05:31:57 [debug] 1514\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:31:57 [debug] 1514\#0: child: 1 1609 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:31:57 [debug] 1514\#0: channel 3:4
2020/10/27 05:31:57 [notice] 1514\#0: start worker process 1610
2020/10/27 05:31:57 [debug] 1514\#0: sigsuspend
2020/10/27 05:31:57 [debug] 1610\#0: malloc: 08622FB0:12
'
139-ssl-cert-by.t TEST 14: coroutine API - status code ok got: ''
expected: '200'
139-ssl-cert-by.t TEST 14: coroutine API - response_body - response is expected (repeated req 2, req 0) @@ -1,4 +0,0 @@
-connected: 1
-ssl handshake: userdata
-received: it works!
-close: 1 nil
'
139-ssl-cert-by.t TEST 14: coroutine API - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:31:57 [alert] 1514\#0: worker process 1610 exited on signal 11" (req 2) 2020/10/27 05:31:57 [debug] 1514\#0: shmtx forced unlock
2020/10/27 05:31:57 [debug] 1514\#0: wake up, sigio 0
2020/10/27 05:31:57 [debug] 1514\#0: reap children
2020/10/27 05:31:57 [debug] 1514\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:31:57 [debug] 1514\#0: child: 1 1610 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:31:57 [debug] 1514\#0: channel 3:4
2020/10/27 05:31:57 [notice] 1514\#0: start worker process 1611
2020/10/27 05:31:57 [debug] 1514\#0: sigsuspend
2020/10/27 05:31:57 [debug] 1611\#0: malloc: 08622FB0:12
'
139-ssl-cert-by.t TEST 10: lua exception - yield - status code ok got: ''
expected: '200'
139-ssl-cert-by.t TEST 10: lua exception - yield - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-connected: 1
-failed to do SSL handshake: handshake failed
'
139-ssl-cert-by.t TEST 10: lua exception - yield - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:31:58 [alert] 1514\#0: worker process 1618 exited on signal 11" (req 0) 2020/10/27 05:31:58 [debug] 1514\#0: shmtx forced unlock
2020/10/27 05:31:58 [debug] 1514\#0: wake up, sigio 0
2020/10/27 05:31:58 [debug] 1514\#0: reap children
2020/10/27 05:31:58 [debug] 1514\#0: child: 0 1618 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:31:58 [debug] 1514\#0: channel 3:4
2020/10/27 05:31:58 [notice] 1514\#0: start worker process 1640
2020/10/27 05:31:58 [debug] 1514\#0: sigsuspend
2020/10/27 05:31:58 [debug] 1640\#0: malloc: 08627A50:12
2020/10/27 05:31:58 [debug] 1640\#0: malloc: 0862C250:8
'
139-ssl-cert-by.t TEST 10: lua exception - yield - status code ok got: ''
expected: '200'
139-ssl-cert-by.t TEST 10: lua exception - yield - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-connected: 1
-failed to do SSL handshake: handshake failed
'
139-ssl-cert-by.t TEST 10: lua exception - yield - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:31:59 [alert] 1514\#0: worker process 1640 exited on signal 11" (req 1) 2020/10/27 05:31:59 [debug] 1514\#0: shmtx forced unlock
2020/10/27 05:31:59 [debug] 1514\#0: wake up, sigio 0
2020/10/27 05:31:59 [debug] 1514\#0: reap children
2020/10/27 05:31:59 [debug] 1514\#0: child: 0 1640 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:31:59 [debug] 1514\#0: channel 3:4
2020/10/27 05:31:59 [notice] 1514\#0: start worker process 1641
2020/10/27 05:31:59 [debug] 1514\#0: sigsuspend
2020/10/27 05:31:59 [debug] 1641\#0: malloc: 08627A50:12
2020/10/27 05:31:59 [debug] 1641\#0: malloc: 0862C250:8
'
139-ssl-cert-by.t TEST 10: lua exception - yield - status code ok got: ''
expected: '200'
139-ssl-cert-by.t TEST 10: lua exception - yield - response_body - response is expected (repeated req 2, req 0) @@ -1,2 +0,0 @@
-connected: 1
-failed to do SSL handshake: handshake failed
'
139-ssl-cert-by.t TEST 10: lua exception - yield - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:31:59 [alert] 1514\#0: worker process 1641 exited on signal 11" (req 2) 2020/10/27 05:31:59 [debug] 1514\#0: shmtx forced unlock
2020/10/27 05:31:59 [debug] 1514\#0: wake up, sigio 0
2020/10/27 05:31:59 [debug] 1514\#0: reap children
2020/10/27 05:31:59 [debug] 1514\#0: child: 0 1641 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:31:59 [debug] 1514\#0: channel 3:4
2020/10/27 05:31:59 [notice] 1514\#0: start worker process 1642
2020/10/27 05:31:59 [debug] 1514\#0: sigsuspend
2020/10/27 05:31:59 [debug] 1642\#0: malloc: 08627A50:12
2020/10/27 05:31:59 [debug] 1642\#0: malloc: 0862C250:8
'
139-ssl-cert-by.t TEST 18: check the count of running timers - status code ok got: ''
expected: '200'
139-ssl-cert-by.t TEST 18: check the count of running timers - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-connected: 1
-ssl handshake: userdata
-received: 3
-close: 1 nil
'
139-ssl-cert-by.t TEST 18: check the count of running timers - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:32:00 [alert] 1514\#0: worker process 1649 exited on signal 11" (req 0) 2020/10/27 05:32:00 [debug] 1514\#0: shmtx forced unlock
2020/10/27 05:32:00 [debug] 1514\#0: wake up, sigio 0
2020/10/27 05:32:00 [debug] 1514\#0: reap children
2020/10/27 05:32:00 [debug] 1514\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:32:00 [debug] 1514\#0: child: 1 1649 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:32:00 [debug] 1514\#0: channel 3:4
2020/10/27 05:32:00 [notice] 1514\#0: start worker process 1671
2020/10/27 05:32:00 [debug] 1514\#0: sigsuspend
2020/10/27 05:32:00 [debug] 1671\#0: malloc: 08622FB0:12
'
139-ssl-cert-by.t TEST 18: check the count of running timers - status code ok got: ''
expected: '200'
139-ssl-cert-by.t TEST 18: check the count of running timers - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +0,0 @@
-connected: 1
-ssl handshake: userdata
-received: 3
-close: 1 nil
'
139-ssl-cert-by.t TEST 18: check the count of running timers - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:32:00 [alert] 1514\#0: worker process 1671 exited on signal 11" (req 1) 2020/10/27 05:32:00 [debug] 1514\#0: shmtx forced unlock
2020/10/27 05:32:00 [debug] 1514\#0: wake up, sigio 0
2020/10/27 05:32:00 [debug] 1514\#0: reap children
2020/10/27 05:32:00 [debug] 1514\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:32:00 [debug] 1514\#0: child: 1 1671 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:32:00 [debug] 1514\#0: channel 3:4
2020/10/27 05:32:00 [notice] 1514\#0: start worker process 1672
2020/10/27 05:32:00 [debug] 1514\#0: sigsuspend
2020/10/27 05:32:00 [debug] 1672\#0: malloc: 08622FB0:12
'
139-ssl-cert-by.t TEST 18: check the count of running timers - status code ok got: ''
expected: '200'
139-ssl-cert-by.t TEST 18: check the count of running timers - response_body - response is expected (repeated req 2, req 0) @@ -1,4 +0,0 @@
-connected: 1
-ssl handshake: userdata
-received: 3
-close: 1 nil
'
139-ssl-cert-by.t TEST 18: check the count of running timers - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:32:01 [alert] 1514\#0: worker process 1672 exited on signal 11" (req 2) 2020/10/27 05:32:01 [debug] 1514\#0: shmtx forced unlock
2020/10/27 05:32:01 [debug] 1514\#0: wake up, sigio 0
2020/10/27 05:32:01 [debug] 1514\#0: reap children
2020/10/27 05:32:01 [debug] 1514\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:32:01 [debug] 1514\#0: child: 1 1672 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:32:01 [debug] 1514\#0: channel 3:4
2020/10/27 05:32:01 [notice] 1514\#0: start worker process 1673
2020/10/27 05:32:01 [debug] 1514\#0: sigsuspend
2020/10/27 05:32:01 [debug] 1673\#0: malloc: 08622FB0:12
'
139-ssl-cert-by.t TEST 9: lua exception - no yield - status code ok got: ''
expected: '200'
139-ssl-cert-by.t TEST 9: lua exception - no yield - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-connected: 1
-failed to do SSL handshake: handshake failed
'
139-ssl-cert-by.t TEST 9: lua exception - no yield - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:32:02 [alert] 1514\#0: worker process 1680 exited on signal 11" (req 0) 2020/10/27 05:32:02 [debug] 1514\#0: shmtx forced unlock
2020/10/27 05:32:02 [debug] 1514\#0: wake up, sigio 0
2020/10/27 05:32:02 [debug] 1514\#0: reap children
2020/10/27 05:32:02 [debug] 1514\#0: child: 0 1680 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:32:02 [debug] 1514\#0: channel 3:4
2020/10/27 05:32:02 [notice] 1514\#0: start worker process 1702
2020/10/27 05:32:02 [debug] 1514\#0: sigsuspend
2020/10/27 05:32:02 [debug] 1702\#0: malloc: 08627A50:12
2020/10/27 05:32:02 [debug] 1702\#0: malloc: 0862C250:8
'
139-ssl-cert-by.t TEST 9: lua exception - no yield - status code ok got: ''
expected: '200'
139-ssl-cert-by.t TEST 9: lua exception - no yield - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-connected: 1
-failed to do SSL handshake: handshake failed
'
139-ssl-cert-by.t TEST 9: lua exception - no yield - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:32:02 [alert] 1514\#0: worker process 1702 exited on signal 11" (req 1) 2020/10/27 05:32:02 [debug] 1514\#0: shmtx forced unlock
2020/10/27 05:32:02 [debug] 1514\#0: wake up, sigio 0
2020/10/27 05:32:02 [debug] 1514\#0: reap children
2020/10/27 05:32:02 [debug] 1514\#0: child: 0 1702 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:32:02 [debug] 1514\#0: channel 3:4
2020/10/27 05:32:02 [notice] 1514\#0: start worker process 1703
2020/10/27 05:32:02 [debug] 1514\#0: sigsuspend
2020/10/27 05:32:02 [debug] 1703\#0: malloc: 08627A50:12
2020/10/27 05:32:02 [debug] 1703\#0: malloc: 0862C250:8
'
139-ssl-cert-by.t TEST 9: lua exception - no yield - status code ok got: ''
expected: '200'
139-ssl-cert-by.t TEST 9: lua exception - no yield - response_body - response is expected (repeated req 2, req 0) @@ -1,2 +0,0 @@
-connected: 1
-failed to do SSL handshake: handshake failed
'
139-ssl-cert-by.t TEST 9: lua exception - no yield - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:32:03 [alert] 1514\#0: worker process 1703 exited on signal 11" (req 2) 2020/10/27 05:32:03 [debug] 1514\#0: shmtx forced unlock
2020/10/27 05:32:03 [debug] 1514\#0: wake up, sigio 0
2020/10/27 05:32:03 [debug] 1514\#0: reap children
2020/10/27 05:32:03 [debug] 1514\#0: child: 0 1703 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:32:03 [debug] 1514\#0: channel 3:4
2020/10/27 05:32:03 [notice] 1514\#0: start worker process 1704
2020/10/27 05:32:03 [debug] 1514\#0: sigsuspend
2020/10/27 05:32:03 [debug] 1704\#0: malloc: 08627A50:12
2020/10/27 05:32:03 [debug] 1704\#0: malloc: 0862C250:8
'
139-ssl-cert-by.t TEST 2: sleep - status code ok got: ''
expected: '200'
139-ssl-cert-by.t TEST 2: sleep - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-connected: 1
-ssl handshake: userdata
-received: it works!
-close: 1 nil
'
139-ssl-cert-by.t TEST 2: sleep - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:32:04 [alert] 1514\#0: worker process 1711 exited on signal 11" (req 0) 2020/10/27 05:32:04 [debug] 1514\#0: shmtx forced unlock
2020/10/27 05:32:04 [debug] 1514\#0: wake up, sigio 0
2020/10/27 05:32:04 [debug] 1514\#0: reap children
2020/10/27 05:32:04 [debug] 1514\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:32:04 [debug] 1514\#0: child: 1 1711 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:32:04 [debug] 1514\#0: channel 3:4
2020/10/27 05:32:04 [notice] 1514\#0: start worker process 1733
2020/10/27 05:32:04 [debug] 1514\#0: sigsuspend
2020/10/27 05:32:04 [debug] 1733\#0: malloc: 08622FB0:12
'
139-ssl-cert-by.t TEST 2: sleep - status code ok got: ''
expected: '200'
139-ssl-cert-by.t TEST 2: sleep - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +0,0 @@
-connected: 1
-ssl handshake: userdata
-received: it works!
-close: 1 nil
'
139-ssl-cert-by.t TEST 2: sleep - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:32:04 [alert] 1514\#0: worker process 1733 exited on signal 11" (req 1) 2020/10/27 05:32:04 [debug] 1514\#0: shmtx forced unlock
2020/10/27 05:32:04 [debug] 1514\#0: wake up, sigio 0
2020/10/27 05:32:04 [debug] 1514\#0: reap children
2020/10/27 05:32:04 [debug] 1514\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:32:04 [debug] 1514\#0: child: 1 1733 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:32:04 [debug] 1514\#0: channel 3:4
2020/10/27 05:32:04 [notice] 1514\#0: start worker process 1734
2020/10/27 05:32:04 [debug] 1514\#0: sigsuspend
2020/10/27 05:32:04 [debug] 1734\#0: malloc: 08622FB0:12
'
139-ssl-cert-by.t TEST 2: sleep - status code ok got: ''
expected: '200'
139-ssl-cert-by.t TEST 2: sleep - response_body - response is expected (repeated req 2, req 0) @@ -1,4 +0,0 @@
-connected: 1
-ssl handshake: userdata
-received: it works!
-close: 1 nil
'
139-ssl-cert-by.t TEST 2: sleep - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:32:05 [alert] 1514\#0: worker process 1734 exited on signal 11" (req 2) 2020/10/27 05:32:05 [debug] 1514\#0: shmtx forced unlock
2020/10/27 05:32:05 [debug] 1514\#0: wake up, sigio 0
2020/10/27 05:32:05 [debug] 1514\#0: reap children
2020/10/27 05:32:05 [debug] 1514\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:32:05 [debug] 1514\#0: child: 1 1734 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:32:05 [debug] 1514\#0: channel 3:4
2020/10/27 05:32:05 [notice] 1514\#0: start worker process 1735
2020/10/27 05:32:05 [debug] 1514\#0: sigsuspend
2020/10/27 05:32:05 [debug] 1735\#0: malloc: 08622FB0:12
'
139-ssl-cert-by.t TEST 20: get raw_client_addr - unix domain socket - status code ok got: ''
expected: '200'
139-ssl-cert-by.t TEST 20: get raw_client_addr - unix domain socket - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-connected: 1
-ssl handshake: userdata
-received: it works!
-close: 1 nil
'
139-ssl-cert-by.t TEST 20: get raw_client_addr - unix domain socket - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:32:06 [alert] 1514\#0: worker process 1742 exited on signal 11" (req 0) 2020/10/27 05:32:06 [debug] 1514\#0: shmtx forced unlock
2020/10/27 05:32:06 [debug] 1514\#0: wake up, sigio 0
2020/10/27 05:32:06 [debug] 1514\#0: reap children
2020/10/27 05:32:06 [debug] 1514\#0: child: 0 1742 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:32:06 [debug] 1514\#0: channel 3:4
2020/10/27 05:32:06 [notice] 1514\#0: start worker process 1764
2020/10/27 05:32:06 [debug] 1514\#0: sigsuspend
2020/10/27 05:32:06 [debug] 1764\#0: malloc: 08627A50:12
2020/10/27 05:32:06 [debug] 1764\#0: malloc: 0862C250:8
'
139-ssl-cert-by.t TEST 20: get raw_client_addr - unix domain socket - status code ok got: ''
expected: '200'
139-ssl-cert-by.t TEST 20: get raw_client_addr - unix domain socket - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +0,0 @@
-connected: 1
-ssl handshake: userdata
-received: it works!
-close: 1 nil
'
139-ssl-cert-by.t TEST 20: get raw_client_addr - unix domain socket - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:32:06 [alert] 1514\#0: worker process 1764 exited on signal 11" (req 1) 2020/10/27 05:32:06 [debug] 1514\#0: shmtx forced unlock
2020/10/27 05:32:06 [debug] 1514\#0: wake up, sigio 0
2020/10/27 05:32:06 [debug] 1514\#0: reap children
2020/10/27 05:32:06 [debug] 1514\#0: child: 0 1764 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:32:06 [debug] 1514\#0: channel 3:4
2020/10/27 05:32:06 [notice] 1514\#0: start worker process 1765
2020/10/27 05:32:06 [debug] 1514\#0: sigsuspend
2020/10/27 05:32:06 [debug] 1765\#0: malloc: 08627A50:12
2020/10/27 05:32:06 [debug] 1765\#0: malloc: 0862C250:8
'
139-ssl-cert-by.t TEST 20: get raw_client_addr - unix domain socket - status code ok got: ''
expected: '200'
139-ssl-cert-by.t TEST 20: get raw_client_addr - unix domain socket - response_body - response is expected (repeated req 2, req 0) @@ -1,4 +0,0 @@
-connected: 1
-ssl handshake: userdata
-received: it works!
-close: 1 nil
'
139-ssl-cert-by.t TEST 20: get raw_client_addr - unix domain socket - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:32:06 [alert] 1514\#0: worker process 1765 exited on signal 11" (req 2) 2020/10/27 05:32:06 [debug] 1514\#0: shmtx forced unlock
2020/10/27 05:32:06 [debug] 1514\#0: wake up, sigio 0
2020/10/27 05:32:06 [debug] 1514\#0: reap children
2020/10/27 05:32:06 [debug] 1514\#0: child: 0 1765 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:32:06 [debug] 1514\#0: channel 3:4
2020/10/27 05:32:06 [notice] 1514\#0: start worker process 1766
2020/10/27 05:32:06 [debug] 1514\#0: sigsuspend
2020/10/27 05:32:06 [debug] 1766\#0: malloc: 08627A50:12
2020/10/27 05:32:06 [debug] 1766\#0: malloc: 0862C250:8
'
139-ssl-cert-by.t TEST 7: ngx.exit(0) - yield - status code ok got: ''
expected: '200'
139-ssl-cert-by.t TEST 7: ngx.exit(0) - yield - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-connected: 1
-ssl handshake: boolean
'
139-ssl-cert-by.t TEST 7: ngx.exit(0) - yield - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:32:08 [alert] 1514\#0: worker process 1773 exited on signal 11" (req 0) 2020/10/27 05:32:08 [debug] 1514\#0: shmtx forced unlock
2020/10/27 05:32:08 [debug] 1514\#0: wake up, sigio 0
2020/10/27 05:32:08 [debug] 1514\#0: reap children
2020/10/27 05:32:08 [debug] 1514\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:32:08 [debug] 1514\#0: child: 1 1773 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:32:08 [debug] 1514\#0: channel 3:4
2020/10/27 05:32:08 [notice] 1514\#0: start worker process 1795
2020/10/27 05:32:08 [debug] 1514\#0: sigsuspend
2020/10/27 05:32:08 [debug] 1795\#0: malloc: 08622FB0:12
'
139-ssl-cert-by.t TEST 7: ngx.exit(0) - yield - status code ok got: ''
expected: '200'
139-ssl-cert-by.t TEST 7: ngx.exit(0) - yield - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-connected: 1
-ssl handshake: boolean
'
139-ssl-cert-by.t TEST 7: ngx.exit(0) - yield - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:32:08 [alert] 1514\#0: worker process 1795 exited on signal 11" (req 1) 2020/10/27 05:32:08 [debug] 1514\#0: shmtx forced unlock
2020/10/27 05:32:08 [debug] 1514\#0: wake up, sigio 0
2020/10/27 05:32:08 [debug] 1514\#0: reap children
2020/10/27 05:32:08 [debug] 1514\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:32:08 [debug] 1514\#0: child: 1 1795 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:32:08 [debug] 1514\#0: channel 3:4
2020/10/27 05:32:08 [notice] 1514\#0: start worker process 1796
2020/10/27 05:32:08 [debug] 1514\#0: sigsuspend
2020/10/27 05:32:08 [debug] 1796\#0: malloc: 08622FB0:12
'
139-ssl-cert-by.t TEST 7: ngx.exit(0) - yield - status code ok got: ''
expected: '200'
139-ssl-cert-by.t TEST 7: ngx.exit(0) - yield - response_body - response is expected (repeated req 2, req 0) @@ -1,2 +0,0 @@
-connected: 1
-ssl handshake: boolean
'
139-ssl-cert-by.t TEST 7: ngx.exit(0) - yield - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:32:08 [alert] 1514\#0: worker process 1796 exited on signal 11" (req 2) 2020/10/27 05:32:08 [debug] 1514\#0: shmtx forced unlock
2020/10/27 05:32:08 [debug] 1514\#0: wake up, sigio 0
2020/10/27 05:32:08 [debug] 1514\#0: reap children
2020/10/27 05:32:08 [debug] 1514\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:32:08 [debug] 1514\#0: child: 1 1796 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:32:08 [debug] 1514\#0: channel 3:4
2020/10/27 05:32:08 [notice] 1514\#0: start worker process 1797
2020/10/27 05:32:08 [debug] 1514\#0: sigsuspend
2020/10/27 05:32:08 [debug] 1797\#0: malloc: 08622FB0:12
'
139-ssl-cert-by.t TEST 3: timer - status code ok got: ''
expected: '200'
139-ssl-cert-by.t TEST 3: timer - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-connected: 1
-ssl handshake: userdata
-received: it works!
-close: 1 nil
'
139-ssl-cert-by.t TEST 3: timer - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:32:10 [alert] 1514\#0: worker process 1804 exited on signal 11" (req 0) 2020/10/27 05:32:10 [debug] 1514\#0: shmtx forced unlock
2020/10/27 05:32:10 [debug] 1514\#0: wake up, sigio 0
2020/10/27 05:32:10 [debug] 1514\#0: reap children
2020/10/27 05:32:10 [debug] 1514\#0: child: 0 1804 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:32:10 [debug] 1514\#0: channel 3:4
2020/10/27 05:32:10 [notice] 1514\#0: start worker process 1826
2020/10/27 05:32:10 [debug] 1514\#0: sigsuspend
2020/10/27 05:32:10 [debug] 1826\#0: malloc: 08627A50:12
2020/10/27 05:32:10 [debug] 1826\#0: malloc: 0862C250:8
'
139-ssl-cert-by.t TEST 3: timer - status code ok got: ''
expected: '200'
139-ssl-cert-by.t TEST 3: timer - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +0,0 @@
-connected: 1
-ssl handshake: userdata
-received: it works!
-close: 1 nil
'
139-ssl-cert-by.t TEST 3: timer - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:32:10 [alert] 1514\#0: worker process 1826 exited on signal 11" (req 1) 2020/10/27 05:32:10 [debug] 1514\#0: shmtx forced unlock
2020/10/27 05:32:10 [debug] 1514\#0: wake up, sigio 0
2020/10/27 05:32:10 [debug] 1514\#0: reap children
2020/10/27 05:32:10 [debug] 1514\#0: child: 0 1826 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:32:10 [debug] 1514\#0: channel 3:4
2020/10/27 05:32:10 [notice] 1514\#0: start worker process 1827
2020/10/27 05:32:10 [debug] 1514\#0: sigsuspend
2020/10/27 05:32:10 [debug] 1827\#0: malloc: 08627A50:12
2020/10/27 05:32:10 [debug] 1827\#0: malloc: 0862C250:8
'
139-ssl-cert-by.t TEST 3: timer - status code ok got: ''
expected: '200'
139-ssl-cert-by.t TEST 3: timer - response_body - response is expected (repeated req 2, req 0) @@ -1,4 +0,0 @@
-connected: 1
-ssl handshake: userdata
-received: it works!
-close: 1 nil
'
139-ssl-cert-by.t TEST 3: timer - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:32:10 [alert] 1514\#0: worker process 1827 exited on signal 11" (req 2) 2020/10/27 05:32:10 [debug] 1514\#0: shmtx forced unlock
2020/10/27 05:32:10 [debug] 1514\#0: wake up, sigio 0
2020/10/27 05:32:10 [debug] 1514\#0: reap children
2020/10/27 05:32:10 [debug] 1514\#0: child: 0 1827 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:32:10 [debug] 1514\#0: channel 3:4
2020/10/27 05:32:10 [notice] 1514\#0: start worker process 1828
2020/10/27 05:32:10 [debug] 1514\#0: sigsuspend
2020/10/27 05:32:10 [debug] 1828\#0: malloc: 08627A50:12
2020/10/27 05:32:10 [debug] 1828\#0: malloc: 0862C250:8
'
139-ssl-cert-by.t TEST 15: simple user thread wait with yielding - status code ok got: ''
expected: '200'
139-ssl-cert-by.t TEST 15: simple user thread wait with yielding - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-connected: 1
-ssl handshake: userdata
-received: it works!
-close: 1 nil
'
139-ssl-cert-by.t TEST 15: simple user thread wait with yielding - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:32:12 [alert] 1514\#0: worker process 1835 exited on signal 11" (req 0) 2020/10/27 05:32:12 [debug] 1514\#0: shmtx forced unlock
2020/10/27 05:32:12 [debug] 1514\#0: wake up, sigio 0
2020/10/27 05:32:12 [debug] 1514\#0: reap children
2020/10/27 05:32:12 [debug] 1514\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:32:12 [debug] 1514\#0: child: 1 1835 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:32:12 [debug] 1514\#0: channel 3:4
2020/10/27 05:32:12 [notice] 1514\#0: start worker process 1857
2020/10/27 05:32:12 [debug] 1514\#0: sigsuspend
2020/10/27 05:32:12 [debug] 1857\#0: malloc: 08622FB0:12
'
139-ssl-cert-by.t TEST 15: simple user thread wait with yielding - status code ok got: ''
expected: '200'
139-ssl-cert-by.t TEST 15: simple user thread wait with yielding - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +0,0 @@
-connected: 1
-ssl handshake: userdata
-received: it works!
-close: 1 nil
'
139-ssl-cert-by.t TEST 15: simple user thread wait with yielding - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:32:12 [alert] 1514\#0: worker process 1857 exited on signal 11" (req 1) 2020/10/27 05:32:12 [debug] 1514\#0: shmtx forced unlock
2020/10/27 05:32:12 [debug] 1514\#0: wake up, sigio 0
2020/10/27 05:32:12 [debug] 1514\#0: reap children
2020/10/27 05:32:12 [debug] 1514\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:32:12 [debug] 1514\#0: child: 1 1857 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:32:12 [debug] 1514\#0: channel 3:4
2020/10/27 05:32:12 [notice] 1514\#0: start worker process 1858
2020/10/27 05:32:12 [debug] 1514\#0: sigsuspend
2020/10/27 05:32:12 [debug] 1858\#0: malloc: 08622FB0:12
'
139-ssl-cert-by.t TEST 15: simple user thread wait with yielding - status code ok got: ''
expected: '200'
139-ssl-cert-by.t TEST 15: simple user thread wait with yielding - response_body - response is expected (repeated req 2, req 0) @@ -1,4 +0,0 @@
-connected: 1
-ssl handshake: userdata
-received: it works!
-close: 1 nil
'
139-ssl-cert-by.t TEST 15: simple user thread wait with yielding - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:32:12 [alert] 1514\#0: worker process 1858 exited on signal 11" (req 2) 2020/10/27 05:32:12 [debug] 1514\#0: shmtx forced unlock
2020/10/27 05:32:12 [debug] 1514\#0: wake up, sigio 0
2020/10/27 05:32:12 [debug] 1514\#0: reap children
2020/10/27 05:32:12 [debug] 1514\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:32:12 [debug] 1514\#0: child: 1 1858 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:32:12 [debug] 1514\#0: channel 3:4
2020/10/27 05:32:12 [notice] 1514\#0: start worker process 1859
2020/10/27 05:32:12 [debug] 1514\#0: sigsuspend
2020/10/27 05:32:12 [debug] 1859\#0: malloc: 08622FB0:12
'
139-ssl-cert-by.t TEST 8: ngx.exit(ngx.ERROR) - yield - status code ok got: ''
expected: '200'
139-ssl-cert-by.t TEST 8: ngx.exit(ngx.ERROR) - yield - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-connected: 1
-failed to do SSL handshake: handshake failed
'
139-ssl-cert-by.t TEST 8: ngx.exit(ngx.ERROR) - yield - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:32:14 [alert] 1514\#0: worker process 1866 exited on signal 11" (req 0) 2020/10/27 05:32:14 [debug] 1514\#0: shmtx forced unlock
2020/10/27 05:32:14 [debug] 1514\#0: wake up, sigio 0
2020/10/27 05:32:14 [debug] 1514\#0: reap children
2020/10/27 05:32:14 [debug] 1514\#0: child: 0 1866 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:32:14 [debug] 1514\#0: channel 3:4
2020/10/27 05:32:14 [notice] 1514\#0: start worker process 1888
2020/10/27 05:32:14 [debug] 1514\#0: sigsuspend
2020/10/27 05:32:14 [debug] 1888\#0: malloc: 08627A50:12
2020/10/27 05:32:14 [debug] 1888\#0: malloc: 0862C250:8
'
139-ssl-cert-by.t TEST 8: ngx.exit(ngx.ERROR) - yield - status code ok got: ''
expected: '200'
139-ssl-cert-by.t TEST 8: ngx.exit(ngx.ERROR) - yield - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-connected: 1
-failed to do SSL handshake: handshake failed
'
139-ssl-cert-by.t TEST 8: ngx.exit(ngx.ERROR) - yield - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:32:14 [alert] 1514\#0: worker process 1888 exited on signal 11" (req 1) 2020/10/27 05:32:14 [debug] 1514\#0: shmtx forced unlock
2020/10/27 05:32:14 [debug] 1514\#0: wake up, sigio 0
2020/10/27 05:32:14 [debug] 1514\#0: reap children
2020/10/27 05:32:14 [debug] 1514\#0: child: 0 1888 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:32:14 [debug] 1514\#0: channel 3:4
2020/10/27 05:32:14 [notice] 1514\#0: start worker process 1889
2020/10/27 05:32:14 [debug] 1514\#0: sigsuspend
2020/10/27 05:32:14 [debug] 1889\#0: malloc: 08627A50:12
2020/10/27 05:32:14 [debug] 1889\#0: malloc: 0862C250:8
'
139-ssl-cert-by.t TEST 8: ngx.exit(ngx.ERROR) - yield - status code ok got: ''
expected: '200'
139-ssl-cert-by.t TEST 8: ngx.exit(ngx.ERROR) - yield - response_body - response is expected (repeated req 2, req 0) @@ -1,2 +0,0 @@
-connected: 1
-failed to do SSL handshake: handshake failed
'
139-ssl-cert-by.t TEST 8: ngx.exit(ngx.ERROR) - yield - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:32:14 [alert] 1514\#0: worker process 1889 exited on signal 11" (req 2) 2020/10/27 05:32:14 [debug] 1514\#0: shmtx forced unlock
2020/10/27 05:32:14 [debug] 1514\#0: wake up, sigio 0
2020/10/27 05:32:14 [debug] 1514\#0: reap children
2020/10/27 05:32:14 [debug] 1514\#0: child: 0 1889 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:32:14 [debug] 1514\#0: channel 3:4
2020/10/27 05:32:14 [notice] 1514\#0: start worker process 1890
2020/10/27 05:32:14 [debug] 1514\#0: sigsuspend
2020/10/27 05:32:14 [debug] 1890\#0: malloc: 08627A50:12
2020/10/27 05:32:14 [debug] 1890\#0: malloc: 0862C250:8
'
139-ssl-cert-by.t TEST 11: get phase - status code ok got: ''
expected: '200'
139-ssl-cert-by.t TEST 11: get phase - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-connected: 1
-ssl handshake: userdata
'
139-ssl-cert-by.t TEST 11: get phase - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:32:16 [alert] 1514\#0: worker process 1897 exited on signal 11" (req 0) 2020/10/27 05:32:16 [debug] 1514\#0: shmtx forced unlock
2020/10/27 05:32:16 [debug] 1514\#0: wake up, sigio 0
2020/10/27 05:32:16 [debug] 1514\#0: reap children
2020/10/27 05:32:16 [debug] 1514\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:32:16 [debug] 1514\#0: child: 1 1897 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:32:16 [debug] 1514\#0: channel 3:4
2020/10/27 05:32:16 [notice] 1514\#0: start worker process 1919
2020/10/27 05:32:16 [debug] 1514\#0: sigsuspend
2020/10/27 05:32:16 [debug] 1919\#0: malloc: 08622FB0:12
'
139-ssl-cert-by.t TEST 11: get phase - status code ok got: ''
expected: '200'
139-ssl-cert-by.t TEST 11: get phase - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-connected: 1
-ssl handshake: userdata
'
139-ssl-cert-by.t TEST 11: get phase - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:32:16 [alert] 1514\#0: worker process 1919 exited on signal 11" (req 1) 2020/10/27 05:32:16 [debug] 1514\#0: shmtx forced unlock
2020/10/27 05:32:16 [debug] 1514\#0: wake up, sigio 0
2020/10/27 05:32:16 [debug] 1514\#0: reap children
2020/10/27 05:32:16 [debug] 1514\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:32:16 [debug] 1514\#0: child: 1 1919 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:32:16 [debug] 1514\#0: channel 3:4
2020/10/27 05:32:16 [notice] 1514\#0: start worker process 1920
2020/10/27 05:32:16 [debug] 1514\#0: sigsuspend
2020/10/27 05:32:16 [debug] 1920\#0: malloc: 08622FB0:12
'
139-ssl-cert-by.t TEST 11: get phase - status code ok got: ''
expected: '200'
139-ssl-cert-by.t TEST 11: get phase - response_body - response is expected (repeated req 2, req 0) @@ -1,2 +0,0 @@
-connected: 1
-ssl handshake: userdata
'
139-ssl-cert-by.t TEST 11: get phase - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:32:16 [alert] 1514\#0: worker process 1920 exited on signal 11" (req 2) 2020/10/27 05:32:16 [debug] 1514\#0: shmtx forced unlock
2020/10/27 05:32:16 [debug] 1514\#0: wake up, sigio 0
2020/10/27 05:32:16 [debug] 1514\#0: reap children
2020/10/27 05:32:16 [debug] 1514\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:32:16 [debug] 1514\#0: child: 1 1920 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:32:16 [debug] 1514\#0: channel 3:4
2020/10/27 05:32:16 [notice] 1514\#0: start worker process 1921
2020/10/27 05:32:16 [debug] 1514\#0: sigsuspend
2020/10/27 05:32:16 [debug] 1921\#0: malloc: 08622FB0:12
'
139-ssl-cert-by.t TEST 1: simple logging - status code ok got: ''
expected: '200'
139-ssl-cert-by.t TEST 1: simple logging - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-connected: 1
-ssl handshake: userdata
-received: it works!
-close: 1 nil
'
139-ssl-cert-by.t TEST 1: simple logging - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:32:18 [alert] 1514\#0: worker process 1928 exited on signal 11" (req 0) 2020/10/27 05:32:18 [debug] 1514\#0: shmtx forced unlock
2020/10/27 05:32:18 [debug] 1514\#0: wake up, sigio 0
2020/10/27 05:32:18 [debug] 1514\#0: reap children
2020/10/27 05:32:18 [debug] 1514\#0: child: 0 1928 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:32:18 [debug] 1514\#0: channel 3:4
2020/10/27 05:32:18 [notice] 1514\#0: start worker process 1950
2020/10/27 05:32:18 [debug] 1514\#0: sigsuspend
2020/10/27 05:32:18 [debug] 1950\#0: malloc: 08627A50:12
2020/10/27 05:32:18 [debug] 1950\#0: malloc: 0862C250:8
'
139-ssl-cert-by.t TEST 1: simple logging - status code ok got: ''
expected: '200'
139-ssl-cert-by.t TEST 1: simple logging - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +0,0 @@
-connected: 1
-ssl handshake: userdata
-received: it works!
-close: 1 nil
'
139-ssl-cert-by.t TEST 1: simple logging - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:32:18 [alert] 1514\#0: worker process 1950 exited on signal 11" (req 1) 2020/10/27 05:32:18 [debug] 1514\#0: shmtx forced unlock
2020/10/27 05:32:18 [debug] 1514\#0: wake up, sigio 0
2020/10/27 05:32:18 [debug] 1514\#0: reap children
2020/10/27 05:32:18 [debug] 1514\#0: child: 0 1950 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:32:18 [debug] 1514\#0: channel 3:4
2020/10/27 05:32:18 [notice] 1514\#0: start worker process 1951
2020/10/27 05:32:18 [debug] 1514\#0: sigsuspend
2020/10/27 05:32:18 [debug] 1951\#0: malloc: 08627A50:12
2020/10/27 05:32:18 [debug] 1951\#0: malloc: 0862C250:8
'
139-ssl-cert-by.t TEST 1: simple logging - status code ok got: ''
expected: '200'
139-ssl-cert-by.t TEST 1: simple logging - response_body - response is expected (repeated req 2, req 0) @@ -1,4 +0,0 @@
-connected: 1
-ssl handshake: userdata
-received: it works!
-close: 1 nil
'
139-ssl-cert-by.t TEST 1: simple logging - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:32:18 [alert] 1514\#0: worker process 1951 exited on signal 11" (req 2) 2020/10/27 05:32:18 [debug] 1514\#0: shmtx forced unlock
2020/10/27 05:32:18 [debug] 1514\#0: wake up, sigio 0
2020/10/27 05:32:18 [debug] 1514\#0: reap children
2020/10/27 05:32:18 [debug] 1514\#0: child: 0 1951 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:32:18 [debug] 1514\#0: channel 3:4
2020/10/27 05:32:18 [notice] 1514\#0: start worker process 1952
2020/10/27 05:32:18 [debug] 1514\#0: sigsuspend
2020/10/27 05:32:18 [debug] 1952\#0: malloc: 08627A50:12
2020/10/27 05:32:18 [debug] 1952\#0: malloc: 0862C250:8
'
139-ssl-cert-by.t TEST 13: simple logging (by_lua_file) - status code ok got: ''
expected: '200'
139-ssl-cert-by.t TEST 13: simple logging (by_lua_file) - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-connected: 1
-ssl handshake: userdata
-received: it works!
-close: 1 nil
'
139-ssl-cert-by.t TEST 13: simple logging (by_lua_file) - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:32:20 [alert] 1514\#0: worker process 1959 exited on signal 11" (req 0) 2020/10/27 05:32:20 [debug] 1514\#0: shmtx forced unlock
2020/10/27 05:32:20 [debug] 1514\#0: wake up, sigio 0
2020/10/27 05:32:20 [debug] 1514\#0: reap children
2020/10/27 05:32:20 [debug] 1514\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:32:20 [debug] 1514\#0: child: 1 1959 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:32:20 [debug] 1514\#0: channel 3:4
2020/10/27 05:32:20 [notice] 1514\#0: start worker process 1981
2020/10/27 05:32:20 [debug] 1514\#0: sigsuspend
2020/10/27 05:32:20 [debug] 1981\#0: malloc: 08622FB0:12
'
139-ssl-cert-by.t TEST 13: simple logging (by_lua_file) - status code ok got: ''
expected: '200'
139-ssl-cert-by.t TEST 13: simple logging (by_lua_file) - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +0,0 @@
-connected: 1
-ssl handshake: userdata
-received: it works!
-close: 1 nil
'
139-ssl-cert-by.t TEST 13: simple logging (by_lua_file) - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:32:20 [alert] 1514\#0: worker process 1981 exited on signal 11" (req 1) 2020/10/27 05:32:20 [debug] 1514\#0: shmtx forced unlock
2020/10/27 05:32:20 [debug] 1514\#0: wake up, sigio 0
2020/10/27 05:32:20 [debug] 1514\#0: reap children
2020/10/27 05:32:20 [debug] 1514\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:32:20 [debug] 1514\#0: child: 1 1981 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:32:20 [debug] 1514\#0: channel 3:4
2020/10/27 05:32:20 [notice] 1514\#0: start worker process 1982
2020/10/27 05:32:20 [debug] 1514\#0: sigsuspend
2020/10/27 05:32:20 [debug] 1982\#0: malloc: 08622FB0:12
'
139-ssl-cert-by.t TEST 13: simple logging (by_lua_file) - status code ok got: ''
expected: '200'
139-ssl-cert-by.t TEST 13: simple logging (by_lua_file) - response_body - response is expected (repeated req 2, req 0) @@ -1,4 +0,0 @@
-connected: 1
-ssl handshake: userdata
-received: it works!
-close: 1 nil
'
139-ssl-cert-by.t TEST 13: simple logging (by_lua_file) - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:32:20 [alert] 1514\#0: worker process 1982 exited on signal 11" (req 2) 2020/10/27 05:32:20 [debug] 1514\#0: shmtx forced unlock
2020/10/27 05:32:20 [debug] 1514\#0: wake up, sigio 0
2020/10/27 05:32:20 [debug] 1514\#0: reap children
2020/10/27 05:32:20 [debug] 1514\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:32:20 [debug] 1514\#0: child: 1 1982 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:32:20 [debug] 1514\#0: channel 3:4
2020/10/27 05:32:20 [notice] 1514\#0: start worker process 1983
2020/10/27 05:32:20 [debug] 1514\#0: sigsuspend
2020/10/27 05:32:20 [debug] 1983\#0: malloc: 08622FB0:12
'
139-ssl-cert-by.t TEST 19: get raw_client_addr - IPv4 - status code ok got: ''
expected: '200'
139-ssl-cert-by.t TEST 19: get raw_client_addr - IPv4 - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-connected: 1
-ssl handshake: userdata
-received: it works!
-close: 1 nil
'
139-ssl-cert-by.t TEST 19: get raw_client_addr - IPv4 - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:32:22 [alert] 1514\#0: worker process 1991 exited on signal 11" (req 0) 2020/10/27 05:32:22 [debug] 1514\#0: shmtx forced unlock
2020/10/27 05:32:22 [debug] 1514\#0: wake up, sigio 0
2020/10/27 05:32:22 [debug] 1514\#0: reap children
2020/10/27 05:32:22 [debug] 1514\#0: child: 0 1991 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:32:22 [debug] 1514\#0: channel 3:4
2020/10/27 05:32:22 [notice] 1514\#0: start worker process 2013
2020/10/27 05:32:22 [debug] 1514\#0: sigsuspend
2020/10/27 05:32:22 [debug] 2013\#0: malloc: 08627A50:12
2020/10/27 05:32:22 [debug] 2013\#0: malloc: 0862C250:8
'
139-ssl-cert-by.t TEST 19: get raw_client_addr - IPv4 - status code ok got: ''
expected: '200'
139-ssl-cert-by.t TEST 19: get raw_client_addr - IPv4 - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +0,0 @@
-connected: 1
-ssl handshake: userdata
-received: it works!
-close: 1 nil
'
139-ssl-cert-by.t TEST 19: get raw_client_addr - IPv4 - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:32:22 [alert] 1514\#0: worker process 2013 exited on signal 11" (req 1) 2020/10/27 05:32:22 [debug] 1514\#0: shmtx forced unlock
2020/10/27 05:32:22 [debug] 1514\#0: wake up, sigio 0
2020/10/27 05:32:22 [debug] 1514\#0: reap children
2020/10/27 05:32:22 [debug] 1514\#0: child: 0 2013 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:32:22 [debug] 1514\#0: channel 3:4
2020/10/27 05:32:22 [notice] 1514\#0: start worker process 2014
2020/10/27 05:32:22 [debug] 1514\#0: sigsuspend
2020/10/27 05:32:22 [debug] 2014\#0: malloc: 08627A50:12
2020/10/27 05:32:22 [debug] 2014\#0: malloc: 0862C250:8
'
139-ssl-cert-by.t TEST 19: get raw_client_addr - IPv4 - status code ok got: ''
expected: '200'
139-ssl-cert-by.t TEST 19: get raw_client_addr - IPv4 - response_body - response is expected (repeated req 2, req 0) @@ -1,4 +0,0 @@
-connected: 1
-ssl handshake: userdata
-received: it works!
-close: 1 nil
'
139-ssl-cert-by.t TEST 19: get raw_client_addr - IPv4 - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:32:22 [alert] 1514\#0: worker process 2014 exited on signal 11" (req 2) 2020/10/27 05:32:22 [debug] 1514\#0: shmtx forced unlock
2020/10/27 05:32:22 [debug] 1514\#0: wake up, sigio 0
2020/10/27 05:32:22 [debug] 1514\#0: reap children
2020/10/27 05:32:22 [debug] 1514\#0: child: 0 2014 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:32:22 [debug] 1514\#0: channel 3:4
2020/10/27 05:32:22 [notice] 1514\#0: start worker process 2015
2020/10/27 05:32:22 [debug] 1514\#0: sigsuspend
2020/10/27 05:32:22 [debug] 2015\#0: malloc: 08627A50:12
2020/10/27 05:32:22 [debug] 2015\#0: malloc: 0862C250:8
'
139-ssl-cert-by.t TEST 4: cosocket - status code ok got: ''
expected: '200'
139-ssl-cert-by.t TEST 4: cosocket - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-connected: 1
-ssl handshake: userdata
-received: it works!
-close: 1 nil
'
139-ssl-cert-by.t TEST 4: cosocket - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:32:23 [alert] 1514\#0: worker process 2022 exited on signal 11" (req 0) 2020/10/27 05:32:23 [debug] 1514\#0: shmtx forced unlock
2020/10/27 05:32:23 [debug] 1514\#0: wake up, sigio 0
2020/10/27 05:32:23 [debug] 1514\#0: reap children
2020/10/27 05:32:23 [debug] 1514\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:32:23 [debug] 1514\#0: child: 1 2022 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:32:23 [debug] 1514\#0: channel 3:4
2020/10/27 05:32:23 [notice] 1514\#0: start worker process 2044
2020/10/27 05:32:23 [debug] 1514\#0: sigsuspend
2020/10/27 05:32:23 [debug] 2044\#0: malloc: 08622FB0:12
'
139-ssl-cert-by.t TEST 4: cosocket - status code ok got: ''
expected: '200'
139-ssl-cert-by.t TEST 4: cosocket - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +0,0 @@
-connected: 1
-ssl handshake: userdata
-received: it works!
-close: 1 nil
'
139-ssl-cert-by.t TEST 4: cosocket - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:32:24 [alert] 1514\#0: worker process 2044 exited on signal 11" (req 1) 2020/10/27 05:32:24 [debug] 1514\#0: shmtx forced unlock
2020/10/27 05:32:24 [debug] 1514\#0: wake up, sigio 0
2020/10/27 05:32:24 [debug] 1514\#0: reap children
2020/10/27 05:32:24 [debug] 1514\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:32:24 [debug] 1514\#0: child: 1 2044 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:32:24 [debug] 1514\#0: channel 3:4
2020/10/27 05:32:24 [notice] 1514\#0: start worker process 2045
2020/10/27 05:32:24 [debug] 1514\#0: sigsuspend
2020/10/27 05:32:24 [debug] 2045\#0: malloc: 08622FB0:12
'
139-ssl-cert-by.t TEST 4: cosocket - status code ok got: ''
expected: '200'
139-ssl-cert-by.t TEST 4: cosocket - response_body - response is expected (repeated req 2, req 0) @@ -1,4 +0,0 @@
-connected: 1
-ssl handshake: userdata
-received: it works!
-close: 1 nil
'
139-ssl-cert-by.t TEST 4: cosocket - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:32:24 [alert] 1514\#0: worker process 2045 exited on signal 11" (req 2) 2020/10/27 05:32:24 [debug] 1514\#0: shmtx forced unlock
2020/10/27 05:32:24 [debug] 1514\#0: wake up, sigio 0
2020/10/27 05:32:24 [debug] 1514\#0: reap children
2020/10/27 05:32:24 [debug] 1514\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:32:24 [debug] 1514\#0: child: 1 2045 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:32:24 [debug] 1514\#0: channel 3:4
2020/10/27 05:32:24 [notice] 1514\#0: start worker process 2046
2020/10/27 05:32:24 [debug] 1514\#0: sigsuspend
2020/10/27 05:32:24 [debug] 2046\#0: malloc: 08622FB0:12
'
139-ssl-cert-by.t TEST 17: simple logging (syslog) - status code ok got: ''
expected: '200'
139-ssl-cert-by.t TEST 17: simple logging (syslog) - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-connected: 1
-ssl handshake: userdata
-received: it works!
-close: 1 nil
'
139-ssl-cert-by.t TEST 17: simple logging (syslog) - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:32:25 [alert] 1514\#0: worker process 2053 exited on signal 11" (req 0) 2020/10/27 05:32:25 [debug] 1514\#0: shmtx forced unlock
2020/10/27 05:32:25 [debug] 1514\#0: wake up, sigio 0
2020/10/27 05:32:25 [debug] 1514\#0: reap children
2020/10/27 05:32:25 [debug] 1514\#0: child: 0 2053 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:32:25 [debug] 1514\#0: channel 3:4
2020/10/27 05:32:25 [notice] 1514\#0: start worker process 2075
2020/10/27 05:32:25 [debug] 1514\#0: sigsuspend
2020/10/27 05:32:25 [debug] 2075\#0: malloc: 08627A50:12
2020/10/27 05:32:25 [debug] 2075\#0: malloc: 0862C250:8
'
139-ssl-cert-by.t TEST 17: simple logging (syslog) - status code ok got: ''
expected: '200'
139-ssl-cert-by.t TEST 17: simple logging (syslog) - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +0,0 @@
-connected: 1
-ssl handshake: userdata
-received: it works!
-close: 1 nil
'
139-ssl-cert-by.t TEST 17: simple logging (syslog) - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:32:26 [alert] 1514\#0: worker process 2075 exited on signal 11" (req 1) 2020/10/27 05:32:26 [debug] 1514\#0: shmtx forced unlock
2020/10/27 05:32:26 [debug] 1514\#0: wake up, sigio 0
2020/10/27 05:32:26 [debug] 1514\#0: reap children
2020/10/27 05:32:26 [debug] 1514\#0: child: 0 2075 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:32:26 [debug] 1514\#0: channel 3:4
2020/10/27 05:32:26 [notice] 1514\#0: start worker process 2076
2020/10/27 05:32:26 [debug] 1514\#0: sigsuspend
2020/10/27 05:32:26 [debug] 2076\#0: malloc: 08627A50:12
2020/10/27 05:32:26 [debug] 2076\#0: malloc: 0862C250:8
'
139-ssl-cert-by.t TEST 17: simple logging (syslog) - status code ok got: ''
expected: '200'
139-ssl-cert-by.t TEST 17: simple logging (syslog) - response_body - response is expected (repeated req 2, req 0) @@ -1,4 +0,0 @@
-connected: 1
-ssl handshake: userdata
-received: it works!
-close: 1 nil
'
139-ssl-cert-by.t TEST 17: simple logging (syslog) - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:32:26 [alert] 1514\#0: worker process 2076 exited on signal 11" (req 2) 2020/10/27 05:32:26 [debug] 1514\#0: shmtx forced unlock
2020/10/27 05:32:26 [debug] 1514\#0: wake up, sigio 0
2020/10/27 05:32:26 [debug] 1514\#0: reap children
2020/10/27 05:32:26 [debug] 1514\#0: child: 0 2076 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:32:26 [debug] 1514\#0: channel 3:4
2020/10/27 05:32:26 [notice] 1514\#0: start worker process 2077
2020/10/27 05:32:26 [debug] 1514\#0: sigsuspend
2020/10/27 05:32:26 [debug] 2077\#0: malloc: 08627A50:12
2020/10/27 05:32:26 [debug] 2077\#0: malloc: 0862C250:8
'
139-ssl-cert-by.t TEST 12: connection aborted prematurely - status code ok got: ''
expected: '200'
139-ssl-cert-by.t TEST 12: connection aborted prematurely - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-connected: 1
-failed to do SSL handshake: timeout
'
139-ssl-cert-by.t TEST 12: connection aborted prematurely - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:32:27 [alert] 1514\#0: worker process 2084 exited on signal 11" (req 0) 2020/10/27 05:32:27 [debug] 1514\#0: shmtx forced unlock
2020/10/27 05:32:27 [debug] 1514\#0: wake up, sigio 0
2020/10/27 05:32:27 [debug] 1514\#0: reap children
2020/10/27 05:32:27 [debug] 1514\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:32:27 [debug] 1514\#0: child: 1 2084 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:32:27 [debug] 1514\#0: channel 3:4
2020/10/27 05:32:27 [notice] 1514\#0: start worker process 2106
2020/10/27 05:32:27 [debug] 1514\#0: sigsuspend
2020/10/27 05:32:27 [debug] 2106\#0: malloc: 08622FB0:12
'
139-ssl-cert-by.t TEST 12: connection aborted prematurely - status code ok got: ''
expected: '200'
139-ssl-cert-by.t TEST 12: connection aborted prematurely - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-connected: 1
-failed to do SSL handshake: timeout
'
139-ssl-cert-by.t TEST 12: connection aborted prematurely - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:32:28 [alert] 1514\#0: worker process 2106 exited on signal 11" (req 1) 2020/10/27 05:32:28 [debug] 1514\#0: shmtx forced unlock
2020/10/27 05:32:28 [debug] 1514\#0: wake up, sigio 0
2020/10/27 05:32:28 [debug] 1514\#0: reap children
2020/10/27 05:32:28 [debug] 1514\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:32:28 [debug] 1514\#0: child: 1 2106 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:32:28 [debug] 1514\#0: channel 3:4
2020/10/27 05:32:28 [notice] 1514\#0: start worker process 2107
2020/10/27 05:32:28 [debug] 1514\#0: sigsuspend
2020/10/27 05:32:28 [debug] 2107\#0: malloc: 08622FB0:12
'
139-ssl-cert-by.t TEST 12: connection aborted prematurely - status code ok got: ''
expected: '200'
139-ssl-cert-by.t TEST 12: connection aborted prematurely - response_body - response is expected (repeated req 2, req 0) @@ -1,2 +0,0 @@
-connected: 1
-failed to do SSL handshake: timeout
'
139-ssl-cert-by.t TEST 12: connection aborted prematurely - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:32:29 [alert] 1514\#0: worker process 2107 exited on signal 11" (req 2) 2020/10/27 05:32:29 [debug] 1514\#0: shmtx forced unlock
2020/10/27 05:32:29 [debug] 1514\#0: wake up, sigio 0
2020/10/27 05:32:29 [debug] 1514\#0: reap children
2020/10/27 05:32:29 [debug] 1514\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:32:29 [debug] 1514\#0: child: 1 2107 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:32:29 [debug] 1514\#0: channel 3:4
2020/10/27 05:32:29 [notice] 1514\#0: start worker process 2108
2020/10/27 05:32:29 [debug] 1514\#0: sigsuspend
2020/10/27 05:32:29 [debug] 2108\#0: malloc: 08622FB0:12
'
140-ssl-c-api.t TEST 8: verify client but client provides no certificate - status code ok got: ''
expected: '200'
140-ssl-c-api.t TEST 8: verify client but client provides no certificate - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'NONE
'
140-ssl-c-api.t TEST 8: verify client but client provides no certificate - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:32:30 [alert] 2118\#0: worker process 2119 exited on signal 11" (req 0) 2020/10/27 05:32:30 [debug] 2118\#0: shmtx forced unlock
2020/10/27 05:32:30 [debug] 2118\#0: wake up, sigio 0
2020/10/27 05:32:30 [debug] 2118\#0: reap children
2020/10/27 05:32:30 [debug] 2118\#0: child: 0 2119 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:32:30 [debug] 2118\#0: channel 3:10
2020/10/27 05:32:30 [notice] 2118\#0: start worker process 2120
2020/10/27 05:32:30 [debug] 2118\#0: sigsuspend
2020/10/27 05:32:30 [debug] 2120\#0: malloc: 09E8BD00:12
2020/10/27 05:32:30 [debug] 2120\#0: malloc: 09E906E8:8
'
140-ssl-c-api.t TEST 8: verify client but client provides no certificate - status code ok got: ''
expected: '200'
140-ssl-c-api.t TEST 8: verify client but client provides no certificate - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'NONE
'
140-ssl-c-api.t TEST 8: verify client but client provides no certificate - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:32:30 [alert] 2118\#0: worker process 2120 exited on signal 11" (req 1) 2020/10/27 05:32:30 [debug] 2118\#0: shmtx forced unlock
2020/10/27 05:32:30 [debug] 2118\#0: wake up, sigio 0
2020/10/27 05:32:30 [debug] 2118\#0: reap children
2020/10/27 05:32:30 [debug] 2118\#0: child: 0 2120 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:32:30 [debug] 2118\#0: channel 3:10
2020/10/27 05:32:30 [notice] 2118\#0: start worker process 2121
2020/10/27 05:32:30 [debug] 2118\#0: sigsuspend
2020/10/27 05:32:30 [debug] 2121\#0: malloc: 09E8BD00:12
2020/10/27 05:32:30 [debug] 2121\#0: malloc: 09E906E8:8
'
140-ssl-c-api.t TEST 8: verify client but client provides no certificate - status code ok got: ''
expected: '200'
140-ssl-c-api.t TEST 8: verify client but client provides no certificate - response_body - response is expected (repeated req 2, req 0) got: ''
expected: 'NONE
'
140-ssl-c-api.t TEST 8: verify client but client provides no certificate - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:32:30 [alert] 2118\#0: worker process 2121 exited on signal 11" (req 2) 2020/10/27 05:32:30 [debug] 2118\#0: shmtx forced unlock
2020/10/27 05:32:30 [debug] 2118\#0: wake up, sigio 0
2020/10/27 05:32:30 [debug] 2118\#0: reap children
2020/10/27 05:32:30 [debug] 2118\#0: child: 0 2121 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:32:30 [debug] 2118\#0: channel 3:10
2020/10/27 05:32:30 [notice] 2118\#0: start worker process 2122
2020/10/27 05:32:30 [debug] 2118\#0: sigsuspend
2020/10/27 05:32:30 [debug] 2122\#0: malloc: 09E8BD00:12
2020/10/27 05:32:30 [debug] 2122\#0: malloc: 09E906E8:8
'
140-ssl-c-api.t TEST 7: verify client without CA certificates - status code ok got: ''
expected: '200'
140-ssl-c-api.t TEST 7: verify client without CA certificates - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'FAILED:self signed certificate
'
140-ssl-c-api.t TEST 7: verify client without CA certificates - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:32:32 [alert] 2118\#0: worker process 2130 exited on signal 11" (req 0) 2020/10/27 05:32:32 [debug] 2118\#0: shmtx forced unlock
2020/10/27 05:32:32 [debug] 2118\#0: wake up, sigio 0
2020/10/27 05:32:32 [debug] 2118\#0: reap children
2020/10/27 05:32:32 [debug] 2118\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:32:32 [debug] 2118\#0: child: 1 2130 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:32:32 [debug] 2118\#0: channel 3:4
2020/10/27 05:32:32 [notice] 2118\#0: start worker process 2152
2020/10/27 05:32:32 [debug] 2118\#0: sigsuspend
2020/10/27 05:32:32 [debug] 2152\#0: malloc: 09E86FB0:12
'
140-ssl-c-api.t TEST 7: verify client without CA certificates - status code ok got: ''
expected: '200'
140-ssl-c-api.t TEST 7: verify client without CA certificates - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'FAILED:self signed certificate
'
140-ssl-c-api.t TEST 7: verify client without CA certificates - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:32:32 [alert] 2118\#0: worker process 2152 exited on signal 11" (req 1) 2020/10/27 05:32:32 [debug] 2118\#0: shmtx forced unlock
2020/10/27 05:32:32 [debug] 2118\#0: wake up, sigio 0
2020/10/27 05:32:32 [debug] 2118\#0: reap children
2020/10/27 05:32:32 [debug] 2118\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:32:32 [debug] 2118\#0: child: 1 2152 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:32:32 [debug] 2118\#0: channel 3:4
2020/10/27 05:32:32 [notice] 2118\#0: start worker process 2153
2020/10/27 05:32:32 [debug] 2118\#0: sigsuspend
2020/10/27 05:32:32 [debug] 2153\#0: malloc: 09E86FB0:12
'
140-ssl-c-api.t TEST 7: verify client without CA certificates - status code ok got: ''
expected: '200'
140-ssl-c-api.t TEST 7: verify client without CA certificates - response_body - response is expected (repeated req 2, req 0) got: ''
expected: 'FAILED:self signed certificate
'
140-ssl-c-api.t TEST 7: verify client without CA certificates - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:32:32 [alert] 2118\#0: worker process 2153 exited on signal 11" (req 2) 2020/10/27 05:32:32 [debug] 2118\#0: shmtx forced unlock
2020/10/27 05:32:32 [debug] 2118\#0: wake up, sigio 0
2020/10/27 05:32:32 [debug] 2118\#0: reap children
2020/10/27 05:32:32 [debug] 2118\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:32:32 [debug] 2118\#0: child: 1 2153 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:32:32 [debug] 2118\#0: channel 3:4
2020/10/27 05:32:32 [notice] 2118\#0: start worker process 2159
2020/10/27 05:32:32 [debug] 2118\#0: sigsuspend
2020/10/27 05:32:32 [debug] 2159\#0: malloc: 09E86FB0:12
'
140-ssl-c-api.t TEST 6: verify client with CA certificates - status code ok got: ''
expected: '200'
140-ssl-c-api.t TEST 6: verify client with CA certificates - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'SUCCESS
'
140-ssl-c-api.t TEST 6: verify client with CA certificates - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:32:34 [alert] 2118\#0: worker process 2167 exited on signal 11" (req 0) 2020/10/27 05:32:34 [debug] 2118\#0: shmtx forced unlock
2020/10/27 05:32:34 [debug] 2118\#0: wake up, sigio 0
2020/10/27 05:32:34 [debug] 2118\#0: reap children
2020/10/27 05:32:34 [debug] 2118\#0: child: 0 2167 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:32:34 [debug] 2118\#0: channel 3:4
2020/10/27 05:32:34 [notice] 2118\#0: start worker process 2189
2020/10/27 05:32:34 [debug] 2118\#0: sigsuspend
2020/10/27 05:32:34 [debug] 2189\#0: malloc: 09E8BD00:12
2020/10/27 05:32:34 [debug] 2189\#0: malloc: 09E906E8:8
'
140-ssl-c-api.t TEST 6: verify client with CA certificates - status code ok got: ''
expected: '200'
140-ssl-c-api.t TEST 6: verify client with CA certificates - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'SUCCESS
'
140-ssl-c-api.t TEST 6: verify client with CA certificates - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:32:34 [alert] 2118\#0: worker process 2189 exited on signal 11" (req 1) 2020/10/27 05:32:34 [debug] 2118\#0: shmtx forced unlock
2020/10/27 05:32:34 [debug] 2118\#0: wake up, sigio 0
2020/10/27 05:32:34 [debug] 2118\#0: reap children
2020/10/27 05:32:34 [debug] 2118\#0: child: 0 2189 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:32:34 [debug] 2118\#0: channel 3:4
2020/10/27 05:32:34 [notice] 2118\#0: start worker process 2190
2020/10/27 05:32:34 [debug] 2118\#0: sigsuspend
2020/10/27 05:32:34 [debug] 2190\#0: malloc: 09E8BD00:12
2020/10/27 05:32:34 [debug] 2190\#0: malloc: 09E906E8:8
'
140-ssl-c-api.t TEST 6: verify client with CA certificates - status code ok got: ''
expected: '200'
140-ssl-c-api.t TEST 6: verify client with CA certificates - response_body - response is expected (repeated req 2, req 0) got: ''
expected: 'SUCCESS
'
140-ssl-c-api.t TEST 6: verify client with CA certificates - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:32:34 [alert] 2118\#0: worker process 2190 exited on signal 11" (req 2) 2020/10/27 05:32:34 [debug] 2118\#0: shmtx forced unlock
2020/10/27 05:32:34 [debug] 2118\#0: wake up, sigio 0
2020/10/27 05:32:34 [debug] 2118\#0: reap children
2020/10/27 05:32:34 [debug] 2118\#0: child: 0 2190 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:32:34 [debug] 2118\#0: channel 3:4
2020/10/27 05:32:34 [notice] 2118\#0: start worker process 2191
2020/10/27 05:32:34 [debug] 2118\#0: sigsuspend
2020/10/27 05:32:34 [debug] 2191\#0: malloc: 09E8BD00:12
2020/10/27 05:32:34 [debug] 2191\#0: malloc: 09E906E8:8
'
140-ssl-c-api.t TEST 3: Handshake continue when cert_pem_to_der errors - status code ok got: ''
expected: '200'
140-ssl-c-api.t TEST 3: Handshake continue when cert_pem_to_der errors - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-connected: 1
-ssl handshake: userdata
-received: it works!
-close: 1 nil
'
140-ssl-c-api.t TEST 3: Handshake continue when cert_pem_to_der errors - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:32:36 [alert] 2118\#0: worker process 2199 exited on signal 11" (req 0) 2020/10/27 05:32:36 [debug] 2118\#0: shmtx forced unlock
2020/10/27 05:32:36 [debug] 2118\#0: wake up, sigio 0
2020/10/27 05:32:36 [debug] 2118\#0: reap children
2020/10/27 05:32:36 [debug] 2118\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:32:36 [debug] 2118\#0: child: 1 2199 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:32:36 [debug] 2118\#0: channel 3:4
2020/10/27 05:32:36 [notice] 2118\#0: start worker process 2221
2020/10/27 05:32:36 [debug] 2118\#0: sigsuspend
2020/10/27 05:32:36 [debug] 2221\#0: malloc: 09E86FB0:12
'
140-ssl-c-api.t TEST 3: Handshake continue when cert_pem_to_der errors - status code ok got: ''
expected: '200'
140-ssl-c-api.t TEST 3: Handshake continue when cert_pem_to_der errors - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +0,0 @@
-connected: 1
-ssl handshake: userdata
-received: it works!
-close: 1 nil
'
140-ssl-c-api.t TEST 3: Handshake continue when cert_pem_to_der errors - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:32:36 [alert] 2118\#0: worker process 2221 exited on signal 11" (req 1) 2020/10/27 05:32:36 [debug] 2118\#0: shmtx forced unlock
2020/10/27 05:32:36 [debug] 2118\#0: wake up, sigio 0
2020/10/27 05:32:36 [debug] 2118\#0: reap children
2020/10/27 05:32:36 [debug] 2118\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:32:36 [debug] 2118\#0: child: 1 2221 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:32:36 [debug] 2118\#0: channel 3:4
2020/10/27 05:32:36 [notice] 2118\#0: start worker process 2222
2020/10/27 05:32:36 [debug] 2118\#0: sigsuspend
2020/10/27 05:32:36 [debug] 2222\#0: malloc: 09E86FB0:12
'
140-ssl-c-api.t TEST 3: Handshake continue when cert_pem_to_der errors - status code ok got: ''
expected: '200'
140-ssl-c-api.t TEST 3: Handshake continue when cert_pem_to_der errors - response_body - response is expected (repeated req 2, req 0) @@ -1,4 +0,0 @@
-connected: 1
-ssl handshake: userdata
-received: it works!
-close: 1 nil
'
140-ssl-c-api.t TEST 3: Handshake continue when cert_pem_to_der errors - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:32:36 [alert] 2118\#0: worker process 2222 exited on signal 11" (req 2) 2020/10/27 05:32:36 [debug] 2118\#0: shmtx forced unlock
2020/10/27 05:32:36 [debug] 2118\#0: wake up, sigio 0
2020/10/27 05:32:36 [debug] 2118\#0: reap children
2020/10/27 05:32:36 [debug] 2118\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:32:36 [debug] 2118\#0: child: 1 2222 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:32:36 [debug] 2118\#0: channel 3:4
2020/10/27 05:32:36 [notice] 2118\#0: start worker process 2223
2020/10/27 05:32:36 [debug] 2118\#0: sigsuspend
2020/10/27 05:32:36 [debug] 2223\#0: malloc: 09E86FB0:12
'
140-ssl-c-api.t TEST 1: simple cert + private key - status code ok got: ''
expected: '200'
140-ssl-c-api.t TEST 1: simple cert + private key - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-connected: 1
-ssl handshake: userdata
-received: it works!
-close: 1 nil
'
140-ssl-c-api.t TEST 1: simple cert + private key - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:32:38 [alert] 2118\#0: worker process 2231 exited on signal 11" (req 0) 2020/10/27 05:32:38 [debug] 2118\#0: shmtx forced unlock
2020/10/27 05:32:38 [debug] 2118\#0: wake up, sigio 0
2020/10/27 05:32:38 [debug] 2118\#0: reap children
2020/10/27 05:32:38 [debug] 2118\#0: child: 0 2231 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:32:38 [debug] 2118\#0: channel 3:4
2020/10/27 05:32:38 [notice] 2118\#0: start worker process 2253
2020/10/27 05:32:38 [debug] 2118\#0: sigsuspend
2020/10/27 05:32:38 [debug] 2253\#0: malloc: 09E8BD00:12
2020/10/27 05:32:38 [debug] 2253\#0: malloc: 09E906E8:8
'
140-ssl-c-api.t TEST 1: simple cert + private key - status code ok got: ''
expected: '200'
140-ssl-c-api.t TEST 1: simple cert + private key - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +0,0 @@
-connected: 1
-ssl handshake: userdata
-received: it works!
-close: 1 nil
'
140-ssl-c-api.t TEST 1: simple cert + private key - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:32:38 [alert] 2118\#0: worker process 2253 exited on signal 11" (req 1) 2020/10/27 05:32:38 [debug] 2118\#0: shmtx forced unlock
2020/10/27 05:32:38 [debug] 2118\#0: wake up, sigio 0
2020/10/27 05:32:38 [debug] 2118\#0: reap children
2020/10/27 05:32:38 [debug] 2118\#0: child: 0 2253 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:32:38 [debug] 2118\#0: channel 3:4
2020/10/27 05:32:38 [notice] 2118\#0: start worker process 2254
2020/10/27 05:32:38 [debug] 2118\#0: sigsuspend
2020/10/27 05:32:38 [debug] 2254\#0: malloc: 09E8BD00:12
2020/10/27 05:32:38 [debug] 2254\#0: malloc: 09E906E8:8
'
140-ssl-c-api.t TEST 1: simple cert + private key - status code ok got: ''
expected: '200'
140-ssl-c-api.t TEST 1: simple cert + private key - response_body - response is expected (repeated req 2, req 0) @@ -1,4 +0,0 @@
-connected: 1
-ssl handshake: userdata
-received: it works!
-close: 1 nil
'
140-ssl-c-api.t TEST 1: simple cert + private key - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:32:38 [alert] 2118\#0: worker process 2254 exited on signal 11" (req 2) 2020/10/27 05:32:38 [debug] 2118\#0: shmtx forced unlock
2020/10/27 05:32:38 [debug] 2118\#0: wake up, sigio 0
2020/10/27 05:32:38 [debug] 2118\#0: reap children
2020/10/27 05:32:38 [debug] 2118\#0: child: 0 2254 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:32:38 [debug] 2118\#0: channel 3:4
2020/10/27 05:32:38 [notice] 2118\#0: start worker process 2255
2020/10/27 05:32:38 [debug] 2118\#0: sigsuspend
2020/10/27 05:32:38 [debug] 2255\#0: malloc: 09E8BD00:12
2020/10/27 05:32:38 [debug] 2255\#0: malloc: 09E906E8:8
'
140-ssl-c-api.t TEST 2: ECDSA cert + private key - status code ok got: ''
expected: '200'
140-ssl-c-api.t TEST 2: ECDSA cert + private key - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-connected: 1
-ssl handshake: userdata
-received: it works!
-close: 1 nil
'
140-ssl-c-api.t TEST 2: ECDSA cert + private key - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:32:40 [alert] 2118\#0: worker process 2263 exited on signal 11" (req 0) 2020/10/27 05:32:40 [debug] 2118\#0: shmtx forced unlock
2020/10/27 05:32:40 [debug] 2118\#0: wake up, sigio 0
2020/10/27 05:32:40 [debug] 2118\#0: reap children
2020/10/27 05:32:40 [debug] 2118\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:32:40 [debug] 2118\#0: child: 1 2263 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:32:40 [debug] 2118\#0: channel 3:4
2020/10/27 05:32:40 [notice] 2118\#0: start worker process 2285
2020/10/27 05:32:40 [debug] 2118\#0: sigsuspend
2020/10/27 05:32:40 [debug] 2285\#0: malloc: 09E86FB0:12
'
140-ssl-c-api.t TEST 2: ECDSA cert + private key - status code ok got: ''
expected: '200'
140-ssl-c-api.t TEST 2: ECDSA cert + private key - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +0,0 @@
-connected: 1
-ssl handshake: userdata
-received: it works!
-close: 1 nil
'
140-ssl-c-api.t TEST 2: ECDSA cert + private key - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:32:40 [alert] 2118\#0: worker process 2285 exited on signal 11" (req 1) 2020/10/27 05:32:40 [debug] 2118\#0: shmtx forced unlock
2020/10/27 05:32:40 [debug] 2118\#0: wake up, sigio 0
2020/10/27 05:32:40 [debug] 2118\#0: reap children
2020/10/27 05:32:40 [debug] 2118\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:32:40 [debug] 2118\#0: child: 1 2285 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:32:40 [debug] 2118\#0: channel 3:4
2020/10/27 05:32:40 [notice] 2118\#0: start worker process 2286
2020/10/27 05:32:40 [debug] 2118\#0: sigsuspend
2020/10/27 05:32:40 [debug] 2286\#0: malloc: 09E86FB0:12
'
140-ssl-c-api.t TEST 2: ECDSA cert + private key - status code ok got: ''
expected: '200'
140-ssl-c-api.t TEST 2: ECDSA cert + private key - response_body - response is expected (repeated req 2, req 0) @@ -1,4 +0,0 @@
-connected: 1
-ssl handshake: userdata
-received: it works!
-close: 1 nil
'
140-ssl-c-api.t TEST 2: ECDSA cert + private key - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:32:40 [alert] 2118\#0: worker process 2286 exited on signal 11" (req 2) 2020/10/27 05:32:40 [debug] 2118\#0: shmtx forced unlock
2020/10/27 05:32:40 [debug] 2118\#0: wake up, sigio 0
2020/10/27 05:32:40 [debug] 2118\#0: reap children
2020/10/27 05:32:40 [debug] 2118\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:32:40 [debug] 2118\#0: child: 1 2286 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:32:40 [debug] 2118\#0: channel 3:4
2020/10/27 05:32:40 [notice] 2118\#0: start worker process 2287
2020/10/27 05:32:40 [debug] 2118\#0: sigsuspend
2020/10/27 05:32:40 [debug] 2287\#0: malloc: 09E86FB0:12
'
140-ssl-c-api.t TEST 4: simple cert + private key cdata - status code ok got: ''
expected: '200'
140-ssl-c-api.t TEST 4: simple cert + private key cdata - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-connected: 1
-ssl handshake: userdata
-received: it works!
-close: 1 nil
'
140-ssl-c-api.t TEST 4: simple cert + private key cdata - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:32:42 [alert] 2118\#0: worker process 2295 exited on signal 11" (req 0) 2020/10/27 05:32:42 [debug] 2118\#0: shmtx forced unlock
2020/10/27 05:32:42 [debug] 2118\#0: wake up, sigio 0
2020/10/27 05:32:42 [debug] 2118\#0: reap children
2020/10/27 05:32:42 [debug] 2118\#0: child: 0 2295 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:32:42 [debug] 2118\#0: channel 3:4
2020/10/27 05:32:42 [notice] 2118\#0: start worker process 2317
2020/10/27 05:32:42 [debug] 2118\#0: sigsuspend
2020/10/27 05:32:42 [debug] 2317\#0: malloc: 09E8BD00:12
2020/10/27 05:32:42 [debug] 2317\#0: malloc: 09E906E8:8
'
140-ssl-c-api.t TEST 4: simple cert + private key cdata - status code ok got: ''
expected: '200'
140-ssl-c-api.t TEST 4: simple cert + private key cdata - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +0,0 @@
-connected: 1
-ssl handshake: userdata
-received: it works!
-close: 1 nil
'
140-ssl-c-api.t TEST 4: simple cert + private key cdata - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:32:42 [alert] 2118\#0: worker process 2317 exited on signal 11" (req 1) 2020/10/27 05:32:42 [debug] 2118\#0: shmtx forced unlock
2020/10/27 05:32:42 [debug] 2118\#0: wake up, sigio 0
2020/10/27 05:32:42 [debug] 2118\#0: reap children
2020/10/27 05:32:42 [debug] 2118\#0: child: 0 2317 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:32:42 [debug] 2118\#0: channel 3:4
2020/10/27 05:32:42 [notice] 2118\#0: start worker process 2318
2020/10/27 05:32:42 [debug] 2118\#0: sigsuspend
2020/10/27 05:32:42 [debug] 2318\#0: malloc: 09E8BD00:12
2020/10/27 05:32:42 [debug] 2318\#0: malloc: 09E906E8:8
'
140-ssl-c-api.t TEST 4: simple cert + private key cdata - status code ok got: ''
expected: '200'
140-ssl-c-api.t TEST 4: simple cert + private key cdata - response_body - response is expected (repeated req 2, req 0) @@ -1,4 +0,0 @@
-connected: 1
-ssl handshake: userdata
-received: it works!
-close: 1 nil
'
140-ssl-c-api.t TEST 4: simple cert + private key cdata - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:32:42 [alert] 2118\#0: worker process 2318 exited on signal 11" (req 2) 2020/10/27 05:32:42 [debug] 2118\#0: shmtx forced unlock
2020/10/27 05:32:42 [debug] 2118\#0: wake up, sigio 0
2020/10/27 05:32:42 [debug] 2118\#0: reap children
2020/10/27 05:32:42 [debug] 2118\#0: child: 0 2318 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:32:42 [debug] 2118\#0: channel 3:4
2020/10/27 05:32:42 [notice] 2118\#0: start worker process 2319
2020/10/27 05:32:42 [debug] 2118\#0: sigsuspend
2020/10/27 05:32:42 [debug] 2319\#0: malloc: 09E8BD00:12
2020/10/27 05:32:42 [debug] 2319\#0: malloc: 09E906E8:8
'
140-ssl-c-api.t TEST 5: ECDSA cert + private key cdata - status code ok got: ''
expected: '200'
140-ssl-c-api.t TEST 5: ECDSA cert + private key cdata - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-connected: 1
-ssl handshake: userdata
-received: it works!
-close: 1 nil
'
140-ssl-c-api.t TEST 5: ECDSA cert + private key cdata - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:32:44 [alert] 2118\#0: worker process 2327 exited on signal 11" (req 0) 2020/10/27 05:32:44 [debug] 2118\#0: shmtx forced unlock
2020/10/27 05:32:44 [debug] 2118\#0: wake up, sigio 0
2020/10/27 05:32:44 [debug] 2118\#0: reap children
2020/10/27 05:32:44 [debug] 2118\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:32:44 [debug] 2118\#0: child: 1 2327 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:32:44 [debug] 2118\#0: channel 3:4
2020/10/27 05:32:44 [notice] 2118\#0: start worker process 2349
2020/10/27 05:32:44 [debug] 2118\#0: sigsuspend
2020/10/27 05:32:44 [debug] 2349\#0: malloc: 09E86FB0:12
'
140-ssl-c-api.t TEST 5: ECDSA cert + private key cdata - status code ok got: ''
expected: '200'
140-ssl-c-api.t TEST 5: ECDSA cert + private key cdata - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +0,0 @@
-connected: 1
-ssl handshake: userdata
-received: it works!
-close: 1 nil
'
140-ssl-c-api.t TEST 5: ECDSA cert + private key cdata - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:32:44 [alert] 2118\#0: worker process 2349 exited on signal 11" (req 1) 2020/10/27 05:32:44 [debug] 2118\#0: shmtx forced unlock
2020/10/27 05:32:44 [debug] 2118\#0: wake up, sigio 0
2020/10/27 05:32:44 [debug] 2118\#0: reap children
2020/10/27 05:32:44 [debug] 2118\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:32:44 [debug] 2118\#0: child: 1 2349 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:32:44 [debug] 2118\#0: channel 3:4
2020/10/27 05:32:44 [notice] 2118\#0: start worker process 2350
2020/10/27 05:32:44 [debug] 2118\#0: sigsuspend
2020/10/27 05:32:44 [debug] 2350\#0: malloc: 09E86FB0:12
'
140-ssl-c-api.t TEST 5: ECDSA cert + private key cdata - status code ok got: ''
expected: '200'
140-ssl-c-api.t TEST 5: ECDSA cert + private key cdata - response_body - response is expected (repeated req 2, req 0) @@ -1,4 +0,0 @@
-connected: 1
-ssl handshake: userdata
-received: it works!
-close: 1 nil
'
140-ssl-c-api.t TEST 5: ECDSA cert + private key cdata - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:32:44 [alert] 2118\#0: worker process 2350 exited on signal 11" (req 2) 2020/10/27 05:32:44 [debug] 2118\#0: shmtx forced unlock
2020/10/27 05:32:44 [debug] 2118\#0: wake up, sigio 0
2020/10/27 05:32:44 [debug] 2118\#0: reap children
2020/10/27 05:32:44 [debug] 2118\#0: child: 0 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:32:44 [debug] 2118\#0: child: 1 2350 e:0 t:1 d:0 r:1 j:0
2020/10/27 05:32:44 [debug] 2118\#0: channel 3:4
2020/10/27 05:32:44 [notice] 2118\#0: start worker process 2351
2020/10/27 05:32:44 [debug] 2118\#0: sigsuspend
2020/10/27 05:32:44 [debug] 2351\#0: malloc: 09E86FB0:12
'
141-add-variable.t TEST 4: accessible in log phase - status code ok got: ''
expected: '200'
141-add-variable.t TEST 4: accessible in log phase - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'bar
'
141-add-variable.t TEST 4: accessible in log phase - status code ok got: ''
expected: '200'
141-add-variable.t TEST 4: accessible in log phase - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'bar
'
141-add-variable.t TEST 3: multiple add with same name works - status code ok got: ''
expected: '200'
141-add-variable.t TEST 3: multiple add with same name works - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'bar
'
141-add-variable.t TEST 3: multiple add with same name works - status code ok got: ''
expected: '200'
141-add-variable.t TEST 3: multiple add with same name works - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'bar
'
141-add-variable.t TEST 2: works with C code - status code ok got: ''
expected: '200'
141-add-variable.t TEST 2: works with C code - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'bar
'
141-add-variable.t TEST 2: works with C code - status code ok got: ''
expected: '200'
141-add-variable.t TEST 2: works with C code - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'bar
'
141-add-variable.t TEST 1: sanity - status code ok got: ''
expected: '200'
141-add-variable.t TEST 1: sanity - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-nil
-bar
'
141-add-variable.t TEST 1: sanity - status code ok got: ''
expected: '200'
141-add-variable.t TEST 1: sanity - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-nil
-bar
'
156-slow-network.t TEST 1: receiveany returns anything once socket receives - status code ok got: ''
expected: '200'
156-slow-network.t TEST 1: receiveany returns anything once socket receives - response_body - response is expected (repeated req 0, req 0) @@ -1,6 +0,0 @@
-1
-h
-e
-l
-l
-o
'
156-slow-network.t TEST 1: receiveany returns anything once socket receives - grep_error_log_out (req 0) @@ -1,7 +1 @@
lua tcp socket read any
-lua tcp socket read any
-lua tcp socket read any
-lua tcp socket read any
-lua tcp socket read any
-lua tcp socket read any
-lua tcp socket read any
'
156-slow-network.t TEST 1: receiveany returns anything once socket receives - status code ok got: ''
expected: '200'
156-slow-network.t TEST 1: receiveany returns anything once socket receives - response_body - response is expected (repeated req 1, req 0) @@ -1,6 +0,0 @@
-1
-h
-e
-l
-l
-o
'
156-slow-network.t TEST 1: receiveany returns anything once socket receives - grep_error_log_out (req 1) @@ -1,7 +1 @@
lua tcp socket read any
-lua tcp socket read any
-lua tcp socket read any
-lua tcp socket read any
-lua tcp socket read any
-lua tcp socket read any
-lua tcp socket read any
'
157-socket-keepalive-hup.t TEST 1: exiting - status code ok got: ''
expected: '200'
157-socket-keepalive-hup.t TEST 1: exiting - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'registered timer
'
157-socket-keepalive-hup.t TEST 1: exiting - pattern "timer prematurely expired: true" should match a line in error.log (req 0)
157-socket-keepalive-hup.t TEST 1: exiting - pattern "setkeepalive successfully" should match a line in error.log (req 0)
157-socket-keepalive-hup.t TEST 1: exiting - pattern "lua tcp socket set keepalive while process exiting, closing connection" should match a line in error.log (req 0)
157-socket-keepalive-hup.t TEST 1: exiting - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:33:00 [alert] 2598\#0: worker process 2599 exited on signal 11" (req 0) 2020/10/27 05:33:00 [debug] 2598\#0: shmtx forced unlock
2020/10/27 05:33:00 [debug] 2598\#0: wake up, sigio 0
2020/10/27 05:33:00 [debug] 2598\#0: reap children
2020/10/27 05:33:00 [debug] 2598\#0: child: 0 2599 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:33:00 [debug] 2598\#0: pass close channel s:0 pid:2599 to:2601
2020/10/27 05:33:00 [debug] 2598\#0: child: 1 2601 e:0 t:0 d:0 r:1 j:0
2020/10/27 05:33:00 [debug] 2598\#0: sigsuspend
2020/10/27 05:33:00 [notice] 2598\#0: signal 29 (SIGIO) received
2020/10/27 05:33:00 [debug] 2598\#0: wake up, sigio 0
'
157-socket-keepalive-hup.t TEST 1: exiting - status code ok got: ''
expected: '200'
157-socket-keepalive-hup.t TEST 1: exiting - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'registered timer
'
157-socket-keepalive-hup.t TEST 1: exiting - pattern "timer prematurely expired: true" should match a line in error.log (req 1)
157-socket-keepalive-hup.t TEST 1: exiting - pattern "setkeepalive successfully" should match a line in error.log (req 1)
157-socket-keepalive-hup.t TEST 1: exiting - pattern "lua tcp socket set keepalive while process exiting, closing connection" should match a line in error.log (req 1)
157-socket-keepalive-hup.t TEST 1: exiting - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 05:33:00 [alert] 2598\#0: worker process 2601 exited on signal 11" (req 1) 2020/10/27 05:33:00 [debug] 2598\#0: shmtx forced unlock
2020/10/27 05:33:00 [debug] 2598\#0: wake up, sigio 0
2020/10/27 05:33:00 [debug] 2598\#0: reap children
2020/10/27 05:33:00 [debug] 2598\#0: child: 0 2603 e:0 t:0 d:0 r:1 j:0
2020/10/27 05:33:00 [debug] 2598\#0: child: 1 2601 e:1 t:1 d:0 r:1 j:0
2020/10/27 05:33:00 [debug] 2598\#0: pass close channel s:1 pid:2601 to:2603
2020/10/27 05:33:00 [debug] 2598\#0: sigsuspend
2020/10/27 05:33:00 [notice] 2598\#0: signal 29 (SIGIO) received
2020/10/27 05:33:00 [debug] 2603\#0: epoll: fd:11 ev:0001 d:08EA42B4
'
158-global-var.t TEST 8: balancer_by_lua - status code ok got: ''
expected: '200'
158-global-var.t TEST 8: balancer_by_lua - status code ok got: ''
expected: '200'
158-global-var.t TEST 8: balancer_by_lua - grep_error_log_out (req 1) got: 'writing a global Lua variable ('foo')
'
expected: 'old foo: 1
'
158-global-var.t TEST 10: don't show warn messages in init/init_worker - status code ok got: ''
expected: '200'
158-global-var.t TEST 10: don't show warn messages in init/init_worker - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-1
-2
'
158-global-var.t TEST 10: don't show warn messages in init/init_worker - status code ok got: ''
expected: '200'
158-global-var.t TEST 10: don't show warn messages in init/init_worker - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-1
-2
'
158-global-var.t TEST 3: preread_by_lua - status code ok got: ''
expected: '200'
158-global-var.t TEST 3: preread_by_lua - response_body_like - response is expected () ''
doesn't match '(?^s:\A[12]\n\z)'
158-global-var.t TEST 3: preread_by_lua - status code ok got: ''
expected: '200'
158-global-var.t TEST 3: preread_by_lua - response_body_like - response is expected () ''
doesn't match '(?^s:\A[12]\n\z)'
158-global-var.t TEST 3: preread_by_lua - grep_error_log_out (req 1) got: '[warn] 2674#0: *67 stream [lua] _G write guard:12: __newindex(): writing a global Lua variable ('foo')
preread_by_lua(nginx.conf:29):3: in main chunk
'
expected: 'old foo: 1
'
158-global-var.t TEST 1: init_by_lua - status code ok got: ''
expected: '200'
158-global-var.t TEST 1: init_by_lua - response_body_like - response is expected () ''
doesn't match '(?^:^(2|3)$)'
158-global-var.t TEST 1: init_by_lua - status code ok got: ''
expected: '200'
158-global-var.t TEST 1: init_by_lua - response_body_like - response is expected () ''
doesn't match '(?^:^(2|3)$)'
158-global-var.t TEST 1: init_by_lua - grep_error_log_out (req 1) got: 'old foo: 1
'
expected: 'old foo: 2
'
158-global-var.t TEST 9: warn messages for polluting _G table when handling request - status code ok got: ''
expected: '200'
158-global-var.t TEST 9: warn messages for polluting _G table when handling request - response_body - response is expected (repeated req 0, req 0) got: ''
expected: '0
'
158-global-var.t TEST 9: warn messages for polluting _G table when handling request - status code ok got: ''
expected: '200'
158-global-var.t TEST 9: warn messages for polluting _G table when handling request - response_body - response is expected (repeated req 1, req 0) got: ''
expected: '0
'
158-global-var.t TEST 9: warn messages for polluting _G table when handling request - grep_error_log_out (req 1) got: 'writing a global Lua variable ('foo')
'
expected: 'writing a global Lua variable ('1')
'
158-global-var.t TEST 5: log_by_lua - status code ok got: ''
expected: '200'
158-global-var.t TEST 5: log_by_lua - response_body_like - response is expected () ''
doesn't match '(?^s:\A(?:nil|1)\n\z)'
158-global-var.t TEST 5: log_by_lua - status code ok got: ''
expected: '200'
158-global-var.t TEST 5: log_by_lua - response_body_like - response is expected () ''
doesn't match '(?^s:\A(?:nil|1)\n\z)'
158-global-var.t TEST 5: log_by_lua - grep_error_log_out (req 1) got: '[warn] 2764#0: *151 stream [lua] _G write guard:12: __newindex(): writing a global Lua variable ('foo')
log_by_lua(nginx.conf:31):3: in main chunk
'
expected: 'old foo: 1
'
158-global-var.t TEST 4: content_by_lua - status code ok got: ''
expected: '200'
158-global-var.t TEST 4: content_by_lua - response_body_like - response is expected () ''
doesn't match '(?^s:\A[12]\n\z)'
158-global-var.t TEST 4: content_by_lua - status code ok got: ''
expected: '200'
158-global-var.t TEST 4: content_by_lua - response_body_like - response is expected () ''
doesn't match '(?^s:\A[12]\n\z)'
158-global-var.t TEST 4: content_by_lua - grep_error_log_out (req 1) got: '[warn] 2794#0: *179 stream [lua] _G write guard:12: __newindex(): writing a global Lua variable ('foo')
content_by_lua(nginx.conf:29):3: in main chunk,
'
expected: 'old foo: 1
'
158-global-var.t TEST 6: timer - status code ok got: ''
expected: '200'
158-global-var.t TEST 6: timer - response_body_like - response is expected () ''
doesn't match '(?^s:\A[12]\n\z)'
158-global-var.t TEST 6: timer - status code ok got: ''
expected: '200'
158-global-var.t TEST 6: timer - response_body_like - response is expected () ''
doesn't match '(?^s:\A[12]\n\z)'
158-global-var.t TEST 6: timer - grep_error_log_out (req 1) got: '[warn] 2824#0: *209 stream [lua] _G write guard:12: __newindex(): writing a global Lua variable ('foo')
content_by_lua(nginx.conf:37):4: in
'
expected: 'old foo: 1
'
158-global-var.t TEST 2: init_worker_by_lua - status code ok got: ''
expected: '200'
158-global-var.t TEST 2: init_worker_by_lua - response_body_like - response is expected () ''
doesn't match '(?^:^(2|3)$)'
158-global-var.t TEST 2: init_worker_by_lua - status code ok got: ''
expected: '200'
158-global-var.t TEST 2: init_worker_by_lua - response_body_like - response is expected () ''
doesn't match '(?^:^(2|3)$)'
158-global-var.t TEST 2: init_worker_by_lua - grep_error_log_out (req 1) got: 'old foo: 1
'
expected: 'old foo: 2
'
158-global-var.t TEST 7: uthread - status code ok got: ''
expected: '200'
158-global-var.t TEST 7: uthread - response_body_like - response is expected () ''
doesn't match '(?^s:\A[12]\n\z)'
158-global-var.t TEST 7: uthread - status code ok got: ''
expected: '200'
158-global-var.t TEST 7: uthread - response_body_like - response is expected () ''
doesn't match '(?^s:\A[12]\n\z)'
158-global-var.t TEST 7: uthread - grep_error_log_out (req 1) got: 'writing a global Lua variable ('foo')
'
expected: 'old foo: 1
'
159-sa-restart.t TEST 6: lua_sa_restart on (default) - SA_RESTART is effective in timer phase - status code ok got: ''
expected: '200'
159-sa-restart.t TEST 1: lua_sa_restart default - sets SA_RESTART in init_worker_by_lua* - status code ok got: ''
expected: '200'
159-sa-restart.t TEST 3: lua_sa_restart on (default) - sets SA_RESTART if no init_worker_by_lua* phase is defined - status code ok got: ''
expected: '200'
159-sa-restart.t TEST 4: lua_sa_restart on (default) - SA_RESTART is effective in content_by_lua* - status code ok got: ''
expected: '200'
159-sa-restart.t TEST 5: lua_sa_restart on (default) - SA_RESTART is effective in log_by_lua* - status code ok got: ''
expected: '200'
159-sa-restart.t TEST 2: lua_sa_restart off - does not set SA_RESTART - status code ok got: ''
expected: '200'
160-disable-init-by-lua.t TEST 1: ensure init_by_lua* is not run in signaller process - pattern "failed (2: No such file or directory)" should match a line in error.log (req 0)
160-disable-init-by-lua.t TEST 1: ensure init_by_lua* is not run in signaller process - pattern "failed (2: No such file or directory)" should match a line in error.log (req 1)
161-load-resty-core.t TEST 3: resty.core is automatically loaded in the Lua VM with 'lua_code_cache off' - status code ok got: ''
expected: '200'
161-load-resty-core.t TEST 3: resty.core is automatically loaded in the Lua VM with 'lua_code_cache off' - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'resty.core loaded: true
'
161-load-resty-core.t TEST 3: resty.core is automatically loaded in the Lua VM with 'lua_code_cache off' - status code ok got: ''
expected: '200'
161-load-resty-core.t TEST 3: resty.core is automatically loaded in the Lua VM with 'lua_code_cache off' - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'resty.core loaded: true
'
161-load-resty-core.t TEST 8: lua_load_resty_core logs a deprecation warning when specified (off) - status code ok got: ''
expected: '200'
161-load-resty-core.t TEST 8: lua_load_resty_core logs a deprecation warning when specified (off) - status code ok got: ''
expected: '200'
161-load-resty-core.t TEST 4: resty.core loading honors the lua_package_path directive - status code ok got: ''
expected: '200'
161-load-resty-core.t TEST 4: resty.core loading honors the lua_package_path directive - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-resty.core loaded: true
-loaded from html dir
'
161-load-resty-core.t TEST 4: resty.core loading honors the lua_package_path directive - status code ok got: ''
expected: '200'
161-load-resty-core.t TEST 4: resty.core loading honors the lua_package_path directive - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-resty.core loaded: true
-loaded from html dir
'
161-load-resty-core.t TEST 7: lua_load_resty_core logs a deprecation warning when specified (on) - status code ok got: ''
expected: '200'
161-load-resty-core.t TEST 7: lua_load_resty_core logs a deprecation warning when specified (on) - status code ok got: ''
expected: '200'
161-load-resty-core.t TEST 1: lua_load_resty_core is automatically loaded in the Lua VM - status code ok got: ''
expected: '200'
161-load-resty-core.t TEST 1: lua_load_resty_core is automatically loaded in the Lua VM - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'resty.core loaded: true
'
161-load-resty-core.t TEST 1: lua_load_resty_core is automatically loaded in the Lua VM - status code ok got: ''
expected: '200'
161-load-resty-core.t TEST 1: lua_load_resty_core is automatically loaded in the Lua VM - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'resty.core loaded: true
'
161-load-resty-core.t TEST 2: resty.core is automatically loaded in the Lua VM when 'lua_shared_dict' is used - status code ok got: ''
expected: '200'
161-load-resty-core.t TEST 2: resty.core is automatically loaded in the Lua VM when 'lua_shared_dict' is used - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'resty.core loaded: true
'
161-load-resty-core.t TEST 2: resty.core is automatically loaded in the Lua VM when 'lua_shared_dict' is used - status code ok got: ''
expected: '200'
161-load-resty-core.t TEST 2: resty.core is automatically loaded in the Lua VM when 'lua_shared_dict' is used - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'resty.core loaded: true
'
161-load-resty-core.t TEST 6: resty.core not loading produces an error with 'lua_code_cache off' - status code ok got: ''
expected: '200'

Expected Failures

File Name Details
043-shdict.t TEST 5: different-size values set to the same key - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-hello
-hello, world
-hello
'
043-shdict.t TEST 52: list all keys in a shdict with more than 1024 keys with no limit set - response_body - response is expected (repeated req 0, req 0) got: ''
expected: '1024
'
043-shdict.t TEST 35: incr key (incr by floating point number) - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-incr: 32.14 nil
-foo = 32.14
'
043-shdict.t TEST 38: get and set with flags - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-32 number
-199 number
-10502 number
-nil nil
'
043-shdict.t TEST 44: flush_expires a dict without expired items - response_body - response is expected (repeated req 0, req 0) got: ''
expected: '0
'
043-shdict.t TEST 74: incr nil key - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'not ok: nil key
'
043-shdict.t TEST 62: get empty key - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'not ok: empty key
'
043-shdict.t TEST 78: incr number key - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-set ok
-incr ok
-get ok: 33, flags: nil
'
043-shdict.t TEST 18: delete at first - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-nil
-hello, world
'
043-shdict.t TEST 21: fail to allocate memory - response_body_like - response is expected () ''
doesn't match '(?^s:^true nil true\nabort at (?:139|140|141)$
)'
043-shdict.t TEST 65: get_stale nil key - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'not ok: nil key
'
043-shdict.t TEST 34: incr key (incr by 0) - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-incr: 32 nil
-foo = 32
'
043-shdict.t TEST 68: get_stale a too-long key - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'not ok: key too long
'
043-shdict.t TEST 69: get_stale a non-existent key - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'get ok: nil
'
043-shdict.t TEST 12: get non-existent keys - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-nil
-nil
'
043-shdict.t TEST 39: expired entries (can be auto-removed by get), with flags set - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'res = nil, flags = nil
'
043-shdict.t TEST 81: replace key with exptime - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-get foo: 32
-replace: false not found false
-foo = nil
'
043-shdict.t TEST 64: set & get large values - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-set ok
-get ok: 10240
'
043-shdict.t TEST 66: get_stale empty key - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'not ok: empty key
'
043-shdict.t TEST 31: incr key (key exists) - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-incr: 10534 nil
-foo = 10534
'
043-shdict.t TEST 4: number keys, string values - response_body - response is expected (repeated req 0, req 0) @@ -1,6 +0,0 @@
-truenilfalse
-truenilfalse
-truenilfalse
-dog
-dog
-bird string
'
043-shdict.t TEST 47: list all keys in a shdict with expires - response_body - response is expected (repeated req 0, req 0) got: ''
expected: '2
'
043-shdict.t TEST 37: incr key (original value is not number) - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-incr: nil not a number
-foo = true
'
043-shdict.t TEST 3: string key, boolean value - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-true boolean
-false boolean
'
043-shdict.t TEST 63: get a too-long key - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'not ok: key too long
'
043-shdict.t TEST 28: replace key (key not exists) - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-replace: false not found false
-foo = nil
'
043-shdict.t TEST 16: bad value type - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'not ok: bad value type
'
043-shdict.t TEST 51: list all keys in a shdict with all keys expired - response_body - response is expected (repeated req 0, req 0) got: ''
expected: '0
'
043-shdict.t TEST 2: string key, floating-point value - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-3.14159 number
-3.96 number
'
043-shdict.t TEST 57: set nil key - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'not ok: nil key
'
043-shdict.t TEST 77: incr too long key - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'not ok: key too long
'
043-shdict.t TEST 36: incr key (incr by negative numbers) - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-incr: 31.86 nil
-foo = 31.86
'
043-shdict.t TEST 1: string key, int value - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-32 number
-10502 number
'
043-shdict.t TEST 45: list all keys in a shdict - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-2
-bah
-bar
'
043-shdict.t TEST 43: flush_expires an empty dict - response_body - response is expected (repeated req 0, req 0) got: ''
expected: '0
'
043-shdict.t TEST 33: replace key (key expired) - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-incr: nil not found
-foo = nil
'
043-shdict.t TEST 8: not yet expired entries - response_body - response is expected (repeated req 0, req 0) got: ''
expected: '32
'
043-shdict.t TEST 72: set & get_stale boolean values (false) - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-set ok
-get_stale ok: false, stale: false
'
043-shdict.t TEST 79: incr a number-like string key - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-set ok
-incr ok
-get ok: 33, flags: nil
'
043-shdict.t TEST 27: incr key (key exists) - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-replace: true nil false
-foo = 10502
-replace: true nil false
-foo = hello
'
043-shdict.t TEST 56: get_stale: expired entries can still be fetched - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-32, nil, true
-33, nil, false
'
043-shdict.t TEST 23: add key (key exists) - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-add: false exists false
-foo = 32
'
043-shdict.t TEST 46: list keys in a shdict with limit - response_body - response is expected (repeated req 0, req 0) got: ''
expected: '1
'
043-shdict.t TEST 71: set & get_stale boolean values (true) - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-set ok
-get_stale ok: true, stale: false
'
043-shdict.t TEST 53: list all keys in a shdict with more than 1024 keys with 0 limit set - response_body - response is expected (repeated req 0, req 0) got: ''
expected: '2048
'
043-shdict.t TEST 50: list keys in an empty shdict with a limit - response_body - response is expected (repeated req 0, req 0) got: ''
expected: '0
'
043-shdict.t TEST 25: add key (key expired) - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-add: true nil false
-foo = 10502
'
043-shdict.t TEST 24: add key (key not exists) - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-add: true nil false
-foo = 10502
'
043-shdict.t TEST 55: safe_add - response_body - like (repeated req 0, req 0) ''
doesn't match '(?^:false no memory
abort at (353|705)
cur value: nil
1st value: hello hello hello hello hello hello hello hello hello hello1
2nd value: hello hello hello hello hello hello hello hello hello hello2
)'
043-shdict.t TEST 15: set too large key - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-true nil
-hello
-not ok: key too long
'
043-shdict.t TEST 67: get_stale number key - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-set ok
-get_stale: hello
'
043-shdict.t TEST 59: set empty string keys - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'not ok: empty key
'
043-shdict.t TEST 49: list keys in an empty shdict - response_body - response is expected (repeated req 0, req 0) got: ''
expected: '0
'
043-shdict.t TEST 73: set & get_stale with a flag - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-set ok
-get_stale ok: false, flags: 325, stale: false
'
043-shdict.t TEST 40: flush_all - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-32 number
-10502 number
-nil nil
-nil nil
'
043-shdict.t TEST 76: incr empty string keys - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'not ok: empty key
'
043-shdict.t TEST 61: get nil key - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'not ok: nil key
'
043-shdict.t TEST 30: replace key (key expired and value size unmatched) - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-replace: false not found false
-foo = nil
'
043-shdict.t TEST 80: add nil values - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'not ok: attempt to add or replace nil values
'
043-shdict.t TEST 17: delete after setting values - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-32
-nil
-hello, world
'
043-shdict.t TEST 29: replace key (key expired) - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-replace: false not found false
-foo = nil
'
043-shdict.t TEST 9: forcibly override other valid entries - response_body - like (repeated req 0, req 0) ''
doesn't match '(?^:true nil true
abort at (353|705)
cur value: hello hello hello hello hello hello hello hello hello hello\1
1st value: nil
2nd value: hello hello hello hello hello hello hello hello hello hello2
)'
043-shdict.t TEST 41: flush_expires - response_body - response is expected (repeated req 0, req 0) got: ''
expected: '1
'
043-shdict.t TEST 7: expired entries (can NOT be auto-removed by get) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'nil
'
043-shdict.t TEST 70: set & get_stale large values - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-set ok
-get_stale ok: 10240, stale: false
'
043-shdict.t TEST 86: check the type of the shdict object - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'type: table
'
043-shdict.t TEST 11: dogs and cats dicts - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-32
-hello, world
-56
-hello, world
'
043-shdict.t TEST 32: replace key (key not exists) - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-incr: nil not found
-foo = nil
'
043-shdict.t TEST 20: set nil at first - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-nil
-hello, world
'
043-shdict.t TEST 42: flush_expires with number - response_body - response is expected (repeated req 0, req 0) got: ''
expected: '42
'
043-shdict.t TEST 6: expired entries (can be auto-removed by get) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'nil
'
043-shdict.t TEST 19: set nil after setting values - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-32
-nil
-hello, world
'
043-shdict.t TEST 10: forcibly override other valid entries and test LRU - response_body - like (repeated req 0, req 0) ''
doesn't match '(?^:true nil true
abort at (353|705)
cur value: hello hello hello hello hello hello hello hello hello hello\1
1st value: hello hello hello hello hello hello hello hello hello hello1
2nd value: nil
)'
043-shdict.t TEST 26: add key (key expired and value size unmatched) - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-add: true nil false
-foo = hello
'
043-shdict.t TEST 48: list keys in a shdict with limit larger than number of keys - response_body - response is expected (repeated req 0, req 0) got: ''
expected: '2
'
043-shdict.t TEST 87: dogs, cat mixing - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-32 number
-10502 number
-nil
-nil
'
043-shdict.t TEST 54: safe_set - response_body - like (repeated req 0, req 0) ''
doesn't match '(?^:false no memory
abort at (353|705)
cur value: nil
1st value: hello hello hello hello hello hello hello hello hello hello1
2nd value: hello hello hello hello hello hello hello hello hello hello2
)'
091-coroutine.t nginx: [error] init_by_lua error: init_by_lua:7: init_by_lua:4: something went wrong
124-init-worker.t TEST 18: syslog error log - udp_query ok ''
doesn't match '(?^:Bad bad bad)'
126-shdict-frag.t TEST 6: merge 2 multi-page blocks (forcibly evicted, merge backward) - response_body - response is expected (repeated req 0, req 0) @@ -1,9 +0,0 @@
-successfully set foo.
-successfully set bar.
-found foo: 8100
-failed to safe set baz: no memory
-found bar: 8101
-successfully safe set baz
-foo not found
-bar not found
-found baz: 16300
'
126-shdict-frag.t TEST 7: merge big slabs (less than max slab size) backward - response_body - response is expected (repeated req 0, req 0) @@ -1,5 +0,0 @@
-successfully set bar.
-failed to safe set baz: no memory
-found bar: 4000
-delete bar
-successfully safe set baz
'
126-shdict-frag.t TEST 1: merge 2 single-page free blocks (forcibly evicted, merge forward) - response_body - response is expected (repeated req 0, req 0) @@ -1,12 +0,0 @@
-successfully set foo.
-successfully set bar.
-successfully set baz with force.
-foo not found
-bar not found
-found baz: 8102
-successfully set foo with force.
-successfully set bar.
-successfully set baz with force.
-foo not found
-bar not found
-found baz: 8102
'
126-shdict-frag.t TEST 3: merge 3 single-page free slabs (actively deleted, merge backward AND forward) - response_body - response is expected (repeated req 0, req 0) @@ -1,18 +0,0 @@
-successfully set foo.
-successfully set bar.
-successfully set baz.
-found foo: 4000
-found bar: 4001
-found baz: 4002
-failed to safe set blah: no memory
-failed to safe set blah: no memory
-successfully safe set blah
-successfully set foo with force.
-successfully set bar.
-successfully set baz.
-found foo: 4000
-found bar: 4001
-found baz: 4002
-failed to safe set blah: no memory
-failed to safe set blah: no memory
-successfully safe set blah
'
126-shdict-frag.t TEST 8: cannot merge in-used big slabs page (backward) - response_body - response is expected (repeated req 0, req 0) @@ -1,5 +0,0 @@
-successfully set bar.
-failed to safe set baz: no memory
-found bar: 4000
-delete bar
-failed to safe set baz: no memory
'
126-shdict-frag.t TEST 10: fuzz testing - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'ok
'
126-shdict-frag.t TEST 9: cannot merge in-used big slabs page (forward) - response_body - response is expected (repeated req 0, req 0) @@ -1,5 +0,0 @@
-successfully set bar.
-failed to safe set baz: no memory
-found bar: 4000
-delete bar
-failed to safe set baz: no memory
'
126-shdict-frag.t TEST 5: merge one single-page block forward, but no more - response_body - response is expected (repeated req 0, req 0) @@ -1,10 +0,0 @@
-successfully set foo.
-successfully set bar.
-successfully set baz.
-found foo: 4000
-found bar: 4001
-found baz: 4002
-failed to safe set blah: no memory
-successfully safe set blah
-found baz: 4002
-found blah: 8100
'
126-shdict-frag.t TEST 4: merge one single-page block backward, but no more - response_body - response is expected (repeated req 0, req 0) @@ -1,10 +0,0 @@
-successfully set foo.
-successfully set bar.
-successfully set baz.
-found foo: 4000
-found bar: 4001
-found baz: 4002
-failed to safe set blah: no memory
-successfully safe set blah
-found foo: 4000
-found blah: 8100
'
126-shdict-frag.t TEST 2: merge 2 single-page free slabs (forcibly evicted, merge backward) - response_body - response is expected (repeated req 0, req 0) @@ -1,14 +0,0 @@
-successfully set foo.
-successfully set bar.
-found foo: 4000
-successfully set baz with force.
-foo not found
-bar not found
-found baz: 8102
-successfully set foo with force.
-successfully set bar.
-found foo: 4000
-successfully set baz with force.
-foo not found
-bar not found
-found baz: 8102
'
129-ssl-socket.t TEST 19: openresty.org: passing SSL verify: keepalive (no reusing the ssl session) - pattern "lua tcp socket get keepalive peer: using connection" should match a line in error.log (req 0)
129-ssl-socket.t TEST 19: openresty.org: passing SSL verify: keepalive (no reusing the ssl session) - pattern "lua tcp socket get keepalive peer: using connection" should match a line in error.log (req 1)
129-ssl-socket.t TEST 23: unix domain ssl cosocket (no ssl on server) - pattern "(?^:SSL_do_handshake\(\) failed .*?(unknown protocol|wrong version number))" should match a line in error.log (req 0)
129-ssl-socket.t TEST 23: unix domain ssl cosocket (no ssl on server) - pattern "(?^:SSL_do_handshake\(\) failed .*?(unknown protocol|wrong version number))" should match a line in error.log (req 1)
129-ssl-socket.t TEST 4: ssl session reuse - pattern "SSL reused session" should match a line in error.log (req 0)
129-ssl-socket.t TEST 4: ssl session reuse - pattern "lua ssl free session" should match a line in error.log (req 0)
129-ssl-socket.t TEST 4: ssl session reuse - pattern "SSL reused session" should match a line in error.log (req 1)
129-ssl-socket.t TEST 4: ssl session reuse - pattern "lua ssl free session" should match a line in error.log (req 1)
129-ssl-socket.t TEST 22: unix domain ssl cosocket (verify) - grep_error_log_out (req 0) ''
doesn't match '(?^:^lua ssl save session: ([0-9A-F]+)
lua ssl free session: ([0-9A-F]+)
$)'
129-ssl-socket.t TEST 22: unix domain ssl cosocket (verify) - grep_error_log_out (req 1) ''
doesn't match '(?^:^lua ssl save session: ([0-9A-F]+)
lua ssl free session: ([0-9A-F]+)
$)'
129-ssl-socket.t TEST 9: ssl verify depth not enough (with automatic error logging) - pattern "(?^:lua ssl certificate verify error: \((22: certificate chain too long|20: unable to get local issuer certificate|21: unable to verify the first certificate)\))" should match a line in error.log (req 0)
129-ssl-socket.t TEST 9: ssl verify depth not enough (with automatic error logging) - pattern "(?^:lua ssl certificate verify error: \((22: certificate chain too long|20: unable to get local issuer certificate|21: unable to verify the first certificate)\))" should match a line in error.log (req 1)
129-ssl-socket.t TEST 28: unix domain ssl cosocket (gen session, true) - grep_error_log_out (req 0) ''
doesn't match '(?^:^lua ssl save session: ([0-9A-F]+)
lua ssl free session: ([0-9A-F]+)
$)'
129-ssl-socket.t TEST 28: unix domain ssl cosocket (gen session, true) - grep_error_log_out (req 1) ''
doesn't match '(?^:^lua ssl save session: ([0-9A-F]+)
lua ssl free session: ([0-9A-F]+)
$)'
129-ssl-socket.t TEST 14: default cipher - pattern "(?^:SSL: TLSv1\.2, cipher: "(?:ECDHE-RSA-AES(?:256|128)-GCM-SHA(?:384|256)|ECDHE-(?:RSA|ECDSA)-CHACHA20-POLY1305) TLSv1\.2)" should match a line in error.log (req 0)
129-ssl-socket.t TEST 14: default cipher - pattern "(?^:SSL: TLSv1\.2, cipher: "(?:ECDHE-RSA-AES(?:256|128)-GCM-SHA(?:384|256)|ECDHE-(?:RSA|ECDSA)-CHACHA20-POLY1305) TLSv1\.2)" should match a line in error.log (req 1)
129-ssl-socket.t TEST 16: explicit ssl protocol configuration - pattern "(?^:SSL: TLSv1, cipher: "ECDHE-RSA-AES256-SHA (SSLv3|TLSv1))" should match a line in error.log (req 0)
129-ssl-socket.t TEST 16: explicit ssl protocol configuration - pattern "(?^:SSL: TLSv1, cipher: "ECDHE-RSA-AES256-SHA (SSLv3|TLSv1))" should match a line in error.log (req 1)
129-ssl-socket.t TEST 18: openresty.org: passing SSL verify: keepalive (reuse the ssl session) - pattern "lua tcp socket get keepalive peer: using connection" should match a line in error.log (req 0)
129-ssl-socket.t TEST 18: openresty.org: passing SSL verify: keepalive (reuse the ssl session) - pattern "lua tcp socket get keepalive peer: using connection" should match a line in error.log (req 1)
129-ssl-socket.t TEST 31: unix domain ssl cosocket (verify cert but no host name check, NOT passed) - pattern "lua ssl certificate verify error: (18: self signed certificate)" should match a line in error.log (req 0)
129-ssl-socket.t TEST 31: unix domain ssl cosocket (verify cert but no host name check, NOT passed) - pattern "lua ssl certificate verify error: (18: self signed certificate)" should match a line in error.log (req 1)
129-ssl-socket.t TEST 30: unix domain ssl cosocket (verify cert but no host name check, passed) - grep_error_log_out (req 0) ''
doesn't match '(?^:^lua ssl save session: ([0-9A-F]+)
lua ssl free session: ([0-9A-F]+)
$)'
129-ssl-socket.t TEST 30: unix domain ssl cosocket (verify cert but no host name check, passed) - grep_error_log_out (req 1) ''
doesn't match '(?^:^lua ssl save session: ([0-9A-F]+)
lua ssl free session: ([0-9A-F]+)
$)'
129-ssl-socket.t TEST 15: explicit cipher configuration - pattern "(?^:SSL: TLSv\d(?:\.\d)?, cipher: "ECDHE-RSA-AES256-SHA (SSLv3|TLSv1))" should match a line in error.log (req 0)
129-ssl-socket.t TEST 15: explicit cipher configuration - pattern "(?^:SSL: TLSv\d(?:\.\d)?, cipher: "ECDHE-RSA-AES256-SHA (SSLv3|TLSv1))" should match a line in error.log (req 1)
129-ssl-socket.t TEST 21: unix domain ssl cosocket (no verify) - grep_error_log_out (req 0) ''
doesn't match '(?^:^lua ssl save session: ([0-9A-F]+)
lua ssl free session: ([0-9A-F]+)
$)'
129-ssl-socket.t TEST 21: unix domain ssl cosocket (no verify) - grep_error_log_out (req 1) ''
doesn't match '(?^:^lua ssl save session: ([0-9A-F]+)
lua ssl free session: ([0-9A-F]+)
$)'
129-ssl-socket.t TEST 12: www.google.com (SSL verify enabled and no corresponding trusted certificates) - pattern "lua ssl certificate verify error: (20: unable to get local issuer certificate)" should match a line in error.log (req 0)
129-ssl-socket.t TEST 12: www.google.com (SSL verify enabled and no corresponding trusted certificates) - pattern "lua ssl certificate verify error: (20: unable to get local issuer certificate)" should match a line in error.log (req 1)
132-lua-blocks.t nginx: [emerg] "http" directive is not allowed here in /home/ec2-user/git/stream-lua-nginx-module/t/servroot/conf/nginx.conf:28
132-lua-blocks.t nginx: [emerg] Lua code block missing the closing long bracket "]]" in /home/ec2-user/git/stream-lua-nginx-module/t/servroot/conf/nginx.conf:22
132-lua-blocks.t nginx: [emerg] Lua code block missing the closing long bracket "]=]" in /home/ec2-user/git/stream-lua-nginx-module/t/servroot/conf/nginx.conf:22
132-lua-blocks.t nginx: [emerg] Lua code block missing the closing long bracket "]==]" in /home/ec2-user/git/stream-lua-nginx-module/t/servroot/conf/nginx.conf:22
132-lua-blocks.t nginx: [emerg] Lua code block missing the closing long bracket "]]" in /home/ec2-user/git/stream-lua-nginx-module/t/servroot/conf/nginx.conf:22
139-ssl-cert-by.t TEST 10: lua exception - yield - pattern "runtime error: ssl_certificate_by_lua:3: bad bad bad" should match a line in error.log (req 0)
139-ssl-cert-by.t TEST 10: lua exception - yield - pattern "lua_certificate_by_lua: cert cb exit code: 0" should match a line in error.log (req 0)
139-ssl-cert-by.t TEST 10: lua exception - yield - pattern "(?^:\[info\] .*? SSL_do_handshake\(\) failed .*?cert cb error)" should match a line in error.log (req 0)
139-ssl-cert-by.t TEST 10: lua exception - yield - pattern "runtime error: ssl_certificate_by_lua:3: bad bad bad" should match a line in error.log (req 1)
139-ssl-cert-by.t TEST 10: lua exception - yield - pattern "lua_certificate_by_lua: cert cb exit code: 0" should match a line in error.log (req 1)
139-ssl-cert-by.t TEST 10: lua exception - yield - pattern "(?^:\[info\] .*? SSL_do_handshake\(\) failed .*?cert cb error)" should match a line in error.log (req 1)
139-ssl-cert-by.t TEST 10: lua exception - yield - pattern "runtime error: ssl_certificate_by_lua:3: bad bad bad" should match a line in error.log (req 2)
139-ssl-cert-by.t TEST 10: lua exception - yield - pattern "lua_certificate_by_lua: cert cb exit code: 0" should match a line in error.log (req 2)
139-ssl-cert-by.t TEST 10: lua exception - yield - pattern "(?^:\[info\] .*? SSL_do_handshake\(\) failed .*?cert cb error)" should match a line in error.log (req 2)
139-ssl-cert-by.t TEST 2: sleep - pattern "(?^:elapsed in ssl cert by lua: 0.(?:09|1\d)\d+,)" should match a line in error.log (req 0)
139-ssl-cert-by.t TEST 2: sleep - pattern "(?^:elapsed in ssl cert by lua: 0.(?:09|1\d)\d+,)" should match a line in error.log (req 1)
139-ssl-cert-by.t TEST 2: sleep - pattern "(?^:elapsed in ssl cert by lua: 0.(?:09|1\d)\d+,)" should match a line in error.log (req 2)
139-ssl-cert-by.t TEST 7: ngx.exit(0) - yield - pattern "lua exit with code 0" should match a line in error.log (req 0)
139-ssl-cert-by.t TEST 7: ngx.exit(0) - yield - pattern "lua exit with code 0" should match a line in error.log (req 1)
139-ssl-cert-by.t TEST 7: ngx.exit(0) - yield - pattern "lua exit with code 0" should match a line in error.log (req 2)
139-ssl-cert-by.t TEST 3: timer - pattern "my timer run!" should match a line in error.log (req 0)
139-ssl-cert-by.t TEST 3: timer - pattern "my timer run!" should match a line in error.log (req 1)
139-ssl-cert-by.t TEST 3: timer - pattern "my timer run!" should match a line in error.log (req 2)
139-ssl-cert-by.t TEST 15: simple user thread wait with yielding - grep_error_log_out (req 0) @@ -1,3 +1 @@
uthread: thread created: suspended
-uthread: hello in thread
-uthread: done
'
139-ssl-cert-by.t TEST 15: simple user thread wait with yielding - grep_error_log_out (req 1) @@ -1,3 +1 @@
uthread: thread created: suspended
-uthread: hello in thread
-uthread: done
'
139-ssl-cert-by.t TEST 15: simple user thread wait with yielding - grep_error_log_out (req 2) @@ -1,3 +1 @@
uthread: thread created: suspended
-uthread: hello in thread
-uthread: done
'
139-ssl-cert-by.t TEST 8: ngx.exit(ngx.ERROR) - yield - pattern "lua_certificate_by_lua: cert cb exit code: 0" should match a line in error.log (req 0)
139-ssl-cert-by.t TEST 8: ngx.exit(ngx.ERROR) - yield - pattern "(?^:\[info\] .*? SSL_do_handshake\(\) failed .*?cert cb error)" should match a line in error.log (req 0)
139-ssl-cert-by.t TEST 8: ngx.exit(ngx.ERROR) - yield - pattern "lua exit with code -1" should match a line in error.log (req 0)
139-ssl-cert-by.t TEST 8: ngx.exit(ngx.ERROR) - yield - pattern "lua_certificate_by_lua: cert cb exit code: 0" should match a line in error.log (req 1)
139-ssl-cert-by.t TEST 8: ngx.exit(ngx.ERROR) - yield - pattern "(?^:\[info\] .*? SSL_do_handshake\(\) failed .*?cert cb error)" should match a line in error.log (req 1)
139-ssl-cert-by.t TEST 8: ngx.exit(ngx.ERROR) - yield - pattern "lua exit with code -1" should match a line in error.log (req 1)
139-ssl-cert-by.t TEST 8: ngx.exit(ngx.ERROR) - yield - pattern "lua_certificate_by_lua: cert cb exit code: 0" should match a line in error.log (req 2)
139-ssl-cert-by.t TEST 8: ngx.exit(ngx.ERROR) - yield - pattern "(?^:\[info\] .*? SSL_do_handshake\(\) failed .*?cert cb error)" should match a line in error.log (req 2)
139-ssl-cert-by.t TEST 8: ngx.exit(ngx.ERROR) - yield - pattern "lua exit with code -1" should match a line in error.log (req 2)
139-ssl-cert-by.t TEST 1: simple logging - grep_error_log_out (req 0) 'reusable connection: 1
reusable connection: 0
reusable connection: 1
reusable connection: 0
reusable connection: 1
reusable connection: 0
reusable connection: 1
reusable connection: 0
reusable connection: 1
reusable connection: 0
reusable connection: 1
reusable connection: 0
reusable connection: 1
reusable connection: 0
reusable connection: 1
reusable connection: 0
reusable connection: 1
reusable connection: 0
reusable connection: 1
reusable connection: 0
reusable connection: 1
reusable connection: 0
reusable connection: 1
reusable connection: 0
reusable connection: 1
reusable connection: 0
reusable connection: 1
reusable connection: 0
reusable connection: 1
reusable connection: 0
reusable connection: 1
reusable connection: 0
reusable connection: 1
reusable connection: 0
reusable connection: 1
reusable connection: 0
reusable connection: 1
reusable connection: 0
reusable connection: 1
reusable connection: 0
reusable connection: 1
reusable connection: 0
reusable connection: 1
reusable connection: 0
reusable connection: 1
reusable connection: 0
reusable connection: 1
reusable connection: 0
reusable connection: 1
reusable connection: 0
reusable connection: 1
reusable connection: 0
reusable connection: 1
reusable connection: 0
reusable connection: 1
reusable connection: 0
reusable connection: 1
reusable connection: 0
reusable connection: 1
reusable connection: 0
reusable connection: 1
reusable connection: 0
reusable connection: 1
reusable connection: 0
reusable connection: 1
reusable connection: 0
reusable connection: 1
reusable connection: 0
reusable connection: 1
reusable connection: 0
reusable connection: 1
reusable connection: 0
reusable connection: 1
reusable connection: 0
reusable connection: 1
reusable connection: 0
reusable connection: 1
reusable connection: 0
reusable connection: 1
reusable connection: 0
reusable connection: 1
reusable connection: 0
reusable connection: 1
reusable connection: 0
reusable connection: 1
reusable connection: 0
reusable connection: 1
reusable connection: 0
reusable connection: 1
reusable connection: 0
ssl cert: connection reusable: 0
reusable connection: 0
ssl_certificate_by_lua:1: ssl cert by lua is running!,
'
doesn't match '(?^:reusable connection: 1
reusable connection: 0
ssl cert: connection reusable: 0
reusable connection: 0
ssl_certificate_by_lua:1: ssl cert by lua is running!,
reusable connection: 0
reusable connection: 0
reusable connection: 0
reusable connection: 0
reusable connection: 0
)'
139-ssl-cert-by.t TEST 1: simple logging - grep_error_log_out (req 1) 'reusable connection: 1
reusable connection: 0
ssl cert: connection reusable: 0
reusable connection: 0
ssl_certificate_by_lua:1: ssl cert by lua is running!,
'
doesn't match '(?^:reusable connection: 1
reusable connection: 0
ssl cert: connection reusable: 0
reusable connection: 0
ssl_certificate_by_lua:1: ssl cert by lua is running!,
reusable connection: 0
reusable connection: 0
reusable connection: 0
reusable connection: 0
reusable connection: 0
)'
139-ssl-cert-by.t TEST 1: simple logging - grep_error_log_out (req 2) 'reusable connection: 1
reusable connection: 0
ssl cert: connection reusable: 0
reusable connection: 0
ssl_certificate_by_lua:1: ssl cert by lua is running!,
'
doesn't match '(?^:reusable connection: 1
reusable connection: 0
ssl cert: connection reusable: 0
reusable connection: 0
ssl_certificate_by_lua:1: ssl cert by lua is running!,
reusable connection: 0
reusable connection: 0
reusable connection: 0
reusable connection: 0
reusable connection: 0
)'
139-ssl-cert-by.t TEST 4: cosocket - pattern "received memc reply: OK" should match a line in error.log (req 0)
139-ssl-cert-by.t TEST 4: cosocket - pattern "received memc reply: OK" should match a line in error.log (req 1)
139-ssl-cert-by.t TEST 4: cosocket - pattern "received memc reply: OK" should match a line in error.log (req 2)
139-ssl-cert-by.t TEST 12: connection aborted prematurely - pattern "ssl-cert-by-lua: after sleeping" should match a line in error.log (req 0)
139-ssl-cert-by.t TEST 12: connection aborted prematurely - pattern "[error]" should not match any line in error.log but matches line "2020/10/27 05:32:26 [error] 2077\#0: send() failed (111: Connection refused)" (req 0) 2020/10/27 05:32:26 [debug] 2077\#0: close listening unix:/home/ec2-user/git/stream-lua-nginx-module/t/servroot/html/nginx.sock \#13
2020/10/27 05:32:26 [debug] 2077\#0: epoll del event: fd:8 op:2 ev:00000000
2020/10/27 05:32:26 [debug] 2077\#0: close listening 0.0.0.0:1985 \#8
2020/10/27 05:32:26 [debug] 2077\#0: epoll del event: fd:9 op:2 ev:00000000
2020/10/27 05:32:26 [debug] 2077\#0: close listening 0.0.0.0:1984 \#9
2020/10/27 05:32:26 [notice] 2077\#0: exiting
2020/10/27 05:32:26 [debug] 2077\#0: flush files
2020/10/27 05:32:26 [debug] 2077\#0: run cleanup: 08627A50
2020/10/27 05:32:26 [debug] 2077\#0: run cleanup: 08658450
'
139-ssl-cert-by.t TEST 12: connection aborted prematurely - pattern "ssl-cert-by-lua: after sleeping" should match a line in error.log (req 1)
139-ssl-cert-by.t TEST 12: connection aborted prematurely - pattern "ssl-cert-by-lua: after sleeping" should match a line in error.log (req 2)
161-load-resty-core.t nginx: [alert] failed to load the 'resty.core' module (https://github.com/openresty/lua-resty-core); ensure you are using an OpenResty release from https://openresty.org/en/download.html (reason: module 'resty.core' not found:

Warnings

Go back to the index page.