-
-
Notifications
You must be signed in to change notification settings - Fork 626
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
error out directly for other cases as well and fix test
- Loading branch information
Showing
2 changed files
with
20 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -137,6 +137,9 @@ location /t { | |
}) | ||
|
||
ngx.say(res:read_body()) | ||
|
||
else | ||
ngx.say("failed to connect: " .. err or "") | ||
end | ||
|
||
httpc:close() | ||
|
@@ -147,13 +150,15 @@ location /t { | |
--- request | ||
GET /t | ||
--- error_code: 200 | ||
--- error_log | ||
bad ssl_client_priv_key: cdata expected, got string | ||
--- response_body_unlike: hello, [email protected],O=OpenResty,ST=California,C=US | ||
--- no_error_log | ||
[error] | ||
[warn] | ||
--- response_body | ||
failed to connect: bad ssl_client_priv_key: cdata expected, got string | ||
--- skip_nginx | ||
4: < 1.21.4 | ||
|
||
=== TEST 3: Connection succeeds with client cert and key. SKIP'd for CI until feature is merged. | ||
=== TEST 3: Connection succeeds with client cert and key. | ||
--- http_config eval: $::mtls_http_config | ||
--- config eval | ||
" | ||
|