Skip to content

Commit

Permalink
fixed failed tests because of session object type change.
Browse files Browse the repository at this point in the history
  • Loading branch information
dndx committed Sep 25, 2019
1 parent 312e3a2 commit 68ca312
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 23 deletions.
30 changes: 15 additions & 15 deletions t/ocsp.t
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ __DATA__
GET /t
--- response_body
connected: 1
ssl handshake: userdata
ssl handshake: cdata

--- error_log
lua ssl server name: "test.com"
Expand Down Expand Up @@ -188,7 +188,7 @@ OCSP url found: http://127.0.0.1:8888/ocsp?foo=1,
GET /t
--- response_body
connected: 1
ssl handshake: userdata
ssl handshake: cdata

--- error_log
lua ssl server name: "test.com"
Expand Down Expand Up @@ -280,7 +280,7 @@ OCSP responder not found
GET /t
--- response_body
connected: 1
ssl handshake: userdata
ssl handshake: cdata

--- error_log
lua ssl server name: "test.com"
Expand Down Expand Up @@ -371,7 +371,7 @@ failed to get OCSP responder: no issuer certificate in chain
GET /t
--- response_body
connected: 1
ssl handshake: userdata
ssl handshake: cdata

--- error_log
lua ssl server name: "test.com"
Expand Down Expand Up @@ -466,7 +466,7 @@ failed to get OCSP responder: issuer certificate not next to leaf
GET /t
--- response_body
connected: 1
ssl handshake: userdata
ssl handshake: cdata

--- error_log
lua ssl server name: "test.com"
Expand Down Expand Up @@ -562,7 +562,7 @@ still get an error: truncated
GET /t
--- response_body
connected: 1
ssl handshake: userdata
ssl handshake: cdata

--- error_log
lua ssl server name: "test.com"
Expand Down Expand Up @@ -655,7 +655,7 @@ OCSP request created with length 68
GET /t
--- response_body
connected: 1
ssl handshake: userdata
ssl handshake: cdata

--- error_log
lua ssl server name: "test.com"
Expand Down Expand Up @@ -829,7 +829,7 @@ failed to create OCSP request: d2i_X509_bio() failed
GET /t
--- response_body
connected: 1
ssl handshake: userdata
ssl handshake: cdata

--- error_log
lua ssl server name: "test.com"
Expand Down Expand Up @@ -920,7 +920,7 @@ failed to create OCSP request: no issuer certificate in chain
GET /t
--- response_body
connected: 1
ssl handshake: userdata
ssl handshake: cdata

--- error_log
lua ssl server name: "test.com"
Expand Down Expand Up @@ -1012,7 +1012,7 @@ OCSP response validation ok
GET /t
--- response_body
connected: 1
ssl handshake: userdata
ssl handshake: cdata

--- error_log
lua ssl server name: "test.com"
Expand Down Expand Up @@ -1104,7 +1104,7 @@ OCSP response validation ok
GET /t
--- response_body
connected: 1
ssl handshake: userdata
ssl handshake: cdata

--- error_log
lua ssl server name: "test.com"
Expand Down Expand Up @@ -1199,7 +1199,7 @@ FIXME: we should complain in this case.
GET /t
--- response_body
connected: 1
ssl handshake: userdata
ssl handshake: cdata

--- error_log
lua ssl server name: "test.com"
Expand Down Expand Up @@ -1292,7 +1292,7 @@ OCSP response validation ok
GET /t
--- response_body
connected: 1
ssl handshake: userdata
ssl handshake: cdata

--- error_log
lua ssl server name: "test.com"
Expand Down Expand Up @@ -1467,7 +1467,7 @@ FIXME: check the OCSP staple actually received by the ssl client
GET /t
--- response_body
connected: 1
ssl handshake: userdata
ssl handshake: cdata

--- error_log
lua ssl server name: "test.com"
Expand Down Expand Up @@ -1549,7 +1549,7 @@ ocsp status resp set ok: nil,
GET /t
--- response_body
connected: 1
ssl handshake: userdata
ssl handshake: cdata

--- error_log
lua ssl server name: "test.com"
Expand Down
10 changes: 5 additions & 5 deletions t/ssl-session-fetch.t
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ __DATA__
GET /t
--- response_body
connected: 1
ssl handshake: userdata
ssl handshake: cdata
close: 1 nil

--- grep_error_log eval
Expand Down Expand Up @@ -177,7 +177,7 @@ qr/ssl_session_fetch_by_lua_block:4: session id: [a-fA-f\d]+/s,
GET /t
--- response_body
connected: 1
ssl handshake: userdata
ssl handshake: cdata
close: 1 nil

--- grep_error_log eval
Expand Down Expand Up @@ -280,7 +280,7 @@ In practice, never store session in plaintext on persistent storage.
GET /t
--- response_body
connected: 1
ssl handshake: userdata
ssl handshake: cdata
close: 1 nil

--- grep_error_log eval
Expand Down Expand Up @@ -376,7 +376,7 @@ able to carry on and negotiate a new session.
GET /t
--- response_body
connected: 1
ssl handshake: userdata
ssl handshake: cdata
close: 1 nil

--- grep_error_log eval
Expand Down Expand Up @@ -579,7 +579,7 @@ $/s,
GET /t
--- response_body
connected: 1
ssl handshake: userdata
ssl handshake: cdata
close: 1 nil
--- no_error_log
[alert]
Expand Down
6 changes: 3 additions & 3 deletions t/ssl-session-store.t
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ __DATA__
GET /t
--- response_body
connected: 1
ssl handshake: userdata
ssl handshake: cdata
close: 1 nil

--- error_log eval
Expand Down Expand Up @@ -157,7 +157,7 @@ qr/ssl_session_store_by_lua_block:4: session size: \d+/s
GET /t
--- response_body
connected: 1
ssl handshake: userdata
ssl handshake: cdata
close: 1 nil

--- error_log eval
Expand Down Expand Up @@ -265,7 +265,7 @@ qr/ssl_session_store_by_lua_block:4: session id: [a-fA-f\d]+/s
GET /t
--- response_body
connected: 1
ssl handshake: userdata
ssl handshake: cdata
close: 1 nil

--- error_log eval
Expand Down

0 comments on commit 68ca312

Please sign in to comment.