changeset 1523:5a55da6aed13

Tests: extended proxy_ssl.t for more ngx_ssl_recv_chain() cases.
author Sergey Kandaurov <pluknet@nginx.com>
date Fri, 18 Oct 2019 17:17:51 +0300
parents d8684b300d22
children 9bc1ca067449
files proxy_ssl.t
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/proxy_ssl.t
+++ b/proxy_ssl.t
@@ -25,7 +25,7 @@ eval { require IO::Socket::SSL; };
 plan(skip_all => 'IO::Socket::SSL not installed') if $@;
 
 my $t = Test::Nginx->new()->has(qw/http proxy http_ssl/)->has_daemon('openssl')
-	->plan(7)->write_file_expand('nginx.conf', <<'EOF');
+	->plan(8)->write_file_expand('nginx.conf', <<'EOF');
 
 %%TEST_GLOBALS%%
 
@@ -85,6 +85,7 @@ distinguished_name = req_distinguished_n
 [ req_distinguished_name ]
 EOF
 
+$t->write_file('big.html', 'xxxxxxxxxx' x 72000);
 $t->write_file('index.html', '');
 
 my $d = $t->testdir();
@@ -120,6 +121,9 @@ like(http_get('/timeout'), qr/200 OK/, '
 
 like(http_get('/timeout_h'), qr/504 Gateway/, 'proxy handshake timeout');
 
+is(length(Test::Nginx::http_content(http_get('/ssl/big.html'))), 720000,
+	'big length');
+
 ###############################################################################
 
 sub http_daemon {