Skip to content

Commit

Permalink
test: fix tests by not verifying SSL
Browse files Browse the repository at this point in the history
  • Loading branch information
GuyLewin committed Oct 8, 2021
1 parent 5e6c3f3 commit 1e8a8f4
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions t/09-ssl.t
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@ GET /a
local httpc = http.new()
local ok, err, ssl_session = httpc:connect({
scheme = "https",
host = "www.google.com"
host = "www.google.com",
ssl_verify = false
})
assert(type(ssl_session) == "userdata")
ngx.print("ok")
Expand All @@ -86,7 +87,7 @@ ok
[error]
[warn]

=== TEST 4: ssl_session reuse in connect
=== TEST 4: ssl_session reuse in connect works
--- http_config eval: $::HttpConfig
--- config
location = /a {
Expand All @@ -95,7 +96,8 @@ ok
local httpc1 = http.new()
local ok, err, ssl_session1 = httpc1:connect({
scheme = "https",
host = "www.google.com"
host = "www.google.com",
ssl_verify = false
})
assert(ok)
assert(not err)
Expand All @@ -106,6 +108,7 @@ ok
ok, err, ssl_session2 = httpc2:connect({
scheme = "https",
host = "www.google.com",
ssl_verify = false,
ssl_reused_session = ssl_session1
})
assert(ok)
Expand Down

0 comments on commit 1e8a8f4

Please sign in to comment.