(This page was automatically generated by the tools in the opsboy project on 16:17:15 09-Jan-2016 GMT.)

Detailed Test Report for lua-resty-core in linux x86_64 (rv)

Summary

Commit Testing Time Unexpected
Failures
Expected
Failures
Files Tests Elapsed Time
858025c7 2016-01-09 05:27:35 GMT 0 167 24 3274 555 sec

LuaJIT

LuaJIT 2.1.0-beta1, commit fb564b8

Compilation Errors

Unexpected Failures

(none)

Expected Failures

File Name Details
ocsp.t TEST 14: fail to validate OCSP response - OCSP response signed by an unknown cert and the OCSP response does not contain the unknown cert - response_body - response is expected (req 0) @@ -1,2 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
'
ocsp.t TEST 14: fail to validate OCSP response - OCSP response signed by an unknown cert and the OCSP response does not contain the unknown cert - pattern "failed to validate OCSP response: OCSP_basic_verify() failed" matches a line in error.log (req 0)
ocsp.t TEST 14: fail to validate OCSP response - OCSP response signed by an unknown cert and the OCSP response does not contain the unknown cert - response_body - response is expected (req 1) @@ -1,2 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
'
ocsp.t TEST 14: fail to validate OCSP response - OCSP response signed by an unknown cert and the OCSP response does not contain the unknown cert - pattern "failed to validate OCSP response: OCSP_basic_verify() failed" matches a line in error.log (req 1)
ocsp.t TEST 16: good status req from client - response_body - response is expected (req 0) @@ -1,2 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
'
ocsp.t TEST 16: good status req from client - pattern "ocsp status resp set ok: nil," matches a line in error.log (req 0)
ocsp.t TEST 16: good status req from client - pattern "[error]" should not match any line in error.log but matches line "2016/01/09 06:14:08 [error] 18800\#0: *1 peer closed connection in SSL handshake, client: 127.0.0.1, server: localhost, request: \"GET /t HTTP/1.1\", host: \"localhost\"" (req 0)
ocsp.t TEST 16: good status req from client - response_body - response is expected (req 1) @@ -1,2 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
'
ocsp.t TEST 16: good status req from client - pattern "ocsp status resp set ok: nil," matches a line in error.log (req 1)
ocsp.t TEST 16: good status req from client - pattern "[error]" should not match any line in error.log but matches line "2016/01/09 06:14:08 [error] 18800\#0: *4 peer closed connection in SSL handshake, client: 127.0.0.1, server: localhost, request: \"GET /t HTTP/1.1\", host: \"localhost\"" (req 1)
ocsp.t TEST 7: create OCSP request (buffer too small) - response_body - response is expected (req 0) @@ -1,2 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
'
ocsp.t TEST 7: create OCSP request (buffer too small) - pattern "failed to create OCSP request: output buffer too small: 68 > 67" matches a line in error.log (req 0)
ocsp.t TEST 7: create OCSP request (buffer too small) - response_body - response is expected (req 1) @@ -1,2 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
'
ocsp.t TEST 7: create OCSP request (buffer too small) - pattern "failed to create OCSP request: output buffer too small: 68 > 67" matches a line in error.log (req 1)
ocsp.t TEST 12: validate good OCSP response - no certs in response - response_body - response is expected (req 0) @@ -1,2 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
'
ocsp.t TEST 12: validate good OCSP response - no certs in response - pattern "OCSP response validation ok" matches a line in error.log (req 0)
ocsp.t TEST 12: validate good OCSP response - no certs in response - pattern "[error]" should not match any line in error.log but matches line "2016/01/09 06:14:12 [error] 18822\#0: *1 peer closed connection in SSL handshake, client: 127.0.0.1, server: localhost, request: \"GET /t HTTP/1.1\", host: \"localhost\"" (req 0)
ocsp.t TEST 12: validate good OCSP response - no certs in response - response_body - response is expected (req 1) @@ -1,2 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
'
ocsp.t TEST 12: validate good OCSP response - no certs in response - pattern "OCSP response validation ok" matches a line in error.log (req 1)
ocsp.t TEST 12: validate good OCSP response - no certs in response - pattern "[error]" should not match any line in error.log but matches line "2016/01/09 06:14:12 [error] 18822\#0: *4 peer closed connection in SSL handshake, client: 127.0.0.1, server: localhost, request: \"GET /t HTTP/1.1\", host: \"localhost\"" (req 1)
ocsp.t TEST 15: fail to validate OCSP response - OCSP response returns revoked status - pattern "failed to validate OCSP response: certificate status "revoked" in the OCSP response" matches a line in error.log (req 0)
ocsp.t TEST 15: fail to validate OCSP response - OCSP response returns revoked status - pattern "failed to validate OCSP response: certificate status "revoked" in the OCSP response" matches a line in error.log (req 1)
ocsp.t TEST 2: get OCSP responder (not found) - response_body - response is expected (req 0) @@ -1,2 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
'
ocsp.t TEST 2: get OCSP responder (not found) - pattern "OCSP responder not found" matches a line in error.log (req 0)
ocsp.t TEST 2: get OCSP responder (not found) - pattern "[error]" should not match any line in error.log but matches line "2016/01/09 06:14:17 [error] 18844\#0: *1 peer closed connection in SSL handshake, client: 127.0.0.1, server: localhost, request: \"GET /t HTTP/1.1\", host: \"localhost\"" (req 0)
ocsp.t TEST 2: get OCSP responder (not found) - response_body - response is expected (req 1) @@ -1,2 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
'
ocsp.t TEST 2: get OCSP responder (not found) - pattern "OCSP responder not found" matches a line in error.log (req 1)
ocsp.t TEST 2: get OCSP responder (not found) - pattern "[error]" should not match any line in error.log but matches line "2016/01/09 06:14:17 [error] 18844\#0: *4 peer closed connection in SSL handshake, client: 127.0.0.1, server: localhost, request: \"GET /t HTTP/1.1\", host: \"localhost\"" (req 1)
ocsp.t TEST 1: get OCSP responder (good case) - response_body - response is expected (req 0) @@ -1,2 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
'
ocsp.t TEST 1: get OCSP responder (good case) - pattern "OCSP url found: http://127.0.0.1:8888/ocsp?foo=1," matches a line in error.log (req 0)
ocsp.t TEST 1: get OCSP responder (good case) - pattern "[error]" should not match any line in error.log but matches line "2016/01/09 06:14:19 [error] 18855\#0: *1 peer closed connection in SSL handshake, client: 127.0.0.1, server: localhost, request: \"GET /t HTTP/1.1\", host: \"localhost\"" (req 0)
ocsp.t TEST 1: get OCSP responder (good case) - response_body - response is expected (req 1) @@ -1,2 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
'
ocsp.t TEST 1: get OCSP responder (good case) - pattern "OCSP url found: http://127.0.0.1:8888/ocsp?foo=1," matches a line in error.log (req 1)
ocsp.t TEST 1: get OCSP responder (good case) - pattern "[error]" should not match any line in error.log but matches line "2016/01/09 06:14:19 [error] 18855\#0: *4 peer closed connection in SSL handshake, client: 127.0.0.1, server: localhost, request: \"GET /t HTTP/1.1\", host: \"localhost\"" (req 1)
ocsp.t TEST 4: get OCSP responder (issuer cert not next to the leaf cert) - response_body - response is expected (req 0) @@ -1,2 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
'
ocsp.t TEST 4: get OCSP responder (issuer cert not next to the leaf cert) - pattern "failed to get OCSP responder: issuer certificate not next to leaf" matches a line in error.log (req 0)
ocsp.t TEST 4: get OCSP responder (issuer cert not next to the leaf cert) - response_body - response is expected (req 1) @@ -1,2 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
'
ocsp.t TEST 4: get OCSP responder (issuer cert not next to the leaf cert) - pattern "failed to get OCSP responder: issuer certificate not next to leaf" matches a line in error.log (req 1)
ocsp.t TEST 11: fail to validate OCSP response - no issuer cert - response_body - response is expected (req 0) @@ -1,2 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
'
ocsp.t TEST 11: fail to validate OCSP response - no issuer cert - pattern "failed to validate OCSP response: no issuer certificate in chain" matches a line in error.log (req 0)
ocsp.t TEST 11: fail to validate OCSP response - no issuer cert - response_body - response is expected (req 1) @@ -1,2 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
'
ocsp.t TEST 11: fail to validate OCSP response - no issuer cert - pattern "failed to validate OCSP response: no issuer certificate in chain" matches a line in error.log (req 1)
ocsp.t TEST 13: validate OCSP response - OCSP response signed by an unknown cert and the OCSP response contains the unknown cert - response_body - response is expected (req 0) @@ -1,2 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
'
ocsp.t TEST 13: validate OCSP response - OCSP response signed by an unknown cert and the OCSP response contains the unknown cert - pattern "OCSP response validation ok" matches a line in error.log (req 0)
ocsp.t TEST 13: validate OCSP response - OCSP response signed by an unknown cert and the OCSP response contains the unknown cert - pattern "[error]" should not match any line in error.log but matches line "2016/01/09 06:14:26 [error] 18888\#0: *1 peer closed connection in SSL handshake, client: 127.0.0.1, server: localhost, request: \"GET /t HTTP/1.1\", host: \"localhost\"" (req 0)
ocsp.t TEST 13: validate OCSP response - OCSP response signed by an unknown cert and the OCSP response contains the unknown cert - response_body - response is expected (req 1) @@ -1,2 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
'
ocsp.t TEST 13: validate OCSP response - OCSP response signed by an unknown cert and the OCSP response contains the unknown cert - pattern "OCSP response validation ok" matches a line in error.log (req 1)
ocsp.t TEST 13: validate OCSP response - OCSP response signed by an unknown cert and the OCSP response contains the unknown cert - pattern "[error]" should not match any line in error.log but matches line "2016/01/09 06:14:26 [error] 18888\#0: *4 peer closed connection in SSL handshake, client: 127.0.0.1, server: localhost, request: \"GET /t HTTP/1.1\", host: \"localhost\"" (req 1)
ocsp.t TEST 6: create OCSP request (good) - response_body - response is expected (req 0) @@ -1,2 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
'
ocsp.t TEST 6: create OCSP request (good) - pattern "OCSP request created with length 68" matches a line in error.log (req 0)
ocsp.t TEST 6: create OCSP request (good) - pattern "[error]" should not match any line in error.log but matches line "2016/01/09 06:14:28 [error] 18899\#0: *1 peer closed connection in SSL handshake, client: 127.0.0.1, server: localhost, request: \"GET /t HTTP/1.1\", host: \"localhost\"" (req 0)
ocsp.t TEST 6: create OCSP request (good) - response_body - response is expected (req 1) @@ -1,2 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
'
ocsp.t TEST 6: create OCSP request (good) - pattern "OCSP request created with length 68" matches a line in error.log (req 1)
ocsp.t TEST 6: create OCSP request (good) - pattern "[error]" should not match any line in error.log but matches line "2016/01/09 06:14:28 [error] 18899\#0: *4 peer closed connection in SSL handshake, client: 127.0.0.1, server: localhost, request: \"GET /t HTTP/1.1\", host: \"localhost\"" (req 1)
ocsp.t TEST 8: create OCSP request (empty string cert chain) - pattern "failed to create OCSP request: d2i_X509_bio() failed" matches a line in error.log (req 0)
ocsp.t TEST 8: create OCSP request (empty string cert chain) - pattern "failed to create OCSP request: d2i_X509_bio() failed" matches a line in error.log (req 1)
ocsp.t TEST 3: get OCSP responder (no issuer cert at all) - response_body - response is expected (req 0) @@ -1,2 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
'
ocsp.t TEST 3: get OCSP responder (no issuer cert at all) - pattern "failed to get OCSP responder: no issuer certificate in chain" matches a line in error.log (req 0)
ocsp.t TEST 3: get OCSP responder (no issuer cert at all) - response_body - response is expected (req 1) @@ -1,2 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
'
ocsp.t TEST 3: get OCSP responder (no issuer cert at all) - pattern "failed to get OCSP responder: no issuer certificate in chain" matches a line in error.log (req 1)
ocsp.t TEST 17: no status req from client - response_body - response is expected (req 0) @@ -1,2 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
'
ocsp.t TEST 17: no status req from client - pattern "ocsp status resp set ok: no status req," matches a line in error.log (req 0)
ocsp.t TEST 17: no status req from client - pattern "[error]" should not match any line in error.log but matches line "2016/01/09 06:14:35 [error] 18932\#0: *1 peer closed connection in SSL handshake, client: 127.0.0.1, server: localhost, request: \"GET /t HTTP/1.1\", host: \"localhost\"" (req 0)
ocsp.t TEST 17: no status req from client - response_body - response is expected (req 1) @@ -1,2 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
'
ocsp.t TEST 17: no status req from client - pattern "ocsp status resp set ok: no status req," matches a line in error.log (req 1)
ocsp.t TEST 17: no status req from client - pattern "[error]" should not match any line in error.log but matches line "2016/01/09 06:14:35 [error] 18932\#0: *4 peer closed connection in SSL handshake, client: 127.0.0.1, server: localhost, request: \"GET /t HTTP/1.1\", host: \"localhost\"" (req 1)
ocsp.t TEST 10: validate good OCSP response - response_body - response is expected (req 0) @@ -1,2 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
'
ocsp.t TEST 10: validate good OCSP response - pattern "OCSP response validation ok" matches a line in error.log (req 0)
ocsp.t TEST 10: validate good OCSP response - pattern "[error]" should not match any line in error.log but matches line "2016/01/09 06:14:37 [error] 18943\#0: *1 peer closed connection in SSL handshake, client: 127.0.0.1, server: localhost, request: \"GET /t HTTP/1.1\", host: \"localhost\"" (req 0)
ocsp.t TEST 10: validate good OCSP response - response_body - response is expected (req 1) @@ -1,2 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
'
ocsp.t TEST 10: validate good OCSP response - pattern "OCSP response validation ok" matches a line in error.log (req 1)
ocsp.t TEST 10: validate good OCSP response - pattern "[error]" should not match any line in error.log but matches line "2016/01/09 06:14:38 [error] 18943\#0: *4 peer closed connection in SSL handshake, client: 127.0.0.1, server: localhost, request: \"GET /t HTTP/1.1\", host: \"localhost\"" (req 1)
ocsp.t TEST 5: get OCSP responder (truncated) - response_body - response is expected (req 0) @@ -1,2 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
'
ocsp.t TEST 5: get OCSP responder (truncated) - pattern "OCSP url found: http:/," matches a line in error.log (req 0)
ocsp.t TEST 5: get OCSP responder (truncated) - pattern "still get an error: truncated" matches a line in error.log (req 0)
ocsp.t TEST 5: get OCSP responder (truncated) - pattern "[error]" should not match any line in error.log but matches line "2016/01/09 06:14:40 [error] 18954\#0: *1 peer closed connection in SSL handshake, client: 127.0.0.1, server: localhost, request: \"GET /t HTTP/1.1\", host: \"localhost\"" (req 0)
ocsp.t TEST 5: get OCSP responder (truncated) - response_body - response is expected (req 1) @@ -1,2 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
'
ocsp.t TEST 5: get OCSP responder (truncated) - pattern "OCSP url found: http:/," matches a line in error.log (req 1)
ocsp.t TEST 5: get OCSP responder (truncated) - pattern "still get an error: truncated" matches a line in error.log (req 1)
ocsp.t TEST 5: get OCSP responder (truncated) - pattern "[error]" should not match any line in error.log but matches line "2016/01/09 06:14:40 [error] 18954\#0: *4 peer closed connection in SSL handshake, client: 127.0.0.1, server: localhost, request: \"GET /t HTTP/1.1\", host: \"localhost\"" (req 1)
ocsp.t TEST 9: create OCSP request (no issuer cert in the chain) - response_body - response is expected (req 0) @@ -1,2 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
'
ocsp.t TEST 9: create OCSP request (no issuer cert in the chain) - pattern "failed to create OCSP request: no issuer certificate in chain" matches a line in error.log (req 0)
ocsp.t TEST 9: create OCSP request (no issuer cert in the chain) - response_body - response is expected (req 1) @@ -1,2 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
'
ocsp.t TEST 9: create OCSP request (no issuer cert in the chain) - pattern "failed to create OCSP request: no issuer certificate in chain" matches a line in error.log (req 1)
request.t TEST 7: ngx.req.start_time() - response_body - response is expected (req 0) got: "true\x{0a}>= 0.099: true\x{0a}< 0.11: false\x{0a}"
length: 34
expected: "true\x{0a}>= 0.099: true\x{0a}< 0.11: true\x{0a}"
length: 33
strings begin to differ at char 29 (line 3 column 9)
request.t TEST 7: ngx.req.start_time() - response_body - response is expected (req 1) got: "true\x{0a}>= 0.099: true\x{0a}< 0.11: false\x{0a}"
length: 34
expected: "true\x{0a}>= 0.099: true\x{0a}< 0.11: true\x{0a}"
length: 33
strings begin to differ at char 29 (line 3 column 9)
ssl.t TEST 15: read PEM key chain but set DER key chain - response_body - response is expected (req 0) @@ -1,11 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
-sent http request: 56 bytes.
-received: HTTP/1.1 201 Created
-received: Server: nginx
-received: Content-Type: text/plain
-received: Content-Length: 4
-received: Connection: close
-received:
-received: foo
-close: 1 nil
'
ssl.t TEST 15: read PEM key chain but set DER key chain - pattern "[error]" should not match any line in error.log but matches line "2016/01/09 06:19:49 [error] 20299\#0: *1 peer closed connection in SSL handshake, client: 127.0.0.1, server: localhost, request: \"GET /t HTTP/1.1\", host: \"localhost\"" (req 0)
ssl.t TEST 15: read PEM key chain but set DER key chain - response_body - response is expected (req 1) @@ -1,11 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
-sent http request: 56 bytes.
-received: HTTP/1.1 201 Created
-received: Server: nginx
-received: Content-Type: text/plain
-received: Content-Length: 4
-received: Connection: close
-received:
-received: foo
-close: 1 nil
'
ssl.t TEST 15: read PEM key chain but set DER key chain - pattern "[error]" should not match any line in error.log but matches line "2016/01/09 06:19:49 [error] 20299\#0: *4 peer closed connection in SSL handshake, client: 127.0.0.1, server: localhost, request: \"GET /t HTTP/1.1\", host: \"localhost\"" (req 1)
ssl.t TEST 7: read raw server addr via ssl.raw_server_addr() (IPv6) - response_body - response is expected (req 0) @@ -1,11 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
-sent http request: 56 bytes.
-received: HTTP/1.1 201 Created
-received: Server: nginx
-received: Content-Type: text/plain
-received: Content-Length: 4
-received: Connection: close
-received:
-received: foo
-close: 1 nil
'
ssl.t TEST 7: read raw server addr via ssl.raw_server_addr() (IPv6) - pattern "Using IPv6 address: 0.0.0.1" matches a line in error.log (req 0)
ssl.t TEST 7: read raw server addr via ssl.raw_server_addr() (IPv6) - pattern "[error]" should not match any line in error.log but matches line "2016/01/09 06:19:52 [error] 20310\#0: *1 peer closed connection in SSL handshake, client: 127.0.0.1, server: localhost, request: \"GET /t HTTP/1.1\", host: \"localhost\"" (req 0)
ssl.t TEST 7: read raw server addr via ssl.raw_server_addr() (IPv6) - response_body - response is expected (req 1) @@ -1,11 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
-sent http request: 56 bytes.
-received: HTTP/1.1 201 Created
-received: Server: nginx
-received: Content-Type: text/plain
-received: Content-Length: 4
-received: Connection: close
-received:
-received: foo
-close: 1 nil
'
ssl.t TEST 7: read raw server addr via ssl.raw_server_addr() (IPv6) - pattern "Using IPv6 address: 0.0.0.1" matches a line in error.log (req 1)
ssl.t TEST 7: read raw server addr via ssl.raw_server_addr() (IPv6) - pattern "[error]" should not match any line in error.log but matches line "2016/01/09 06:19:52 [error] 20310\#0: *4 peer closed connection in SSL handshake, client: 127.0.0.1, server: localhost, request: \"GET /t HTTP/1.1\", host: \"localhost\"" (req 1)
ssl.t TEST 9: read PEM cert chain but set DER cert chain - response_body - response is expected (req 0) @@ -1,11 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
-sent http request: 56 bytes.
-received: HTTP/1.1 201 Created
-received: Server: nginx
-received: Content-Type: text/plain
-received: Content-Length: 4
-received: Connection: close
-received:
-received: foo
-close: 1 nil
'
ssl.t TEST 9: read PEM cert chain but set DER cert chain - pattern "[error]" should not match any line in error.log but matches line "2016/01/09 06:19:54 [error] 20321\#0: *1 peer closed connection in SSL handshake, client: 127.0.0.1, server: localhost, request: \"GET /t HTTP/1.1\", host: \"localhost\"" (req 0)
ssl.t TEST 9: read PEM cert chain but set DER cert chain - response_body - response is expected (req 1) @@ -1,11 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
-sent http request: 56 bytes.
-received: HTTP/1.1 201 Created
-received: Server: nginx
-received: Content-Type: text/plain
-received: Content-Length: 4
-received: Connection: close
-received:
-received: foo
-close: 1 nil
'
ssl.t TEST 9: read PEM cert chain but set DER cert chain - pattern "[error]" should not match any line in error.log but matches line "2016/01/09 06:19:54 [error] 20321\#0: *4 peer closed connection in SSL handshake, client: 127.0.0.1, server: localhost, request: \"GET /t HTTP/1.1\", host: \"localhost\"" (req 1)
ssl.t TEST 1: clear certs - pattern "sslv3 alert handshake failure" matches a line in error.log (req 0)
ssl.t TEST 1: clear certs - pattern "sslv3 alert handshake failure" matches a line in error.log (req 1)
ssl.t TEST 11: tls version - TLSv1 - response_body - response is expected (req 0) @@ -1,2 +1,2 @@
connected: 1
-ssl handshake: boolean
+failed to do SSL handshake: handshake failed
'
ssl.t TEST 11: tls version - TLSv1 - pattern "got TLS1 version: TLSv1," matches a line in error.log (req 0)
ssl.t TEST 11: tls version - TLSv1 - pattern "[error]" should not match any line in error.log but matches line "2016/01/09 06:19:58 [error] 20343\#0: *1 peer closed connection in SSL handshake, client: 127.0.0.1, server: localhost, request: \"GET /t HTTP/1.1\", host: \"localhost\"" (req 0)
ssl.t TEST 11: tls version - TLSv1 - response_body - response is expected (req 1) @@ -1,2 +1,2 @@
connected: 1
-ssl handshake: boolean
+failed to do SSL handshake: handshake failed
'
ssl.t TEST 11: tls version - TLSv1 - pattern "got TLS1 version: TLSv1," matches a line in error.log (req 1)
ssl.t TEST 11: tls version - TLSv1 - pattern "[error]" should not match any line in error.log but matches line "2016/01/09 06:19:59 [error] 20343\#0: *4 peer closed connection in SSL handshake, client: 127.0.0.1, server: localhost, request: \"GET /t HTTP/1.1\", host: \"localhost\"" (req 1)
ssl.t TEST 4: read SNI name via ssl.server_name() when no SNI name specified - response_body - response is expected (req 0) @@ -1,11 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
-sent http request: 56 bytes.
-received: HTTP/1.1 201 Created
-received: Server: nginx
-received: Content-Type: text/plain
-received: Content-Length: 4
-received: Connection: close
-received:
-received: foo
-close: 1 nil
'
ssl.t TEST 4: read SNI name via ssl.server_name() when no SNI name specified - pattern "read SNI name from Lua: nil, type: nil" matches a line in error.log (req 0)
ssl.t TEST 4: read SNI name via ssl.server_name() when no SNI name specified - pattern "[error]" should not match any line in error.log but matches line "2016/01/09 06:20:01 [error] 20354\#0: *1 peer closed connection in SSL handshake, client: 127.0.0.1, server: localhost, request: \"GET /t HTTP/1.1\", host: \"localhost\"" (req 0)
ssl.t TEST 4: read SNI name via ssl.server_name() when no SNI name specified - response_body - response is expected (req 1) @@ -1,11 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
-sent http request: 56 bytes.
-received: HTTP/1.1 201 Created
-received: Server: nginx
-received: Content-Type: text/plain
-received: Content-Length: 4
-received: Connection: close
-received:
-received: foo
-close: 1 nil
'
ssl.t TEST 4: read SNI name via ssl.server_name() when no SNI name specified - pattern "read SNI name from Lua: nil, type: nil" matches a line in error.log (req 1)
ssl.t TEST 4: read SNI name via ssl.server_name() when no SNI name specified - pattern "[error]" should not match any line in error.log but matches line "2016/01/09 06:20:01 [error] 20354\#0: *4 peer closed connection in SSL handshake, client: 127.0.0.1, server: localhost, request: \"GET /t HTTP/1.1\", host: \"localhost\"" (req 1)
ssl.t TEST 14: ngx.semaphore in ssl_certificate_by_lua* - response_body - response is expected (req 0) @@ -1,2 +1,2 @@
connected: 1
-ssl handshake: boolean
+failed to do SSL handshake: handshake failed
'
ssl.t TEST 14: ngx.semaphore in ssl_certificate_by_lua* - grep_error_log_out (req 0) @@ -1,4 +0,0 @@
-http lua semaphore new
-http lua semaphore wait
-http lua semaphore wait yielding
-http lua semaphore post
'
ssl.t TEST 14: ngx.semaphore in ssl_certificate_by_lua* - pattern "ssl cert by lua done" matches a line in error.log (req 0)
ssl.t TEST 14: ngx.semaphore in ssl_certificate_by_lua* - pattern "[error]" should not match any line in error.log but matches line "2016/01/09 06:20:03 [error] 20365\#0: *1 peer closed connection in SSL handshake, client: 127.0.0.1, server: localhost, request: \"GET /t HTTP/1.1\", host: \"localhost\"" (req 0)
ssl.t TEST 14: ngx.semaphore in ssl_certificate_by_lua* - response_body - response is expected (req 1) @@ -1,2 +1,2 @@
connected: 1
-ssl handshake: boolean
+failed to do SSL handshake: handshake failed
'
ssl.t TEST 14: ngx.semaphore in ssl_certificate_by_lua* - grep_error_log_out (req 1) @@ -1,4 +0,0 @@
-http lua semaphore new
-http lua semaphore wait
-http lua semaphore wait yielding
-http lua semaphore post
'
ssl.t TEST 14: ngx.semaphore in ssl_certificate_by_lua* - pattern "ssl cert by lua done" matches a line in error.log (req 1)
ssl.t TEST 14: ngx.semaphore in ssl_certificate_by_lua* - pattern "[error]" should not match any line in error.log but matches line "2016/01/09 06:20:03 [error] 20365\#0: *4 peer closed connection in SSL handshake, client: 127.0.0.1, server: localhost, request: \"GET /t HTTP/1.1\", host: \"localhost\"" (req 1)
ssl.t TEST 6: read raw server addr via ssl.raw_server_addr() (IPv4) - response_body - response is expected (req 0) @@ -1,11 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
-sent http request: 56 bytes.
-received: HTTP/1.1 201 Created
-received: Server: nginx
-received: Content-Type: text/plain
-received: Content-Length: 4
-received: Connection: close
-received:
-received: foo
-close: 1 nil
'
ssl.t TEST 6: read raw server addr via ssl.raw_server_addr() (IPv4) - pattern "Using IPv4 address: 127.0.0.1" matches a line in error.log (req 0)
ssl.t TEST 6: read raw server addr via ssl.raw_server_addr() (IPv4) - pattern "[error]" should not match any line in error.log but matches line "2016/01/09 06:20:05 [error] 20376\#0: *1 peer closed connection in SSL handshake, client: 127.0.0.1, server: localhost, request: \"GET /t HTTP/1.1\", host: \"localhost\"" (req 0)
ssl.t TEST 6: read raw server addr via ssl.raw_server_addr() (IPv4) - response_body - response is expected (req 1) @@ -1,11 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
-sent http request: 56 bytes.
-received: HTTP/1.1 201 Created
-received: Server: nginx
-received: Content-Type: text/plain
-received: Content-Length: 4
-received: Connection: close
-received:
-received: foo
-close: 1 nil
'
ssl.t TEST 6: read raw server addr via ssl.raw_server_addr() (IPv4) - pattern "Using IPv4 address: 127.0.0.1" matches a line in error.log (req 1)
ssl.t TEST 6: read raw server addr via ssl.raw_server_addr() (IPv4) - pattern "[error]" should not match any line in error.log but matches line "2016/01/09 06:20:06 [error] 20376\#0: *4 peer closed connection in SSL handshake, client: 127.0.0.1, server: localhost, request: \"GET /t HTTP/1.1\", host: \"localhost\"" (req 1)
ssl.t TEST 13: tls version - TLSv1.2 - response_body - response is expected (req 0) @@ -1,2 +1,2 @@
connected: 1
-ssl handshake: boolean
+failed to do SSL handshake: handshake failed
'
ssl.t TEST 13: tls version - TLSv1.2 - pattern "got TLS1 version: TLSv1.2," matches a line in error.log (req 0)
ssl.t TEST 13: tls version - TLSv1.2 - pattern "[error]" should not match any line in error.log but matches line "2016/01/09 06:20:08 [error] 20387\#0: *1 peer closed connection in SSL handshake, client: 127.0.0.1, server: localhost, request: \"GET /t HTTP/1.1\", host: \"localhost\"" (req 0)
ssl.t TEST 13: tls version - TLSv1.2 - response_body - response is expected (req 1) @@ -1,2 +1,2 @@
connected: 1
-ssl handshake: boolean
+failed to do SSL handshake: handshake failed
'
ssl.t TEST 13: tls version - TLSv1.2 - pattern "got TLS1 version: TLSv1.2," matches a line in error.log (req 1)
ssl.t TEST 13: tls version - TLSv1.2 - pattern "[error]" should not match any line in error.log but matches line "2016/01/09 06:20:08 [error] 20387\#0: *4 peer closed connection in SSL handshake, client: 127.0.0.1, server: localhost, request: \"GET /t HTTP/1.1\", host: \"localhost\"" (req 1)
ssl.t TEST 2: set DER cert and private key - response_body - response is expected (req 0) @@ -1,11 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
-sent http request: 56 bytes.
-received: HTTP/1.1 201 Created
-received: Server: nginx
-received: Content-Type: text/plain
-received: Content-Length: 4
-received: Connection: close
-received:
-received: foo
-close: 1 nil
'
ssl.t TEST 2: set DER cert and private key - pattern "[error]" should not match any line in error.log but matches line "2016/01/09 06:20:10 [error] 20398\#0: *1 peer closed connection in SSL handshake, client: 127.0.0.1, server: localhost, request: \"GET /t HTTP/1.1\", host: \"localhost\"" (req 0)
ssl.t TEST 2: set DER cert and private key - response_body - response is expected (req 1) @@ -1,11 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
-sent http request: 56 bytes.
-received: HTTP/1.1 201 Created
-received: Server: nginx
-received: Content-Type: text/plain
-received: Content-Length: 4
-received: Connection: close
-received:
-received: foo
-close: 1 nil
'
ssl.t TEST 2: set DER cert and private key - pattern "[error]" should not match any line in error.log but matches line "2016/01/09 06:20:10 [error] 20398\#0: *4 peer closed connection in SSL handshake, client: 127.0.0.1, server: localhost, request: \"GET /t HTTP/1.1\", host: \"localhost\"" (req 1)
ssl.t TEST 12: tls version - TLSv1.1 - response_body - response is expected (req 0) @@ -1,2 +1,2 @@
connected: 1
-ssl handshake: boolean
+failed to do SSL handshake: handshake failed
'
ssl.t TEST 12: tls version - TLSv1.1 - pattern "got TLS1 version: TLSv1.1," matches a line in error.log (req 0)
ssl.t TEST 12: tls version - TLSv1.1 - pattern "[error]" should not match any line in error.log but matches line "2016/01/09 06:20:12 [error] 20409\#0: *1 peer closed connection in SSL handshake, client: 127.0.0.1, server: localhost, request: \"GET /t HTTP/1.1\", host: \"localhost\"" (req 0)
ssl.t TEST 12: tls version - TLSv1.1 - response_body - response is expected (req 1) @@ -1,2 +1,2 @@
connected: 1
-ssl handshake: boolean
+failed to do SSL handshake: handshake failed
'
ssl.t TEST 12: tls version - TLSv1.1 - pattern "got TLS1 version: TLSv1.1," matches a line in error.log (req 1)
ssl.t TEST 12: tls version - TLSv1.1 - pattern "[error]" should not match any line in error.log but matches line "2016/01/09 06:20:12 [error] 20409\#0: *4 peer closed connection in SSL handshake, client: 127.0.0.1, server: localhost, request: \"GET /t HTTP/1.1\", host: \"localhost\"" (req 1)
ssl.t TEST 5: read raw server addr via ssl.raw_server_addr() (unix domain socket) - response_body - response is expected (req 0) @@ -1,11 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
-sent http request: 56 bytes.
-received: HTTP/1.1 201 Created
-received: Server: nginx
-received: Content-Type: text/plain
-received: Content-Length: 4
-received: Connection: close
-received:
-received: foo
-close: 1 nil
'
ssl.t TEST 5: read raw server addr via ssl.raw_server_addr() (unix domain socket) - pattern "(?^:Using unix socket file .*?nginx\.sock)" matches a line in error.log (req 0)
ssl.t TEST 5: read raw server addr via ssl.raw_server_addr() (unix domain socket) - pattern "[error]" should not match any line in error.log but matches line "2016/01/09 06:20:14 [error] 20420\#0: *1 peer closed connection in SSL handshake, client: 127.0.0.1, server: localhost, request: \"GET /t HTTP/1.1\", host: \"localhost\"" (req 0)
ssl.t TEST 5: read raw server addr via ssl.raw_server_addr() (unix domain socket) - response_body - response is expected (req 1) @@ -1,11 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
-sent http request: 56 bytes.
-received: HTTP/1.1 201 Created
-received: Server: nginx
-received: Content-Type: text/plain
-received: Content-Length: 4
-received: Connection: close
-received:
-received: foo
-close: 1 nil
'
ssl.t TEST 5: read raw server addr via ssl.raw_server_addr() (unix domain socket) - pattern "(?^:Using unix socket file .*?nginx\.sock)" matches a line in error.log (req 1)
ssl.t TEST 5: read raw server addr via ssl.raw_server_addr() (unix domain socket) - pattern "[error]" should not match any line in error.log but matches line "2016/01/09 06:20:15 [error] 20420\#0: *4 peer closed connection in SSL handshake, client: 127.0.0.1, server: localhost, request: \"GET /t HTTP/1.1\", host: \"localhost\"" (req 1)
ssl.t TEST 10: tls version - SSLv3 - response_body - response is expected (req 0) @@ -1,2 +1,2 @@
connected: 1
-ssl handshake: boolean
+failed to do SSL handshake: handshake failed
'
ssl.t TEST 10: tls version - SSLv3 - pattern "got TLS1 version: SSLv3," matches a line in error.log (req 0)
ssl.t TEST 10: tls version - SSLv3 - pattern "[error]" should not match any line in error.log but matches line "2016/01/09 06:20:17 [error] 20431\#0: *1 peer closed connection in SSL handshake, client: 127.0.0.1, server: localhost, request: \"GET /t HTTP/1.1\", host: \"localhost\"" (req 0)
ssl.t TEST 10: tls version - SSLv3 - response_body - response is expected (req 1) @@ -1,2 +1,2 @@
connected: 1
-ssl handshake: boolean
+failed to do SSL handshake: handshake failed
'
ssl.t TEST 10: tls version - SSLv3 - pattern "got TLS1 version: SSLv3," matches a line in error.log (req 1)
ssl.t TEST 10: tls version - SSLv3 - pattern "[error]" should not match any line in error.log but matches line "2016/01/09 06:20:17 [error] 20431\#0: *4 peer closed connection in SSL handshake, client: 127.0.0.1, server: localhost, request: \"GET /t HTTP/1.1\", host: \"localhost\"" (req 1)
ssl.t TEST 8: set DER cert chain - response_body - response is expected (req 0) @@ -1,11 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
-sent http request: 56 bytes.
-received: HTTP/1.1 201 Created
-received: Server: nginx
-received: Content-Type: text/plain
-received: Content-Length: 4
-received: Connection: close
-received:
-received: foo
-close: 1 nil
'
ssl.t TEST 8: set DER cert chain - pattern "[error]" should not match any line in error.log but matches line "2016/01/09 06:20:19 [error] 20442\#0: *1 peer closed connection in SSL handshake, client: 127.0.0.1, server: localhost, request: \"GET /t HTTP/1.1\", host: \"localhost\"" (req 0)
ssl.t TEST 8: set DER cert chain - response_body - response is expected (req 1) @@ -1,11 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
-sent http request: 56 bytes.
-received: HTTP/1.1 201 Created
-received: Server: nginx
-received: Content-Type: text/plain
-received: Content-Length: 4
-received: Connection: close
-received:
-received: foo
-close: 1 nil
'
ssl.t TEST 8: set DER cert chain - pattern "[error]" should not match any line in error.log but matches line "2016/01/09 06:20:19 [error] 20442\#0: *4 peer closed connection in SSL handshake, client: 127.0.0.1, server: localhost, request: \"GET /t HTTP/1.1\", host: \"localhost\"" (req 1)
ssl.t TEST 3: read SNI name via ssl.server_name() - response_body - response is expected (req 0) @@ -1,11 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
-sent http request: 56 bytes.
-received: HTTP/1.1 201 Created
-received: Server: nginx
-received: Content-Type: text/plain
-received: Content-Length: 4
-received: Connection: close
-received:
-received: foo
-close: 1 nil
'
ssl.t TEST 3: read SNI name via ssl.server_name() - pattern "read SNI name from Lua: test.com" matches a line in error.log (req 0)
ssl.t TEST 3: read SNI name via ssl.server_name() - pattern "[error]" should not match any line in error.log but matches line "2016/01/09 06:20:21 [error] 20453\#0: *1 peer closed connection in SSL handshake, client: 127.0.0.1, server: localhost, request: \"GET /t HTTP/1.1\", host: \"localhost\"" (req 0)
ssl.t TEST 3: read SNI name via ssl.server_name() - response_body - response is expected (req 1) @@ -1,11 +1,2 @@
connected: 1
-ssl handshake: userdata
+failed to do SSL handshake: handshake failed
-sent http request: 56 bytes.
-received: HTTP/1.1 201 Created
-received: Server: nginx
-received: Content-Type: text/plain
-received: Content-Length: 4
-received: Connection: close
-received:
-received: foo
-close: 1 nil
'
ssl.t TEST 3: read SNI name via ssl.server_name() - pattern "read SNI name from Lua: test.com" matches a line in error.log (req 1)
ssl.t TEST 3: read SNI name via ssl.server_name() - pattern "[error]" should not match any line in error.log but matches line "2016/01/09 06:20:21 [error] 20453\#0: *4 peer closed connection in SSL handshake, client: 127.0.0.1, server: localhost, request: \"GET /t HTTP/1.1\", host: \"localhost\"" (req 1)
time.t TEST 1: ngx.now() - response_body - response is expected (req 0) @@ -1,3 +1,3 @@
true
>= 0.099: true
-< 0.11: true
+< 0.11: false
'

Warnings

(none)

Go back to the index page.